@fattureincloud-mobile/fic-mobile-ds 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -0
- package/README.md +31 -0
- package/lib/commonjs/components/Tag/Tag.js +44 -0
- package/lib/commonjs/components/Tag/Tag.js.map +1 -0
- package/lib/commonjs/components/Tag/index.js +14 -0
- package/lib/commonjs/components/Tag/index.js.map +1 -0
- package/lib/commonjs/components/Touchable/Touchable.js +79 -0
- package/lib/commonjs/components/Touchable/Touchable.js.map +1 -0
- package/lib/commonjs/components/Touchable/index.js +14 -0
- package/lib/commonjs/components/Touchable/index.js.map +1 -0
- package/lib/commonjs/components/base/DatePicker/DatePicker.js +257 -0
- package/lib/commonjs/components/base/DatePicker/DatePicker.js.map +1 -0
- package/lib/commonjs/components/base/DatePicker/index.js +14 -0
- package/lib/commonjs/components/base/DatePicker/index.js.map +1 -0
- package/lib/commonjs/components/base/HeaderArrows/HeaderArrows.js +77 -0
- package/lib/commonjs/components/base/HeaderArrows/HeaderArrows.js.map +1 -0
- package/lib/commonjs/components/base/HeaderArrows/index.js +14 -0
- package/lib/commonjs/components/base/HeaderArrows/index.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/FicButton.js +42 -0
- package/lib/commonjs/components/buttons/FicButton/FicButton.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/FicButton.types.js +6 -0
- package/lib/commonjs/components/buttons/FicButton/FicButton.types.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/FicButtonIcon.js +104 -0
- package/lib/commonjs/components/buttons/FicButton/FicButtonIcon.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/FicButtonPrimary.js +121 -0
- package/lib/commonjs/components/buttons/FicButton/FicButtonPrimary.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/FicButtonSecondary.js +123 -0
- package/lib/commonjs/components/buttons/FicButton/FicButtonSecondary.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/FicButtonTertiary.js +144 -0
- package/lib/commonjs/components/buttons/FicButton/FicButtonTertiary.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/constants.js +23 -0
- package/lib/commonjs/components/buttons/FicButton/constants.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/index.js +14 -0
- package/lib/commonjs/components/buttons/FicButton/index.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/themes/dark.js +291 -0
- package/lib/commonjs/components/buttons/FicButton/themes/dark.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/themes/index.js +14 -0
- package/lib/commonjs/components/buttons/FicButton/themes/index.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButton/themes/light.js +311 -0
- package/lib/commonjs/components/buttons/FicButton/themes/light.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.js +54 -0
- package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.types.js +6 -0
- package/lib/commonjs/components/buttons/FicButtonGroup/FicButtonGroup.types.js.map +1 -0
- package/lib/commonjs/components/buttons/FicButtonGroup/index.js +14 -0
- package/lib/commonjs/components/buttons/FicButtonGroup/index.js.map +1 -0
- package/lib/commonjs/components/notifications/Banner/Banner.js +96 -0
- package/lib/commonjs/components/notifications/Banner/Banner.js.map +1 -0
- package/lib/commonjs/components/notifications/Banner/Banner.types.js +6 -0
- package/lib/commonjs/components/notifications/Banner/Banner.types.js.map +1 -0
- package/lib/commonjs/components/notifications/Banner/index.js +14 -0
- package/lib/commonjs/components/notifications/Banner/index.js.map +1 -0
- package/lib/commonjs/components/notifications/Banner/themes/dark.js +47 -0
- package/lib/commonjs/components/notifications/Banner/themes/dark.js.map +1 -0
- package/lib/commonjs/components/notifications/Banner/themes/index.js +21 -0
- package/lib/commonjs/components/notifications/Banner/themes/index.js.map +1 -0
- package/lib/commonjs/components/notifications/Banner/themes/light.js +47 -0
- package/lib/commonjs/components/notifications/Banner/themes/light.js.map +1 -0
- package/lib/commonjs/components/typographies/Body/Body.js +35 -0
- package/lib/commonjs/components/typographies/Body/Body.js.map +1 -0
- package/lib/commonjs/components/typographies/Body/index.js +14 -0
- package/lib/commonjs/components/typographies/Body/index.js.map +1 -0
- package/lib/commonjs/components/typographies/ButtonTitle/ButtonTitle.js +45 -0
- package/lib/commonjs/components/typographies/ButtonTitle/ButtonTitle.js.map +1 -0
- package/lib/commonjs/components/typographies/ButtonTitle/index.js +14 -0
- package/lib/commonjs/components/typographies/ButtonTitle/index.js.map +1 -0
- package/lib/commonjs/components/typographies/Callout/Callout.js +35 -0
- package/lib/commonjs/components/typographies/Callout/Callout.js.map +1 -0
- package/lib/commonjs/components/typographies/Callout/index.js +14 -0
- package/lib/commonjs/components/typographies/Callout/index.js.map +1 -0
- package/lib/commonjs/components/typographies/CaptionOne/CaptionOne.js +35 -0
- package/lib/commonjs/components/typographies/CaptionOne/CaptionOne.js.map +1 -0
- package/lib/commonjs/components/typographies/CaptionOne/index.js +14 -0
- package/lib/commonjs/components/typographies/CaptionOne/index.js.map +1 -0
- package/lib/commonjs/components/typographies/CaptionTwo/CaptionTwo.js +35 -0
- package/lib/commonjs/components/typographies/CaptionTwo/CaptionTwo.js.map +1 -0
- package/lib/commonjs/components/typographies/CaptionTwo/index.js +14 -0
- package/lib/commonjs/components/typographies/CaptionTwo/index.js.map +1 -0
- package/lib/commonjs/components/typographies/Footnote/Footnote.js +35 -0
- package/lib/commonjs/components/typographies/Footnote/Footnote.js.map +1 -0
- package/lib/commonjs/components/typographies/Footnote/index.js +14 -0
- package/lib/commonjs/components/typographies/Footnote/index.js.map +1 -0
- package/lib/commonjs/components/typographies/Headline/Headline.js +35 -0
- package/lib/commonjs/components/typographies/Headline/Headline.js.map +1 -0
- package/lib/commonjs/components/typographies/Headline/index.js +14 -0
- package/lib/commonjs/components/typographies/Headline/index.js.map +1 -0
- package/lib/commonjs/components/typographies/LargeTitle/LargeTitle.js +35 -0
- package/lib/commonjs/components/typographies/LargeTitle/LargeTitle.js.map +1 -0
- package/lib/commonjs/components/typographies/LargeTitle/index.js +14 -0
- package/lib/commonjs/components/typographies/LargeTitle/index.js.map +1 -0
- package/lib/commonjs/components/typographies/README.md +22 -0
- package/lib/commonjs/components/typographies/Subhead/Subhead.js +35 -0
- package/lib/commonjs/components/typographies/Subhead/Subhead.js.map +1 -0
- package/lib/commonjs/components/typographies/Subhead/index.js +14 -0
- package/lib/commonjs/components/typographies/Subhead/index.js.map +1 -0
- package/lib/commonjs/components/typographies/TitleOne/TitleOne.js +35 -0
- package/lib/commonjs/components/typographies/TitleOne/TitleOne.js.map +1 -0
- package/lib/commonjs/components/typographies/TitleOne/index.js +14 -0
- package/lib/commonjs/components/typographies/TitleOne/index.js.map +1 -0
- package/lib/commonjs/components/typographies/TitleThree/TitleThree.js +35 -0
- package/lib/commonjs/components/typographies/TitleThree/TitleThree.js.map +1 -0
- package/lib/commonjs/components/typographies/TitleThree/index.js +14 -0
- package/lib/commonjs/components/typographies/TitleThree/index.js.map +1 -0
- package/lib/commonjs/components/typographies/TitleTwo/TitleTwo.js +35 -0
- package/lib/commonjs/components/typographies/TitleTwo/TitleTwo.js.map +1 -0
- package/lib/commonjs/components/typographies/TitleTwo/index.js +14 -0
- package/lib/commonjs/components/typographies/TitleTwo/index.js.map +1 -0
- package/lib/commonjs/components/typographies/font.js +33 -0
- package/lib/commonjs/components/typographies/font.js.map +1 -0
- package/lib/commonjs/hooks/useTheme.js +24 -0
- package/lib/commonjs/hooks/useTheme.js.map +1 -0
- package/lib/commonjs/index.js +206 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/providers/DesignSystemProvider/DesignSystemProvider.js +30 -0
- package/lib/commonjs/providers/DesignSystemProvider/DesignSystemProvider.js.map +1 -0
- package/lib/commonjs/providers/DesignSystemProvider/index.js +14 -0
- package/lib/commonjs/providers/DesignSystemProvider/index.js.map +1 -0
- package/lib/commonjs/providers/IconProvider/IconProvider.js +35 -0
- package/lib/commonjs/providers/IconProvider/IconProvider.js.map +1 -0
- package/lib/commonjs/providers/IconProvider/index.js +20 -0
- package/lib/commonjs/providers/IconProvider/index.js.map +1 -0
- package/lib/commonjs/providers/ThemeProvider/ThemeProvider.js +20 -0
- package/lib/commonjs/providers/ThemeProvider/ThemeProvider.js.map +1 -0
- package/lib/commonjs/styles/calendarTheme.js +6 -0
- package/lib/commonjs/styles/calendarTheme.js.map +1 -0
- package/lib/commonjs/styles/colors.js +109 -0
- package/lib/commonjs/styles/colors.js.map +1 -0
- package/lib/commonjs/styles/globalStyles.js +41 -0
- package/lib/commonjs/styles/globalStyles.js.map +1 -0
- package/lib/commonjs/styles/space.js +34 -0
- package/lib/commonjs/styles/space.js.map +1 -0
- package/lib/commonjs/styles/theme.js +421 -0
- package/lib/commonjs/styles/theme.js.map +1 -0
- package/lib/commonjs/utils/locale.js +50 -0
- package/lib/commonjs/utils/locale.js.map +1 -0
- package/lib/module/components/Tag/Tag.js +37 -0
- package/lib/module/components/Tag/Tag.js.map +1 -0
- package/lib/module/components/Tag/index.js +3 -0
- package/lib/module/components/Tag/index.js.map +1 -0
- package/lib/module/components/Touchable/Touchable.js +72 -0
- package/lib/module/components/Touchable/Touchable.js.map +1 -0
- package/lib/module/components/Touchable/index.js +3 -0
- package/lib/module/components/Touchable/index.js.map +1 -0
- package/lib/module/components/base/DatePicker/DatePicker.js +251 -0
- package/lib/module/components/base/DatePicker/DatePicker.js.map +1 -0
- package/lib/module/components/base/DatePicker/index.js +3 -0
- package/lib/module/components/base/DatePicker/index.js.map +1 -0
- package/lib/module/components/base/HeaderArrows/HeaderArrows.js +70 -0
- package/lib/module/components/base/HeaderArrows/HeaderArrows.js.map +1 -0
- package/lib/module/components/base/HeaderArrows/index.js +3 -0
- package/lib/module/components/base/HeaderArrows/index.js.map +1 -0
- package/lib/module/components/buttons/FicButton/FicButton.js +36 -0
- package/lib/module/components/buttons/FicButton/FicButton.js.map +1 -0
- package/lib/module/components/buttons/FicButton/FicButton.types.js +2 -0
- package/lib/module/components/buttons/FicButton/FicButton.types.js.map +1 -0
- package/lib/module/components/buttons/FicButton/FicButtonIcon.js +96 -0
- package/lib/module/components/buttons/FicButton/FicButtonIcon.js.map +1 -0
- package/lib/module/components/buttons/FicButton/FicButtonPrimary.js +114 -0
- package/lib/module/components/buttons/FicButton/FicButtonPrimary.js.map +1 -0
- package/lib/module/components/buttons/FicButton/FicButtonSecondary.js +116 -0
- package/lib/module/components/buttons/FicButton/FicButtonSecondary.js.map +1 -0
- package/lib/module/components/buttons/FicButton/FicButtonTertiary.js +137 -0
- package/lib/module/components/buttons/FicButton/FicButtonTertiary.js.map +1 -0
- package/lib/module/components/buttons/FicButton/constants.js +17 -0
- package/lib/module/components/buttons/FicButton/constants.js.map +1 -0
- package/lib/module/components/buttons/FicButton/index.js +3 -0
- package/lib/module/components/buttons/FicButton/index.js.map +1 -0
- package/lib/module/components/buttons/FicButton/themes/dark.js +285 -0
- package/lib/module/components/buttons/FicButton/themes/dark.js.map +1 -0
- package/lib/module/components/buttons/FicButton/themes/index.js +3 -0
- package/lib/module/components/buttons/FicButton/themes/index.js.map +1 -0
- package/lib/module/components/buttons/FicButton/themes/light.js +305 -0
- package/lib/module/components/buttons/FicButton/themes/light.js.map +1 -0
- package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.js +47 -0
- package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.js.map +1 -0
- package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.types.js +2 -0
- package/lib/module/components/buttons/FicButtonGroup/FicButtonGroup.types.js.map +1 -0
- package/lib/module/components/buttons/FicButtonGroup/index.js +3 -0
- package/lib/module/components/buttons/FicButtonGroup/index.js.map +1 -0
- package/lib/module/components/notifications/Banner/Banner.js +89 -0
- package/lib/module/components/notifications/Banner/Banner.js.map +1 -0
- package/lib/module/components/notifications/Banner/Banner.types.js +2 -0
- package/lib/module/components/notifications/Banner/Banner.types.js.map +1 -0
- package/lib/module/components/notifications/Banner/index.js +3 -0
- package/lib/module/components/notifications/Banner/index.js.map +1 -0
- package/lib/module/components/notifications/Banner/themes/dark.js +41 -0
- package/lib/module/components/notifications/Banner/themes/dark.js.map +1 -0
- package/lib/module/components/notifications/Banner/themes/index.js +4 -0
- package/lib/module/components/notifications/Banner/themes/index.js.map +1 -0
- package/lib/module/components/notifications/Banner/themes/light.js +41 -0
- package/lib/module/components/notifications/Banner/themes/light.js.map +1 -0
- package/lib/module/components/typographies/Body/Body.js +29 -0
- package/lib/module/components/typographies/Body/Body.js.map +1 -0
- package/lib/module/components/typographies/Body/index.js +3 -0
- package/lib/module/components/typographies/Body/index.js.map +1 -0
- package/lib/module/components/typographies/ButtonTitle/ButtonTitle.js +39 -0
- package/lib/module/components/typographies/ButtonTitle/ButtonTitle.js.map +1 -0
- package/lib/module/components/typographies/ButtonTitle/index.js +3 -0
- package/lib/module/components/typographies/ButtonTitle/index.js.map +1 -0
- package/lib/module/components/typographies/Callout/Callout.js +29 -0
- package/lib/module/components/typographies/Callout/Callout.js.map +1 -0
- package/lib/module/components/typographies/Callout/index.js +3 -0
- package/lib/module/components/typographies/Callout/index.js.map +1 -0
- package/lib/module/components/typographies/CaptionOne/CaptionOne.js +29 -0
- package/lib/module/components/typographies/CaptionOne/CaptionOne.js.map +1 -0
- package/lib/module/components/typographies/CaptionOne/index.js +3 -0
- package/lib/module/components/typographies/CaptionOne/index.js.map +1 -0
- package/lib/module/components/typographies/CaptionTwo/CaptionTwo.js +29 -0
- package/lib/module/components/typographies/CaptionTwo/CaptionTwo.js.map +1 -0
- package/lib/module/components/typographies/CaptionTwo/index.js +3 -0
- package/lib/module/components/typographies/CaptionTwo/index.js.map +1 -0
- package/lib/module/components/typographies/Footnote/Footnote.js +29 -0
- package/lib/module/components/typographies/Footnote/Footnote.js.map +1 -0
- package/lib/module/components/typographies/Footnote/index.js +3 -0
- package/lib/module/components/typographies/Footnote/index.js.map +1 -0
- package/lib/module/components/typographies/Headline/Headline.js +29 -0
- package/lib/module/components/typographies/Headline/Headline.js.map +1 -0
- package/lib/module/components/typographies/Headline/index.js +3 -0
- package/lib/module/components/typographies/Headline/index.js.map +1 -0
- package/lib/module/components/typographies/LargeTitle/LargeTitle.js +29 -0
- package/lib/module/components/typographies/LargeTitle/LargeTitle.js.map +1 -0
- package/lib/module/components/typographies/LargeTitle/index.js +3 -0
- package/lib/module/components/typographies/LargeTitle/index.js.map +1 -0
- package/lib/module/components/typographies/README.md +22 -0
- package/lib/module/components/typographies/Subhead/Subhead.js +29 -0
- package/lib/module/components/typographies/Subhead/Subhead.js.map +1 -0
- package/lib/module/components/typographies/Subhead/index.js +3 -0
- package/lib/module/components/typographies/Subhead/index.js.map +1 -0
- package/lib/module/components/typographies/TitleOne/TitleOne.js +29 -0
- package/lib/module/components/typographies/TitleOne/TitleOne.js.map +1 -0
- package/lib/module/components/typographies/TitleOne/index.js +3 -0
- package/lib/module/components/typographies/TitleOne/index.js.map +1 -0
- package/lib/module/components/typographies/TitleThree/TitleThree.js +29 -0
- package/lib/module/components/typographies/TitleThree/TitleThree.js.map +1 -0
- package/lib/module/components/typographies/TitleThree/index.js +3 -0
- package/lib/module/components/typographies/TitleThree/index.js.map +1 -0
- package/lib/module/components/typographies/TitleTwo/TitleTwo.js +29 -0
- package/lib/module/components/typographies/TitleTwo/TitleTwo.js.map +1 -0
- package/lib/module/components/typographies/TitleTwo/index.js +3 -0
- package/lib/module/components/typographies/TitleTwo/index.js.map +1 -0
- package/lib/module/components/typographies/font.js +26 -0
- package/lib/module/components/typographies/font.js.map +1 -0
- package/lib/module/hooks/useTheme.js +16 -0
- package/lib/module/hooks/useTheme.js.map +1 -0
- package/lib/module/index.js +26 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/providers/DesignSystemProvider/DesignSystemProvider.js +22 -0
- package/lib/module/providers/DesignSystemProvider/DesignSystemProvider.js.map +1 -0
- package/lib/module/providers/DesignSystemProvider/index.js +3 -0
- package/lib/module/providers/DesignSystemProvider/index.js.map +1 -0
- package/lib/module/providers/IconProvider/IconProvider.js +27 -0
- package/lib/module/providers/IconProvider/IconProvider.js.map +1 -0
- package/lib/module/providers/IconProvider/index.js +3 -0
- package/lib/module/providers/IconProvider/index.js.map +1 -0
- package/lib/module/providers/ThemeProvider/ThemeProvider.js +13 -0
- package/lib/module/providers/ThemeProvider/ThemeProvider.js.map +1 -0
- package/lib/module/styles/calendarTheme.js +2 -0
- package/lib/module/styles/calendarTheme.js.map +1 -0
- package/lib/module/styles/colors.js +103 -0
- package/lib/module/styles/colors.js.map +1 -0
- package/lib/module/styles/globalStyles.js +35 -0
- package/lib/module/styles/globalStyles.js.map +1 -0
- package/lib/module/styles/space.js +28 -0
- package/lib/module/styles/space.js.map +1 -0
- package/lib/module/styles/theme.js +414 -0
- package/lib/module/styles/theme.js.map +1 -0
- package/lib/module/utils/locale.js +42 -0
- package/lib/module/utils/locale.js.map +1 -0
- package/lib/package.json +138 -0
- package/lib/typescript/components/Tag/Tag.d.ts +13 -0
- package/lib/typescript/components/Tag/Tag.d.ts.map +1 -0
- package/lib/typescript/components/Tag/index.d.ts +3 -0
- package/lib/typescript/components/Tag/index.d.ts.map +1 -0
- package/lib/typescript/components/Touchable/Touchable.d.ts +16 -0
- package/lib/typescript/components/Touchable/Touchable.d.ts.map +1 -0
- package/lib/typescript/components/Touchable/index.d.ts +3 -0
- package/lib/typescript/components/Touchable/index.d.ts.map +1 -0
- package/lib/typescript/components/base/DatePicker/DatePicker.d.ts +60 -0
- package/lib/typescript/components/base/DatePicker/DatePicker.d.ts.map +1 -0
- package/lib/typescript/components/base/DatePicker/index.d.ts +4 -0
- package/lib/typescript/components/base/DatePicker/index.d.ts.map +1 -0
- package/lib/typescript/components/base/HeaderArrows/HeaderArrows.d.ts +16 -0
- package/lib/typescript/components/base/HeaderArrows/HeaderArrows.d.ts.map +1 -0
- package/lib/typescript/components/base/HeaderArrows/index.d.ts +3 -0
- package/lib/typescript/components/base/HeaderArrows/index.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/FicButton.d.ts +5 -0
- package/lib/typescript/components/buttons/FicButton/FicButton.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/FicButton.types.d.ts +87 -0
- package/lib/typescript/components/buttons/FicButton/FicButton.types.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/FicButtonIcon.d.ts +5 -0
- package/lib/typescript/components/buttons/FicButton/FicButtonIcon.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/FicButtonPrimary.d.ts +5 -0
- package/lib/typescript/components/buttons/FicButton/FicButtonPrimary.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/FicButtonSecondary.d.ts +5 -0
- package/lib/typescript/components/buttons/FicButton/FicButtonSecondary.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/FicButtonTertiary.d.ts +5 -0
- package/lib/typescript/components/buttons/FicButton/FicButtonTertiary.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/constants.d.ts +13 -0
- package/lib/typescript/components/buttons/FicButton/constants.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/index.d.ts +5 -0
- package/lib/typescript/components/buttons/FicButton/index.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/themes/dark.d.ts +4 -0
- package/lib/typescript/components/buttons/FicButton/themes/dark.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/themes/index.d.ts +3 -0
- package/lib/typescript/components/buttons/FicButton/themes/index.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButton/themes/light.d.ts +4 -0
- package/lib/typescript/components/buttons/FicButton/themes/light.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButtonGroup/FicButtonGroup.d.ts +5 -0
- package/lib/typescript/components/buttons/FicButtonGroup/FicButtonGroup.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts +10 -0
- package/lib/typescript/components/buttons/FicButtonGroup/FicButtonGroup.types.d.ts.map +1 -0
- package/lib/typescript/components/buttons/FicButtonGroup/index.d.ts +3 -0
- package/lib/typescript/components/buttons/FicButtonGroup/index.d.ts.map +1 -0
- package/lib/typescript/components/notifications/Banner/Banner.d.ts +5 -0
- package/lib/typescript/components/notifications/Banner/Banner.d.ts.map +1 -0
- package/lib/typescript/components/notifications/Banner/Banner.types.d.ts +50 -0
- package/lib/typescript/components/notifications/Banner/Banner.types.d.ts.map +1 -0
- package/lib/typescript/components/notifications/Banner/index.d.ts +3 -0
- package/lib/typescript/components/notifications/Banner/index.d.ts.map +1 -0
- package/lib/typescript/components/notifications/Banner/themes/dark.d.ts +4 -0
- package/lib/typescript/components/notifications/Banner/themes/dark.d.ts.map +1 -0
- package/lib/typescript/components/notifications/Banner/themes/index.d.ts +4 -0
- package/lib/typescript/components/notifications/Banner/themes/index.d.ts.map +1 -0
- package/lib/typescript/components/notifications/Banner/themes/light.d.ts +4 -0
- package/lib/typescript/components/notifications/Banner/themes/light.d.ts.map +1 -0
- package/lib/typescript/components/typographies/Body/Body.d.ts +12 -0
- package/lib/typescript/components/typographies/Body/Body.d.ts.map +1 -0
- package/lib/typescript/components/typographies/Body/index.d.ts +3 -0
- package/lib/typescript/components/typographies/Body/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/ButtonTitle/ButtonTitle.d.ts +10 -0
- package/lib/typescript/components/typographies/ButtonTitle/ButtonTitle.d.ts.map +1 -0
- package/lib/typescript/components/typographies/ButtonTitle/index.d.ts +3 -0
- package/lib/typescript/components/typographies/ButtonTitle/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/Callout/Callout.d.ts +12 -0
- package/lib/typescript/components/typographies/Callout/Callout.d.ts.map +1 -0
- package/lib/typescript/components/typographies/Callout/index.d.ts +3 -0
- package/lib/typescript/components/typographies/Callout/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/CaptionOne/CaptionOne.d.ts +12 -0
- package/lib/typescript/components/typographies/CaptionOne/CaptionOne.d.ts.map +1 -0
- package/lib/typescript/components/typographies/CaptionOne/index.d.ts +3 -0
- package/lib/typescript/components/typographies/CaptionOne/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/CaptionTwo/CaptionTwo.d.ts +12 -0
- package/lib/typescript/components/typographies/CaptionTwo/CaptionTwo.d.ts.map +1 -0
- package/lib/typescript/components/typographies/CaptionTwo/index.d.ts +3 -0
- package/lib/typescript/components/typographies/CaptionTwo/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/Footnote/Footnote.d.ts +12 -0
- package/lib/typescript/components/typographies/Footnote/Footnote.d.ts.map +1 -0
- package/lib/typescript/components/typographies/Footnote/index.d.ts +3 -0
- package/lib/typescript/components/typographies/Footnote/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/Headline/Headline.d.ts +12 -0
- package/lib/typescript/components/typographies/Headline/Headline.d.ts.map +1 -0
- package/lib/typescript/components/typographies/Headline/index.d.ts +3 -0
- package/lib/typescript/components/typographies/Headline/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/LargeTitle/LargeTitle.d.ts +12 -0
- package/lib/typescript/components/typographies/LargeTitle/LargeTitle.d.ts.map +1 -0
- package/lib/typescript/components/typographies/LargeTitle/index.d.ts +3 -0
- package/lib/typescript/components/typographies/LargeTitle/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/Subhead/Subhead.d.ts +12 -0
- package/lib/typescript/components/typographies/Subhead/Subhead.d.ts.map +1 -0
- package/lib/typescript/components/typographies/Subhead/index.d.ts +3 -0
- package/lib/typescript/components/typographies/Subhead/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/TitleOne/TitleOne.d.ts +12 -0
- package/lib/typescript/components/typographies/TitleOne/TitleOne.d.ts.map +1 -0
- package/lib/typescript/components/typographies/TitleOne/index.d.ts +3 -0
- package/lib/typescript/components/typographies/TitleOne/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/TitleThree/TitleThree.d.ts +12 -0
- package/lib/typescript/components/typographies/TitleThree/TitleThree.d.ts.map +1 -0
- package/lib/typescript/components/typographies/TitleThree/index.d.ts +3 -0
- package/lib/typescript/components/typographies/TitleThree/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/TitleTwo/TitleTwo.d.ts +12 -0
- package/lib/typescript/components/typographies/TitleTwo/TitleTwo.d.ts.map +1 -0
- package/lib/typescript/components/typographies/TitleTwo/index.d.ts +3 -0
- package/lib/typescript/components/typographies/TitleTwo/index.d.ts.map +1 -0
- package/lib/typescript/components/typographies/font.d.ts +9 -0
- package/lib/typescript/components/typographies/font.d.ts.map +1 -0
- package/lib/typescript/hooks/useTheme.d.ts +3 -0
- package/lib/typescript/hooks/useTheme.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +31 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/providers/DesignSystemProvider/DesignSystemProvider.d.ts +10 -0
- package/lib/typescript/providers/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -0
- package/lib/typescript/providers/DesignSystemProvider/index.d.ts +3 -0
- package/lib/typescript/providers/DesignSystemProvider/index.d.ts.map +1 -0
- package/lib/typescript/providers/IconProvider/IconProvider.d.ts +21 -0
- package/lib/typescript/providers/IconProvider/IconProvider.d.ts.map +1 -0
- package/lib/typescript/providers/IconProvider/index.d.ts +4 -0
- package/lib/typescript/providers/IconProvider/index.d.ts.map +1 -0
- package/lib/typescript/providers/ThemeProvider/ThemeProvider.d.ts +9 -0
- package/lib/typescript/providers/ThemeProvider/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/styles/calendarTheme.d.ts +24 -0
- package/lib/typescript/styles/calendarTheme.d.ts.map +1 -0
- package/lib/typescript/styles/colors.d.ts +100 -0
- package/lib/typescript/styles/colors.d.ts.map +1 -0
- package/lib/typescript/styles/globalStyles.d.ts +33 -0
- package/lib/typescript/styles/globalStyles.d.ts.map +1 -0
- package/lib/typescript/styles/space.d.ts +19 -0
- package/lib/typescript/styles/space.d.ts.map +1 -0
- package/lib/typescript/styles/theme.d.ts +183 -0
- package/lib/typescript/styles/theme.d.ts.map +1 -0
- package/lib/typescript/utils/locale.d.ts +15 -0
- package/lib/typescript/utils/locale.d.ts.map +1 -0
- package/package.json +30 -43
- package/src/components/Tag/Tag.tsx +59 -0
- package/src/components/Tag/index.ts +3 -0
- package/src/components/Touchable/Touchable.tsx +110 -0
- package/src/components/Touchable/index.ts +3 -0
- package/src/components/base/DatePicker/DatePicker.tsx +427 -0
- package/src/components/base/DatePicker/index.ts +4 -0
- package/src/components/base/HeaderArrows/HeaderArrows.tsx +93 -0
- package/src/components/base/HeaderArrows/index.ts +3 -0
- package/src/components/buttons/FicButton/FicButton.tsx +41 -0
- package/src/components/buttons/FicButton/FicButton.types.ts +114 -0
- package/src/components/buttons/FicButton/FicButtonIcon.tsx +161 -0
- package/src/components/buttons/FicButton/FicButtonPrimary.tsx +167 -0
- package/src/components/buttons/FicButton/FicButtonSecondary.tsx +168 -0
- package/src/components/buttons/FicButton/FicButtonTertiary.tsx +188 -0
- package/src/components/buttons/FicButton/constants.ts +23 -0
- package/src/components/buttons/FicButton/index.ts +5 -0
- package/src/components/buttons/FicButton/themes/dark.ts +273 -0
- package/src/components/buttons/FicButton/themes/index.ts +3 -0
- package/src/components/buttons/FicButton/themes/light.ts +293 -0
- package/src/components/buttons/FicButtonGroup/FicButtonGroup.tsx +40 -0
- package/src/components/buttons/FicButtonGroup/FicButtonGroup.types.ts +11 -0
- package/src/components/buttons/FicButtonGroup/index.ts +2 -0
- package/src/components/notifications/Banner/Banner.tsx +105 -0
- package/src/components/notifications/Banner/Banner.types.ts +69 -0
- package/src/components/notifications/Banner/index.ts +3 -0
- package/src/components/notifications/Banner/themes/dark.ts +43 -0
- package/src/components/notifications/Banner/themes/index.ts +4 -0
- package/src/components/notifications/Banner/themes/light.ts +43 -0
- package/src/components/typographies/Body/Body.tsx +38 -0
- package/src/components/typographies/Body/index.ts +3 -0
- package/src/components/typographies/ButtonTitle/ButtonTitle.tsx +51 -0
- package/src/components/typographies/ButtonTitle/index.ts +3 -0
- package/src/components/typographies/Callout/Callout.tsx +38 -0
- package/src/components/typographies/Callout/index.ts +3 -0
- package/src/components/typographies/CaptionOne/CaptionOne.tsx +38 -0
- package/src/components/typographies/CaptionOne/index.ts +4 -0
- package/src/components/typographies/CaptionTwo/CaptionTwo.tsx +38 -0
- package/src/components/typographies/CaptionTwo/index.ts +4 -0
- package/src/components/typographies/Footnote/Footnote.tsx +38 -0
- package/src/components/typographies/Footnote/index.ts +4 -0
- package/src/components/typographies/Headline/Headline.tsx +38 -0
- package/src/components/typographies/Headline/index.ts +4 -0
- package/src/components/typographies/LargeTitle/LargeTitle.tsx +38 -0
- package/src/components/typographies/LargeTitle/index.ts +3 -0
- package/src/components/typographies/README.md +22 -0
- package/src/components/typographies/Subhead/Subhead.tsx +38 -0
- package/src/components/typographies/Subhead/index.ts +4 -0
- package/src/components/typographies/TitleOne/TitleOne.tsx +38 -0
- package/src/components/typographies/TitleOne/index.ts +4 -0
- package/src/components/typographies/TitleThree/TitleThree.tsx +38 -0
- package/src/components/typographies/TitleThree/index.ts +4 -0
- package/src/components/typographies/TitleTwo/TitleTwo.tsx +38 -0
- package/src/components/typographies/TitleTwo/index.ts +4 -0
- package/src/components/typographies/font.ts +25 -0
- package/src/hooks/useTheme.ts +17 -0
- package/src/index.tsx +47 -0
- package/src/providers/DesignSystemProvider/DesignSystemProvider.tsx +31 -0
- package/src/providers/DesignSystemProvider/index.ts +3 -0
- package/src/providers/IconProvider/IconProvider.tsx +46 -0
- package/src/providers/IconProvider/index.ts +4 -0
- package/src/providers/ThemeProvider/ThemeProvider.tsx +17 -0
- package/src/styles/calendarTheme.ts +24 -0
- package/src/styles/colors.ts +119 -0
- package/src/styles/globalStyles.ts +36 -0
- package/src/styles/space.ts +27 -0
- package/src/styles/theme.ts +609 -0
- package/src/utils/locale.ts +50 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
// @ts-ignore TS6133
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Platform, Text } from 'react-native';
|
|
5
|
+
import { human, material, robotoWeights, sanFranciscoWeights } from 'react-native-typography';
|
|
6
|
+
import { useTheme } from '../../../hooks/useTheme';
|
|
7
|
+
const ButtonTitle = ({
|
|
8
|
+
text,
|
|
9
|
+
color,
|
|
10
|
+
style,
|
|
11
|
+
children,
|
|
12
|
+
...rest
|
|
13
|
+
}) => {
|
|
14
|
+
const {
|
|
15
|
+
typographies: typographiesTheme
|
|
16
|
+
} = useTheme();
|
|
17
|
+
const composedStyle = {
|
|
18
|
+
...Platform.select({
|
|
19
|
+
ios: {
|
|
20
|
+
...human.calloutObject,
|
|
21
|
+
...sanFranciscoWeights.semibold
|
|
22
|
+
},
|
|
23
|
+
android: {
|
|
24
|
+
...material.buttonObject,
|
|
25
|
+
...robotoWeights.medium
|
|
26
|
+
}
|
|
27
|
+
}),
|
|
28
|
+
color: color || typographiesTheme.buttonTitleColor
|
|
29
|
+
};
|
|
30
|
+
return /*#__PURE__*/React.createElement(Text, _extends({}, rest, {
|
|
31
|
+
style: [composedStyle, style],
|
|
32
|
+
numberOfLines: 1
|
|
33
|
+
}), Platform.select({
|
|
34
|
+
android: (text === null || text === void 0 ? void 0 : text.toUpperCase()) || (children === null || children === void 0 ? void 0 : children.toString().toUpperCase()),
|
|
35
|
+
ios: text || children
|
|
36
|
+
}));
|
|
37
|
+
};
|
|
38
|
+
export default ButtonTitle;
|
|
39
|
+
//# sourceMappingURL=ButtonTitle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Platform","Text","human","material","robotoWeights","sanFranciscoWeights","useTheme","ButtonTitle","text","color","style","children","rest","typographies","typographiesTheme","composedStyle","select","ios","calloutObject","semibold","android","buttonObject","medium","buttonTitleColor","createElement","_extends","numberOfLines","toUpperCase","toString"],"sourceRoot":"../../../../../src","sources":["components/typographies/ButtonTitle/ButtonTitle.tsx"],"mappings":";AAAA;AACA,OAAOA,KAAK,MAA6B,OAAO;AAChD,SAASC,QAAQ,EAAaC,IAAI,QAA8B,cAAc;AAC9E,SACEC,KAAK,EACLC,QAAQ,EACRC,aAAa,EACbC,mBAAmB,QACd,yBAAyB;AAChC,SAASC,QAAQ,QAAQ,yBAAyB;AAQlD,MAAMC,WAAiD,GAAGA,CAAC;EACzDC,IAAI;EACJC,KAAK;EACLC,KAAK;EACLC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,MAAM;IAAEC,YAAY,EAAEC;EAAkB,CAAC,GAAGR,QAAQ,CAAC,CAAC;EAEtD,MAAMS,aAAmC,GAAG;IAC1C,GAAGf,QAAQ,CAACgB,MAAM,CAAC;MACjBC,GAAG,EAAE;QACH,GAAGf,KAAK,CAACgB,aAAa;QACtB,GAAGb,mBAAmB,CAACc;MACzB,CAAC;MACDC,OAAO,EAAE;QACP,GAAGjB,QAAQ,CAACkB,YAAY;QACxB,GAAGjB,aAAa,CAACkB;MACnB;IACF,CAAC,CAAC;IACFb,KAAK,EAAEA,KAAK,IAAIK,iBAAiB,CAACS;EACpC,CAAC;EAED,oBACExB,KAAA,CAAAyB,aAAA,CAACvB,IAAI,EAAAwB,QAAA,KAAKb,IAAI;IAAEF,KAAK,EAAE,CAACK,aAAa,EAAEL,KAAK,CAAE;IAACgB,aAAa,EAAE;EAAE,IAC7D1B,QAAQ,CAACgB,MAAM,CAAC;IACfI,OAAO,EAAE,CAAAZ,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEmB,WAAW,CAAC,CAAC,MAAIhB,QAAQ,aAARA,QAAQ,uBAARA,QAAQ,CAAEiB,QAAQ,CAAC,CAAC,CAACD,WAAW,CAAC,CAAC;IAClEV,GAAG,EAAET,IAAI,IAAIG;EACf,CAAC,CACG,CAAC;AAEX,CAAC;AAED,eAAeJ,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ButtonTitle"],"sourceRoot":"../../../../../src","sources":["components/typographies/ButtonTitle/index.ts"],"mappings":"AAAA,OAAOA,WAAW,MAAM,eAAe;AAEvC,SAASA,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
// @ts-ignore TS6133
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Text } from 'react-native';
|
|
5
|
+
import { human } from 'react-native-typography';
|
|
6
|
+
import { useTheme } from '../../../hooks/useTheme';
|
|
7
|
+
import { FontWeight, retrieveFontWeight } from '../font';
|
|
8
|
+
const Callout = ({
|
|
9
|
+
text,
|
|
10
|
+
weight,
|
|
11
|
+
color,
|
|
12
|
+
style,
|
|
13
|
+
children,
|
|
14
|
+
...rest
|
|
15
|
+
}) => {
|
|
16
|
+
const {
|
|
17
|
+
typographies: typographiesTheme
|
|
18
|
+
} = useTheme();
|
|
19
|
+
const composedStyle = {
|
|
20
|
+
...human.calloutObject,
|
|
21
|
+
...retrieveFontWeight(weight || FontWeight.REGULAR),
|
|
22
|
+
color: color || typographiesTheme.calloutColor
|
|
23
|
+
};
|
|
24
|
+
return /*#__PURE__*/React.createElement(Text, _extends({}, rest, {
|
|
25
|
+
style: [composedStyle, style]
|
|
26
|
+
}), text || children);
|
|
27
|
+
};
|
|
28
|
+
export default Callout;
|
|
29
|
+
//# sourceMappingURL=Callout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Text","human","useTheme","FontWeight","retrieveFontWeight","Callout","text","weight","color","style","children","rest","typographies","typographiesTheme","composedStyle","calloutObject","REGULAR","calloutColor","createElement","_extends"],"sourceRoot":"../../../../../src","sources":["components/typographies/Callout/Callout.tsx"],"mappings":";AAAA;AACA,OAAOA,KAAK,MAA6B,OAAO;AAChD,SAAoBC,IAAI,QAA8B,cAAc;AACpE,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SAASC,QAAQ,QAAQ,yBAAyB;AAClD,SAASC,UAAU,EAAEC,kBAAkB,QAAQ,SAAS;AASxD,MAAMC,OAAyC,GAAGA,CAAC;EACjDC,IAAI;EACJC,MAAM;EACNC,KAAK;EACLC,KAAK;EACLC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,MAAM;IAAEC,YAAY,EAAEC;EAAkB,CAAC,GAAGX,QAAQ,CAAC,CAAC;EAEtD,MAAMY,aAAmC,GAAG;IAC1C,GAAGb,KAAK,CAACc,aAAa;IACtB,GAAGX,kBAAkB,CAACG,MAAM,IAAIJ,UAAU,CAACa,OAAO,CAAC;IACnDR,KAAK,EAAEA,KAAK,IAAIK,iBAAiB,CAACI;EACpC,CAAC;EAED,oBACElB,KAAA,CAAAmB,aAAA,CAAClB,IAAI,EAAAmB,QAAA,KAAKR,IAAI;IAAEF,KAAK,EAAE,CAACK,aAAa,EAAEL,KAAK;EAAE,IAC3CH,IAAI,IAAII,QACL,CAAC;AAEX,CAAC;AAED,eAAeL,OAAO","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Callout"],"sourceRoot":"../../../../../src","sources":["components/typographies/Callout/index.ts"],"mappings":"AAAA,OAAOA,OAAO,MAAM,WAAW;AAE/B,SAASA,OAAO","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
// @ts-ignore TS6133
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Text } from 'react-native';
|
|
5
|
+
import { human } from 'react-native-typography';
|
|
6
|
+
import { useTheme } from '../../../hooks/useTheme';
|
|
7
|
+
import { FontWeight, retrieveFontWeight } from '../font';
|
|
8
|
+
const CaptionOne = ({
|
|
9
|
+
text,
|
|
10
|
+
weight,
|
|
11
|
+
color,
|
|
12
|
+
style,
|
|
13
|
+
children,
|
|
14
|
+
...rest
|
|
15
|
+
}) => {
|
|
16
|
+
const {
|
|
17
|
+
typographies: typographiesTheme
|
|
18
|
+
} = useTheme();
|
|
19
|
+
const composedStyle = {
|
|
20
|
+
...human.caption1Object,
|
|
21
|
+
...retrieveFontWeight(weight || FontWeight.REGULAR),
|
|
22
|
+
color: color || typographiesTheme.captionOneColor
|
|
23
|
+
};
|
|
24
|
+
return /*#__PURE__*/React.createElement(Text, _extends({}, rest, {
|
|
25
|
+
style: [composedStyle, style]
|
|
26
|
+
}), text || children);
|
|
27
|
+
};
|
|
28
|
+
export default CaptionOne;
|
|
29
|
+
//# sourceMappingURL=CaptionOne.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Text","human","useTheme","FontWeight","retrieveFontWeight","CaptionOne","text","weight","color","style","children","rest","typographies","typographiesTheme","composedStyle","caption1Object","REGULAR","captionOneColor","createElement","_extends"],"sourceRoot":"../../../../../src","sources":["components/typographies/CaptionOne/CaptionOne.tsx"],"mappings":";AAAA;AACA,OAAOA,KAAK,MAA6B,OAAO;AAChD,SAAoBC,IAAI,QAA8B,cAAc;AACpE,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SAASC,QAAQ,QAAQ,yBAAyB;AAClD,SAASC,UAAU,EAAEC,kBAAkB,QAAQ,SAAS;AASxD,MAAMC,UAA+C,GAAGA,CAAC;EACvDC,IAAI;EACJC,MAAM;EACNC,KAAK;EACLC,KAAK;EACLC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,MAAM;IAAEC,YAAY,EAAEC;EAAkB,CAAC,GAAGX,QAAQ,CAAC,CAAC;EAEtD,MAAMY,aAAmC,GAAG;IAC1C,GAAGb,KAAK,CAACc,cAAc;IACvB,GAAGX,kBAAkB,CAACG,MAAM,IAAIJ,UAAU,CAACa,OAAO,CAAC;IACnDR,KAAK,EAAEA,KAAK,IAAIK,iBAAiB,CAACI;EACpC,CAAC;EAED,oBACElB,KAAA,CAAAmB,aAAA,CAAClB,IAAI,EAAAmB,QAAA,KAAKR,IAAI;IAAEF,KAAK,EAAE,CAACK,aAAa,EAAEL,KAAK;EAAE,IAC3CH,IAAI,IAAII,QACL,CAAC;AAEX,CAAC;AAED,eAAeL,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CaptionOne"],"sourceRoot":"../../../../../src","sources":["components/typographies/CaptionOne/index.ts"],"mappings":"AAAA,OAAOA,UAAU,MAAM,cAAc;AAErC,SAASA,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
// @ts-ignore TS6133
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Text } from 'react-native';
|
|
5
|
+
import { human } from 'react-native-typography';
|
|
6
|
+
import { useTheme } from '../../../hooks/useTheme';
|
|
7
|
+
import { FontWeight, retrieveFontWeight } from '../font';
|
|
8
|
+
const CaptionTwo = ({
|
|
9
|
+
text,
|
|
10
|
+
color,
|
|
11
|
+
style,
|
|
12
|
+
weight,
|
|
13
|
+
children,
|
|
14
|
+
...rest
|
|
15
|
+
}) => {
|
|
16
|
+
const {
|
|
17
|
+
typographies: typographiesTheme
|
|
18
|
+
} = useTheme();
|
|
19
|
+
const composedStyle = {
|
|
20
|
+
...human.caption2Object,
|
|
21
|
+
...retrieveFontWeight(weight || FontWeight.REGULAR),
|
|
22
|
+
color: color || typographiesTheme.captionTwoColor
|
|
23
|
+
};
|
|
24
|
+
return /*#__PURE__*/React.createElement(Text, _extends({}, rest, {
|
|
25
|
+
style: [composedStyle, style]
|
|
26
|
+
}), text || children);
|
|
27
|
+
};
|
|
28
|
+
export default CaptionTwo;
|
|
29
|
+
//# sourceMappingURL=CaptionTwo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Text","human","useTheme","FontWeight","retrieveFontWeight","CaptionTwo","text","color","style","weight","children","rest","typographies","typographiesTheme","composedStyle","caption2Object","REGULAR","captionTwoColor","createElement","_extends"],"sourceRoot":"../../../../../src","sources":["components/typographies/CaptionTwo/CaptionTwo.tsx"],"mappings":";AAAA;AACA,OAAOA,KAAK,MAA6B,OAAO;AAChD,SAAoBC,IAAI,QAA8B,cAAc;AACpE,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SAASC,QAAQ,QAAQ,yBAAyB;AAClD,SAASC,UAAU,EAAEC,kBAAkB,QAAQ,SAAS;AASxD,MAAMC,UAA+C,GAAGA,CAAC;EACvDC,IAAI;EACJC,KAAK;EACLC,KAAK;EACLC,MAAM;EACNC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,MAAM;IAAEC,YAAY,EAAEC;EAAkB,CAAC,GAAGX,QAAQ,CAAC,CAAC;EAEtD,MAAMY,aAAmC,GAAG;IAC1C,GAAGb,KAAK,CAACc,cAAc;IACvB,GAAGX,kBAAkB,CAACK,MAAM,IAAIN,UAAU,CAACa,OAAO,CAAC;IACnDT,KAAK,EAAEA,KAAK,IAAIM,iBAAiB,CAACI;EACpC,CAAC;EAED,oBACElB,KAAA,CAAAmB,aAAA,CAAClB,IAAI,EAAAmB,QAAA,KAAKR,IAAI;IAAEH,KAAK,EAAE,CAACM,aAAa,EAAEN,KAAK;EAAE,IAC3CF,IAAI,IAAII,QACL,CAAC;AAEX,CAAC;AAED,eAAeL,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CaptionTwo"],"sourceRoot":"../../../../../src","sources":["components/typographies/CaptionTwo/index.ts"],"mappings":"AAAA,OAAOA,UAAU,MAAM,cAAc;AAErC,SAASA,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
// @ts-ignore TS6133
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Text } from 'react-native';
|
|
5
|
+
import { human } from 'react-native-typography';
|
|
6
|
+
import { useTheme } from '../../../hooks/useTheme';
|
|
7
|
+
import { FontWeight, retrieveFontWeight } from '../font';
|
|
8
|
+
const Footnote = ({
|
|
9
|
+
text,
|
|
10
|
+
color,
|
|
11
|
+
style,
|
|
12
|
+
weight,
|
|
13
|
+
children,
|
|
14
|
+
...rest
|
|
15
|
+
}) => {
|
|
16
|
+
const {
|
|
17
|
+
typographies: typographiesTheme
|
|
18
|
+
} = useTheme();
|
|
19
|
+
const composedStyle = {
|
|
20
|
+
...human.footnoteObject,
|
|
21
|
+
...retrieveFontWeight(weight || FontWeight.REGULAR),
|
|
22
|
+
color: color || typographiesTheme.footnoteColor
|
|
23
|
+
};
|
|
24
|
+
return /*#__PURE__*/React.createElement(Text, _extends({}, rest, {
|
|
25
|
+
style: [composedStyle, style]
|
|
26
|
+
}), text || children);
|
|
27
|
+
};
|
|
28
|
+
export default Footnote;
|
|
29
|
+
//# sourceMappingURL=Footnote.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Text","human","useTheme","FontWeight","retrieveFontWeight","Footnote","text","color","style","weight","children","rest","typographies","typographiesTheme","composedStyle","footnoteObject","REGULAR","footnoteColor","createElement","_extends"],"sourceRoot":"../../../../../src","sources":["components/typographies/Footnote/Footnote.tsx"],"mappings":";AAAA;AACA,OAAOA,KAAK,MAA6B,OAAO;AAChD,SAAoBC,IAAI,QAA8B,cAAc;AACpE,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SAASC,QAAQ,QAAQ,yBAAyB;AAClD,SAASC,UAAU,EAAEC,kBAAkB,QAAQ,SAAS;AASxD,MAAMC,QAA2C,GAAGA,CAAC;EACnDC,IAAI;EACJC,KAAK;EACLC,KAAK;EACLC,MAAM;EACNC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,MAAM;IAAEC,YAAY,EAAEC;EAAkB,CAAC,GAAGX,QAAQ,CAAC,CAAC;EAEtD,MAAMY,aAAmC,GAAG;IAC1C,GAAGb,KAAK,CAACc,cAAc;IACvB,GAAGX,kBAAkB,CAACK,MAAM,IAAIN,UAAU,CAACa,OAAO,CAAC;IACnDT,KAAK,EAAEA,KAAK,IAAIM,iBAAiB,CAACI;EACpC,CAAC;EAED,oBACElB,KAAA,CAAAmB,aAAA,CAAClB,IAAI,EAAAmB,QAAA,KAAKR,IAAI;IAAEH,KAAK,EAAE,CAACM,aAAa,EAAEN,KAAK;EAAE,IAC3CF,IAAI,IAAII,QACL,CAAC;AAEX,CAAC;AAED,eAAeL,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Footnote"],"sourceRoot":"../../../../../src","sources":["components/typographies/Footnote/index.ts"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,YAAY;AAEjC,SAASA,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
// @ts-ignore TS6133
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Text } from 'react-native';
|
|
5
|
+
import { human } from 'react-native-typography';
|
|
6
|
+
import { useTheme } from '../../../hooks/useTheme';
|
|
7
|
+
import { FontWeight, retrieveFontWeight } from '../font';
|
|
8
|
+
const Headline = ({
|
|
9
|
+
text,
|
|
10
|
+
color,
|
|
11
|
+
style,
|
|
12
|
+
weight,
|
|
13
|
+
children,
|
|
14
|
+
...rest
|
|
15
|
+
}) => {
|
|
16
|
+
const {
|
|
17
|
+
typographies: typographiesTheme
|
|
18
|
+
} = useTheme();
|
|
19
|
+
const composedStyle = {
|
|
20
|
+
...human.headlineObject,
|
|
21
|
+
...retrieveFontWeight(weight || FontWeight.SEMIBOLD),
|
|
22
|
+
color: color || typographiesTheme.headlineColor
|
|
23
|
+
};
|
|
24
|
+
return /*#__PURE__*/React.createElement(Text, _extends({}, rest, {
|
|
25
|
+
style: [composedStyle, style]
|
|
26
|
+
}), text || children);
|
|
27
|
+
};
|
|
28
|
+
export default Headline;
|
|
29
|
+
//# sourceMappingURL=Headline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Text","human","useTheme","FontWeight","retrieveFontWeight","Headline","text","color","style","weight","children","rest","typographies","typographiesTheme","composedStyle","headlineObject","SEMIBOLD","headlineColor","createElement","_extends"],"sourceRoot":"../../../../../src","sources":["components/typographies/Headline/Headline.tsx"],"mappings":";AAAA;AACA,OAAOA,KAAK,MAA6B,OAAO;AAChD,SAAoBC,IAAI,QAA8B,cAAc;AACpE,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SAASC,QAAQ,QAAQ,yBAAyB;AAClD,SAASC,UAAU,EAAEC,kBAAkB,QAAQ,SAAS;AASxD,MAAMC,QAA2C,GAAGA,CAAC;EACnDC,IAAI;EACJC,KAAK;EACLC,KAAK;EACLC,MAAM;EACNC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,MAAM;IAAEC,YAAY,EAAEC;EAAkB,CAAC,GAAGX,QAAQ,CAAC,CAAC;EAEtD,MAAMY,aAAmC,GAAG;IAC1C,GAAGb,KAAK,CAACc,cAAc;IACvB,GAAGX,kBAAkB,CAACK,MAAM,IAAIN,UAAU,CAACa,QAAQ,CAAC;IACpDT,KAAK,EAAEA,KAAK,IAAIM,iBAAiB,CAACI;EACpC,CAAC;EAED,oBACElB,KAAA,CAAAmB,aAAA,CAAClB,IAAI,EAAAmB,QAAA,KAAKR,IAAI;IAAEH,KAAK,EAAE,CAACM,aAAa,EAAEN,KAAK;EAAE,IAC3CF,IAAI,IAAII,QACL,CAAC;AAEX,CAAC;AAED,eAAeL,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Headline"],"sourceRoot":"../../../../../src","sources":["components/typographies/Headline/index.ts"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,YAAY;AAEjC,SAASA,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
// @ts-ignore TS6133
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Text } from 'react-native';
|
|
5
|
+
import { human } from 'react-native-typography';
|
|
6
|
+
import { useTheme } from '../../../hooks/useTheme';
|
|
7
|
+
import { FontWeight, retrieveFontWeight } from '../font';
|
|
8
|
+
const LargeTitle = ({
|
|
9
|
+
text,
|
|
10
|
+
color,
|
|
11
|
+
style,
|
|
12
|
+
weight,
|
|
13
|
+
children,
|
|
14
|
+
...rest
|
|
15
|
+
}) => {
|
|
16
|
+
const {
|
|
17
|
+
typographies: typographiesTheme
|
|
18
|
+
} = useTheme();
|
|
19
|
+
const composedStyle = {
|
|
20
|
+
...human.largeTitleObject,
|
|
21
|
+
...retrieveFontWeight(weight || FontWeight.REGULAR),
|
|
22
|
+
color: color || typographiesTheme.largeTitleColor
|
|
23
|
+
};
|
|
24
|
+
return /*#__PURE__*/React.createElement(Text, _extends({}, rest, {
|
|
25
|
+
style: [composedStyle, style]
|
|
26
|
+
}), text || children);
|
|
27
|
+
};
|
|
28
|
+
export default LargeTitle;
|
|
29
|
+
//# sourceMappingURL=LargeTitle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Text","human","useTheme","FontWeight","retrieveFontWeight","LargeTitle","text","color","style","weight","children","rest","typographies","typographiesTheme","composedStyle","largeTitleObject","REGULAR","largeTitleColor","createElement","_extends"],"sourceRoot":"../../../../../src","sources":["components/typographies/LargeTitle/LargeTitle.tsx"],"mappings":";AAAA;AACA,OAAOA,KAAK,MAA6B,OAAO;AAChD,SAAoBC,IAAI,QAA8B,cAAc;AACpE,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SAASC,QAAQ,QAAQ,yBAAyB;AAClD,SAASC,UAAU,EAAEC,kBAAkB,QAAQ,SAAS;AASxD,MAAMC,UAA+C,GAAGA,CAAC;EACvDC,IAAI;EACJC,KAAK;EACLC,KAAK;EACLC,MAAM;EACNC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,MAAM;IAAEC,YAAY,EAAEC;EAAkB,CAAC,GAAGX,QAAQ,CAAC,CAAC;EAEtD,MAAMY,aAAmC,GAAG;IAC1C,GAAGb,KAAK,CAACc,gBAAgB;IACzB,GAAGX,kBAAkB,CAACK,MAAM,IAAIN,UAAU,CAACa,OAAO,CAAC;IACnDT,KAAK,EAAEA,KAAK,IAAIM,iBAAiB,CAACI;EACpC,CAAC;EAED,oBACElB,KAAA,CAAAmB,aAAA,CAAClB,IAAI,EAAAmB,QAAA,KAAKR,IAAI;IAAEH,KAAK,EAAE,CAACM,aAAa,EAAEN,KAAK;EAAE,IAC3CF,IAAI,IAAII,QACL,CAAC;AAEX,CAAC;AAED,eAAeL,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["LargeTitle"],"sourceRoot":"../../../../../src","sources":["components/typographies/LargeTitle/index.ts"],"mappings":"AAAA,OAAOA,UAAU,MAAM,cAAc;AAErC,SAASA,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Typographies
|
|
2
|
+
> The typographies are based on the [Human Interface Guidelines](https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/typography/) by Apple 🍎
|
|
3
|
+
|
|
4
|
+
- [LargeTitle](src/components/typographies/LargeTitle)
|
|
5
|
+
- [TitleOne](src/components/typographies/TitleOne)
|
|
6
|
+
- [TitleTwo](src/components/typographies/TitleTwo)
|
|
7
|
+
- [TitleThree](src/components/typographies/TitleThree)
|
|
8
|
+
- [Headline](src/components/typographies/Headline)
|
|
9
|
+
- [Body](src/components/typographies/Body)
|
|
10
|
+
- [Callout](src/components/typographies/Callout)
|
|
11
|
+
- [Subhead](src/components/typographies/Subhead)
|
|
12
|
+
- [Footnote](src/components/typographies/Footnote)
|
|
13
|
+
- [CaptionOne](src/components/typographies/CaptionOne)
|
|
14
|
+
- [CaptionTwo](src/components/typographies/CaptionTwo)
|
|
15
|
+
|
|
16
|
+
## Preview
|
|
17
|
+
|
|
18
|
+

