@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
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
useIOExperimentalDesign,
|
|
37
37
|
useIOTheme
|
|
38
38
|
} from "../../core";
|
|
39
|
-
import { makeFontStyleObject } from "../../utils/fonts";
|
|
39
|
+
import { IOFontSize, makeFontStyleObject } from "../../utils/fonts";
|
|
40
40
|
import { ButtonLink } from "../buttons";
|
|
41
41
|
import { IOIconSizeScale, Icon } from "../icons";
|
|
42
42
|
|
|
@@ -51,7 +51,7 @@ const iconMargin: IOSpacingScale = 8;
|
|
|
51
51
|
const iconColor: IOColors = "grey-700";
|
|
52
52
|
const iconSize: IOIconSizeScale = 16;
|
|
53
53
|
const iconCloseSize: IOIconSizeScale = 24;
|
|
54
|
-
const inputFontSizePlaceholder:
|
|
54
|
+
const inputFontSizePlaceholder: IOFontSize = 14;
|
|
55
55
|
const cancelButtonMargin: IOSpacingScale = 16;
|
|
56
56
|
const inputTransitionDuration: number = 250;
|
|
57
57
|
const inputHeightIOS: number = 36;
|
|
@@ -324,12 +324,20 @@ const styles = StyleSheet.create({
|
|
|
324
324
|
marginRight: iconMargin
|
|
325
325
|
},
|
|
326
326
|
placeholder: {
|
|
327
|
-
|
|
328
|
-
|
|
327
|
+
...makeFontStyleObject(
|
|
328
|
+
inputFontSizePlaceholder,
|
|
329
|
+
"ReadexPro",
|
|
330
|
+
undefined,
|
|
331
|
+
"Regular"
|
|
332
|
+
)
|
|
329
333
|
},
|
|
330
334
|
placeholderLegacy: {
|
|
331
|
-
|
|
332
|
-
|
|
335
|
+
...makeFontStyleObject(
|
|
336
|
+
inputFontSizePlaceholder,
|
|
337
|
+
"TitilliumSansPro",
|
|
338
|
+
undefined,
|
|
339
|
+
"Regular"
|
|
340
|
+
)
|
|
333
341
|
},
|
|
334
342
|
cancelButton: {
|
|
335
343
|
position: "absolute",
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { Pressable,
|
|
4
|
-
import {
|
|
3
|
+
import { Pressable, View } from "react-native";
|
|
4
|
+
import { useIOTheme } from "../../core";
|
|
5
5
|
import { IOStyles } from "../../core/IOStyles";
|
|
6
6
|
import { triggerHaptic } from "../../functions/haptic-feedback/hapticFeedback";
|
|
7
|
-
import { makeFontStyleObject } from "../../utils/fonts";
|
|
8
7
|
import { HSpacer } from "../spacer/Spacer";
|
|
9
8
|
import { H6 } from "../typography/H6";
|
|
10
9
|
import { AnimatedSwitch } from "./AnimatedSwitch";
|
|
@@ -23,17 +22,6 @@ type OwnProps = Props &
|
|
|
23
22
|
Pick<React.ComponentProps<typeof AnimatedSwitch>, "disabled" | "checked"> &
|
|
24
23
|
Pick<React.ComponentProps<typeof Pressable>, "onPress">;
|
|
25
24
|
|
|
26
|
-
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
27
|
-
const styles = StyleSheet.create({
|
|
28
|
-
legacyTextValue: {
|
|
29
|
-
fontSize: 16,
|
|
30
|
-
lineHeight: 24,
|
|
31
|
-
color: IOColors.bluegreyDark,
|
|
32
|
-
flexShrink: 1,
|
|
33
|
-
...makeFontStyleObject("Semibold", undefined, "TitilliumSansPro")
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
|
|
37
25
|
/**
|
|
38
26
|
* A checkbox with the automatic state management that uses a {@link AnimatedCheckBox}
|
|
39
27
|
* The toggleValue change when a `onPress` event is received and dispatch the `onValueChange`.
|
|
@@ -47,24 +35,8 @@ export const SwitchLabel = ({
|
|
|
47
35
|
disabled,
|
|
48
36
|
onValueChange
|
|
49
37
|
}: OwnProps) => {
|
|
50
|
-
const [toggleValue, setToggleValue] = useState(checked ?? false);
|
|
51
38
|
const theme = useIOTheme();
|
|
52
|
-
|
|
53
|
-
const { isExperimental } = useIOExperimentalDesign();
|
|
54
|
-
const switchLabelText = (
|
|
55
|
-
<H6 style={{ flexShrink: 1 }} color={theme["textBody-default"]}>
|
|
56
|
-
{label}
|
|
57
|
-
</H6>
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
61
|
-
const legacySwitchlabelText = (
|
|
62
|
-
<Text style={styles.legacyTextValue}>{label}</Text>
|
|
63
|
-
);
|
|
64
|
-
|
|
65
|
-
const switchLabelTextComponent = isExperimental
|
|
66
|
-
? switchLabelText
|
|
67
|
-
: legacySwitchlabelText;
|
|
39
|
+
const [toggleValue, setToggleValue] = useState(checked ?? false);
|
|
68
40
|
|
|
69
41
|
const toggleCheckbox = () => {
|
|
70
42
|
triggerHaptic("impactLight");
|
|
@@ -99,7 +71,9 @@ export const SwitchLabel = ({
|
|
|
99
71
|
<AnimatedSwitch checked={checked ?? toggleValue} />
|
|
100
72
|
</View>
|
|
101
73
|
<HSpacer size={8} />
|
|
102
|
-
{
|
|
74
|
+
<H6 style={{ flexShrink: 1 }} color={theme["textBody-default"]}>
|
|
75
|
+
{label}
|
|
76
|
+
</H6>
|
|
103
77
|
</View>
|
|
104
78
|
</Pressable>
|
|
105
79
|
);
|
|
@@ -20,7 +20,7 @@ import { useSpringPressProgressValue } from "../../utils/hooks/useSpringPressPro
|
|
|
20
20
|
import { WithTestID } from "../../utils/types";
|
|
21
21
|
import { IOIcons, Icon } from "../icons";
|
|
22
22
|
import { HSpacer } from "../spacer";
|
|
23
|
-
import {
|
|
23
|
+
import { LabelSmall } from "../typography";
|
|
24
24
|
|
|
25
25
|
type ColorMode = "light" | "dark";
|
|
26
26
|
|
|
@@ -257,7 +257,9 @@ const TabItem = ({
|
|
|
257
257
|
<HSpacer size={4} />
|
|
258
258
|
</>
|
|
259
259
|
)}
|
|
260
|
-
<
|
|
260
|
+
<LabelSmall weight="Semibold" color={foregroundColor}>
|
|
261
|
+
{label}
|
|
262
|
+
</LabelSmall>
|
|
261
263
|
</Animated.View>
|
|
262
264
|
</Pressable>
|
|
263
265
|
);
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import * as O from "fp-ts/lib/Option";
|
|
2
2
|
import { pipe } from "fp-ts/lib/function";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { Platform, StyleSheet,
|
|
5
|
-
import {
|
|
4
|
+
import { Platform, StyleSheet, View } from "react-native";
|
|
5
|
+
import {
|
|
6
|
+
IOColors,
|
|
7
|
+
IOTagRadius,
|
|
8
|
+
useIOExperimentalDesign,
|
|
9
|
+
useIOTheme
|
|
10
|
+
} from "../../core";
|
|
6
11
|
import {
|
|
7
12
|
IOSpacingScale,
|
|
8
13
|
IOTagHSpacing,
|
|
9
14
|
IOTagVSpacing
|
|
10
15
|
} from "../../core/IOSpacing";
|
|
11
|
-
import { makeFontStyleObject } from "../../utils/fonts";
|
|
12
16
|
import { WithTestID } from "../../utils/types";
|
|
13
17
|
import { IOIconSizeScale, IOIcons, Icon } from "../icons";
|
|
18
|
+
import { IOText } from "../typography";
|
|
14
19
|
|
|
15
20
|
type VariantProps = {
|
|
16
21
|
iconColor: IOColors;
|
|
@@ -74,21 +79,6 @@ const styles = StyleSheet.create({
|
|
|
74
79
|
},
|
|
75
80
|
spacer: {
|
|
76
81
|
width: IOTagIconMargin
|
|
77
|
-
},
|
|
78
|
-
label: {
|
|
79
|
-
fontSize: 12,
|
|
80
|
-
lineHeight: 16,
|
|
81
|
-
alignSelf: "center",
|
|
82
|
-
textTransform: "uppercase",
|
|
83
|
-
color: IOColors["grey-700"],
|
|
84
|
-
flexShrink: 1
|
|
85
|
-
},
|
|
86
|
-
labelFont: {
|
|
87
|
-
...makeFontStyleObject("Regular", false, "ReadexPro")
|
|
88
|
-
},
|
|
89
|
-
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
90
|
-
legacyLabelFont: {
|
|
91
|
-
...makeFontStyleObject("Semibold", false, "TitilliumSansPro")
|
|
92
82
|
}
|
|
93
83
|
});
|
|
94
84
|
|
|
@@ -151,6 +141,7 @@ export const Tag = ({
|
|
|
151
141
|
customIconProps,
|
|
152
142
|
iconAccessibilityLabel
|
|
153
143
|
}: Tag) => {
|
|
144
|
+
const theme = useIOTheme();
|
|
154
145
|
const { isExperimental } = useIOExperimentalDesign();
|
|
155
146
|
|
|
156
147
|
const variantProps = getVariantProps(variant, customIconProps);
|
|
@@ -177,16 +168,23 @@ export const Tag = ({
|
|
|
177
168
|
)}
|
|
178
169
|
{variantProps && text && <View style={styles.spacer} />}
|
|
179
170
|
{text && (
|
|
180
|
-
<
|
|
171
|
+
<IOText
|
|
172
|
+
font={isExperimental ? "ReadexPro" : "TitilliumSansPro"}
|
|
173
|
+
weight={isExperimental ? "Regular" : "Semibold"}
|
|
174
|
+
size={12}
|
|
175
|
+
lineHeight={16}
|
|
176
|
+
color={theme["textBody-tertiary"]}
|
|
181
177
|
numberOfLines={1}
|
|
182
178
|
ellipsizeMode="tail"
|
|
183
|
-
style={
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
179
|
+
style={{
|
|
180
|
+
alignSelf: "center",
|
|
181
|
+
textTransform: "uppercase",
|
|
182
|
+
letterSpacing: 0.5,
|
|
183
|
+
flexShrink: 1
|
|
184
|
+
}}
|
|
187
185
|
>
|
|
188
186
|
{text}
|
|
189
|
-
</
|
|
187
|
+
</IOText>
|
|
190
188
|
)}
|
|
191
189
|
</View>
|
|
192
190
|
);
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
useIOExperimentalDesign,
|
|
27
27
|
useIOTheme
|
|
28
28
|
} from "../../core";
|
|
29
|
-
import { makeFontStyleObject } from "../../utils/fonts";
|
|
29
|
+
import { IOFontSize, makeFontStyleObject } from "../../utils/fonts";
|
|
30
30
|
import { RNTextInputProps, getInputPropsByType } from "../../utils/textInput";
|
|
31
31
|
import { InputType, WithTestID } from "../../utils/types";
|
|
32
32
|
import { IOIconSizeScale, IOIcons, Icon } from "../icons";
|
|
@@ -62,7 +62,7 @@ const inputPaddingVertical: IOSpacingScale = 8;
|
|
|
62
62
|
const inputRadius: number = 8;
|
|
63
63
|
const inputTransitionDuration: number = 250;
|
|
64
64
|
const inputLabelScaleFactor: number = 0.75; /* 16pt becomes 12pt */
|
|
65
|
-
const inputLabelFontSize:
|
|
65
|
+
const inputLabelFontSize: IOFontSize = 16;
|
|
66
66
|
const inputDisabledOpacity: number = 0.5;
|
|
67
67
|
const inputRightElementMargin: IOSpacingScale = 8;
|
|
68
68
|
const iconColor: IOColors = "grey-300";
|
|
@@ -99,7 +99,6 @@ const styles = StyleSheet.create({
|
|
|
99
99
|
Android where the text input scrolls, if the user apply some
|
|
100
100
|
gestures on it with keyboard open */
|
|
101
101
|
paddingVertical: 0,
|
|
102
|
-
fontSize: 16,
|
|
103
102
|
marginTop: inputMarginTop,
|
|
104
103
|
height: "100%",
|
|
105
104
|
/* Slightly move the input on the left on Android
|
|
@@ -107,11 +106,21 @@ const styles = StyleSheet.create({
|
|
|
107
106
|
...(Platform.OS === "android" && { marginLeft: -4 })
|
|
108
107
|
},
|
|
109
108
|
textInputStyleFont: {
|
|
110
|
-
...makeFontStyleObject(
|
|
109
|
+
...makeFontStyleObject(
|
|
110
|
+
inputLabelFontSize,
|
|
111
|
+
"ReadexPro",
|
|
112
|
+
undefined,
|
|
113
|
+
"Regular"
|
|
114
|
+
)
|
|
111
115
|
},
|
|
112
116
|
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
113
117
|
textInputStyleLegacyFont: {
|
|
114
|
-
...makeFontStyleObject(
|
|
118
|
+
...makeFontStyleObject(
|
|
119
|
+
inputLabelFontSize,
|
|
120
|
+
"TitilliumSansPro",
|
|
121
|
+
undefined,
|
|
122
|
+
"Semibold"
|
|
123
|
+
)
|
|
115
124
|
},
|
|
116
125
|
textInputLabelWrapper: {
|
|
117
126
|
position: "absolute",
|
|
@@ -122,9 +131,13 @@ const styles = StyleSheet.create({
|
|
|
122
131
|
justifyContent: "center"
|
|
123
132
|
},
|
|
124
133
|
textInputLabel: {
|
|
125
|
-
...makeFontStyleObject(
|
|
126
|
-
|
|
127
|
-
|
|
134
|
+
...makeFontStyleObject(
|
|
135
|
+
inputLabelFontSize,
|
|
136
|
+
"TitilliumSansPro",
|
|
137
|
+
undefined,
|
|
138
|
+
"Regular"
|
|
139
|
+
),
|
|
140
|
+
color: inputLabelColor
|
|
128
141
|
}
|
|
129
142
|
});
|
|
130
143
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Text, TextStyle, View } from "react-native";
|
|
3
3
|
import { IOColors } from "../../core/IOColors";
|
|
4
4
|
import {
|
|
5
5
|
IOFontFamily,
|
|
6
|
+
IOFontSize,
|
|
6
7
|
IOFontWeight,
|
|
7
8
|
makeFontStyleObject
|
|
8
9
|
} from "../../utils/fonts";
|
|
@@ -19,7 +20,7 @@ type BaseTypographyProps = {
|
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
type OwnProps = BaseTypographyProps & {
|
|
22
|
-
fontStyle?:
|
|
23
|
+
fontStyle?: TextStyle;
|
|
23
24
|
} & React.ComponentPropsWithRef<typeof Text>;
|
|
24
25
|
|
|
25
26
|
/**
|
|
@@ -41,13 +42,21 @@ const calculateTextStyle = (
|
|
|
41
42
|
* used to calculate at runtime the platform-dependent styles.
|
|
42
43
|
* This component shouldn't be used in the application but only to compose others `Typography elements`.
|
|
43
44
|
* @param props
|
|
45
|
+
* @deprecated Use {@link IOText} instead
|
|
44
46
|
* @constructor
|
|
45
47
|
*/
|
|
46
48
|
export const BaseTypography = React.forwardRef<View, OwnProps>((props, ref) => {
|
|
47
49
|
const fontStyle = useMemo(
|
|
48
50
|
() =>
|
|
49
|
-
calculateTextStyle(
|
|
50
|
-
|
|
51
|
+
calculateTextStyle(
|
|
52
|
+
props.color,
|
|
53
|
+
props.fontStyle?.fontSize as IOFontSize,
|
|
54
|
+
props.font,
|
|
55
|
+
props.fontStyle?.lineHeight,
|
|
56
|
+
props.weight,
|
|
57
|
+
props.isItalic ? "italic" : "normal"
|
|
58
|
+
),
|
|
59
|
+
[props.color, props.fontStyle, props.font, props.weight, props.isItalic]
|
|
51
60
|
);
|
|
52
61
|
|
|
53
62
|
const style = props.style
|
|
@@ -1,50 +1,55 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
+
import { useIOTheme } from "../../core";
|
|
4
|
+
import { IOFontWeight } from "../../utils/fonts";
|
|
3
5
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "
|
|
9
|
-
import { FontFamily, IOFontWeight } from "../../utils/fonts";
|
|
10
|
-
import { useTypographyFactory } from "./Factory";
|
|
11
|
-
import { ExternalTypographyProps, TypographyProps } from "./common";
|
|
6
|
+
IOText,
|
|
7
|
+
IOTextProps,
|
|
8
|
+
TypographicStyleAsLinkProps,
|
|
9
|
+
TypographicStyleProps
|
|
10
|
+
} from "./IOText";
|
|
12
11
|
|
|
13
|
-
type
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
>;
|
|
17
|
-
type AllowedColors = PartialAllowedColors | IOTheme["textBody-default"];
|
|
18
|
-
type AllowedWeight = IOFontWeight | "Regular" | "Semibold";
|
|
19
|
-
|
|
20
|
-
type BodyProps = ExternalTypographyProps<
|
|
21
|
-
TypographyProps<AllowedWeight, AllowedColors>
|
|
22
|
-
>;
|
|
23
|
-
|
|
24
|
-
const fontName: FontFamily = "TitilliumSansPro";
|
|
12
|
+
type BodyStyleProps = TypographicStyleProps & {
|
|
13
|
+
weight?: Extract<IOFontWeight, "Regular" | "Semibold" | "Bold">;
|
|
14
|
+
} & TypographicStyleAsLinkProps;
|
|
25
15
|
|
|
26
16
|
export const bodyFontSize = 16;
|
|
27
17
|
export const bodyLineHeight = 24;
|
|
28
|
-
export const bodyDefaultColor: AllowedColors = "bluegrey";
|
|
29
|
-
export const bodyDefaultWeight: AllowedWeight = "Regular";
|
|
30
18
|
|
|
31
19
|
/**
|
|
32
20
|
* `Body` typographic style
|
|
33
21
|
*/
|
|
34
|
-
export const Body =
|
|
35
|
-
|
|
22
|
+
export const Body = forwardRef<View, BodyStyleProps>(
|
|
23
|
+
(
|
|
24
|
+
{ weight: customWeight, color: customColor, asLink, ...props },
|
|
25
|
+
ref?: ForwardedRef<View>
|
|
26
|
+
) => {
|
|
27
|
+
const theme = useIOTheme();
|
|
36
28
|
|
|
37
|
-
|
|
38
|
-
|
|
29
|
+
const defaultColor = asLink
|
|
30
|
+
? theme["interactiveElem-default"]
|
|
31
|
+
: theme["textBody-tertiary"];
|
|
32
|
+
|
|
33
|
+
const BodyProps: IOTextProps = {
|
|
39
34
|
...props,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
35
|
+
dynamicTypeRamp: "body", // iOS only
|
|
36
|
+
font: "TitilliumSansPro",
|
|
37
|
+
weight: customWeight ?? "Regular",
|
|
38
|
+
size: bodyFontSize,
|
|
39
|
+
lineHeight: bodyLineHeight,
|
|
40
|
+
color: customColor ?? defaultColor,
|
|
41
|
+
...(asLink
|
|
42
|
+
? {
|
|
43
|
+
accessibilityRole: "link",
|
|
44
|
+
textStyle: { textDecorationLine: "underline" }
|
|
45
|
+
}
|
|
46
|
+
: {})
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
return (
|
|
50
|
+
<IOText ref={ref} {...BodyProps}>
|
|
51
|
+
{props.children}
|
|
52
|
+
</IOText>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
);
|
|
@@ -1,46 +1,33 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
type IOColors
|
|
7
|
-
} from "../../core";
|
|
8
|
-
import { FontFamily, IOFontWeight } from "../../utils/fonts";
|
|
9
|
-
import { useTypographyFactory } from "./Factory";
|
|
10
|
-
import { ExternalTypographyProps, TypographyProps } from "./common";
|
|
11
|
-
|
|
12
|
-
type AllowedColors = Extract<IOColors, "bluegreyDark" | "bluegrey">;
|
|
13
|
-
type AllowedWeight = Extract<IOFontWeight, "Medium">;
|
|
14
|
-
|
|
15
|
-
type BodyMonospaceProps = ExternalTypographyProps<
|
|
16
|
-
TypographyProps<AllowedWeight, AllowedColors>
|
|
17
|
-
>;
|
|
18
|
-
|
|
19
|
-
const fontName: FontFamily = "DMMono";
|
|
20
|
-
const fontSize = 16;
|
|
21
|
-
const lineHeight = 24;
|
|
22
|
-
const monospaceDefaultWeight = "Medium";
|
|
23
|
-
const monospaceDefaultcolor = "bluegrey";
|
|
3
|
+
import { useIOTheme } from "../../core";
|
|
4
|
+
import { bodyFontSize, bodyLineHeight } from "./Body";
|
|
5
|
+
import { IOText, IOTextProps, TypographicStyleProps } from "./IOText";
|
|
24
6
|
|
|
25
7
|
/**
|
|
26
8
|
* `BodyMonospace` typographic style
|
|
27
9
|
*/
|
|
28
|
-
export const BodyMonospace =
|
|
29
|
-
(props, ref) => {
|
|
30
|
-
const
|
|
10
|
+
export const BodyMonospace = forwardRef<View, TypographicStyleProps>(
|
|
11
|
+
({ color: customColor, ...props }, ref?: ForwardedRef<View>) => {
|
|
12
|
+
const theme = useIOTheme();
|
|
13
|
+
|
|
14
|
+
const BodyProps: IOTextProps = {
|
|
15
|
+
...props,
|
|
16
|
+
dynamicTypeRamp: "body", // iOS only
|
|
17
|
+
font: "DMMono",
|
|
18
|
+
weight: "Medium",
|
|
19
|
+
size: bodyFontSize,
|
|
20
|
+
lineHeight: bodyLineHeight,
|
|
21
|
+
color: customColor ?? theme["textBody-tertiary"],
|
|
22
|
+
textStyle: {
|
|
23
|
+
letterSpacing: 0.5
|
|
24
|
+
}
|
|
25
|
+
};
|
|
31
26
|
|
|
32
|
-
return
|
|
33
|
-
{
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
maxFontSizeMultiplier: IOVisualCostants.maxFontSizeMultiplier,
|
|
37
|
-
dynamicTypeRamp: "body" /* iOS only */,
|
|
38
|
-
defaultWeight: monospaceDefaultWeight,
|
|
39
|
-
defaultColor: monospaceDefaultcolor,
|
|
40
|
-
font: fontName,
|
|
41
|
-
fontStyle: { fontSize, lineHeight }
|
|
42
|
-
},
|
|
43
|
-
ref
|
|
27
|
+
return (
|
|
28
|
+
<IOText ref={ref} {...BodyProps}>
|
|
29
|
+
{props.children}
|
|
30
|
+
</IOText>
|
|
44
31
|
);
|
|
45
32
|
}
|
|
46
33
|
);
|
|
@@ -1,51 +1,41 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
+
import { useIOExperimentalDesign } from "../../core";
|
|
3
4
|
import { IOColors } from "../../core/IOColors";
|
|
4
|
-
import { IOFontFamily, IOFontWeight } from "../../utils/fonts";
|
|
5
|
-
import {
|
|
6
|
-
import { useTypographyFactory } from "./Factory";
|
|
7
|
-
import { ExternalTypographyProps, TypographyProps } from "./common";
|
|
5
|
+
import { IOFontFamily, IOFontSize, IOFontWeight } from "../../utils/fonts";
|
|
6
|
+
import { IOText, IOTextProps, TypographicStyleProps } from "./IOText";
|
|
8
7
|
|
|
9
|
-
export
|
|
10
|
-
type AllowedWeight = Extract<IOFontWeight, "Semibold" | "Regular" | "Bold">;
|
|
11
|
-
|
|
12
|
-
type ButtonTextProps = ExternalTypographyProps<
|
|
13
|
-
TypographyProps<AllowedWeight, ButtonTextAllowedColors>
|
|
14
|
-
>;
|
|
15
|
-
|
|
16
|
-
export const buttonTextFontSize = 16;
|
|
8
|
+
export const buttonTextFontSize: IOFontSize = 16;
|
|
17
9
|
/* Needed to render `ButtonOutline` and`ButtonLink` because they use
|
|
18
10
|
`AnimatedText` for color transition through Reanimated */
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
11
|
+
const defaultColor: IOColors = "white";
|
|
12
|
+
const fontName: IOFontFamily = "ReadexPro";
|
|
13
|
+
const fontWeight: IOFontWeight = "Regular";
|
|
22
14
|
|
|
23
15
|
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
24
|
-
const
|
|
25
|
-
const
|
|
16
|
+
const legacyFontName: IOFontFamily = "TitilliumSansPro";
|
|
17
|
+
const legacyFontWeight: IOFontWeight = "Bold";
|
|
26
18
|
|
|
27
19
|
/**
|
|
28
20
|
* `ButtonText` typographic style
|
|
29
21
|
*/
|
|
30
|
-
export const ButtonText =
|
|
31
|
-
(props, ref) => {
|
|
22
|
+
export const ButtonText = forwardRef<View, TypographicStyleProps>(
|
|
23
|
+
({ color: customColor, ...props }, ref?: ForwardedRef<View>) => {
|
|
32
24
|
const { isExperimental } = useIOExperimentalDesign();
|
|
33
25
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
ref
|
|
26
|
+
const ButtonTextProps: IOTextProps = {
|
|
27
|
+
...props,
|
|
28
|
+
font: isExperimental ? fontName : legacyFontName,
|
|
29
|
+
weight: isExperimental ? fontWeight : legacyFontWeight,
|
|
30
|
+
size: buttonTextFontSize,
|
|
31
|
+
lineHeight: 20,
|
|
32
|
+
color: customColor ?? defaultColor
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<IOText ref={ref} {...ButtonTextProps}>
|
|
37
|
+
{props.children}
|
|
38
|
+
</IOText>
|
|
49
39
|
);
|
|
50
40
|
}
|
|
51
41
|
);
|
|
@@ -1,45 +1,43 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { ForwardedRef, forwardRef } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { IOTheme,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { ExternalTypographyProps, TypographyProps } from "./common";
|
|
3
|
+
import { IOTheme, useIOExperimentalDesign, useIOTheme } from "../../core";
|
|
4
|
+
import { IOFontFamily, IOFontSize, IOFontWeight } from "../../utils/fonts";
|
|
5
|
+
import { IOText, IOTextProps, TypographicStyleProps } from "./IOText";
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
type AllowedWeight = Extract<IOFontWeight, "Regular">;
|
|
7
|
+
const defaultColor: keyof IOTheme = "textBody-default";
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export const captionFontSize = 12;
|
|
16
|
-
const font: FontFamily = "ReadexPro";
|
|
17
|
-
const defaultColor: AllowedColors = "black";
|
|
18
|
-
const defaultWeight: AllowedWeight = "Regular";
|
|
9
|
+
export const captionFontSize: IOFontSize = 12;
|
|
10
|
+
const fontName: IOFontFamily = "ReadexPro";
|
|
11
|
+
const fontWeight: IOFontWeight = "Regular";
|
|
19
12
|
|
|
20
13
|
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
21
|
-
const
|
|
14
|
+
const legacyFontName: IOFontFamily = "TitilliumSansPro";
|
|
22
15
|
|
|
23
16
|
/**
|
|
24
17
|
* `Caption` typographic style
|
|
25
18
|
*/
|
|
26
|
-
export const Caption =
|
|
27
|
-
|
|
19
|
+
export const Caption = forwardRef<View, TypographicStyleProps>(
|
|
20
|
+
({ color: customColor, ...props }, ref?: ForwardedRef<View>) => {
|
|
21
|
+
const theme = useIOTheme();
|
|
22
|
+
const { isExperimental } = useIOExperimentalDesign();
|
|
28
23
|
|
|
29
|
-
|
|
30
|
-
{
|
|
24
|
+
const CaptionProps: IOTextProps = {
|
|
31
25
|
...props,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
defaultColor,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
textTransform: "uppercase"
|
|
26
|
+
dynamicTypeRamp: "caption1", // iOS only
|
|
27
|
+
font: isExperimental ? fontName : legacyFontName,
|
|
28
|
+
size: captionFontSize,
|
|
29
|
+
weight: fontWeight,
|
|
30
|
+
color: customColor ?? theme[defaultColor],
|
|
31
|
+
textStyle: {
|
|
32
|
+
textTransform: "uppercase",
|
|
33
|
+
letterSpacing: 0.5
|
|
41
34
|
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<IOText ref={ref} {...CaptionProps}>
|
|
39
|
+
{props.children}
|
|
40
|
+
</IOText>
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
);
|