@fattureincloud-mobile/fic-mobile-ds 1.2.0 → 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 +50 -42
- 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 +49 -44
- 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 +11 -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 +53 -42
- 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 +51 -44
- 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 +10 -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/{components → commonjs/components}/buttons/FicButton/FicButton.types.d.ts +4 -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/{components → commonjs/components}/notifications/Banner/Banner.types.d.ts +9 -15
- 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/{index.d.ts → commonjs/index.d.ts} +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/{styles → commonjs/styles}/theme.d.ts +2 -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/FicButton.types.ts +35 -7
- package/src/components/buttons/FicButton/FicButtonIcon.tsx +50 -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/src/components/notifications/Banner/Banner.tsx +22 -16
- package/src/components/notifications/Banner/Banner.types.ts +9 -21
- package/src/index.tsx +2 -0
- package/src/styles/colors.ts +1 -1
- package/src/styles/theme.ts +6 -0
- 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/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/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/{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/{utils → commonjs/utils}/locale.d.ts +0 -0
|
@@ -8,15 +8,16 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var React = _react;
|
|
9
9
|
var _reactNative = require("react-native");
|
|
10
10
|
var _reactNativeGestureHandler = require("react-native-gesture-handler");
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
11
|
+
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
12
|
+
var _useTheme = require("../../../hooks/useTheme.js");
|
|
13
|
+
var _index = require("../../../providers/IconProvider/index.js");
|
|
14
|
+
var _constants = require("./constants.js");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
|
-
// @ts-ignore TS6133
|
|
16
|
-
|
|
17
17
|
const FicButtonIcon = ({
|
|
18
18
|
iconName,
|
|
19
19
|
iconSize: _iconSize,
|
|
20
|
+
iconCustomColor,
|
|
20
21
|
disabled,
|
|
21
22
|
error,
|
|
22
23
|
onPress,
|
|
@@ -36,22 +37,20 @@ const FicButtonIcon = ({
|
|
|
36
37
|
const {
|
|
37
38
|
ficButton: theme
|
|
38
39
|
} = (0, _useTheme.useTheme)() || {};
|
|
39
|
-
const buttonTheme =
|
|
40
|
+
const buttonTheme = theme?.['icon'] || {};
|
|
40
41
|
const themeProps = disabled ? buttonTheme.disabled : error ? buttonTheme.error : buttonTheme.default;
|
|
41
|
-
const
|
|
42
|
-
const pressedAreaSize =
|
|
43
|
-
const pressableAreaStyle = (0,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
};
|
|
54
|
-
}, [iconSize, pressedAreaSize, themeProps]);
|
|
42
|
+
const pressedOpacity = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
43
|
+
const pressedAreaSize = customPressedIconAreaSize ? customPressedIconAreaSize : iconSize + INCREMENT_PRESSED_AREA_SIZE;
|
|
44
|
+
const pressableAreaStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
|
|
45
|
+
position: 'absolute',
|
|
46
|
+
top: (pressedAreaSize - iconSize) / 2 * -1,
|
|
47
|
+
left: (pressedAreaSize - iconSize) / 2 * -1,
|
|
48
|
+
width: pressedAreaSize ?? iconSize,
|
|
49
|
+
height: pressedAreaSize ?? iconSize,
|
|
50
|
+
borderRadius: pressedAreaSize / 6,
|
|
51
|
+
opacity: pressedOpacity.value,
|
|
52
|
+
...themeProps?.pressedStyle?.container
|
|
53
|
+
}));
|
|
55
54
|
const iconStyle = (0, _react.useMemo)(() => ({
|
|
56
55
|
textAlign: 'center',
|
|
57
56
|
lineHeight: iconSize,
|
|
@@ -60,20 +59,27 @@ const FicButtonIcon = ({
|
|
|
60
59
|
fontSize: iconSize ? iconSize === 16 ? iconSize - 2 : iconSize - 4 : _constants.DEFAULT_ICON_SIZE
|
|
61
60
|
}), [iconSize]);
|
|
62
61
|
const iconColor = (0, _react.useMemo)(() => {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
if (iconCustomColor) return iconCustomColor;
|
|
63
|
+
if (error) return themeProps?.icon.color;
|
|
64
|
+
if (colorContrastForLightTheme && themeProps?.icon?.colorContrastForLightTheme) return themeProps?.icon.colorContrastForLightTheme;
|
|
65
|
+
return themeProps?.icon.color;
|
|
66
|
+
}, [colorContrastForLightTheme, error, themeProps, iconCustomColor]);
|
|
67
|
+
const handleOnPressIn = (0, _react.useCallback)(e => {
|
|
68
|
+
pressedOpacity.value = (0, _reactNativeReanimated.withTiming)(1, {
|
|
69
|
+
duration: 50
|
|
70
|
+
});
|
|
66
71
|
if (onPressIn) onPressIn(e);
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
72
|
+
}, [pressedOpacity, onPressIn]);
|
|
73
|
+
const handleOnPressOut = (0, _react.useCallback)(e => {
|
|
74
|
+
pressedOpacity.value = (0, _reactNativeReanimated.withTiming)(0, {
|
|
75
|
+
duration: 50
|
|
76
|
+
});
|
|
70
77
|
if (onPressOut) onPressOut(e);
|
|
71
|
-
|
|
72
|
-
};
|
|
78
|
+
}, [pressedOpacity, onPressOut]);
|
|
73
79
|
const handleOnPress = e => {
|
|
74
80
|
if (onPress) onPress(e);
|
|
75
81
|
};
|
|
76
|
-
const FicIcon = (0, _react.useCallback)(() => /*#__PURE__*/
|
|
82
|
+
const FicIcon = (0, _react.useCallback)(() => /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Icon, {
|
|
77
83
|
name: iconName ?? _constants.DEFAULT_ICON,
|
|
78
84
|
solid: solid,
|
|
79
85
|
light: light,
|
|
@@ -83,22 +89,24 @@ const FicButtonIcon = ({
|
|
|
83
89
|
color: iconColor,
|
|
84
90
|
style: iconStyle
|
|
85
91
|
}), [iconName, iconSize, colorContrastForLightTheme, error, iconStyle, themeProps, solid, light, regular, duotone]);
|
|
86
|
-
return /*#__PURE__*/
|
|
92
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
87
93
|
style: {
|
|
88
94
|
width: _iconSize,
|
|
89
95
|
height: _iconSize
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
96
|
+
},
|
|
97
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
98
|
+
style: pressableAreaStyle
|
|
99
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Pressable, {
|
|
100
|
+
style: [themeProps?.container, containerStyle],
|
|
101
|
+
onPress: handleOnPress,
|
|
102
|
+
onPressIn: handleOnPressIn,
|
|
103
|
+
onPressOut: handleOnPressOut,
|
|
104
|
+
hitSlop: _constants.HIT_SLOP,
|
|
105
|
+
disabled: disabled,
|
|
106
|
+
underlayColor: 'transparent',
|
|
107
|
+
children: FicIcon()
|
|
108
|
+
})]
|
|
109
|
+
});
|
|
102
110
|
};
|
|
103
111
|
var _default = exports.default = FicButtonIcon;
|
|
104
112
|
//# sourceMappingURL=FicButtonIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","React","_reactNative","_reactNativeGestureHandler","_useTheme","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","React","_reactNative","_reactNativeGestureHandler","_reactNativeReanimated","_useTheme","_index","_constants","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FicButtonIcon","iconName","iconSize","_iconSize","iconCustomColor","disabled","error","onPress","onPressIn","onPressOut","containerStyle","customPressedIconAreaSize","colorContrastForLightTheme","solid","light","duotone","regular","Pressable","Platform","OS","PressableIOS","TouchableHighlight","INCREMENT_PRESSED_AREA_SIZE","DEFAULT_ICON_SIZE","ficButton","theme","useTheme","buttonTheme","themeProps","pressedOpacity","useSharedValue","pressedAreaSize","pressableAreaStyle","useAnimatedStyle","position","top","left","width","height","borderRadius","opacity","value","pressedStyle","container","iconStyle","useMemo","textAlign","lineHeight","fontSize","iconColor","icon","color","handleOnPressIn","useCallback","withTiming","duration","handleOnPressOut","handleOnPress","FicIcon","jsx","Icon","name","DEFAULT_ICON","size","style","jsxs","View","children","hitSlop","HIT_SLOP","underlayColor","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/FicButtonIcon.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,IAAAC,KAAA,GAAAH,MAAA;AAE/B,IAAAI,YAAA,GAAAF,OAAA;AAOA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,sBAAA,GAAAL,uBAAA,CAAAC,OAAA;AAKA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AAMA,IAAAO,UAAA,GAAAP,OAAA;AAAwE,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAD,wBAAAU,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAZ,uBAAA,YAAAA,CAAAU,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAA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EF,SAAU;IACjBe,KAAK,EAAEpB;EAAU,CAClB,CACF,EACD,CACE3C,QAAQ,EACRC,QAAQ,EACRU,0BAA0B,EAC1BN,KAAK,EACLsC,SAAS,EACThB,UAAU,EACVf,KAAK,EACLC,KAAK,EACLE,OAAO,EACPD,OAAO,CAEX,CAAC;EAED,oBACE,IAAAnC,WAAA,CAAAqF,IAAA,EAAC3F,YAAA,CAAA4F,IAAI;IAACF,KAAK,EAAE;MAAE3B,KAAK,EAAElC,SAAS;MAAEmC,MAAM,EAAEnC;IAAU,CAAE;IAAAgE,QAAA,gBACnD,IAAAvF,WAAA,CAAA+E,GAAA,EAACnF,sBAAA,CAAAe,OAAQ,CAAC2E,IAAI;MAACF,KAAK,EAAEhC;IAAmB,CAAE,CAAC,eAC5C,IAAApD,WAAA,CAAA+E,GAAA,EAAC1C,SAAS;MACR+C,KAAK,EAAE,CAACpC,UAAU,EAAEe,SAAS,EAAEjC,cAAc,CAAE;MAC/CH,OAAO,EAAEkD,aAAc;MACvBjD,SAAS,EAAE4C,eAAgB;MAC3B3C,UAAU,EAAE+C,gBAAiB;MAC7BY,OAAO,EAAEC,mBAAS;MAClBhE,QAAQ,EAAEA,QAAS;MACnBiE,aAAa,EAAE,aAAc;MAAAH,QAAA,EAE5BT,OAAO,CAAC;IAAC,CACD,CAAC;EAAA,CACR,CAAC;AAEX,CAAC;AAAC,IAAAa,QAAA,GAAAC,OAAA,CAAAjF,OAAA,GAEaS,aAAa","ignoreList":[]}
|
|
@@ -8,11 +8,12 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var React = _react;
|
|
9
9
|
var _reactNative = require("react-native");
|
|
10
10
|
var _reactNativeGestureHandler = require("react-native-gesture-handler");
|
|
11
|
-
var _useTheme = require("../../../hooks/useTheme");
|
|
12
|
-
var
|
|
13
|
-
var _space = require("../../../styles/space");
|
|
14
|
-
var
|
|
15
|
-
var _constants = require("./constants");
|
|
11
|
+
var _useTheme = require("../../../hooks/useTheme.js");
|
|
12
|
+
var _index = require("../../../providers/IconProvider/index.js");
|
|
13
|
+
var _space = require("../../../styles/space.js");
|
|
14
|
+
var _index2 = require("../../typographies/Body/index.js");
|
|
15
|
+
var _constants = require("./constants.js");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
17
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
17
18
|
const FicButtonPrimary = ({
|
|
18
19
|
title,
|
|
@@ -32,20 +33,16 @@ const FicButtonPrimary = ({
|
|
|
32
33
|
duotone,
|
|
33
34
|
containerStyle
|
|
34
35
|
}) => {
|
|
35
|
-
var _themeProps$pressedSt3;
|
|
36
36
|
const {
|
|
37
37
|
ficButton: theme
|
|
38
38
|
} = (0, _useTheme.useTheme)() || {};
|
|
39
|
-
const buttonTheme =
|
|
39
|
+
const buttonTheme = theme?.['primary'] || {};
|
|
40
40
|
const themeProps = disabled ? buttonTheme.disabled : error ? buttonTheme.error : buttonTheme.default;
|
|
41
41
|
const containerStyleObj = containerStyle ?? {};
|
|
42
42
|
const [isPressed, setIsPressed] = (0, _react.useState)(false);
|
|
43
|
-
const styleBasedOnPress = (0, _react.useMemo)(() => {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
...(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)
|
|
47
|
-
};
|
|
48
|
-
}, [disabled, themeProps, isPressed]);
|
|
43
|
+
const styleBasedOnPress = (0, _react.useMemo)(() => ({
|
|
44
|
+
...(isPressed && !disabled ? themeProps?.pressedStyle?.container : themeProps?.container)
|
|
45
|
+
}), [disabled, themeProps, isPressed]);
|
|
49
46
|
const ficPrimaryViewStyle = (0, _react.useMemo)(() => ({
|
|
50
47
|
paddingHorizontal: _constants.BUTTON_INTERNAL_PADDING_HORIZONTAL,
|
|
51
48
|
paddingVertical: small ? _space.PADDING.SM : _space.PADDING.LG,
|
|
@@ -54,14 +51,11 @@ const FicButtonPrimary = ({
|
|
|
54
51
|
alignItems: 'center',
|
|
55
52
|
justifyContent: 'center'
|
|
56
53
|
}), [fullWidth, small]);
|
|
57
|
-
const bodyStyle = (0, _react.useMemo)(() => {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
...(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)
|
|
63
|
-
};
|
|
64
|
-
}, [iconPosition, themeProps, disabled, isPressed]);
|
|
54
|
+
const bodyStyle = (0, _react.useMemo)(() => ({
|
|
55
|
+
marginLeft: iconPosition === 'left' ? _constants.ICON_HORIZONTAL_MARGIN : 0,
|
|
56
|
+
marginRight: iconPosition === 'right' ? _constants.ICON_HORIZONTAL_MARGIN : 0,
|
|
57
|
+
...(isPressed && !disabled ? themeProps?.pressedStyle?.text : themeProps?.text)
|
|
58
|
+
}), [iconPosition, themeProps, disabled, isPressed]);
|
|
65
59
|
const handleOnPressIn = e => {
|
|
66
60
|
if (onPressIn) onPressIn(e);
|
|
67
61
|
setIsPressed(true);
|
|
@@ -76,30 +70,31 @@ const FicButtonPrimary = ({
|
|
|
76
70
|
}
|
|
77
71
|
};
|
|
78
72
|
const FicPrimary = (0, _react.useCallback)(() => {
|
|
79
|
-
return /*#__PURE__*/
|
|
80
|
-
style: ficPrimaryViewStyle
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
73
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
74
|
+
style: ficPrimaryViewStyle,
|
|
75
|
+
children: [iconPosition === 'left' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Icon, {
|
|
76
|
+
name: iconName || _constants.DEFAULT_ICON,
|
|
77
|
+
size: iconSize ?? _constants.DEFAULT_ICON_SIZE,
|
|
78
|
+
color: themeProps?.icon.color,
|
|
79
|
+
solid: solid,
|
|
80
|
+
regular: regular,
|
|
81
|
+
light: light,
|
|
82
|
+
duotone: duotone
|
|
83
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Body, {
|
|
84
|
+
text: title ?? _constants.DEFAULT_TITLE,
|
|
85
|
+
style: bodyStyle
|
|
86
|
+
}), iconPosition === 'right' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Icon, {
|
|
87
|
+
name: iconName || _constants.DEFAULT_ICON,
|
|
88
|
+
size: iconSize ?? _constants.DEFAULT_ICON_SIZE,
|
|
89
|
+
color: themeProps?.icon.color,
|
|
90
|
+
solid: solid,
|
|
91
|
+
regular: regular,
|
|
92
|
+
light: light,
|
|
93
|
+
duotone: duotone
|
|
94
|
+
}) : null]
|
|
95
|
+
});
|
|
101
96
|
}, [iconPosition, iconName, iconSize, bodyStyle, title, ficPrimaryViewStyle, themeProps, solid, regular, light, duotone]);
|
|
102
|
-
return _reactNative.Platform.OS === 'android' ? /*#__PURE__*/
|
|
97
|
+
return _reactNative.Platform.OS === 'android' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeGestureHandler.TouchableHighlight, {
|
|
103
98
|
disabled: disabled,
|
|
104
99
|
containerStyle: [containerStyleObj],
|
|
105
100
|
style: [{
|
|
@@ -108,14 +103,16 @@ const FicButtonPrimary = ({
|
|
|
108
103
|
onPress: handleOnPress,
|
|
109
104
|
onPressIn: handleOnPressIn,
|
|
110
105
|
onPressOut: handleOnPressOut,
|
|
111
|
-
underlayColor: themeProps
|
|
112
|
-
|
|
106
|
+
underlayColor: themeProps?.pressedStyle?.container.backgroundColor,
|
|
107
|
+
children: FicPrimary()
|
|
108
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
113
109
|
disabled: disabled,
|
|
114
110
|
style: [styleBasedOnPress, containerStyleObj],
|
|
115
111
|
onPress: handleOnPress,
|
|
116
112
|
onPressIn: handleOnPressIn,
|
|
117
|
-
onPressOut: handleOnPressOut
|
|
118
|
-
|
|
113
|
+
onPressOut: handleOnPressOut,
|
|
114
|
+
children: FicPrimary()
|
|
115
|
+
});
|
|
119
116
|
};
|
|
120
117
|
var _default = exports.default = FicButtonPrimary;
|
|
121
118
|
//# sourceMappingURL=FicButtonPrimary.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","React","_reactNative","_reactNativeGestureHandler","_useTheme","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","React","_reactNative","_reactNativeGestureHandler","_useTheme","_index","_space","_index2","_constants","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FicButtonPrimary","title","iconName","iconSize","onPress","onPressIn","onPressOut","disabled","error","iconPosition","fullWidth","small","solid","regular","light","duotone","containerStyle","ficButton","theme","useTheme","buttonTheme","themeProps","containerStyleObj","isPressed","setIsPressed","useState","styleBasedOnPress","useMemo","pressedStyle","container","ficPrimaryViewStyle","paddingHorizontal","BUTTON_INTERNAL_PADDING_HORIZONTAL","paddingVertical","PADDING","SM","LG","width","flexDirection","alignItems","justifyContent","bodyStyle","marginLeft","ICON_HORIZONTAL_MARGIN","marginRight","text","handleOnPressIn","handleOnPressOut","handleOnPress","FicPrimary","useCallback","jsxs","View","style","children","jsx","Icon","name","DEFAULT_ICON","size","DEFAULT_ICON_SIZE","color","icon","Body","DEFAULT_TITLE","Platform","OS","TouchableHighlight","borderRadius","BORDER_RADIUS","underlayColor","backgroundColor","Pressable","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/FicButtonPrimary.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,IAAAC,KAAA,GAAAH,MAAA;AAE/B,IAAAI,YAAA,GAAAF,OAAA;AASA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AAMqB,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAD,wBAAAW,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAb,uBAAA,YAAAA,CAAAW,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CA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,EACL6B,mBAAmB,EACnBT,UAAU,EACVT,KAAK,EACLC,OAAO,EACPC,KAAK,EACLC,OAAO,CACR,CAAC;EAEF,OAAOkD,qBAAQ,CAACC,EAAE,KAAK,SAAS,gBAC9B,IAAAtF,WAAA,CAAA2E,GAAA,EAACjF,0BAAA,CAAA6F,kBAAkB;IACjB5D,QAAQ,EAAEA,QAAS;IACnBS,cAAc,EAAE,CAACM,iBAAiB,CAAE;IACpC+B,KAAK,EAAE,CAAC;MAAEe,YAAY,EAAEC,oBAAa,CAAClC;IAAG,CAAC,EAAET,iBAAiB,CAAE;IAC/DtB,OAAO,EAAE4C,aAAc;IACvB3C,SAAS,EAAEyC,eAAgB;IAC3BxC,UAAU,EAAEyC,gBAAiB;IAC7BuB,aAAa,EAAEjD,UAAU,EAAEO,YAAY,EAAEC,SAAS,CAAC0C,eAAgB;IAAAjB,QAAA,EAElEL,UAAU,CAAC;EAAC,CACK,CAAC,gBAErB,IAAArE,WAAA,CAAA2E,GAAA,EAAClF,YAAA,CAAAmG,SAAS;IACRjE,QAAQ,EAAEA,QAAS;IACnB8C,KAAK,EAAE,CAAC3B,iBAAiB,EAAEJ,iBAAiB,CAAE;IAC9ClB,OAAO,EAAE4C,aAAc;IACvB3C,SAAS,EAAEyC,eAAgB;IAC3BxC,UAAU,EAAEyC,gBAAiB;IAAAO,QAAA,EAE5BL,UAAU,CAAC;EAAC,CACJ,CACZ;AACH,CAAC;AAAC,IAAAwB,QAAA,GAAAC,OAAA,CAAAnF,OAAA,GAEaS,gBAAgB","ignoreList":[]}
|
|
@@ -8,11 +8,12 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var React = _react;
|
|
9
9
|
var _reactNative = require("react-native");
|
|
10
10
|
var _reactNativeGestureHandler = require("react-native-gesture-handler");
|
|
11
|
-
var _useTheme = require("../../../hooks/useTheme");
|
|
12
|
-
var
|
|
13
|
-
var _space = require("../../../styles/space");
|
|
14
|
-
var
|
|
15
|
-
var _constants = require("./constants");
|
|
11
|
+
var _useTheme = require("../../../hooks/useTheme.js");
|
|
12
|
+
var _index = require("../../../providers/IconProvider/index.js");
|
|
13
|
+
var _space = require("../../../styles/space.js");
|
|
14
|
+
var _index2 = require("../../typographies/Body/index.js");
|
|
15
|
+
var _constants = require("./constants.js");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
17
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
17
18
|
const FicButtonSecondary = ({
|
|
18
19
|
title,
|
|
@@ -32,40 +33,30 @@ const FicButtonSecondary = ({
|
|
|
32
33
|
duotone,
|
|
33
34
|
containerStyle
|
|
34
35
|
}) => {
|
|
35
|
-
var _themeProps$pressedSt3;
|
|
36
36
|
const {
|
|
37
37
|
ficButton: theme
|
|
38
38
|
} = (0, _useTheme.useTheme)() || {};
|
|
39
|
-
const buttonTheme =
|
|
39
|
+
const buttonTheme = theme?.['secondary'] || {};
|
|
40
40
|
const themeProps = disabled ? buttonTheme.disabled : error ? buttonTheme.error : buttonTheme.default;
|
|
41
41
|
const containerStyleObj = containerStyle ?? {};
|
|
42
42
|
const [isPressed, setIsPressed] = (0, _react.useState)(false);
|
|
43
|
-
const styleBasedOnPress = (0, _react.useMemo)(() => {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}, [fullWidth, themeProps]);
|
|
61
|
-
const bodyStyle = (0, _react.useMemo)(() => {
|
|
62
|
-
var _themeProps$pressedSt2;
|
|
63
|
-
return {
|
|
64
|
-
marginLeft: iconPosition === 'left' ? _constants.ICON_HORIZONTAL_MARGIN : 0,
|
|
65
|
-
marginRight: iconPosition === 'right' ? _constants.ICON_HORIZONTAL_MARGIN : 0,
|
|
66
|
-
...(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)
|
|
67
|
-
};
|
|
68
|
-
}, [themeProps, iconPosition, disabled, isPressed]);
|
|
43
|
+
const styleBasedOnPress = (0, _react.useMemo)(() => ({
|
|
44
|
+
...(isPressed && !disabled ? themeProps?.pressedStyle?.container : themeProps?.container)
|
|
45
|
+
}), [themeProps, disabled, isPressed]);
|
|
46
|
+
const ficSecondaryViewStyle = (0, _react.useMemo)(() => ({
|
|
47
|
+
paddingHorizontal: _constants.BUTTON_INTERNAL_PADDING_HORIZONTAL,
|
|
48
|
+
width: fullWidth ? '100%' : 'auto',
|
|
49
|
+
// removing 1 borderWidth to match primary button height
|
|
50
|
+
paddingVertical: (small ? _space.PADDING.SM : _space.PADDING.LG) - (themeProps?.container?.borderWidth || 0),
|
|
51
|
+
flexDirection: 'row',
|
|
52
|
+
alignItems: 'center',
|
|
53
|
+
justifyContent: 'center'
|
|
54
|
+
}), [fullWidth, themeProps]);
|
|
55
|
+
const bodyStyle = (0, _react.useMemo)(() => ({
|
|
56
|
+
marginLeft: iconPosition === 'left' ? _constants.ICON_HORIZONTAL_MARGIN : 0,
|
|
57
|
+
marginRight: iconPosition === 'right' ? _constants.ICON_HORIZONTAL_MARGIN : 0,
|
|
58
|
+
...(isPressed && !disabled ? themeProps?.pressedStyle?.text : themeProps?.text)
|
|
59
|
+
}), [themeProps, iconPosition, disabled, isPressed]);
|
|
69
60
|
const handleOnPressIn = e => {
|
|
70
61
|
if (onPressIn) onPressIn(e);
|
|
71
62
|
setIsPressed(true);
|
|
@@ -78,30 +69,31 @@ const FicButtonSecondary = ({
|
|
|
78
69
|
if (onPress) onPress(e);
|
|
79
70
|
};
|
|
80
71
|
const FicSecondary = (0, _react.useCallback)(() => {
|
|
81
|
-
return /*#__PURE__*/
|
|
82
|
-
style: ficSecondaryViewStyle
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
72
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
73
|
+
style: ficSecondaryViewStyle,
|
|
74
|
+
children: [iconPosition === 'left' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Icon, {
|
|
75
|
+
name: iconName || _constants.DEFAULT_ICON,
|
|
76
|
+
size: iconSize ?? _constants.DEFAULT_ICON_SIZE,
|
|
77
|
+
color: themeProps?.icon.color,
|
|
78
|
+
solid: solid,
|
|
79
|
+
regular: regular,
|
|
80
|
+
light: light,
|
|
81
|
+
duotone: duotone
|
|
82
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Body, {
|
|
83
|
+
text: title ?? _constants.DEFAULT_TITLE,
|
|
84
|
+
style: bodyStyle
|
|
85
|
+
}), iconPosition === 'right' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Icon, {
|
|
86
|
+
name: iconName || _constants.DEFAULT_ICON,
|
|
87
|
+
size: iconSize ?? _constants.DEFAULT_ICON_SIZE,
|
|
88
|
+
color: themeProps?.icon.color,
|
|
89
|
+
solid: solid,
|
|
90
|
+
regular: regular,
|
|
91
|
+
light: light,
|
|
92
|
+
duotone: duotone
|
|
93
|
+
}) : null]
|
|
94
|
+
});
|
|
103
95
|
}, [iconPosition, iconName, iconSize, bodyStyle, title]);
|
|
104
|
-
return _reactNative.Platform.OS === 'android' ? /*#__PURE__*/
|
|
96
|
+
return _reactNative.Platform.OS === 'android' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeGestureHandler.TouchableHighlight, {
|
|
105
97
|
disabled: disabled,
|
|
106
98
|
containerStyle: containerStyleObj,
|
|
107
99
|
style: [{
|
|
@@ -110,14 +102,16 @@ const FicButtonSecondary = ({
|
|
|
110
102
|
onPress: handleOnPress,
|
|
111
103
|
onPressIn: handleOnPressIn,
|
|
112
104
|
onPressOut: handleOnPressOut,
|
|
113
|
-
underlayColor: themeProps
|
|
114
|
-
|
|
105
|
+
underlayColor: themeProps?.pressedStyle?.container.backgroundColor,
|
|
106
|
+
children: FicSecondary()
|
|
107
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
115
108
|
style: [styleBasedOnPress, containerStyleObj],
|
|
116
109
|
onPress: handleOnPress,
|
|
117
110
|
onPressIn: handleOnPressIn,
|
|
118
111
|
onPressOut: handleOnPressOut,
|
|
119
|
-
disabled: disabled
|
|
120
|
-
|
|
112
|
+
disabled: disabled,
|
|
113
|
+
children: FicSecondary()
|
|
114
|
+
});
|
|
121
115
|
};
|
|
122
116
|
var _default = exports.default = FicButtonSecondary;
|
|
123
117
|
//# sourceMappingURL=FicButtonSecondary.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","React","_reactNative","_reactNativeGestureHandler","_useTheme","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","React","_reactNative","_reactNativeGestureHandler","_useTheme","_index","_space","_index2","_constants","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FicButtonSecondary","title","iconName","iconSize","onPress","onPressIn","onPressOut","disabled","error","iconPosition","fullWidth","small","solid","regular","light","duotone","containerStyle","ficButton","theme","useTheme","buttonTheme","themeProps","containerStyleObj","isPressed","setIsPressed","useState","styleBasedOnPress","useMemo","pressedStyle","container","ficSecondaryViewStyle","paddingHorizontal","BUTTON_INTERNAL_PADDING_HORIZONTAL","width","paddingVertical","PADDING","SM","LG","borderWidth","flexDirection","alignItems","justifyContent","bodyStyle","marginLeft","ICON_HORIZONTAL_MARGIN","marginRight","text","handleOnPressIn","handleOnPressOut","handleOnPress","FicSecondary","useCallback","jsxs","View","style","children","jsx","Icon","name","DEFAULT_ICON","size","DEFAULT_ICON_SIZE","color","icon","Body","DEFAULT_TITLE","Platform","OS","TouchableHighlight","borderRadius","BORDER_RADIUS","underlayColor","backgroundColor","Pressable","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/FicButtonSecondary.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,IAAAC,KAAA,GAAAH,MAAA;AAE/B,IAAAI,YAAA,GAAAF,OAAA;AASA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AAMqB,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAD,wBAAAW,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAb,uBAAA,YAAAA,CAAAW,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAA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