@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 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","useState","Platform","Pressable","View","TouchableHighlight","useTheme","Icon","BORDER_RADIUS","PADDING","Body","BUTTON_INTERNAL_PADDING_HORIZONTAL","DEFAULT_ICON","DEFAULT_ICON_SIZE","DEFAULT_TITLE","ICON_HORIZONTAL_MARGIN","FicButtonPrimary","title","iconName","iconSize","onPress","onPressIn","onPressOut","disabled","error","iconPosition","fullWidth","small","solid","regular","light","duotone","containerStyle","_themeProps$pressedSt3","ficButton","theme","buttonTheme","themeProps","default","containerStyleObj","isPressed","setIsPressed","styleBasedOnPress","_themeProps$pressedSt","pressedStyle","container","ficPrimaryViewStyle","paddingHorizontal","paddingVertical","SM","LG","width","flexDirection","alignItems","justifyContent","bodyStyle","_themeProps$pressedSt2","marginLeft","marginRight","text","handleOnPressIn","e","handleOnPressOut","handleOnPress","FicPrimary","createElement","style","name","size","color","icon","OS","borderRadius","underlayColor","backgroundColor"],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/FicButtonPrimary.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACtD,SAEEC,QAAQ,EACRC,SAAS,EAGTC,IAAI,QAEC,cAAc;AACrB,SAASC,kBAAkB,QAAQ,8BAA8B;AACjE,SAASC,QAAQ,QAAQ,yBAAyB;AAClD,SAASC,IAAI,QAAQ,iCAAiC;AACtD,SAASC,aAAa,EAAEC,OAAO,QAAQ,uBAAuB;AAC9D,SAASC,IAAI,QAAQ,yBAAyB;AAC9C,SACEC,kCAAkC,EAClCC,YAAY,EACZC,iBAAiB,EACjBC,aAAa,EACbC,sBAAsB,QACjB,aAAa;AAOpB,MAAMC,gBAA8C,GAAGA,CAAC;EACtDC,KAAK;EACLC,QAAQ;EACRC,QAAQ;EACRC,OAAO;EACPC,SAAS;EACTC,UAAU;EACVC,QAAQ;EACRC,KAAK;EACLC,YAAY;EACZC,SAAS;EACTC,KAAK;EACLC,KAAK;EACLC,OAAO;EACP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C,UAAU,aAAVA,UAAU,gBAAAJ,sBAAA,GAAVI,UAAU,CAAEO,YAAY,cAAAX,sBAAA,uBAAxBA,sBAAA,CAA0BY,SAAS,CAAC6B;EAAgB,GAElEV,UAAU,CAAC,CACM,CAAC,gBAErBlE,KAAA,CAAAmE,aAAA,CAAC9D,SAAS;IACRoB,QAAQ,EAAEA,QAAS;IACnB2C,KAAK,EAAE,CAACxB,iBAAiB,EAAEH,iBAAiB,CAAE;IAC9CnB,OAAO,EAAE2C,aAAc;IACvB1C,SAAS,EAAEuC,eAAgB;IAC3BtC,UAAU,EAAEwC;EAAiB,GAE5BE,UAAU,CAAC,CACH,CACZ;AACH,CAAC;AAED,eAAehD,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useCallback, useMemo, useState } from 'react';
|
|
3
|
+
import { Platform, Pressable, View } from 'react-native';
|
|
4
|
+
import { TouchableHighlight } from 'react-native-gesture-handler';
|
|
5
|
+
import { useTheme } from '../../../hooks/useTheme';
|
|
6
|
+
import { Icon } from '../../../providers/IconProvider';
|
|
7
|
+
import { BORDER_RADIUS, PADDING } from '../../../styles/space';
|
|
8
|
+
import { Body } from '../../typographies/Body';
|
|
9
|
+
import { BUTTON_INTERNAL_PADDING_HORIZONTAL, DEFAULT_ICON, DEFAULT_ICON_SIZE, DEFAULT_TITLE, ICON_HORIZONTAL_MARGIN } from './constants';
|
|
10
|
+
const FicButtonSecondary = ({
|
|
11
|
+
title,
|
|
12
|
+
iconName,
|
|
13
|
+
iconSize,
|
|
14
|
+
onPress,
|
|
15
|
+
onPressIn,
|
|
16
|
+
onPressOut,
|
|
17
|
+
disabled,
|
|
18
|
+
error,
|
|
19
|
+
iconPosition,
|
|
20
|
+
fullWidth,
|
|
21
|
+
small,
|
|
22
|
+
solid,
|
|
23
|
+
regular,
|
|
24
|
+
light,
|
|
25
|
+
duotone,
|
|
26
|
+
containerStyle
|
|
27
|
+
}) => {
|
|
28
|
+
var _themeProps$pressedSt3;
|
|
29
|
+
const {
|
|
30
|
+
ficButton: theme
|
|
31
|
+
} = useTheme() || {};
|
|
32
|
+
const buttonTheme = (theme === null || theme === void 0 ? void 0 : theme['secondary']) || {};
|
|
33
|
+
const themeProps = disabled ? buttonTheme.disabled : error ? buttonTheme.error : buttonTheme.default;
|
|
34
|
+
const containerStyleObj = containerStyle ?? {};
|
|
35
|
+
const [isPressed, setIsPressed] = useState(false);
|
|
36
|
+
const styleBasedOnPress = useMemo(() => {
|
|
37
|
+
var _themeProps$pressedSt;
|
|
38
|
+
return {
|
|
39
|
+
...(isPressed && !disabled ? themeProps === null || themeProps === void 0 || (_themeProps$pressedSt = themeProps.pressedStyle) === null || _themeProps$pressedSt === void 0 ? void 0 : _themeProps$pressedSt.container : themeProps === null || themeProps === void 0 ? void 0 : themeProps.container)
|
|
40
|
+
};
|
|
41
|
+
}, [themeProps, disabled, isPressed]);
|
|
42
|
+
const ficSecondaryViewStyle = useMemo(() => {
|
|
43
|
+
var _themeProps$container;
|
|
44
|
+
return {
|
|
45
|
+
paddingHorizontal: BUTTON_INTERNAL_PADDING_HORIZONTAL,
|
|
46
|
+
width: fullWidth ? '100%' : 'auto',
|
|
47
|
+
// removing 1 borderWidth to match primary button height
|
|
48
|
+
paddingVertical: (small ? PADDING.SM : PADDING.LG) - ((themeProps === null || themeProps === void 0 || (_themeProps$container = themeProps.container) === null || _themeProps$container === void 0 ? void 0 : _themeProps$container.borderWidth) || 0),
|
|
49
|
+
flexDirection: 'row',
|
|
50
|
+
alignItems: 'center',
|
|
51
|
+
justifyContent: 'center'
|
|
52
|
+
};
|
|
53
|
+
}, [fullWidth, themeProps]);
|
|
54
|
+
const bodyStyle = useMemo(() => {
|
|
55
|
+
var _themeProps$pressedSt2;
|
|
56
|
+
return {
|
|
57
|
+
marginLeft: iconPosition === 'left' ? ICON_HORIZONTAL_MARGIN : 0,
|
|
58
|
+
marginRight: iconPosition === 'right' ? ICON_HORIZONTAL_MARGIN : 0,
|
|
59
|
+
...(isPressed && !disabled ? themeProps === null || themeProps === void 0 || (_themeProps$pressedSt2 = themeProps.pressedStyle) === null || _themeProps$pressedSt2 === void 0 ? void 0 : _themeProps$pressedSt2.text : themeProps === null || themeProps === void 0 ? void 0 : themeProps.text)
|
|
60
|
+
};
|
|
61
|
+
}, [themeProps, iconPosition, disabled, isPressed]);
|
|
62
|
+
const handleOnPressIn = e => {
|
|
63
|
+
if (onPressIn) onPressIn(e);
|
|
64
|
+
setIsPressed(true);
|
|
65
|
+
};
|
|
66
|
+
const handleOnPressOut = e => {
|
|
67
|
+
if (onPressOut) onPressOut(e);
|
|
68
|
+
setIsPressed(false);
|
|
69
|
+
};
|
|
70
|
+
const handleOnPress = e => {
|
|
71
|
+
if (onPress) onPress(e);
|
|
72
|
+
};
|
|
73
|
+
const FicSecondary = useCallback(() => {
|
|
74
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
75
|
+
style: ficSecondaryViewStyle
|
|
76
|
+
}, iconPosition === 'left' ? /*#__PURE__*/React.createElement(Icon, {
|
|
77
|
+
name: iconName || DEFAULT_ICON,
|
|
78
|
+
size: iconSize ?? DEFAULT_ICON_SIZE,
|
|
79
|
+
color: themeProps === null || themeProps === void 0 ? void 0 : themeProps.icon.color,
|
|
80
|
+
solid: solid,
|
|
81
|
+
regular: regular,
|
|
82
|
+
light: light,
|
|
83
|
+
duotone: duotone
|
|
84
|
+
}) : null, /*#__PURE__*/React.createElement(Body, {
|
|
85
|
+
text: title ?? DEFAULT_TITLE,
|
|
86
|
+
style: bodyStyle
|
|
87
|
+
}), iconPosition === 'right' ? /*#__PURE__*/React.createElement(Icon, {
|
|
88
|
+
name: iconName || DEFAULT_ICON,
|
|
89
|
+
size: iconSize ?? DEFAULT_ICON_SIZE,
|
|
90
|
+
color: themeProps === null || themeProps === void 0 ? void 0 : themeProps.icon.color,
|
|
91
|
+
solid: solid,
|
|
92
|
+
regular: regular,
|
|
93
|
+
light: light,
|
|
94
|
+
duotone: duotone
|
|
95
|
+
}) : null);
|
|
96
|
+
}, [iconPosition, iconName, iconSize, bodyStyle, title]);
|
|
97
|
+
return Platform.OS === 'android' ? /*#__PURE__*/React.createElement(TouchableHighlight, {
|
|
98
|
+
disabled: disabled,
|
|
99
|
+
containerStyle: containerStyleObj,
|
|
100
|
+
style: [{
|
|
101
|
+
borderRadius: BORDER_RADIUS.SM
|
|
102
|
+
}, styleBasedOnPress],
|
|
103
|
+
onPress: handleOnPress,
|
|
104
|
+
onPressIn: handleOnPressIn,
|
|
105
|
+
onPressOut: handleOnPressOut,
|
|
106
|
+
underlayColor: themeProps === null || themeProps === void 0 || (_themeProps$pressedSt3 = themeProps.pressedStyle) === null || _themeProps$pressedSt3 === void 0 ? void 0 : _themeProps$pressedSt3.container.backgroundColor
|
|
107
|
+
}, FicSecondary()) : /*#__PURE__*/React.createElement(Pressable, {
|
|
108
|
+
style: [styleBasedOnPress, containerStyleObj],
|
|
109
|
+
onPress: handleOnPress,
|
|
110
|
+
onPressIn: handleOnPressIn,
|
|
111
|
+
onPressOut: handleOnPressOut,
|
|
112
|
+
disabled: disabled
|
|
113
|
+
}, FicSecondary());
|
|
114
|
+
};
|
|
115
|
+
export default FicButtonSecondary;
|
|
116
|
+
//# sourceMappingURL=FicButtonSecondary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","useState","Platform","Pressable","View","TouchableHighlight","useTheme","Icon","BORDER_RADIUS","PADDING","Body","BUTTON_INTERNAL_PADDING_HORIZONTAL","DEFAULT_ICON","DEFAULT_ICON_SIZE","DEFAULT_TITLE","ICON_HORIZONTAL_MARGIN","FicButtonSecondary","title","iconName","iconSize","onPress","onPressIn","onPressOut","disabled","error","iconPosition","fullWidth","small","solid","regular","light","duotone","containerStyle","_themeProps$pressedSt3","ficButton","theme","buttonTheme","themeProps","default","containerStyleObj","isPressed","setIsPressed","styleBasedOnPress","_themeProps$pressedSt","pressedStyle","container","ficSecondaryViewStyle","_themeProps$container","paddingHorizontal","width","paddingVertical","SM","LG","borderWidth","flexDirection","alignItems","justifyContent","bodyStyle","_themeProps$pressedSt2","marginLeft","marginRight","text","handleOnPressIn","e","handleOnPressOut","handleOnPress","FicSecondary","createElement","style","name","size","color","icon","OS","borderRadius","underlayColor","backgroundColor"],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/FicButtonSecondary.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACtD,SAEEC,QAAQ,EACRC,SAAS,EAGTC,IAAI,QAEC,cAAc;AACrB,SAASC,kBAAkB,QAAQ,8BAA8B;AACjE,SAASC,QAAQ,QAAQ,yBAAyB;AAClD,SAASC,IAAI,QAAQ,iCAAiC;AACtD,SAASC,aAAa,EAAEC,OAAO,QAAQ,uBAAuB;AAC9D,SAASC,IAAI,QAAQ,yBAAyB;AAC9C,SACEC,kCAAkC,EAClCC,YAAY,EACZC,iBAAiB,EACjBC,aAAa,EACbC,sBAAsB,QACjB,aAAa;AAOpB,MAAMC,kBAAgD,GAAGA,CAAC;EACxDC,KAAK;EACLC,QAAQ;EACRC,QAAQ;EACRC,OAAO;EACPC,SAAS;EACTC,UAAU;EACVC,QAAQ;EACRC,KAAK;EACLC,YAAY;EACZC,SAAS;EACTC,KAAK;EACLC,KAAK;EACLC,OAAO;EACPC,KAAK;EACLC,OAAO;EACPC;AACF,CAAC,KAAK;EAAA,IAAAC,sBAAA;EACJ,MAAM;IAAEC,SAAS,EAAEC;EAAM,CAAC,GAAG7B,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC;EAE7C,MAAM8B,WAAW,GAAG,CAACD,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAG,WAAW,CAAC,KAA4B,CAAC,CAAC;EACvE,MAAME,UAAU,GAAGd,QAAQ,GACvBa,WAAW,CAACb,QAAQ,GACpBC,KAAK,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AAE;IAC9CnB,OAAO,EAAE6C,aAAc;IACvB5C,SAAS,EAAEyC,eAAgB;IAC3BxC,UAAU,EAAE0C,gBAAiB;IAC7BzC,QAAQ,EAAEA;EAAS,GAElB2C,YAAY,CAAC,CACL,CACZ;AACH,CAAC;AAED,eAAelD,kBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useCallback, useMemo, useState } from 'react';
|
|
3
|
+
import { Platform, Pressable as PressableIOS, View } from 'react-native';
|
|
4
|
+
import { TouchableHighlight } from 'react-native-gesture-handler';
|
|
5
|
+
import { useTheme } from '../../../hooks/useTheme';
|
|
6
|
+
import { Icon } from '../../../providers/IconProvider';
|
|
7
|
+
import { PADDING } from '../../../styles/space';
|
|
8
|
+
import { Body } from '../../typographies/Body';
|
|
9
|
+
import { DEFAULT_ICON, DEFAULT_ICON_SIZE, DEFAULT_TITLE, HIT_SLOP, ICON_HORIZONTAL_MARGIN } from './constants';
|
|
10
|
+
const FicButtonTertiary = ({
|
|
11
|
+
title,
|
|
12
|
+
iconName,
|
|
13
|
+
iconSize,
|
|
14
|
+
onPress,
|
|
15
|
+
onPressIn,
|
|
16
|
+
onPressOut,
|
|
17
|
+
disabled,
|
|
18
|
+
error,
|
|
19
|
+
iconPosition,
|
|
20
|
+
colorContrastForLightTheme,
|
|
21
|
+
fullWidth,
|
|
22
|
+
small,
|
|
23
|
+
solid,
|
|
24
|
+
regular,
|
|
25
|
+
light,
|
|
26
|
+
duotone,
|
|
27
|
+
containerStyle
|
|
28
|
+
}) => {
|
|
29
|
+
const {
|
|
30
|
+
ficButton: theme
|
|
31
|
+
} = useTheme() || {};
|
|
32
|
+
const Pressable = Platform.OS === 'ios' ? PressableIOS : TouchableHighlight;
|
|
33
|
+
const buttonTheme = (theme === null || theme === void 0 ? void 0 : theme['tertiary']) || {};
|
|
34
|
+
const themeProps = disabled ? buttonTheme.disabled : error ? buttonTheme.error : buttonTheme.default;
|
|
35
|
+
const _containerStyle = containerStyle ?? {};
|
|
36
|
+
const [isPressed, setIsPressed] = useState(false);
|
|
37
|
+
const iconColor = useMemo(() => {
|
|
38
|
+
return colorContrastForLightTheme && !error ? themeProps !== null && themeProps !== void 0 && themeProps.icon.colorContrastForLightTheme ? themeProps === null || themeProps === void 0 ? void 0 : themeProps.icon.colorContrastForLightTheme : themeProps === null || themeProps === void 0 ? void 0 : themeProps.icon.color : themeProps === null || themeProps === void 0 ? void 0 : themeProps.icon.color;
|
|
39
|
+
}, [themeProps, colorContrastForLightTheme, error]);
|
|
40
|
+
const bodyColor = useMemo(() => {
|
|
41
|
+
return colorContrastForLightTheme && !error ? themeProps !== null && themeProps !== void 0 && themeProps.text.colorContrastForLightTheme ? themeProps === null || themeProps === void 0 ? void 0 : themeProps.text.colorContrastForLightTheme : themeProps === null || themeProps === void 0 ? void 0 : themeProps.text.color : themeProps === null || themeProps === void 0 ? void 0 : themeProps.text.color;
|
|
42
|
+
}, [themeProps, colorContrastForLightTheme, error]);
|
|
43
|
+
const bodyStyle = useMemo(() => ({
|
|
44
|
+
marginLeft: iconPosition === 'left' ? ICON_HORIZONTAL_MARGIN : 0,
|
|
45
|
+
marginRight: iconPosition === 'right' ? ICON_HORIZONTAL_MARGIN : 0,
|
|
46
|
+
textDecorationLine: (themeProps === null || themeProps === void 0 ? void 0 : themeProps.text.textDecorationLine) ?? 'underline'
|
|
47
|
+
}), [themeProps, iconPosition, isPressed, disabled]);
|
|
48
|
+
const tertiaryPressedAreaStyle = useMemo(() => {
|
|
49
|
+
var _themeProps$pressedSt;
|
|
50
|
+
return {
|
|
51
|
+
top: small ? -PADDING.SM : -PADDING.LG,
|
|
52
|
+
bottom: small ? -PADDING.SM : -PADDING.LG,
|
|
53
|
+
left: fullWidth ? 0 : PADDING.LG * -1,
|
|
54
|
+
right: fullWidth ? 0 : PADDING.LG * -1,
|
|
55
|
+
position: 'absolute',
|
|
56
|
+
...(themeProps === null || themeProps === void 0 || (_themeProps$pressedSt = themeProps.pressedStyle) === null || _themeProps$pressedSt === void 0 ? void 0 : _themeProps$pressedSt.container)
|
|
57
|
+
};
|
|
58
|
+
}, [small, themeProps, fullWidth]);
|
|
59
|
+
const dynamicContainerStyle = useMemo(() => {
|
|
60
|
+
var _themeProps$pressedSt2;
|
|
61
|
+
return {
|
|
62
|
+
paddingTop: small ? PADDING.SM : PADDING.LG,
|
|
63
|
+
paddingBottom: small ? PADDING.SM : PADDING.LG,
|
|
64
|
+
width: '100%',
|
|
65
|
+
...(isPressed ? themeProps === null || themeProps === void 0 || (_themeProps$pressedSt2 = themeProps.pressedStyle) === null || _themeProps$pressedSt2 === void 0 ? void 0 : _themeProps$pressedSt2.container : themeProps === null || themeProps === void 0 ? void 0 : themeProps.container)
|
|
66
|
+
};
|
|
67
|
+
}, [disabled, themeProps, isPressed]);
|
|
68
|
+
const dynamicContainerStyleContainer = useMemo(() => {
|
|
69
|
+
var _themeProps$pressedSt3;
|
|
70
|
+
return {
|
|
71
|
+
width: '100%',
|
|
72
|
+
...(isPressed ? themeProps === null || themeProps === void 0 || (_themeProps$pressedSt3 = themeProps.pressedStyle) === null || _themeProps$pressedSt3 === void 0 ? void 0 : _themeProps$pressedSt3.container : themeProps === null || themeProps === void 0 ? void 0 : themeProps.container)
|
|
73
|
+
};
|
|
74
|
+
}, [disabled, themeProps, isPressed]);
|
|
75
|
+
const handleOnPressIn = e => {
|
|
76
|
+
if (onPressIn) onPressIn(e);
|
|
77
|
+
setIsPressed(true);
|
|
78
|
+
};
|
|
79
|
+
const handleOnPressOut = e => {
|
|
80
|
+
if (onPressOut) onPressOut(e);
|
|
81
|
+
setIsPressed(false);
|
|
82
|
+
};
|
|
83
|
+
const handleOnPress = e => {
|
|
84
|
+
if (onPress) onPress(e);
|
|
85
|
+
};
|
|
86
|
+
const FicTertiary = useCallback(() => {
|
|
87
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, iconPosition === 'left' ? /*#__PURE__*/React.createElement(Icon, {
|
|
88
|
+
name: iconName || DEFAULT_ICON,
|
|
89
|
+
size: iconSize ?? DEFAULT_ICON_SIZE,
|
|
90
|
+
color: iconColor,
|
|
91
|
+
solid: solid,
|
|
92
|
+
regular: regular,
|
|
93
|
+
light: light,
|
|
94
|
+
duotone: duotone
|
|
95
|
+
}) : null, /*#__PURE__*/React.createElement(Body, {
|
|
96
|
+
text: title ?? DEFAULT_TITLE,
|
|
97
|
+
style: bodyStyle,
|
|
98
|
+
color: bodyColor
|
|
99
|
+
}), iconPosition === 'right' ? /*#__PURE__*/React.createElement(Icon, {
|
|
100
|
+
name: iconName || DEFAULT_ICON,
|
|
101
|
+
size: iconSize ?? DEFAULT_ICON_SIZE,
|
|
102
|
+
color: iconColor,
|
|
103
|
+
solid: solid,
|
|
104
|
+
regular: regular,
|
|
105
|
+
light: light,
|
|
106
|
+
duotone: duotone
|
|
107
|
+
}) : null);
|
|
108
|
+
}, [iconPosition, iconName, iconSize, buttonTheme, disabled, error, bodyStyle, title]);
|
|
109
|
+
return fullWidth ? /*#__PURE__*/React.createElement(Pressable, {
|
|
110
|
+
style: [dynamicContainerStyle, Platform.OS === 'ios' ? _containerStyle : {}],
|
|
111
|
+
containerStyle: [dynamicContainerStyleContainer, _containerStyle],
|
|
112
|
+
onPress: handleOnPress,
|
|
113
|
+
onPressIn: handleOnPressIn,
|
|
114
|
+
onPressOut: handleOnPressOut,
|
|
115
|
+
disabled: disabled,
|
|
116
|
+
hitSlop: HIT_SLOP,
|
|
117
|
+
underlayColor: 'transparent'
|
|
118
|
+
}, FicTertiary()) : /*#__PURE__*/React.createElement(View, {
|
|
119
|
+
style: [{
|
|
120
|
+
position: 'relative',
|
|
121
|
+
alignSelf: 'flex-start',
|
|
122
|
+
width: fullWidth ? '100%' : 'auto'
|
|
123
|
+
}, _containerStyle]
|
|
124
|
+
}, isPressed ? /*#__PURE__*/React.createElement(View, {
|
|
125
|
+
style: [tertiaryPressedAreaStyle]
|
|
126
|
+
}) : null, /*#__PURE__*/React.createElement(Pressable, {
|
|
127
|
+
style: themeProps === null || themeProps === void 0 ? void 0 : themeProps.container,
|
|
128
|
+
onPress: handleOnPress,
|
|
129
|
+
onPressIn: handleOnPressIn,
|
|
130
|
+
onPressOut: handleOnPressOut,
|
|
131
|
+
disabled: disabled,
|
|
132
|
+
hitSlop: HIT_SLOP,
|
|
133
|
+
underlayColor: 'transparent'
|
|
134
|
+
}, FicTertiary()));
|
|
135
|
+
};
|
|
136
|
+
export default FicButtonTertiary;
|
|
137
|
+
//# sourceMappingURL=FicButtonTertiary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","useState","Platform","Pressable","PressableIOS","View","TouchableHighlight","useTheme","Icon","PADDING","Body","DEFAULT_ICON","DEFAULT_ICON_SIZE","DEFAULT_TITLE","HIT_SLOP","ICON_HORIZONTAL_MARGIN","FicButtonTertiary","title","iconName","iconSize","onPress","onPressIn","onPressOut","disabled","error","iconPosition","colorContrastForLightTheme","fullWidth","small","solid","regular","light","duotone","containerStyle","ficButton","theme","OS","buttonTheme","themeProps","default","_containerStyle","isPressed","setIsPressed","iconColor","icon","color","bodyColor","text","bodyStyle","marginLeft","marginRight","textDecorationLine","tertiaryPressedAreaStyle","_themeProps$pressedSt","top","SM","LG","bottom","left","right","position","pressedStyle","container","dynamicContainerStyle","_themeProps$pressedSt2","paddingTop","paddingBottom","width","dynamicContainerStyleContainer","_themeProps$pressedSt3","handleOnPressIn","e","handleOnPressOut","handleOnPress","FicTertiary","createElement","Fragment","name","size","style","hitSlop","underlayColor","alignSelf"],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/FicButtonTertiary.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACtD,SAEEC,QAAQ,EACRC,SAAS,IAAIC,YAAY,EAGzBC,IAAI,QAEC,cAAc;AACrB,SAASC,kB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,CAAEwB,SAAU;IAC7B1C,OAAO,EAAEqD,aAAc;IACvBpD,SAAS,EAAEiD,eAAgB;IAC3BhD,UAAU,EAAEkD,gBAAiB;IAC7BjD,QAAQ,EAAEA,QAAS;IACnByD,OAAO,EAAElE,QAAS;IAClBmE,aAAa,EAAE;EAAc,GAE5BP,WAAW,CAAC,CACJ,CACP,CACP;AACH,CAAC;AAED,eAAe1D,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Colors } from '../../../styles/colors';
|
|
2
|
+
import { PADDING } from '../../../styles/space';
|
|
3
|
+
export const FONT_SIZE = 17;
|
|
4
|
+
export const ICON_HORIZONTAL_MARGIN = 8;
|
|
5
|
+
export const ICON_SIZE_BIG = 24;
|
|
6
|
+
export const DEFAULT_ICON_SIZE = 16;
|
|
7
|
+
export const DEFAULT_PRESSED_BG_COLOR = Colors.GREY_2;
|
|
8
|
+
export const DEFAULT_TITLE = 'Button';
|
|
9
|
+
export const DEFAULT_ICON = 'heart';
|
|
10
|
+
export const BUTTON_INTERNAL_PADDING_HORIZONTAL = PADDING.LG;
|
|
11
|
+
export const HIT_SLOP = {
|
|
12
|
+
top: 16,
|
|
13
|
+
left: 16,
|
|
14
|
+
right: 16,
|
|
15
|
+
bottom: 16
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Colors","PADDING","FONT_SIZE","ICON_HORIZONTAL_MARGIN","ICON_SIZE_BIG","DEFAULT_ICON_SIZE","DEFAULT_PRESSED_BG_COLOR","GREY_2","DEFAULT_TITLE","DEFAULT_ICON","BUTTON_INTERNAL_PADDING_HORIZONTAL","LG","HIT_SLOP","top","left","right","bottom"],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/constants.ts"],"mappings":"AACA,SAASA,MAAM,QAAQ,wBAAwB;AAC/C,SAASC,OAAO,QAAQ,uBAAuB;AAE/C,OAAO,MAAMC,SAAS,GAAG,EAAE;AAE3B,OAAO,MAAMC,sBAAsB,GAAG,CAAC;AACvC,OAAO,MAAMC,aAAa,GAAG,EAAE;AAE/B,OAAO,MAAMC,iBAAiB,GAAG,EAAE;AACnC,OAAO,MAAMC,wBAAwB,GAAGN,MAAM,CAACO,MAAM;AAErD,OAAO,MAAMC,aAAa,GAAG,QAAQ;AACrC,OAAO,MAAMC,YAAY,GAAG,OAAO;AAEnC,OAAO,MAAMC,kCAAkC,GAAGT,OAAO,CAACU,EAAE;AAE5D,OAAO,MAAMC,QAAgB,GAAG;EAC9BC,GAAG,EAAE,EAAE;EACPC,IAAI,EAAE,EAAE;EACRC,KAAK,EAAE,EAAE;EACTC,MAAM,EAAE;AACV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["FicButton"],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/index.ts"],"mappings":"AAAA,OAAOA,SAAS,MAAM,aAAa;AAGnC,SAASA,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import { Colors } from '../../../../styles/colors';
|
|
2
|
+
import { BORDER_RADIUS } from '../../../../styles/space';
|
|
3
|
+
import { FONT_SIZE } from '../constants';
|
|
4
|
+
const defaultContainerProps = {
|
|
5
|
+
flexDirection: 'row',
|
|
6
|
+
alignSelf: 'flex-start',
|
|
7
|
+
justifyContent: 'center',
|
|
8
|
+
alignContent: 'center',
|
|
9
|
+
alignItems: 'center',
|
|
10
|
+
borderRadius: BORDER_RADIUS.SM
|
|
11
|
+
};
|
|
12
|
+
const {
|
|
13
|
+
alignContent,
|
|
14
|
+
...defaultIconContainerProps
|
|
15
|
+
} = defaultContainerProps;
|
|
16
|
+
const iconContainerProps = {
|
|
17
|
+
...defaultIconContainerProps,
|
|
18
|
+
borderRadius: 1000,
|
|
19
|
+
alignSelf: 'center'
|
|
20
|
+
};
|
|
21
|
+
const ficButtonDarkTheme = {
|
|
22
|
+
primary: {
|
|
23
|
+
default: {
|
|
24
|
+
container: {
|
|
25
|
+
...defaultContainerProps,
|
|
26
|
+
backgroundColor: Colors.AZURE_K
|
|
27
|
+
},
|
|
28
|
+
text: {
|
|
29
|
+
color: Colors.ELEVATION_1
|
|
30
|
+
},
|
|
31
|
+
icon: {
|
|
32
|
+
color: Colors.ELEVATION_1
|
|
33
|
+
},
|
|
34
|
+
pressedStyle: {
|
|
35
|
+
container: {
|
|
36
|
+
...defaultContainerProps,
|
|
37
|
+
backgroundColor: Colors.AZURE_K_D1
|
|
38
|
+
},
|
|
39
|
+
text: {
|
|
40
|
+
color: Colors.ELEVATION_1
|
|
41
|
+
},
|
|
42
|
+
icon: {
|
|
43
|
+
color: Colors.ELEVATION_1
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
disabled: {
|
|
48
|
+
container: {
|
|
49
|
+
...defaultContainerProps,
|
|
50
|
+
backgroundColor: Colors.ELEVATION_4
|
|
51
|
+
},
|
|
52
|
+
text: {
|
|
53
|
+
color: Colors.ELEVATION_2
|
|
54
|
+
},
|
|
55
|
+
icon: {
|
|
56
|
+
color: Colors.ELEVATION_2
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
error: {
|
|
60
|
+
container: {
|
|
61
|
+
...defaultContainerProps,
|
|
62
|
+
backgroundColor: Colors.RED
|
|
63
|
+
},
|
|
64
|
+
text: {
|
|
65
|
+
color: Colors.WHITE
|
|
66
|
+
},
|
|
67
|
+
icon: {
|
|
68
|
+
color: Colors.WHITE
|
|
69
|
+
},
|
|
70
|
+
pressedStyle: {
|
|
71
|
+
container: {
|
|
72
|
+
...defaultContainerProps,
|
|
73
|
+
backgroundColor: Colors.RED_D1
|
|
74
|
+
},
|
|
75
|
+
text: {
|
|
76
|
+
color: Colors.WHITE
|
|
77
|
+
},
|
|
78
|
+
icon: {
|
|
79
|
+
color: Colors.WHITE
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
secondary: {
|
|
85
|
+
default: {
|
|
86
|
+
container: {
|
|
87
|
+
...defaultContainerProps,
|
|
88
|
+
backgroundColor: Colors.ELEVATION_1,
|
|
89
|
+
borderWidth: 1,
|
|
90
|
+
borderColor: Colors.AZURE_K
|
|
91
|
+
},
|
|
92
|
+
text: {
|
|
93
|
+
color: Colors.AZURE_K
|
|
94
|
+
},
|
|
95
|
+
icon: {
|
|
96
|
+
color: Colors.AZURE_K
|
|
97
|
+
},
|
|
98
|
+
pressedStyle: {
|
|
99
|
+
container: {
|
|
100
|
+
...defaultContainerProps,
|
|
101
|
+
backgroundColor: Colors.ELEVATION_2,
|
|
102
|
+
borderWidth: 1,
|
|
103
|
+
borderColor: Colors.AZURE_K
|
|
104
|
+
},
|
|
105
|
+
text: {
|
|
106
|
+
color: Colors.AZURE_K
|
|
107
|
+
},
|
|
108
|
+
icon: {
|
|
109
|
+
color: Colors.AZURE_K
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
disabled: {
|
|
114
|
+
container: {
|
|
115
|
+
...defaultContainerProps,
|
|
116
|
+
backgroundColor: Colors.ELEVATION_1,
|
|
117
|
+
borderWidth: 1,
|
|
118
|
+
borderColor: Colors.ELEVATION_4
|
|
119
|
+
},
|
|
120
|
+
text: {
|
|
121
|
+
color: Colors.ELEVATION_4
|
|
122
|
+
},
|
|
123
|
+
icon: {
|
|
124
|
+
color: Colors.ELEVATION_4
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
error: {
|
|
128
|
+
container: {
|
|
129
|
+
...defaultContainerProps,
|
|
130
|
+
backgroundColor: Colors.ELEVATION_1,
|
|
131
|
+
borderWidth: 1,
|
|
132
|
+
borderColor: Colors.RED_K_D1
|
|
133
|
+
},
|
|
134
|
+
text: {
|
|
135
|
+
color: Colors.RED_K_D1
|
|
136
|
+
},
|
|
137
|
+
icon: {
|
|
138
|
+
color: Colors.RED_K_D1
|
|
139
|
+
},
|
|
140
|
+
pressedStyle: {
|
|
141
|
+
container: {
|
|
142
|
+
...defaultContainerProps,
|
|
143
|
+
backgroundColor: Colors.ELEVATION_2,
|
|
144
|
+
borderWidth: 1,
|
|
145
|
+
borderColor: Colors.RED_K_D1
|
|
146
|
+
},
|
|
147
|
+
text: {
|
|
148
|
+
color: Colors.RED_K_D1
|
|
149
|
+
},
|
|
150
|
+
icon: {
|
|
151
|
+
color: Colors.RED_K_D1
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
tertiary: {
|
|
157
|
+
default: {
|
|
158
|
+
container: {
|
|
159
|
+
...defaultContainerProps,
|
|
160
|
+
alignSelf: 'center'
|
|
161
|
+
},
|
|
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: {
|
|
188
|
+
...defaultContainerProps
|
|
189
|
+
},
|
|
190
|
+
text: {
|
|
191
|
+
textDecorationLine: 'underline',
|
|
192
|
+
fontSize: FONT_SIZE,
|
|
193
|
+
color: Colors.ELEVATION_4
|
|
194
|
+
},
|
|
195
|
+
icon: {
|
|
196
|
+
color: Colors.ELEVATION_4
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
error: {
|
|
200
|
+
container: {
|
|
201
|
+
...defaultContainerProps,
|
|
202
|
+
alignSelf: 'center'
|
|
203
|
+
},
|
|
204
|
+
text: {
|
|
205
|
+
textDecorationLine: 'underline',
|
|
206
|
+
fontSize: FONT_SIZE,
|
|
207
|
+
color: Colors.RED_K_D1
|
|
208
|
+
},
|
|
209
|
+
icon: {
|
|
210
|
+
color: Colors.RED_K_D1
|
|
211
|
+
},
|
|
212
|
+
pressedStyle: {
|
|
213
|
+
container: {
|
|
214
|
+
...defaultContainerProps,
|
|
215
|
+
alignSelf: 'center',
|
|
216
|
+
backgroundColor: Colors.ELEVATION_4
|
|
217
|
+
},
|
|
218
|
+
text: {
|
|
219
|
+
textDecorationLine: 'underline',
|
|
220
|
+
fontSize: FONT_SIZE,
|
|
221
|
+
color: Colors.RED_K_D1
|
|
222
|
+
},
|
|
223
|
+
icon: {
|
|
224
|
+
color: Colors.RED_K_D1
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
icon: {
|
|
230
|
+
default: {
|
|
231
|
+
container: {
|
|
232
|
+
...iconContainerProps,
|
|
233
|
+
alignSelf: 'flex-start'
|
|
234
|
+
},
|
|
235
|
+
text: {},
|
|
236
|
+
icon: {
|
|
237
|
+
color: Colors.WHITE_80
|
|
238
|
+
},
|
|
239
|
+
pressedStyle: {
|
|
240
|
+
container: {
|
|
241
|
+
backgroundColor: Colors.ELEVATION_4,
|
|
242
|
+
justifyContent: 'center',
|
|
243
|
+
alignItems: 'center'
|
|
244
|
+
},
|
|
245
|
+
text: {},
|
|
246
|
+
icon: {
|
|
247
|
+
color: Colors.WHITE_80
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
disabled: {
|
|
252
|
+
container: {
|
|
253
|
+
...iconContainerProps
|
|
254
|
+
},
|
|
255
|
+
text: {},
|
|
256
|
+
icon: {
|
|
257
|
+
color: Colors.ELEVATION_4
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
error: {
|
|
261
|
+
container: {
|
|
262
|
+
...iconContainerProps
|
|
263
|
+
},
|
|
264
|
+
text: {},
|
|
265
|
+
icon: {
|
|
266
|
+
color: Colors.RED_K_D1
|
|
267
|
+
},
|
|
268
|
+
pressedStyle: {
|
|
269
|
+
container: {
|
|
270
|
+
position: 'absolute',
|
|
271
|
+
justifyContent: 'center',
|
|
272
|
+
alignItems: 'center',
|
|
273
|
+
borderRadius: 1000,
|
|
274
|
+
backgroundColor: Colors.ELEVATION_4
|
|
275
|
+
},
|
|
276
|
+
text: {},
|
|
277
|
+
icon: {
|
|
278
|
+
color: Colors.RED_K_D1
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
export default ficButtonDarkTheme;
|
|
285
|
+
//# sourceMappingURL=dark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Colors","BORDER_RADIUS","FONT_SIZE","defaultContainerProps","flexDirection","alignSelf","justifyContent","alignContent","alignItems","borderRadius","SM","defaultIconContainerProps","iconContainerProps","ficButtonDarkTheme","primary","default","container","backgroundColor","AZURE_K","text","color","ELEVATION_1","icon","pressedStyle","AZURE_K_D1","disabled","ELEVATION_4","ELEVATION_2","error","RED","WHITE","RED_D1","secondary","borderWidth","borderColor","RED_K_D1","tertiary","textDecorationLine","fontSize","WHITE_80","position"],"sourceRoot":"../../../../../../src","sources":["components/buttons/FicButton/themes/dark.ts"],"mappings":"AACA,SAASA,MAAM,QAAQ,2BAA2B;AAClD,SAASC,aAAa,QAAQ,0BAA0B;AAExD,SAASC,SAAS,QAAQ,cAAc;AAExC,MAAMC,qBAAuC,GAAG;EAC9CC,aAAa,EAAE,KAAK;EACpBC,SAAS,EAAE,YAAY;EACvBC,cAAc,EAAE,QAAQ;EACxBC,YAAY,EAAE,QAAQ;EACtBC,UAAU,E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,EAAEpB,MAAM,CAACuC;QAChB;MACF;IACF,CAAC;IACDd,QAAQ,EAAE;MACRT,SAAS,EAAE;QAAE,GAAGJ;MAAmB,CAAC;MACpCO,IAAI,EAAE,CAAC,CAAC;MACRG,IAAI,EAAE;QACJF,KAAK,EAAEpB,MAAM,CAAC0B;MAChB;IACF,CAAC;IACDE,KAAK,EAAE;MACLZ,SAAS,EAAE;QAAE,GAAGJ;MAAmB,CAAC;MACpCO,IAAI,EAAE,CAAC,CAAC;MACRG,IAAI,EAAE;QACJF,KAAK,EAAEpB,MAAM,CAACmC;MAChB,CAAC;MACDZ,YAAY,EAAE;QACZP,SAAS,EAAE;UACTwB,QAAQ,EAAE,UAAU;UACpBlC,cAAc,EAAE,QAAQ;UACxBE,UAAU,EAAE,QAAQ;UACpBC,YAAY,EAAE,IAAI;UAClBQ,eAAe,EAAEjB,MAAM,CAAC0B;QAC1B,CAAC;QACDP,IAAI,EAAE,CAAC,CAAC;QACRG,IAAI,EAAE;UACJF,KAAK,EAAEpB,MAAM,CAACmC;QAChB;MACF;IACF;EACF;AACF,CAAC;AAED,eAAetB,kBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ficButtonLightTheme"],"sourceRoot":"../../../../../../src","sources":["components/buttons/FicButton/themes/index.ts"],"mappings":"AAAA,OAAOA,mBAAmB,MAAM,SAAS;AAEzC,SAASA,mBAAmB","ignoreList":[]}
|