-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* APPS-6692 WIP migrate to TS * APPS-6692 WIP migrate to TS * APPS-6692 WIP migrate to TS - cp theme-context.tsx * APPS-6692 WIP migrate to TS - jss type tests * APPS-6692 WIP migrate to TS - fix lint issues, create theme.tsx * APPS-6692 WIP migrate to TS - add utils * APPS-6692 WIP migrate to TS - fix eslint issues * APPS-6692 WIP migrate to TS - copy platform and region-code * APPS-6692 WIP migrate to TS - copy media queries * APPS-6692 WIP migrate TS - cp colors * APPS-6692 WIP migrate TS - colors * APPS-6692 WIP migrate TS - colors * APPS-6692 WIP migrate TS - jss types * APPS-6692 WIP migrate TS - jss types * APPS-6692 WIP migrate TS - jss types * APPS-6692 WIP migrate TS - cp stack * APPS-6692 WIP migrate TS - cp touchable * APPS-6692 WIP migrate TS - add keycodes * APPS-6692 WIP migrate TS - touchable * APPS-6692 WIP migrate TS - update tsconfig * APPS-6692 WIP migrate TS - screen reader only cp * APPS-6692 WIP migrate TS - cp hooks * APPS-6692 WIP migrate TS - screen size context * APPS-6692 WIP migrate TS - screen size context * APPS-6692 WIP migrate TS - fix locale * APPS-6692 update hook * APPS-6692 rm sync-from-webapp.sh script * APPS-6692 update index * APPS-6692 revert change in eslint config * APPS-6692 dts-to-flow * APPS-6692 flow types generation * APPS-6692 flow types generation * APPS-6692 flow types generation * APPS-6692 flow types generation * APPS-6692 flow types generation * APPS-6692 flow types generation * APPS-6692 improve jss types * APPS-6692 cp button * APPS-6692 cp spinner * APPS-6692 cp spinner * APPS-6692 cp spinner * APPS-6692 cp spinner * APPS-6692 spinner tsx * APPS-6692 box tsx * APPS-6692 cp color * APPS-6692 color tsx * APPS-6692 cp form context * APPS-6692 cp theme variant context * APPS-6692 migrate to tsx * APPS-6692 update generator * APPS-6692 update generator * APPS-6692 some tooling * APPS-6692 fix tabIndex type * APPS-6692 improve flow definitions * APPS-6692 cp to tsx * APPS-6692 compatible types * APPS-6692 fixes to adapt to webapp * APPS-6692 expose textDanger * APPS-6692 type overrides and type fixes * APPS-6692 tweak types * APPS-6692 rename all js to tsx * APPS-6692 migrate all icons * APPS-6692 migrate utils * APPS-6692 migrate more components * APPS-6692 [WIP] migrate to TS * APPS-6692 [WIP] migrate to TS * APPS-6692 [WIP] migrate to TS * APPS-6692 [WIP] migrate to TS * APPS-6692 [WIP] migrate to TS * APPS-6692 [WIP] migrate to TS * APPS-6692 format d.ts * APPS-6692 rm js files * APPS-6692 update flow-defs * APPS-6692 storybook config for TS * APPS-6692 update build script * APPS-6692 improvements after CR * APPS-6692 remove comments * APPS-6692 update flow defs and use babel macro * APPS-6692 working acceptance tests * APPS-6692 unit tests passing * APPS-6692 update config * APPS-6692 remove FlowFixMes * APPS-6692 remove debug code * APPS-6692 remove screenshot * APPS-6692 remove old screenshots * APPS-6692 configure playroom * APPS-6692 revert box changes * APPS-6692 fix empty ComponentType transform * APPS-6692 watch script * APPS-6692 watch script * APPS-6692 watch script * APPS-6692 watch script
- Loading branch information
Showing
373 changed files
with
7,887 additions
and
2,691 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Workaround until these issues get fixed and released | ||
// https://github.com/storybookjs/storybook/pull/10980 | ||
// https://github.com/storybookjs/storybook/pull/10813 | ||
// | ||
// At this moment we cannot write addon's register in TSX (extension must be .js) | ||
// but then we cannot import stuff from ./src | ||
// So this module replaces the required parts from ./src/colors.tsx | ||
|
||
/** | ||
* @param {'Movistar' | 'Vivo' | 'O2'} skin | ||
*/ | ||
export const getColors = (skin) => { | ||
switch (skin) { | ||
case 'Movistar': | ||
return { | ||
PRIMARY: '#019DF4', | ||
TEXT_PRIMARY: '#313235', | ||
TEXT_PRIMARY_INVERSE: '#FFFFFF', | ||
TEXT_SECONDARY: '#86888C', | ||
}; | ||
case 'Vivo': | ||
return { | ||
PRIMARY: '#660099', | ||
TEXT_PRIMARY: '#000000', | ||
TEXT_PRIMARY_INVERSE: '#FFFFFF', | ||
TEXT_SECONDARY: '#666666', | ||
}; | ||
case 'O2': | ||
return { | ||
PRIMARY: '#032B5A', | ||
TEXT_PRIMARY: '#000033', | ||
TEXT_PRIMARY_INVERSE: '#FFFFFF', | ||
TEXT_SECONDARY: '#757575', | ||
}; | ||
default: | ||
throw Error('Unexpected skin: ' + skin); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
// @flow | ||
import '../css/roboto.css'; | ||
import '../css/reset.css'; | ||
import {addons} from '@storybook/addons'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
{ | ||
"javascript.validate.enable": false | ||
"javascript.validate.enable": false, | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"search.exclude": { | ||
"**/node_modules": true, | ||
"**/flow-defs": true, | ||
"**/flow-typed": true | ||
} | ||
} |
Oops, something went wrong.