@fattureincloud-mobile/fic-mobile-ds 1.2.1 → 1.2.3
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/lib/commonjs/components/Tag/Tag.js +12 -9
- package/lib/commonjs/components/Tag/Tag.js.map +1 -1
- package/lib/commonjs/components/Tag/index.js +1 -1
- package/lib/commonjs/components/Tag/index.js.map +1 -1
- package/lib/commonjs/components/Touchable/Touchable.js +24 -15
- package/lib/commonjs/components/Touchable/Touchable.js.map +1 -1
- package/lib/commonjs/components/Touchable/index.js +1 -1
- package/lib/commonjs/components/Touchable/index.js.map +1 -1
- package/lib/commonjs/components/base/DatePicker/DatePicker.js +22 -19
- package/lib/commonjs/components/base/DatePicker/DatePicker.js.map +1 -1
- package/lib/commonjs/components/base/DatePicker/index.js +1 -1
- package/lib/commonjs/components/base/DatePicker/index.js.map +1 -1
- package/lib/commonjs/components/base/HeaderArrows/HeaderArrows.js +20 -21
- package/lib/commonjs/components/base/HeaderArrows/HeaderArrows.js.map +1 -1
- package/lib/commonjs/components/base/HeaderArrows/index.js +1 -1
- package/lib/commonjs/components/base/HeaderArrows/index.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/FicButton.js +20 -27
- package/lib/commonjs/components/buttons/FicButton/FicButton.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/FicButton.types.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/FicButtonIcon.js +48 -41
- package/lib/commonjs/components/buttons/FicButton/FicButtonIcon.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/FicButtonPrimary.js +45 -48
- package/lib/commonjs/components/buttons/FicButton/FicButtonPrimary.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/FicButtonSecondary.js +54 -60
- package/lib/commonjs/components/buttons/FicButton/FicButtonSecondary.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/FicButtonTertiary.js +75 -90
- package/lib/commonjs/components/buttons/FicButton/FicButtonTertiary.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/constants.js +2 -2
- package/lib/commonjs/components/buttons/FicButton/constants.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/index.js +1 -1
- package/lib/commonjs/components/buttons/FicButton/index.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/themes/dark.js +5 -4
- package/lib/commonjs/components/buttons/FicButton/themes/dark.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/themes/index.js +8 -1
- package/lib/commonjs/components/buttons/FicButton/themes/index.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/themes/light.js +5 -4
- package/lib/commonjs/components/buttons/FicButton/themes/light.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.js +19 -18
- package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.types.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButtonGroup/index.js +1 -1
- package/lib/commonjs/components/buttons/FicButtonGroup/index.js.map +1 -1
- package/lib/commonjs/components/notifications/Banner/Banner.js +37 -35
- package/lib/commonjs/components/notifications/Banner/Banner.js.map +1 -1
- package/lib/commonjs/components/notifications/Banner/Banner.types.js.map +1 -1
- package/lib/commonjs/components/notifications/Banner/index.js +1 -1
- package/lib/commonjs/components/notifications/Banner/index.js.map +1 -1
- package/lib/commonjs/components/notifications/Banner/themes/dark.js +1 -1
- package/lib/commonjs/components/notifications/Banner/themes/dark.js.map +1 -1
- package/lib/commonjs/components/notifications/Banner/themes/index.js +2 -2
- package/lib/commonjs/components/notifications/Banner/themes/index.js.map +1 -1
- package/lib/commonjs/components/notifications/Banner/themes/light.js +1 -1
- package/lib/commonjs/components/notifications/Banner/themes/light.js.map +1 -1
- package/lib/commonjs/components/typographies/Body/Body.js +10 -6
- package/lib/commonjs/components/typographies/Body/Body.js.map +1 -1
- package/lib/commonjs/components/typographies/Body/index.js +1 -1
- package/lib/commonjs/components/typographies/Body/index.js.map +1 -1
- package/lib/commonjs/components/typographies/ButtonTitle/ButtonTitle.js +12 -8
- package/lib/commonjs/components/typographies/ButtonTitle/ButtonTitle.js.map +1 -1
- package/lib/commonjs/components/typographies/ButtonTitle/index.js +1 -1
- package/lib/commonjs/components/typographies/ButtonTitle/index.js.map +1 -1
- package/lib/commonjs/components/typographies/Callout/Callout.js +10 -6
- package/lib/commonjs/components/typographies/Callout/Callout.js.map +1 -1
- package/lib/commonjs/components/typographies/Callout/index.js +1 -1
- package/lib/commonjs/components/typographies/Callout/index.js.map +1 -1
- package/lib/commonjs/components/typographies/CaptionOne/CaptionOne.js +10 -6
- package/lib/commonjs/components/typographies/CaptionOne/CaptionOne.js.map +1 -1
- package/lib/commonjs/components/typographies/CaptionOne/index.js +1 -1
- package/lib/commonjs/components/typographies/CaptionOne/index.js.map +1 -1
- package/lib/commonjs/components/typographies/CaptionTwo/CaptionTwo.js +10 -6
- package/lib/commonjs/components/typographies/CaptionTwo/CaptionTwo.js.map +1 -1
- package/lib/commonjs/components/typographies/CaptionTwo/index.js +1 -1
- package/lib/commonjs/components/typographies/CaptionTwo/index.js.map +1 -1
- package/lib/commonjs/components/typographies/Footnote/Footnote.js +10 -6
- package/lib/commonjs/components/typographies/Footnote/Footnote.js.map +1 -1
- package/lib/commonjs/components/typographies/Footnote/index.js +1 -1
- package/lib/commonjs/components/typographies/Footnote/index.js.map +1 -1
- package/lib/commonjs/components/typographies/Headline/Headline.js +10 -6
- package/lib/commonjs/components/typographies/Headline/Headline.js.map +1 -1
- package/lib/commonjs/components/typographies/Headline/index.js +1 -1
- package/lib/commonjs/components/typographies/Headline/index.js.map +1 -1
- package/lib/commonjs/components/typographies/LargeTitle/LargeTitle.js +10 -6
- package/lib/commonjs/components/typographies/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/commonjs/components/typographies/LargeTitle/index.js +1 -1
- package/lib/commonjs/components/typographies/LargeTitle/index.js.map +1 -1
- package/lib/commonjs/components/typographies/Subhead/Subhead.js +10 -6
- package/lib/commonjs/components/typographies/Subhead/Subhead.js.map +1 -1
- package/lib/commonjs/components/typographies/Subhead/index.js +1 -1
- package/lib/commonjs/components/typographies/Subhead/index.js.map +1 -1
- package/lib/commonjs/components/typographies/TitleOne/TitleOne.js +10 -6
- package/lib/commonjs/components/typographies/TitleOne/TitleOne.js.map +1 -1
- package/lib/commonjs/components/typographies/TitleOne/index.js +1 -1
- package/lib/commonjs/components/typographies/TitleOne/index.js.map +1 -1
- package/lib/commonjs/components/typographies/TitleThree/TitleThree.js +10 -6
- package/lib/commonjs/components/typographies/TitleThree/TitleThree.js.map +1 -1
- package/lib/commonjs/components/typographies/TitleThree/index.js +1 -1
- package/lib/commonjs/components/typographies/TitleThree/index.js.map +1 -1
- package/lib/commonjs/components/typographies/TitleTwo/TitleTwo.js +10 -6
- package/lib/commonjs/components/typographies/TitleTwo/TitleTwo.js.map +1 -1
- package/lib/commonjs/components/typographies/TitleTwo/index.js +1 -1
- package/lib/commonjs/components/typographies/TitleTwo/index.js.map +1 -1
- package/lib/commonjs/components/typographies/font.js.map +1 -1
- package/lib/commonjs/hooks/useTheme.js +1 -1
- package/lib/commonjs/hooks/useTheme.js.map +1 -1
- package/lib/commonjs/index.js +46 -46
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/providers/DesignSystemProvider/DesignSystemProvider.js +12 -9
- package/lib/commonjs/providers/DesignSystemProvider/DesignSystemProvider.js.map +1 -1
- package/lib/commonjs/providers/DesignSystemProvider/index.js +1 -1
- package/lib/commonjs/providers/DesignSystemProvider/index.js.map +1 -1
- package/lib/commonjs/providers/IconProvider/IconProvider.js +11 -7
- package/lib/commonjs/providers/IconProvider/IconProvider.js.map +1 -1
- package/lib/commonjs/providers/IconProvider/index.js +1 -1
- package/lib/commonjs/providers/IconProvider/index.js.map +1 -1
- package/lib/commonjs/providers/ThemeProvider/ThemeProvider.js +6 -4
- package/lib/commonjs/providers/ThemeProvider/ThemeProvider.js.map +1 -1
- package/lib/commonjs/styles/calendarTheme.js.map +1 -1
- package/lib/commonjs/styles/colors.js.map +1 -1
- package/lib/commonjs/styles/globalStyles.js +1 -1
- package/lib/commonjs/styles/globalStyles.js.map +1 -1
- package/lib/commonjs/styles/space.js.map +1 -1
- package/lib/commonjs/styles/theme.js +7 -7
- package/lib/commonjs/styles/theme.js.map +1 -1
- package/lib/commonjs/utils/locale.js +2 -2
- package/lib/commonjs/utils/locale.js.map +1 -1
- package/lib/module/components/Tag/Tag.js +14 -9
- package/lib/module/components/Tag/Tag.js.map +1 -1
- package/lib/module/components/Tag/index.js +3 -1
- package/lib/module/components/Tag/index.js.map +1 -1
- package/lib/module/components/Touchable/Touchable.js +26 -15
- package/lib/module/components/Touchable/Touchable.js.map +1 -1
- package/lib/module/components/Touchable/index.js +3 -1
- package/lib/module/components/Touchable/index.js.map +1 -1
- package/lib/module/components/base/DatePicker/DatePicker.js +22 -19
- package/lib/module/components/base/DatePicker/DatePicker.js.map +1 -1
- package/lib/module/components/base/DatePicker/index.js +3 -1
- package/lib/module/components/base/DatePicker/index.js.map +1 -1
- package/lib/module/components/base/HeaderArrows/HeaderArrows.js +22 -21
- package/lib/module/components/base/HeaderArrows/HeaderArrows.js.map +1 -1
- package/lib/module/components/base/HeaderArrows/index.js +3 -1
- package/lib/module/components/base/HeaderArrows/index.js.map +1 -1
- package/lib/module/components/buttons/FicButton/FicButton.js +22 -28
- package/lib/module/components/buttons/FicButton/FicButton.js.map +1 -1
- package/lib/module/components/buttons/FicButton/FicButton.types.js +2 -0
- package/lib/module/components/buttons/FicButton/FicButton.types.js.map +1 -1
- package/lib/module/components/buttons/FicButton/FicButtonIcon.js +51 -41
- package/lib/module/components/buttons/FicButton/FicButtonIcon.js.map +1 -1
- package/lib/module/components/buttons/FicButton/FicButtonPrimary.js +47 -48
- package/lib/module/components/buttons/FicButton/FicButtonPrimary.js.map +1 -1
- package/lib/module/components/buttons/FicButton/FicButtonSecondary.js +56 -60
- package/lib/module/components/buttons/FicButton/FicButtonSecondary.js.map +1 -1
- package/lib/module/components/buttons/FicButton/FicButtonTertiary.js +78 -91
- package/lib/module/components/buttons/FicButton/FicButtonTertiary.js.map +1 -1
- package/lib/module/components/buttons/FicButton/constants.js +4 -2
- package/lib/module/components/buttons/FicButton/constants.js.map +1 -1
- package/lib/module/components/buttons/FicButton/index.js +3 -1
- package/lib/module/components/buttons/FicButton/index.js.map +1 -1
- package/lib/module/components/buttons/FicButton/themes/dark.js +7 -4
- package/lib/module/components/buttons/FicButton/themes/dark.js.map +1 -1
- package/lib/module/components/buttons/FicButton/themes/index.js +5 -2
- package/lib/module/components/buttons/FicButton/themes/index.js.map +1 -1
- package/lib/module/components/buttons/FicButton/themes/light.js +7 -4
- package/lib/module/components/buttons/FicButton/themes/light.js.map +1 -1
- package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.js +21 -18
- package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.js.map +1 -1
- package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.types.js +2 -0
- package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.types.js.map +1 -1
- package/lib/module/components/buttons/FicButtonGroup/index.js +3 -1
- package/lib/module/components/buttons/FicButtonGroup/index.js.map +1 -1
- package/lib/module/components/notifications/Banner/Banner.js +39 -35
- package/lib/module/components/notifications/Banner/Banner.js.map +1 -1
- package/lib/module/components/notifications/Banner/Banner.types.js +2 -0
- package/lib/module/components/notifications/Banner/Banner.types.js.map +1 -1
- package/lib/module/components/notifications/Banner/index.js +3 -1
- package/lib/module/components/notifications/Banner/index.js.map +1 -1
- package/lib/module/components/notifications/Banner/themes/dark.js +3 -1
- package/lib/module/components/notifications/Banner/themes/dark.js.map +1 -1
- package/lib/module/components/notifications/Banner/themes/index.js +4 -2
- package/lib/module/components/notifications/Banner/themes/index.js.map +1 -1
- package/lib/module/components/notifications/Banner/themes/light.js +3 -1
- package/lib/module/components/notifications/Banner/themes/light.js.map +1 -1
- package/lib/module/components/typographies/Body/Body.js +10 -6
- package/lib/module/components/typographies/Body/Body.js.map +1 -1
- package/lib/module/components/typographies/Body/index.js +3 -1
- package/lib/module/components/typographies/Body/index.js.map +1 -1
- package/lib/module/components/typographies/ButtonTitle/ButtonTitle.js +12 -8
- package/lib/module/components/typographies/ButtonTitle/ButtonTitle.js.map +1 -1
- package/lib/module/components/typographies/ButtonTitle/index.js +3 -1
- package/lib/module/components/typographies/ButtonTitle/index.js.map +1 -1
- package/lib/module/components/typographies/Callout/Callout.js +10 -6
- package/lib/module/components/typographies/Callout/Callout.js.map +1 -1
- package/lib/module/components/typographies/Callout/index.js +3 -1
- package/lib/module/components/typographies/Callout/index.js.map +1 -1
- package/lib/module/components/typographies/CaptionOne/CaptionOne.js +10 -6
- package/lib/module/components/typographies/CaptionOne/CaptionOne.js.map +1 -1
- package/lib/module/components/typographies/CaptionOne/index.js +3 -1
- package/lib/module/components/typographies/CaptionOne/index.js.map +1 -1
- package/lib/module/components/typographies/CaptionTwo/CaptionTwo.js +10 -6
- package/lib/module/components/typographies/CaptionTwo/CaptionTwo.js.map +1 -1
- package/lib/module/components/typographies/CaptionTwo/index.js +3 -1
- package/lib/module/components/typographies/CaptionTwo/index.js.map +1 -1
- package/lib/module/components/typographies/Footnote/Footnote.js +10 -6
- package/lib/module/components/typographies/Footnote/Footnote.js.map +1 -1
- package/lib/module/components/typographies/Footnote/index.js +3 -1
- package/lib/module/components/typographies/Footnote/index.js.map +1 -1
- package/lib/module/components/typographies/Headline/Headline.js +10 -6
- package/lib/module/components/typographies/Headline/Headline.js.map +1 -1
- package/lib/module/components/typographies/Headline/index.js +3 -1
- package/lib/module/components/typographies/Headline/index.js.map +1 -1
- package/lib/module/components/typographies/LargeTitle/LargeTitle.js +10 -6
- package/lib/module/components/typographies/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/module/components/typographies/LargeTitle/index.js +3 -1
- package/lib/module/components/typographies/LargeTitle/index.js.map +1 -1
- package/lib/module/components/typographies/Subhead/Subhead.js +10 -6
- package/lib/module/components/typographies/Subhead/Subhead.js.map +1 -1
- package/lib/module/components/typographies/Subhead/index.js +3 -1
- package/lib/module/components/typographies/Subhead/index.js.map +1 -1
- package/lib/module/components/typographies/TitleOne/TitleOne.js +10 -6
- package/lib/module/components/typographies/TitleOne/TitleOne.js.map +1 -1
- package/lib/module/components/typographies/TitleOne/index.js +3 -1
- package/lib/module/components/typographies/TitleOne/index.js.map +1 -1
- package/lib/module/components/typographies/TitleThree/TitleThree.js +10 -6
- package/lib/module/components/typographies/TitleThree/TitleThree.js.map +1 -1
- package/lib/module/components/typographies/TitleThree/index.js +3 -1
- package/lib/module/components/typographies/TitleThree/index.js.map +1 -1
- package/lib/module/components/typographies/TitleTwo/TitleTwo.js +10 -6
- package/lib/module/components/typographies/TitleTwo/TitleTwo.js.map +1 -1
- package/lib/module/components/typographies/TitleTwo/index.js +3 -1
- package/lib/module/components/typographies/TitleTwo/index.js.map +1 -1
- package/lib/module/components/typographies/font.js +2 -0
- package/lib/module/components/typographies/font.js.map +1 -1
- package/lib/module/hooks/useTheme.js +3 -1
- package/lib/module/hooks/useTheme.js.map +1 -1
- package/lib/module/index.js +27 -25
- package/lib/module/index.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/providers/DesignSystemProvider/DesignSystemProvider.js +14 -9
- package/lib/module/providers/DesignSystemProvider/DesignSystemProvider.js.map +1 -1
- package/lib/module/providers/DesignSystemProvider/index.js +3 -1
- package/lib/module/providers/DesignSystemProvider/index.js.map +1 -1
- package/lib/module/providers/IconProvider/IconProvider.js +13 -7
- package/lib/module/providers/IconProvider/IconProvider.js.map +1 -1
- package/lib/module/providers/IconProvider/index.js +3 -1
- package/lib/module/providers/IconProvider/index.js.map +1 -1
- package/lib/module/providers/ThemeProvider/ThemeProvider.js +8 -4
- package/lib/module/providers/ThemeProvider/ThemeProvider.js.map +1 -1
- package/lib/module/styles/calendarTheme.js +2 -0
- package/lib/module/styles/calendarTheme.js.map +1 -1
- package/lib/module/styles/colors.js +2 -0
- package/lib/module/styles/colors.js.map +1 -1
- package/lib/module/styles/globalStyles.js +3 -1
- package/lib/module/styles/globalStyles.js.map +1 -1
- package/lib/module/styles/space.js +2 -0
- package/lib/module/styles/space.js.map +1 -1
- package/lib/module/styles/theme.js +6 -4
- package/lib/module/styles/theme.js.map +1 -1
- package/lib/module/utils/locale.js +4 -2
- package/lib/module/utils/locale.js.map +1 -1
- package/lib/package.json +4 -2
- package/lib/typescript/commonjs/components/Tag/Tag.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Tag/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Touchable/Touchable.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Touchable/index.d.ts.map +1 -0
- package/lib/typescript/{components → commonjs/components}/base/DatePicker/DatePicker.d.ts +1 -1
- package/lib/typescript/commonjs/components/base/DatePicker/DatePicker.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/base/DatePicker/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/base/HeaderArrows/HeaderArrows.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/base/HeaderArrows/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/FicButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/FicButton.types.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/FicButtonIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/FicButtonPrimary.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/FicButtonSecondary.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/FicButtonTertiary.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/Icon.stories.d.ts +22 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/Icon.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/Primary.stories.d.ts +33 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/Primary.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/Secondary.stories.d.ts +20 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/Secondary.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/Tertiary.stories.d.ts +21 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/Tertiary.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/themes/dark.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/themes/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/themes/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/themes/light.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButtonGroup/ButtonGroup.stories.d.ts +37 -0
- package/lib/typescript/commonjs/components/buttons/FicButtonGroup/ButtonGroup.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButtonGroup/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/notifications/Banner/Banner.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/notifications/Banner/Banner.types.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/notifications/Banner/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/notifications/Banner/themes/dark.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/notifications/Banner/themes/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/notifications/Banner/themes/light.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/Body/Body.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/Body/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/ButtonTitle/ButtonTitle.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/ButtonTitle/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/Callout/Callout.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/Callout/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/CaptionOne/CaptionOne.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/CaptionOne/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/CaptionTwo/CaptionTwo.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/CaptionTwo/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/Footnote/Footnote.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/Footnote/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/Headline/Headline.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/Headline/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/LargeTitle/LargeTitle.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/LargeTitle/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/Subhead/Subhead.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/Subhead/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/TitleOne/TitleOne.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/TitleOne/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/TitleThree/TitleThree.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/TitleThree/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/TitleTwo/TitleTwo.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/TitleTwo/index.d.ts.map +1 -0
- package/lib/typescript/{components → commonjs/components}/typographies/font.d.ts +1 -1
- package/lib/typescript/commonjs/components/typographies/font.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useTheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/providers/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/providers/DesignSystemProvider/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/providers/IconProvider/IconProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/providers/IconProvider/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/providers/ThemeProvider/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/styles/calendarTheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/styles/colors.d.ts.map +1 -0
- package/lib/typescript/commonjs/styles/globalStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/styles/space.d.ts.map +1 -0
- package/lib/typescript/commonjs/styles/theme.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/locale.d.ts.map +1 -0
- package/lib/typescript/module/components/Tag/Tag.d.ts +13 -0
- package/lib/typescript/module/components/Tag/Tag.d.ts.map +1 -0
- package/lib/typescript/module/components/Tag/index.d.ts +3 -0
- package/lib/typescript/module/components/Tag/index.d.ts.map +1 -0
- package/lib/typescript/module/components/Touchable/Touchable.d.ts +16 -0
- package/lib/typescript/module/components/Touchable/Touchable.d.ts.map +1 -0
- package/lib/typescript/module/components/Touchable/index.d.ts +3 -0
- package/lib/typescript/module/components/Touchable/index.d.ts.map +1 -0
- package/lib/typescript/module/components/base/DatePicker/DatePicker.d.ts +60 -0
- package/lib/typescript/module/components/base/DatePicker/DatePicker.d.ts.map +1 -0
- package/lib/typescript/module/components/base/DatePicker/index.d.ts +4 -0
- package/lib/typescript/module/components/base/DatePicker/index.d.ts.map +1 -0
- package/lib/typescript/module/components/base/HeaderArrows/HeaderArrows.d.ts +16 -0
- package/lib/typescript/module/components/base/HeaderArrows/HeaderArrows.d.ts.map +1 -0
- package/lib/typescript/module/components/base/HeaderArrows/index.d.ts +3 -0
- package/lib/typescript/module/components/base/HeaderArrows/index.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButton.d.ts +5 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButton.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButton.types.d.ts +91 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButton.types.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButtonIcon.d.ts +5 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButtonIcon.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButtonPrimary.d.ts +5 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButtonPrimary.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButtonSecondary.d.ts +5 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButtonSecondary.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButtonTertiary.d.ts +5 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButtonTertiary.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/Icon.stories.d.ts +22 -0
- package/lib/typescript/module/components/buttons/FicButton/Icon.stories.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/Primary.stories.d.ts +33 -0
- package/lib/typescript/module/components/buttons/FicButton/Primary.stories.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/Secondary.stories.d.ts +20 -0
- package/lib/typescript/module/components/buttons/FicButton/Secondary.stories.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/Tertiary.stories.d.ts +21 -0
- package/lib/typescript/module/components/buttons/FicButton/Tertiary.stories.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/constants.d.ts +13 -0
- package/lib/typescript/module/components/buttons/FicButton/constants.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/index.d.ts +5 -0
- package/lib/typescript/module/components/buttons/FicButton/index.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/themes/dark.d.ts +4 -0
- package/lib/typescript/module/components/buttons/FicButton/themes/dark.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/themes/index.d.ts +4 -0
- package/lib/typescript/module/components/buttons/FicButton/themes/index.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/themes/light.d.ts +4 -0
- package/lib/typescript/module/components/buttons/FicButton/themes/light.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButtonGroup/ButtonGroup.stories.d.ts +37 -0
- package/lib/typescript/module/components/buttons/FicButtonGroup/ButtonGroup.stories.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButtonGroup/FicButtonGroup.d.ts +5 -0
- package/lib/typescript/module/components/buttons/FicButtonGroup/FicButtonGroup.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts +10 -0
- package/lib/typescript/module/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButtonGroup/index.d.ts +3 -0
- package/lib/typescript/module/components/buttons/FicButtonGroup/index.d.ts.map +1 -0
- package/lib/typescript/module/components/notifications/Banner/Banner.d.ts +5 -0
- package/lib/typescript/module/components/notifications/Banner/Banner.d.ts.map +1 -0
- package/lib/typescript/module/components/notifications/Banner/Banner.types.d.ts +44 -0
- package/lib/typescript/module/components/notifications/Banner/Banner.types.d.ts.map +1 -0
- package/lib/typescript/module/components/notifications/Banner/index.d.ts +3 -0
- package/lib/typescript/module/components/notifications/Banner/index.d.ts.map +1 -0
- package/lib/typescript/module/components/notifications/Banner/themes/dark.d.ts +4 -0
- package/lib/typescript/module/components/notifications/Banner/themes/dark.d.ts.map +1 -0
- package/lib/typescript/module/components/notifications/Banner/themes/index.d.ts +4 -0
- package/lib/typescript/module/components/notifications/Banner/themes/index.d.ts.map +1 -0
- package/lib/typescript/module/components/notifications/Banner/themes/light.d.ts +4 -0
- package/lib/typescript/module/components/notifications/Banner/themes/light.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/Body/Body.d.ts +12 -0
- package/lib/typescript/module/components/typographies/Body/Body.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/Body/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/Body/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/ButtonTitle/ButtonTitle.d.ts +10 -0
- package/lib/typescript/module/components/typographies/ButtonTitle/ButtonTitle.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/ButtonTitle/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/ButtonTitle/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/Callout/Callout.d.ts +12 -0
- package/lib/typescript/module/components/typographies/Callout/Callout.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/Callout/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/Callout/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/CaptionOne/CaptionOne.d.ts +12 -0
- package/lib/typescript/module/components/typographies/CaptionOne/CaptionOne.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/CaptionOne/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/CaptionOne/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/CaptionTwo/CaptionTwo.d.ts +12 -0
- package/lib/typescript/module/components/typographies/CaptionTwo/CaptionTwo.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/CaptionTwo/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/CaptionTwo/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/Footnote/Footnote.d.ts +12 -0
- package/lib/typescript/module/components/typographies/Footnote/Footnote.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/Footnote/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/Footnote/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/Headline/Headline.d.ts +12 -0
- package/lib/typescript/module/components/typographies/Headline/Headline.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/Headline/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/Headline/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/LargeTitle/LargeTitle.d.ts +12 -0
- package/lib/typescript/module/components/typographies/LargeTitle/LargeTitle.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/LargeTitle/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/LargeTitle/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/Subhead/Subhead.d.ts +12 -0
- package/lib/typescript/module/components/typographies/Subhead/Subhead.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/Subhead/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/Subhead/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/TitleOne/TitleOne.d.ts +12 -0
- package/lib/typescript/module/components/typographies/TitleOne/TitleOne.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/TitleOne/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/TitleOne/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/TitleThree/TitleThree.d.ts +12 -0
- package/lib/typescript/module/components/typographies/TitleThree/TitleThree.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/TitleThree/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/TitleThree/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/TitleTwo/TitleTwo.d.ts +12 -0
- package/lib/typescript/module/components/typographies/TitleTwo/TitleTwo.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/TitleTwo/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/TitleTwo/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/font.d.ts +9 -0
- package/lib/typescript/module/components/typographies/font.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useTheme.d.ts +3 -0
- package/lib/typescript/module/hooks/useTheme.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +32 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/providers/DesignSystemProvider/DesignSystemProvider.d.ts +10 -0
- package/lib/typescript/module/providers/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -0
- package/lib/typescript/module/providers/DesignSystemProvider/index.d.ts +3 -0
- package/lib/typescript/module/providers/DesignSystemProvider/index.d.ts.map +1 -0
- package/lib/typescript/module/providers/IconProvider/IconProvider.d.ts +21 -0
- package/lib/typescript/module/providers/IconProvider/IconProvider.d.ts.map +1 -0
- package/lib/typescript/module/providers/IconProvider/index.d.ts +4 -0
- package/lib/typescript/module/providers/IconProvider/index.d.ts.map +1 -0
- package/lib/typescript/module/providers/ThemeProvider/ThemeProvider.d.ts +9 -0
- package/lib/typescript/module/providers/ThemeProvider/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/module/styles/calendarTheme.d.ts +24 -0
- package/lib/typescript/module/styles/calendarTheme.d.ts.map +1 -0
- package/lib/typescript/module/styles/colors.d.ts +100 -0
- package/lib/typescript/module/styles/colors.d.ts.map +1 -0
- package/lib/typescript/module/styles/globalStyles.d.ts +33 -0
- package/lib/typescript/module/styles/globalStyles.d.ts.map +1 -0
- package/lib/typescript/module/styles/space.d.ts +19 -0
- package/lib/typescript/module/styles/space.d.ts.map +1 -0
- package/lib/typescript/module/styles/theme.d.ts +185 -0
- package/lib/typescript/module/styles/theme.d.ts.map +1 -0
- package/lib/typescript/module/utils/locale.d.ts +15 -0
- package/lib/typescript/module/utils/locale.d.ts.map +1 -0
- package/package.json +5 -3
- package/src/components/buttons/FicButton/FicButton.tsx +17 -25
- package/src/components/buttons/FicButton/FicButtonIcon.tsx +47 -45
- package/src/components/buttons/FicButton/FicButtonPrimary.tsx +13 -1
- package/src/components/buttons/FicButton/FicButtonTertiary.tsx +76 -66
- package/src/components/buttons/FicButton/themes/dark.ts +77 -77
- package/src/components/buttons/FicButton/themes/index.ts +2 -1
- package/src/components/buttons/FicButton/themes/light.ts +77 -77
- package/src/components/buttons/FicButtonGroup/FicButtonGroup.tsx +32 -11
- package/lib/typescript/components/Tag/Tag.d.ts.map +0 -1
- package/lib/typescript/components/Tag/index.d.ts.map +0 -1
- package/lib/typescript/components/Touchable/Touchable.d.ts.map +0 -1
- package/lib/typescript/components/Touchable/index.d.ts.map +0 -1
- package/lib/typescript/components/base/DatePicker/DatePicker.d.ts.map +0 -1
- package/lib/typescript/components/base/DatePicker/index.d.ts.map +0 -1
- package/lib/typescript/components/base/HeaderArrows/HeaderArrows.d.ts.map +0 -1
- package/lib/typescript/components/base/HeaderArrows/index.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/FicButton.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/FicButton.types.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/FicButtonIcon.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/FicButtonPrimary.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/FicButtonSecondary.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/FicButtonTertiary.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/constants.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/index.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/themes/dark.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/themes/index.d.ts +0 -3
- package/lib/typescript/components/buttons/FicButton/themes/index.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/themes/light.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButtonGroup/FicButtonGroup.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButtonGroup/index.d.ts.map +0 -1
- package/lib/typescript/components/notifications/Banner/Banner.d.ts.map +0 -1
- package/lib/typescript/components/notifications/Banner/Banner.types.d.ts.map +0 -1
- package/lib/typescript/components/notifications/Banner/index.d.ts.map +0 -1
- package/lib/typescript/components/notifications/Banner/themes/dark.d.ts.map +0 -1
- package/lib/typescript/components/notifications/Banner/themes/index.d.ts.map +0 -1
- package/lib/typescript/components/notifications/Banner/themes/light.d.ts.map +0 -1
- package/lib/typescript/components/typographies/Body/Body.d.ts.map +0 -1
- package/lib/typescript/components/typographies/Body/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/ButtonTitle/ButtonTitle.d.ts.map +0 -1
- package/lib/typescript/components/typographies/ButtonTitle/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/Callout/Callout.d.ts.map +0 -1
- package/lib/typescript/components/typographies/Callout/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/CaptionOne/CaptionOne.d.ts.map +0 -1
- package/lib/typescript/components/typographies/CaptionOne/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/CaptionTwo/CaptionTwo.d.ts.map +0 -1
- package/lib/typescript/components/typographies/CaptionTwo/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/Footnote/Footnote.d.ts.map +0 -1
- package/lib/typescript/components/typographies/Footnote/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/Headline/Headline.d.ts.map +0 -1
- package/lib/typescript/components/typographies/Headline/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/LargeTitle/LargeTitle.d.ts.map +0 -1
- package/lib/typescript/components/typographies/LargeTitle/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/Subhead/Subhead.d.ts.map +0 -1
- package/lib/typescript/components/typographies/Subhead/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/TitleOne/TitleOne.d.ts.map +0 -1
- package/lib/typescript/components/typographies/TitleOne/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/TitleThree/TitleThree.d.ts.map +0 -1
- package/lib/typescript/components/typographies/TitleThree/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/TitleTwo/TitleTwo.d.ts.map +0 -1
- package/lib/typescript/components/typographies/TitleTwo/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/font.d.ts.map +0 -1
- package/lib/typescript/hooks/useTheme.d.ts.map +0 -1
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/providers/DesignSystemProvider/DesignSystemProvider.d.ts.map +0 -1
- package/lib/typescript/providers/DesignSystemProvider/index.d.ts.map +0 -1
- package/lib/typescript/providers/IconProvider/IconProvider.d.ts.map +0 -1
- package/lib/typescript/providers/IconProvider/index.d.ts.map +0 -1
- package/lib/typescript/providers/ThemeProvider/ThemeProvider.d.ts.map +0 -1
- package/lib/typescript/styles/calendarTheme.d.ts.map +0 -1
- package/lib/typescript/styles/colors.d.ts.map +0 -1
- package/lib/typescript/styles/globalStyles.d.ts.map +0 -1
- package/lib/typescript/styles/space.d.ts.map +0 -1
- package/lib/typescript/styles/theme.d.ts.map +0 -1
- package/lib/typescript/utils/locale.d.ts.map +0 -1
- /package/lib/typescript/{components → commonjs/components}/Tag/Tag.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/Tag/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/Touchable/Touchable.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/Touchable/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/base/DatePicker/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/base/HeaderArrows/HeaderArrows.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/base/HeaderArrows/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButton.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButton.types.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButtonIcon.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButtonPrimary.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButtonSecondary.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButtonTertiary.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/constants.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/themes/dark.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/themes/light.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButtonGroup/FicButtonGroup.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButtonGroup/FicButtonGroup.types.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButtonGroup/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/notifications/Banner/Banner.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/notifications/Banner/Banner.types.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/notifications/Banner/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/notifications/Banner/themes/dark.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/notifications/Banner/themes/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/notifications/Banner/themes/light.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/Body/Body.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/Body/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/ButtonTitle/ButtonTitle.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/ButtonTitle/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/Callout/Callout.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/Callout/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/CaptionOne/CaptionOne.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/CaptionOne/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/CaptionTwo/CaptionTwo.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/CaptionTwo/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/Footnote/Footnote.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/Footnote/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/Headline/Headline.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/Headline/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/LargeTitle/LargeTitle.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/LargeTitle/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/Subhead/Subhead.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/Subhead/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/TitleOne/TitleOne.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/TitleOne/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/TitleThree/TitleThree.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/TitleThree/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/TitleTwo/TitleTwo.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/TitleTwo/index.d.ts +0 -0
- /package/lib/typescript/{hooks → commonjs/hooks}/useTheme.d.ts +0 -0
- /package/lib/typescript/{index.d.ts → commonjs/index.d.ts} +0 -0
- /package/lib/typescript/{providers → commonjs/providers}/DesignSystemProvider/DesignSystemProvider.d.ts +0 -0
- /package/lib/typescript/{providers → commonjs/providers}/DesignSystemProvider/index.d.ts +0 -0
- /package/lib/typescript/{providers → commonjs/providers}/IconProvider/IconProvider.d.ts +0 -0
- /package/lib/typescript/{providers → commonjs/providers}/IconProvider/index.d.ts +0 -0
- /package/lib/typescript/{providers → commonjs/providers}/ThemeProvider/ThemeProvider.d.ts +0 -0
- /package/lib/typescript/{styles → commonjs/styles}/calendarTheme.d.ts +0 -0
- /package/lib/typescript/{styles → commonjs/styles}/colors.d.ts +0 -0
- /package/lib/typescript/{styles → commonjs/styles}/globalStyles.d.ts +0 -0
- /package/lib/typescript/{styles → commonjs/styles}/space.d.ts +0 -0
- /package/lib/typescript/{styles → commonjs/styles}/theme.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/locale.d.ts +0 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import { FicButtonTheme } from '../components/buttons/FicButton/FicButton.types';
|
|
3
|
+
import { BannerThemeProp } from '../components/notifications/Banner/Banner.types';
|
|
4
|
+
import { CalendarTheme } from './calendarTheme';
|
|
5
|
+
import { Colors } from './colors';
|
|
6
|
+
interface FlatButtonThemeProps {
|
|
7
|
+
color?: string;
|
|
8
|
+
disabledColor?: string;
|
|
9
|
+
backgroundColor?: string;
|
|
10
|
+
hasShadow?: boolean;
|
|
11
|
+
shadowColor?: string;
|
|
12
|
+
borderRadius?: number;
|
|
13
|
+
disabledStyle?: StyleProp<ViewStyle>;
|
|
14
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
15
|
+
}
|
|
16
|
+
interface GradientButtonThemeProps {
|
|
17
|
+
isHorizontalGradient?: boolean;
|
|
18
|
+
color?: string;
|
|
19
|
+
disabledColor?: string;
|
|
20
|
+
backgroundColors?: string[];
|
|
21
|
+
disabledBackgroundColors?: string[];
|
|
22
|
+
hasShadow?: boolean;
|
|
23
|
+
shadowColor?: string;
|
|
24
|
+
borderRadius?: number;
|
|
25
|
+
disabledStyle?: StyleProp<ViewStyle>;
|
|
26
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
27
|
+
}
|
|
28
|
+
interface OutlineButtonThemeProps {
|
|
29
|
+
color?: string;
|
|
30
|
+
disabledColor?: string;
|
|
31
|
+
backgroundColor?: string;
|
|
32
|
+
disabledBackgroundColor?: string;
|
|
33
|
+
borderColor?: string;
|
|
34
|
+
disabledBorderColor?: string;
|
|
35
|
+
hasShadow?: boolean;
|
|
36
|
+
shadowColor?: string;
|
|
37
|
+
borderRadius?: number;
|
|
38
|
+
disabledStyle?: StyleProp<ViewStyle>;
|
|
39
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
40
|
+
}
|
|
41
|
+
export interface TextInputThemeProps {
|
|
42
|
+
color?: string;
|
|
43
|
+
labelColor?: string;
|
|
44
|
+
disabledTextColor?: string;
|
|
45
|
+
disabledLabelColor?: string;
|
|
46
|
+
mandatoryIndicatorColor?: string;
|
|
47
|
+
placeholderColor?: string;
|
|
48
|
+
inlineLeadingColor?: string;
|
|
49
|
+
fieldIconColor?: string;
|
|
50
|
+
borderColor?: string;
|
|
51
|
+
focusedBorderColor?: string;
|
|
52
|
+
disabledBorderColor?: string;
|
|
53
|
+
erroredBorderColor?: string;
|
|
54
|
+
warningBorderColor?: string;
|
|
55
|
+
backgroundColor?: string;
|
|
56
|
+
disabledBackgroundColor?: string;
|
|
57
|
+
}
|
|
58
|
+
interface TypographiesThemeProps {
|
|
59
|
+
bodyColor?: string;
|
|
60
|
+
buttonTitleColor?: string;
|
|
61
|
+
calloutColor?: string;
|
|
62
|
+
captionOneColor?: string;
|
|
63
|
+
captionTwoColor?: string;
|
|
64
|
+
footnoteColor?: string;
|
|
65
|
+
headlineColor?: string;
|
|
66
|
+
largeTitleColor?: string;
|
|
67
|
+
subheadColor?: string;
|
|
68
|
+
titleOneColor?: string;
|
|
69
|
+
titleTwoColor?: string;
|
|
70
|
+
titleThreeColor?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface TouchablesThemeProps {
|
|
73
|
+
rippleColors?: string;
|
|
74
|
+
highlightColor?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface SearchBarThemeProps {
|
|
77
|
+
color?: string;
|
|
78
|
+
backgroundColor?: string;
|
|
79
|
+
iconColor?: string;
|
|
80
|
+
selectionColor?: string;
|
|
81
|
+
useTextColor?: string;
|
|
82
|
+
errorColor?: string;
|
|
83
|
+
}
|
|
84
|
+
export interface DurationPickerThemeProps {
|
|
85
|
+
activeColor?: string;
|
|
86
|
+
inactiveColor?: string;
|
|
87
|
+
labelColor?: string;
|
|
88
|
+
guidesColor?: string;
|
|
89
|
+
}
|
|
90
|
+
export interface BottomSheetHeaderThemeProps {
|
|
91
|
+
backgroundColor?: string;
|
|
92
|
+
emptyHeaderBackgroundColor?: string;
|
|
93
|
+
handleColor?: string;
|
|
94
|
+
darkHandleColor?: string;
|
|
95
|
+
titleColor?: string;
|
|
96
|
+
captionColor?: string;
|
|
97
|
+
descriptionColor?: string;
|
|
98
|
+
buttonsColor?: string;
|
|
99
|
+
loaderColor?: string;
|
|
100
|
+
}
|
|
101
|
+
export interface BottomSheetThemeProps {
|
|
102
|
+
backgroundColor?: string;
|
|
103
|
+
backdropColor?: string;
|
|
104
|
+
cancelButtonBackgroundColor?: string;
|
|
105
|
+
header?: BottomSheetHeaderThemeProps;
|
|
106
|
+
handleIndicator: ViewStyle;
|
|
107
|
+
}
|
|
108
|
+
export interface YearMonthPickerThemeProps {
|
|
109
|
+
backgroundColor?: string;
|
|
110
|
+
yearColor?: string;
|
|
111
|
+
arrowsColor?: string;
|
|
112
|
+
monthsTextColor?: string;
|
|
113
|
+
monthsBackgroundColor?: string;
|
|
114
|
+
currentMonthTextColor?: string;
|
|
115
|
+
currentMonthBackgroundColor?: string;
|
|
116
|
+
selectedMonthTextColor?: string;
|
|
117
|
+
selectedMonthBackgroundColor?: string;
|
|
118
|
+
}
|
|
119
|
+
export interface ThemeProps {
|
|
120
|
+
flatButton?: FlatButtonThemeProps;
|
|
121
|
+
gradientButton?: GradientButtonThemeProps;
|
|
122
|
+
outlineButton?: OutlineButtonThemeProps;
|
|
123
|
+
textInput?: TextInputThemeProps;
|
|
124
|
+
typographies?: TypographiesThemeProps;
|
|
125
|
+
searchBar?: SearchBarThemeProps;
|
|
126
|
+
datePickers?: CalendarTheme;
|
|
127
|
+
pickers?: DurationPickerThemeProps;
|
|
128
|
+
bottomSheetHeader?: BottomSheetHeaderThemeProps;
|
|
129
|
+
yearMonthPickers?: YearMonthPickerThemeProps;
|
|
130
|
+
}
|
|
131
|
+
export interface GenericThemeProps {
|
|
132
|
+
backgroundLevel0?: string;
|
|
133
|
+
backgroundLevel1?: string;
|
|
134
|
+
backgroundLevel2?: string;
|
|
135
|
+
backgroundLevel3?: string;
|
|
136
|
+
backgroundLevel4?: string;
|
|
137
|
+
title?: string;
|
|
138
|
+
description?: string;
|
|
139
|
+
disabledTitle?: string;
|
|
140
|
+
disabledDescription?: string;
|
|
141
|
+
divider?: string;
|
|
142
|
+
cardBackground?: string;
|
|
143
|
+
}
|
|
144
|
+
interface Primaries {
|
|
145
|
+
azure: Colors;
|
|
146
|
+
red: Colors;
|
|
147
|
+
green: Colors;
|
|
148
|
+
yellow: Colors;
|
|
149
|
+
purple: Colors;
|
|
150
|
+
blue: Colors;
|
|
151
|
+
}
|
|
152
|
+
export interface Theme {
|
|
153
|
+
banner?: BannerThemeProp;
|
|
154
|
+
ficButton?: FicButtonTheme;
|
|
155
|
+
flatButton: Omit<Required<FlatButtonThemeProps>, 'disabledStyle' | 'containerStyle'> & {
|
|
156
|
+
disabledStyle?: StyleProp<ViewStyle>;
|
|
157
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
158
|
+
};
|
|
159
|
+
gradientButton: Omit<Required<GradientButtonThemeProps>, 'disabledStyle' | 'containerStyle'> & {
|
|
160
|
+
disabledStyle?: StyleProp<ViewStyle>;
|
|
161
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
162
|
+
};
|
|
163
|
+
outlineButton: Omit<Required<OutlineButtonThemeProps>, 'disabledStyle' | 'containerStyle'> & {
|
|
164
|
+
disabledStyle?: StyleProp<ViewStyle>;
|
|
165
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
166
|
+
};
|
|
167
|
+
textInput: Required<TextInputThemeProps>;
|
|
168
|
+
typographies: Required<TypographiesThemeProps>;
|
|
169
|
+
touchables: Required<TouchablesThemeProps>;
|
|
170
|
+
searchBar: Required<SearchBarThemeProps>;
|
|
171
|
+
datePickers: CalendarTheme;
|
|
172
|
+
pickers: DurationPickerThemeProps;
|
|
173
|
+
bottomSheet: Required<BottomSheetThemeProps>;
|
|
174
|
+
yearMonthPickers: YearMonthPickerThemeProps;
|
|
175
|
+
generic?: GenericThemeProps;
|
|
176
|
+
primaries?: Primaries;
|
|
177
|
+
primariesContrast?: Primaries;
|
|
178
|
+
primariesLight?: Primaries;
|
|
179
|
+
primariesDark?: Primaries;
|
|
180
|
+
}
|
|
181
|
+
export declare const ficTheme: Theme;
|
|
182
|
+
export declare const ficDarkTheme: Theme;
|
|
183
|
+
export declare const defaultTheme: Theme;
|
|
184
|
+
export {};
|
|
185
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/styles/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMpD,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAGjF,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAKlF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,UAAU,oBAAoB;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,SA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
|
+
* @param {boolean} [withNoRegion] - If `true`, only the language is returned without the region.
|
|
6
|
+
* @returns {string} The language and region settings of the device.
|
|
7
|
+
* @example
|
|
8
|
+
* // Returns "it_IT" or "it" if `withNoRegion` is `true`
|
|
9
|
+
* const languageRegion = getDeviceLanguageAndRegion(true);
|
|
10
|
+
*/
|
|
11
|
+
export declare const getDeviceLanguageAndRegion: (withNoRegion?: boolean) => string;
|
|
12
|
+
export declare let desiredLocale: string | undefined;
|
|
13
|
+
declare const setLocale: (localeCode: string) => void;
|
|
14
|
+
export default setLocale;
|
|
15
|
+
//# sourceMappingURL=locale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../../../src/utils/locale.ts"],"names":[],"mappings":"AAEA,OAAO,oBAAoB,CAAC;AAoB5B;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B,GAAI,eAAe,OAAO,KAAG,MAOnE,CAAC;AAEF,eAAO,IAAI,aAAa,EAAE,MAAM,GAAG,SAAqB,CAAC;AAEzD,QAAA,MAAM,SAAS,GAAI,YAAY,MAAM,SAKpC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fattureincloud-mobile/fic-mobile-ds",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Official Design System for Fatture in Cloud Mobile",
|
|
5
5
|
"main": "./lib/commonjs/index.js",
|
|
6
6
|
"module": "./lib/module/index.js",
|
|
7
|
-
"types": "./lib/typescript/index.d.ts",
|
|
7
|
+
"types": "./lib/typescript/commonjs/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
9
|
"src",
|
|
10
10
|
"lib",
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"release": "dotenv release-it",
|
|
35
35
|
"release:ci": "dotenv release-it --ci",
|
|
36
36
|
"release:ni": "dotenv release-it --no-increment",
|
|
37
|
-
"release:rv": "dotenv release-it --release-version"
|
|
37
|
+
"release:rv": "dotenv release-it --release-version",
|
|
38
|
+
"yalc:push": "yarn build && yalc push"
|
|
38
39
|
},
|
|
39
40
|
"keywords": [
|
|
40
41
|
"react-native",
|
|
@@ -86,6 +87,7 @@
|
|
|
86
87
|
"react-native": "0.74.7",
|
|
87
88
|
"react-native-builder-bob": "^0.20.0",
|
|
88
89
|
"react-native-gesture-handler": "2.9.0",
|
|
90
|
+
"react-native-reanimated": "3.16.7",
|
|
89
91
|
"react-test-renderer": "18.2.0",
|
|
90
92
|
"release-it": "^15.0.0",
|
|
91
93
|
"typescript": "5.0.4"
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @ts-ignore TS6133
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { FicButtonProps } from './FicButton.types';
|
|
4
3
|
import FicButtonIcon from './FicButtonIcon';
|
|
@@ -6,36 +5,29 @@ import FicButtonPrimary from './FicButtonPrimary';
|
|
|
6
5
|
import FicButtonSecondary from './FicButtonSecondary';
|
|
7
6
|
import FicButtonTertiary from './FicButtonTertiary';
|
|
8
7
|
|
|
8
|
+
const buttonMap = {
|
|
9
|
+
icon: FicButtonIcon,
|
|
10
|
+
secondary: FicButtonSecondary,
|
|
11
|
+
tertiary: FicButtonTertiary,
|
|
12
|
+
primary: FicButtonPrimary,
|
|
13
|
+
};
|
|
14
|
+
|
|
9
15
|
const FicButton: React.FC<FicButtonProps> = ({
|
|
10
16
|
type = 'primary',
|
|
11
17
|
...commonProps
|
|
12
18
|
}) => {
|
|
13
|
-
const _iconPosition =
|
|
14
|
-
|
|
15
|
-
: commonProps.iconName
|
|
16
|
-
? 'left'
|
|
17
|
-
: undefined;
|
|
19
|
+
const _iconPosition =
|
|
20
|
+
commonProps.iconPosition ?? (commonProps.iconName ? 'left' : undefined);
|
|
18
21
|
|
|
19
|
-
const
|
|
20
|
-
switch (type) {
|
|
21
|
-
case 'icon':
|
|
22
|
-
return <FicButtonIcon isPressable {...commonProps} />;
|
|
23
|
-
case 'secondary':
|
|
24
|
-
return (
|
|
25
|
-
<FicButtonSecondary iconPosition={_iconPosition} {...commonProps} />
|
|
26
|
-
);
|
|
27
|
-
case 'tertiary':
|
|
28
|
-
return (
|
|
29
|
-
<FicButtonTertiary iconPosition={_iconPosition} {...commonProps} />
|
|
30
|
-
);
|
|
31
|
-
default:
|
|
32
|
-
return (
|
|
33
|
-
<FicButtonPrimary iconPosition={_iconPosition} {...commonProps} />
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
22
|
+
const ButtonComponent = buttonMap[type] || FicButtonPrimary;
|
|
37
23
|
|
|
38
|
-
return
|
|
24
|
+
return (
|
|
25
|
+
<ButtonComponent
|
|
26
|
+
iconPosition={_iconPosition}
|
|
27
|
+
{...(type === 'icon' ? { isPressable: true } : {})}
|
|
28
|
+
{...commonProps}
|
|
29
|
+
/>
|
|
30
|
+
);
|
|
39
31
|
};
|
|
40
32
|
|
|
41
33
|
export default FicButton;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
// @ts-ignore TS6133
|
|
2
1
|
import * as React from 'react';
|
|
3
|
-
import { FunctionComponent, useCallback, useMemo
|
|
2
|
+
import { FunctionComponent, useCallback, useMemo } from 'react';
|
|
4
3
|
import {
|
|
5
4
|
GestureResponderEvent,
|
|
6
5
|
Platform,
|
|
7
6
|
Pressable as PressableIOS,
|
|
8
|
-
StyleProp,
|
|
9
7
|
View,
|
|
10
8
|
ViewStyle,
|
|
11
9
|
} from 'react-native';
|
|
12
10
|
import { TouchableHighlight } from 'react-native-gesture-handler';
|
|
11
|
+
import Animated, {
|
|
12
|
+
useAnimatedStyle,
|
|
13
|
+
useSharedValue,
|
|
14
|
+
withTiming,
|
|
15
|
+
} from 'react-native-reanimated';
|
|
13
16
|
import { useTheme } from '../../../hooks/useTheme';
|
|
14
17
|
import { Icon } from '../../../providers/IconProvider';
|
|
15
18
|
import {
|
|
@@ -50,32 +53,26 @@ const FicButtonIcon: FunctionComponent<FicIconProps> = ({
|
|
|
50
53
|
? buttonTheme.error
|
|
51
54
|
: buttonTheme.default;
|
|
52
55
|
|
|
53
|
-
const
|
|
56
|
+
const pressedOpacity = useSharedValue(0);
|
|
54
57
|
|
|
55
|
-
const pressedAreaSize =
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
? customPressedIconAreaSize
|
|
59
|
-
: iconSize + INCREMENT_PRESSED_AREA_SIZE,
|
|
60
|
-
[iconSize, customPressedIconAreaSize]
|
|
61
|
-
);
|
|
58
|
+
const pressedAreaSize = customPressedIconAreaSize
|
|
59
|
+
? customPressedIconAreaSize
|
|
60
|
+
: iconSize + INCREMENT_PRESSED_AREA_SIZE;
|
|
62
61
|
|
|
63
|
-
const pressableAreaStyle
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
[iconSize, pressedAreaSize, themeProps]
|
|
74
|
-
);
|
|
62
|
+
const pressableAreaStyle = useAnimatedStyle<ViewStyle>(() => ({
|
|
63
|
+
position: 'absolute' as const,
|
|
64
|
+
top: ((pressedAreaSize - iconSize) / 2) * -1,
|
|
65
|
+
left: ((pressedAreaSize - iconSize) / 2) * -1,
|
|
66
|
+
width: pressedAreaSize ?? iconSize,
|
|
67
|
+
height: pressedAreaSize ?? iconSize,
|
|
68
|
+
borderRadius: pressedAreaSize / 6,
|
|
69
|
+
opacity: pressedOpacity.value,
|
|
70
|
+
...themeProps?.pressedStyle?.container,
|
|
71
|
+
}));
|
|
75
72
|
|
|
76
|
-
const iconStyle
|
|
73
|
+
const iconStyle = useMemo(
|
|
77
74
|
() => ({
|
|
78
|
-
textAlign: 'center',
|
|
75
|
+
textAlign: 'center' as const,
|
|
79
76
|
lineHeight: iconSize,
|
|
80
77
|
width: iconSize,
|
|
81
78
|
height: iconSize,
|
|
@@ -89,28 +86,33 @@ const FicButtonIcon: FunctionComponent<FicIconProps> = ({
|
|
|
89
86
|
);
|
|
90
87
|
|
|
91
88
|
const iconColor = useMemo(() => {
|
|
92
|
-
return iconCustomColor
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
89
|
+
if (iconCustomColor) return iconCustomColor;
|
|
90
|
+
if (error) return themeProps?.icon.color;
|
|
91
|
+
|
|
92
|
+
if (
|
|
93
|
+
colorContrastForLightTheme &&
|
|
94
|
+
themeProps?.icon?.colorContrastForLightTheme
|
|
95
|
+
)
|
|
96
|
+
return themeProps?.icon.colorContrastForLightTheme;
|
|
97
|
+
|
|
98
|
+
return themeProps?.icon.color;
|
|
99
99
|
}, [colorContrastForLightTheme, error, themeProps, iconCustomColor]);
|
|
100
100
|
|
|
101
|
-
const handleOnPressIn: onPressType = (
|
|
102
|
-
e: GestureResponderEvent | undefined
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
101
|
+
const handleOnPressIn: onPressType = useCallback(
|
|
102
|
+
(e: GestureResponderEvent | undefined) => {
|
|
103
|
+
pressedOpacity.value = withTiming(1, { duration: 50 });
|
|
104
|
+
if (onPressIn) onPressIn(e);
|
|
105
|
+
},
|
|
106
|
+
[pressedOpacity, onPressIn]
|
|
107
|
+
);
|
|
107
108
|
|
|
108
|
-
const handleOnPressOut: onPressType = (
|
|
109
|
-
e: GestureResponderEvent | undefined
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
109
|
+
const handleOnPressOut: onPressType = useCallback(
|
|
110
|
+
(e: GestureResponderEvent | undefined) => {
|
|
111
|
+
pressedOpacity.value = withTiming(0, { duration: 50 });
|
|
112
|
+
if (onPressOut) onPressOut(e);
|
|
113
|
+
},
|
|
114
|
+
[pressedOpacity, onPressOut]
|
|
115
|
+
);
|
|
114
116
|
|
|
115
117
|
const handleOnPress: onPressType = (e: GestureResponderEvent | undefined) => {
|
|
116
118
|
if (onPress) onPress(e);
|
|
@@ -145,7 +147,7 @@ const FicButtonIcon: FunctionComponent<FicIconProps> = ({
|
|
|
145
147
|
|
|
146
148
|
return (
|
|
147
149
|
<View style={{ width: _iconSize, height: _iconSize }}>
|
|
148
|
-
|
|
150
|
+
<Animated.View style={pressableAreaStyle} />
|
|
149
151
|
<Pressable
|
|
150
152
|
style={[themeProps?.container, containerStyle]}
|
|
151
153
|
onPress={handleOnPress}
|
|
@@ -137,7 +137,19 @@ const FicButtonPrimary: React.FC<FicButtonTextProps> = ({
|
|
|
137
137
|
) : null}
|
|
138
138
|
</View>
|
|
139
139
|
);
|
|
140
|
-
}, [
|
|
140
|
+
}, [
|
|
141
|
+
iconPosition,
|
|
142
|
+
iconName,
|
|
143
|
+
iconSize,
|
|
144
|
+
bodyStyle,
|
|
145
|
+
title,
|
|
146
|
+
ficPrimaryViewStyle,
|
|
147
|
+
themeProps,
|
|
148
|
+
solid,
|
|
149
|
+
regular,
|
|
150
|
+
light,
|
|
151
|
+
duotone,
|
|
152
|
+
]);
|
|
141
153
|
|
|
142
154
|
return Platform.OS === 'android' ? (
|
|
143
155
|
<TouchableHighlight
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { useCallback, useMemo
|
|
2
|
+
import { useCallback, useMemo } from 'react';
|
|
3
3
|
import {
|
|
4
4
|
GestureResponderEvent,
|
|
5
5
|
Platform,
|
|
@@ -7,15 +7,31 @@ import {
|
|
|
7
7
|
StyleProp,
|
|
8
8
|
TextStyle,
|
|
9
9
|
View,
|
|
10
|
-
ViewStyle
|
|
10
|
+
ViewStyle,
|
|
11
11
|
} from 'react-native';
|
|
12
12
|
import { TouchableHighlight } from 'react-native-gesture-handler';
|
|
13
|
+
import Animated, {
|
|
14
|
+
runOnUI,
|
|
15
|
+
useAnimatedStyle,
|
|
16
|
+
useSharedValue,
|
|
17
|
+
withTiming,
|
|
18
|
+
} from 'react-native-reanimated';
|
|
13
19
|
import { useTheme } from '../../../hooks/useTheme';
|
|
14
20
|
import { Icon } from '../../../providers/IconProvider';
|
|
15
21
|
import { PADDING } from '../../../styles/space';
|
|
16
22
|
import { Body } from '../../typographies/Body';
|
|
17
|
-
import {
|
|
18
|
-
|
|
23
|
+
import {
|
|
24
|
+
DEFAULT_ICON,
|
|
25
|
+
DEFAULT_ICON_SIZE,
|
|
26
|
+
DEFAULT_TITLE,
|
|
27
|
+
HIT_SLOP,
|
|
28
|
+
ICON_HORIZONTAL_MARGIN,
|
|
29
|
+
} from './constants';
|
|
30
|
+
import {
|
|
31
|
+
FicButtonTextProps,
|
|
32
|
+
FicButtonThemeProps,
|
|
33
|
+
onPressType,
|
|
34
|
+
} from './FicButton.types';
|
|
19
35
|
|
|
20
36
|
const FicButtonTertiary: React.FC<FicButtonTextProps> = ({
|
|
21
37
|
title,
|
|
@@ -34,17 +50,21 @@ const FicButtonTertiary: React.FC<FicButtonTextProps> = ({
|
|
|
34
50
|
regular,
|
|
35
51
|
light,
|
|
36
52
|
duotone,
|
|
37
|
-
containerStyle
|
|
53
|
+
containerStyle,
|
|
38
54
|
}) => {
|
|
39
55
|
const { ficButton: theme } = useTheme() || {};
|
|
40
56
|
|
|
41
57
|
const Pressable = Platform.OS === 'ios' ? PressableIOS : TouchableHighlight;
|
|
42
58
|
|
|
43
59
|
const buttonTheme = (theme?.['tertiary'] as FicButtonThemeProps) || {};
|
|
44
|
-
const themeProps = disabled
|
|
60
|
+
const themeProps = disabled
|
|
61
|
+
? buttonTheme.disabled
|
|
62
|
+
: error
|
|
63
|
+
? buttonTheme.error
|
|
64
|
+
: buttonTheme.default;
|
|
45
65
|
const _containerStyle = containerStyle ?? {};
|
|
46
66
|
|
|
47
|
-
const
|
|
67
|
+
const pressedOpacity = useSharedValue(0);
|
|
48
68
|
|
|
49
69
|
const iconColor = useMemo(() => {
|
|
50
70
|
return colorContrastForLightTheme && !error
|
|
@@ -66,51 +86,42 @@ const FicButtonTertiary: React.FC<FicButtonTextProps> = ({
|
|
|
66
86
|
() => ({
|
|
67
87
|
marginLeft: iconPosition === 'left' ? ICON_HORIZONTAL_MARGIN : 0,
|
|
68
88
|
marginRight: iconPosition === 'right' ? ICON_HORIZONTAL_MARGIN : 0,
|
|
69
|
-
textDecorationLine: themeProps?.text.textDecorationLine ?? 'underline'
|
|
89
|
+
textDecorationLine: themeProps?.text.textDecorationLine ?? 'underline',
|
|
70
90
|
}),
|
|
71
|
-
[themeProps, iconPosition,
|
|
91
|
+
[themeProps, iconPosition, disabled]
|
|
72
92
|
);
|
|
73
93
|
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
)
|
|
94
|
+
const pressableAreaStyle = useAnimatedStyle<ViewStyle>(() => ({
|
|
95
|
+
top: small ? -PADDING.SM : -PADDING.LG,
|
|
96
|
+
bottom: small ? -PADDING.SM : -PADDING.LG,
|
|
97
|
+
left: fullWidth ? 0 : PADDING.LG * -1,
|
|
98
|
+
right: fullWidth ? 0 : PADDING.LG * -1,
|
|
99
|
+
position: 'absolute',
|
|
100
|
+
opacity: pressedOpacity.value,
|
|
101
|
+
...themeProps?.pressedStyle?.container,
|
|
102
|
+
}));
|
|
103
|
+
|
|
104
|
+
const animate = (value: number) => {
|
|
105
|
+
'worklet';
|
|
106
|
+
pressedOpacity.value = withTiming(value, { duration: 0 });
|
|
107
|
+
};
|
|
85
108
|
|
|
86
|
-
const
|
|
87
|
-
() =>
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}),
|
|
93
|
-
[disabled, themeProps, isPressed]
|
|
109
|
+
const handleOnPressIn: onPressType = useCallback(
|
|
110
|
+
(e: GestureResponderEvent | undefined) => {
|
|
111
|
+
runOnUI(animate)(1);
|
|
112
|
+
if (onPressIn) onPressIn(e);
|
|
113
|
+
},
|
|
114
|
+
[pressedOpacity, onPressIn]
|
|
94
115
|
);
|
|
95
116
|
|
|
96
|
-
const
|
|
97
|
-
() =>
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
[
|
|
117
|
+
const handleOnPressOut: onPressType = useCallback(
|
|
118
|
+
(e: GestureResponderEvent | undefined) => {
|
|
119
|
+
runOnUI(animate)(0);
|
|
120
|
+
if (onPressOut) onPressOut(e);
|
|
121
|
+
},
|
|
122
|
+
[pressedOpacity, onPressOut]
|
|
102
123
|
);
|
|
103
124
|
|
|
104
|
-
const handleOnPressIn: onPressType = (e: GestureResponderEvent | undefined) => {
|
|
105
|
-
if (onPressIn) onPressIn(e);
|
|
106
|
-
setIsPressed(true);
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
const handleOnPressOut: onPressType = (e: GestureResponderEvent | undefined) => {
|
|
110
|
-
if (onPressOut) onPressOut(e);
|
|
111
|
-
setIsPressed(false);
|
|
112
|
-
};
|
|
113
|
-
|
|
114
125
|
const handleOnPress: onPressType = (e: GestureResponderEvent | undefined) => {
|
|
115
126
|
if (onPress) onPress(e);
|
|
116
127
|
};
|
|
@@ -129,7 +140,11 @@ const FicButtonTertiary: React.FC<FicButtonTextProps> = ({
|
|
|
129
140
|
duotone={duotone}
|
|
130
141
|
/>
|
|
131
142
|
) : null}
|
|
132
|
-
<Body
|
|
143
|
+
<Body
|
|
144
|
+
text={title ?? DEFAULT_TITLE}
|
|
145
|
+
style={bodyStyle}
|
|
146
|
+
color={bodyColor}
|
|
147
|
+
/>
|
|
133
148
|
{iconPosition === 'right' ? (
|
|
134
149
|
<Icon
|
|
135
150
|
name={iconName || DEFAULT_ICON}
|
|
@@ -143,33 +158,28 @@ const FicButtonTertiary: React.FC<FicButtonTextProps> = ({
|
|
|
143
158
|
) : null}
|
|
144
159
|
</>
|
|
145
160
|
);
|
|
146
|
-
}, [
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
>
|
|
159
|
-
{FicTertiary()}
|
|
160
|
-
</Pressable>
|
|
161
|
-
) : (
|
|
161
|
+
}, [
|
|
162
|
+
iconPosition,
|
|
163
|
+
iconName,
|
|
164
|
+
iconSize,
|
|
165
|
+
buttonTheme,
|
|
166
|
+
disabled,
|
|
167
|
+
error,
|
|
168
|
+
bodyStyle,
|
|
169
|
+
title,
|
|
170
|
+
]);
|
|
171
|
+
|
|
172
|
+
return (
|
|
162
173
|
<View
|
|
163
174
|
style={[
|
|
164
175
|
{
|
|
165
|
-
|
|
166
|
-
alignSelf: 'flex-start',
|
|
167
|
-
width: fullWidth ? '100%' : 'auto'
|
|
176
|
+
width: fullWidth ? '100%' : 'auto',
|
|
177
|
+
alignSelf: fullWidth ? 'stretch' : 'flex-start',
|
|
168
178
|
},
|
|
169
|
-
_containerStyle
|
|
179
|
+
_containerStyle,
|
|
170
180
|
]}
|
|
171
181
|
>
|
|
172
|
-
|
|
182
|
+
<Animated.View style={pressableAreaStyle} />
|
|
173
183
|
<Pressable
|
|
174
184
|
style={themeProps?.container}
|
|
175
185
|
onPress={handleOnPress}
|