@pagopa/io-app-design-system 1.41.0 → 2.0.0-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/lib/commonjs/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +8 -32
- package/lib/commonjs/components/accordion/AccordionItem.js +1 -10
- package/lib/commonjs/components/accordion/AccordionItem.js.map +1 -1
- package/lib/commonjs/components/alert/Alert.js +3 -16
- package/lib/commonjs/components/alert/Alert.js.map +1 -1
- package/lib/commonjs/components/badge/Badge.js +13 -21
- package/lib/commonjs/components/badge/Badge.js.map +1 -1
- package/lib/commonjs/components/badge/__test__/__snapshots__/badge.test.tsx.snap +16 -16
- package/lib/commonjs/components/badge/__test__/badge.test.js.map +1 -1
- package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +14 -38
- package/lib/commonjs/components/buttons/ButtonLink.js +10 -24
- package/lib/commonjs/components/buttons/ButtonLink.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonOutline.js +14 -24
- package/lib/commonjs/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +45 -60
- package/lib/commonjs/components/featureInfo/FeatureInfo.js +6 -7
- package/lib/commonjs/components/featureInfo/FeatureInfo.js.map +1 -1
- package/lib/commonjs/components/layout/HeaderSecondLevel.js +10 -15
- package/lib/commonjs/components/layout/HeaderSecondLevel.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemAction.js +18 -52
- package/lib/commonjs/components/listitems/ListItemAction.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemAmount.js +2 -5
- package/lib/commonjs/components/listitems/ListItemAmount.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js +6 -1
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNavAlert.js +9 -2
- package/lib/commonjs/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemSwitch.js +2 -2
- package/lib/commonjs/components/listitems/ListItemSwitch.js.map +1 -1
- package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +91 -347
- package/lib/commonjs/components/modules/ModuleIDP.js +13 -20
- package/lib/commonjs/components/modules/ModuleIDP.js.map +1 -1
- package/lib/commonjs/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +30 -150
- package/lib/commonjs/components/otpInput/OTPInput.js +18 -1
- package/lib/commonjs/components/otpInput/OTPInput.js.map +1 -1
- package/lib/commonjs/components/pictograms/Pictogram.js +0 -108
- package/lib/commonjs/components/pictograms/Pictogram.js.map +1 -1
- package/lib/commonjs/components/searchInput/SearchInput.js +2 -4
- package/lib/commonjs/components/searchInput/SearchInput.js.map +1 -1
- package/lib/commonjs/components/switch/SwitchLabel.js +7 -29
- package/lib/commonjs/components/switch/SwitchLabel.js.map +1 -1
- package/lib/commonjs/components/tabs/TabItem.js +3 -2
- package/lib/commonjs/components/tabs/TabItem.js.map +1 -1
- package/lib/commonjs/components/tag/Tag.js +14 -18
- package/lib/commonjs/components/tag/Tag.js.map +1 -1
- package/lib/commonjs/components/textInput/TextInputBase.js +4 -6
- package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
- package/lib/commonjs/components/typography/BaseTypography.js +5 -1
- package/lib/commonjs/components/typography/BaseTypography.js.map +1 -1
- package/lib/commonjs/components/typography/Body.js +34 -26
- package/lib/commonjs/components/typography/Body.js.map +1 -1
- package/lib/commonjs/components/typography/BodyMonospace.js +26 -24
- package/lib/commonjs/components/typography/BodyMonospace.js.map +1 -1
- package/lib/commonjs/components/typography/ButtonText.js +25 -19
- package/lib/commonjs/components/typography/ButtonText.js.map +1 -1
- package/lib/commonjs/components/typography/Caption.js +29 -19
- package/lib/commonjs/components/typography/Caption.js.map +1 -1
- package/lib/commonjs/components/typography/Chip.js +24 -21
- package/lib/commonjs/components/typography/Chip.js.map +1 -1
- package/lib/commonjs/components/typography/Factory.js +1 -0
- package/lib/commonjs/components/typography/Factory.js.map +1 -1
- package/lib/commonjs/components/typography/H1.js +27 -20
- package/lib/commonjs/components/typography/H1.js.map +1 -1
- package/lib/commonjs/components/typography/H2.js +27 -20
- package/lib/commonjs/components/typography/H2.js.map +1 -1
- package/lib/commonjs/components/typography/H3.js +27 -19
- package/lib/commonjs/components/typography/H3.js.map +1 -1
- package/lib/commonjs/components/typography/H4.js +27 -21
- package/lib/commonjs/components/typography/H4.js.map +1 -1
- package/lib/commonjs/components/typography/H5.js +26 -22
- package/lib/commonjs/components/typography/H5.js.map +1 -1
- package/lib/commonjs/components/typography/H6.js +25 -20
- package/lib/commonjs/components/typography/H6.js.map +1 -1
- package/lib/commonjs/components/typography/Hero.js +25 -17
- package/lib/commonjs/components/typography/Hero.js.map +1 -1
- package/lib/commonjs/components/typography/IOText.js +104 -0
- package/lib/commonjs/components/typography/IOText.js.map +1 -0
- package/lib/commonjs/components/typography/Label.js +28 -26
- package/lib/commonjs/components/typography/Label.js.map +1 -1
- package/lib/commonjs/components/typography/LabelMini.js +45 -0
- package/lib/commonjs/components/typography/LabelMini.js.map +1 -0
- package/lib/commonjs/components/typography/LabelSmall.js +30 -30
- package/lib/commonjs/components/typography/LabelSmall.js.map +1 -1
- package/lib/commonjs/components/typography/LabelSmallAlt.js +25 -20
- package/lib/commonjs/components/typography/LabelSmallAlt.js.map +1 -1
- package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +86 -551
- package/lib/commonjs/components/typography/__test__/typography.test.js +6 -25
- package/lib/commonjs/components/typography/__test__/typography.test.js.map +1 -1
- package/lib/commonjs/components/typography/index.js +15 -37
- package/lib/commonjs/components/typography/index.js.map +1 -1
- package/lib/commonjs/components/typography/markdown/MdH1.js +27 -16
- package/lib/commonjs/components/typography/markdown/MdH1.js.map +1 -1
- package/lib/commonjs/components/typography/markdown/MdH2.js +28 -18
- package/lib/commonjs/components/typography/markdown/MdH2.js.map +1 -1
- package/lib/commonjs/components/typography/markdown/MdH3.js +26 -16
- package/lib/commonjs/components/typography/markdown/MdH3.js.map +1 -1
- package/lib/commonjs/core/IOColors.js +19 -2
- package/lib/commonjs/core/IOColors.js.map +1 -1
- package/lib/commonjs/core/IOSpacing.js +6 -7
- package/lib/commonjs/core/IOSpacing.js.map +1 -1
- package/lib/commonjs/core/IOStyles.js +0 -1
- package/lib/commonjs/core/IOStyles.js.map +1 -1
- package/lib/commonjs/utils/accessibility.js +24 -1
- package/lib/commonjs/utils/accessibility.js.map +1 -1
- package/lib/commonjs/utils/fonts.js +72 -40
- package/lib/commonjs/utils/fonts.js.map +1 -1
- package/lib/module/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +8 -32
- package/lib/module/components/accordion/AccordionItem.js +3 -12
- package/lib/module/components/accordion/AccordionItem.js.map +1 -1
- package/lib/module/components/alert/Alert.js +5 -18
- package/lib/module/components/alert/Alert.js.map +1 -1
- package/lib/module/components/badge/Badge.js +15 -23
- package/lib/module/components/badge/Badge.js.map +1 -1
- package/lib/module/components/badge/__test__/__snapshots__/badge.test.tsx.snap +16 -16
- package/lib/module/components/badge/__test__/badge.test.js.map +1 -1
- package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +14 -38
- package/lib/module/components/buttons/ButtonLink.js +12 -26
- package/lib/module/components/buttons/ButtonLink.js.map +1 -1
- package/lib/module/components/buttons/ButtonOutline.js +15 -25
- package/lib/module/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +45 -60
- package/lib/module/components/featureInfo/FeatureInfo.js +7 -8
- package/lib/module/components/featureInfo/FeatureInfo.js.map +1 -1
- package/lib/module/components/layout/HeaderSecondLevel.js +10 -15
- package/lib/module/components/layout/HeaderSecondLevel.js.map +1 -1
- package/lib/module/components/listitems/ListItemAction.js +23 -57
- package/lib/module/components/listitems/ListItemAction.js.map +1 -1
- package/lib/module/components/listitems/ListItemAmount.js +2 -5
- package/lib/module/components/listitems/ListItemAmount.js.map +1 -1
- package/lib/module/components/listitems/ListItemInfoCopy.js +7 -2
- package/lib/module/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/module/components/listitems/ListItemNavAlert.js +10 -3
- package/lib/module/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/module/components/listitems/ListItemSwitch.js +3 -3
- package/lib/module/components/listitems/ListItemSwitch.js.map +1 -1
- package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +91 -347
- package/lib/module/components/modules/ModuleIDP.js +15 -22
- package/lib/module/components/modules/ModuleIDP.js.map +1 -1
- package/lib/module/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +30 -150
- package/lib/module/components/otpInput/OTPInput.js +19 -2
- package/lib/module/components/otpInput/OTPInput.js.map +1 -1
- package/lib/module/components/pictograms/Pictogram.js +0 -108
- package/lib/module/components/pictograms/Pictogram.js.map +1 -1
- package/lib/module/components/searchInput/SearchInput.js +2 -4
- package/lib/module/components/searchInput/SearchInput.js.map +1 -1
- package/lib/module/components/switch/SwitchLabel.js +9 -31
- package/lib/module/components/switch/SwitchLabel.js.map +1 -1
- package/lib/module/components/tabs/TabItem.js +3 -2
- package/lib/module/components/tabs/TabItem.js.map +1 -1
- package/lib/module/components/tag/Tag.js +16 -20
- package/lib/module/components/tag/Tag.js.map +1 -1
- package/lib/module/components/textInput/TextInputBase.js +4 -6
- package/lib/module/components/textInput/TextInputBase.js.map +1 -1
- package/lib/module/components/typography/BaseTypography.js +5 -1
- package/lib/module/components/typography/BaseTypography.js.map +1 -1
- package/lib/module/components/typography/Body.js +31 -22
- package/lib/module/components/typography/Body.js.map +1 -1
- package/lib/module/components/typography/BodyMonospace.js +25 -23
- package/lib/module/components/typography/BodyMonospace.js.map +1 -1
- package/lib/module/components/typography/ButtonText.js +24 -19
- package/lib/module/components/typography/ButtonText.js.map +1 -1
- package/lib/module/components/typography/Caption.js +28 -19
- package/lib/module/components/typography/Caption.js.map +1 -1
- package/lib/module/components/typography/Chip.js +23 -21
- package/lib/module/components/typography/Chip.js.map +1 -1
- package/lib/module/components/typography/Factory.js +1 -0
- package/lib/module/components/typography/Factory.js.map +1 -1
- package/lib/module/components/typography/H1.js +26 -20
- package/lib/module/components/typography/H1.js.map +1 -1
- package/lib/module/components/typography/H2.js +26 -20
- package/lib/module/components/typography/H2.js.map +1 -1
- package/lib/module/components/typography/H3.js +26 -19
- package/lib/module/components/typography/H3.js.map +1 -1
- package/lib/module/components/typography/H4.js +26 -21
- package/lib/module/components/typography/H4.js.map +1 -1
- package/lib/module/components/typography/H5.js +24 -21
- package/lib/module/components/typography/H5.js.map +1 -1
- package/lib/module/components/typography/H6.js +24 -21
- package/lib/module/components/typography/H6.js.map +1 -1
- package/lib/module/components/typography/Hero.js +24 -17
- package/lib/module/components/typography/Hero.js.map +1 -1
- package/lib/module/components/typography/IOText.js +96 -0
- package/lib/module/components/typography/IOText.js.map +1 -0
- package/lib/module/components/typography/Label.js +27 -26
- package/lib/module/components/typography/Label.js.map +1 -1
- package/lib/module/components/typography/LabelMini.js +36 -0
- package/lib/module/components/typography/LabelMini.js.map +1 -0
- package/lib/module/components/typography/LabelSmall.js +29 -30
- package/lib/module/components/typography/LabelSmall.js.map +1 -1
- package/lib/module/components/typography/LabelSmallAlt.js +24 -20
- package/lib/module/components/typography/LabelSmallAlt.js.map +1 -1
- package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +86 -551
- package/lib/module/components/typography/__test__/typography.test.js +6 -25
- package/lib/module/components/typography/__test__/typography.test.js.map +1 -1
- package/lib/module/components/typography/index.js +2 -4
- package/lib/module/components/typography/index.js.map +1 -1
- package/lib/module/components/typography/markdown/MdH1.js +25 -15
- package/lib/module/components/typography/markdown/MdH1.js.map +1 -1
- package/lib/module/components/typography/markdown/MdH2.js +26 -17
- package/lib/module/components/typography/markdown/MdH2.js.map +1 -1
- package/lib/module/components/typography/markdown/MdH3.js +24 -15
- package/lib/module/components/typography/markdown/MdH3.js.map +1 -1
- package/lib/module/core/IOColors.js +17 -1
- package/lib/module/core/IOColors.js.map +1 -1
- package/lib/module/core/IOSpacing.js +2 -6
- package/lib/module/core/IOSpacing.js.map +1 -1
- package/lib/module/core/IOStyles.js +0 -1
- package/lib/module/core/IOStyles.js.map +1 -1
- package/lib/module/utils/accessibility.js +22 -0
- package/lib/module/utils/accessibility.js.map +1 -1
- package/lib/module/utils/fonts.js +70 -36
- package/lib/module/utils/fonts.js.map +1 -1
- package/lib/typescript/components/accordion/AccordionItem.d.ts.map +1 -1
- package/lib/typescript/components/alert/Alert.d.ts.map +1 -1
- package/lib/typescript/components/badge/Badge.d.ts.map +1 -1
- package/lib/typescript/components/buttons/ButtonLink.d.ts.map +1 -1
- package/lib/typescript/components/buttons/ButtonOutline.d.ts.map +1 -1
- package/lib/typescript/components/featureInfo/FeatureInfo.d.ts +6 -5
- package/lib/typescript/components/featureInfo/FeatureInfo.d.ts.map +1 -1
- package/lib/typescript/components/layout/HeaderSecondLevel.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemAction.d.ts +4 -5
- package/lib/typescript/components/listitems/ListItemAction.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemAmount.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemInfoCopy.d.ts +4 -5
- package/lib/typescript/components/listitems/ListItemInfoCopy.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemNavAlert.d.ts +4 -5
- package/lib/typescript/components/listitems/ListItemNavAlert.d.ts.map +1 -1
- package/lib/typescript/components/modules/ModuleIDP.d.ts.map +1 -1
- package/lib/typescript/components/otpInput/OTPInput.d.ts +1 -0
- package/lib/typescript/components/otpInput/OTPInput.d.ts.map +1 -1
- package/lib/typescript/components/pictograms/Pictogram.d.ts +0 -54
- package/lib/typescript/components/pictograms/Pictogram.d.ts.map +1 -1
- package/lib/typescript/components/switch/SwitchLabel.d.ts.map +1 -1
- package/lib/typescript/components/tabs/TabItem.d.ts.map +1 -1
- package/lib/typescript/components/tag/Tag.d.ts.map +1 -1
- package/lib/typescript/components/textInput/TextInputBase.d.ts.map +1 -1
- package/lib/typescript/components/typography/BaseTypography.d.ts +3 -2
- package/lib/typescript/components/typography/BaseTypography.d.ts.map +1 -1
- package/lib/typescript/components/typography/Body.d.ts +5 -10
- package/lib/typescript/components/typography/Body.d.ts.map +1 -1
- package/lib/typescript/components/typography/BodyMonospace.d.ts +7 -7
- package/lib/typescript/components/typography/BodyMonospace.d.ts.map +1 -1
- package/lib/typescript/components/typography/ButtonText.d.ts +9 -10
- package/lib/typescript/components/typography/ButtonText.d.ts.map +1 -1
- package/lib/typescript/components/typography/Caption.d.ts +9 -5
- package/lib/typescript/components/typography/Caption.d.ts.map +1 -1
- package/lib/typescript/components/typography/Chip.d.ts +7 -7
- package/lib/typescript/components/typography/Chip.d.ts.map +1 -1
- package/lib/typescript/components/typography/Factory.d.ts +1 -0
- package/lib/typescript/components/typography/Factory.d.ts.map +1 -1
- package/lib/typescript/components/typography/H1.d.ts +9 -8
- package/lib/typescript/components/typography/H1.d.ts.map +1 -1
- package/lib/typescript/components/typography/H2.d.ts +9 -8
- package/lib/typescript/components/typography/H2.d.ts.map +1 -1
- package/lib/typescript/components/typography/H3.d.ts +9 -8
- package/lib/typescript/components/typography/H3.d.ts.map +1 -1
- package/lib/typescript/components/typography/H4.d.ts +9 -8
- package/lib/typescript/components/typography/H4.d.ts.map +1 -1
- package/lib/typescript/components/typography/H5.d.ts +9 -5
- package/lib/typescript/components/typography/H5.d.ts.map +1 -1
- package/lib/typescript/components/typography/H6.d.ts +9 -10
- package/lib/typescript/components/typography/H6.d.ts.map +1 -1
- package/lib/typescript/components/typography/Hero.d.ts +9 -8
- package/lib/typescript/components/typography/Hero.d.ts.map +1 -1
- package/lib/typescript/components/typography/IOText.d.ts +54 -0
- package/lib/typescript/components/typography/IOText.d.ts.map +1 -0
- package/lib/typescript/components/typography/Label.d.ts +6 -10
- package/lib/typescript/components/typography/Label.d.ts.map +1 -1
- package/lib/typescript/components/typography/LabelMini.d.ts +13 -0
- package/lib/typescript/components/typography/LabelMini.d.ts.map +1 -0
- package/lib/typescript/components/typography/LabelSmall.d.ts +5 -11
- package/lib/typescript/components/typography/LabelSmall.d.ts.map +1 -1
- package/lib/typescript/components/typography/LabelSmallAlt.d.ts +7 -10
- package/lib/typescript/components/typography/LabelSmallAlt.d.ts.map +1 -1
- package/lib/typescript/components/typography/index.d.ts +2 -4
- package/lib/typescript/components/typography/index.d.ts.map +1 -1
- package/lib/typescript/components/typography/markdown/MdH1.d.ts +9 -9
- package/lib/typescript/components/typography/markdown/MdH1.d.ts.map +1 -1
- package/lib/typescript/components/typography/markdown/MdH2.d.ts +9 -9
- package/lib/typescript/components/typography/markdown/MdH2.d.ts.map +1 -1
- package/lib/typescript/components/typography/markdown/MdH3.d.ts +9 -9
- package/lib/typescript/components/typography/markdown/MdH3.d.ts.map +1 -1
- package/lib/typescript/core/IOColors.d.ts +3 -20
- package/lib/typescript/core/IOColors.d.ts.map +1 -1
- package/lib/typescript/core/IOSpacing.d.ts +8 -7
- package/lib/typescript/core/IOSpacing.d.ts.map +1 -1
- package/lib/typescript/core/IOStyles.d.ts +6 -9
- package/lib/typescript/core/IOStyles.d.ts.map +1 -1
- package/lib/typescript/utils/accessibility.d.ts +5 -0
- package/lib/typescript/utils/accessibility.d.ts.map +1 -1
- package/lib/typescript/utils/fonts.d.ts +17 -25
- package/lib/typescript/utils/fonts.d.ts.map +1 -1
- package/lib/typescript/utils/hooks/useErrorShakeAnimation.d.ts +0 -1
- package/lib/typescript/utils/hooks/useErrorShakeAnimation.d.ts.map +1 -1
- package/lib/typescript/utils/hooks/useSpringPressProgressValue.d.ts +1 -2
- package/lib/typescript/utils/hooks/useSpringPressProgressValue.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +8 -32
- package/src/components/accordion/AccordionItem.tsx +2 -14
- package/src/components/alert/Alert.tsx +5 -18
- package/src/components/badge/Badge.tsx +15 -28
- package/src/components/badge/__test__/__snapshots__/badge.test.tsx.snap +16 -16
- package/src/components/badge/__test__/badge.test.tsx +2 -2
- package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +14 -38
- package/src/components/buttons/ButtonLink.tsx +12 -35
- package/src/components/buttons/ButtonOutline.tsx +14 -25
- package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +45 -60
- package/src/components/featureInfo/FeatureInfo.tsx +13 -13
- package/src/components/layout/HeaderSecondLevel.tsx +9 -18
- package/src/components/listitems/ListItemAction.tsx +28 -80
- package/src/components/listitems/ListItemAmount.tsx +2 -5
- package/src/components/listitems/ListItemInfoCopy.tsx +23 -5
- package/src/components/listitems/ListItemNavAlert.tsx +32 -5
- package/src/components/listitems/ListItemSwitch.tsx +3 -3
- package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +91 -347
- package/src/components/modules/ModuleIDP.tsx +15 -32
- package/src/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +30 -150
- package/src/components/otpInput/OTPInput.tsx +18 -2
- package/src/components/pictograms/Pictogram.tsx +1 -112
- package/src/components/searchInput/SearchInput.tsx +14 -6
- package/src/components/switch/SwitchLabel.tsx +6 -32
- package/src/components/tabs/TabItem.tsx +4 -2
- package/src/components/tag/Tag.tsx +22 -24
- package/src/components/textInput/TextInputBase.tsx +21 -8
- package/src/components/typography/BaseTypography.tsx +13 -4
- package/src/components/typography/Body.tsx +43 -38
- package/src/components/typography/BodyMonospace.tsx +24 -37
- package/src/components/typography/ButtonText.tsx +25 -35
- package/src/components/typography/Caption.tsx +31 -33
- package/src/components/typography/Chip.tsx +25 -37
- package/src/components/typography/Factory.tsx +1 -0
- package/src/components/typography/H1.tsx +31 -36
- package/src/components/typography/H2.tsx +31 -36
- package/src/components/typography/H3.tsx +30 -35
- package/src/components/typography/H4.tsx +31 -36
- package/src/components/typography/H5.tsx +26 -32
- package/src/components/typography/H6.tsx +30 -41
- package/src/components/typography/Hero.tsx +30 -33
- package/src/components/typography/IOText.tsx +157 -0
- package/src/components/typography/Label.tsx +41 -48
- package/src/components/typography/LabelMini.tsx +52 -0
- package/src/components/typography/LabelSmall.tsx +41 -63
- package/src/components/typography/LabelSmallAlt.tsx +28 -48
- package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +86 -551
- package/src/components/typography/__test__/typography.test.tsx +7 -31
- package/src/components/typography/index.tsx +2 -4
- package/src/components/typography/markdown/MdH1.tsx +26 -28
- package/src/components/typography/markdown/MdH2.tsx +27 -30
- package/src/components/typography/markdown/MdH3.tsx +25 -28
- package/src/core/IOColors.ts +31 -21
- package/src/core/IOSpacing.ts +26 -40
- package/src/core/IOStyles.ts +1 -5
- package/src/utils/accessibility.ts +31 -0
- package/src/utils/fonts.ts +93 -51
- package/lib/commonjs/components/pictograms/svg/PictogramAbacus.js +0 -30
- package/lib/commonjs/components/pictograms/svg/PictogramAbacus.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramAirBaloon.js +0 -36
- package/lib/commonjs/components/pictograms/svg/PictogramAirBaloon.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramAirship.js +0 -39
- package/lib/commonjs/components/pictograms/svg/PictogramAirship.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramBaloons.js +0 -41
- package/lib/commonjs/components/pictograms/svg/PictogramBaloons.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramBeerMug.js +0 -32
- package/lib/commonjs/components/pictograms/svg/PictogramBeerMug.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramEmailToValidate.js +0 -32
- package/lib/commonjs/components/pictograms/svg/PictogramEmailToValidate.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramEmailValidation.js +0 -41
- package/lib/commonjs/components/pictograms/svg/PictogramEmailValidation.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramError.js +0 -34
- package/lib/commonjs/components/pictograms/svg/PictogramError.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramFireworks.js +0 -66
- package/lib/commonjs/components/pictograms/svg/PictogramFireworks.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramHeart.js +0 -36
- package/lib/commonjs/components/pictograms/svg/PictogramHeart.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramHourglass.js +0 -39
- package/lib/commonjs/components/pictograms/svg/PictogramHourglass.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramInProgress.js +0 -36
- package/lib/commonjs/components/pictograms/svg/PictogramInProgress.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramInbox.js +0 -32
- package/lib/commonjs/components/pictograms/svg/PictogramInbox.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramMessages.js +0 -31
- package/lib/commonjs/components/pictograms/svg/PictogramMessages.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramNotAvailable.js +0 -45
- package/lib/commonjs/components/pictograms/svg/PictogramNotAvailable.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramPiggyBank.js +0 -41
- package/lib/commonjs/components/pictograms/svg/PictogramPiggyBank.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramPin.js +0 -40
- package/lib/commonjs/components/pictograms/svg/PictogramPin.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramPlaces.js +0 -67
- package/lib/commonjs/components/pictograms/svg/PictogramPlaces.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramPuzzle.js +0 -37
- package/lib/commonjs/components/pictograms/svg/PictogramPuzzle.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramQuestion.js +0 -37
- package/lib/commonjs/components/pictograms/svg/PictogramQuestion.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramSearch.js +0 -42
- package/lib/commonjs/components/pictograms/svg/PictogramSearch.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramSms.js +0 -35
- package/lib/commonjs/components/pictograms/svg/PictogramSms.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramTeaBreak.js +0 -34
- package/lib/commonjs/components/pictograms/svg/PictogramTeaBreak.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramTimeout.js +0 -34
- package/lib/commonjs/components/pictograms/svg/PictogramTimeout.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramUmbrella.js +0 -36
- package/lib/commonjs/components/pictograms/svg/PictogramUmbrella.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramUnrecognized.js +0 -29
- package/lib/commonjs/components/pictograms/svg/PictogramUnrecognized.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramUploadFile.js +0 -32
- package/lib/commonjs/components/pictograms/svg/PictogramUploadFile.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/originals/PictogramAbacus.svg +0 -8
- package/lib/commonjs/components/pictograms/svg/originals/PictogramAirBaloon.svg +0 -14
- package/lib/commonjs/components/pictograms/svg/originals/PictogramAirship.svg +0 -18
- package/lib/commonjs/components/pictograms/svg/originals/PictogramBaloons.svg +0 -20
- package/lib/commonjs/components/pictograms/svg/originals/PictogramBeerMug.svg +0 -10
- package/lib/commonjs/components/pictograms/svg/originals/PictogramEmailToValidate.svg +0 -10
- package/lib/commonjs/components/pictograms/svg/originals/PictogramEmailValidation.svg +0 -20
- package/lib/commonjs/components/pictograms/svg/originals/PictogramError.svg +0 -12
- package/lib/commonjs/components/pictograms/svg/originals/PictogramFireworks.svg +0 -52
- package/lib/commonjs/components/pictograms/svg/originals/PictogramHeart.svg +0 -14
- package/lib/commonjs/components/pictograms/svg/originals/PictogramHourglass.svg +0 -18
- package/lib/commonjs/components/pictograms/svg/originals/PictogramInProgress.svg +0 -14
- package/lib/commonjs/components/pictograms/svg/originals/PictogramInbox.svg +0 -10
- package/lib/commonjs/components/pictograms/svg/originals/PictogramMessages.svg +0 -8
- package/lib/commonjs/components/pictograms/svg/originals/PictogramNotAvailable.svg +0 -26
- package/lib/commonjs/components/pictograms/svg/originals/PictogramPiggyBank.svg +0 -20
- package/lib/commonjs/components/pictograms/svg/originals/PictogramPin.svg +0 -20
- package/lib/commonjs/components/pictograms/svg/originals/PictogramPlaces.svg +0 -45
- package/lib/commonjs/components/pictograms/svg/originals/PictogramPuzzle.svg +0 -16
- package/lib/commonjs/components/pictograms/svg/originals/PictogramQuestion.svg +0 -16
- package/lib/commonjs/components/pictograms/svg/originals/PictogramSearch.svg +0 -22
- package/lib/commonjs/components/pictograms/svg/originals/PictogramSms.svg +0 -14
- package/lib/commonjs/components/pictograms/svg/originals/PictogramTeaBreak.svg +0 -12
- package/lib/commonjs/components/pictograms/svg/originals/PictogramTimeout.svg +0 -12
- package/lib/commonjs/components/pictograms/svg/originals/PictogramUmbrella.svg +0 -14
- package/lib/commonjs/components/pictograms/svg/originals/PictogramUnrecognized.svg +0 -6
- package/lib/commonjs/components/pictograms/svg/originals/PictogramUploadFile.svg +0 -10
- package/lib/commonjs/components/typography/LabelHeader.js +0 -44
- package/lib/commonjs/components/typography/LabelHeader.js.map +0 -1
- package/lib/commonjs/components/typography/LabelLink.js +0 -44
- package/lib/commonjs/components/typography/LabelLink.js.map +0 -1
- package/lib/commonjs/components/typography/markdown/MdH4.js +0 -30
- package/lib/commonjs/components/typography/markdown/MdH4.js.map +0 -1
- package/lib/commonjs/components/typography/markdown/MdH5.js +0 -28
- package/lib/commonjs/components/typography/markdown/MdH5.js.map +0 -1
- package/lib/commonjs/components/typography/markdown/MdH6.js +0 -29
- package/lib/commonjs/components/typography/markdown/MdH6.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramAbacus.js +0 -22
- package/lib/module/components/pictograms/svg/PictogramAbacus.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramAirBaloon.js +0 -28
- package/lib/module/components/pictograms/svg/PictogramAirBaloon.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramAirship.js +0 -31
- package/lib/module/components/pictograms/svg/PictogramAirship.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramBaloons.js +0 -33
- package/lib/module/components/pictograms/svg/PictogramBaloons.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramBeerMug.js +0 -24
- package/lib/module/components/pictograms/svg/PictogramBeerMug.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramEmailToValidate.js +0 -24
- package/lib/module/components/pictograms/svg/PictogramEmailToValidate.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramEmailValidation.js +0 -33
- package/lib/module/components/pictograms/svg/PictogramEmailValidation.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramError.js +0 -26
- package/lib/module/components/pictograms/svg/PictogramError.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramFireworks.js +0 -58
- package/lib/module/components/pictograms/svg/PictogramFireworks.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramHeart.js +0 -28
- package/lib/module/components/pictograms/svg/PictogramHeart.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramHourglass.js +0 -31
- package/lib/module/components/pictograms/svg/PictogramHourglass.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramInProgress.js +0 -28
- package/lib/module/components/pictograms/svg/PictogramInProgress.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramInbox.js +0 -24
- package/lib/module/components/pictograms/svg/PictogramInbox.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramMessages.js +0 -23
- package/lib/module/components/pictograms/svg/PictogramMessages.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramNotAvailable.js +0 -37
- package/lib/module/components/pictograms/svg/PictogramNotAvailable.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramPiggyBank.js +0 -33
- package/lib/module/components/pictograms/svg/PictogramPiggyBank.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramPin.js +0 -32
- package/lib/module/components/pictograms/svg/PictogramPin.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramPlaces.js +0 -59
- package/lib/module/components/pictograms/svg/PictogramPlaces.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramPuzzle.js +0 -29
- package/lib/module/components/pictograms/svg/PictogramPuzzle.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramQuestion.js +0 -29
- package/lib/module/components/pictograms/svg/PictogramQuestion.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramSearch.js +0 -34
- package/lib/module/components/pictograms/svg/PictogramSearch.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramSms.js +0 -27
- package/lib/module/components/pictograms/svg/PictogramSms.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramTeaBreak.js +0 -26
- package/lib/module/components/pictograms/svg/PictogramTeaBreak.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramTimeout.js +0 -26
- package/lib/module/components/pictograms/svg/PictogramTimeout.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramUmbrella.js +0 -28
- package/lib/module/components/pictograms/svg/PictogramUmbrella.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramUnrecognized.js +0 -21
- package/lib/module/components/pictograms/svg/PictogramUnrecognized.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramUploadFile.js +0 -24
- package/lib/module/components/pictograms/svg/PictogramUploadFile.js.map +0 -1
- package/lib/module/components/pictograms/svg/originals/PictogramAbacus.svg +0 -8
- package/lib/module/components/pictograms/svg/originals/PictogramAirBaloon.svg +0 -14
- package/lib/module/components/pictograms/svg/originals/PictogramAirship.svg +0 -18
- package/lib/module/components/pictograms/svg/originals/PictogramBaloons.svg +0 -20
- package/lib/module/components/pictograms/svg/originals/PictogramBeerMug.svg +0 -10
- package/lib/module/components/pictograms/svg/originals/PictogramEmailToValidate.svg +0 -10
- package/lib/module/components/pictograms/svg/originals/PictogramEmailValidation.svg +0 -20
- package/lib/module/components/pictograms/svg/originals/PictogramError.svg +0 -12
- package/lib/module/components/pictograms/svg/originals/PictogramFireworks.svg +0 -52
- package/lib/module/components/pictograms/svg/originals/PictogramHeart.svg +0 -14
- package/lib/module/components/pictograms/svg/originals/PictogramHourglass.svg +0 -18
- package/lib/module/components/pictograms/svg/originals/PictogramInProgress.svg +0 -14
- package/lib/module/components/pictograms/svg/originals/PictogramInbox.svg +0 -10
- package/lib/module/components/pictograms/svg/originals/PictogramMessages.svg +0 -8
- package/lib/module/components/pictograms/svg/originals/PictogramNotAvailable.svg +0 -26
- package/lib/module/components/pictograms/svg/originals/PictogramPiggyBank.svg +0 -20
- package/lib/module/components/pictograms/svg/originals/PictogramPin.svg +0 -20
- package/lib/module/components/pictograms/svg/originals/PictogramPlaces.svg +0 -45
- package/lib/module/components/pictograms/svg/originals/PictogramPuzzle.svg +0 -16
- package/lib/module/components/pictograms/svg/originals/PictogramQuestion.svg +0 -16
- package/lib/module/components/pictograms/svg/originals/PictogramSearch.svg +0 -22
- package/lib/module/components/pictograms/svg/originals/PictogramSms.svg +0 -14
- package/lib/module/components/pictograms/svg/originals/PictogramTeaBreak.svg +0 -12
- package/lib/module/components/pictograms/svg/originals/PictogramTimeout.svg +0 -12
- package/lib/module/components/pictograms/svg/originals/PictogramUmbrella.svg +0 -14
- package/lib/module/components/pictograms/svg/originals/PictogramUnrecognized.svg +0 -6
- package/lib/module/components/pictograms/svg/originals/PictogramUploadFile.svg +0 -10
- package/lib/module/components/typography/LabelHeader.js +0 -33
- package/lib/module/components/typography/LabelHeader.js.map +0 -1
- package/lib/module/components/typography/LabelLink.js +0 -33
- package/lib/module/components/typography/LabelLink.js.map +0 -1
- package/lib/module/components/typography/markdown/MdH4.js +0 -23
- package/lib/module/components/typography/markdown/MdH4.js.map +0 -1
- package/lib/module/components/typography/markdown/MdH5.js +0 -21
- package/lib/module/components/typography/markdown/MdH5.js.map +0 -1
- package/lib/module/components/typography/markdown/MdH6.js +0 -22
- package/lib/module/components/typography/markdown/MdH6.js.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramAbacus.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramAbacus.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramAirBaloon.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramAirBaloon.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramAirship.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramAirship.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramBaloons.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramBaloons.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramBeerMug.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramBeerMug.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramEmailToValidate.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramEmailToValidate.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramEmailValidation.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramEmailValidation.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramError.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramError.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramFireworks.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramFireworks.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramHeart.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramHeart.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramHourglass.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramHourglass.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramInProgress.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramInProgress.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramInbox.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramInbox.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramMessages.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramMessages.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramNotAvailable.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramNotAvailable.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramPiggyBank.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramPiggyBank.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramPin.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramPin.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramPlaces.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramPlaces.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramPuzzle.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramPuzzle.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramQuestion.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramQuestion.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramSearch.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramSearch.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramSms.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramSms.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramTeaBreak.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramTeaBreak.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramTimeout.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramTimeout.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramUmbrella.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramUmbrella.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramUnrecognized.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramUnrecognized.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramUploadFile.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramUploadFile.d.ts.map +0 -1
- package/lib/typescript/components/typography/LabelHeader.d.ts +0 -18
- package/lib/typescript/components/typography/LabelHeader.d.ts.map +0 -1
- package/lib/typescript/components/typography/LabelLink.d.ts +0 -20
- package/lib/typescript/components/typography/LabelLink.d.ts.map +0 -1
- package/lib/typescript/components/typography/markdown/MdH4.d.ts +0 -13
- package/lib/typescript/components/typography/markdown/MdH4.d.ts.map +0 -1
- package/lib/typescript/components/typography/markdown/MdH5.d.ts +0 -13
- package/lib/typescript/components/typography/markdown/MdH5.d.ts.map +0 -1
- package/lib/typescript/components/typography/markdown/MdH6.d.ts +0 -13
- package/lib/typescript/components/typography/markdown/MdH6.d.ts.map +0 -1
- package/src/components/pictograms/svg/PictogramAbacus.tsx +0 -16
- package/src/components/pictograms/svg/PictogramAirBaloon.tsx +0 -22
- package/src/components/pictograms/svg/PictogramAirship.tsx +0 -26
- package/src/components/pictograms/svg/PictogramBaloons.tsx +0 -28
- package/src/components/pictograms/svg/PictogramBeerMug.tsx +0 -18
- package/src/components/pictograms/svg/PictogramEmailToValidate.tsx +0 -23
- package/src/components/pictograms/svg/PictogramEmailValidation.tsx +0 -33
- package/src/components/pictograms/svg/PictogramError.tsx +0 -20
- package/src/components/pictograms/svg/PictogramFireworks.tsx +0 -60
- package/src/components/pictograms/svg/PictogramHeart.tsx +0 -22
- package/src/components/pictograms/svg/PictogramHourglass.tsx +0 -26
- package/src/components/pictograms/svg/PictogramInProgress.tsx +0 -22
- package/src/components/pictograms/svg/PictogramInbox.tsx +0 -18
- package/src/components/pictograms/svg/PictogramMessages.tsx +0 -16
- package/src/components/pictograms/svg/PictogramNotAvailable.tsx +0 -38
- package/src/components/pictograms/svg/PictogramPiggyBank.tsx +0 -29
- package/src/components/pictograms/svg/PictogramPin.tsx +0 -28
- package/src/components/pictograms/svg/PictogramPlaces.tsx +0 -53
- package/src/components/pictograms/svg/PictogramPuzzle.tsx +0 -24
- package/src/components/pictograms/svg/PictogramQuestion.tsx +0 -24
- package/src/components/pictograms/svg/PictogramSearch.tsx +0 -30
- package/src/components/pictograms/svg/PictogramSms.tsx +0 -22
- package/src/components/pictograms/svg/PictogramTeaBreak.tsx +0 -20
- package/src/components/pictograms/svg/PictogramTimeout.tsx +0 -21
- package/src/components/pictograms/svg/PictogramUmbrella.tsx +0 -22
- package/src/components/pictograms/svg/PictogramUnrecognized.tsx +0 -14
- package/src/components/pictograms/svg/PictogramUploadFile.tsx +0 -18
- package/src/components/pictograms/svg/originals/PictogramAbacus.svg +0 -8
- package/src/components/pictograms/svg/originals/PictogramAirBaloon.svg +0 -14
- package/src/components/pictograms/svg/originals/PictogramAirship.svg +0 -18
- package/src/components/pictograms/svg/originals/PictogramBaloons.svg +0 -20
- package/src/components/pictograms/svg/originals/PictogramBeerMug.svg +0 -10
- package/src/components/pictograms/svg/originals/PictogramEmailToValidate.svg +0 -10
- package/src/components/pictograms/svg/originals/PictogramEmailValidation.svg +0 -20
- package/src/components/pictograms/svg/originals/PictogramError.svg +0 -12
- package/src/components/pictograms/svg/originals/PictogramFireworks.svg +0 -52
- package/src/components/pictograms/svg/originals/PictogramHeart.svg +0 -14
- package/src/components/pictograms/svg/originals/PictogramHourglass.svg +0 -18
- package/src/components/pictograms/svg/originals/PictogramInProgress.svg +0 -14
- package/src/components/pictograms/svg/originals/PictogramInbox.svg +0 -10
- package/src/components/pictograms/svg/originals/PictogramMessages.svg +0 -8
- package/src/components/pictograms/svg/originals/PictogramNotAvailable.svg +0 -26
- package/src/components/pictograms/svg/originals/PictogramPiggyBank.svg +0 -20
- package/src/components/pictograms/svg/originals/PictogramPin.svg +0 -20
- package/src/components/pictograms/svg/originals/PictogramPlaces.svg +0 -45
- package/src/components/pictograms/svg/originals/PictogramPuzzle.svg +0 -16
- package/src/components/pictograms/svg/originals/PictogramQuestion.svg +0 -16
- package/src/components/pictograms/svg/originals/PictogramSearch.svg +0 -22
- package/src/components/pictograms/svg/originals/PictogramSms.svg +0 -14
- package/src/components/pictograms/svg/originals/PictogramTeaBreak.svg +0 -12
- package/src/components/pictograms/svg/originals/PictogramTimeout.svg +0 -12
- package/src/components/pictograms/svg/originals/PictogramUmbrella.svg +0 -14
- package/src/components/pictograms/svg/originals/PictogramUnrecognized.svg +0 -6
- package/src/components/pictograms/svg/originals/PictogramUploadFile.svg +0 -10
- package/src/components/typography/LabelHeader.tsx +0 -56
- package/src/components/typography/LabelLink.tsx +0 -61
- package/src/components/typography/markdown/MdH4.tsx +0 -34
- package/src/components/typography/markdown/MdH5.tsx +0 -32
- package/src/components/typography/markdown/MdH6.tsx +0 -33
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import * as TestRenderer from "react-test-renderer";
|
|
3
|
+
import { Alert } from "react-native";
|
|
3
4
|
import type { IOColors } from "../../../core/IOColors";
|
|
4
5
|
import { IOFontWeight } from "../../../utils/fonts";
|
|
5
6
|
import { Body } from "../Body";
|
|
7
|
+
import { BodyMonospace } from "../BodyMonospace";
|
|
6
8
|
import { ButtonText } from "../ButtonText";
|
|
7
9
|
import { H1 } from "../H1";
|
|
8
10
|
import { H2 } from "../H2";
|
|
@@ -12,8 +14,6 @@ import { H5 } from "../H5";
|
|
|
12
14
|
import { H6 } from "../H6";
|
|
13
15
|
import { Label } from "../Label";
|
|
14
16
|
import { LabelSmall } from "../LabelSmall";
|
|
15
|
-
import { LabelLink } from "../LabelLink";
|
|
16
|
-
import { BodyMonospace } from "../BodyMonospace";
|
|
17
17
|
import { calculateWeightColor } from "../common";
|
|
18
18
|
|
|
19
19
|
describe("Test Typography Components", () => {
|
|
@@ -54,34 +54,6 @@ describe("Test Typography Components", () => {
|
|
|
54
54
|
expect(h4Dblue).toMatchSnapshot();
|
|
55
55
|
const h4white = TestRenderer.create(<H4 color={"white"}>Text</H4>).toJSON();
|
|
56
56
|
expect(h4white).toMatchSnapshot();
|
|
57
|
-
|
|
58
|
-
// Regular weight
|
|
59
|
-
// with regular weight, default color is bluegreydark
|
|
60
|
-
const h4Regular = TestRenderer.create(
|
|
61
|
-
<H4 weight={"Regular"}>Text</H4>
|
|
62
|
-
).toJSON();
|
|
63
|
-
expect(h4Regular).toMatchSnapshot();
|
|
64
|
-
|
|
65
|
-
const h4Regularbluegrey = TestRenderer.create(
|
|
66
|
-
<H4 weight={"Regular"} color={"bluegrey"}>
|
|
67
|
-
Text
|
|
68
|
-
</H4>
|
|
69
|
-
).toJSON();
|
|
70
|
-
expect(h4Regularbluegrey).toMatchSnapshot();
|
|
71
|
-
|
|
72
|
-
const h4RegularbluegreyLight = TestRenderer.create(
|
|
73
|
-
<H4 weight={"Regular"} color={"bluegreyLight"}>
|
|
74
|
-
Text
|
|
75
|
-
</H4>
|
|
76
|
-
).toJSON();
|
|
77
|
-
expect(h4RegularbluegreyLight).toMatchSnapshot();
|
|
78
|
-
|
|
79
|
-
const h4Regularwhite = TestRenderer.create(
|
|
80
|
-
<H4 weight={"Regular"} color={"white"}>
|
|
81
|
-
Text
|
|
82
|
-
</H4>
|
|
83
|
-
).toJSON();
|
|
84
|
-
expect(h4Regularwhite).toMatchSnapshot();
|
|
85
57
|
});
|
|
86
58
|
it("H5 Snapshot", () => {
|
|
87
59
|
// SemiBold weight, default
|
|
@@ -151,7 +123,11 @@ describe("Test Typography Components", () => {
|
|
|
151
123
|
});
|
|
152
124
|
});
|
|
153
125
|
it("Link Snapshot", () => {
|
|
154
|
-
const link = TestRenderer.create(
|
|
126
|
+
const link = TestRenderer.create(
|
|
127
|
+
<Label asLink onPress={() => Alert.alert("Pressed")}>
|
|
128
|
+
Text
|
|
129
|
+
</Label>
|
|
130
|
+
).toJSON();
|
|
155
131
|
expect(link).toMatchSnapshot();
|
|
156
132
|
});
|
|
157
133
|
it("BodyMonospace Snapshot", () => {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./BaseTypography";
|
|
2
|
+
export * from "./IOText";
|
|
2
3
|
export * from "./Body";
|
|
3
4
|
export * from "./Caption";
|
|
4
5
|
export * from "./Chip";
|
|
@@ -14,12 +15,9 @@ export * from "./Hero";
|
|
|
14
15
|
export * from "./Label";
|
|
15
16
|
export * from "./LabelSmall";
|
|
16
17
|
export * from "./LabelSmallAlt";
|
|
17
|
-
export * from "./
|
|
18
|
+
export * from "./LabelMini";
|
|
18
19
|
export * from "./BodyMonospace";
|
|
19
20
|
export * from "./common";
|
|
20
21
|
export * from "./markdown/MdH1";
|
|
21
22
|
export * from "./markdown/MdH2";
|
|
22
23
|
export * from "./markdown/MdH3";
|
|
23
|
-
export * from "./markdown/MdH4";
|
|
24
|
-
export * from "./markdown/MdH5";
|
|
25
|
-
export * from "./markdown/MdH6";
|
|
@@ -1,32 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
type AllowedColors = Extract<IOTheme, "textHeading-default"> | IOColors;
|
|
7
|
-
type AllowedWeight = Extract<IOFontWeight, "Regular">;
|
|
8
|
-
|
|
9
|
-
type MdH1Props = ExternalTypographyProps<
|
|
10
|
-
TypographyProps<AllowedWeight, AllowedColors>
|
|
11
|
-
>;
|
|
12
|
-
|
|
13
|
-
const fontSize = 20;
|
|
14
|
-
const lineHeight = 24;
|
|
15
|
-
const font: FontFamily = "ReadexPro";
|
|
16
|
-
const defaultColor: AllowedColors = "black";
|
|
17
|
-
const defaultWeight: AllowedWeight = "Regular";
|
|
1
|
+
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
|
+
import { View } from "react-native";
|
|
3
|
+
import { useIOExperimentalDesign, useIOTheme } from "../../../core";
|
|
4
|
+
import { IOText, IOTextProps, TypographicStyleProps } from "../IOText";
|
|
18
5
|
|
|
19
6
|
/**
|
|
20
7
|
* `MdH1` typographic style
|
|
21
8
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
9
|
+
|
|
10
|
+
export const MdH1 = forwardRef<View, TypographicStyleProps>(
|
|
11
|
+
({ color: customColor, ...props }, ref?: ForwardedRef<View>) => {
|
|
12
|
+
const theme = useIOTheme();
|
|
13
|
+
const { isExperimental } = useIOExperimentalDesign();
|
|
14
|
+
|
|
15
|
+
const MdH1Props: IOTextProps = {
|
|
16
|
+
...props,
|
|
17
|
+
font: isExperimental ? "ReadexPro" : "TitilliumSansPro",
|
|
18
|
+
weight: isExperimental ? "Regular" : "Semibold",
|
|
19
|
+
size: 20,
|
|
20
|
+
lineHeight: 24,
|
|
21
|
+
color: customColor ?? theme["textHeading-tertiary"]
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<IOText ref={ref} {...MdH1Props}>
|
|
26
|
+
{props.children}
|
|
27
|
+
</IOText>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
);
|
|
@@ -1,34 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
type AllowedColors = Extract<IOTheme, "textHeading-default"> | IOColors;
|
|
7
|
-
type AllowedWeight = Extract<IOFontWeight, "Regular">;
|
|
8
|
-
|
|
9
|
-
type MdH2Props = ExternalTypographyProps<
|
|
10
|
-
TypographyProps<AllowedWeight, AllowedColors>
|
|
11
|
-
>;
|
|
12
|
-
|
|
13
|
-
/* We set 18 instead of 16 to diffrentiate from the H3 typographic style.
|
|
14
|
-
It should be 16 with `SemiBold` font weight. */
|
|
15
|
-
const fontSize = 18;
|
|
16
|
-
const lineHeight = 24;
|
|
17
|
-
const font: FontFamily = "ReadexPro";
|
|
18
|
-
const defaultColor: AllowedColors = "black";
|
|
19
|
-
const defaultWeight: AllowedWeight = "Regular";
|
|
1
|
+
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
|
+
import { View } from "react-native";
|
|
3
|
+
import { useIOExperimentalDesign, useIOTheme } from "../../../core";
|
|
4
|
+
import { IOText, IOTextProps, TypographicStyleProps } from "../IOText";
|
|
20
5
|
|
|
21
6
|
/**
|
|
22
7
|
* `MdH2` typographic style
|
|
23
8
|
*/
|
|
24
|
-
export const MdH2 = (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
9
|
+
export const MdH2 = forwardRef<View, TypographicStyleProps>(
|
|
10
|
+
({ color: customColor, ...props }, ref?: ForwardedRef<View>) => {
|
|
11
|
+
const theme = useIOTheme();
|
|
12
|
+
const { isExperimental } = useIOExperimentalDesign();
|
|
13
|
+
|
|
14
|
+
const MdH2Props: IOTextProps = {
|
|
15
|
+
...props,
|
|
16
|
+
font: isExperimental ? "ReadexPro" : "TitilliumSansPro",
|
|
17
|
+
weight: isExperimental ? "Regular" : "Semibold",
|
|
18
|
+
/* We set 18 instead of 16 to diffrentiate from the H3 typographic style.
|
|
19
|
+
It should be 16 with `SemiBold` font weight. */
|
|
20
|
+
size: 18,
|
|
21
|
+
lineHeight: 24,
|
|
22
|
+
color: customColor ?? theme["textHeading-tertiary"]
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<IOText ref={ref} {...MdH2Props}>
|
|
27
|
+
{props.children}
|
|
28
|
+
</IOText>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
);
|
|
@@ -1,32 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
type AllowedColors = Extract<IOTheme, "textHeading-default"> | IOColors;
|
|
7
|
-
type AllowedWeight = Extract<IOFontWeight, "Regular">;
|
|
8
|
-
|
|
9
|
-
type MdH3Props = ExternalTypographyProps<
|
|
10
|
-
TypographyProps<AllowedWeight, AllowedColors>
|
|
11
|
-
>;
|
|
12
|
-
|
|
13
|
-
const fontSize = 16;
|
|
14
|
-
const lineHeight = 24;
|
|
15
|
-
const font: FontFamily = "ReadexPro";
|
|
16
|
-
const defaultColor: AllowedColors = "black";
|
|
17
|
-
const defaultWeight: AllowedWeight = "Regular";
|
|
1
|
+
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
|
+
import { View } from "react-native";
|
|
3
|
+
import { useIOExperimentalDesign, useIOTheme } from "../../../core";
|
|
4
|
+
import { IOText, IOTextProps, TypographicStyleProps } from "../IOText";
|
|
18
5
|
|
|
19
6
|
/**
|
|
20
7
|
* `MdH3` typographic style
|
|
21
8
|
*/
|
|
22
|
-
export const MdH3 = (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
9
|
+
export const MdH3 = forwardRef<View, TypographicStyleProps>(
|
|
10
|
+
({ color: customColor, ...props }, ref?: ForwardedRef<View>) => {
|
|
11
|
+
const theme = useIOTheme();
|
|
12
|
+
const { isExperimental } = useIOExperimentalDesign();
|
|
13
|
+
|
|
14
|
+
const MdH3Props: IOTextProps = {
|
|
15
|
+
...props,
|
|
16
|
+
font: isExperimental ? "ReadexPro" : "TitilliumSansPro",
|
|
17
|
+
weight: isExperimental ? "Regular" : "Semibold",
|
|
18
|
+
size: 16,
|
|
19
|
+
lineHeight: 24,
|
|
20
|
+
color: customColor ?? theme["textHeading-tertiary"]
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
return (
|
|
24
|
+
<IOText ref={ref} {...MdH3Props}>
|
|
25
|
+
{props.children}
|
|
26
|
+
</IOText>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
);
|
package/src/core/IOColors.ts
CHANGED
|
@@ -256,33 +256,39 @@ export type IOColorsExtra = keyof typeof IOColorsExtra;
|
|
|
256
256
|
░░░ THEME COLORS ░░░
|
|
257
257
|
*/
|
|
258
258
|
|
|
259
|
-
|
|
259
|
+
const themeKeys = [
|
|
260
260
|
// General
|
|
261
|
-
"appBackground-primary"
|
|
262
|
-
"appBackground-secondary"
|
|
263
|
-
"appBackground-tertiary"
|
|
264
|
-
"appBackground-accent"
|
|
265
|
-
"interactiveElem-default"
|
|
266
|
-
"interactiveElem-pressed"
|
|
267
|
-
"listItem-pressed"
|
|
261
|
+
"appBackground-primary",
|
|
262
|
+
"appBackground-secondary",
|
|
263
|
+
"appBackground-tertiary",
|
|
264
|
+
"appBackground-accent",
|
|
265
|
+
"interactiveElem-default",
|
|
266
|
+
"interactiveElem-pressed",
|
|
267
|
+
"listItem-pressed",
|
|
268
268
|
// Typography
|
|
269
|
-
"textHeading-default"
|
|
270
|
-
"
|
|
271
|
-
"
|
|
272
|
-
"textBody-
|
|
269
|
+
"textHeading-default",
|
|
270
|
+
"textHeading-secondary",
|
|
271
|
+
"textHeading-tertiary",
|
|
272
|
+
"textBody-default",
|
|
273
|
+
"textBody-secondary",
|
|
274
|
+
"textBody-tertiary",
|
|
273
275
|
// Design System related
|
|
274
|
-
"cardBorder-default"
|
|
275
|
-
"icon-default"
|
|
276
|
-
"icon-decorative"
|
|
276
|
+
"cardBorder-default",
|
|
277
|
+
"icon-default",
|
|
278
|
+
"icon-decorative",
|
|
277
279
|
// Layout
|
|
278
|
-
"divider-default"
|
|
280
|
+
"divider-default",
|
|
279
281
|
// Status
|
|
280
|
-
errorIcon
|
|
281
|
-
errorText
|
|
282
|
+
"errorIcon",
|
|
283
|
+
"errorText",
|
|
282
284
|
// Pictograms
|
|
283
|
-
"pictogram-hands"
|
|
284
|
-
"pictogram-tint-main"
|
|
285
|
-
"pictogram-tint-secondary"
|
|
285
|
+
"pictogram-hands",
|
|
286
|
+
"pictogram-tint-main",
|
|
287
|
+
"pictogram-tint-secondary"
|
|
288
|
+
] as const;
|
|
289
|
+
|
|
290
|
+
export type IOTheme = {
|
|
291
|
+
[K in (typeof themeKeys)[number]]: IOColors;
|
|
286
292
|
};
|
|
287
293
|
|
|
288
294
|
export const IOThemeLight: IOTheme = {
|
|
@@ -296,6 +302,8 @@ export const IOThemeLight: IOTheme = {
|
|
|
296
302
|
"listItem-pressed": "grey-50",
|
|
297
303
|
// Typography
|
|
298
304
|
"textHeading-default": "black",
|
|
305
|
+
"textHeading-secondary": "grey-850",
|
|
306
|
+
"textHeading-tertiary": "grey-700",
|
|
299
307
|
"textBody-default": "black",
|
|
300
308
|
"textBody-secondary": "grey-850",
|
|
301
309
|
"textBody-tertiary": "grey-700",
|
|
@@ -332,6 +340,8 @@ export const IOThemeDark: IOTheme = {
|
|
|
332
340
|
"listItem-pressed": "grey-850",
|
|
333
341
|
// Typography
|
|
334
342
|
"textHeading-default": "grey-200",
|
|
343
|
+
"textHeading-secondary": "grey-300",
|
|
344
|
+
"textHeading-tertiary": "grey-450",
|
|
335
345
|
"textBody-default": "white",
|
|
336
346
|
"textBody-secondary": "grey-100",
|
|
337
347
|
"textBody-tertiary": "grey-450",
|
package/src/core/IOSpacing.ts
CHANGED
|
@@ -4,62 +4,48 @@ Every margin/padding used by different components
|
|
|
4
4
|
should use a value defined in the following scale.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
| 12
|
|
12
|
-
| 16
|
|
13
|
-
| 20
|
|
14
|
-
| 24
|
|
15
|
-
| 28
|
|
16
|
-
| 32
|
|
17
|
-
| 40
|
|
18
|
-
| 48
|
|
19
|
-
| 56
|
|
20
|
-
| 64
|
|
21
|
-
| 72
|
|
22
|
-
| 80
|
|
23
|
-
| 96;
|
|
7
|
+
export const IOSpacingScale = [
|
|
8
|
+
4, 6, 8, 12, 16, 20, 24, 28, 32, 40, 48, 56, 64, 72, 80, 96
|
|
9
|
+
] as const;
|
|
10
|
+
export type IOSpacingScale = (typeof IOSpacingScale)[number];
|
|
24
11
|
|
|
25
|
-
// Values used in the new `<Spacer>`
|
|
26
|
-
export
|
|
27
|
-
IOSpacingScale,
|
|
28
|
-
4 | 8 | 12 | 16 | 24 | 32 | 40 | 48
|
|
29
|
-
>;
|
|
30
|
-
export const IOSpacer: ReadonlyArray<IOSpacer> = [
|
|
12
|
+
// Values used in the new `<Spacer>` and `<Stack>` components
|
|
13
|
+
export const IOSpacer = [
|
|
31
14
|
4, 8, 12, 16, 24, 32, 40, 48
|
|
32
|
-
] as const
|
|
15
|
+
] as const satisfies ReadonlyArray<IOSpacingScale>;
|
|
16
|
+
export type IOSpacer = (typeof IOSpacer)[number];
|
|
33
17
|
|
|
34
18
|
// Margin values used in the new `<ContentWrapper>` component
|
|
35
|
-
export
|
|
36
|
-
export const IOAppMargin: ReadonlyArray<IOAppMargin> = [
|
|
19
|
+
export const IOAppMargin = [
|
|
37
20
|
8, 16, 24, 32, 48
|
|
38
|
-
] as const
|
|
21
|
+
] as const satisfies ReadonlyArray<IOSpacingScale>;
|
|
22
|
+
export type IOAppMargin = (typeof IOAppMargin)[number];
|
|
39
23
|
|
|
40
24
|
// Values used in the `<Alert>` component
|
|
41
|
-
export
|
|
42
|
-
|
|
25
|
+
export const IOAlertSpacing = [
|
|
26
|
+
16, 24
|
|
27
|
+
] as const satisfies ReadonlyArray<IOSpacingScale>;
|
|
28
|
+
export type IOAlertSpacing = (typeof IOAlertSpacing)[number];
|
|
43
29
|
|
|
44
30
|
// Values used in the `<Banner>` component
|
|
45
31
|
export type IOBannerSpacing = Extract<IOSpacingScale, 12 | 16>;
|
|
46
|
-
export const IOBannerBigSpacing: IOBannerSpacing = 16
|
|
47
|
-
export const IOBannerSmallHSpacing: IOBannerSpacing = 16
|
|
48
|
-
export const IOBannerSmallVSpacing: IOBannerSpacing = 12
|
|
32
|
+
export const IOBannerBigSpacing: IOBannerSpacing = 16;
|
|
33
|
+
export const IOBannerSmallHSpacing: IOBannerSpacing = 16;
|
|
34
|
+
export const IOBannerSmallVSpacing: IOBannerSpacing = 12;
|
|
49
35
|
|
|
50
36
|
// Values used in the `<Tag>` component
|
|
51
37
|
export type IOTagSpacing = Extract<IOSpacingScale, 6 | 8>;
|
|
52
|
-
export const IOTagHSpacing: IOTagSpacing = 8
|
|
53
|
-
export const IOTagVSpacing: IOTagSpacing = 6
|
|
38
|
+
export const IOTagHSpacing: IOTagSpacing = 8;
|
|
39
|
+
export const IOTagVSpacing: IOTagSpacing = 6;
|
|
54
40
|
|
|
55
41
|
// Values used in the `<Badge>` component
|
|
56
42
|
export type IOBadgeSpacing = Extract<IOSpacingScale, 4 | 8>;
|
|
57
|
-
export const IOBadgeHSpacing: IOBadgeSpacing = 8
|
|
58
|
-
export const IOBadgeVSpacing: IOBadgeSpacing = 4
|
|
43
|
+
export const IOBadgeHSpacing: IOBadgeSpacing = 8;
|
|
44
|
+
export const IOBadgeVSpacing: IOBadgeSpacing = 4;
|
|
59
45
|
|
|
60
46
|
// Values used in the `<ModuleIDP>` component
|
|
61
47
|
export type IOModuleIDPSpacing = Extract<IOSpacingScale, 8 | 16 | 24>;
|
|
62
|
-
export const IOModuleIDPHSpacing: IOModuleIDPSpacing = 16
|
|
63
|
-
export const IOModuleIDPVSpacing: IOModuleIDPSpacing = 16
|
|
64
|
-
export const IOModuleIDPSavedVSpacing: IOModuleIDPSpacing = 24
|
|
65
|
-
export const IOListItemLogoMargin: IOModuleIDPSpacing = 8
|
|
48
|
+
export const IOModuleIDPHSpacing: IOModuleIDPSpacing = 16;
|
|
49
|
+
export const IOModuleIDPVSpacing: IOModuleIDPSpacing = 16;
|
|
50
|
+
export const IOModuleIDPSavedVSpacing: IOModuleIDPSpacing = 24;
|
|
51
|
+
export const IOListItemLogoMargin: IOModuleIDPSpacing = 8;
|
package/src/core/IOStyles.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Platform, StyleSheet
|
|
2
|
-
import { ComponentProps } from "react";
|
|
1
|
+
import { Platform, StyleSheet } from "react-native";
|
|
3
2
|
import { IOIconSizeScale } from "../components/icons";
|
|
4
3
|
import { IOColors } from "./IOColors";
|
|
5
4
|
import { IOModuleIDPRadius } from "./IOShapes";
|
|
@@ -19,8 +18,6 @@ interface IOVisualCostants {
|
|
|
19
18
|
appMarginDefault: IOAppMargin;
|
|
20
19
|
// Header
|
|
21
20
|
headerHeight: number;
|
|
22
|
-
// Typography
|
|
23
|
-
maxFontSizeMultiplier: ComponentProps<typeof Text>["maxFontSizeMultiplier"];
|
|
24
21
|
// Dimensions
|
|
25
22
|
avatarSizeSmall: number;
|
|
26
23
|
avatarSizeMedium: number;
|
|
@@ -35,7 +32,6 @@ interface IOVisualCostants {
|
|
|
35
32
|
export const IOVisualCostants: IOVisualCostants = {
|
|
36
33
|
appMarginDefault: 24,
|
|
37
34
|
headerHeight: 56,
|
|
38
|
-
maxFontSizeMultiplier: 1.25,
|
|
39
35
|
avatarSizeSmall: 44,
|
|
40
36
|
avatarSizeMedium: 66,
|
|
41
37
|
avatarRadiusSizeSmall: 8,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { pipe } from "fp-ts/lib/function";
|
|
2
2
|
import * as O from "fp-ts/lib/Option";
|
|
3
3
|
import I18n from "i18n-js";
|
|
4
|
+
import { useEffect, useState } from "react";
|
|
5
|
+
import { AccessibilityInfo } from "react-native";
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* This function is used to get the text that will be read by the screen reader
|
|
@@ -15,3 +17,32 @@ export const getAccessibleAmountText = (amount?: string) =>
|
|
|
15
17
|
),
|
|
16
18
|
O.getOrElseW(() => undefined)
|
|
17
19
|
);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Query whether a bold text is currently enabled. The result is true
|
|
23
|
+
* when bold text is enabled and false otherwise.
|
|
24
|
+
*/
|
|
25
|
+
export const useBoldTextEnabled = () => {
|
|
26
|
+
const [boldTextEnabled, setBoldTextEnabled] = useState(false);
|
|
27
|
+
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
const boldTextChangedSubscription = AccessibilityInfo.addEventListener(
|
|
30
|
+
"boldTextChanged",
|
|
31
|
+
isBoldTextEnabled => {
|
|
32
|
+
setBoldTextEnabled(isBoldTextEnabled);
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
AccessibilityInfo.isBoldTextEnabled()
|
|
37
|
+
.then(isBoldTextEnabled => {
|
|
38
|
+
setBoldTextEnabled(isBoldTextEnabled);
|
|
39
|
+
})
|
|
40
|
+
.catch(_ => false);
|
|
41
|
+
|
|
42
|
+
return () => {
|
|
43
|
+
boldTextChangedSubscription.remove();
|
|
44
|
+
};
|
|
45
|
+
}, []);
|
|
46
|
+
|
|
47
|
+
return boldTextEnabled;
|
|
48
|
+
};
|