@fattureincloud-mobile/fic-mobile-ds 1.2.1 → 1.2.2
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 +4 -2
- 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
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import * as React from 'react';
|
|
2
4
|
import { useCallback, useMemo, useState } from 'react';
|
|
3
5
|
import { Platform, Pressable, View } from 'react-native';
|
|
4
6
|
import { TouchableHighlight } from 'react-native-gesture-handler';
|
|
5
|
-
import { useTheme } from
|
|
6
|
-
import { Icon } from
|
|
7
|
-
import { BORDER_RADIUS, PADDING } from
|
|
8
|
-
import { Body } from
|
|
9
|
-
import { BUTTON_INTERNAL_PADDING_HORIZONTAL, DEFAULT_ICON, DEFAULT_ICON_SIZE, DEFAULT_TITLE, ICON_HORIZONTAL_MARGIN } from
|
|
7
|
+
import { useTheme } from "../../../hooks/useTheme.js";
|
|
8
|
+
import { Icon } from "../../../providers/IconProvider/index.js";
|
|
9
|
+
import { BORDER_RADIUS, PADDING } from "../../../styles/space.js";
|
|
10
|
+
import { Body } from "../../typographies/Body/index.js";
|
|
11
|
+
import { BUTTON_INTERNAL_PADDING_HORIZONTAL, DEFAULT_ICON, DEFAULT_ICON_SIZE, DEFAULT_TITLE, ICON_HORIZONTAL_MARGIN } from "./constants.js";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
13
|
const FicButtonPrimary = ({
|
|
11
14
|
title,
|
|
12
15
|
iconName,
|
|
@@ -25,20 +28,16 @@ const FicButtonPrimary = ({
|
|
|
25
28
|
duotone,
|
|
26
29
|
containerStyle
|
|
27
30
|
}) => {
|
|
28
|
-
var _themeProps$pressedSt3;
|
|
29
31
|
const {
|
|
30
32
|
ficButton: theme
|
|
31
33
|
} = useTheme() || {};
|
|
32
|
-
const buttonTheme =
|
|
34
|
+
const buttonTheme = theme?.['primary'] || {};
|
|
33
35
|
const themeProps = disabled ? buttonTheme.disabled : error ? buttonTheme.error : buttonTheme.default;
|
|
34
36
|
const containerStyleObj = containerStyle ?? {};
|
|
35
37
|
const [isPressed, setIsPressed] = useState(false);
|
|
36
|
-
const styleBasedOnPress = useMemo(() => {
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
}, [disabled, themeProps, isPressed]);
|
|
38
|
+
const styleBasedOnPress = useMemo(() => ({
|
|
39
|
+
...(isPressed && !disabled ? themeProps?.pressedStyle?.container : themeProps?.container)
|
|
40
|
+
}), [disabled, themeProps, isPressed]);
|
|
42
41
|
const ficPrimaryViewStyle = useMemo(() => ({
|
|
43
42
|
paddingHorizontal: BUTTON_INTERNAL_PADDING_HORIZONTAL,
|
|
44
43
|
paddingVertical: small ? PADDING.SM : PADDING.LG,
|
|
@@ -47,14 +46,11 @@ const FicButtonPrimary = ({
|
|
|
47
46
|
alignItems: 'center',
|
|
48
47
|
justifyContent: 'center'
|
|
49
48
|
}), [fullWidth, small]);
|
|
50
|
-
const bodyStyle = useMemo(() => {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
...(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)
|
|
56
|
-
};
|
|
57
|
-
}, [iconPosition, themeProps, disabled, isPressed]);
|
|
49
|
+
const bodyStyle = useMemo(() => ({
|
|
50
|
+
marginLeft: iconPosition === 'left' ? ICON_HORIZONTAL_MARGIN : 0,
|
|
51
|
+
marginRight: iconPosition === 'right' ? ICON_HORIZONTAL_MARGIN : 0,
|
|
52
|
+
...(isPressed && !disabled ? themeProps?.pressedStyle?.text : themeProps?.text)
|
|
53
|
+
}), [iconPosition, themeProps, disabled, isPressed]);
|
|
58
54
|
const handleOnPressIn = e => {
|
|
59
55
|
if (onPressIn) onPressIn(e);
|
|
60
56
|
setIsPressed(true);
|
|
@@ -69,30 +65,31 @@ const FicButtonPrimary = ({
|
|
|
69
65
|
}
|
|
70
66
|
};
|
|
71
67
|
const FicPrimary = useCallback(() => {
|
|
72
|
-
return /*#__PURE__*/
|
|
73
|
-
style: ficPrimaryViewStyle
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
68
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
69
|
+
style: ficPrimaryViewStyle,
|
|
70
|
+
children: [iconPosition === 'left' ? /*#__PURE__*/_jsx(Icon, {
|
|
71
|
+
name: iconName || DEFAULT_ICON,
|
|
72
|
+
size: iconSize ?? DEFAULT_ICON_SIZE,
|
|
73
|
+
color: themeProps?.icon.color,
|
|
74
|
+
solid: solid,
|
|
75
|
+
regular: regular,
|
|
76
|
+
light: light,
|
|
77
|
+
duotone: duotone
|
|
78
|
+
}) : null, /*#__PURE__*/_jsx(Body, {
|
|
79
|
+
text: title ?? DEFAULT_TITLE,
|
|
80
|
+
style: bodyStyle
|
|
81
|
+
}), iconPosition === 'right' ? /*#__PURE__*/_jsx(Icon, {
|
|
82
|
+
name: iconName || DEFAULT_ICON,
|
|
83
|
+
size: iconSize ?? DEFAULT_ICON_SIZE,
|
|
84
|
+
color: themeProps?.icon.color,
|
|
85
|
+
solid: solid,
|
|
86
|
+
regular: regular,
|
|
87
|
+
light: light,
|
|
88
|
+
duotone: duotone
|
|
89
|
+
}) : null]
|
|
90
|
+
});
|
|
94
91
|
}, [iconPosition, iconName, iconSize, bodyStyle, title, ficPrimaryViewStyle, themeProps, solid, regular, light, duotone]);
|
|
95
|
-
return Platform.OS === 'android' ? /*#__PURE__*/
|
|
92
|
+
return Platform.OS === 'android' ? /*#__PURE__*/_jsx(TouchableHighlight, {
|
|
96
93
|
disabled: disabled,
|
|
97
94
|
containerStyle: [containerStyleObj],
|
|
98
95
|
style: [{
|
|
@@ -101,14 +98,16 @@ const FicButtonPrimary = ({
|
|
|
101
98
|
onPress: handleOnPress,
|
|
102
99
|
onPressIn: handleOnPressIn,
|
|
103
100
|
onPressOut: handleOnPressOut,
|
|
104
|
-
underlayColor: themeProps
|
|
105
|
-
|
|
101
|
+
underlayColor: themeProps?.pressedStyle?.container.backgroundColor,
|
|
102
|
+
children: FicPrimary()
|
|
103
|
+
}) : /*#__PURE__*/_jsx(Pressable, {
|
|
106
104
|
disabled: disabled,
|
|
107
105
|
style: [styleBasedOnPress, containerStyleObj],
|
|
108
106
|
onPress: handleOnPress,
|
|
109
107
|
onPressIn: handleOnPressIn,
|
|
110
|
-
onPressOut: handleOnPressOut
|
|
111
|
-
|
|
108
|
+
onPressOut: handleOnPressOut,
|
|
109
|
+
children: FicPrimary()
|
|
110
|
+
});
|
|
112
111
|
};
|
|
113
112
|
export default FicButtonPrimary;
|
|
114
113
|
//# sourceMappingURL=FicButtonPrimary.js.map
|
|
@@ -1 +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","
|
|
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","jsx","_jsx","jsxs","_jsxs","FicButtonPrimary","title","iconName","iconSize","onPress","onPressIn","onPressOut","disabled","error","iconPosition","fullWidth","small","solid","regular","light","duotone","containerStyle","ficButton","theme","buttonTheme","themeProps","default","containerStyleObj","isPressed","setIsPressed","styleBasedOnPress","pressedStyle","container","ficPrimaryViewStyle","paddingHorizontal","paddingVertical","SM","LG","width","flexDirection","alignItems","justifyContent","bodyStyle","marginLeft","marginRight","text","handleOnPressIn","e","handleOnPressOut","handleOnPress","FicPrimary","style","children","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,4BAAyB;AAClD,SAASC,IAAI,QAAQ,0CAAiC;AACtD,SAASC,aAAa,EAAEC,OAAO,QAAQ,0BAAuB;AAC9D,SAASC,IAAI,QAAQ,kCAAyB;AAC9C,SACEC,kCAAkC,EAClCC,YAAY,EACZC,iBAAiB,EACjBC,aAAa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S;IACnBuC,KAAK,EAAE,CAACrB,iBAAiB,EAAEH,iBAAiB,CAAE;IAC9ClB,OAAO,EAAEwC,aAAc;IACvBvC,SAAS,EAAEoC,eAAgB;IAC3BnC,UAAU,EAAEqC,gBAAiB;IAAAI,QAAA,EAE5BF,UAAU,CAAC;EAAC,CACJ,CACZ;AACH,CAAC;AAED,eAAe7C,gBAAgB","ignoreList":[]}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import * as React from 'react';
|
|
2
4
|
import { useCallback, useMemo, useState } from 'react';
|
|
3
5
|
import { Platform, Pressable, View } from 'react-native';
|
|
4
6
|
import { TouchableHighlight } from 'react-native-gesture-handler';
|
|
5
|
-
import { useTheme } from
|
|
6
|
-
import { Icon } from
|
|
7
|
-
import { BORDER_RADIUS, PADDING } from
|
|
8
|
-
import { Body } from
|
|
9
|
-
import { BUTTON_INTERNAL_PADDING_HORIZONTAL, DEFAULT_ICON, DEFAULT_ICON_SIZE, DEFAULT_TITLE, ICON_HORIZONTAL_MARGIN } from
|
|
7
|
+
import { useTheme } from "../../../hooks/useTheme.js";
|
|
8
|
+
import { Icon } from "../../../providers/IconProvider/index.js";
|
|
9
|
+
import { BORDER_RADIUS, PADDING } from "../../../styles/space.js";
|
|
10
|
+
import { Body } from "../../typographies/Body/index.js";
|
|
11
|
+
import { BUTTON_INTERNAL_PADDING_HORIZONTAL, DEFAULT_ICON, DEFAULT_ICON_SIZE, DEFAULT_TITLE, ICON_HORIZONTAL_MARGIN } from "./constants.js";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
13
|
const FicButtonSecondary = ({
|
|
11
14
|
title,
|
|
12
15
|
iconName,
|
|
@@ -25,40 +28,30 @@ const FicButtonSecondary = ({
|
|
|
25
28
|
duotone,
|
|
26
29
|
containerStyle
|
|
27
30
|
}) => {
|
|
28
|
-
var _themeProps$pressedSt3;
|
|
29
31
|
const {
|
|
30
32
|
ficButton: theme
|
|
31
33
|
} = useTheme() || {};
|
|
32
|
-
const buttonTheme =
|
|
34
|
+
const buttonTheme = theme?.['secondary'] || {};
|
|
33
35
|
const themeProps = disabled ? buttonTheme.disabled : error ? buttonTheme.error : buttonTheme.default;
|
|
34
36
|
const containerStyleObj = containerStyle ?? {};
|
|
35
37
|
const [isPressed, setIsPressed] = useState(false);
|
|
36
|
-
const styleBasedOnPress = useMemo(() => {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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]);
|
|
38
|
+
const styleBasedOnPress = useMemo(() => ({
|
|
39
|
+
...(isPressed && !disabled ? themeProps?.pressedStyle?.container : themeProps?.container)
|
|
40
|
+
}), [themeProps, disabled, isPressed]);
|
|
41
|
+
const ficSecondaryViewStyle = useMemo(() => ({
|
|
42
|
+
paddingHorizontal: BUTTON_INTERNAL_PADDING_HORIZONTAL,
|
|
43
|
+
width: fullWidth ? '100%' : 'auto',
|
|
44
|
+
// removing 1 borderWidth to match primary button height
|
|
45
|
+
paddingVertical: (small ? PADDING.SM : PADDING.LG) - (themeProps?.container?.borderWidth || 0),
|
|
46
|
+
flexDirection: 'row',
|
|
47
|
+
alignItems: 'center',
|
|
48
|
+
justifyContent: 'center'
|
|
49
|
+
}), [fullWidth, themeProps]);
|
|
50
|
+
const bodyStyle = useMemo(() => ({
|
|
51
|
+
marginLeft: iconPosition === 'left' ? ICON_HORIZONTAL_MARGIN : 0,
|
|
52
|
+
marginRight: iconPosition === 'right' ? ICON_HORIZONTAL_MARGIN : 0,
|
|
53
|
+
...(isPressed && !disabled ? themeProps?.pressedStyle?.text : themeProps?.text)
|
|
54
|
+
}), [themeProps, iconPosition, disabled, isPressed]);
|
|
62
55
|
const handleOnPressIn = e => {
|
|
63
56
|
if (onPressIn) onPressIn(e);
|
|
64
57
|
setIsPressed(true);
|
|
@@ -71,30 +64,31 @@ const FicButtonSecondary = ({
|
|
|
71
64
|
if (onPress) onPress(e);
|
|
72
65
|
};
|
|
73
66
|
const FicSecondary = useCallback(() => {
|
|
74
|
-
return /*#__PURE__*/
|
|
75
|
-
style: ficSecondaryViewStyle
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
67
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
68
|
+
style: ficSecondaryViewStyle,
|
|
69
|
+
children: [iconPosition === 'left' ? /*#__PURE__*/_jsx(Icon, {
|
|
70
|
+
name: iconName || DEFAULT_ICON,
|
|
71
|
+
size: iconSize ?? DEFAULT_ICON_SIZE,
|
|
72
|
+
color: themeProps?.icon.color,
|
|
73
|
+
solid: solid,
|
|
74
|
+
regular: regular,
|
|
75
|
+
light: light,
|
|
76
|
+
duotone: duotone
|
|
77
|
+
}) : null, /*#__PURE__*/_jsx(Body, {
|
|
78
|
+
text: title ?? DEFAULT_TITLE,
|
|
79
|
+
style: bodyStyle
|
|
80
|
+
}), iconPosition === 'right' ? /*#__PURE__*/_jsx(Icon, {
|
|
81
|
+
name: iconName || DEFAULT_ICON,
|
|
82
|
+
size: iconSize ?? DEFAULT_ICON_SIZE,
|
|
83
|
+
color: themeProps?.icon.color,
|
|
84
|
+
solid: solid,
|
|
85
|
+
regular: regular,
|
|
86
|
+
light: light,
|
|
87
|
+
duotone: duotone
|
|
88
|
+
}) : null]
|
|
89
|
+
});
|
|
96
90
|
}, [iconPosition, iconName, iconSize, bodyStyle, title]);
|
|
97
|
-
return Platform.OS === 'android' ? /*#__PURE__*/
|
|
91
|
+
return Platform.OS === 'android' ? /*#__PURE__*/_jsx(TouchableHighlight, {
|
|
98
92
|
disabled: disabled,
|
|
99
93
|
containerStyle: containerStyleObj,
|
|
100
94
|
style: [{
|
|
@@ -103,14 +97,16 @@ const FicButtonSecondary = ({
|
|
|
103
97
|
onPress: handleOnPress,
|
|
104
98
|
onPressIn: handleOnPressIn,
|
|
105
99
|
onPressOut: handleOnPressOut,
|
|
106
|
-
underlayColor: themeProps
|
|
107
|
-
|
|
100
|
+
underlayColor: themeProps?.pressedStyle?.container.backgroundColor,
|
|
101
|
+
children: FicSecondary()
|
|
102
|
+
}) : /*#__PURE__*/_jsx(Pressable, {
|
|
108
103
|
style: [styleBasedOnPress, containerStyleObj],
|
|
109
104
|
onPress: handleOnPress,
|
|
110
105
|
onPressIn: handleOnPressIn,
|
|
111
106
|
onPressOut: handleOnPressOut,
|
|
112
|
-
disabled: disabled
|
|
113
|
-
|
|
107
|
+
disabled: disabled,
|
|
108
|
+
children: FicSecondary()
|
|
109
|
+
});
|
|
114
110
|
};
|
|
115
111
|
export default FicButtonSecondary;
|
|
116
112
|
//# sourceMappingURL=FicButtonSecondary.js.map
|
|
@@ -1 +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","
|
|
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","jsx","_jsx","jsxs","_jsxs","FicButtonSecondary","title","iconName","iconSize","onPress","onPressIn","onPressOut","disabled","error","iconPosition","fullWidth","small","solid","regular","light","duotone","containerStyle","ficButton","theme","buttonTheme","themeProps","default","containerStyleObj","isPressed","setIsPressed","styleBasedOnPress","pressedStyle","container","ficSecondaryViewStyle","paddingHorizontal","width","paddingVertical","SM","LG","borderWidth","flexDirection","alignItems","justifyContent","bodyStyle","marginLeft","marginRight","text","handleOnPressIn","e","handleOnPressOut","handleOnPress","FicSecondary","style","children","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,4BAAyB;AAClD,SAASC,IAAI,QAAQ,0CAAiC;AACtD,SAASC,aAAa,EAAEC,OAAO,QAAQ,0BAAuB;AAC9D,SAASC,IAAI,Q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AErBjD,IAAA,CAACd,SAAS;IACRgE,KAAK,EAAE,CAACtB,iBAAiB,EAAEH,iBAAiB,CAAE;IAC9ClB,OAAO,EAAEyC,aAAc;IACvBxC,SAAS,EAAEqC,eAAgB;IAC3BpC,UAAU,EAAEsC,gBAAiB;IAC7BrC,QAAQ,EAAEA,QAAS;IAAAyC,QAAA,EAElBF,YAAY,CAAC;EAAC,CACN,CACZ;AACH,CAAC;AAED,eAAe9C,kBAAkB","ignoreList":[]}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import * as React from 'react';
|
|
2
|
-
import { useCallback, useMemo
|
|
4
|
+
import { useCallback, useMemo } from 'react';
|
|
3
5
|
import { Platform, Pressable as PressableIOS, View } from 'react-native';
|
|
4
6
|
import { TouchableHighlight } from 'react-native-gesture-handler';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import Animated, { runOnUI, useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
|
|
8
|
+
import { useTheme } from "../../../hooks/useTheme.js";
|
|
9
|
+
import { Icon } from "../../../providers/IconProvider/index.js";
|
|
10
|
+
import { PADDING } from "../../../styles/space.js";
|
|
11
|
+
import { Body } from "../../typographies/Body/index.js";
|
|
12
|
+
import { DEFAULT_ICON, DEFAULT_ICON_SIZE, DEFAULT_TITLE, HIT_SLOP, ICON_HORIZONTAL_MARGIN } from "./constants.js";
|
|
13
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
14
|
const FicButtonTertiary = ({
|
|
11
15
|
title,
|
|
12
16
|
iconName,
|
|
@@ -30,108 +34,91 @@ const FicButtonTertiary = ({
|
|
|
30
34
|
ficButton: theme
|
|
31
35
|
} = useTheme() || {};
|
|
32
36
|
const Pressable = Platform.OS === 'ios' ? PressableIOS : TouchableHighlight;
|
|
33
|
-
const buttonTheme =
|
|
37
|
+
const buttonTheme = theme?.['tertiary'] || {};
|
|
34
38
|
const themeProps = disabled ? buttonTheme.disabled : error ? buttonTheme.error : buttonTheme.default;
|
|
35
39
|
const _containerStyle = containerStyle ?? {};
|
|
36
|
-
const
|
|
40
|
+
const pressedOpacity = useSharedValue(0);
|
|
37
41
|
const iconColor = useMemo(() => {
|
|
38
|
-
return colorContrastForLightTheme && !error ? themeProps
|
|
42
|
+
return colorContrastForLightTheme && !error ? themeProps?.icon.colorContrastForLightTheme ? themeProps?.icon.colorContrastForLightTheme : themeProps?.icon.color : themeProps?.icon.color;
|
|
39
43
|
}, [themeProps, colorContrastForLightTheme, error]);
|
|
40
44
|
const bodyColor = useMemo(() => {
|
|
41
|
-
return colorContrastForLightTheme && !error ? themeProps
|
|
45
|
+
return colorContrastForLightTheme && !error ? themeProps?.text.colorContrastForLightTheme ? themeProps?.text.colorContrastForLightTheme : themeProps?.text.color : themeProps?.text.color;
|
|
42
46
|
}, [themeProps, colorContrastForLightTheme, error]);
|
|
43
47
|
const bodyStyle = useMemo(() => ({
|
|
44
48
|
marginLeft: iconPosition === 'left' ? ICON_HORIZONTAL_MARGIN : 0,
|
|
45
49
|
marginRight: iconPosition === 'right' ? ICON_HORIZONTAL_MARGIN : 0,
|
|
46
|
-
textDecorationLine:
|
|
47
|
-
}), [themeProps, iconPosition,
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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);
|
|
50
|
+
textDecorationLine: themeProps?.text.textDecorationLine ?? 'underline'
|
|
51
|
+
}), [themeProps, iconPosition, disabled]);
|
|
52
|
+
const pressableAreaStyle = useAnimatedStyle(() => ({
|
|
53
|
+
top: small ? -PADDING.SM : -PADDING.LG,
|
|
54
|
+
bottom: small ? -PADDING.SM : -PADDING.LG,
|
|
55
|
+
left: fullWidth ? 0 : PADDING.LG * -1,
|
|
56
|
+
right: fullWidth ? 0 : PADDING.LG * -1,
|
|
57
|
+
position: 'absolute',
|
|
58
|
+
opacity: pressedOpacity.value,
|
|
59
|
+
...themeProps?.pressedStyle?.container
|
|
60
|
+
}));
|
|
61
|
+
const animate = value => {
|
|
62
|
+
'worklet';
|
|
63
|
+
|
|
64
|
+
pressedOpacity.value = withTiming(value, {
|
|
65
|
+
duration: 0
|
|
66
|
+
});
|
|
78
67
|
};
|
|
79
|
-
const
|
|
68
|
+
const handleOnPressIn = useCallback(e => {
|
|
69
|
+
runOnUI(animate)(1);
|
|
70
|
+
if (onPressIn) onPressIn(e);
|
|
71
|
+
}, [pressedOpacity, onPressIn]);
|
|
72
|
+
const handleOnPressOut = useCallback(e => {
|
|
73
|
+
runOnUI(animate)(0);
|
|
80
74
|
if (onPressOut) onPressOut(e);
|
|
81
|
-
|
|
82
|
-
};
|
|
75
|
+
}, [pressedOpacity, onPressOut]);
|
|
83
76
|
const handleOnPress = e => {
|
|
84
77
|
if (onPress) onPress(e);
|
|
85
78
|
};
|
|
86
79
|
const FicTertiary = useCallback(() => {
|
|
87
|
-
return /*#__PURE__*/
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
80
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
81
|
+
children: [iconPosition === 'left' ? /*#__PURE__*/_jsx(Icon, {
|
|
82
|
+
name: iconName || DEFAULT_ICON,
|
|
83
|
+
size: iconSize ?? DEFAULT_ICON_SIZE,
|
|
84
|
+
color: iconColor,
|
|
85
|
+
solid: solid,
|
|
86
|
+
regular: regular,
|
|
87
|
+
light: light,
|
|
88
|
+
duotone: duotone
|
|
89
|
+
}) : null, /*#__PURE__*/_jsx(Body, {
|
|
90
|
+
text: title ?? DEFAULT_TITLE,
|
|
91
|
+
style: bodyStyle,
|
|
92
|
+
color: bodyColor
|
|
93
|
+
}), iconPosition === 'right' ? /*#__PURE__*/_jsx(Icon, {
|
|
94
|
+
name: iconName || DEFAULT_ICON,
|
|
95
|
+
size: iconSize ?? DEFAULT_ICON_SIZE,
|
|
96
|
+
color: iconColor,
|
|
97
|
+
solid: solid,
|
|
98
|
+
regular: regular,
|
|
99
|
+
light: light,
|
|
100
|
+
duotone: duotone
|
|
101
|
+
}) : null]
|
|
102
|
+
});
|
|
108
103
|
}, [iconPosition, iconName, iconSize, buttonTheme, disabled, error, bodyStyle, title]);
|
|
109
|
-
return
|
|
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, {
|
|
104
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
119
105
|
style: [{
|
|
120
|
-
|
|
121
|
-
alignSelf: 'flex-start'
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
106
|
+
width: fullWidth ? '100%' : 'auto',
|
|
107
|
+
alignSelf: fullWidth ? 'stretch' : 'flex-start'
|
|
108
|
+
}, _containerStyle],
|
|
109
|
+
children: [/*#__PURE__*/_jsx(Animated.View, {
|
|
110
|
+
style: pressableAreaStyle
|
|
111
|
+
}), /*#__PURE__*/_jsx(Pressable, {
|
|
112
|
+
style: themeProps?.container,
|
|
113
|
+
onPress: handleOnPress,
|
|
114
|
+
onPressIn: handleOnPressIn,
|
|
115
|
+
onPressOut: handleOnPressOut,
|
|
116
|
+
disabled: disabled,
|
|
117
|
+
hitSlop: HIT_SLOP,
|
|
118
|
+
underlayColor: 'transparent',
|
|
119
|
+
children: FicTertiary()
|
|
120
|
+
})]
|
|
121
|
+
});
|
|
135
122
|
};
|
|
136
123
|
export default FicButtonTertiary;
|
|
137
124
|
//# sourceMappingURL=FicButtonTertiary.js.map
|