@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,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeTypography = require("react-native-typography");
|
|
10
|
+
var _useTheme = require("../../../hooks/useTheme");
|
|
11
|
+
var _font = require("../font");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
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); } // @ts-ignore TS6133
|
|
14
|
+
const CaptionTwo = ({
|
|
15
|
+
text,
|
|
16
|
+
color,
|
|
17
|
+
style,
|
|
18
|
+
weight,
|
|
19
|
+
children,
|
|
20
|
+
...rest
|
|
21
|
+
}) => {
|
|
22
|
+
const {
|
|
23
|
+
typographies: typographiesTheme
|
|
24
|
+
} = (0, _useTheme.useTheme)();
|
|
25
|
+
const composedStyle = {
|
|
26
|
+
..._reactNativeTypography.human.caption2Object,
|
|
27
|
+
...(0, _font.retrieveFontWeight)(weight || _font.FontWeight.REGULAR),
|
|
28
|
+
color: color || typographiesTheme.captionTwoColor
|
|
29
|
+
};
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.Text, _extends({}, rest, {
|
|
31
|
+
style: [composedStyle, style]
|
|
32
|
+
}), text || children);
|
|
33
|
+
};
|
|
34
|
+
var _default = exports.default = CaptionTwo;
|
|
35
|
+
//# sourceMappingURL=CaptionTwo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeTypography","_useTheme","_font","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","CaptionTwo","text","color","style","weight","children","rest","typographies","typographiesTheme","useTheme","composedStyle","human","caption2Object","retrieveFontWeight","FontWeight","REGULAR","captionTwoColor","createElement","Text","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/typographies/CaptionTwo/CaptionTwo.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAAyD,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA,KALzD;AAcA,MAAMO,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,GAAG,IAAAC,kBAAQ,EAAC,CAAC;EAEtD,MAAMC,aAAmC,GAAG;IAC1C,GAAGC,4BAAK,CAACC,cAAc;IACvB,GAAG,IAAAC,wBAAkB,EAACT,MAAM,IAAIU,gBAAU,CAACC,OAAO,CAAC;IACnDb,KAAK,EAAEA,KAAK,IAAIM,iBAAiB,CAACQ;EACpC,CAAC;EAED,oBACEtC,MAAA,CAAAS,OAAA,CAAA8B,aAAA,CAACpC,YAAA,CAAAqC,IAAI,EAAA9B,QAAA,KAAKkB,IAAI;IAAEH,KAAK,EAAE,CAACO,aAAa,EAAEP,KAAK;EAAE,IAC3CF,IAAI,IAAII,QACL,CAAC;AAEX,CAAC;AAAC,IAAAc,QAAA,GAAAC,OAAA,CAAAjC,OAAA,GAEaa,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "CaptionTwo", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _CaptionTwo.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _CaptionTwo = _interopRequireDefault(require("./CaptionTwo"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_CaptionTwo","_interopRequireDefault","require","e","__esModule","default"],"sourceRoot":"../../../../../src","sources":["components/typographies/CaptionTwo/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAsC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeTypography = require("react-native-typography");
|
|
10
|
+
var _useTheme = require("../../../hooks/useTheme");
|
|
11
|
+
var _font = require("../font");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
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); } // @ts-ignore TS6133
|
|
14
|
+
const Footnote = ({
|
|
15
|
+
text,
|
|
16
|
+
color,
|
|
17
|
+
style,
|
|
18
|
+
weight,
|
|
19
|
+
children,
|
|
20
|
+
...rest
|
|
21
|
+
}) => {
|
|
22
|
+
const {
|
|
23
|
+
typographies: typographiesTheme
|
|
24
|
+
} = (0, _useTheme.useTheme)();
|
|
25
|
+
const composedStyle = {
|
|
26
|
+
..._reactNativeTypography.human.footnoteObject,
|
|
27
|
+
...(0, _font.retrieveFontWeight)(weight || _font.FontWeight.REGULAR),
|
|
28
|
+
color: color || typographiesTheme.footnoteColor
|
|
29
|
+
};
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.Text, _extends({}, rest, {
|
|
31
|
+
style: [composedStyle, style]
|
|
32
|
+
}), text || children);
|
|
33
|
+
};
|
|
34
|
+
var _default = exports.default = Footnote;
|
|
35
|
+
//# sourceMappingURL=Footnote.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeTypography","_useTheme","_font","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","Footnote","text","color","style","weight","children","rest","typographies","typographiesTheme","useTheme","composedStyle","human","footnoteObject","retrieveFontWeight","FontWeight","REGULAR","footnoteColor","createElement","Text","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/typographies/Footnote/Footnote.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAAyD,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA,KALzD;AAcA,MAAMO,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,GAAG,IAAAC,kBAAQ,EAAC,CAAC;EAEtD,MAAMC,aAAmC,GAAG;IAC1C,GAAGC,4BAAK,CAACC,cAAc;IACvB,GAAG,IAAAC,wBAAkB,EAACT,MAAM,IAAIU,gBAAU,CAACC,OAAO,CAAC;IACnDb,KAAK,EAAEA,KAAK,IAAIM,iBAAiB,CAACQ;EACpC,CAAC;EAED,oBACEtC,MAAA,CAAAS,OAAA,CAAA8B,aAAA,CAACpC,YAAA,CAAAqC,IAAI,EAAA9B,QAAA,KAAKkB,IAAI;IAAEH,KAAK,EAAE,CAACO,aAAa,EAAEP,KAAK;EAAE,IAC3CF,IAAI,IAAII,QACL,CAAC;AAEX,CAAC;AAAC,IAAAc,QAAA,GAAAC,OAAA,CAAAjC,OAAA,GAEaa,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Footnote", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Footnote.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Footnote = _interopRequireDefault(require("./Footnote"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_Footnote","_interopRequireDefault","require","e","__esModule","default"],"sourceRoot":"../../../../../src","sources":["components/typographies/Footnote/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAkC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeTypography = require("react-native-typography");
|
|
10
|
+
var _useTheme = require("../../../hooks/useTheme");
|
|
11
|
+
var _font = require("../font");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
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); } // @ts-ignore TS6133
|
|
14
|
+
const Headline = ({
|
|
15
|
+
text,
|
|
16
|
+
color,
|
|
17
|
+
style,
|
|
18
|
+
weight,
|
|
19
|
+
children,
|
|
20
|
+
...rest
|
|
21
|
+
}) => {
|
|
22
|
+
const {
|
|
23
|
+
typographies: typographiesTheme
|
|
24
|
+
} = (0, _useTheme.useTheme)();
|
|
25
|
+
const composedStyle = {
|
|
26
|
+
..._reactNativeTypography.human.headlineObject,
|
|
27
|
+
...(0, _font.retrieveFontWeight)(weight || _font.FontWeight.SEMIBOLD),
|
|
28
|
+
color: color || typographiesTheme.headlineColor
|
|
29
|
+
};
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.Text, _extends({}, rest, {
|
|
31
|
+
style: [composedStyle, style]
|
|
32
|
+
}), text || children);
|
|
33
|
+
};
|
|
34
|
+
var _default = exports.default = Headline;
|
|
35
|
+
//# sourceMappingURL=Headline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeTypography","_useTheme","_font","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","Headline","text","color","style","weight","children","rest","typographies","typographiesTheme","useTheme","composedStyle","human","headlineObject","retrieveFontWeight","FontWeight","SEMIBOLD","headlineColor","createElement","Text","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/typographies/Headline/Headline.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAAyD,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA,KALzD;AAcA,MAAMO,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,GAAG,IAAAC,kBAAQ,EAAC,CAAC;EAEtD,MAAMC,aAAmC,GAAG;IAC1C,GAAGC,4BAAK,CAACC,cAAc;IACvB,GAAG,IAAAC,wBAAkB,EAACT,MAAM,IAAIU,gBAAU,CAACC,QAAQ,CAAC;IACpDb,KAAK,EAAEA,KAAK,IAAIM,iBAAiB,CAACQ;EACpC,CAAC;EAED,oBACEtC,MAAA,CAAAS,OAAA,CAAA8B,aAAA,CAACpC,YAAA,CAAAqC,IAAI,EAAA9B,QAAA,KAAKkB,IAAI;IAAEH,KAAK,EAAE,CAACO,aAAa,EAAEP,KAAK;EAAE,IAC3CF,IAAI,IAAII,QACL,CAAC;AAEX,CAAC;AAAC,IAAAc,QAAA,GAAAC,OAAA,CAAAjC,OAAA,GAEaa,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Headline", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Headline.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Headline = _interopRequireDefault(require("./Headline"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_Headline","_interopRequireDefault","require","e","__esModule","default"],"sourceRoot":"../../../../../src","sources":["components/typographies/Headline/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAkC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeTypography = require("react-native-typography");
|
|
10
|
+
var _useTheme = require("../../../hooks/useTheme");
|
|
11
|
+
var _font = require("../font");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
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); } // @ts-ignore TS6133
|
|
14
|
+
const LargeTitle = ({
|
|
15
|
+
text,
|
|
16
|
+
color,
|
|
17
|
+
style,
|
|
18
|
+
weight,
|
|
19
|
+
children,
|
|
20
|
+
...rest
|
|
21
|
+
}) => {
|
|
22
|
+
const {
|
|
23
|
+
typographies: typographiesTheme
|
|
24
|
+
} = (0, _useTheme.useTheme)();
|
|
25
|
+
const composedStyle = {
|
|
26
|
+
..._reactNativeTypography.human.largeTitleObject,
|
|
27
|
+
...(0, _font.retrieveFontWeight)(weight || _font.FontWeight.REGULAR),
|
|
28
|
+
color: color || typographiesTheme.largeTitleColor
|
|
29
|
+
};
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.Text, _extends({}, rest, {
|
|
31
|
+
style: [composedStyle, style]
|
|
32
|
+
}), text || children);
|
|
33
|
+
};
|
|
34
|
+
var _default = exports.default = LargeTitle;
|
|
35
|
+
//# sourceMappingURL=LargeTitle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeTypography","_useTheme","_font","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","LargeTitle","text","color","style","weight","children","rest","typographies","typographiesTheme","useTheme","composedStyle","human","largeTitleObject","retrieveFontWeight","FontWeight","REGULAR","largeTitleColor","createElement","Text","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/typographies/LargeTitle/LargeTitle.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAAyD,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA,KALzD;AAcA,MAAMO,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,GAAG,IAAAC,kBAAQ,EAAC,CAAC;EAEtD,MAAMC,aAAmC,GAAG;IAC1C,GAAGC,4BAAK,CAACC,gBAAgB;IACzB,GAAG,IAAAC,wBAAkB,EAACT,MAAM,IAAIU,gBAAU,CAACC,OAAO,CAAC;IACnDb,KAAK,EAAEA,KAAK,IAAIM,iBAAiB,CAACQ;EACpC,CAAC;EAED,oBACEtC,MAAA,CAAAS,OAAA,CAAA8B,aAAA,CAACpC,YAAA,CAAAqC,IAAI,EAAA9B,QAAA,KAAKkB,IAAI;IAAEH,KAAK,EAAE,CAACO,aAAa,EAAEP,KAAK;EAAE,IAC3CF,IAAI,IAAII,QACL,CAAC;AAEX,CAAC;AAAC,IAAAc,QAAA,GAAAC,OAAA,CAAAjC,OAAA,GAEaa,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "LargeTitle", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _LargeTitle.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _LargeTitle = _interopRequireDefault(require("./LargeTitle"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_LargeTitle","_interopRequireDefault","require","e","__esModule","default"],"sourceRoot":"../../../../../src","sources":["components/typographies/LargeTitle/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAsC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","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,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeTypography = require("react-native-typography");
|
|
10
|
+
var _useTheme = require("../../../hooks/useTheme");
|
|
11
|
+
var _font = require("../font");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
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); } // @ts-ignore TS6133
|
|
14
|
+
const Subhead = ({
|
|
15
|
+
text,
|
|
16
|
+
color,
|
|
17
|
+
style,
|
|
18
|
+
weight,
|
|
19
|
+
children,
|
|
20
|
+
...rest
|
|
21
|
+
}) => {
|
|
22
|
+
const {
|
|
23
|
+
typographies: typographiesTheme
|
|
24
|
+
} = (0, _useTheme.useTheme)();
|
|
25
|
+
const composedStyle = {
|
|
26
|
+
..._reactNativeTypography.human.subheadObject,
|
|
27
|
+
...(0, _font.retrieveFontWeight)(weight || _font.FontWeight.REGULAR),
|
|
28
|
+
color: color || typographiesTheme.subheadColor
|
|
29
|
+
};
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.Text, _extends({}, rest, {
|
|
31
|
+
style: [composedStyle, style]
|
|
32
|
+
}), text || children);
|
|
33
|
+
};
|
|
34
|
+
var _default = exports.default = Subhead;
|
|
35
|
+
//# sourceMappingURL=Subhead.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeTypography","_useTheme","_font","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","Subhead","text","color","style","weight","children","rest","typographies","typographiesTheme","useTheme","composedStyle","human","subheadObject","retrieveFontWeight","FontWeight","REGULAR","subheadColor","createElement","Text","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/typographies/Subhead/Subhead.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAAyD,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA,KALzD;AAcA,MAAMO,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,GAAG,IAAAC,kBAAQ,EAAC,CAAC;EAEtD,MAAMC,aAAmC,GAAG;IAC1C,GAAGC,4BAAK,CAACC,aAAa;IACtB,GAAG,IAAAC,wBAAkB,EAACT,MAAM,IAAIU,gBAAU,CAACC,OAAO,CAAC;IACnDb,KAAK,EAAEA,KAAK,IAAIM,iBAAiB,CAACQ;EACpC,CAAC;EAED,oBACEtC,MAAA,CAAAS,OAAA,CAAA8B,aAAA,CAACpC,YAAA,CAAAqC,IAAI,EAAA9B,QAAA,KAAKkB,IAAI;IAAEH,KAAK,EAAE,CAACO,aAAa,EAAEP,KAAK;EAAE,IAC3CF,IAAI,IAAII,QACL,CAAC;AAEX,CAAC;AAAC,IAAAc,QAAA,GAAAC,OAAA,CAAAjC,OAAA,GAEaa,OAAO","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Subhead", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Subhead.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Subhead = _interopRequireDefault(require("./Subhead"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_Subhead","_interopRequireDefault","require","e","__esModule","default"],"sourceRoot":"../../../../../src","sources":["components/typographies/Subhead/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAgC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeTypography = require("react-native-typography");
|
|
10
|
+
var _useTheme = require("../../../hooks/useTheme");
|
|
11
|
+
var _font = require("../font");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
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); } // @ts-ignore TS6133
|
|
14
|
+
const TitleOne = ({
|
|
15
|
+
text,
|
|
16
|
+
color,
|
|
17
|
+
style,
|
|
18
|
+
weight,
|
|
19
|
+
children,
|
|
20
|
+
...rest
|
|
21
|
+
}) => {
|
|
22
|
+
const {
|
|
23
|
+
typographies: typographiesTheme
|
|
24
|
+
} = (0, _useTheme.useTheme)();
|
|
25
|
+
const composedStyle = {
|
|
26
|
+
..._reactNativeTypography.human.title1Object,
|
|
27
|
+
...(0, _font.retrieveFontWeight)(weight || _font.FontWeight.REGULAR),
|
|
28
|
+
color: color || typographiesTheme.titleOneColor
|
|
29
|
+
};
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.Text, _extends({}, rest, {
|
|
31
|
+
style: [composedStyle, style]
|
|
32
|
+
}), text || children);
|
|
33
|
+
};
|
|
34
|
+
var _default = exports.default = TitleOne;
|
|
35
|
+
//# sourceMappingURL=TitleOne.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeTypography","_useTheme","_font","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","TitleOne","text","color","style","weight","children","rest","typographies","typographiesTheme","useTheme","composedStyle","human","title1Object","retrieveFontWeight","FontWeight","REGULAR","titleOneColor","createElement","Text","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/typographies/TitleOne/TitleOne.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAAyD,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA,KALzD;AAcA,MAAMO,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,GAAG,IAAAC,kBAAQ,EAAC,CAAC;EAEtD,MAAMC,aAAmC,GAAG;IAC1C,GAAGC,4BAAK,CAACC,YAAY;IACrB,GAAG,IAAAC,wBAAkB,EAACT,MAAM,IAAIU,gBAAU,CAACC,OAAO,CAAC;IACnDb,KAAK,EAAEA,KAAK,IAAIM,iBAAiB,CAACQ;EACpC,CAAC;EAED,oBACEtC,MAAA,CAAAS,OAAA,CAAA8B,aAAA,CAACpC,YAAA,CAAAqC,IAAI,EAAA9B,QAAA,KAAKkB,IAAI;IAAEH,KAAK,EAAE,CAACO,aAAa,EAAEP,KAAK;EAAE,IAC3CF,IAAI,IAAII,QACL,CAAC;AAEX,CAAC;AAAC,IAAAc,QAAA,GAAAC,OAAA,CAAAjC,OAAA,GAEaa,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "TitleOne", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _TitleOne.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _TitleOne = _interopRequireDefault(require("./TitleOne"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_TitleOne","_interopRequireDefault","require","e","__esModule","default"],"sourceRoot":"../../../../../src","sources":["components/typographies/TitleOne/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAkC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeTypography = require("react-native-typography");
|
|
10
|
+
var _useTheme = require("../../../hooks/useTheme");
|
|
11
|
+
var _font = require("../font");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
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); } // @ts-ignore TS6133
|
|
14
|
+
const TitleThree = ({
|
|
15
|
+
text,
|
|
16
|
+
color,
|
|
17
|
+
style,
|
|
18
|
+
weight,
|
|
19
|
+
children,
|
|
20
|
+
...rest
|
|
21
|
+
}) => {
|
|
22
|
+
const {
|
|
23
|
+
typographies: typographiesTheme
|
|
24
|
+
} = (0, _useTheme.useTheme)();
|
|
25
|
+
const composedStyle = {
|
|
26
|
+
..._reactNativeTypography.human.title3Object,
|
|
27
|
+
...(0, _font.retrieveFontWeight)(weight || _font.FontWeight.REGULAR),
|
|
28
|
+
color: color || typographiesTheme.titleTwoColor
|
|
29
|
+
};
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.Text, _extends({}, rest, {
|
|
31
|
+
style: [composedStyle, style]
|
|
32
|
+
}), text || children);
|
|
33
|
+
};
|
|
34
|
+
var _default = exports.default = TitleThree;
|
|
35
|
+
//# sourceMappingURL=TitleThree.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeTypography","_useTheme","_font","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","TitleThree","text","color","style","weight","children","rest","typographies","typographiesTheme","useTheme","composedStyle","human","title3Object","retrieveFontWeight","FontWeight","REGULAR","titleTwoColor","createElement","Text","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/typographies/TitleThree/TitleThree.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAAyD,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA,KALzD;AAcA,MAAMO,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,GAAG,IAAAC,kBAAQ,EAAC,CAAC;EAEtD,MAAMC,aAAmC,GAAG;IAC1C,GAAGC,4BAAK,CAACC,YAAY;IACrB,GAAG,IAAAC,wBAAkB,EAACT,MAAM,IAAIU,gBAAU,CAACC,OAAO,CAAC;IACnDb,KAAK,EAAEA,KAAK,IAAIM,iBAAiB,CAACQ;EACpC,CAAC;EAED,oBACEtC,MAAA,CAAAS,OAAA,CAAA8B,aAAA,CAACpC,YAAA,CAAAqC,IAAI,EAAA9B,QAAA,KAAKkB,IAAI;IAAEH,KAAK,EAAE,CAACO,aAAa,EAAEP,KAAK;EAAE,IAC3CF,IAAI,IAAII,QACL,CAAC;AAEX,CAAC;AAAC,IAAAc,QAAA,GAAAC,OAAA,CAAAjC,OAAA,GAEaa,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "TitleThree", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _TitleThree.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _TitleThree = _interopRequireDefault(require("./TitleThree"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_TitleThree","_interopRequireDefault","require","e","__esModule","default"],"sourceRoot":"../../../../../src","sources":["components/typographies/TitleThree/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAsC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeTypography = require("react-native-typography");
|
|
10
|
+
var _useTheme = require("../../../hooks/useTheme");
|
|
11
|
+
var _font = require("../font");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
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); } // @ts-ignore TS6133
|
|
14
|
+
const TitleTwo = ({
|
|
15
|
+
text,
|
|
16
|
+
color,
|
|
17
|
+
style,
|
|
18
|
+
weight,
|
|
19
|
+
children,
|
|
20
|
+
...rest
|
|
21
|
+
}) => {
|
|
22
|
+
const {
|
|
23
|
+
typographies: typographiesTheme
|
|
24
|
+
} = (0, _useTheme.useTheme)();
|
|
25
|
+
const composedStyle = {
|
|
26
|
+
..._reactNativeTypography.human.title2Object,
|
|
27
|
+
...(0, _font.retrieveFontWeight)(weight || _font.FontWeight.REGULAR),
|
|
28
|
+
color: color || typographiesTheme.titleThreeColor
|
|
29
|
+
};
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.Text, _extends({}, rest, {
|
|
31
|
+
style: [composedStyle, style]
|
|
32
|
+
}), text || children);
|
|
33
|
+
};
|
|
34
|
+
var _default = exports.default = TitleTwo;
|
|
35
|
+
//# sourceMappingURL=TitleTwo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeTypography","_useTheme","_font","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","TitleTwo","text","color","style","weight","children","rest","typographies","typographiesTheme","useTheme","composedStyle","human","title2Object","retrieveFontWeight","FontWeight","REGULAR","titleThreeColor","createElement","Text","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/typographies/TitleTwo/TitleTwo.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAAyD,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA,KALzD;AAcA,MAAMO,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,GAAG,IAAAC,kBAAQ,EAAC,CAAC;EAEtD,MAAMC,aAAmC,GAAG;IAC1C,GAAGC,4BAAK,CAACC,YAAY;IACrB,GAAG,IAAAC,wBAAkB,EAACT,MAAM,IAAIU,gBAAU,CAACC,OAAO,CAAC;IACnDb,KAAK,EAAEA,KAAK,IAAIM,iBAAiB,CAACQ;EACpC,CAAC;EAED,oBACEtC,MAAA,CAAAS,OAAA,CAAA8B,aAAA,CAACpC,YAAA,CAAAqC,IAAI,EAAA9B,QAAA,KAAKkB,IAAI;IAAEH,KAAK,EAAE,CAACO,aAAa,EAAEP,KAAK;EAAE,IAC3CF,IAAI,IAAII,QACL,CAAC;AAEX,CAAC;AAAC,IAAAc,QAAA,GAAAC,OAAA,CAAAjC,OAAA,GAEaa,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "TitleTwo", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _TitleTwo.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _TitleTwo = _interopRequireDefault(require("./TitleTwo"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_TitleTwo","_interopRequireDefault","require","e","__esModule","default"],"sourceRoot":"../../../../../src","sources":["components/typographies/TitleTwo/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAkC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FontWeight = void 0;
|
|
7
|
+
exports.retrieveFontWeight = retrieveFontWeight;
|
|
8
|
+
var _reactNativeTypography = require("react-native-typography");
|
|
9
|
+
let FontWeight = exports.FontWeight = /*#__PURE__*/function (FontWeight) {
|
|
10
|
+
FontWeight["THIN"] = "thin";
|
|
11
|
+
FontWeight["LIGHT"] = "light";
|
|
12
|
+
FontWeight["REGULAR"] = "regular";
|
|
13
|
+
FontWeight["SEMIBOLD"] = "semibold";
|
|
14
|
+
FontWeight["BOLD"] = "bold";
|
|
15
|
+
return FontWeight;
|
|
16
|
+
}({});
|
|
17
|
+
function retrieveFontWeight(weight) {
|
|
18
|
+
switch (weight) {
|
|
19
|
+
case FontWeight.THIN:
|
|
20
|
+
return _reactNativeTypography.systemWeights.thin;
|
|
21
|
+
case FontWeight.LIGHT:
|
|
22
|
+
return _reactNativeTypography.systemWeights.light;
|
|
23
|
+
default:
|
|
24
|
+
case FontWeight.REGULAR:
|
|
25
|
+
return _reactNativeTypography.systemWeights.regular;
|
|
26
|
+
case FontWeight.SEMIBOLD:
|
|
27
|
+
return _reactNativeTypography.systemWeights.semibold;
|
|
28
|
+
case FontWeight.BOLD:
|
|
29
|
+
return _reactNativeTypography.systemWeights.bold;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
;
|
|
33
|
+
//# sourceMappingURL=font.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeTypography","require","FontWeight","exports","retrieveFontWeight","weight","THIN","systemWeights","thin","LIGHT","light","REGULAR","regular","SEMIBOLD","semibold","BOLD","bold"],"sourceRoot":"../../../../src","sources":["components/typographies/font.ts"],"mappings":";;;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAAwD,IAE5CC,UAAU,GAAAC,OAAA,CAAAD,UAAA,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAQf,SAASE,kBAAkBA,CAACC,MAAkB,EAAE;EACnD,QAAQA,MAAM;IACV,KAAKH,UAAU,CAACI,IAAI;MAChB,OAAOC,oCAAa,CAACC,IAAI;IAC7B,KAAKN,UAAU,CAACO,KAAK;MACjB,OAAOF,oCAAa,CAACG,KAAK;IAC9B;IACA,KAAKR,UAAU,CAACS,OAAO;MACnB,OAAOJ,oCAAa,CAACK,OAAO;IAChC,KAAKV,UAAU,CAACW,QAAQ;MACpB,OAAON,oCAAa,CAACO,QAAQ;IACjC,KAAKZ,UAAU,CAACa,IAAI;MAChB,OAAOR,oCAAa,CAACS,IAAI;EACjC;AACJ;AAAC","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useTheme = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _ThemeProvider = require("../providers/ThemeProvider/ThemeProvider");
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
// export const DSThemeContext = createContext<{
|
|
11
|
+
// setTheme: (theme: ThemeProps) => void;
|
|
12
|
+
// }>({
|
|
13
|
+
// setTheme: ({}) => {},
|
|
14
|
+
// });
|
|
15
|
+
|
|
16
|
+
const useTheme = () => {
|
|
17
|
+
const context = _react.default.useContext(_ThemeProvider.ThemeContext);
|
|
18
|
+
if (!context) {
|
|
19
|
+
throw new Error('useTheme must be used within a ThemeProvider');
|
|
20
|
+
}
|
|
21
|
+
return context;
|
|
22
|
+
};
|
|
23
|
+
exports.useTheme = useTheme;
|
|
24
|
+
//# sourceMappingURL=useTheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_ThemeProvider","e","__esModule","default","useTheme","context","React","useContext","ThemeContext","Error","exports"],"sourceRoot":"../../../src","sources":["hooks/useTheme.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AAAwE,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGxE;AACA;AACA;AACA;AACA;;AAEO,MAAMG,QAAQ,GAAGA,CAAA,KAAM;EAC5B,MAAMC,OAAO,GAAGC,cAAK,CAACC,UAAU,CAAQC,2BAAY,CAAC;EACrD,IAAI,CAACH,OAAO,EAAE;IACZ,MAAM,IAAII,KAAK,CAAC,8CAA8C,CAAC;EACjE;EACA,OAAOJ,OAAO;AAChB,CAAC;AAACK,OAAA,CAAAN,QAAA,GAAAA,QAAA","ignoreList":[]}
|