@fattureincloud-mobile/fic-mobile-ds 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -0
- package/README.md +31 -0
- package/lib/commonjs/components/Tag/Tag.js +44 -0
- package/lib/commonjs/components/Tag/Tag.js.map +1 -0
- package/lib/commonjs/components/Tag/index.js +14 -0
- package/lib/commonjs/components/Tag/index.js.map +1 -0
- package/lib/commonjs/components/Touchable/Touchable.js +79 -0
- package/lib/commonjs/components/Touchable/Touchable.js.map +1 -0
- package/lib/commonjs/components/Touchable/index.js +14 -0
- package/lib/commonjs/components/Touchable/index.js.map +1 -0
- package/lib/commonjs/components/base/DatePicker/DatePicker.js +257 -0
- package/lib/commonjs/components/base/DatePicker/DatePicker.js.map +1 -0
- package/lib/commonjs/components/base/DatePicker/index.js +14 -0
- package/lib/commonjs/components/base/DatePicker/index.js.map +1 -0
- package/lib/commonjs/components/base/HeaderArrows/HeaderArrows.js +77 -0
- package/lib/commonjs/components/base/HeaderArrows/HeaderArrows.js.map +1 -0
- package/lib/commonjs/components/base/HeaderArrows/index.js +14 -0
- package/lib/commonjs/components/base/HeaderArrows/index.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/FicButton.js +42 -0
- package/lib/commonjs/components/buttons/FicButton/FicButton.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/FicButton.types.js +6 -0
- package/lib/commonjs/components/buttons/FicButton/FicButton.types.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/FicButtonIcon.js +104 -0
- package/lib/commonjs/components/buttons/FicButton/FicButtonIcon.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/FicButtonPrimary.js +121 -0
- package/lib/commonjs/components/buttons/FicButton/FicButtonPrimary.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/FicButtonSecondary.js +123 -0
- package/lib/commonjs/components/buttons/FicButton/FicButtonSecondary.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/FicButtonTertiary.js +144 -0
- package/lib/commonjs/components/buttons/FicButton/FicButtonTertiary.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/constants.js +23 -0
- package/lib/commonjs/components/buttons/FicButton/constants.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/index.js +14 -0
- package/lib/commonjs/components/buttons/FicButton/index.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/themes/dark.js +291 -0
- package/lib/commonjs/components/buttons/FicButton/themes/dark.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/themes/index.js +14 -0
- package/lib/commonjs/components/buttons/FicButton/themes/index.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/themes/light.js +311 -0
- package/lib/commonjs/components/buttons/FicButton/themes/light.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.js +54 -0
- package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.types.js +6 -0
- package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.types.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButtonGroup/index.js +14 -0
- package/lib/commonjs/components/buttons/FicButtonGroup/index.js.map +1 -0
- package/lib/commonjs/components/notifications/Banner/Banner.js +96 -0
- package/lib/commonjs/components/notifications/Banner/Banner.js.map +1 -0
- package/lib/commonjs/components/notifications/Banner/Banner.types.js +6 -0
- package/lib/commonjs/components/notifications/Banner/Banner.types.js.map +1 -0
- package/lib/commonjs/components/notifications/Banner/index.js +14 -0
- package/lib/commonjs/components/notifications/Banner/index.js.map +1 -0
- package/lib/commonjs/components/notifications/Banner/themes/dark.js +47 -0
- package/lib/commonjs/components/notifications/Banner/themes/dark.js.map +1 -0
- package/lib/commonjs/components/notifications/Banner/themes/index.js +21 -0
- package/lib/commonjs/components/notifications/Banner/themes/index.js.map +1 -0
- package/lib/commonjs/components/notifications/Banner/themes/light.js +47 -0
- package/lib/commonjs/components/notifications/Banner/themes/light.js.map +1 -0
- package/lib/commonjs/components/typographies/Body/Body.js +35 -0
- package/lib/commonjs/components/typographies/Body/Body.js.map +1 -0
- package/lib/commonjs/components/typographies/Body/index.js +14 -0
- package/lib/commonjs/components/typographies/Body/index.js.map +1 -0
- package/lib/commonjs/components/typographies/ButtonTitle/ButtonTitle.js +45 -0
- package/lib/commonjs/components/typographies/ButtonTitle/ButtonTitle.js.map +1 -0
- package/lib/commonjs/components/typographies/ButtonTitle/index.js +14 -0
- package/lib/commonjs/components/typographies/ButtonTitle/index.js.map +1 -0
- package/lib/commonjs/components/typographies/Callout/Callout.js +35 -0
- package/lib/commonjs/components/typographies/Callout/Callout.js.map +1 -0
- package/lib/commonjs/components/typographies/Callout/index.js +14 -0
- package/lib/commonjs/components/typographies/Callout/index.js.map +1 -0
- package/lib/commonjs/components/typographies/CaptionOne/CaptionOne.js +35 -0
- package/lib/commonjs/components/typographies/CaptionOne/CaptionOne.js.map +1 -0
- package/lib/commonjs/components/typographies/CaptionOne/index.js +14 -0
- package/lib/commonjs/components/typographies/CaptionOne/index.js.map +1 -0
- package/lib/commonjs/components/typographies/CaptionTwo/CaptionTwo.js +35 -0
- package/lib/commonjs/components/typographies/CaptionTwo/CaptionTwo.js.map +1 -0
- package/lib/commonjs/components/typographies/CaptionTwo/index.js +14 -0
- package/lib/commonjs/components/typographies/CaptionTwo/index.js.map +1 -0
- package/lib/commonjs/components/typographies/Footnote/Footnote.js +35 -0
- package/lib/commonjs/components/typographies/Footnote/Footnote.js.map +1 -0
- package/lib/commonjs/components/typographies/Footnote/index.js +14 -0
- package/lib/commonjs/components/typographies/Footnote/index.js.map +1 -0
- package/lib/commonjs/components/typographies/Headline/Headline.js +35 -0
- package/lib/commonjs/components/typographies/Headline/Headline.js.map +1 -0
- package/lib/commonjs/components/typographies/Headline/index.js +14 -0
- package/lib/commonjs/components/typographies/Headline/index.js.map +1 -0
- package/lib/commonjs/components/typographies/LargeTitle/LargeTitle.js +35 -0
- package/lib/commonjs/components/typographies/LargeTitle/LargeTitle.js.map +1 -0
- package/lib/commonjs/components/typographies/LargeTitle/index.js +14 -0
- package/lib/commonjs/components/typographies/LargeTitle/index.js.map +1 -0
- package/lib/commonjs/components/typographies/README.md +22 -0
- package/lib/commonjs/components/typographies/Subhead/Subhead.js +35 -0
- package/lib/commonjs/components/typographies/Subhead/Subhead.js.map +1 -0
- package/lib/commonjs/components/typographies/Subhead/index.js +14 -0
- package/lib/commonjs/components/typographies/Subhead/index.js.map +1 -0
- package/lib/commonjs/components/typographies/TitleOne/TitleOne.js +35 -0
- package/lib/commonjs/components/typographies/TitleOne/TitleOne.js.map +1 -0
- package/lib/commonjs/components/typographies/TitleOne/index.js +14 -0
- package/lib/commonjs/components/typographies/TitleOne/index.js.map +1 -0
- package/lib/commonjs/components/typographies/TitleThree/TitleThree.js +35 -0
- package/lib/commonjs/components/typographies/TitleThree/TitleThree.js.map +1 -0
- package/lib/commonjs/components/typographies/TitleThree/index.js +14 -0
- package/lib/commonjs/components/typographies/TitleThree/index.js.map +1 -0
- package/lib/commonjs/components/typographies/TitleTwo/TitleTwo.js +35 -0
- package/lib/commonjs/components/typographies/TitleTwo/TitleTwo.js.map +1 -0
- package/lib/commonjs/components/typographies/TitleTwo/index.js +14 -0
- package/lib/commonjs/components/typographies/TitleTwo/index.js.map +1 -0
- package/lib/commonjs/components/typographies/font.js +33 -0
- package/lib/commonjs/components/typographies/font.js.map +1 -0
- package/lib/commonjs/hooks/useTheme.js +24 -0
- package/lib/commonjs/hooks/useTheme.js.map +1 -0
- package/lib/commonjs/index.js +206 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/providers/DesignSystemProvider/DesignSystemProvider.js +30 -0
- package/lib/commonjs/providers/DesignSystemProvider/DesignSystemProvider.js.map +1 -0
- package/lib/commonjs/providers/DesignSystemProvider/index.js +14 -0
- package/lib/commonjs/providers/DesignSystemProvider/index.js.map +1 -0
- package/lib/commonjs/providers/IconProvider/IconProvider.js +35 -0
- package/lib/commonjs/providers/IconProvider/IconProvider.js.map +1 -0
- package/lib/commonjs/providers/IconProvider/index.js +20 -0
- package/lib/commonjs/providers/IconProvider/index.js.map +1 -0
- package/lib/commonjs/providers/ThemeProvider/ThemeProvider.js +20 -0
- package/lib/commonjs/providers/ThemeProvider/ThemeProvider.js.map +1 -0
- package/lib/commonjs/styles/calendarTheme.js +6 -0
- package/lib/commonjs/styles/calendarTheme.js.map +1 -0
- package/lib/commonjs/styles/colors.js +109 -0
- package/lib/commonjs/styles/colors.js.map +1 -0
- package/lib/commonjs/styles/globalStyles.js +41 -0
- package/lib/commonjs/styles/globalStyles.js.map +1 -0
- package/lib/commonjs/styles/space.js +34 -0
- package/lib/commonjs/styles/space.js.map +1 -0
- package/lib/commonjs/styles/theme.js +421 -0
- package/lib/commonjs/styles/theme.js.map +1 -0
- package/lib/commonjs/utils/locale.js +50 -0
- package/lib/commonjs/utils/locale.js.map +1 -0
- package/lib/module/components/Tag/Tag.js +37 -0
- package/lib/module/components/Tag/Tag.js.map +1 -0
- package/lib/module/components/Tag/index.js +3 -0
- package/lib/module/components/Tag/index.js.map +1 -0
- package/lib/module/components/Touchable/Touchable.js +72 -0
- package/lib/module/components/Touchable/Touchable.js.map +1 -0
- package/lib/module/components/Touchable/index.js +3 -0
- package/lib/module/components/Touchable/index.js.map +1 -0
- package/lib/module/components/base/DatePicker/DatePicker.js +251 -0
- package/lib/module/components/base/DatePicker/DatePicker.js.map +1 -0
- package/lib/module/components/base/DatePicker/index.js +3 -0
- package/lib/module/components/base/DatePicker/index.js.map +1 -0
- package/lib/module/components/base/HeaderArrows/HeaderArrows.js +70 -0
- package/lib/module/components/base/HeaderArrows/HeaderArrows.js.map +1 -0
- package/lib/module/components/base/HeaderArrows/index.js +3 -0
- package/lib/module/components/base/HeaderArrows/index.js.map +1 -0
- package/lib/module/components/buttons/FicButton/FicButton.js +36 -0
- package/lib/module/components/buttons/FicButton/FicButton.js.map +1 -0
- package/lib/module/components/buttons/FicButton/FicButton.types.js +2 -0
- package/lib/module/components/buttons/FicButton/FicButton.types.js.map +1 -0
- package/lib/module/components/buttons/FicButton/FicButtonIcon.js +96 -0
- package/lib/module/components/buttons/FicButton/FicButtonIcon.js.map +1 -0
- package/lib/module/components/buttons/FicButton/FicButtonPrimary.js +114 -0
- package/lib/module/components/buttons/FicButton/FicButtonPrimary.js.map +1 -0
- package/lib/module/components/buttons/FicButton/FicButtonSecondary.js +116 -0
- package/lib/module/components/buttons/FicButton/FicButtonSecondary.js.map +1 -0
- package/lib/module/components/buttons/FicButton/FicButtonTertiary.js +137 -0
- package/lib/module/components/buttons/FicButton/FicButtonTertiary.js.map +1 -0
- package/lib/module/components/buttons/FicButton/constants.js +17 -0
- package/lib/module/components/buttons/FicButton/constants.js.map +1 -0
- package/lib/module/components/buttons/FicButton/index.js +3 -0
- package/lib/module/components/buttons/FicButton/index.js.map +1 -0
- package/lib/module/components/buttons/FicButton/themes/dark.js +285 -0
- package/lib/module/components/buttons/FicButton/themes/dark.js.map +1 -0
- package/lib/module/components/buttons/FicButton/themes/index.js +3 -0
- package/lib/module/components/buttons/FicButton/themes/index.js.map +1 -0
- package/lib/module/components/buttons/FicButton/themes/light.js +305 -0
- package/lib/module/components/buttons/FicButton/themes/light.js.map +1 -0
- package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.js +47 -0
- package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.js.map +1 -0
- package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.types.js +2 -0
- package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.types.js.map +1 -0
- package/lib/module/components/buttons/FicButtonGroup/index.js +3 -0
- package/lib/module/components/buttons/FicButtonGroup/index.js.map +1 -0
- package/lib/module/components/notifications/Banner/Banner.js +89 -0
- package/lib/module/components/notifications/Banner/Banner.js.map +1 -0
- package/lib/module/components/notifications/Banner/Banner.types.js +2 -0
- package/lib/module/components/notifications/Banner/Banner.types.js.map +1 -0
- package/lib/module/components/notifications/Banner/index.js +3 -0
- package/lib/module/components/notifications/Banner/index.js.map +1 -0
- package/lib/module/components/notifications/Banner/themes/dark.js +41 -0
- package/lib/module/components/notifications/Banner/themes/dark.js.map +1 -0
- package/lib/module/components/notifications/Banner/themes/index.js +4 -0
- package/lib/module/components/notifications/Banner/themes/index.js.map +1 -0
- package/lib/module/components/notifications/Banner/themes/light.js +41 -0
- package/lib/module/components/notifications/Banner/themes/light.js.map +1 -0
- package/lib/module/components/typographies/Body/Body.js +29 -0
- package/lib/module/components/typographies/Body/Body.js.map +1 -0
- package/lib/module/components/typographies/Body/index.js +3 -0
- package/lib/module/components/typographies/Body/index.js.map +1 -0
- package/lib/module/components/typographies/ButtonTitle/ButtonTitle.js +39 -0
- package/lib/module/components/typographies/ButtonTitle/ButtonTitle.js.map +1 -0
- package/lib/module/components/typographies/ButtonTitle/index.js +3 -0
- package/lib/module/components/typographies/ButtonTitle/index.js.map +1 -0
- package/lib/module/components/typographies/Callout/Callout.js +29 -0
- package/lib/module/components/typographies/Callout/Callout.js.map +1 -0
- package/lib/module/components/typographies/Callout/index.js +3 -0
- package/lib/module/components/typographies/Callout/index.js.map +1 -0
- package/lib/module/components/typographies/CaptionOne/CaptionOne.js +29 -0
- package/lib/module/components/typographies/CaptionOne/CaptionOne.js.map +1 -0
- package/lib/module/components/typographies/CaptionOne/index.js +3 -0
- package/lib/module/components/typographies/CaptionOne/index.js.map +1 -0
- package/lib/module/components/typographies/CaptionTwo/CaptionTwo.js +29 -0
- package/lib/module/components/typographies/CaptionTwo/CaptionTwo.js.map +1 -0
- package/lib/module/components/typographies/CaptionTwo/index.js +3 -0
- package/lib/module/components/typographies/CaptionTwo/index.js.map +1 -0
- package/lib/module/components/typographies/Footnote/Footnote.js +29 -0
- package/lib/module/components/typographies/Footnote/Footnote.js.map +1 -0
- package/lib/module/components/typographies/Footnote/index.js +3 -0
- package/lib/module/components/typographies/Footnote/index.js.map +1 -0
- package/lib/module/components/typographies/Headline/Headline.js +29 -0
- package/lib/module/components/typographies/Headline/Headline.js.map +1 -0
- package/lib/module/components/typographies/Headline/index.js +3 -0
- package/lib/module/components/typographies/Headline/index.js.map +1 -0
- package/lib/module/components/typographies/LargeTitle/LargeTitle.js +29 -0
- package/lib/module/components/typographies/LargeTitle/LargeTitle.js.map +1 -0
- package/lib/module/components/typographies/LargeTitle/index.js +3 -0
- package/lib/module/components/typographies/LargeTitle/index.js.map +1 -0
- package/lib/module/components/typographies/README.md +22 -0
- package/lib/module/components/typographies/Subhead/Subhead.js +29 -0
- package/lib/module/components/typographies/Subhead/Subhead.js.map +1 -0
- package/lib/module/components/typographies/Subhead/index.js +3 -0
- package/lib/module/components/typographies/Subhead/index.js.map +1 -0
- package/lib/module/components/typographies/TitleOne/TitleOne.js +29 -0
- package/lib/module/components/typographies/TitleOne/TitleOne.js.map +1 -0
- package/lib/module/components/typographies/TitleOne/index.js +3 -0
- package/lib/module/components/typographies/TitleOne/index.js.map +1 -0
- package/lib/module/components/typographies/TitleThree/TitleThree.js +29 -0
- package/lib/module/components/typographies/TitleThree/TitleThree.js.map +1 -0
- package/lib/module/components/typographies/TitleThree/index.js +3 -0
- package/lib/module/components/typographies/TitleThree/index.js.map +1 -0
- package/lib/module/components/typographies/TitleTwo/TitleTwo.js +29 -0
- package/lib/module/components/typographies/TitleTwo/TitleTwo.js.map +1 -0
- package/lib/module/components/typographies/TitleTwo/index.js +3 -0
- package/lib/module/components/typographies/TitleTwo/index.js.map +1 -0
- package/lib/module/components/typographies/font.js +26 -0
- package/lib/module/components/typographies/font.js.map +1 -0
- package/lib/module/hooks/useTheme.js +16 -0
- package/lib/module/hooks/useTheme.js.map +1 -0
- package/lib/module/index.js +26 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/providers/DesignSystemProvider/DesignSystemProvider.js +22 -0
- package/lib/module/providers/DesignSystemProvider/DesignSystemProvider.js.map +1 -0
- package/lib/module/providers/DesignSystemProvider/index.js +3 -0
- package/lib/module/providers/DesignSystemProvider/index.js.map +1 -0
- package/lib/module/providers/IconProvider/IconProvider.js +27 -0
- package/lib/module/providers/IconProvider/IconProvider.js.map +1 -0
- package/lib/module/providers/IconProvider/index.js +3 -0
- package/lib/module/providers/IconProvider/index.js.map +1 -0
- package/lib/module/providers/ThemeProvider/ThemeProvider.js +13 -0
- package/lib/module/providers/ThemeProvider/ThemeProvider.js.map +1 -0
- package/lib/module/styles/calendarTheme.js +2 -0
- package/lib/module/styles/calendarTheme.js.map +1 -0
- package/lib/module/styles/colors.js +103 -0
- package/lib/module/styles/colors.js.map +1 -0
- package/lib/module/styles/globalStyles.js +35 -0
- package/lib/module/styles/globalStyles.js.map +1 -0
- package/lib/module/styles/space.js +28 -0
- package/lib/module/styles/space.js.map +1 -0
- package/lib/module/styles/theme.js +414 -0
- package/lib/module/styles/theme.js.map +1 -0
- package/lib/module/utils/locale.js +42 -0
- package/lib/module/utils/locale.js.map +1 -0
- package/lib/package.json +138 -0
- package/lib/typescript/components/Tag/Tag.d.ts +13 -0
- package/lib/typescript/components/Tag/Tag.d.ts.map +1 -0
- package/lib/typescript/components/Tag/index.d.ts +3 -0
- package/lib/typescript/components/Tag/index.d.ts.map +1 -0
- package/lib/typescript/components/Touchable/Touchable.d.ts +16 -0
- package/lib/typescript/components/Touchable/Touchable.d.ts.map +1 -0
- package/lib/typescript/components/Touchable/index.d.ts +3 -0
- package/lib/typescript/components/Touchable/index.d.ts.map +1 -0
- package/lib/typescript/components/base/DatePicker/DatePicker.d.ts +60 -0
- package/lib/typescript/components/base/DatePicker/DatePicker.d.ts.map +1 -0
- package/lib/typescript/components/base/DatePicker/index.d.ts +4 -0
- package/lib/typescript/components/base/DatePicker/index.d.ts.map +1 -0
- package/lib/typescript/components/base/HeaderArrows/HeaderArrows.d.ts +16 -0
- package/lib/typescript/components/base/HeaderArrows/HeaderArrows.d.ts.map +1 -0
- package/lib/typescript/components/base/HeaderArrows/index.d.ts +3 -0
- package/lib/typescript/components/base/HeaderArrows/index.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/FicButton.d.ts +5 -0
- package/lib/typescript/components/buttons/FicButton/FicButton.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/FicButton.types.d.ts +87 -0
- package/lib/typescript/components/buttons/FicButton/FicButton.types.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/FicButtonIcon.d.ts +5 -0
- package/lib/typescript/components/buttons/FicButton/FicButtonIcon.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/FicButtonPrimary.d.ts +5 -0
- package/lib/typescript/components/buttons/FicButton/FicButtonPrimary.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/FicButtonSecondary.d.ts +5 -0
- package/lib/typescript/components/buttons/FicButton/FicButtonSecondary.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/FicButtonTertiary.d.ts +5 -0
- package/lib/typescript/components/buttons/FicButton/FicButtonTertiary.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/constants.d.ts +13 -0
- package/lib/typescript/components/buttons/FicButton/constants.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/index.d.ts +5 -0
- package/lib/typescript/components/buttons/FicButton/index.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/themes/dark.d.ts +4 -0
- package/lib/typescript/components/buttons/FicButton/themes/dark.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/themes/index.d.ts +3 -0
- package/lib/typescript/components/buttons/FicButton/themes/index.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/themes/light.d.ts +4 -0
- package/lib/typescript/components/buttons/FicButton/themes/light.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButtonGroup/FicButtonGroup.d.ts +5 -0
- package/lib/typescript/components/buttons/FicButtonGroup/FicButtonGroup.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts +10 -0
- package/lib/typescript/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButtonGroup/index.d.ts +3 -0
- package/lib/typescript/components/buttons/FicButtonGroup/index.d.ts.map +1 -0
- package/lib/typescript/components/notifications/Banner/Banner.d.ts +5 -0
- package/lib/typescript/components/notifications/Banner/Banner.d.ts.map +1 -0
- package/lib/typescript/components/notifications/Banner/Banner.types.d.ts +50 -0
- package/lib/typescript/components/notifications/Banner/Banner.types.d.ts.map +1 -0
- package/lib/typescript/components/notifications/Banner/index.d.ts +3 -0
- package/lib/typescript/components/notifications/Banner/index.d.ts.map +1 -0
- package/lib/typescript/components/notifications/Banner/themes/dark.d.ts +4 -0
- package/lib/typescript/components/notifications/Banner/themes/dark.d.ts.map +1 -0
- package/lib/typescript/components/notifications/Banner/themes/index.d.ts +4 -0
- package/lib/typescript/components/notifications/Banner/themes/index.d.ts.map +1 -0
- package/lib/typescript/components/notifications/Banner/themes/light.d.ts +4 -0
- package/lib/typescript/components/notifications/Banner/themes/light.d.ts.map +1 -0
- package/lib/typescript/components/typographies/Body/Body.d.ts +12 -0
- package/lib/typescript/components/typographies/Body/Body.d.ts.map +1 -0
- package/lib/typescript/components/typographies/Body/index.d.ts +3 -0
- package/lib/typescript/components/typographies/Body/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/ButtonTitle/ButtonTitle.d.ts +10 -0
- package/lib/typescript/components/typographies/ButtonTitle/ButtonTitle.d.ts.map +1 -0
- package/lib/typescript/components/typographies/ButtonTitle/index.d.ts +3 -0
- package/lib/typescript/components/typographies/ButtonTitle/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/Callout/Callout.d.ts +12 -0
- package/lib/typescript/components/typographies/Callout/Callout.d.ts.map +1 -0
- package/lib/typescript/components/typographies/Callout/index.d.ts +3 -0
- package/lib/typescript/components/typographies/Callout/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/CaptionOne/CaptionOne.d.ts +12 -0
- package/lib/typescript/components/typographies/CaptionOne/CaptionOne.d.ts.map +1 -0
- package/lib/typescript/components/typographies/CaptionOne/index.d.ts +3 -0
- package/lib/typescript/components/typographies/CaptionOne/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/CaptionTwo/CaptionTwo.d.ts +12 -0
- package/lib/typescript/components/typographies/CaptionTwo/CaptionTwo.d.ts.map +1 -0
- package/lib/typescript/components/typographies/CaptionTwo/index.d.ts +3 -0
- package/lib/typescript/components/typographies/CaptionTwo/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/Footnote/Footnote.d.ts +12 -0
- package/lib/typescript/components/typographies/Footnote/Footnote.d.ts.map +1 -0
- package/lib/typescript/components/typographies/Footnote/index.d.ts +3 -0
- package/lib/typescript/components/typographies/Footnote/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/Headline/Headline.d.ts +12 -0
- package/lib/typescript/components/typographies/Headline/Headline.d.ts.map +1 -0
- package/lib/typescript/components/typographies/Headline/index.d.ts +3 -0
- package/lib/typescript/components/typographies/Headline/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/LargeTitle/LargeTitle.d.ts +12 -0
- package/lib/typescript/components/typographies/LargeTitle/LargeTitle.d.ts.map +1 -0
- package/lib/typescript/components/typographies/LargeTitle/index.d.ts +3 -0
- package/lib/typescript/components/typographies/LargeTitle/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/Subhead/Subhead.d.ts +12 -0
- package/lib/typescript/components/typographies/Subhead/Subhead.d.ts.map +1 -0
- package/lib/typescript/components/typographies/Subhead/index.d.ts +3 -0
- package/lib/typescript/components/typographies/Subhead/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/TitleOne/TitleOne.d.ts +12 -0
- package/lib/typescript/components/typographies/TitleOne/TitleOne.d.ts.map +1 -0
- package/lib/typescript/components/typographies/TitleOne/index.d.ts +3 -0
- package/lib/typescript/components/typographies/TitleOne/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/TitleThree/TitleThree.d.ts +12 -0
- package/lib/typescript/components/typographies/TitleThree/TitleThree.d.ts.map +1 -0
- package/lib/typescript/components/typographies/TitleThree/index.d.ts +3 -0
- package/lib/typescript/components/typographies/TitleThree/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/TitleTwo/TitleTwo.d.ts +12 -0
- package/lib/typescript/components/typographies/TitleTwo/TitleTwo.d.ts.map +1 -0
- package/lib/typescript/components/typographies/TitleTwo/index.d.ts +3 -0
- package/lib/typescript/components/typographies/TitleTwo/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/font.d.ts +9 -0
- package/lib/typescript/components/typographies/font.d.ts.map +1 -0
- package/lib/typescript/hooks/useTheme.d.ts +3 -0
- package/lib/typescript/hooks/useTheme.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +31 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/providers/DesignSystemProvider/DesignSystemProvider.d.ts +10 -0
- package/lib/typescript/providers/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -0
- package/lib/typescript/providers/DesignSystemProvider/index.d.ts +3 -0
- package/lib/typescript/providers/DesignSystemProvider/index.d.ts.map +1 -0
- package/lib/typescript/providers/IconProvider/IconProvider.d.ts +21 -0
- package/lib/typescript/providers/IconProvider/IconProvider.d.ts.map +1 -0
- package/lib/typescript/providers/IconProvider/index.d.ts +4 -0
- package/lib/typescript/providers/IconProvider/index.d.ts.map +1 -0
- package/lib/typescript/providers/ThemeProvider/ThemeProvider.d.ts +9 -0
- package/lib/typescript/providers/ThemeProvider/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/styles/calendarTheme.d.ts +24 -0
- package/lib/typescript/styles/calendarTheme.d.ts.map +1 -0
- package/lib/typescript/styles/colors.d.ts +100 -0
- package/lib/typescript/styles/colors.d.ts.map +1 -0
- package/lib/typescript/styles/globalStyles.d.ts +33 -0
- package/lib/typescript/styles/globalStyles.d.ts.map +1 -0
- package/lib/typescript/styles/space.d.ts +19 -0
- package/lib/typescript/styles/space.d.ts.map +1 -0
- package/lib/typescript/styles/theme.d.ts +183 -0
- package/lib/typescript/styles/theme.d.ts.map +1 -0
- package/lib/typescript/utils/locale.d.ts +15 -0
- package/lib/typescript/utils/locale.d.ts.map +1 -0
- package/package.json +30 -43
- package/src/components/Tag/Tag.tsx +59 -0
- package/src/components/Tag/index.ts +3 -0
- package/src/components/Touchable/Touchable.tsx +110 -0
- package/src/components/Touchable/index.ts +3 -0
- package/src/components/base/DatePicker/DatePicker.tsx +427 -0
- package/src/components/base/DatePicker/index.ts +4 -0
- package/src/components/base/HeaderArrows/HeaderArrows.tsx +93 -0
- package/src/components/base/HeaderArrows/index.ts +3 -0
- package/src/components/buttons/FicButton/FicButton.tsx +41 -0
- package/src/components/buttons/FicButton/FicButton.types.ts +114 -0
- package/src/components/buttons/FicButton/FicButtonIcon.tsx +161 -0
- package/src/components/buttons/FicButton/FicButtonPrimary.tsx +167 -0
- package/src/components/buttons/FicButton/FicButtonSecondary.tsx +168 -0
- package/src/components/buttons/FicButton/FicButtonTertiary.tsx +188 -0
- package/src/components/buttons/FicButton/constants.ts +23 -0
- package/src/components/buttons/FicButton/index.ts +5 -0
- package/src/components/buttons/FicButton/themes/dark.ts +273 -0
- package/src/components/buttons/FicButton/themes/index.ts +3 -0
- package/src/components/buttons/FicButton/themes/light.ts +293 -0
- package/src/components/buttons/FicButtonGroup/FicButtonGroup.tsx +40 -0
- package/src/components/buttons/FicButtonGroup/FicButtonGroup.types.ts +11 -0
- package/src/components/buttons/FicButtonGroup/index.ts +2 -0
- package/src/components/notifications/Banner/Banner.tsx +105 -0
- package/src/components/notifications/Banner/Banner.types.ts +69 -0
- package/src/components/notifications/Banner/index.ts +3 -0
- package/src/components/notifications/Banner/themes/dark.ts +43 -0
- package/src/components/notifications/Banner/themes/index.ts +4 -0
- package/src/components/notifications/Banner/themes/light.ts +43 -0
- package/src/components/typographies/Body/Body.tsx +38 -0
- package/src/components/typographies/Body/index.ts +3 -0
- package/src/components/typographies/ButtonTitle/ButtonTitle.tsx +51 -0
- package/src/components/typographies/ButtonTitle/index.ts +3 -0
- package/src/components/typographies/Callout/Callout.tsx +38 -0
- package/src/components/typographies/Callout/index.ts +3 -0
- package/src/components/typographies/CaptionOne/CaptionOne.tsx +38 -0
- package/src/components/typographies/CaptionOne/index.ts +4 -0
- package/src/components/typographies/CaptionTwo/CaptionTwo.tsx +38 -0
- package/src/components/typographies/CaptionTwo/index.ts +4 -0
- package/src/components/typographies/Footnote/Footnote.tsx +38 -0
- package/src/components/typographies/Footnote/index.ts +4 -0
- package/src/components/typographies/Headline/Headline.tsx +38 -0
- package/src/components/typographies/Headline/index.ts +4 -0
- package/src/components/typographies/LargeTitle/LargeTitle.tsx +38 -0
- package/src/components/typographies/LargeTitle/index.ts +3 -0
- package/src/components/typographies/README.md +22 -0
- package/src/components/typographies/Subhead/Subhead.tsx +38 -0
- package/src/components/typographies/Subhead/index.ts +4 -0
- package/src/components/typographies/TitleOne/TitleOne.tsx +38 -0
- package/src/components/typographies/TitleOne/index.ts +4 -0
- package/src/components/typographies/TitleThree/TitleThree.tsx +38 -0
- package/src/components/typographies/TitleThree/index.ts +4 -0
- package/src/components/typographies/TitleTwo/TitleTwo.tsx +38 -0
- package/src/components/typographies/TitleTwo/index.ts +4 -0
- package/src/components/typographies/font.ts +25 -0
- package/src/hooks/useTheme.ts +17 -0
- package/src/index.tsx +47 -0
- package/src/providers/DesignSystemProvider/DesignSystemProvider.tsx +31 -0
- package/src/providers/DesignSystemProvider/index.ts +3 -0
- package/src/providers/IconProvider/IconProvider.tsx +46 -0
- package/src/providers/IconProvider/index.ts +4 -0
- package/src/providers/ThemeProvider/ThemeProvider.tsx +17 -0
- package/src/styles/calendarTheme.ts +24 -0
- package/src/styles/colors.ts +119 -0
- package/src/styles/globalStyles.ts +36 -0
- package/src/styles/space.ts +27 -0
- package/src/styles/theme.ts +609 -0
- package/src/utils/locale.ts +50 -0
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ficTheme = exports.ficDarkTheme = exports.defaultTheme = void 0;
|
|
7
|
+
var _themes = require("../components/buttons/FicButton/themes");
|
|
8
|
+
var _dark = _interopRequireDefault(require("../components/buttons/FicButton/themes/dark"));
|
|
9
|
+
var _themes2 = require("../components/notifications/Banner/themes");
|
|
10
|
+
var _colors = require("./colors");
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
// this is the right import but the package does not like it
|
|
13
|
+
// we can use it to extends our CalendarThemeProps
|
|
14
|
+
// import { Theme } from 'react-native-calendars/src/types';
|
|
15
|
+
|
|
16
|
+
const ficTheme = exports.ficTheme = {
|
|
17
|
+
banner: _themes2.bannerLightTheme,
|
|
18
|
+
generic: {
|
|
19
|
+
backgroundLevel0: _colors.Colors.WHITE,
|
|
20
|
+
backgroundLevel1: _colors.Colors.GREY_1,
|
|
21
|
+
backgroundLevel2: _colors.Colors.GREY_2,
|
|
22
|
+
backgroundLevel3: _colors.Colors.GREY_3,
|
|
23
|
+
backgroundLevel4: _colors.Colors.GREY_4,
|
|
24
|
+
title: _colors.Colors.BLACK_80,
|
|
25
|
+
description: _colors.Colors.BLACK_64,
|
|
26
|
+
disabledTitle: _colors.Colors.BLACK_40,
|
|
27
|
+
disabledDescription: _colors.Colors.BLACK_24,
|
|
28
|
+
divider: _colors.Colors.GREY_2,
|
|
29
|
+
cardBackground: _colors.Colors.WHITE
|
|
30
|
+
},
|
|
31
|
+
primaries: {
|
|
32
|
+
azure: _colors.Colors.AZURE,
|
|
33
|
+
red: _colors.Colors.RED,
|
|
34
|
+
green: _colors.Colors.GREEN,
|
|
35
|
+
yellow: _colors.Colors.YELLOW,
|
|
36
|
+
purple: _colors.Colors.PURPLE,
|
|
37
|
+
blue: _colors.Colors.BLUE
|
|
38
|
+
},
|
|
39
|
+
primariesContrast: {
|
|
40
|
+
azure: _colors.Colors.WHITE,
|
|
41
|
+
red: _colors.Colors.WHITE,
|
|
42
|
+
green: _colors.Colors.WHITE,
|
|
43
|
+
yellow: _colors.Colors.BLACK_80,
|
|
44
|
+
purple: _colors.Colors.WHITE,
|
|
45
|
+
blue: _colors.Colors.WHITE
|
|
46
|
+
},
|
|
47
|
+
primariesLight: {
|
|
48
|
+
azure: _colors.Colors.AZURE_L1,
|
|
49
|
+
red: _colors.Colors.RED_L1,
|
|
50
|
+
green: _colors.Colors.GREEN_L1,
|
|
51
|
+
yellow: _colors.Colors.YELLOW_L1,
|
|
52
|
+
purple: _colors.Colors.PURPLE_L1,
|
|
53
|
+
blue: _colors.Colors.BLUE_L1
|
|
54
|
+
},
|
|
55
|
+
primariesDark: {
|
|
56
|
+
azure: _colors.Colors.AZURE_D1,
|
|
57
|
+
red: _colors.Colors.RED_D2,
|
|
58
|
+
green: _colors.Colors.GREEN_D2,
|
|
59
|
+
yellow: _colors.Colors.YELLOW_D2,
|
|
60
|
+
purple: _colors.Colors.PURPLE_D1,
|
|
61
|
+
blue: _colors.Colors.BLUE_D1
|
|
62
|
+
},
|
|
63
|
+
ficButton: _themes.ficButtonLightTheme,
|
|
64
|
+
flatButton: {
|
|
65
|
+
color: _colors.Colors.BLACK_80,
|
|
66
|
+
disabledColor: _colors.Colors.GREY_2,
|
|
67
|
+
backgroundColor: _colors.Colors.WHITE,
|
|
68
|
+
hasShadow: true,
|
|
69
|
+
shadowColor: _colors.Colors.BLACK,
|
|
70
|
+
borderRadius: 4,
|
|
71
|
+
disabledStyle: {
|
|
72
|
+
backgroundColor: _colors.Colors.GREY_2,
|
|
73
|
+
elevation: 0,
|
|
74
|
+
shadowOffset: {
|
|
75
|
+
width: 0,
|
|
76
|
+
height: 0
|
|
77
|
+
},
|
|
78
|
+
shadowOpacity: 0
|
|
79
|
+
},
|
|
80
|
+
containerStyle: undefined
|
|
81
|
+
},
|
|
82
|
+
gradientButton: {
|
|
83
|
+
isHorizontalGradient: false,
|
|
84
|
+
color: _colors.Colors.WHITE,
|
|
85
|
+
disabledColor: _colors.Colors.GREY_2,
|
|
86
|
+
backgroundColors: [_colors.Colors.AZURE_L2, _colors.Colors.AZURE],
|
|
87
|
+
disabledBackgroundColors: [_colors.Colors.WHITE, _colors.Colors.WHITE],
|
|
88
|
+
hasShadow: true,
|
|
89
|
+
shadowColor: _colors.Colors.BLACK,
|
|
90
|
+
borderRadius: 4,
|
|
91
|
+
disabledStyle: undefined,
|
|
92
|
+
containerStyle: undefined
|
|
93
|
+
},
|
|
94
|
+
outlineButton: {
|
|
95
|
+
color: _colors.Colors.AZURE,
|
|
96
|
+
disabledColor: _colors.Colors.GREY_2,
|
|
97
|
+
backgroundColor: _colors.Colors.WHITE,
|
|
98
|
+
disabledBackgroundColor: _colors.Colors.WHITE,
|
|
99
|
+
borderColor: _colors.Colors.AZURE_L2,
|
|
100
|
+
disabledBorderColor: _colors.Colors.WHITE,
|
|
101
|
+
hasShadow: true,
|
|
102
|
+
shadowColor: _colors.Colors.BLACK,
|
|
103
|
+
borderRadius: 4,
|
|
104
|
+
disabledStyle: {
|
|
105
|
+
backgroundColor: _colors.Colors.GREY_2,
|
|
106
|
+
elevation: 0,
|
|
107
|
+
shadowOffset: {
|
|
108
|
+
width: 0,
|
|
109
|
+
height: 0
|
|
110
|
+
},
|
|
111
|
+
shadowOpacity: 0
|
|
112
|
+
},
|
|
113
|
+
containerStyle: {
|
|
114
|
+
justifyContent: 'center',
|
|
115
|
+
alignItems: 'center',
|
|
116
|
+
alignSelf: 'center',
|
|
117
|
+
height: 40,
|
|
118
|
+
backgroundColor: _colors.Colors.WHITE,
|
|
119
|
+
borderRadius: 4
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
textInput: {
|
|
123
|
+
color: _colors.Colors.BLACK_64,
|
|
124
|
+
labelColor: _colors.Colors.BLACK_40,
|
|
125
|
+
mandatoryIndicatorColor: _colors.Colors.RED,
|
|
126
|
+
placeholderColor: _colors.Colors.BLACK_40,
|
|
127
|
+
inlineLeadingColor: _colors.Colors.BLACK_40,
|
|
128
|
+
fieldIconColor: _colors.Colors.BLACK_40,
|
|
129
|
+
borderColor: _colors.Colors.GREY_3,
|
|
130
|
+
focusedBorderColor: _colors.Colors.AZURE,
|
|
131
|
+
erroredBorderColor: _colors.Colors.RED,
|
|
132
|
+
warningBorderColor: _colors.Colors.YELLOW_D1,
|
|
133
|
+
disabledBorderColor: 'transparent',
|
|
134
|
+
backgroundColor: _colors.Colors.WHITE,
|
|
135
|
+
disabledBackgroundColor: _colors.Colors.GREY_1
|
|
136
|
+
},
|
|
137
|
+
typographies: {
|
|
138
|
+
bodyColor: _colors.Colors.BLACK_80,
|
|
139
|
+
buttonTitleColor: _colors.Colors.BLACK_80,
|
|
140
|
+
calloutColor: _colors.Colors.BLACK_64,
|
|
141
|
+
captionOneColor: _colors.Colors.BLACK_64,
|
|
142
|
+
captionTwoColor: _colors.Colors.BLACK_64,
|
|
143
|
+
footnoteColor: _colors.Colors.BLACK_64,
|
|
144
|
+
headlineColor: _colors.Colors.BLACK,
|
|
145
|
+
largeTitleColor: _colors.Colors.BLACK,
|
|
146
|
+
subheadColor: _colors.Colors.BLACK_64,
|
|
147
|
+
titleOneColor: _colors.Colors.BLACK,
|
|
148
|
+
titleTwoColor: _colors.Colors.BLACK,
|
|
149
|
+
titleThreeColor: _colors.Colors.BLACK
|
|
150
|
+
},
|
|
151
|
+
touchables: {
|
|
152
|
+
rippleColors: _colors.Colors.GREY_2,
|
|
153
|
+
highlightColor: _colors.Colors.GREY_3
|
|
154
|
+
},
|
|
155
|
+
searchBar: {
|
|
156
|
+
color: _colors.Colors.BLACK,
|
|
157
|
+
backgroundColor: _colors.Colors.GREY_1,
|
|
158
|
+
iconColor: _colors.Colors.GREY_4,
|
|
159
|
+
selectionColor: _colors.Colors.AZURE,
|
|
160
|
+
useTextColor: _colors.Colors.GREY_4,
|
|
161
|
+
errorColor: _colors.Colors.RED
|
|
162
|
+
},
|
|
163
|
+
datePickers: {
|
|
164
|
+
calendarBackground: _colors.Colors.WHITE,
|
|
165
|
+
backgroundColor: _colors.Colors.WHITE,
|
|
166
|
+
arrowColor: _colors.Colors.AZURE,
|
|
167
|
+
selectedDayBackgroundColor: _colors.Colors.AZURE,
|
|
168
|
+
selectedDayTextColor: _colors.Colors.WHITE,
|
|
169
|
+
selectedDotColor: _colors.Colors.WHITE,
|
|
170
|
+
dayTextColor: _colors.Colors.BLACK,
|
|
171
|
+
monthTextColor: _colors.Colors.AZURE,
|
|
172
|
+
todayTextColor: _colors.Colors.AZURE,
|
|
173
|
+
todayBackgroundColor: _colors.Colors.AZURE_L1,
|
|
174
|
+
textMonthFontWeight: '500',
|
|
175
|
+
textMonthFontSize: 17,
|
|
176
|
+
textDayFontSize: 17,
|
|
177
|
+
textSectionTitleColor: _colors.Colors.GREY_3,
|
|
178
|
+
textDisabledColor: _colors.Colors.GREY_2,
|
|
179
|
+
indicatorColor: _colors.Colors.AZURE,
|
|
180
|
+
dotColor: _colors.Colors.AZURE
|
|
181
|
+
},
|
|
182
|
+
pickers: {
|
|
183
|
+
activeColor: _colors.Colors.BLACK,
|
|
184
|
+
inactiveColor: _colors.Colors.BLACK_40,
|
|
185
|
+
labelColor: _colors.Colors.BLACK_64,
|
|
186
|
+
guidesColor: _colors.Colors.GREY_2
|
|
187
|
+
},
|
|
188
|
+
bottomSheet: {
|
|
189
|
+
backgroundColor: _colors.Colors.WHITE,
|
|
190
|
+
backdropColor: _colors.Colors.BLACK,
|
|
191
|
+
cancelButtonBackgroundColor: _colors.Colors.WHITE,
|
|
192
|
+
handleIndicator: {
|
|
193
|
+
backgroundColor: _colors.Colors.GREY_3
|
|
194
|
+
},
|
|
195
|
+
header: {
|
|
196
|
+
backgroundColor: _colors.Colors.AZURE,
|
|
197
|
+
emptyHeaderBackgroundColor: _colors.Colors.WHITE,
|
|
198
|
+
buttonsColor: _colors.Colors.WHITE,
|
|
199
|
+
titleColor: _colors.Colors.WHITE,
|
|
200
|
+
captionColor: _colors.Colors.WHITE_80,
|
|
201
|
+
descriptionColor: _colors.Colors.WHITE_80,
|
|
202
|
+
handleColor: _colors.Colors.AZURE_L3,
|
|
203
|
+
darkHandleColor: _colors.Colors.GREY_3,
|
|
204
|
+
loaderColor: _colors.Colors.AZURE
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
yearMonthPickers: {
|
|
208
|
+
backgroundColor: _colors.Colors.WHITE,
|
|
209
|
+
arrowsColor: _colors.Colors.AZURE,
|
|
210
|
+
yearColor: _colors.Colors.AZURE,
|
|
211
|
+
monthsTextColor: _colors.Colors.GREY_4,
|
|
212
|
+
selectedMonthTextColor: _colors.Colors.WHITE,
|
|
213
|
+
selectedMonthBackgroundColor: _colors.Colors.AZURE,
|
|
214
|
+
currentMonthTextColor: _colors.Colors.AZURE,
|
|
215
|
+
currentMonthBackgroundColor: _colors.Colors.AZURE_L1
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
const ficDarkTheme = exports.ficDarkTheme = {
|
|
219
|
+
banner: _themes2.bannerDarkTheme,
|
|
220
|
+
generic: {
|
|
221
|
+
backgroundLevel0: _colors.Colors.ELEVATION_1,
|
|
222
|
+
backgroundLevel1: _colors.Colors.ELEVATION_2,
|
|
223
|
+
backgroundLevel2: _colors.Colors.ELEVATION_3,
|
|
224
|
+
backgroundLevel3: _colors.Colors.ELEVATION_4,
|
|
225
|
+
backgroundLevel4: _colors.Colors.ELEVATION_5,
|
|
226
|
+
title: _colors.Colors.WHITE,
|
|
227
|
+
description: _colors.Colors.WHITE_80,
|
|
228
|
+
disabledTitle: _colors.Colors.WHITE_64,
|
|
229
|
+
disabledDescription: _colors.Colors.WHITE_40,
|
|
230
|
+
divider: _colors.Colors.WHITE_8,
|
|
231
|
+
cardBackground: _colors.Colors.ELEVATION_3
|
|
232
|
+
},
|
|
233
|
+
primaries: {
|
|
234
|
+
azure: _colors.Colors.AZURE_K,
|
|
235
|
+
red: _colors.Colors.RED_K_D1,
|
|
236
|
+
green: _colors.Colors.GREEN_K,
|
|
237
|
+
yellow: _colors.Colors.YELLOW,
|
|
238
|
+
purple: _colors.Colors.PURPLE_K,
|
|
239
|
+
blue: _colors.Colors.BLUE_K
|
|
240
|
+
},
|
|
241
|
+
primariesContrast: {
|
|
242
|
+
azure: _colors.Colors.WHITE,
|
|
243
|
+
red: _colors.Colors.WHITE,
|
|
244
|
+
green: _colors.Colors.BLACK_80,
|
|
245
|
+
yellow: _colors.Colors.BLACK_80,
|
|
246
|
+
purple: _colors.Colors.WHITE,
|
|
247
|
+
blue: _colors.Colors.WHITE
|
|
248
|
+
},
|
|
249
|
+
primariesLight: {
|
|
250
|
+
azure: _colors.Colors.AZURE_K_L1,
|
|
251
|
+
red: _colors.Colors.RED_K_L1,
|
|
252
|
+
green: _colors.Colors.GREEN_K_L1,
|
|
253
|
+
yellow: _colors.Colors.YELLOW_L1,
|
|
254
|
+
purple: _colors.Colors.PURPLE_L1,
|
|
255
|
+
blue: _colors.Colors.BLUE_K_L1
|
|
256
|
+
},
|
|
257
|
+
primariesDark: {
|
|
258
|
+
azure: _colors.Colors.AZURE_K_D1,
|
|
259
|
+
red: _colors.Colors.RED_K_D2,
|
|
260
|
+
green: _colors.Colors.GREEN_K_D2,
|
|
261
|
+
yellow: _colors.Colors.YELLOW_D2,
|
|
262
|
+
purple: _colors.Colors.PURPLE_D1,
|
|
263
|
+
blue: _colors.Colors.BLUE_K_D1
|
|
264
|
+
},
|
|
265
|
+
ficButton: _dark.default,
|
|
266
|
+
flatButton: {
|
|
267
|
+
color: _colors.Colors.WHITE,
|
|
268
|
+
disabledColor: _colors.Colors.WHITE_40,
|
|
269
|
+
backgroundColor: _colors.Colors.ELEVATION_1,
|
|
270
|
+
hasShadow: true,
|
|
271
|
+
shadowColor: _colors.Colors.BLACK,
|
|
272
|
+
borderRadius: 4,
|
|
273
|
+
disabledStyle: {
|
|
274
|
+
backgroundColor: _colors.Colors.ELEVATION_2,
|
|
275
|
+
elevation: 0,
|
|
276
|
+
shadowOffset: {
|
|
277
|
+
width: 0,
|
|
278
|
+
height: 0
|
|
279
|
+
},
|
|
280
|
+
shadowOpacity: 0
|
|
281
|
+
},
|
|
282
|
+
containerStyle: undefined
|
|
283
|
+
},
|
|
284
|
+
gradientButton: {
|
|
285
|
+
isHorizontalGradient: false,
|
|
286
|
+
color: _colors.Colors.WHITE,
|
|
287
|
+
disabledColor: _colors.Colors.WHITE_40,
|
|
288
|
+
backgroundColors: [_colors.Colors.AZURE_K_L2, _colors.Colors.AZURE_K],
|
|
289
|
+
disabledBackgroundColors: [_colors.Colors.ELEVATION_2, _colors.Colors.ELEVATION_2],
|
|
290
|
+
hasShadow: true,
|
|
291
|
+
shadowColor: _colors.Colors.BLACK,
|
|
292
|
+
borderRadius: 4,
|
|
293
|
+
disabledStyle: undefined,
|
|
294
|
+
containerStyle: undefined
|
|
295
|
+
},
|
|
296
|
+
outlineButton: {
|
|
297
|
+
color: _colors.Colors.AZURE_K,
|
|
298
|
+
disabledColor: _colors.Colors.WHITE_40,
|
|
299
|
+
backgroundColor: _colors.Colors.ELEVATION_1,
|
|
300
|
+
disabledBackgroundColor: _colors.Colors.WHITE_24,
|
|
301
|
+
borderColor: _colors.Colors.AZURE_K,
|
|
302
|
+
disabledBorderColor: _colors.Colors.WHITE_24,
|
|
303
|
+
hasShadow: true,
|
|
304
|
+
shadowColor: _colors.Colors.BLACK,
|
|
305
|
+
borderRadius: 4,
|
|
306
|
+
disabledStyle: {
|
|
307
|
+
backgroundColor: _colors.Colors.ELEVATION_2,
|
|
308
|
+
elevation: 0,
|
|
309
|
+
shadowOffset: {
|
|
310
|
+
width: 0,
|
|
311
|
+
height: 0
|
|
312
|
+
},
|
|
313
|
+
shadowOpacity: 0
|
|
314
|
+
},
|
|
315
|
+
containerStyle: {
|
|
316
|
+
justifyContent: 'center',
|
|
317
|
+
alignItems: 'center',
|
|
318
|
+
alignSelf: 'center',
|
|
319
|
+
height: 40,
|
|
320
|
+
backgroundColor: _colors.Colors.ELEVATION_1,
|
|
321
|
+
borderRadius: 4
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
textInput: {
|
|
325
|
+
color: _colors.Colors.WHITE,
|
|
326
|
+
labelColor: _colors.Colors.WHITE_64,
|
|
327
|
+
mandatoryIndicatorColor: _colors.Colors.RED_K,
|
|
328
|
+
placeholderColor: _colors.Colors.WHITE_64,
|
|
329
|
+
inlineLeadingColor: _colors.Colors.WHITE_80,
|
|
330
|
+
fieldIconColor: _colors.Colors.WHITE_64,
|
|
331
|
+
borderColor: _colors.Colors.ELEVATION_5,
|
|
332
|
+
focusedBorderColor: _colors.Colors.AZURE_K_L3,
|
|
333
|
+
erroredBorderColor: _colors.Colors.RED_K,
|
|
334
|
+
warningBorderColor: _colors.Colors.YELLOW,
|
|
335
|
+
disabledBorderColor: 'transparent',
|
|
336
|
+
backgroundColor: _colors.Colors.ELEVATION_2,
|
|
337
|
+
disabledBackgroundColor: _colors.Colors.WHITE_8
|
|
338
|
+
},
|
|
339
|
+
typographies: {
|
|
340
|
+
bodyColor: _colors.Colors.WHITE_80,
|
|
341
|
+
buttonTitleColor: _colors.Colors.WHITE,
|
|
342
|
+
calloutColor: _colors.Colors.WHITE_64,
|
|
343
|
+
captionOneColor: _colors.Colors.WHITE_64,
|
|
344
|
+
captionTwoColor: _colors.Colors.WHITE_64,
|
|
345
|
+
footnoteColor: _colors.Colors.WHITE_64,
|
|
346
|
+
headlineColor: _colors.Colors.WHITE,
|
|
347
|
+
largeTitleColor: _colors.Colors.WHITE,
|
|
348
|
+
subheadColor: _colors.Colors.WHITE_64,
|
|
349
|
+
titleOneColor: _colors.Colors.WHITE,
|
|
350
|
+
titleTwoColor: _colors.Colors.WHITE,
|
|
351
|
+
titleThreeColor: _colors.Colors.WHITE
|
|
352
|
+
},
|
|
353
|
+
touchables: {
|
|
354
|
+
rippleColors: _colors.Colors.ELEVATION_3,
|
|
355
|
+
highlightColor: _colors.Colors.ELEVATION_4
|
|
356
|
+
},
|
|
357
|
+
searchBar: {
|
|
358
|
+
color: _colors.Colors.WHITE_64,
|
|
359
|
+
backgroundColor: _colors.Colors.ELEVATION_4,
|
|
360
|
+
iconColor: _colors.Colors.WHITE_80,
|
|
361
|
+
selectionColor: _colors.Colors.AZURE_K,
|
|
362
|
+
useTextColor: _colors.Colors.WHITE_40,
|
|
363
|
+
errorColor: _colors.Colors.RED_K
|
|
364
|
+
},
|
|
365
|
+
datePickers: {
|
|
366
|
+
calendarBackground: _colors.Colors.ELEVATION_1,
|
|
367
|
+
backgroundColor: _colors.Colors.ELEVATION_1,
|
|
368
|
+
arrowColor: _colors.Colors.AZURE_K,
|
|
369
|
+
selectedDayBackgroundColor: _colors.Colors.AZURE_K,
|
|
370
|
+
selectedDayTextColor: _colors.Colors.WHITE,
|
|
371
|
+
selectedDotColor: _colors.Colors.WHITE,
|
|
372
|
+
dayTextColor: _colors.Colors.WHITE,
|
|
373
|
+
monthTextColor: _colors.Colors.AZURE_K,
|
|
374
|
+
todayTextColor: _colors.Colors.AZURE_K,
|
|
375
|
+
todayBackgroundColor: _colors.Colors.AZURE_K_L1,
|
|
376
|
+
textMonthFontWeight: '500',
|
|
377
|
+
textMonthFontSize: 17,
|
|
378
|
+
textDayFontSize: 17,
|
|
379
|
+
textSectionTitleColor: _colors.Colors.ELEVATION_3,
|
|
380
|
+
textDisabledColor: _colors.Colors.ELEVATION_2,
|
|
381
|
+
indicatorColor: _colors.Colors.AZURE_K,
|
|
382
|
+
dotColor: _colors.Colors.AZURE_K
|
|
383
|
+
},
|
|
384
|
+
pickers: {
|
|
385
|
+
activeColor: _colors.Colors.WHITE,
|
|
386
|
+
inactiveColor: _colors.Colors.WHITE_64,
|
|
387
|
+
labelColor: _colors.Colors.WHITE_80,
|
|
388
|
+
guidesColor: _colors.Colors.WHITE_8
|
|
389
|
+
},
|
|
390
|
+
bottomSheet: {
|
|
391
|
+
backgroundColor: _colors.Colors.ELEVATION_1,
|
|
392
|
+
backdropColor: _colors.Colors.BACKDROP,
|
|
393
|
+
cancelButtonBackgroundColor: _colors.Colors.ELEVATION_1,
|
|
394
|
+
handleIndicator: {
|
|
395
|
+
backgroundColor: _colors.Colors.ELEVATION_5
|
|
396
|
+
},
|
|
397
|
+
header: {
|
|
398
|
+
backgroundColor: _colors.Colors.AZURE_K,
|
|
399
|
+
emptyHeaderBackgroundColor: _colors.Colors.ELEVATION_1,
|
|
400
|
+
buttonsColor: _colors.Colors.WHITE,
|
|
401
|
+
titleColor: _colors.Colors.WHITE,
|
|
402
|
+
captionColor: _colors.Colors.WHITE_80,
|
|
403
|
+
descriptionColor: _colors.Colors.WHITE_80,
|
|
404
|
+
handleColor: _colors.Colors.AZURE_K,
|
|
405
|
+
darkHandleColor: _colors.Colors.ELEVATION_4,
|
|
406
|
+
loaderColor: _colors.Colors.AZURE_K
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
yearMonthPickers: {
|
|
410
|
+
backgroundColor: _colors.Colors.ELEVATION_1,
|
|
411
|
+
arrowsColor: _colors.Colors.AZURE_K,
|
|
412
|
+
yearColor: _colors.Colors.AZURE_K,
|
|
413
|
+
monthsTextColor: _colors.Colors.ELEVATION_2,
|
|
414
|
+
selectedMonthTextColor: _colors.Colors.WHITE,
|
|
415
|
+
selectedMonthBackgroundColor: _colors.Colors.AZURE_K,
|
|
416
|
+
currentMonthTextColor: _colors.Colors.AZURE_K,
|
|
417
|
+
currentMonthBackgroundColor: _colors.Colors.AZURE_K_L1
|
|
418
|
+
}
|
|
419
|
+
};
|
|
420
|
+
const defaultTheme = exports.defaultTheme = ficTheme;
|
|
421
|
+
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_themes","require","_dark","_interopRequireDefault","_themes2","_colors","e","__esModule","default","ficTheme","exports","banner","bannerLightTheme","generic","backgroundLevel0","Colors","WHITE","backgroundLevel1","GREY_1","backgroundLevel2","GREY_2","backgroundLevel3","GREY_3","backgroundLevel4","GREY_4","title","BLACK_80","description","BLACK_64","disabledTitle","BLACK_40","disabledDescription","BLACK_24","divider","cardBackground","primaries","azure","AZURE","red","RED","green","GREEN","yellow","YELLOW","purple","PURPLE","blue","BLUE","primariesContrast","primariesLight","AZURE_L1","RED_L1","GREEN_L1","YELLOW_L1","PURPLE_L1","BLUE_L1","primariesDark","AZURE_D1","RED_D2","GREEN_D2","YELLOW_D2","PURPLE_D1","BLUE_D1","ficButton","ficButtonLightTheme","flatButton","color","disabledColor","backgroundColor","hasShadow","shadowColor","BLACK","borderRadius","disabledStyle","elevation","shadowOffset","width","height","shadowOpacity","containerStyle","undefined","gradientButton","isHorizontalGradient","backgroundColors","AZURE_L2","disabledBackgroundColors","outlineButton","disabledBackgroundColor","borderColor","disabledBorderColor","justifyContent","alignItems","alignSelf","textInput","labelColor","mandatoryIndicatorColor","placeholderColor","inlineLeadingColor","fieldIconColor","focusedBorderColor","erroredBorderColor","warningBorderColor","YELLOW_D1","typographies","bodyColor","buttonTitleColor","calloutColor","captionOneColor","captionTwoColor","footnoteColor","headlineColor","largeTitleColor","subheadColor","titleOneColor","titleTwoColor","titleThreeColor","touchables","rippleColors","highlightColor","searchBar","iconColor","selectionColor","useTextColor","errorColor","datePickers","calendarBackground","arrowColor","selectedDayBackgroundColor","selectedDayTextColor","selectedDotColor","dayTextColor","monthTextColor","todayTextColor","todayBackgroundColor","textMonthFontWeight","textMonthFontSize","textDayFontSize","textSectionTitleColor","textDisabledColor","indicatorColor","dotColor","pickers","activeColor","inactiveColor","guidesColor","bottomSheet","backdropColor","cancelButtonBackgroundColor","handleIndicator","header","emptyHeaderBackgroundColor","buttonsColor","titleColor","captionColor","WHITE_80","descriptionColor","handleColor","AZURE_L3","darkHandleColor","loaderColor","yearMonthPickers","arrowsColor","yearColor","monthsTextColor","selectedMonthTextColor","selectedMonthBackgroundColor","currentMonthTextColor","currentMonthBackgroundColor","ficDarkTheme","bannerDarkTheme","ELEVATION_1","ELEVATION_2","ELEVATION_3","ELEVATION_4","ELEVATION_5","WHITE_64","WHITE_40","WHITE_8","AZURE_K","RED_K_D1","GREEN_K","PURPLE_K","BLUE_K","AZURE_K_L1","RED_K_L1","GREEN_K_L1","BLUE_K_L1","AZURE_K_D1","RED_K_D2","GREEN_K_D2","BLUE_K_D1","ficButtonDarkTheme","AZURE_K_L2","WHITE_24","RED_K","AZURE_K_L3","BACKDROP","defaultTheme"],"sourceRoot":"../../../src","sources":["styles/theme.ts"],"mappings":";;;;;;AAOA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,QAAA,GAAAH,OAAA;AAKA,IAAAI,OAAA,GAAAJ,OAAA;AAAkC,SAAAE,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAblC;AACA;AACA;;AAkNO,MAAMG,QAAe,GAAAC,OAAA,CAAAD,QAAA,GAAG;EAC7BE,MAAM,EAAEC,yBAAgB;EAExBC,OAAO,EAAE;IACPC,gBAAgB,EAAEC,cAAM,CAACC,KAAK;IAC9BC,gBAAgB,EAAEF,cAAM,CAACG,MAAM;IAC/BC,gBAAgB,EAAEJ,cAAM,CAACK,MAAM;IAC/BC,gBAAgB,EAAEN,cAAM,CAACO,MAAM;IAC/BC,gBAAgB,EAAER,cAAM,CAACS,MAAM;IAC/BC,KAAK,EAAEV,cAAM,CAACW,QAAQ;IACtBC,WAAW,EAAEZ,cAAM,CAACa,QAAQ;IAC5BC,aAAa,EAAEd,cAAM,CAACe,QAAQ;IAC9BC,mBAAmB,EAAEhB,cAAM,CAACiB,QAAQ;IACpCC,OAAO,EAAElB,cAAM,CAACK,MAAM;IACtBc,cAAc,EAAEnB,cAAM,CAACC;EACzB,CAAC;EACDmB,SAAS,EAAE;IACTC,KAAK,EAAErB,cAAM,CAACsB,KAAK;IACnBC,GAAG,EAAEvB,cAAM,CAACwB,GAAG;IACfC,KAAK,EAA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cAAM,CAAC2I,QAAQ;MAC7BC,gBAAgB,EAAE5I,cAAM,CAAC2I,QAAQ;MACjCE,WAAW,EAAE7I,cAAM,CAACmK,OAAO;MAC3BpB,eAAe,EAAE/I,cAAM,CAAC8J,WAAW;MACnCd,WAAW,EAAEhJ,cAAM,CAACmK;IACtB;EACF,CAAC;EACDlB,gBAAgB,EAAE;IAChB5F,eAAe,EAAErD,cAAM,CAAC2J,WAAW;IACnCT,WAAW,EAAElJ,cAAM,CAACmK,OAAO;IAC3BhB,SAAS,EAAEnJ,cAAM,CAACmK,OAAO;IACzBf,eAAe,EAAEpJ,cAAM,CAAC4J,WAAW;IACnCP,sBAAsB,EAAErJ,cAAM,CAACC,KAAK;IACpCqJ,4BAA4B,EAAEtJ,cAAM,CAACmK,OAAO;IAC5CZ,qBAAqB,EAAEvJ,cAAM,CAACmK,OAAO;IACrCX,2BAA2B,EAAExJ,cAAM,CAACwK;EACtC;AACF,CAAC;AAEM,MAAMc,YAAmB,GAAA3L,OAAA,CAAA2L,YAAA,GAAG5L,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getDeviceLanguageAndRegion = exports.desiredLocale = exports.default = void 0;
|
|
7
|
+
var _lodash = require("lodash");
|
|
8
|
+
var _moment = _interopRequireDefault(require("moment"));
|
|
9
|
+
require("moment/min/locales");
|
|
10
|
+
var _reactNative = require("react-native");
|
|
11
|
+
var _reactNativeCalendars = require("react-native-calendars");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
const calendarLocaleConfig = localeCode => {
|
|
14
|
+
const momentLocale = _moment.default.localeData(localeCode);
|
|
15
|
+
return {
|
|
16
|
+
monthNames: capitalizeStringArray(momentLocale.months()),
|
|
17
|
+
monthNamesShort: capitalizeStringArray(momentLocale.monthsShort()),
|
|
18
|
+
dayNames: capitalizeStringArray(momentLocale.weekdays()),
|
|
19
|
+
dayNamesShort: capitalizeStringArray(momentLocale.weekdaysShort()),
|
|
20
|
+
today: 'Today'
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
const capitalizeStringArray = arr => {
|
|
24
|
+
return (0, _lodash.map)(arr, element => (0, _lodash.capitalize)(element));
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves the language and optionally the region settings of the device.
|
|
29
|
+
*
|
|
30
|
+
* @param {boolean} [withNoRegion] - If `true`, only the language is returned without the region.
|
|
31
|
+
* @returns {string} The language and region settings of the device.
|
|
32
|
+
* @example
|
|
33
|
+
* // Returns "it_IT" or "it" if `withNoRegion` is `true`
|
|
34
|
+
* const languageRegion = getDeviceLanguageAndRegion(true);
|
|
35
|
+
*/
|
|
36
|
+
const getDeviceLanguageAndRegion = withNoRegion => {
|
|
37
|
+
const language_region = _reactNative.Platform.OS === 'ios' ? _reactNative.NativeModules.SettingsManager.settings.AppleLocale || _reactNative.NativeModules.SettingsManager.settings.AppleLanguages[0] : _reactNative.NativeModules.I18nManager.localeIdentifier;
|
|
38
|
+
const language = language_region.split('_')[0];
|
|
39
|
+
return withNoRegion ? language : language_region;
|
|
40
|
+
};
|
|
41
|
+
exports.getDeviceLanguageAndRegion = getDeviceLanguageAndRegion;
|
|
42
|
+
let desiredLocale = exports.desiredLocale = undefined;
|
|
43
|
+
const setLocale = localeCode => {
|
|
44
|
+
_moment.default.locale(localeCode);
|
|
45
|
+
_reactNativeCalendars.LocaleConfig.locales[localeCode] = calendarLocaleConfig(localeCode);
|
|
46
|
+
_reactNativeCalendars.LocaleConfig.defaultLocale = localeCode;
|
|
47
|
+
exports.desiredLocale = desiredLocale = localeCode;
|
|
48
|
+
};
|
|
49
|
+
var _default = exports.default = setLocale;
|
|
50
|
+
//# sourceMappingURL=locale.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_lodash","require","_moment","_interopRequireDefault","_reactNative","_reactNativeCalendars","e","__esModule","default","calendarLocaleConfig","localeCode","momentLocale","moment","localeData","monthNames","capitalizeStringArray","months","monthNamesShort","monthsShort","dayNames","weekdays","dayNamesShort","weekdaysShort","today","arr","map","element","capitalize","getDeviceLanguageAndRegion","withNoRegion","language_region","Platform","OS","NativeModules","SettingsManager","settings","AppleLocale","AppleLanguages","I18nManager","localeIdentifier","language","split","exports","desiredLocale","undefined","setLocale","locale","LocaleConfig","locales","defaultLocale","_default"],"sourceRoot":"../../../src","sources":["utils/locale.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AACAA,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,qBAAA,GAAAJ,OAAA;AAAsD,SAAAE,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtD,MAAMG,oBAAoB,GAAIC,UAAkB,IAAK;EACnD,MAAMC,YAAY,GAAGC,eAAM,CAACC,UAAU,CAACH,UAAU,CAAC;EAElD,OAAO;IACLI,UAAU,EAAEC,qBAAqB,CAACJ,YAAY,CAACK,MAAM,CAAC,CAAC,CAAC;IACxDC,eAAe,EAAEF,qBAAqB,CAACJ,YAAY,CAACO,WAAW,CAAC,CAAC,CAAC;IAClEC,QAAQ,EAAEJ,qBAAqB,CAACJ,YAAY,CAACS,QAAQ,CAAC,CAAC,CAAC;IACxDC,aAAa,EAAEN,qBAAqB,CAACJ,YAAY,CAACW,aAAa,CAAC,CAAC,CAAC;IAClEC,KAAK,EAAE;EACT,CAAC;AACH,CAAC;AAED,MAAMR,qBAAqB,GAAIS,GAAa,IAAK;EAC/C,OAAO,IAAAC,WAAG,EAACD,GAAG,EAAEE,OAAO,IAAI,IAAAC,kBAAU,EAACD,OAAO,CAAC,CAAC;AACjD,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAME,0BAA0B,GAAIC,YAAsB,IAAa;EAC5E,MAAMC,eAAe,GACnBC,qBAAQ,CAACC,EAAE,KAAK,KAAK,GACjBC,0BAAa,CAACC,eAAe,CAACC,QAAQ,CAACC,WAAW,IAAIH,0BAAa,CAACC,eAAe,CAACC,QAAQ,CAACE,cAAc,CAAC,CAAC,CAAC,GAC9GJ,0BAAa,CAACK,WAAW,CAACC,gBAAgB;EAChD,MAAMC,QAAQ,GAAGV,eAAe,CAACW,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;EAC9C,OAAOZ,YAAY,GAAGW,QAAQ,GAAGV,eAAe;AAClD,CAAC;AAACY,OAAA,CAAAd,0BAAA,GAAAA,0BAAA;AAEK,IAAIe,aAAiC,GAAAD,OAAA,CAAAC,aAAA,GAAGC,SAAS;AAExD,MAAMC,SAAS,GAAInC,UAAkB,IAAK;EACxCE,eAAM,CAACkC,MAAM,CAACpC,UAAU,CAAC;EACzBqC,kCAAY,CAACC,OAAO,CAACtC,UAAU,CAAC,GAAGD,oBAAoB,CAACC,UAAU,CAAC;EACnEqC,kCAAY,CAACE,aAAa,GAAGvC,UAAU;EACvCgC,OAAA,CAAAC,aAAA,GAAAA,aAAa,GAAGjC,UAAU;AAC5B,CAAC;AAAC,IAAAwC,QAAA,GAAAR,OAAA,CAAAlC,OAAA,GAEaqC,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { StyleSheet, View } from 'react-native';
|
|
4
|
+
import { Colors } from '../../styles/colors';
|
|
5
|
+
import { CaptionOne } from '../typographies/CaptionOne';
|
|
6
|
+
const Tag = ({
|
|
7
|
+
text,
|
|
8
|
+
color = Colors.WHITE,
|
|
9
|
+
backgroundColor = Colors.GREY_4,
|
|
10
|
+
rounded = false,
|
|
11
|
+
children,
|
|
12
|
+
avoidUpperCase = false,
|
|
13
|
+
style,
|
|
14
|
+
...rest
|
|
15
|
+
}) => {
|
|
16
|
+
const finalText = text || (!!children && typeof children === 'string' ? children : undefined);
|
|
17
|
+
const containerStyle = [styles.container, {
|
|
18
|
+
backgroundColor,
|
|
19
|
+
borderRadius: rounded ? 100 : 4
|
|
20
|
+
}, style];
|
|
21
|
+
return /*#__PURE__*/React.createElement(View, _extends({
|
|
22
|
+
style: containerStyle
|
|
23
|
+
}, rest), finalText ? /*#__PURE__*/React.createElement(CaptionOne, {
|
|
24
|
+
color: color,
|
|
25
|
+
numberOfLines: 1
|
|
26
|
+
}, avoidUpperCase ? finalText : finalText.toUpperCase()) : children);
|
|
27
|
+
};
|
|
28
|
+
const styles = StyleSheet.create({
|
|
29
|
+
container: {
|
|
30
|
+
alignItems: 'center',
|
|
31
|
+
justifyContent: 'center',
|
|
32
|
+
paddingVertical: 2,
|
|
33
|
+
paddingHorizontal: 5
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export default Tag;
|
|
37
|
+
//# sourceMappingURL=Tag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","Colors","CaptionOne","Tag","text","color","WHITE","backgroundColor","GREY_4","rounded","children","avoidUpperCase","style","rest","finalText","undefined","containerStyle","styles","container","borderRadius","createElement","_extends","numberOfLines","toUpperCase","create","alignItems","justifyContent","paddingVertical","paddingHorizontal"],"sourceRoot":"../../../../src","sources":["components/Tag/Tag.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAC1D,SAASC,MAAM,QAAQ,qBAAqB;AAC5C,SAASC,UAAU,QAAQ,4BAA4B;AAWvD,MAAMC,GAAwB,GAAGA,CAAC;EAChCC,IAAI;EACJC,KAAK,GAAGJ,MAAM,CAACK,KAAK;EACpBC,eAAe,GAAGN,MAAM,CAACO,MAAM;EAC/BC,OAAO,GAAG,KAAK;EACfC,QAAQ;EACRC,cAAc,GAAG,KAAK;EACtBC,KAAK;EACL,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,SAAS,GACbV,IAAI,KAAK,CAAC,CAACM,QAAQ,IAAI,OAAOA,QAAQ,KAAK,QAAQ,GAAGA,QAAQ,GAAGK,SAAS,CAAC;EAE7E,MAAMC,cAAc,GAAG,CACrBC,MAAM,CAACC,SAAS,EAChB;IACEX,eAAe;IACfY,YAAY,EAAEV,OAAO,GAAG,GAAG,GAAG;EAChC,CAAC,EACDG,KAAK,CACN;EAED,oBACEd,KAAA,CAAAsB,aAAA,CAACpB,IAAI,EAAAqB,QAAA;IAACT,KAAK,EAAEI;EAAe,GAAKH,IAAI,GAClCC,SAAS,gBACRhB,KAAA,CAAAsB,aAAA,CAAClB,UAAU;IAACG,KAAK,EAAEA,KAAM;IAACiB,aAAa,EAAE;EAAE,GACxCX,cAAc,GAAGG,SAAS,GAAGA,SAAS,CAACS,WAAW,CAAC,CAC1C,CAAC,GAEbb,QAEE,CAAC;AAEX,CAAC;AAED,MAAMO,MAAM,GAAGlB,UAAU,CAACyB,MAAM,CAAC;EAC/BN,SAAS,EAAE;IACTO,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,eAAe,EAAE,CAAC;IAClBC,iBAAiB,EAAE;EACrB;AACF,CAAC,CAAC;AAEF,eAAezB,GAAG","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Tag"],"sourceRoot":"../../../../src","sources":["components/Tag/index.ts"],"mappings":"AAAA,OAAOA,GAAG,MAAM,OAAO;AAEvB,SAASA,GAAG","ignoreList":[]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
import { throttle } from 'lodash';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Platform, TouchableHighlight, TouchableNativeFeedback, TouchableOpacity, View } from 'react-native';
|
|
5
|
+
import { TouchableNativeFeedback as GHTouchableNativeFeedback } from 'react-native-gesture-handler';
|
|
6
|
+
import { useTheme } from '../../hooks/useTheme';
|
|
7
|
+
const Touchable = ({
|
|
8
|
+
onPress,
|
|
9
|
+
children,
|
|
10
|
+
style,
|
|
11
|
+
containerStyle,
|
|
12
|
+
disabled,
|
|
13
|
+
highlight = false,
|
|
14
|
+
borderless = false,
|
|
15
|
+
gestureHandler = true,
|
|
16
|
+
theme,
|
|
17
|
+
...rest
|
|
18
|
+
}) => {
|
|
19
|
+
const {
|
|
20
|
+
touchables: touchablesTheme
|
|
21
|
+
} = useTheme();
|
|
22
|
+
const {
|
|
23
|
+
rippleColors = touchablesTheme.rippleColors,
|
|
24
|
+
highlightColor = touchablesTheme.highlightColor
|
|
25
|
+
} = theme || {};
|
|
26
|
+
const onPressHandler = onPress && throttle(onPress, 300, {
|
|
27
|
+
trailing: false
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
// All Android Buttons should have the ripple effect
|
|
31
|
+
if (Platform.OS === 'android') {
|
|
32
|
+
if (!gestureHandler || disabled) {
|
|
33
|
+
return /*#__PURE__*/React.createElement(TouchableNativeFeedback, _extends({}, rest, {
|
|
34
|
+
onPress: onPressHandler,
|
|
35
|
+
background: TouchableNativeFeedback.Ripple(rippleColors, borderless),
|
|
36
|
+
useForeground: TouchableNativeFeedback.canUseNativeForeground(),
|
|
37
|
+
disabled: disabled
|
|
38
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
39
|
+
style: style
|
|
40
|
+
}, children));
|
|
41
|
+
} else {
|
|
42
|
+
return /*#__PURE__*/React.createElement(GHTouchableNativeFeedback, _extends({}, rest, {
|
|
43
|
+
onPress: onPressHandler
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
,
|
|
46
|
+
background: GHTouchableNativeFeedback.Ripple(rippleColors, borderless)
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
,
|
|
49
|
+
useForeground: GHTouchableNativeFeedback.canUseNativeForeground(),
|
|
50
|
+
disabled: disabled,
|
|
51
|
+
style: style
|
|
52
|
+
// @ts-ignore
|
|
53
|
+
,
|
|
54
|
+
containerStyle: containerStyle
|
|
55
|
+
}), children);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Normal iOS buttons use TouchableOpacity
|
|
60
|
+
return highlight ? /*#__PURE__*/React.createElement(TouchableHighlight, _extends({}, rest, {
|
|
61
|
+
onPress: onPressHandler,
|
|
62
|
+
disabled: disabled,
|
|
63
|
+
style: style,
|
|
64
|
+
underlayColor: highlightColor
|
|
65
|
+
}), children) : /*#__PURE__*/React.createElement(TouchableOpacity, _extends({}, rest, {
|
|
66
|
+
onPress: onPressHandler,
|
|
67
|
+
disabled: disabled,
|
|
68
|
+
style: style
|
|
69
|
+
}), children);
|
|
70
|
+
};
|
|
71
|
+
export default Touchable;
|
|
72
|
+
//# sourceMappingURL=Touchable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["throttle","React","Platform","TouchableHighlight","TouchableNativeFeedback","TouchableOpacity","View","GHTouchableNativeFeedback","useTheme","Touchable","onPress","children","style","containerStyle","disabled","highlight","borderless","gestureHandler","theme","rest","touchables","touchablesTheme","rippleColors","highlightColor","onPressHandler","trailing","OS","createElement","_extends","background","Ripple","useForeground","canUseNativeForeground","underlayColor"],"sourceRoot":"../../../../src","sources":["components/Touchable/Touchable.tsx"],"mappings":";AAAA,SAASA,QAAQ,QAAQ,QAAQ;AACjC,OAAOC,KAAK,MAA6B,OA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B,yBAAyB,EAAAqB,QAAA,KACpBT,IAAI;QACRT,OAAO,EAAEc;QACT;QAAA;QACAK,UAAU,EAAEtB,yBAAyB,CAACuB,MAAM,CAC1CR,YAAY,EACZN,UACF;QACA;QAAA;QACAe,aAAa,EAAExB,yBAAyB,CAACyB,sBAAsB,CAAC,CAAE;QAClElB,QAAQ,EAAEA,QAAS;QACnBF,KAAK,EAAEA;QACP;QAAA;QACAC,cAAc,EAAEA;MAAe,IAE9BF,QACwB,CAAC;IAEhC;EACF;;EAEA;EACA,OAAOI,SAAS,gBACdd,KAAA,CAAA0B,aAAA,CAACxB,kBAAkB,EAAAyB,QAAA,KACbT,IAAI;IACRT,OAAO,EAAEc,cAAe;IACxBV,QAAQ,EAAEA,QAAS;IACnBF,KAAK,EAAEA,KAAM;IACbqB,aAAa,EAAEV;EAAe,IAE7BZ,QACiB,CAAC,gBAErBV,KAAA,CAAA0B,aAAA,CAACtB,gBAAgB,EAAAuB,QAAA,KACXT,IAAI;IACRT,OAAO,EAAEc,cAAe;IACxBV,QAAQ,EAAEA,QAAS;IACnBF,KAAK,EAAEA;EAAM,IAEZD,QACe,CACnB;AACH,CAAC;AAED,eAAeF,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Touchable"],"sourceRoot":"../../../../src","sources":["components/Touchable/index.ts"],"mappings":"AAAA,OAAOA,SAAS,MAAM,aAAa;AAEnC,SAASA,SAAS","ignoreList":[]}
|