@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,273 @@
|
|
|
1
|
+
import { FlexAlignType } from 'react-native';
|
|
2
|
+
import { Colors } from '../../../../styles/colors';
|
|
3
|
+
import { BORDER_RADIUS } from '../../../../styles/space';
|
|
4
|
+
import { FicButtonTheme, GenericViewStyle } from '../FicButton.types';
|
|
5
|
+
import { FONT_SIZE } from '../constants';
|
|
6
|
+
|
|
7
|
+
const defaultContainerProps: GenericViewStyle = {
|
|
8
|
+
flexDirection: 'row',
|
|
9
|
+
alignSelf: 'flex-start',
|
|
10
|
+
justifyContent: 'center',
|
|
11
|
+
alignContent: 'center',
|
|
12
|
+
alignItems: 'center',
|
|
13
|
+
borderRadius: BORDER_RADIUS.SM
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const { alignContent, ...defaultIconContainerProps } = defaultContainerProps;
|
|
17
|
+
|
|
18
|
+
const iconContainerProps = {
|
|
19
|
+
...defaultIconContainerProps,
|
|
20
|
+
borderRadius: 1000,
|
|
21
|
+
alignSelf: 'center' as FlexAlignType
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const ficButtonDarkTheme: FicButtonTheme = {
|
|
25
|
+
primary: {
|
|
26
|
+
default: {
|
|
27
|
+
container: {
|
|
28
|
+
...defaultContainerProps,
|
|
29
|
+
backgroundColor: Colors.AZURE_K
|
|
30
|
+
},
|
|
31
|
+
text: {
|
|
32
|
+
color: Colors.ELEVATION_1
|
|
33
|
+
},
|
|
34
|
+
icon: {
|
|
35
|
+
color: Colors.ELEVATION_1
|
|
36
|
+
},
|
|
37
|
+
pressedStyle: {
|
|
38
|
+
container: {
|
|
39
|
+
...defaultContainerProps,
|
|
40
|
+
backgroundColor: Colors.AZURE_K_D1
|
|
41
|
+
},
|
|
42
|
+
text: {
|
|
43
|
+
color: Colors.ELEVATION_1
|
|
44
|
+
},
|
|
45
|
+
icon: {
|
|
46
|
+
color: Colors.ELEVATION_1
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
disabled: {
|
|
51
|
+
container: {
|
|
52
|
+
...defaultContainerProps,
|
|
53
|
+
backgroundColor: Colors.ELEVATION_4
|
|
54
|
+
},
|
|
55
|
+
text: {
|
|
56
|
+
color: Colors.ELEVATION_2
|
|
57
|
+
},
|
|
58
|
+
icon: {
|
|
59
|
+
color: Colors.ELEVATION_2
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
error: {
|
|
63
|
+
container: {
|
|
64
|
+
...defaultContainerProps,
|
|
65
|
+
backgroundColor: Colors.RED
|
|
66
|
+
},
|
|
67
|
+
text: {
|
|
68
|
+
color: Colors.WHITE
|
|
69
|
+
},
|
|
70
|
+
icon: {
|
|
71
|
+
color: Colors.WHITE
|
|
72
|
+
},
|
|
73
|
+
pressedStyle: {
|
|
74
|
+
container: {
|
|
75
|
+
...defaultContainerProps,
|
|
76
|
+
backgroundColor: Colors.RED_D1
|
|
77
|
+
},
|
|
78
|
+
text: {
|
|
79
|
+
color: Colors.WHITE
|
|
80
|
+
},
|
|
81
|
+
icon: {
|
|
82
|
+
color: Colors.WHITE
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
secondary: {
|
|
88
|
+
default: {
|
|
89
|
+
container: {
|
|
90
|
+
...defaultContainerProps,
|
|
91
|
+
backgroundColor: Colors.ELEVATION_1,
|
|
92
|
+
borderWidth: 1,
|
|
93
|
+
borderColor: Colors.AZURE_K
|
|
94
|
+
},
|
|
95
|
+
text: {
|
|
96
|
+
color: Colors.AZURE_K
|
|
97
|
+
},
|
|
98
|
+
icon: {
|
|
99
|
+
color: Colors.AZURE_K
|
|
100
|
+
},
|
|
101
|
+
pressedStyle: {
|
|
102
|
+
container: {
|
|
103
|
+
...defaultContainerProps,
|
|
104
|
+
backgroundColor: Colors.ELEVATION_2,
|
|
105
|
+
borderWidth: 1,
|
|
106
|
+
borderColor: Colors.AZURE_K
|
|
107
|
+
},
|
|
108
|
+
text: {
|
|
109
|
+
color: Colors.AZURE_K
|
|
110
|
+
},
|
|
111
|
+
icon: {
|
|
112
|
+
color: Colors.AZURE_K
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
disabled: {
|
|
117
|
+
container: {
|
|
118
|
+
...defaultContainerProps,
|
|
119
|
+
backgroundColor: Colors.ELEVATION_1,
|
|
120
|
+
borderWidth: 1,
|
|
121
|
+
borderColor: Colors.ELEVATION_4
|
|
122
|
+
},
|
|
123
|
+
text: {
|
|
124
|
+
color: Colors.ELEVATION_4
|
|
125
|
+
},
|
|
126
|
+
icon: {
|
|
127
|
+
color: Colors.ELEVATION_4
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
error: {
|
|
131
|
+
container: {
|
|
132
|
+
...defaultContainerProps,
|
|
133
|
+
backgroundColor: Colors.ELEVATION_1,
|
|
134
|
+
borderWidth: 1,
|
|
135
|
+
borderColor: Colors.RED_K_D1
|
|
136
|
+
},
|
|
137
|
+
text: {
|
|
138
|
+
color: Colors.RED_K_D1
|
|
139
|
+
},
|
|
140
|
+
icon: {
|
|
141
|
+
color: Colors.RED_K_D1
|
|
142
|
+
},
|
|
143
|
+
pressedStyle: {
|
|
144
|
+
container: {
|
|
145
|
+
...defaultContainerProps,
|
|
146
|
+
backgroundColor: Colors.ELEVATION_2,
|
|
147
|
+
borderWidth: 1,
|
|
148
|
+
borderColor: Colors.RED_K_D1
|
|
149
|
+
},
|
|
150
|
+
text: {
|
|
151
|
+
color: Colors.RED_K_D1
|
|
152
|
+
},
|
|
153
|
+
icon: {
|
|
154
|
+
color: Colors.RED_K_D1
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
tertiary: {
|
|
160
|
+
default: {
|
|
161
|
+
container: { ...defaultContainerProps, alignSelf: 'center' },
|
|
162
|
+
text: {
|
|
163
|
+
textDecorationLine: 'underline',
|
|
164
|
+
fontSize: FONT_SIZE,
|
|
165
|
+
color: Colors.AZURE_K
|
|
166
|
+
},
|
|
167
|
+
icon: {
|
|
168
|
+
color: Colors.AZURE_K
|
|
169
|
+
},
|
|
170
|
+
pressedStyle: {
|
|
171
|
+
container: {
|
|
172
|
+
...defaultContainerProps,
|
|
173
|
+
alignSelf: 'center',
|
|
174
|
+
backgroundColor: Colors.ELEVATION_4
|
|
175
|
+
},
|
|
176
|
+
text: {
|
|
177
|
+
textDecorationLine: 'underline',
|
|
178
|
+
fontSize: FONT_SIZE,
|
|
179
|
+
color: Colors.AZURE_K
|
|
180
|
+
},
|
|
181
|
+
icon: {
|
|
182
|
+
color: Colors.AZURE_K
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
disabled: {
|
|
187
|
+
container: { ...defaultContainerProps },
|
|
188
|
+
text: {
|
|
189
|
+
textDecorationLine: 'underline',
|
|
190
|
+
fontSize: FONT_SIZE,
|
|
191
|
+
color: Colors.ELEVATION_4
|
|
192
|
+
},
|
|
193
|
+
icon: {
|
|
194
|
+
color: Colors.ELEVATION_4
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
error: {
|
|
198
|
+
container: { ...defaultContainerProps, alignSelf: 'center' },
|
|
199
|
+
text: {
|
|
200
|
+
textDecorationLine: 'underline',
|
|
201
|
+
fontSize: FONT_SIZE,
|
|
202
|
+
color: Colors.RED_K_D1
|
|
203
|
+
},
|
|
204
|
+
icon: {
|
|
205
|
+
color: Colors.RED_K_D1
|
|
206
|
+
},
|
|
207
|
+
pressedStyle: {
|
|
208
|
+
container: {
|
|
209
|
+
...defaultContainerProps,
|
|
210
|
+
alignSelf: 'center',
|
|
211
|
+
backgroundColor: Colors.ELEVATION_4
|
|
212
|
+
},
|
|
213
|
+
text: {
|
|
214
|
+
textDecorationLine: 'underline',
|
|
215
|
+
fontSize: FONT_SIZE,
|
|
216
|
+
color: Colors.RED_K_D1
|
|
217
|
+
},
|
|
218
|
+
icon: {
|
|
219
|
+
color: Colors.RED_K_D1
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
icon: {
|
|
225
|
+
default: {
|
|
226
|
+
container: { ...iconContainerProps, alignSelf: 'flex-start' },
|
|
227
|
+
text: {},
|
|
228
|
+
icon: {
|
|
229
|
+
color: Colors.WHITE_80
|
|
230
|
+
},
|
|
231
|
+
pressedStyle: {
|
|
232
|
+
container: {
|
|
233
|
+
backgroundColor: Colors.ELEVATION_4,
|
|
234
|
+
justifyContent: 'center',
|
|
235
|
+
alignItems: 'center'
|
|
236
|
+
},
|
|
237
|
+
text: {},
|
|
238
|
+
icon: {
|
|
239
|
+
color: Colors.WHITE_80
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
disabled: {
|
|
244
|
+
container: { ...iconContainerProps },
|
|
245
|
+
text: {},
|
|
246
|
+
icon: {
|
|
247
|
+
color: Colors.ELEVATION_4
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
error: {
|
|
251
|
+
container: { ...iconContainerProps },
|
|
252
|
+
text: {},
|
|
253
|
+
icon: {
|
|
254
|
+
color: Colors.RED_K_D1
|
|
255
|
+
},
|
|
256
|
+
pressedStyle: {
|
|
257
|
+
container: {
|
|
258
|
+
position: 'absolute',
|
|
259
|
+
justifyContent: 'center',
|
|
260
|
+
alignItems: 'center',
|
|
261
|
+
borderRadius: 1000,
|
|
262
|
+
backgroundColor: Colors.ELEVATION_4
|
|
263
|
+
},
|
|
264
|
+
text: {},
|
|
265
|
+
icon: {
|
|
266
|
+
color: Colors.RED_K_D1
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
export default ficButtonDarkTheme;
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import { FlexAlignType } from 'react-native';
|
|
2
|
+
import { Colors } from '../../../../styles/colors';
|
|
3
|
+
import { BORDER_RADIUS } from '../../../../styles/space';
|
|
4
|
+
import { FicButtonTheme, GenericViewStyle } from '../FicButton.types';
|
|
5
|
+
import { FONT_SIZE } from '../constants';
|
|
6
|
+
|
|
7
|
+
const defaultContainerProps: GenericViewStyle = {
|
|
8
|
+
flexDirection: 'row',
|
|
9
|
+
alignSelf: 'flex-start',
|
|
10
|
+
justifyContent: 'center',
|
|
11
|
+
alignContent: 'center',
|
|
12
|
+
alignItems: 'center',
|
|
13
|
+
borderRadius: BORDER_RADIUS.SM
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const { alignContent, ...defaultIconContainerProps } = defaultContainerProps;
|
|
17
|
+
|
|
18
|
+
const iconContainerProps = {
|
|
19
|
+
...defaultIconContainerProps,
|
|
20
|
+
borderRadius: 1000,
|
|
21
|
+
alignSelf: 'center' as FlexAlignType
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const ficButtonLightTheme: FicButtonTheme = {
|
|
25
|
+
primary: {
|
|
26
|
+
default: {
|
|
27
|
+
container: {
|
|
28
|
+
...defaultContainerProps,
|
|
29
|
+
backgroundColor: Colors.AZURE
|
|
30
|
+
},
|
|
31
|
+
text: {
|
|
32
|
+
fontSize: FONT_SIZE,
|
|
33
|
+
color: Colors.WHITE
|
|
34
|
+
},
|
|
35
|
+
icon: {
|
|
36
|
+
color: Colors.WHITE
|
|
37
|
+
},
|
|
38
|
+
pressedStyle: {
|
|
39
|
+
container: {
|
|
40
|
+
...defaultContainerProps,
|
|
41
|
+
backgroundColor: Colors.AZURE_D1
|
|
42
|
+
},
|
|
43
|
+
text: {
|
|
44
|
+
fontSize: FONT_SIZE,
|
|
45
|
+
color: Colors.WHITE
|
|
46
|
+
},
|
|
47
|
+
icon: {
|
|
48
|
+
color: Colors.WHITE
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
disabled: {
|
|
53
|
+
container: {
|
|
54
|
+
...defaultContainerProps,
|
|
55
|
+
backgroundColor: Colors.GREY_2
|
|
56
|
+
},
|
|
57
|
+
text: {
|
|
58
|
+
fontSize: FONT_SIZE,
|
|
59
|
+
color: Colors.GREY_3
|
|
60
|
+
},
|
|
61
|
+
icon: {
|
|
62
|
+
color: Colors.GREY_3
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
error: {
|
|
66
|
+
container: {
|
|
67
|
+
...defaultContainerProps,
|
|
68
|
+
backgroundColor: Colors.RED
|
|
69
|
+
},
|
|
70
|
+
text: {
|
|
71
|
+
fontSize: FONT_SIZE,
|
|
72
|
+
color: Colors.WHITE
|
|
73
|
+
},
|
|
74
|
+
icon: {
|
|
75
|
+
color: Colors.WHITE
|
|
76
|
+
},
|
|
77
|
+
pressedStyle: {
|
|
78
|
+
container: {
|
|
79
|
+
...defaultContainerProps,
|
|
80
|
+
backgroundColor: Colors.RED_D2
|
|
81
|
+
},
|
|
82
|
+
text: {
|
|
83
|
+
fontSize: FONT_SIZE,
|
|
84
|
+
color: Colors.WHITE
|
|
85
|
+
},
|
|
86
|
+
icon: {
|
|
87
|
+
color: Colors.WHITE
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
secondary: {
|
|
93
|
+
default: {
|
|
94
|
+
container: {
|
|
95
|
+
...defaultContainerProps,
|
|
96
|
+
backgroundColor: Colors.WHITE,
|
|
97
|
+
borderWidth: 1,
|
|
98
|
+
borderColor: Colors.AZURE
|
|
99
|
+
},
|
|
100
|
+
text: {
|
|
101
|
+
fontSize: FONT_SIZE,
|
|
102
|
+
color: Colors.AZURE
|
|
103
|
+
},
|
|
104
|
+
icon: {
|
|
105
|
+
color: Colors.AZURE
|
|
106
|
+
},
|
|
107
|
+
pressedStyle: {
|
|
108
|
+
container: {
|
|
109
|
+
...defaultContainerProps,
|
|
110
|
+
backgroundColor: Colors.GREY_2,
|
|
111
|
+
borderWidth: 1,
|
|
112
|
+
borderColor: Colors.AZURE
|
|
113
|
+
},
|
|
114
|
+
text: {
|
|
115
|
+
fontSize: FONT_SIZE,
|
|
116
|
+
color: Colors.AZURE
|
|
117
|
+
},
|
|
118
|
+
icon: {
|
|
119
|
+
color: Colors.AZURE
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
disabled: {
|
|
124
|
+
container: {
|
|
125
|
+
...defaultContainerProps,
|
|
126
|
+
backgroundColor: Colors.WHITE,
|
|
127
|
+
borderWidth: 1,
|
|
128
|
+
borderColor: Colors.GREY_3
|
|
129
|
+
},
|
|
130
|
+
text: {
|
|
131
|
+
fontSize: FONT_SIZE,
|
|
132
|
+
color: Colors.GREY_3
|
|
133
|
+
},
|
|
134
|
+
icon: {
|
|
135
|
+
color: Colors.GREY_3
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
error: {
|
|
139
|
+
container: {
|
|
140
|
+
...defaultContainerProps,
|
|
141
|
+
backgroundColor: Colors.WHITE,
|
|
142
|
+
borderWidth: 1,
|
|
143
|
+
borderColor: Colors.RED
|
|
144
|
+
},
|
|
145
|
+
text: {
|
|
146
|
+
fontSize: FONT_SIZE,
|
|
147
|
+
color: Colors.RED
|
|
148
|
+
},
|
|
149
|
+
icon: {
|
|
150
|
+
color: Colors.RED
|
|
151
|
+
},
|
|
152
|
+
pressedStyle: {
|
|
153
|
+
container: {
|
|
154
|
+
...defaultContainerProps,
|
|
155
|
+
backgroundColor: Colors.RED_L1,
|
|
156
|
+
borderWidth: 1,
|
|
157
|
+
borderColor: Colors.RED
|
|
158
|
+
},
|
|
159
|
+
text: {
|
|
160
|
+
fontSize: FONT_SIZE,
|
|
161
|
+
color: Colors.RED
|
|
162
|
+
},
|
|
163
|
+
icon: {
|
|
164
|
+
color: Colors.RED
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
tertiary: {
|
|
170
|
+
default: {
|
|
171
|
+
container: { ...defaultContainerProps, alignSelf: 'center' },
|
|
172
|
+
text: {
|
|
173
|
+
textDecorationLine: 'underline',
|
|
174
|
+
fontSize: FONT_SIZE,
|
|
175
|
+
color: Colors.AZURE,
|
|
176
|
+
colorContrastForLightTheme: Colors.WHITE
|
|
177
|
+
},
|
|
178
|
+
icon: {
|
|
179
|
+
color: Colors.AZURE,
|
|
180
|
+
colorContrastForLightTheme: Colors.WHITE
|
|
181
|
+
},
|
|
182
|
+
pressedStyle: {
|
|
183
|
+
container: {
|
|
184
|
+
...defaultContainerProps,
|
|
185
|
+
alignSelf: 'center',
|
|
186
|
+
backgroundColor: Colors.BLACK_08
|
|
187
|
+
},
|
|
188
|
+
text: {
|
|
189
|
+
textDecorationLine: 'underline',
|
|
190
|
+
fontSize: FONT_SIZE,
|
|
191
|
+
color: Colors.AZURE,
|
|
192
|
+
colorContrastForLightTheme: Colors.WHITE
|
|
193
|
+
},
|
|
194
|
+
icon: {
|
|
195
|
+
color: Colors.AZURE,
|
|
196
|
+
colorContrastForLightTheme: Colors.WHITE
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
disabled: {
|
|
201
|
+
container: { ...defaultContainerProps },
|
|
202
|
+
text: {
|
|
203
|
+
textDecorationLine: 'underline',
|
|
204
|
+
fontSize: FONT_SIZE,
|
|
205
|
+
color: Colors.GREY_3
|
|
206
|
+
},
|
|
207
|
+
icon: {
|
|
208
|
+
color: Colors.GREY_3,
|
|
209
|
+
colorContrastForLightTheme: Colors.WHITE_80
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
error: {
|
|
213
|
+
container: { ...defaultContainerProps, alignSelf: 'center' },
|
|
214
|
+
text: {
|
|
215
|
+
textDecorationLine: 'underline',
|
|
216
|
+
fontSize: FONT_SIZE,
|
|
217
|
+
color: Colors.RED,
|
|
218
|
+
colorContrastForLightTheme: Colors.RED_L2
|
|
219
|
+
},
|
|
220
|
+
icon: {
|
|
221
|
+
color: Colors.RED
|
|
222
|
+
},
|
|
223
|
+
pressedStyle: {
|
|
224
|
+
container: {
|
|
225
|
+
...defaultContainerProps,
|
|
226
|
+
alignSelf: 'center',
|
|
227
|
+
backgroundColor: Colors.RED_L1
|
|
228
|
+
},
|
|
229
|
+
text: {
|
|
230
|
+
textDecorationLine: 'underline',
|
|
231
|
+
fontSize: FONT_SIZE,
|
|
232
|
+
color: Colors.RED,
|
|
233
|
+
colorContrastForLightTheme: Colors.RED_L2
|
|
234
|
+
},
|
|
235
|
+
icon: {
|
|
236
|
+
color: Colors.RED,
|
|
237
|
+
colorContrastForLightTheme: Colors.RED_L2
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
icon: {
|
|
243
|
+
default: {
|
|
244
|
+
container: { ...iconContainerProps, alignSelf: 'flex-start' },
|
|
245
|
+
text: {},
|
|
246
|
+
icon: {
|
|
247
|
+
color: Colors.AZURE,
|
|
248
|
+
colorContrastForLightTheme: Colors.WHITE
|
|
249
|
+
},
|
|
250
|
+
pressedStyle: {
|
|
251
|
+
container: {
|
|
252
|
+
backgroundColor: Colors.BLACK_08,
|
|
253
|
+
justifyContent: 'center',
|
|
254
|
+
alignItems: 'center'
|
|
255
|
+
},
|
|
256
|
+
text: {},
|
|
257
|
+
icon: {
|
|
258
|
+
color: Colors.AZURE,
|
|
259
|
+
colorContrastForLightTheme: Colors.WHITE
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
disabled: {
|
|
264
|
+
container: { ...iconContainerProps },
|
|
265
|
+
text: {},
|
|
266
|
+
icon: {
|
|
267
|
+
color: Colors.GREY_3,
|
|
268
|
+
colorContrastForLightTheme: Colors.WHITE_80
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
error: {
|
|
272
|
+
container: { ...iconContainerProps },
|
|
273
|
+
text: {},
|
|
274
|
+
icon: {
|
|
275
|
+
color: Colors.RED
|
|
276
|
+
},
|
|
277
|
+
pressedStyle: {
|
|
278
|
+
container: {
|
|
279
|
+
justifyContent: 'center',
|
|
280
|
+
alignItems: 'center',
|
|
281
|
+
backgroundColor: Colors.RED_L1
|
|
282
|
+
},
|
|
283
|
+
text: {},
|
|
284
|
+
icon: {
|
|
285
|
+
color: Colors.RED,
|
|
286
|
+
colorContrastForLightTheme: Colors.RED_L2
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
export default ficButtonLightTheme;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleProp, StyleSheet, View, ViewStyle } from 'react-native';
|
|
3
|
+
import FicButton from '../FicButton/FicButton';
|
|
4
|
+
import { FicButtonGroupProps } from './FicButtonGroup.types';
|
|
5
|
+
|
|
6
|
+
const FicButtonGroup: React.FC<FicButtonGroupProps> = ({ primaryAction, secondaryAction, style, horizontal }) => {
|
|
7
|
+
const containerStyleObj = style ?? {};
|
|
8
|
+
|
|
9
|
+
const dynamicContainerStyle: StyleProp<ViewStyle> = {
|
|
10
|
+
flexDirection: horizontal ? 'row' : 'column'
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const primaryActionStyle: StyleProp<ViewStyle[]> = [
|
|
14
|
+
horizontal ? { flex: 1 } : {},
|
|
15
|
+
horizontal && secondaryAction ? { marginRight: 8 } : {},
|
|
16
|
+
{ alignSelf: 'center' }
|
|
17
|
+
];
|
|
18
|
+
|
|
19
|
+
const secondaryActionStyle: StyleProp<ViewStyle[]> = [
|
|
20
|
+
horizontal ? { flex: 1 } : {},
|
|
21
|
+
!horizontal && primaryAction ? { marginTop: 8 } : {},
|
|
22
|
+
horizontal && primaryAction ? { marginLeft: 8 } : {},
|
|
23
|
+
{ alignSelf: 'center' }
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
return (
|
|
27
|
+
<View style={[styles.container, dynamicContainerStyle, containerStyleObj]}>
|
|
28
|
+
{primaryAction ? <FicButton fullWidth containerStyle={primaryActionStyle} {...primaryAction} /> : null}
|
|
29
|
+
{secondaryAction ? <FicButton fullWidth containerStyle={secondaryActionStyle} {...secondaryAction} /> : null}
|
|
30
|
+
</View>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export default FicButtonGroup;
|
|
35
|
+
|
|
36
|
+
const styles = StyleSheet.create({
|
|
37
|
+
container: {
|
|
38
|
+
alignItems: 'center'
|
|
39
|
+
}
|
|
40
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import { FicButtonProps } from '../FicButton/FicButton.types';
|
|
3
|
+
|
|
4
|
+
export type FicButtonState = 'default' | 'disabled' | 'error' | undefined;
|
|
5
|
+
|
|
6
|
+
export type FicButtonGroupProps = {
|
|
7
|
+
primaryAction?: FicButtonProps | null;
|
|
8
|
+
secondaryAction?: FicButtonProps | null;
|
|
9
|
+
style?: StyleProp<ViewStyle>;
|
|
10
|
+
horizontal?: boolean;
|
|
11
|
+
};
|