@fattureincloud-mobile/fic-mobile-ds 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Tag/Tag.js +12 -9
- package/lib/commonjs/components/Tag/Tag.js.map +1 -1
- package/lib/commonjs/components/Tag/index.js +1 -1
- package/lib/commonjs/components/Tag/index.js.map +1 -1
- package/lib/commonjs/components/Touchable/Touchable.js +24 -15
- package/lib/commonjs/components/Touchable/Touchable.js.map +1 -1
- package/lib/commonjs/components/Touchable/index.js +1 -1
- package/lib/commonjs/components/Touchable/index.js.map +1 -1
- package/lib/commonjs/components/base/DatePicker/DatePicker.js +22 -19
- package/lib/commonjs/components/base/DatePicker/DatePicker.js.map +1 -1
- package/lib/commonjs/components/base/DatePicker/index.js +1 -1
- package/lib/commonjs/components/base/DatePicker/index.js.map +1 -1
- package/lib/commonjs/components/base/HeaderArrows/HeaderArrows.js +20 -21
- package/lib/commonjs/components/base/HeaderArrows/HeaderArrows.js.map +1 -1
- package/lib/commonjs/components/base/HeaderArrows/index.js +1 -1
- package/lib/commonjs/components/base/HeaderArrows/index.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/FicButton.js +20 -27
- package/lib/commonjs/components/buttons/FicButton/FicButton.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/FicButton.types.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/FicButtonIcon.js +48 -41
- package/lib/commonjs/components/buttons/FicButton/FicButtonIcon.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/FicButtonPrimary.js +45 -48
- package/lib/commonjs/components/buttons/FicButton/FicButtonPrimary.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/FicButtonSecondary.js +54 -60
- package/lib/commonjs/components/buttons/FicButton/FicButtonSecondary.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/FicButtonTertiary.js +75 -90
- package/lib/commonjs/components/buttons/FicButton/FicButtonTertiary.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/constants.js +2 -2
- package/lib/commonjs/components/buttons/FicButton/constants.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/index.js +1 -1
- package/lib/commonjs/components/buttons/FicButton/index.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/themes/dark.js +5 -4
- package/lib/commonjs/components/buttons/FicButton/themes/dark.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/themes/index.js +8 -1
- package/lib/commonjs/components/buttons/FicButton/themes/index.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButton/themes/light.js +5 -4
- package/lib/commonjs/components/buttons/FicButton/themes/light.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.js +19 -18
- package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.types.js.map +1 -1
- package/lib/commonjs/components/buttons/FicButtonGroup/index.js +1 -1
- package/lib/commonjs/components/buttons/FicButtonGroup/index.js.map +1 -1
- package/lib/commonjs/components/notifications/Banner/Banner.js +37 -35
- package/lib/commonjs/components/notifications/Banner/Banner.js.map +1 -1
- package/lib/commonjs/components/notifications/Banner/Banner.types.js.map +1 -1
- package/lib/commonjs/components/notifications/Banner/index.js +1 -1
- package/lib/commonjs/components/notifications/Banner/index.js.map +1 -1
- package/lib/commonjs/components/notifications/Banner/themes/dark.js +1 -1
- package/lib/commonjs/components/notifications/Banner/themes/dark.js.map +1 -1
- package/lib/commonjs/components/notifications/Banner/themes/index.js +2 -2
- package/lib/commonjs/components/notifications/Banner/themes/index.js.map +1 -1
- package/lib/commonjs/components/notifications/Banner/themes/light.js +1 -1
- package/lib/commonjs/components/notifications/Banner/themes/light.js.map +1 -1
- package/lib/commonjs/components/typographies/Body/Body.js +10 -6
- package/lib/commonjs/components/typographies/Body/Body.js.map +1 -1
- package/lib/commonjs/components/typographies/Body/index.js +1 -1
- package/lib/commonjs/components/typographies/Body/index.js.map +1 -1
- package/lib/commonjs/components/typographies/ButtonTitle/ButtonTitle.js +12 -8
- package/lib/commonjs/components/typographies/ButtonTitle/ButtonTitle.js.map +1 -1
- package/lib/commonjs/components/typographies/ButtonTitle/index.js +1 -1
- package/lib/commonjs/components/typographies/ButtonTitle/index.js.map +1 -1
- package/lib/commonjs/components/typographies/Callout/Callout.js +10 -6
- package/lib/commonjs/components/typographies/Callout/Callout.js.map +1 -1
- package/lib/commonjs/components/typographies/Callout/index.js +1 -1
- package/lib/commonjs/components/typographies/Callout/index.js.map +1 -1
- package/lib/commonjs/components/typographies/CaptionOne/CaptionOne.js +10 -6
- package/lib/commonjs/components/typographies/CaptionOne/CaptionOne.js.map +1 -1
- package/lib/commonjs/components/typographies/CaptionOne/index.js +1 -1
- package/lib/commonjs/components/typographies/CaptionOne/index.js.map +1 -1
- package/lib/commonjs/components/typographies/CaptionTwo/CaptionTwo.js +10 -6
- package/lib/commonjs/components/typographies/CaptionTwo/CaptionTwo.js.map +1 -1
- package/lib/commonjs/components/typographies/CaptionTwo/index.js +1 -1
- package/lib/commonjs/components/typographies/CaptionTwo/index.js.map +1 -1
- package/lib/commonjs/components/typographies/Footnote/Footnote.js +10 -6
- package/lib/commonjs/components/typographies/Footnote/Footnote.js.map +1 -1
- package/lib/commonjs/components/typographies/Footnote/index.js +1 -1
- package/lib/commonjs/components/typographies/Footnote/index.js.map +1 -1
- package/lib/commonjs/components/typographies/Headline/Headline.js +10 -6
- package/lib/commonjs/components/typographies/Headline/Headline.js.map +1 -1
- package/lib/commonjs/components/typographies/Headline/index.js +1 -1
- package/lib/commonjs/components/typographies/Headline/index.js.map +1 -1
- package/lib/commonjs/components/typographies/LargeTitle/LargeTitle.js +10 -6
- package/lib/commonjs/components/typographies/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/commonjs/components/typographies/LargeTitle/index.js +1 -1
- package/lib/commonjs/components/typographies/LargeTitle/index.js.map +1 -1
- package/lib/commonjs/components/typographies/Subhead/Subhead.js +10 -6
- package/lib/commonjs/components/typographies/Subhead/Subhead.js.map +1 -1
- package/lib/commonjs/components/typographies/Subhead/index.js +1 -1
- package/lib/commonjs/components/typographies/Subhead/index.js.map +1 -1
- package/lib/commonjs/components/typographies/TitleOne/TitleOne.js +10 -6
- package/lib/commonjs/components/typographies/TitleOne/TitleOne.js.map +1 -1
- package/lib/commonjs/components/typographies/TitleOne/index.js +1 -1
- package/lib/commonjs/components/typographies/TitleOne/index.js.map +1 -1
- package/lib/commonjs/components/typographies/TitleThree/TitleThree.js +10 -6
- package/lib/commonjs/components/typographies/TitleThree/TitleThree.js.map +1 -1
- package/lib/commonjs/components/typographies/TitleThree/index.js +1 -1
- package/lib/commonjs/components/typographies/TitleThree/index.js.map +1 -1
- package/lib/commonjs/components/typographies/TitleTwo/TitleTwo.js +10 -6
- package/lib/commonjs/components/typographies/TitleTwo/TitleTwo.js.map +1 -1
- package/lib/commonjs/components/typographies/TitleTwo/index.js +1 -1
- package/lib/commonjs/components/typographies/TitleTwo/index.js.map +1 -1
- package/lib/commonjs/components/typographies/font.js.map +1 -1
- package/lib/commonjs/hooks/useTheme.js +1 -1
- package/lib/commonjs/hooks/useTheme.js.map +1 -1
- package/lib/commonjs/index.js +46 -46
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/providers/DesignSystemProvider/DesignSystemProvider.js +12 -9
- package/lib/commonjs/providers/DesignSystemProvider/DesignSystemProvider.js.map +1 -1
- package/lib/commonjs/providers/DesignSystemProvider/index.js +1 -1
- package/lib/commonjs/providers/DesignSystemProvider/index.js.map +1 -1
- package/lib/commonjs/providers/IconProvider/IconProvider.js +11 -7
- package/lib/commonjs/providers/IconProvider/IconProvider.js.map +1 -1
- package/lib/commonjs/providers/IconProvider/index.js +1 -1
- package/lib/commonjs/providers/IconProvider/index.js.map +1 -1
- package/lib/commonjs/providers/ThemeProvider/ThemeProvider.js +6 -4
- package/lib/commonjs/providers/ThemeProvider/ThemeProvider.js.map +1 -1
- package/lib/commonjs/styles/calendarTheme.js.map +1 -1
- package/lib/commonjs/styles/colors.js.map +1 -1
- package/lib/commonjs/styles/globalStyles.js +1 -1
- package/lib/commonjs/styles/globalStyles.js.map +1 -1
- package/lib/commonjs/styles/space.js.map +1 -1
- package/lib/commonjs/styles/theme.js +7 -7
- package/lib/commonjs/styles/theme.js.map +1 -1
- package/lib/commonjs/utils/locale.js +2 -2
- package/lib/commonjs/utils/locale.js.map +1 -1
- package/lib/module/components/Tag/Tag.js +14 -9
- package/lib/module/components/Tag/Tag.js.map +1 -1
- package/lib/module/components/Tag/index.js +3 -1
- package/lib/module/components/Tag/index.js.map +1 -1
- package/lib/module/components/Touchable/Touchable.js +26 -15
- package/lib/module/components/Touchable/Touchable.js.map +1 -1
- package/lib/module/components/Touchable/index.js +3 -1
- package/lib/module/components/Touchable/index.js.map +1 -1
- package/lib/module/components/base/DatePicker/DatePicker.js +22 -19
- package/lib/module/components/base/DatePicker/DatePicker.js.map +1 -1
- package/lib/module/components/base/DatePicker/index.js +3 -1
- package/lib/module/components/base/DatePicker/index.js.map +1 -1
- package/lib/module/components/base/HeaderArrows/HeaderArrows.js +22 -21
- package/lib/module/components/base/HeaderArrows/HeaderArrows.js.map +1 -1
- package/lib/module/components/base/HeaderArrows/index.js +3 -1
- package/lib/module/components/base/HeaderArrows/index.js.map +1 -1
- package/lib/module/components/buttons/FicButton/FicButton.js +22 -28
- package/lib/module/components/buttons/FicButton/FicButton.js.map +1 -1
- package/lib/module/components/buttons/FicButton/FicButton.types.js +2 -0
- package/lib/module/components/buttons/FicButton/FicButton.types.js.map +1 -1
- package/lib/module/components/buttons/FicButton/FicButtonIcon.js +51 -41
- package/lib/module/components/buttons/FicButton/FicButtonIcon.js.map +1 -1
- package/lib/module/components/buttons/FicButton/FicButtonPrimary.js +47 -48
- package/lib/module/components/buttons/FicButton/FicButtonPrimary.js.map +1 -1
- package/lib/module/components/buttons/FicButton/FicButtonSecondary.js +56 -60
- package/lib/module/components/buttons/FicButton/FicButtonSecondary.js.map +1 -1
- package/lib/module/components/buttons/FicButton/FicButtonTertiary.js +78 -91
- package/lib/module/components/buttons/FicButton/FicButtonTertiary.js.map +1 -1
- package/lib/module/components/buttons/FicButton/constants.js +4 -2
- package/lib/module/components/buttons/FicButton/constants.js.map +1 -1
- package/lib/module/components/buttons/FicButton/index.js +3 -1
- package/lib/module/components/buttons/FicButton/index.js.map +1 -1
- package/lib/module/components/buttons/FicButton/themes/dark.js +7 -4
- package/lib/module/components/buttons/FicButton/themes/dark.js.map +1 -1
- package/lib/module/components/buttons/FicButton/themes/index.js +5 -2
- package/lib/module/components/buttons/FicButton/themes/index.js.map +1 -1
- package/lib/module/components/buttons/FicButton/themes/light.js +7 -4
- package/lib/module/components/buttons/FicButton/themes/light.js.map +1 -1
- package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.js +21 -18
- package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.js.map +1 -1
- package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.types.js +2 -0
- package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.types.js.map +1 -1
- package/lib/module/components/buttons/FicButtonGroup/index.js +3 -1
- package/lib/module/components/buttons/FicButtonGroup/index.js.map +1 -1
- package/lib/module/components/notifications/Banner/Banner.js +39 -35
- package/lib/module/components/notifications/Banner/Banner.js.map +1 -1
- package/lib/module/components/notifications/Banner/Banner.types.js +2 -0
- package/lib/module/components/notifications/Banner/Banner.types.js.map +1 -1
- package/lib/module/components/notifications/Banner/index.js +3 -1
- package/lib/module/components/notifications/Banner/index.js.map +1 -1
- package/lib/module/components/notifications/Banner/themes/dark.js +3 -1
- package/lib/module/components/notifications/Banner/themes/dark.js.map +1 -1
- package/lib/module/components/notifications/Banner/themes/index.js +4 -2
- package/lib/module/components/notifications/Banner/themes/index.js.map +1 -1
- package/lib/module/components/notifications/Banner/themes/light.js +3 -1
- package/lib/module/components/notifications/Banner/themes/light.js.map +1 -1
- package/lib/module/components/typographies/Body/Body.js +10 -6
- package/lib/module/components/typographies/Body/Body.js.map +1 -1
- package/lib/module/components/typographies/Body/index.js +3 -1
- package/lib/module/components/typographies/Body/index.js.map +1 -1
- package/lib/module/components/typographies/ButtonTitle/ButtonTitle.js +12 -8
- package/lib/module/components/typographies/ButtonTitle/ButtonTitle.js.map +1 -1
- package/lib/module/components/typographies/ButtonTitle/index.js +3 -1
- package/lib/module/components/typographies/ButtonTitle/index.js.map +1 -1
- package/lib/module/components/typographies/Callout/Callout.js +10 -6
- package/lib/module/components/typographies/Callout/Callout.js.map +1 -1
- package/lib/module/components/typographies/Callout/index.js +3 -1
- package/lib/module/components/typographies/Callout/index.js.map +1 -1
- package/lib/module/components/typographies/CaptionOne/CaptionOne.js +10 -6
- package/lib/module/components/typographies/CaptionOne/CaptionOne.js.map +1 -1
- package/lib/module/components/typographies/CaptionOne/index.js +3 -1
- package/lib/module/components/typographies/CaptionOne/index.js.map +1 -1
- package/lib/module/components/typographies/CaptionTwo/CaptionTwo.js +10 -6
- package/lib/module/components/typographies/CaptionTwo/CaptionTwo.js.map +1 -1
- package/lib/module/components/typographies/CaptionTwo/index.js +3 -1
- package/lib/module/components/typographies/CaptionTwo/index.js.map +1 -1
- package/lib/module/components/typographies/Footnote/Footnote.js +10 -6
- package/lib/module/components/typographies/Footnote/Footnote.js.map +1 -1
- package/lib/module/components/typographies/Footnote/index.js +3 -1
- package/lib/module/components/typographies/Footnote/index.js.map +1 -1
- package/lib/module/components/typographies/Headline/Headline.js +10 -6
- package/lib/module/components/typographies/Headline/Headline.js.map +1 -1
- package/lib/module/components/typographies/Headline/index.js +3 -1
- package/lib/module/components/typographies/Headline/index.js.map +1 -1
- package/lib/module/components/typographies/LargeTitle/LargeTitle.js +10 -6
- package/lib/module/components/typographies/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/module/components/typographies/LargeTitle/index.js +3 -1
- package/lib/module/components/typographies/LargeTitle/index.js.map +1 -1
- package/lib/module/components/typographies/Subhead/Subhead.js +10 -6
- package/lib/module/components/typographies/Subhead/Subhead.js.map +1 -1
- package/lib/module/components/typographies/Subhead/index.js +3 -1
- package/lib/module/components/typographies/Subhead/index.js.map +1 -1
- package/lib/module/components/typographies/TitleOne/TitleOne.js +10 -6
- package/lib/module/components/typographies/TitleOne/TitleOne.js.map +1 -1
- package/lib/module/components/typographies/TitleOne/index.js +3 -1
- package/lib/module/components/typographies/TitleOne/index.js.map +1 -1
- package/lib/module/components/typographies/TitleThree/TitleThree.js +10 -6
- package/lib/module/components/typographies/TitleThree/TitleThree.js.map +1 -1
- package/lib/module/components/typographies/TitleThree/index.js +3 -1
- package/lib/module/components/typographies/TitleThree/index.js.map +1 -1
- package/lib/module/components/typographies/TitleTwo/TitleTwo.js +10 -6
- package/lib/module/components/typographies/TitleTwo/TitleTwo.js.map +1 -1
- package/lib/module/components/typographies/TitleTwo/index.js +3 -1
- package/lib/module/components/typographies/TitleTwo/index.js.map +1 -1
- package/lib/module/components/typographies/font.js +2 -0
- package/lib/module/components/typographies/font.js.map +1 -1
- package/lib/module/hooks/useTheme.js +3 -1
- package/lib/module/hooks/useTheme.js.map +1 -1
- package/lib/module/index.js +27 -25
- package/lib/module/index.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/providers/DesignSystemProvider/DesignSystemProvider.js +14 -9
- package/lib/module/providers/DesignSystemProvider/DesignSystemProvider.js.map +1 -1
- package/lib/module/providers/DesignSystemProvider/index.js +3 -1
- package/lib/module/providers/DesignSystemProvider/index.js.map +1 -1
- package/lib/module/providers/IconProvider/IconProvider.js +13 -7
- package/lib/module/providers/IconProvider/IconProvider.js.map +1 -1
- package/lib/module/providers/IconProvider/index.js +3 -1
- package/lib/module/providers/IconProvider/index.js.map +1 -1
- package/lib/module/providers/ThemeProvider/ThemeProvider.js +8 -4
- package/lib/module/providers/ThemeProvider/ThemeProvider.js.map +1 -1
- package/lib/module/styles/calendarTheme.js +2 -0
- package/lib/module/styles/calendarTheme.js.map +1 -1
- package/lib/module/styles/colors.js +2 -0
- package/lib/module/styles/colors.js.map +1 -1
- package/lib/module/styles/globalStyles.js +3 -1
- package/lib/module/styles/globalStyles.js.map +1 -1
- package/lib/module/styles/space.js +2 -0
- package/lib/module/styles/space.js.map +1 -1
- package/lib/module/styles/theme.js +6 -4
- package/lib/module/styles/theme.js.map +1 -1
- package/lib/module/utils/locale.js +4 -2
- package/lib/module/utils/locale.js.map +1 -1
- package/lib/package.json +4 -2
- package/lib/typescript/commonjs/components/Tag/Tag.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Tag/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Touchable/Touchable.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Touchable/index.d.ts.map +1 -0
- package/lib/typescript/{components → commonjs/components}/base/DatePicker/DatePicker.d.ts +1 -1
- package/lib/typescript/commonjs/components/base/DatePicker/DatePicker.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/base/DatePicker/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/base/HeaderArrows/HeaderArrows.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/base/HeaderArrows/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/FicButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/FicButton.types.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/FicButtonIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/FicButtonPrimary.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/FicButtonSecondary.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/FicButtonTertiary.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/Icon.stories.d.ts +22 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/Icon.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/Primary.stories.d.ts +33 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/Primary.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/Secondary.stories.d.ts +20 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/Secondary.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/Tertiary.stories.d.ts +21 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/Tertiary.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/themes/dark.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/themes/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/themes/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButton/themes/light.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButtonGroup/ButtonGroup.stories.d.ts +37 -0
- package/lib/typescript/commonjs/components/buttons/FicButtonGroup/ButtonGroup.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/buttons/FicButtonGroup/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/notifications/Banner/Banner.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/notifications/Banner/Banner.types.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/notifications/Banner/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/notifications/Banner/themes/dark.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/notifications/Banner/themes/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/notifications/Banner/themes/light.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/Body/Body.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/Body/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/ButtonTitle/ButtonTitle.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/ButtonTitle/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/Callout/Callout.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/Callout/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/CaptionOne/CaptionOne.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/CaptionOne/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/CaptionTwo/CaptionTwo.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/CaptionTwo/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/Footnote/Footnote.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/Footnote/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/Headline/Headline.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/Headline/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/LargeTitle/LargeTitle.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/LargeTitle/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/Subhead/Subhead.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/Subhead/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/TitleOne/TitleOne.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/TitleOne/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/TitleThree/TitleThree.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/TitleThree/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/TitleTwo/TitleTwo.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/typographies/TitleTwo/index.d.ts.map +1 -0
- package/lib/typescript/{components → commonjs/components}/typographies/font.d.ts +1 -1
- package/lib/typescript/commonjs/components/typographies/font.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useTheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/providers/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/providers/DesignSystemProvider/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/providers/IconProvider/IconProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/providers/IconProvider/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/providers/ThemeProvider/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/styles/calendarTheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/styles/colors.d.ts.map +1 -0
- package/lib/typescript/commonjs/styles/globalStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/styles/space.d.ts.map +1 -0
- package/lib/typescript/commonjs/styles/theme.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/locale.d.ts.map +1 -0
- package/lib/typescript/module/components/Tag/Tag.d.ts +13 -0
- package/lib/typescript/module/components/Tag/Tag.d.ts.map +1 -0
- package/lib/typescript/module/components/Tag/index.d.ts +3 -0
- package/lib/typescript/module/components/Tag/index.d.ts.map +1 -0
- package/lib/typescript/module/components/Touchable/Touchable.d.ts +16 -0
- package/lib/typescript/module/components/Touchable/Touchable.d.ts.map +1 -0
- package/lib/typescript/module/components/Touchable/index.d.ts +3 -0
- package/lib/typescript/module/components/Touchable/index.d.ts.map +1 -0
- package/lib/typescript/module/components/base/DatePicker/DatePicker.d.ts +60 -0
- package/lib/typescript/module/components/base/DatePicker/DatePicker.d.ts.map +1 -0
- package/lib/typescript/module/components/base/DatePicker/index.d.ts +4 -0
- package/lib/typescript/module/components/base/DatePicker/index.d.ts.map +1 -0
- package/lib/typescript/module/components/base/HeaderArrows/HeaderArrows.d.ts +16 -0
- package/lib/typescript/module/components/base/HeaderArrows/HeaderArrows.d.ts.map +1 -0
- package/lib/typescript/module/components/base/HeaderArrows/index.d.ts +3 -0
- package/lib/typescript/module/components/base/HeaderArrows/index.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButton.d.ts +5 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButton.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButton.types.d.ts +91 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButton.types.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButtonIcon.d.ts +5 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButtonIcon.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButtonPrimary.d.ts +5 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButtonPrimary.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButtonSecondary.d.ts +5 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButtonSecondary.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButtonTertiary.d.ts +5 -0
- package/lib/typescript/module/components/buttons/FicButton/FicButtonTertiary.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/Icon.stories.d.ts +22 -0
- package/lib/typescript/module/components/buttons/FicButton/Icon.stories.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/Primary.stories.d.ts +33 -0
- package/lib/typescript/module/components/buttons/FicButton/Primary.stories.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/Secondary.stories.d.ts +20 -0
- package/lib/typescript/module/components/buttons/FicButton/Secondary.stories.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/Tertiary.stories.d.ts +21 -0
- package/lib/typescript/module/components/buttons/FicButton/Tertiary.stories.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/constants.d.ts +13 -0
- package/lib/typescript/module/components/buttons/FicButton/constants.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/index.d.ts +5 -0
- package/lib/typescript/module/components/buttons/FicButton/index.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/themes/dark.d.ts +4 -0
- package/lib/typescript/module/components/buttons/FicButton/themes/dark.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/themes/index.d.ts +4 -0
- package/lib/typescript/module/components/buttons/FicButton/themes/index.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButton/themes/light.d.ts +4 -0
- package/lib/typescript/module/components/buttons/FicButton/themes/light.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButtonGroup/ButtonGroup.stories.d.ts +37 -0
- package/lib/typescript/module/components/buttons/FicButtonGroup/ButtonGroup.stories.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButtonGroup/FicButtonGroup.d.ts +5 -0
- package/lib/typescript/module/components/buttons/FicButtonGroup/FicButtonGroup.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts +10 -0
- package/lib/typescript/module/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts.map +1 -0
- package/lib/typescript/module/components/buttons/FicButtonGroup/index.d.ts +3 -0
- package/lib/typescript/module/components/buttons/FicButtonGroup/index.d.ts.map +1 -0
- package/lib/typescript/module/components/notifications/Banner/Banner.d.ts +5 -0
- package/lib/typescript/module/components/notifications/Banner/Banner.d.ts.map +1 -0
- package/lib/typescript/module/components/notifications/Banner/Banner.types.d.ts +44 -0
- package/lib/typescript/module/components/notifications/Banner/Banner.types.d.ts.map +1 -0
- package/lib/typescript/module/components/notifications/Banner/index.d.ts +3 -0
- package/lib/typescript/module/components/notifications/Banner/index.d.ts.map +1 -0
- package/lib/typescript/module/components/notifications/Banner/themes/dark.d.ts +4 -0
- package/lib/typescript/module/components/notifications/Banner/themes/dark.d.ts.map +1 -0
- package/lib/typescript/module/components/notifications/Banner/themes/index.d.ts +4 -0
- package/lib/typescript/module/components/notifications/Banner/themes/index.d.ts.map +1 -0
- package/lib/typescript/module/components/notifications/Banner/themes/light.d.ts +4 -0
- package/lib/typescript/module/components/notifications/Banner/themes/light.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/Body/Body.d.ts +12 -0
- package/lib/typescript/module/components/typographies/Body/Body.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/Body/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/Body/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/ButtonTitle/ButtonTitle.d.ts +10 -0
- package/lib/typescript/module/components/typographies/ButtonTitle/ButtonTitle.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/ButtonTitle/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/ButtonTitle/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/Callout/Callout.d.ts +12 -0
- package/lib/typescript/module/components/typographies/Callout/Callout.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/Callout/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/Callout/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/CaptionOne/CaptionOne.d.ts +12 -0
- package/lib/typescript/module/components/typographies/CaptionOne/CaptionOne.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/CaptionOne/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/CaptionOne/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/CaptionTwo/CaptionTwo.d.ts +12 -0
- package/lib/typescript/module/components/typographies/CaptionTwo/CaptionTwo.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/CaptionTwo/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/CaptionTwo/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/Footnote/Footnote.d.ts +12 -0
- package/lib/typescript/module/components/typographies/Footnote/Footnote.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/Footnote/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/Footnote/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/Headline/Headline.d.ts +12 -0
- package/lib/typescript/module/components/typographies/Headline/Headline.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/Headline/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/Headline/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/LargeTitle/LargeTitle.d.ts +12 -0
- package/lib/typescript/module/components/typographies/LargeTitle/LargeTitle.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/LargeTitle/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/LargeTitle/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/Subhead/Subhead.d.ts +12 -0
- package/lib/typescript/module/components/typographies/Subhead/Subhead.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/Subhead/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/Subhead/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/TitleOne/TitleOne.d.ts +12 -0
- package/lib/typescript/module/components/typographies/TitleOne/TitleOne.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/TitleOne/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/TitleOne/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/TitleThree/TitleThree.d.ts +12 -0
- package/lib/typescript/module/components/typographies/TitleThree/TitleThree.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/TitleThree/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/TitleThree/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/TitleTwo/TitleTwo.d.ts +12 -0
- package/lib/typescript/module/components/typographies/TitleTwo/TitleTwo.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/TitleTwo/index.d.ts +3 -0
- package/lib/typescript/module/components/typographies/TitleTwo/index.d.ts.map +1 -0
- package/lib/typescript/module/components/typographies/font.d.ts +9 -0
- package/lib/typescript/module/components/typographies/font.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useTheme.d.ts +3 -0
- package/lib/typescript/module/hooks/useTheme.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +32 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/providers/DesignSystemProvider/DesignSystemProvider.d.ts +10 -0
- package/lib/typescript/module/providers/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -0
- package/lib/typescript/module/providers/DesignSystemProvider/index.d.ts +3 -0
- package/lib/typescript/module/providers/DesignSystemProvider/index.d.ts.map +1 -0
- package/lib/typescript/module/providers/IconProvider/IconProvider.d.ts +21 -0
- package/lib/typescript/module/providers/IconProvider/IconProvider.d.ts.map +1 -0
- package/lib/typescript/module/providers/IconProvider/index.d.ts +4 -0
- package/lib/typescript/module/providers/IconProvider/index.d.ts.map +1 -0
- package/lib/typescript/module/providers/ThemeProvider/ThemeProvider.d.ts +9 -0
- package/lib/typescript/module/providers/ThemeProvider/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/module/styles/calendarTheme.d.ts +24 -0
- package/lib/typescript/module/styles/calendarTheme.d.ts.map +1 -0
- package/lib/typescript/module/styles/colors.d.ts +100 -0
- package/lib/typescript/module/styles/colors.d.ts.map +1 -0
- package/lib/typescript/module/styles/globalStyles.d.ts +33 -0
- package/lib/typescript/module/styles/globalStyles.d.ts.map +1 -0
- package/lib/typescript/module/styles/space.d.ts +19 -0
- package/lib/typescript/module/styles/space.d.ts.map +1 -0
- package/lib/typescript/module/styles/theme.d.ts +185 -0
- package/lib/typescript/module/styles/theme.d.ts.map +1 -0
- package/lib/typescript/module/utils/locale.d.ts +15 -0
- package/lib/typescript/module/utils/locale.d.ts.map +1 -0
- package/package.json +5 -3
- package/src/components/buttons/FicButton/FicButton.tsx +17 -25
- package/src/components/buttons/FicButton/FicButtonIcon.tsx +47 -45
- package/src/components/buttons/FicButton/FicButtonPrimary.tsx +13 -1
- package/src/components/buttons/FicButton/FicButtonTertiary.tsx +76 -66
- package/src/components/buttons/FicButton/themes/dark.ts +77 -77
- package/src/components/buttons/FicButton/themes/index.ts +2 -1
- package/src/components/buttons/FicButton/themes/light.ts +77 -77
- package/src/components/buttons/FicButtonGroup/FicButtonGroup.tsx +32 -11
- package/lib/typescript/components/Tag/Tag.d.ts.map +0 -1
- package/lib/typescript/components/Tag/index.d.ts.map +0 -1
- package/lib/typescript/components/Touchable/Touchable.d.ts.map +0 -1
- package/lib/typescript/components/Touchable/index.d.ts.map +0 -1
- package/lib/typescript/components/base/DatePicker/DatePicker.d.ts.map +0 -1
- package/lib/typescript/components/base/DatePicker/index.d.ts.map +0 -1
- package/lib/typescript/components/base/HeaderArrows/HeaderArrows.d.ts.map +0 -1
- package/lib/typescript/components/base/HeaderArrows/index.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/FicButton.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/FicButton.types.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/FicButtonIcon.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/FicButtonPrimary.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/FicButtonSecondary.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/FicButtonTertiary.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/constants.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/index.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/themes/dark.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/themes/index.d.ts +0 -3
- package/lib/typescript/components/buttons/FicButton/themes/index.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButton/themes/light.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButtonGroup/FicButtonGroup.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts.map +0 -1
- package/lib/typescript/components/buttons/FicButtonGroup/index.d.ts.map +0 -1
- package/lib/typescript/components/notifications/Banner/Banner.d.ts.map +0 -1
- package/lib/typescript/components/notifications/Banner/Banner.types.d.ts.map +0 -1
- package/lib/typescript/components/notifications/Banner/index.d.ts.map +0 -1
- package/lib/typescript/components/notifications/Banner/themes/dark.d.ts.map +0 -1
- package/lib/typescript/components/notifications/Banner/themes/index.d.ts.map +0 -1
- package/lib/typescript/components/notifications/Banner/themes/light.d.ts.map +0 -1
- package/lib/typescript/components/typographies/Body/Body.d.ts.map +0 -1
- package/lib/typescript/components/typographies/Body/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/ButtonTitle/ButtonTitle.d.ts.map +0 -1
- package/lib/typescript/components/typographies/ButtonTitle/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/Callout/Callout.d.ts.map +0 -1
- package/lib/typescript/components/typographies/Callout/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/CaptionOne/CaptionOne.d.ts.map +0 -1
- package/lib/typescript/components/typographies/CaptionOne/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/CaptionTwo/CaptionTwo.d.ts.map +0 -1
- package/lib/typescript/components/typographies/CaptionTwo/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/Footnote/Footnote.d.ts.map +0 -1
- package/lib/typescript/components/typographies/Footnote/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/Headline/Headline.d.ts.map +0 -1
- package/lib/typescript/components/typographies/Headline/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/LargeTitle/LargeTitle.d.ts.map +0 -1
- package/lib/typescript/components/typographies/LargeTitle/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/Subhead/Subhead.d.ts.map +0 -1
- package/lib/typescript/components/typographies/Subhead/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/TitleOne/TitleOne.d.ts.map +0 -1
- package/lib/typescript/components/typographies/TitleOne/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/TitleThree/TitleThree.d.ts.map +0 -1
- package/lib/typescript/components/typographies/TitleThree/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/TitleTwo/TitleTwo.d.ts.map +0 -1
- package/lib/typescript/components/typographies/TitleTwo/index.d.ts.map +0 -1
- package/lib/typescript/components/typographies/font.d.ts.map +0 -1
- package/lib/typescript/hooks/useTheme.d.ts.map +0 -1
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/providers/DesignSystemProvider/DesignSystemProvider.d.ts.map +0 -1
- package/lib/typescript/providers/DesignSystemProvider/index.d.ts.map +0 -1
- package/lib/typescript/providers/IconProvider/IconProvider.d.ts.map +0 -1
- package/lib/typescript/providers/IconProvider/index.d.ts.map +0 -1
- package/lib/typescript/providers/ThemeProvider/ThemeProvider.d.ts.map +0 -1
- package/lib/typescript/styles/calendarTheme.d.ts.map +0 -1
- package/lib/typescript/styles/colors.d.ts.map +0 -1
- package/lib/typescript/styles/globalStyles.d.ts.map +0 -1
- package/lib/typescript/styles/space.d.ts.map +0 -1
- package/lib/typescript/styles/theme.d.ts.map +0 -1
- package/lib/typescript/utils/locale.d.ts.map +0 -1
- /package/lib/typescript/{components → commonjs/components}/Tag/Tag.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/Tag/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/Touchable/Touchable.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/Touchable/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/base/DatePicker/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/base/HeaderArrows/HeaderArrows.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/base/HeaderArrows/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButton.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButton.types.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButtonIcon.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButtonPrimary.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButtonSecondary.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/FicButtonTertiary.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/constants.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/themes/dark.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButton/themes/light.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButtonGroup/FicButtonGroup.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButtonGroup/FicButtonGroup.types.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/buttons/FicButtonGroup/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/notifications/Banner/Banner.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/notifications/Banner/Banner.types.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/notifications/Banner/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/notifications/Banner/themes/dark.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/notifications/Banner/themes/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/notifications/Banner/themes/light.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/Body/Body.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/Body/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/ButtonTitle/ButtonTitle.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/ButtonTitle/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/Callout/Callout.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/Callout/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/CaptionOne/CaptionOne.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/CaptionOne/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/CaptionTwo/CaptionTwo.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/CaptionTwo/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/Footnote/Footnote.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/Footnote/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/Headline/Headline.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/Headline/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/LargeTitle/LargeTitle.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/LargeTitle/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/Subhead/Subhead.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/Subhead/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/TitleOne/TitleOne.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/TitleOne/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/TitleThree/TitleThree.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/TitleThree/index.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/TitleTwo/TitleTwo.d.ts +0 -0
- /package/lib/typescript/{components → commonjs/components}/typographies/TitleTwo/index.d.ts +0 -0
- /package/lib/typescript/{hooks → commonjs/hooks}/useTheme.d.ts +0 -0
- /package/lib/typescript/{index.d.ts → commonjs/index.d.ts} +0 -0
- /package/lib/typescript/{providers → commonjs/providers}/DesignSystemProvider/DesignSystemProvider.d.ts +0 -0
- /package/lib/typescript/{providers → commonjs/providers}/DesignSystemProvider/index.d.ts +0 -0
- /package/lib/typescript/{providers → commonjs/providers}/IconProvider/IconProvider.d.ts +0 -0
- /package/lib/typescript/{providers → commonjs/providers}/IconProvider/index.d.ts +0 -0
- /package/lib/typescript/{providers → commonjs/providers}/ThemeProvider/ThemeProvider.d.ts +0 -0
- /package/lib/typescript/{styles → commonjs/styles}/calendarTheme.d.ts +0 -0
- /package/lib/typescript/{styles → commonjs/styles}/colors.d.ts +0 -0
- /package/lib/typescript/{styles → commonjs/styles}/globalStyles.d.ts +0 -0
- /package/lib/typescript/{styles → commonjs/styles}/space.d.ts +0 -0
- /package/lib/typescript/{styles → commonjs/styles}/theme.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/locale.d.ts +0 -0
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
2
3
|
import { capitalize } from 'lodash';
|
|
3
4
|
import moment from 'moment';
|
|
4
5
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
5
6
|
// @ts-ignore
|
|
6
7
|
|
|
7
8
|
import { Calendar } from 'react-native-calendars';
|
|
8
|
-
import { useTheme } from
|
|
9
|
-
import { Icon } from
|
|
10
|
-
import { Colors } from
|
|
11
|
-
import { DEFAULT_ICON_SIZE } from
|
|
12
|
-
import { Body } from
|
|
13
|
-
import { FontWeight } from
|
|
14
|
-
import { HeaderArrows } from
|
|
9
|
+
import { useTheme } from "../../../hooks/useTheme.js";
|
|
10
|
+
import { Icon } from "../../../providers/IconProvider/index.js";
|
|
11
|
+
import { Colors } from "../../../styles/colors.js";
|
|
12
|
+
import { DEFAULT_ICON_SIZE } from "../../buttons/FicButton/constants.js";
|
|
13
|
+
import { Body } from "../../typographies/Body/index.js";
|
|
14
|
+
import { FontWeight } from "../../typographies/font.js";
|
|
15
|
+
import { HeaderArrows } from "../HeaderArrows/index.js";
|
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
17
|
const DatePicker = props => {
|
|
16
18
|
const {
|
|
17
19
|
datePickers
|
|
@@ -194,18 +196,19 @@ const DatePicker = props => {
|
|
|
194
196
|
direction
|
|
195
197
|
}) => {
|
|
196
198
|
const createIconComponent = (name, calendarUnit) => ({
|
|
197
|
-
component: /*#__PURE__*/
|
|
199
|
+
component: /*#__PURE__*/_jsx(Icon, {
|
|
198
200
|
name: name,
|
|
199
201
|
size: DEFAULT_ICON_SIZE,
|
|
200
|
-
color: arrowColor || Colors.BLUE
|
|
201
|
-
|
|
202
|
+
color: arrowColor || Colors.BLUE,
|
|
203
|
+
...headerIconProps
|
|
204
|
+
}),
|
|
202
205
|
calendarUnit
|
|
203
206
|
});
|
|
204
207
|
const _monthIconName = monthIconNames ? direction === 'left' ? monthIconNames.left : monthIconNames.right : `chevron-${direction}`;
|
|
205
208
|
const _yearIconName = yearIconNames ? direction === 'left' ? yearIconNames.left : yearIconNames.right : `chevron-double-${direction}`;
|
|
206
209
|
const monthIconComponent = createIconComponent(_monthIconName, 'month');
|
|
207
210
|
const yearIconComponent = createIconComponent(_yearIconName, 'year');
|
|
208
|
-
return /*#__PURE__*/
|
|
211
|
+
return /*#__PURE__*/_jsx(HeaderArrows, {
|
|
209
212
|
withYearSelector: withYearSelector,
|
|
210
213
|
monthIconComponent: monthIconComponent,
|
|
211
214
|
yearIconComponent: yearIconComponent,
|
|
@@ -218,18 +221,18 @@ const DatePicker = props => {
|
|
|
218
221
|
};
|
|
219
222
|
|
|
220
223
|
// Memoized Header
|
|
221
|
-
const Header = useMemo(() => /*#__PURE__*/
|
|
224
|
+
const Header = useMemo(() => /*#__PURE__*/_jsx(Body, {
|
|
222
225
|
color: monthTextColor || Colors.BLUE,
|
|
223
226
|
weight: FontWeight.SEMIBOLD,
|
|
224
227
|
style: {
|
|
225
228
|
fontWeight: textMonthFontWeight
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
+
},
|
|
230
|
+
children: capitalize(moment(`${currentMonth}-${currentYear}`, 'M-YYYY').format('MMMM YYYY'))
|
|
231
|
+
}), [currentMonth, currentYear]);
|
|
232
|
+
return /*#__PURE__*/_jsx(Calendar, {
|
|
229
233
|
disableArrowLeft: true,
|
|
230
234
|
disableArrowRight: true,
|
|
231
|
-
|
|
232
|
-
renderArrow: direction => /*#__PURE__*/React.createElement(Arrows, {
|
|
235
|
+
renderArrow: direction => /*#__PURE__*/_jsx(Arrows, {
|
|
233
236
|
direction: direction
|
|
234
237
|
}),
|
|
235
238
|
renderHeader: () => Header,
|
|
@@ -245,7 +248,7 @@ const DatePicker = props => {
|
|
|
245
248
|
maxDate: formattedMaxDate || formattedEndingDay,
|
|
246
249
|
firstDay: firstDay,
|
|
247
250
|
theme: isTodayInRange ? restTheme : theme
|
|
248
|
-
});
|
|
251
|
+
}, `${currentYear}-${currentMonth}`);
|
|
249
252
|
};
|
|
250
253
|
export default DatePicker;
|
|
251
254
|
//# sourceMappingURL=DatePicker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["capitalize","moment","React","useCallback","useEffect","useMemo","useState","Calendar","useTheme","Icon","Colors","DEFAULT_ICON_SIZE","Body","FontWeight","HeaderArrows","DatePicker","props","datePickers","onDatePicked","value","startingDate","endingDate","minDate","maxDate","showSixWeeks","hideExtraDays","format","localeData","longDateFormat","firstDay","theme","withYearSelector","monthIconNames","yearIconNames","headerIconProps","periodMarkingStyle","color","selectedDayBackgroundColor","textColor","selectedDayTextColor","formattedStartingDay","formattedEndingDay","selectedDate","isValid","undefined","currentYear","setCurrentYear","year","currentMonth","setCurrentMonth","month","newMonthFromValue","newYearFromValue","currentDate","createDatePeriod","startDate","endDate","dateRange","startingDay","endingDay","start","startOf","add","end","isAfter","Object","assign","onDateSelected","date","dateString","markingType","formattedMinDate","formattedMaxDate","isTodayBetweenStartingDayAndSelected","isBetween","endOf","isTodayBetweenSelectedAndEndingDay","isSelectedDateToday","isSame","isTodayInRange","todayBackgroundColor","todayTextColor","arrowColor","monthTextColor","textMonthFontWeight","restTheme","markedDates","toReturn","selected","isAfterStartingDate","isBeforeEndingDate","isBefore","isSelectable","onPreviousYearPress","onPreviousMonthPress","onNextYearPress","onNextMonthPress","Arrows","direction","createIconComponent","name","calendarUnit","component","createElement","_extends","size","BLUE","_monthIconName","left","right","_yearIconName","monthIconComponent","yearIconComponent","Header","weight","SEMIBOLD","style","fontWeight","disableArrowLeft","disableArrowRight","key","renderArrow","renderHeader","onDayPress","current"],"sourceRoot":"../../../../../src","sources":["components/base/DatePicker/DatePicker.tsx"],"mappings":";AAAA,SAASA,UAAU,QAAQ,QAAQ;AACnC,OAAOC,MAAM,MAAM,QAAQ;AAC3B,OAAOC,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACxE;;AAEA,SAASC,QAAQ,QAAkB,wBAAwB;AAE3D,SAASC,QAAQ,QAAQ,yBAAyB;AAClD,SAASC,IAAI,QAAmB,iCAAiC;AAEjE,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,SAASC,iBAAiB,QAAQ,mCAAmC;AACrE,SAASC,IAAI,QAAQ,yBAAyB;AAC9C,SAASC,UAAU,QAAQ,yBAAyB;AACpD,SAASC,YAAY,QAAQ,iBAAiB;AA+D9C,MAAMC,UAAsC,GAAIC,KAAuB,IAAK;EAC1E,MAAM;IAAEC;EAAY,CAAC,GAAGT,QAAQ,CAAC,CAAC;EAElC,MAAM;IACJU,YAAY;IACZC,KAAK;IACLC,YAAY;IACZC,UAAU;IACVC,OAAO;IACPC,OAAO;IACPC,YAAY,GAAG,IAAI;IACnBC,aAAa,GAAG,KAAK;IACrBC,MAAM,GAAGzB,MAAM,CAAC0B,UAAU,CAAC,CAAC,CAACC,cAAc,CAAC,GAAG,CAAC;IAChDC,QAAQ;IACRC,KAAK,GAAGb,WAAW;IACnBc,gBAAgB,GAAG,KAAK;IACxBC,cAAc;IACdC,aAAa;IACbC;EACF,CAAC,GAAGlB,KAAK;;EAET;EACA,MAAMmB,kBAAkB,GAAG9B,OAAO,CAChC,OAAO;IACL+B,KAAK,EAAEN,KAAK,CAACO,0BAA0B;IACvCC,SAAS,EAAER,KAAK,CAACS;EACnB,CAAC,CAA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YAAY,EAAEA,CAAA,KAAMT,MAAO;IAC3BU,UAAU,EAAExD,cAAe;IAC3ByD,OAAO,EACLvE,WAAW,IACXX,YAAY,IACZF,oBAAoB,IACpBC,kBAAkB,IAClB8B,gBAAgB,IAChBC,gBACD;IACD/C,aAAa,EAAEA;IACf;IAAA;IACAD,YAAY,EAAEA,YAAoB;IAClC8C,WAAW,EAAEA,WAAwB;IACrCgB,WAAW,EAAEA,WAAY;IACzBhE,OAAO,EAAEiD,gBAAgB,IAAI/B,oBAAqB;IAClDjB,OAAO,EAAEiD,gBAAgB,IAAI/B,kBAAmB;IAChDZ,QAAQ,EAAEA,QAAS;IACnBC,KAAK,EAAEiD,cAAc,GAAGM,SAAS,GAAGvD;EAAM,CAC3C,CAAC;AAEN,CAAC;AAED,eAAef,UAAU","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["capitalize","moment","React","useCallback","useEffect","useMemo","useState","Calendar","useTheme","Icon","Colors","DEFAULT_ICON_SIZE","Body","FontWeight","HeaderArrows","jsx","_jsx","DatePicker","props","datePickers","onDatePicked","value","startingDate","endingDate","minDate","maxDate","showSixWeeks","hideExtraDays","format","localeData","longDateFormat","firstDay","theme","withYearSelector","monthIconNames","yearIconNames","headerIconProps","periodMarkingStyle","color","selectedDayBackgroundColor","textColor","selectedDayTextColor","formattedStartingDay","formattedEndingDay","selectedDate","isValid","undefined","currentYear","setCurrentYear","year","currentMonth","setCurrentMonth","month","newMonthFromValue","newYearFromValue","currentDate","createDatePeriod","startDate","endDate","dateRange","startingDay","endingDay","start","startOf","add","end","isAfter","Object","assign","onDateSelected","date","dateString","markingType","formattedMinDate","formattedMaxDate","isTodayBetweenStartingDayAndSelected","isBetween","endOf","isTodayBetweenSelectedAndEndingDay","isSelectedDateToday","isSame","isTodayInRange","todayBackgroundColor","todayTextColor","arrowColor","monthTextColor","textMonthFontWeight","restTheme","markedDates","toReturn","selected","isAfterStartingDate","isBeforeEndingDate","isBefore","isSelectable","onPreviousYearPress","onPreviousMonthPress","onNextYearPress","onNextMonthPress","Arrows","direction","createIconComponent","name","calendarUnit","component","size","BLUE","_monthIconName","left","right","_yearIconName","monthIconComponent","yearIconComponent","Header","weight","SEMIBOLD","style","fontWeight","children","disableArrowLeft","disableArrowRight","renderArrow","renderHeader","onDayPress","current"],"sourceRoot":"../../../../../src","sources":["components/base/DatePicker/DatePicker.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,QAAQ;AACnC,OAAOC,MAAM,MAAM,QAAQ;AAC3B,OAAOC,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACxE;;AAEA,SAASC,QAAQ,QAAkB,wBAAwB;AAE3D,SAASC,QAAQ,QAAQ,4BAAyB;AAClD,SAASC,IAAI,QAAmB,0CAAiC;AAEjE,SAASC,MAAM,QAAQ,2BAAwB;AAC/C,SAASC,iBAAiB,QAAQ,sCAAmC;AACrE,SAASC,IAAI,QAAQ,kCAAyB;AAC9C,SAASC,UAAU,QAAQ,4BAAyB;AACpD,SAASC,YAAY,QAAQ,0BAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AA+D/C,MAAMC,UAAsC,GAAIC,KAAuB,IAAK;EAC1E,MAAM;IAAEC;EAAY,CAAC,GAAGX,QAAQ,CAAC,CAAC;EAElC,MAAM;IACJY,YAAY;IACZC,KAAK;IACLC,YAAY;IACZC,UAAU;IACVC,OAAO;IACPC,OAAO;IACPC,YAAY,GAAG,IAAI;IACnBC,aAAa,GAAG,KAAK;IACrBC,MAAM,GAAG3B,MAAM,CAAC4B,UAAU,CAAC,CAAC,CAACC,cAAc,CAAC,GAAG,CAAC;IAChDC,QAAQ;IACRC,KAAK,GAAGb,WAAW;IACnBc,gBAAgB,GAAG,KAAK;IACxBC,cAAc;IACdC,aAAa;IACbC;EACF,CAAC,GAAGlB,KAAK;;EAET;EACA,MAAMmB,kBAAkB,GAAGhC,OAAO,CAChC,OAAO;IACLiC,KAAK,EAAEN,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AAU,EAAEtD,cAAe;IAC3BuD,OAAO,EACLrE,WAAW,IACXX,YAAY,IACZF,oBAAoB,IACpBC,kBAAkB,IAClB8B,gBAAgB,IAChBC,gBACD;IACD/C,aAAa,EAAEA;IACf;IAAA;IACAD,YAAY,EAAEA,YAAoB;IAClC8C,WAAW,EAAEA,WAAwB;IACrCgB,WAAW,EAAEA,WAAY;IACzBhE,OAAO,EAAEiD,gBAAgB,IAAI/B,oBAAqB;IAClDjB,OAAO,EAAEiD,gBAAgB,IAAI/B,kBAAmB;IAChDZ,QAAQ,EAAEA,QAAS;IACnBC,KAAK,EAAEiD,cAAc,GAAGM,SAAS,GAAGvD;EAAM,GApBrC,GAAGe,WAAW,IAAIG,YAAY,EAqBpC,CAAC;AAEN,CAAC;AAED,eAAejC,UAAU","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DatePicker"],"sourceRoot":"../../../../../src","sources":["components/base/DatePicker/index.ts"],"mappings":"AAAA,OAAOA,UAAU,MAA4B,
|
|
1
|
+
{"version":3,"names":["DatePicker"],"sourceRoot":"../../../../../src","sources":["components/base/DatePicker/index.ts"],"mappings":";;AAAA,OAAOA,UAAU,MAA4B,iBAAc;AAE3D,SAASA,UAAU","ignoreList":[]}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { StyleSheet, View } from 'react-native';
|
|
3
|
-
import { Touchable } from
|
|
5
|
+
import { Touchable } from "../../Touchable/index.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
7
|
const HeaderArrows = ({
|
|
5
8
|
withYearSelector,
|
|
6
9
|
direction,
|
|
@@ -23,26 +26,24 @@ const HeaderArrows = ({
|
|
|
23
26
|
year: onNextYearPress
|
|
24
27
|
}
|
|
25
28
|
};
|
|
26
|
-
const handleAction = calendarUnit =>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
onPress: () => handleAction(calendarUnit)
|
|
45
|
-
}, component)));
|
|
29
|
+
const handleAction = calendarUnit => actions?.[direction]?.[calendarUnit]?.();
|
|
30
|
+
return /*#__PURE__*/_jsx(View, {
|
|
31
|
+
style: styles.container,
|
|
32
|
+
children: iconsToBeRendered.map(({
|
|
33
|
+
calendarUnit,
|
|
34
|
+
component
|
|
35
|
+
}, idx) => /*#__PURE__*/_jsx(Touchable, {
|
|
36
|
+
style: [styles.iconContainer, direction === 'left' && styles.iconContainerLeft, direction === 'right' && styles.iconContainerRight],
|
|
37
|
+
hitSlop: {
|
|
38
|
+
top: 8,
|
|
39
|
+
right: 8,
|
|
40
|
+
bottom: 8,
|
|
41
|
+
left: 8
|
|
42
|
+
},
|
|
43
|
+
onPress: () => handleAction(calendarUnit),
|
|
44
|
+
children: component
|
|
45
|
+
}, idx))
|
|
46
|
+
});
|
|
46
47
|
};
|
|
47
48
|
const styles = StyleSheet.create({
|
|
48
49
|
// For some reasons if we display custom arrows a horizontal padding of 10px is applied to the header container
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","Touchable","HeaderArrows","withYearSelector","direction","monthIconComponent","yearIconComponent","onPreviousMonthPress","onPreviousYearPress","onNextMonthPress","onNextYearPress","iconSet","iconsToBeRendered","reverse","actions","left","month","year","right","handleAction","calendarUnit","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","Touchable","jsx","_jsx","HeaderArrows","withYearSelector","direction","monthIconComponent","yearIconComponent","onPreviousMonthPress","onPreviousYearPress","onNextMonthPress","onNextYearPress","iconSet","iconsToBeRendered","reverse","actions","left","month","year","right","handleAction","calendarUnit","style","styles","container","children","map","component","idx","iconContainer","iconContainerLeft","iconContainerRight","hitSlop","top","bottom","onPress","create","alignItems","flexDirection","marginLeft","marginRight","padding"],"sourceRoot":"../../../../../src","sources":["components/base/HeaderArrows/HeaderArrows.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAA6B,OAAO;AAChD,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,SAASC,SAAS,QAAQ,0BAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAc5C,MAAMC,YAAmD,GAAGA,CAAC;EAC3DC,gBAAgB;EAChBC,SAAS;EACTC,kBAAkB;EAClBC,iBAAiB;EACjBC,oBAAoB;EACpBC,mBAAmB;EACnBC,gBAAgB;EAChBC;AACF,CAAC,KAAK;EACJ,MAAMC,OAAwB,GAAGR,gBAAgB,GAC7C,CAACE,kBAAkB,EAAEC,iBAAiB,CAAC,GACvC,CAACD,kBAAkB,CAAC;EAExB,MAAMO,iBAAkC,GACtCR,SAAS,KAAK,MAAM,GAAGO,OAAO,CAACE,OAAO,CAAC,CAAC,GAAGF,OAAO;EAEpD,MAAMG,OAAsE,GAC1E;IACEC,IAAI,EAAE;MACJC,KAAK,EAAET,oBAAoB;MAC3BU,IAAI,EAAET;IACR,CAAC;IACDU,KAAK,EAAE;MACLF,KAAK,EAAEP,gBAAgB;MACvBQ,IAAI,EAAEP;IACR;EACF,CAAC;EAEH,MAAMS,YAAY,GAAIC,YAA0B,IAC9CN,OAAO,GAAGV,SAAS,CAAC,GAAGgB,YAAY,CAAC,GAAG,CAAC;EAE1C,oBACEnB,IAAA,CAACH,IAAI;IAACuB,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,EAC3BZ,iBAAiB,CAACa,GAAG,CAAC,CAAC;MAAEL,YAAY;MAAEM;IAAU,CAAC,EAAEC,GAAG,kBACtD1B,IAAA,CAACF,SAAS;MAERsB,KAAK,EAAE,CACLC,MAAM,CAACM,aAAa,EACpBxB,SAAS,KAAK,MAAM,IAAIkB,MAAM,CAACO,iBAAiB,EAChDzB,SAAS,KAAK,OAAO,IAAIkB,MAAM,CAACQ,kBAAkB,CAClD;MACFC,OAAO,EAAE;QAAEC,GAAG,EAAE,CAAC;QAAEd,KAAK,EAAE,CAAC;QAAEe,MAAM,EAAE,CAAC;QAAElB,IAAI,EAAE;MAAE,CAAE;MAClDmB,OAAO,EAAEA,CAAA,KAAMf,YAAY,CAACC,YAAY,CAAE;MAAAI,QAAA,EAEzCE;IAAS,GATLC,GAUI,CACZ;EAAC,CACE,CAAC;AAEX,CAAC;AAED,MAAML,MAAM,GAAGzB,UAAU,CAACsC,MAAM,CAAC;EAC/B;EACAZ,SAAS,EAAE;IACTa,UAAU,EAAE,QAAQ;IACpBC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,CAAC,EAAE;IACfC,WAAW,EAAE,CAAC;EAChB,CAAC;EACDX,aAAa,EAAE;IACbS,aAAa,EAAE,KAAK;IACpBD,UAAU,EAAE,QAAQ;IACpBI,OAAO,EAAE;EACX,CAAC;EACDX,iBAAiB,EAAE;IACjBU,WAAW,EAAE,EAAE;IACfD,UAAU,EAAE;EACd,CAAC;EACDR,kBAAkB,EAAE;IAClBS,WAAW,EAAE,CAAC;IACdD,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,eAAepC,YAAY","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HeaderArrows"],"sourceRoot":"../../../../../src","sources":["components/base/HeaderArrows/index.ts"],"mappings":"AAAA,OAAOA,YAAY,MAAM,
|
|
1
|
+
{"version":3,"names":["HeaderArrows"],"sourceRoot":"../../../../../src","sources":["components/base/HeaderArrows/index.ts"],"mappings":";;AAAA,OAAOA,YAAY,MAAM,mBAAgB;AAEzC,SAASA,YAAY","ignoreList":[]}
|
|
@@ -1,36 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import FicButtonIcon from
|
|
5
|
-
import FicButtonPrimary from
|
|
6
|
-
import FicButtonSecondary from
|
|
7
|
-
import FicButtonTertiary from
|
|
4
|
+
import FicButtonIcon from "./FicButtonIcon.js";
|
|
5
|
+
import FicButtonPrimary from "./FicButtonPrimary.js";
|
|
6
|
+
import FicButtonSecondary from "./FicButtonSecondary.js";
|
|
7
|
+
import FicButtonTertiary from "./FicButtonTertiary.js";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
const buttonMap = {
|
|
10
|
+
icon: FicButtonIcon,
|
|
11
|
+
secondary: FicButtonSecondary,
|
|
12
|
+
tertiary: FicButtonTertiary,
|
|
13
|
+
primary: FicButtonPrimary
|
|
14
|
+
};
|
|
8
15
|
const FicButton = ({
|
|
9
16
|
type = 'primary',
|
|
10
17
|
...commonProps
|
|
11
18
|
}) => {
|
|
12
|
-
const _iconPosition = commonProps.iconPosition
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
iconPosition: _iconPosition
|
|
22
|
-
}, commonProps));
|
|
23
|
-
case 'tertiary':
|
|
24
|
-
return /*#__PURE__*/React.createElement(FicButtonTertiary, _extends({
|
|
25
|
-
iconPosition: _iconPosition
|
|
26
|
-
}, commonProps));
|
|
27
|
-
default:
|
|
28
|
-
return /*#__PURE__*/React.createElement(FicButtonPrimary, _extends({
|
|
29
|
-
iconPosition: _iconPosition
|
|
30
|
-
}, commonProps));
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
return /*#__PURE__*/React.createElement(FButton, null);
|
|
19
|
+
const _iconPosition = commonProps.iconPosition ?? (commonProps.iconName ? 'left' : undefined);
|
|
20
|
+
const ButtonComponent = buttonMap[type] || FicButtonPrimary;
|
|
21
|
+
return /*#__PURE__*/_jsx(ButtonComponent, {
|
|
22
|
+
iconPosition: _iconPosition,
|
|
23
|
+
...(type === 'icon' ? {
|
|
24
|
+
isPressable: true
|
|
25
|
+
} : {}),
|
|
26
|
+
...commonProps
|
|
27
|
+
});
|
|
34
28
|
};
|
|
35
29
|
export default FicButton;
|
|
36
30
|
//# sourceMappingURL=FicButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","FicButtonIcon","FicButtonPrimary","FicButtonSecondary","FicButtonTertiary","FicButton","type","commonProps","_iconPosition","iconPosition","iconName","undefined","
|
|
1
|
+
{"version":3,"names":["React","FicButtonIcon","FicButtonPrimary","FicButtonSecondary","FicButtonTertiary","jsx","_jsx","buttonMap","icon","secondary","tertiary","primary","FicButton","type","commonProps","_iconPosition","iconPosition","iconName","undefined","ButtonComponent","isPressable"],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/FicButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAOC,aAAa,MAAM,oBAAiB;AAC3C,OAAOC,gBAAgB,MAAM,uBAAoB;AACjD,OAAOC,kBAAkB,MAAM,yBAAsB;AACrD,OAAOC,iBAAiB,MAAM,wBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEpD,MAAMC,SAAS,GAAG;EAChBC,IAAI,EAAEP,aAAa;EACnBQ,SAAS,EAAEN,kBAAkB;EAC7BO,QAAQ,EAAEN,iBAAiB;EAC3BO,OAAO,EAAET;AACX,CAAC;AAED,MAAMU,SAAmC,GAAGA,CAAC;EAC3CC,IAAI,GAAG,SAAS;EAChB,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,aAAa,GACjBD,WAAW,CAACE,YAAY,KAAKF,WAAW,CAACG,QAAQ,GAAG,MAAM,GAAGC,SAAS,CAAC;EAEzE,MAAMC,eAAe,GAAGZ,SAAS,CAACM,IAAI,CAAC,IAAIX,gBAAgB;EAE3D,oBACEI,IAAA,CAACa,eAAe;IACdH,YAAY,EAAED,aAAc;IAAA,IACvBF,IAAI,KAAK,MAAM,GAAG;MAAEO,WAAW,EAAE;IAAK,CAAC,GAAG,CAAC,CAAC;IAAA,GAC7CN;EAAW,CAChB,CAAC;AAEN,CAAC;AAED,eAAeF,SAAS","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/FicButton.types.ts"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/FicButton.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
2
3
|
import * as React from 'react';
|
|
3
|
-
import { useCallback, useMemo
|
|
4
|
+
import { useCallback, useMemo } from 'react';
|
|
4
5
|
import { Platform, Pressable as PressableIOS, View } from 'react-native';
|
|
5
6
|
import { TouchableHighlight } from 'react-native-gesture-handler';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import Animated, { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
|
|
8
|
+
import { useTheme } from "../../../hooks/useTheme.js";
|
|
9
|
+
import { Icon } from "../../../providers/IconProvider/index.js";
|
|
10
|
+
import { DEFAULT_ICON, DEFAULT_ICON_SIZE, HIT_SLOP } from "./constants.js";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
12
|
const FicButtonIcon = ({
|
|
10
13
|
iconName,
|
|
11
14
|
iconSize: _iconSize,
|
|
@@ -29,22 +32,20 @@ const FicButtonIcon = ({
|
|
|
29
32
|
const {
|
|
30
33
|
ficButton: theme
|
|
31
34
|
} = useTheme() || {};
|
|
32
|
-
const buttonTheme =
|
|
35
|
+
const buttonTheme = theme?.['icon'] || {};
|
|
33
36
|
const themeProps = disabled ? buttonTheme.disabled : error ? buttonTheme.error : buttonTheme.default;
|
|
34
|
-
const
|
|
35
|
-
const pressedAreaSize =
|
|
36
|
-
const pressableAreaStyle =
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
};
|
|
47
|
-
}, [iconSize, pressedAreaSize, themeProps]);
|
|
37
|
+
const pressedOpacity = useSharedValue(0);
|
|
38
|
+
const pressedAreaSize = customPressedIconAreaSize ? customPressedIconAreaSize : iconSize + INCREMENT_PRESSED_AREA_SIZE;
|
|
39
|
+
const pressableAreaStyle = useAnimatedStyle(() => ({
|
|
40
|
+
position: 'absolute',
|
|
41
|
+
top: (pressedAreaSize - iconSize) / 2 * -1,
|
|
42
|
+
left: (pressedAreaSize - iconSize) / 2 * -1,
|
|
43
|
+
width: pressedAreaSize ?? iconSize,
|
|
44
|
+
height: pressedAreaSize ?? iconSize,
|
|
45
|
+
borderRadius: pressedAreaSize / 6,
|
|
46
|
+
opacity: pressedOpacity.value,
|
|
47
|
+
...themeProps?.pressedStyle?.container
|
|
48
|
+
}));
|
|
48
49
|
const iconStyle = useMemo(() => ({
|
|
49
50
|
textAlign: 'center',
|
|
50
51
|
lineHeight: iconSize,
|
|
@@ -53,20 +54,27 @@ const FicButtonIcon = ({
|
|
|
53
54
|
fontSize: iconSize ? iconSize === 16 ? iconSize - 2 : iconSize - 4 : DEFAULT_ICON_SIZE
|
|
54
55
|
}), [iconSize]);
|
|
55
56
|
const iconColor = useMemo(() => {
|
|
56
|
-
|
|
57
|
+
if (iconCustomColor) return iconCustomColor;
|
|
58
|
+
if (error) return themeProps?.icon.color;
|
|
59
|
+
if (colorContrastForLightTheme && themeProps?.icon?.colorContrastForLightTheme) return themeProps?.icon.colorContrastForLightTheme;
|
|
60
|
+
return themeProps?.icon.color;
|
|
57
61
|
}, [colorContrastForLightTheme, error, themeProps, iconCustomColor]);
|
|
58
|
-
const handleOnPressIn = e => {
|
|
62
|
+
const handleOnPressIn = useCallback(e => {
|
|
63
|
+
pressedOpacity.value = withTiming(1, {
|
|
64
|
+
duration: 50
|
|
65
|
+
});
|
|
59
66
|
if (onPressIn) onPressIn(e);
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
67
|
+
}, [pressedOpacity, onPressIn]);
|
|
68
|
+
const handleOnPressOut = useCallback(e => {
|
|
69
|
+
pressedOpacity.value = withTiming(0, {
|
|
70
|
+
duration: 50
|
|
71
|
+
});
|
|
63
72
|
if (onPressOut) onPressOut(e);
|
|
64
|
-
|
|
65
|
-
};
|
|
73
|
+
}, [pressedOpacity, onPressOut]);
|
|
66
74
|
const handleOnPress = e => {
|
|
67
75
|
if (onPress) onPress(e);
|
|
68
76
|
};
|
|
69
|
-
const FicIcon = useCallback(() => /*#__PURE__*/
|
|
77
|
+
const FicIcon = useCallback(() => /*#__PURE__*/_jsx(Icon, {
|
|
70
78
|
name: iconName ?? DEFAULT_ICON,
|
|
71
79
|
solid: solid,
|
|
72
80
|
light: light,
|
|
@@ -76,22 +84,24 @@ const FicButtonIcon = ({
|
|
|
76
84
|
color: iconColor,
|
|
77
85
|
style: iconStyle
|
|
78
86
|
}), [iconName, iconSize, colorContrastForLightTheme, error, iconStyle, themeProps, solid, light, regular, duotone]);
|
|
79
|
-
return /*#__PURE__*/
|
|
87
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
80
88
|
style: {
|
|
81
89
|
width: _iconSize,
|
|
82
90
|
height: _iconSize
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
},
|
|
92
|
+
children: [/*#__PURE__*/_jsx(Animated.View, {
|
|
93
|
+
style: pressableAreaStyle
|
|
94
|
+
}), /*#__PURE__*/_jsx(Pressable, {
|
|
95
|
+
style: [themeProps?.container, containerStyle],
|
|
96
|
+
onPress: handleOnPress,
|
|
97
|
+
onPressIn: handleOnPressIn,
|
|
98
|
+
onPressOut: handleOnPressOut,
|
|
99
|
+
hitSlop: HIT_SLOP,
|
|
100
|
+
disabled: disabled,
|
|
101
|
+
underlayColor: 'transparent',
|
|
102
|
+
children: FicIcon()
|
|
103
|
+
})]
|
|
104
|
+
});
|
|
95
105
|
};
|
|
96
106
|
export default FicButtonIcon;
|
|
97
107
|
//# sourceMappingURL=FicButtonIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useMemo","
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","Platform","Pressable","PressableIOS","View","TouchableHighlight","Animated","useAnimatedStyle","useSharedValue","withTiming","useTheme","Icon","DEFAULT_ICON","DEFAULT_ICON_SIZE","HIT_SLOP","jsx","_jsx","jsxs","_jsxs","FicButtonIcon","iconName","iconSize","_iconSize","iconCustomColor","disabled","error","onPress","onPressIn","onPressOut","containerStyle","customPressedIconAreaSize","colorContrastForLightTheme","solid","light","duotone","regular","OS","INCREMENT_PRESSED_AREA_SIZE","ficButton","theme","buttonTheme","themeProps","default","pressedOpacity","pressedAreaSize","pressableAreaStyle","position","top","left","width","height","borderRadius","opacity","value","pressedStyle","container","iconStyle","textAlign","lineHeight","fontSize","iconColor","icon","color","handleOnPressIn","e","duration","handleOnPressOut","handleOnPress","FicIcon","name","size","style","children","hitSlop","underlayColor"],"sourceRoot":"../../../../../src","sources":["components/buttons/FicButton/FicButtonIcon.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAA4BC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAC/D,SAEEC,QAAQ,EACRC,SAAS,IAAIC,YAAY,EACzBC,IAAI,QAEC,cAAc;AACrB,SAASC,kBAAkB,QAAQ,8BAA8B;AACjE,OAAOC,QAAQ,IACbC,gBAAgB,EAChBC,cAAc,EACdC,UAAU,QACL,yBAAyB;AAChC,SAASC,QAAQ,QAAQ,4BAAyB;AAClD,SAASC,IAAI,QAAQ,0CAAiC;AAMtD,SAASC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