|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
Please refer to the stories for the usage: [storybook/stories/typographies](../../../storybook/stories/typographies)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
// @ts-ignore TS6133
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Text } from 'react-native';
|
|
5
|
+
import { human } from 'react-native-typography';
|
|
6
|
+
import { useTheme } from '../../../hooks/useTheme';
|
|
7
|
+
import { FontWeight, retrieveFontWeight } from '../font';
|
|
8
|
+
const Subhead = ({
|
|
9
|
+
text,
|
|
10
|
+
color,
|
|
11
|
+
style,
|
|
12
|
+
weight,
|
|
13
|
+
children,
|
|
14
|
+
...rest
|
|
15
|
+
}) => {
|
|
16
|
+
const {
|
|
17
|
+
typographies: typographiesTheme
|
|
18
|
+
} = useTheme();
|
|
19
|
+
const composedStyle = {
|
|
20
|
+
...human.subheadObject,
|
|
21
|
+
...retrieveFontWeight(weight || FontWeight.REGULAR),
|
|
22
|
+
color: color || typographiesTheme.subheadColor
|
|
23
|
+
};
|
|
24
|
+
return /*#__PURE__*/React.createElement(Text, _extends({}, rest, {
|
|
25
|
+
style: [composedStyle, style]
|
|
26
|
+
}), text || children);
|
|
27
|
+
};
|
|
28
|
+
export default Subhead;
|
|
29
|
+
//# sourceMappingURL=Subhead.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Text","human","useTheme","FontWeight","retrieveFontWeight","Subhead","text","color","style","weight","children","rest","typographies","typographiesTheme","composedStyle","subheadObject","REGULAR","subheadColor","createElement","_extends"],"sourceRoot":"../../../../../src","sources":["components/typographies/Subhead/Subhead.tsx"],"mappings":";AAAA;AACA,OAAOA,KAAK,MAA6B,OAAO;AAChD,SAAoBC,IAAI,QAA8B,cAAc;AACpE,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SAASC,QAAQ,QAAQ,yBAAyB;AAClD,SAASC,UAAU,EAAEC,kBAAkB,QAAQ,SAAS;AASxD,MAAMC,OAAyC,GAAGA,CAAC;EACjDC,IAAI;EACJC,KAAK;EACLC,KAAK;EACLC,MAAM;EACNC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,MAAM;IAAEC,YAAY,EAAEC;EAAkB,CAAC,GAAGX,QAAQ,CAAC,CAAC;EAEtD,MAAMY,aAAmC,GAAG;IAC1C,GAAGb,KAAK,CAACc,aAAa;IACtB,GAAGX,kBAAkB,CAACK,MAAM,IAAIN,UAAU,CAACa,OAAO,CAAC;IACnDT,KAAK,EAAEA,KAAK,IAAIM,iBAAiB,CAACI;EACpC,CAAC;EAED,oBACElB,KAAA,CAAAmB,aAAA,CAAClB,IAAI,EAAAmB,QAAA,KAAKR,IAAI;IAAEH,KAAK,EAAE,CAACM,aAAa,EAAEN,KAAK;EAAE,IAC3CF,IAAI,IAAII,QACL,CAAC;AAEX,CAAC;AAED,eAAeL,OAAO","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Subhead"],"sourceRoot":"../../../../../src","sources":["components/typographies/Subhead/index.ts"],"mappings":"AAAA,OAAOA,OAAO,MAAM,WAAW;AAE/B,SAASA,OAAO","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
// @ts-ignore TS6133
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Text } from 'react-native';
|
|
5
|
+
import { human } from 'react-native-typography';
|
|
6
|
+
import { useTheme } from '../../../hooks/useTheme';
|
|
7
|
+
import { FontWeight, retrieveFontWeight } from '../font';
|
|
8
|
+
const TitleOne = ({
|
|
9
|
+
text,
|
|
10
|
+
color,
|
|
11
|
+
style,
|
|
12
|
+
weight,
|
|
13
|
+
children,
|
|
14
|
+
...rest
|
|
15
|
+
}) => {
|
|
16
|
+
const {
|
|
17
|
+
typographies: typographiesTheme
|
|
18
|
+
} = useTheme();
|
|
19
|
+
const composedStyle = {
|
|
20
|
+
...human.title1Object,
|
|
21
|
+
...retrieveFontWeight(weight || FontWeight.REGULAR),
|
|
22
|
+
color: color || typographiesTheme.titleOneColor
|
|
23
|
+
};
|
|
24
|
+
return /*#__PURE__*/React.createElement(Text, _extends({}, rest, {
|
|
25
|
+
style: [composedStyle, style]
|
|
26
|
+
}), text || children);
|
|
27
|
+
};
|
|
28
|
+
export default TitleOne;
|
|
29
|
+
//# sourceMappingURL=TitleOne.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Text","human","useTheme","FontWeight","retrieveFontWeight","TitleOne","text","color","style","weight","children","rest","typographies","typographiesTheme","composedStyle","title1Object","REGULAR","titleOneColor","createElement","_extends"],"sourceRoot":"../../../../../src","sources":["components/typographies/TitleOne/TitleOne.tsx"],"mappings":";AAAA;AACA,OAAOA,KAAK,MAA6B,OAAO;AAChD,SAAoBC,IAAI,QAA8B,cAAc;AACpE,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SAASC,QAAQ,QAAQ,yBAAyB;AAClD,SAASC,UAAU,EAAEC,kBAAkB,QAAQ,SAAS;AASxD,MAAMC,QAA2C,GAAGA,CAAC;EACnDC,IAAI;EACJC,KAAK;EACLC,KAAK;EACLC,MAAM;EACNC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,MAAM;IAAEC,YAAY,EAAEC;EAAkB,CAAC,GAAGX,QAAQ,CAAC,CAAC;EAEtD,MAAMY,aAAmC,GAAG;IAC1C,GAAGb,KAAK,CAACc,YAAY;IACrB,GAAGX,kBAAkB,CAACK,MAAM,IAAIN,UAAU,CAACa,OAAO,CAAC;IACnDT,KAAK,EAAEA,KAAK,IAAIM,iBAAiB,CAACI;EACpC,CAAC;EAED,oBACElB,KAAA,CAAAmB,aAAA,CAAClB,IAAI,EAAAmB,QAAA,KAAKR,IAAI;IAAEH,KAAK,EAAE,CAACM,aAAa,EAAEN,KAAK;EAAE,IAC3CF,IAAI,IAAII,QACL,CAAC;AAEX,CAAC;AAED,eAAeL,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TitleOne"],"sourceRoot":"../../../../../src","sources":["components/typographies/TitleOne/index.ts"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,YAAY;AAEjC,SAASA,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
// @ts-ignore TS6133
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Text } from 'react-native';
|
|
5
|
+
import { human } from 'react-native-typography';
|
|
6
|
+
import { useTheme } from '../../../hooks/useTheme';
|
|
7
|
+
import { FontWeight, retrieveFontWeight } from '../font';
|
|
8
|
+
const TitleThree = ({
|
|
9
|
+
text,
|
|
10
|
+
color,
|
|
11
|
+
style,
|
|
12
|
+
weight,
|
|
13
|
+
children,
|
|
14
|
+
...rest
|
|
15
|
+
}) => {
|
|
16
|
+
const {
|
|
17
|
+
typographies: typographiesTheme
|
|
18
|
+
} = useTheme();
|
|
19
|
+
const composedStyle = {
|
|
20
|
+
...human.title3Object,
|
|
21
|
+
...retrieveFontWeight(weight || FontWeight.REGULAR),
|
|
22
|
+
color: color || typographiesTheme.titleTwoColor
|
|
23
|
+
};
|
|
24
|
+
return /*#__PURE__*/React.createElement(Text, _extends({}, rest, {
|
|
25
|
+
style: [composedStyle, style]
|
|
26
|
+
}), text || children);
|
|
27
|
+
};
|
|
28
|
+
export default TitleThree;
|
|
29
|
+
//# sourceMappingURL=TitleThree.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Text","human","useTheme","FontWeight","retrieveFontWeight","TitleThree","text","color","style","weight","children","rest","typographies","typographiesTheme","composedStyle","title3Object","REGULAR","titleTwoColor","createElement","_extends"],"sourceRoot":"../../../../../src","sources":["components/typographies/TitleThree/TitleThree.tsx"],"mappings":";AAAA;AACA,OAAOA,KAAK,MAA6B,OAAO;AAChD,SAAoBC,IAAI,QAA8B,cAAc;AACpE,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SAASC,QAAQ,QAAQ,yBAAyB;AAClD,SAASC,UAAU,EAAEC,kBAAkB,QAAQ,SAAS;AASxD,MAAMC,UAA+C,GAAGA,CAAC;EACvDC,IAAI;EACJC,KAAK;EACLC,KAAK;EACLC,MAAM;EACNC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,MAAM;IAAEC,YAAY,EAAEC;EAAkB,CAAC,GAAGX,QAAQ,CAAC,CAAC;EAEtD,MAAMY,aAAmC,GAAG;IAC1C,GAAGb,KAAK,CAACc,YAAY;IACrB,GAAGX,kBAAkB,CAACK,MAAM,IAAIN,UAAU,CAACa,OAAO,CAAC;IACnDT,KAAK,EAAEA,KAAK,IAAIM,iBAAiB,CAACI;EACpC,CAAC;EAED,oBACElB,KAAA,CAAAmB,aAAA,CAAClB,IAAI,EAAAmB,QAAA,KAAKR,IAAI;IAAEH,KAAK,EAAE,CAACM,aAAa,EAAEN,KAAK;EAAE,IAC3CF,IAAI,IAAII,QACL,CAAC;AAEX,CAAC;AAED,eAAeL,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TitleThree"],"sourceRoot":"../../../../../src","sources":["components/typographies/TitleThree/index.ts"],"mappings":"AAAA,OAAOA,UAAU,MAAM,cAAc;AAErC,SAASA,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
// @ts-ignore TS6133
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Text } from 'react-native';
|
|
5
|
+
import { human } from 'react-native-typography';
|
|
6
|
+
import { useTheme } from '../../../hooks/useTheme';
|
|
7
|
+
import { FontWeight, retrieveFontWeight } from '../font';
|
|
8
|
+
const TitleTwo = ({
|
|
9
|
+
text,
|
|
10
|
+
color,
|
|
11
|
+
style,
|
|
12
|
+
weight,
|
|
13
|
+
children,
|
|
14
|
+
...rest
|
|
15
|
+
}) => {
|
|
16
|
+
const {
|
|
17
|
+
typographies: typographiesTheme
|
|
18
|
+
} = useTheme();
|
|
19
|
+
const composedStyle = {
|
|
20
|
+
...human.title2Object,
|
|
21
|
+
...retrieveFontWeight(weight || FontWeight.REGULAR),
|
|
22
|
+
color: color || typographiesTheme.titleThreeColor
|
|
23
|
+
};
|
|
24
|
+
return /*#__PURE__*/React.createElement(Text, _extends({}, rest, {
|
|
25
|
+
style: [composedStyle, style]
|
|
26
|
+
}), text || children);
|
|
27
|
+
};
|
|
28
|
+
export default TitleTwo;
|
|
29
|
+
//# sourceMappingURL=TitleTwo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Text","human","useTheme","FontWeight","retrieveFontWeight","TitleTwo","text","color","style","weight","children","rest","typographies","typographiesTheme","composedStyle","title2Object","REGULAR","titleThreeColor","createElement","_extends"],"sourceRoot":"../../../../../src","sources":["components/typographies/TitleTwo/TitleTwo.tsx"],"mappings":";AAAA;AACA,OAAOA,KAAK,MAA6B,OAAO;AAChD,SAAoBC,IAAI,QAA8B,cAAc;AACpE,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SAASC,QAAQ,QAAQ,yBAAyB;AAClD,SAASC,UAAU,EAAEC,kBAAkB,QAAQ,SAAS;AASxD,MAAMC,QAA2C,GAAGA,CAAC;EACnDC,IAAI;EACJC,KAAK;EACLC,KAAK;EACLC,MAAM;EACNC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,MAAM;IAAEC,YAAY,EAAEC;EAAkB,CAAC,GAAGX,QAAQ,CAAC,CAAC;EAEtD,MAAMY,aAAmC,GAAG;IAC1C,GAAGb,KAAK,CAACc,YAAY;IACrB,GAAGX,kBAAkB,CAACK,MAAM,IAAIN,UAAU,CAACa,OAAO,CAAC;IACnDT,KAAK,EAAEA,KAAK,IAAIM,iBAAiB,CAACI;EACpC,CAAC;EAED,oBACElB,KAAA,CAAAmB,aAAA,CAAClB,IAAI,EAAAmB,QAAA,KAAKR,IAAI;IAAEH,KAAK,EAAE,CAACM,aAAa,EAAEN,KAAK;EAAE,IAC3CF,IAAI,IAAII,QACL,CAAC;AAEX,CAAC;AAED,eAAeL,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TitleTwo"],"sourceRoot":"../../../../../src","sources":["components/typographies/TitleTwo/index.ts"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,YAAY;AAEjC,SAASA,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { systemWeights } from 'react-native-typography';
|
|
2
|
+
export let FontWeight = /*#__PURE__*/function (FontWeight) {
|
|
3
|
+
FontWeight["THIN"] = "thin";
|
|
4
|
+
FontWeight["LIGHT"] = "light";
|
|
5
|
+
FontWeight["REGULAR"] = "regular";
|
|
6
|
+
FontWeight["SEMIBOLD"] = "semibold";
|
|
7
|
+
FontWeight["BOLD"] = "bold";
|
|
8
|
+
return FontWeight;
|
|
9
|
+
}({});
|
|
10
|
+
export function retrieveFontWeight(weight) {
|
|
11
|
+
switch (weight) {
|
|
12
|
+
case FontWeight.THIN:
|
|
13
|
+
return systemWeights.thin;
|
|
14
|
+
case FontWeight.LIGHT:
|
|
15
|
+
return systemWeights.light;
|
|
16
|
+
default:
|
|
17
|
+
case FontWeight.REGULAR:
|
|
18
|
+
return systemWeights.regular;
|
|
19
|
+
case FontWeight.SEMIBOLD:
|
|
20
|
+
return systemWeights.semibold;
|
|
21
|
+
case FontWeight.BOLD:
|
|
22
|
+
return systemWeights.bold;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
;
|
|
26
|
+
//# sourceMappingURL=font.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["systemWeights","FontWeight","retrieveFontWeight","weight","THIN","thin","LIGHT","light","REGULAR","regular","SEMIBOLD","semibold","BOLD","bold"],"sourceRoot":"../../../../src","sources":["components/typographies/font.ts"],"mappings":"AAAA,SAASA,aAAa,QAAQ,yBAAyB;AAEvD,WAAYC,UAAU,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAQtB,OAAO,SAASC,kBAAkBA,CAACC,MAAkB,EAAE;EACnD,QAAQA,MAAM;IACV,KAAKF,UAAU,CAACG,IAAI;MAChB,OAAOJ,aAAa,CAACK,IAAI;IAC7B,KAAKJ,UAAU,CAACK,KAAK;MACjB,OAAON,aAAa,CAACO,KAAK;IAC9B;IACA,KAAKN,UAAU,CAACO,OAAO;MACnB,OAAOR,aAAa,CAACS,OAAO;IAChC,KAAKR,UAAU,CAACS,QAAQ;MACpB,OAAOV,aAAa,CAACW,QAAQ;IACjC,KAAKV,UAAU,CAACW,IAAI;MAChB,OAAOZ,aAAa,CAACa,IAAI;EACjC;AACJ;AAAC","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ThemeContext } from '../providers/ThemeProvider/ThemeProvider';
|
|
3
|
+
// export const DSThemeContext = createContext<{
|
|
4
|
+
// setTheme: (theme: ThemeProps) => void;
|
|
5
|
+
// }>({
|
|
6
|
+
// setTheme: ({}) => {},
|
|
7
|
+
// });
|
|
8
|
+
|
|
9
|
+
export const useTheme = () => {
|
|
10
|
+
const context = React.useContext(ThemeContext);
|
|
11
|
+
if (!context) {
|
|
12
|
+
throw new Error('useTheme must be used within a ThemeProvider');
|
|
13
|
+
}
|
|
14
|
+
return context;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=useTheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ThemeContext","useTheme","context","useContext","Error"],"sourceRoot":"../../../src","sources":["hooks/useTheme.ts"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,YAAY,QAAQ,0CAA0C;AAGvE;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMC,QAAQ,GAAGA,CAAA,KAAM;EAC5B,MAAMC,OAAO,GAAGH,KAAK,CAACI,UAAU,CAAQH,YAAY,CAAC;EACrD,IAAI,CAACE,OAAO,EAAE;IACZ,MAAM,IAAIE,KAAK,CAAC,8CAA8C,CAAC;EACjE;EACA,OAAOF,OAAO;AAChB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { DatePicker } from './components/base/DatePicker';
|
|
2
|
+
export { FicButton } from './components/buttons/FicButton';
|
|
3
|
+
export { FicButtonGroup } from './components/buttons/FicButtonGroup';
|
|
4
|
+
export { Banner } from './components/notifications/Banner';
|
|
5
|
+
export { Tag } from './components/Tag';
|
|
6
|
+
export { Touchable } from './components/Touchable';
|
|
7
|
+
export { Body } from './components/typographies/Body';
|
|
8
|
+
export { ButtonTitle } from './components/typographies/ButtonTitle';
|
|
9
|
+
export { Callout } from './components/typographies/Callout';
|
|
10
|
+
export { CaptionOne } from './components/typographies/CaptionOne';
|
|
11
|
+
export { CaptionTwo } from './components/typographies/CaptionTwo';
|
|
12
|
+
export { Footnote } from './components/typographies/Footnote';
|
|
13
|
+
export { Headline } from './components/typographies/Headline';
|
|
14
|
+
export { LargeTitle } from './components/typographies/LargeTitle';
|
|
15
|
+
export { Subhead } from './components/typographies/Subhead';
|
|
16
|
+
export { TitleOne } from './components/typographies/TitleOne';
|
|
17
|
+
export { TitleThree } from './components/typographies/TitleThree';
|
|
18
|
+
export { TitleTwo } from './components/typographies/TitleTwo';
|
|
19
|
+
export { DesignSystemProvider } from './providers/DesignSystemProvider';
|
|
20
|
+
export { Icon, IconProvider } from './providers/IconProvider';
|
|
21
|
+
export { FontWeight, retrieveFontWeight } from './components/typographies/font';
|
|
22
|
+
export { Colors } from './styles/colors';
|
|
23
|
+
export { defaultTheme, ficDarkTheme, ficTheme } from './styles/theme';
|
|
24
|
+
export { default as setLocale } from './utils/locale';
|
|
25
|
+
export { useTheme } from './hooks/useTheme';
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DatePicker","FicButton","FicButtonGroup","Banner","Tag","Touchable","Body","ButtonTitle","Callout","CaptionOne","CaptionTwo","Footnote","Headline","LargeTitle","Subhead","TitleOne","TitleThree","TitleTwo","DesignSystemProvider","Icon","IconProvider","FontWeight","retrieveFontWeight","Colors","defaultTheme","ficDarkTheme","ficTheme","default","setLocale","useTheme"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,SAASA,UAAU,QAAQ,8BAA8B;AACzD,SAASC,SAAS,QAAQ,gCAAgC;AAC1D,SAASC,cAAc,QAAQ,qCAAqC;AACpE,SAASC,MAAM,QAAQ,mCAAmC;AAC1D,SAASC,GAAG,QAAQ,kBAAkB;AACtC,SAASC,SAAS,QAAQ,wBAAwB;AAClD,SAASC,IAAI,QAAQ,gCAAgC;AACrD,SAASC,WAAW,QAAQ,uCAAuC;AACnE,SAASC,OAAO,QAAQ,mCAAmC;AAC3D,SAASC,UAAU,QAAQ,sCAAsC;AACjE,SAASC,UAAU,QAAQ,sCAAsC;AACjE,SAASC,QAAQ,QAAQ,oCAAoC;AAC7D,SAASC,QAAQ,QAAQ,oCAAoC;AAC7D,SAASC,UAAU,QAAQ,sCAAsC;AACjE,SAASC,OAAO,QAAQ,mCAAmC;AAC3D,SAASC,QAAQ,QAAQ,oCAAoC;AAC7D,SAASC,UAAU,QAAQ,sCAAsC;AACjE,SAASC,QAAQ,QAAQ,oCAAoC;AAC7D,SAASC,oBAAoB,QAAQ,kCAAkC;AACvE,SAASC,IAAI,EAAEC,YAAY,QAAQ,0BAA0B;AAI7D,SAASC,UAAU,EAAEC,kBAAkB,QAAQ,gCAAgC;AAC/E,SAASC,MAAM,QAAQ,iBAAiB;AACxC,SACEC,YAAY,EACZC,YAAY,EACZC,QAAQ,QAGH,gBAAgB;AAEvB,SAASC,OAAO,IAAIC,SAAS,QAAQ,gBAAgB;AAarD,SAASC,QAAQ,QAAQ,kBAAkB","ignoreList":[]}
|