@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
|
@@ -4,7 +4,6 @@ import {
|
|
|
4
4
|
PixelRatio,
|
|
5
5
|
Pressable,
|
|
6
6
|
StyleSheet,
|
|
7
|
-
Text,
|
|
8
7
|
View
|
|
9
8
|
} from "react-native";
|
|
10
9
|
import Animated, {
|
|
@@ -15,7 +14,7 @@ import Animated, {
|
|
|
15
14
|
useSharedValue,
|
|
16
15
|
withSpring
|
|
17
16
|
} from "react-native-reanimated";
|
|
18
|
-
import { IOVisualCostants
|
|
17
|
+
import { IOVisualCostants } from "../../core";
|
|
19
18
|
import { IOScaleValues, IOSpringValues } from "../../core/IOAnimations";
|
|
20
19
|
import {
|
|
21
20
|
IOColors,
|
|
@@ -24,10 +23,10 @@ import {
|
|
|
24
23
|
} from "../../core/IOColors";
|
|
25
24
|
import { IOAlertRadius } from "../../core/IOShapes";
|
|
26
25
|
import { IOAlertSpacing } from "../../core/IOSpacing";
|
|
27
|
-
import { makeFontStyleObject } from "../../utils/fonts";
|
|
28
26
|
import { WithTestID } from "../../utils/types";
|
|
29
27
|
import { IOIconSizeScale, IOIcons, Icon } from "../icons";
|
|
30
28
|
import { VSpacer } from "../spacer";
|
|
29
|
+
import { ButtonText } from "../typography";
|
|
31
30
|
import { H4 } from "../typography/H4";
|
|
32
31
|
import { Label } from "../typography/Label";
|
|
33
32
|
|
|
@@ -48,14 +47,6 @@ const styles = StyleSheet.create({
|
|
|
48
47
|
},
|
|
49
48
|
spacingFullWidth: {
|
|
50
49
|
padding: spacingFullWidth
|
|
51
|
-
},
|
|
52
|
-
label: {
|
|
53
|
-
fontSize: 16,
|
|
54
|
-
...makeFontStyleObject("Regular", false, "ReadexPro")
|
|
55
|
-
},
|
|
56
|
-
labelLegacy: {
|
|
57
|
-
fontSize: 16,
|
|
58
|
-
...makeFontStyleObject("Bold", false, "TitilliumSansPro")
|
|
59
50
|
}
|
|
60
51
|
});
|
|
61
52
|
|
|
@@ -129,7 +120,6 @@ export const Alert = React.forwardRef<View, AlertType>(
|
|
|
129
120
|
viewRef
|
|
130
121
|
): JSX.Element => {
|
|
131
122
|
const isPressed: Animated.SharedValue<number> = useSharedValue(0);
|
|
132
|
-
const { isExperimental } = useIOExperimentalDesign();
|
|
133
123
|
|
|
134
124
|
// Scaling transformation applied when the button is pressed
|
|
135
125
|
const animationScaleValue = IOScaleValues?.magnifiedButton?.pressedState;
|
|
@@ -198,16 +188,13 @@ export const Alert = React.forwardRef<View, AlertType>(
|
|
|
198
188
|
{action && (
|
|
199
189
|
<>
|
|
200
190
|
<VSpacer size={8} />
|
|
201
|
-
<
|
|
202
|
-
|
|
203
|
-
isExperimental ? styles.label : styles.labelLegacy,
|
|
204
|
-
{ color: IOColors[mapVariantStates[variant].foreground] }
|
|
205
|
-
]}
|
|
191
|
+
<ButtonText
|
|
192
|
+
color={mapVariantStates[variant].foreground}
|
|
206
193
|
numberOfLines={1}
|
|
207
194
|
ellipsizeMode="tail"
|
|
208
195
|
>
|
|
209
196
|
{action}
|
|
210
|
-
</
|
|
197
|
+
</ButtonText>
|
|
211
198
|
</>
|
|
212
199
|
)}
|
|
213
200
|
</View>
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { Platform, StyleSheet,
|
|
2
|
+
import { Platform, StyleSheet, View } from "react-native";
|
|
3
3
|
import {
|
|
4
4
|
IOBadgeHSpacing,
|
|
5
5
|
IOBadgeRadius,
|
|
6
6
|
IOBadgeVSpacing,
|
|
7
7
|
IOColors,
|
|
8
|
-
IOVisualCostants,
|
|
9
8
|
useIOExperimentalDesign,
|
|
10
9
|
useIOTheme
|
|
11
10
|
} from "../../core";
|
|
12
|
-
import { makeFontStyleObject } from "../../utils/fonts";
|
|
13
11
|
import { WithTestID } from "../../utils/types";
|
|
12
|
+
import { IOText } from "../typography";
|
|
14
13
|
|
|
15
14
|
export type Badge = WithTestID<{
|
|
16
15
|
outline?: boolean;
|
|
@@ -52,20 +51,6 @@ const styles = StyleSheet.create({
|
|
|
52
51
|
borderRadius: IOBadgeRadius,
|
|
53
52
|
paddingHorizontal: IOBadgeHSpacing,
|
|
54
53
|
paddingVertical: IOBadgeVSpacing
|
|
55
|
-
},
|
|
56
|
-
label: {
|
|
57
|
-
fontSize: 12,
|
|
58
|
-
lineHeight: 16,
|
|
59
|
-
alignSelf: "center",
|
|
60
|
-
textTransform: "uppercase",
|
|
61
|
-
flexShrink: 1
|
|
62
|
-
},
|
|
63
|
-
labelFont: {
|
|
64
|
-
...makeFontStyleObject("Regular", false, "ReadexPro")
|
|
65
|
-
},
|
|
66
|
-
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
67
|
-
legacyLabelFont: {
|
|
68
|
-
...makeFontStyleObject("Semibold", false, "TitilliumSansPro")
|
|
69
54
|
}
|
|
70
55
|
});
|
|
71
56
|
|
|
@@ -177,21 +162,23 @@ export const Badge = ({ text, outline = false, variant, testID }: Badge) => {
|
|
|
177
162
|
}
|
|
178
163
|
]}
|
|
179
164
|
>
|
|
180
|
-
<
|
|
165
|
+
<IOText
|
|
166
|
+
font={isExperimental ? "ReadexPro" : "TitilliumSansPro"}
|
|
167
|
+
weight={isExperimental ? "Regular" : "Semibold"}
|
|
168
|
+
size={12}
|
|
169
|
+
lineHeight={16}
|
|
170
|
+
color={foreground}
|
|
181
171
|
numberOfLines={1}
|
|
182
172
|
ellipsizeMode="tail"
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
color: IOColors[foreground]
|
|
190
|
-
}
|
|
191
|
-
]}
|
|
173
|
+
style={{
|
|
174
|
+
alignSelf: "center",
|
|
175
|
+
textTransform: "uppercase",
|
|
176
|
+
letterSpacing: 0.5,
|
|
177
|
+
flexShrink: 1
|
|
178
|
+
}}
|
|
192
179
|
>
|
|
193
180
|
{text}
|
|
194
|
-
</
|
|
181
|
+
</IOText>
|
|
195
182
|
</View>
|
|
196
183
|
);
|
|
197
184
|
};
|
|
@@ -26,20 +26,20 @@ exports[`Test Badge Components - Experimental Enabled Badge Snapshot 1`] = `
|
|
|
26
26
|
numberOfLines={1}
|
|
27
27
|
style={
|
|
28
28
|
[
|
|
29
|
+
{},
|
|
29
30
|
{
|
|
30
|
-
"
|
|
31
|
-
"flexShrink": 1,
|
|
32
|
-
"fontSize": 12,
|
|
33
|
-
"lineHeight": 16,
|
|
34
|
-
"textTransform": "uppercase",
|
|
35
|
-
},
|
|
36
|
-
{
|
|
31
|
+
"color": "#555C70",
|
|
37
32
|
"fontFamily": "Readex Pro",
|
|
33
|
+
"fontSize": 12,
|
|
38
34
|
"fontStyle": "normal",
|
|
39
35
|
"fontWeight": "400",
|
|
36
|
+
"lineHeight": 16,
|
|
40
37
|
},
|
|
41
38
|
{
|
|
42
|
-
"
|
|
39
|
+
"alignSelf": "center",
|
|
40
|
+
"flexShrink": 1,
|
|
41
|
+
"letterSpacing": 0.5,
|
|
42
|
+
"textTransform": "uppercase",
|
|
43
43
|
},
|
|
44
44
|
]
|
|
45
45
|
}
|
|
@@ -75,20 +75,20 @@ exports[`Test Badge Components Badge Snapshot 1`] = `
|
|
|
75
75
|
numberOfLines={1}
|
|
76
76
|
style={
|
|
77
77
|
[
|
|
78
|
+
{},
|
|
78
79
|
{
|
|
79
|
-
"
|
|
80
|
-
"flexShrink": 1,
|
|
81
|
-
"fontSize": 12,
|
|
82
|
-
"lineHeight": 16,
|
|
83
|
-
"textTransform": "uppercase",
|
|
84
|
-
},
|
|
85
|
-
{
|
|
80
|
+
"color": "#555C70",
|
|
86
81
|
"fontFamily": "Titillium Sans Pro",
|
|
82
|
+
"fontSize": 12,
|
|
87
83
|
"fontStyle": "normal",
|
|
88
84
|
"fontWeight": "600",
|
|
85
|
+
"lineHeight": 16,
|
|
89
86
|
},
|
|
90
87
|
{
|
|
91
|
-
"
|
|
88
|
+
"alignSelf": "center",
|
|
89
|
+
"flexShrink": 1,
|
|
90
|
+
"letterSpacing": 0.5,
|
|
91
|
+
"textTransform": "uppercase",
|
|
92
92
|
},
|
|
93
93
|
]
|
|
94
94
|
}
|
|
@@ -6,7 +6,7 @@ import { Badge } from "../Badge";
|
|
|
6
6
|
describe("Test Badge Components", () => {
|
|
7
7
|
it("Badge Snapshot", () => {
|
|
8
8
|
const badge = TestRenderer.create(
|
|
9
|
-
<Badge text={"text"} variant={"default"}
|
|
9
|
+
<Badge text={"text"} variant={"default"} />
|
|
10
10
|
).toJSON();
|
|
11
11
|
expect(badge).toMatchSnapshot();
|
|
12
12
|
});
|
|
@@ -15,7 +15,7 @@ describe("Test Badge Components", () => {
|
|
|
15
15
|
describe("Test Badge Components - Experimental Enabled", () => {
|
|
16
16
|
it("Badge Snapshot", () => {
|
|
17
17
|
const badge = TestRendererWithExperimentalEnabledContextProvider(
|
|
18
|
-
<Badge text={"text"} variant={"default"}
|
|
18
|
+
<Badge text={"text"} variant={"default"} />
|
|
19
19
|
).toJSON();
|
|
20
20
|
expect(badge).toMatchSnapshot();
|
|
21
21
|
});
|
|
@@ -73,33 +73,21 @@ exports[`Test Banner Components - Experimental Enabled Banner Snapshot 1`] = `
|
|
|
73
73
|
>
|
|
74
74
|
<Text
|
|
75
75
|
allowFontScaling={true}
|
|
76
|
-
color="blueIO-850"
|
|
77
|
-
defaultColor="black"
|
|
78
|
-
defaultWeight="Regular"
|
|
79
76
|
dynamicTypeRamp="headline"
|
|
80
|
-
font="ReadexPro"
|
|
81
|
-
fontStyle={
|
|
82
|
-
{
|
|
83
|
-
"fontSize": 16,
|
|
84
|
-
"lineHeight": 24,
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
77
|
maxFontSizeMultiplier={1.25}
|
|
88
78
|
style={
|
|
89
79
|
[
|
|
90
|
-
{
|
|
91
|
-
"fontSize": 16,
|
|
92
|
-
"lineHeight": 24,
|
|
93
|
-
},
|
|
80
|
+
{},
|
|
94
81
|
{
|
|
95
82
|
"color": "#031344",
|
|
96
83
|
"fontFamily": "Readex Pro",
|
|
84
|
+
"fontSize": 16,
|
|
97
85
|
"fontStyle": "normal",
|
|
98
86
|
"fontWeight": "400",
|
|
87
|
+
"lineHeight": 24,
|
|
99
88
|
},
|
|
100
89
|
]
|
|
101
90
|
}
|
|
102
|
-
weight="Regular"
|
|
103
91
|
>
|
|
104
92
|
Banner title
|
|
105
93
|
</Text>
|
|
@@ -197,18 +185,18 @@ exports[`Test Banner Components - Experimental Enabled Banner Snapshot 1`] = `
|
|
|
197
185
|
allowFontScaling={true}
|
|
198
186
|
ellipsizeMode="tail"
|
|
199
187
|
importantForAccessibility="no-hide-descendants"
|
|
200
|
-
maxFontSizeMultiplier={1.
|
|
188
|
+
maxFontSizeMultiplier={1.25}
|
|
201
189
|
numberOfLines={1}
|
|
202
190
|
style={
|
|
203
191
|
[
|
|
192
|
+
{},
|
|
204
193
|
{
|
|
194
|
+
"color": "#0E0F13",
|
|
205
195
|
"fontFamily": "Readex Pro",
|
|
206
196
|
"fontSize": 16,
|
|
207
197
|
"fontStyle": "normal",
|
|
208
198
|
"fontWeight": "400",
|
|
209
|
-
|
|
210
|
-
{
|
|
211
|
-
"color": "#0B3EE3",
|
|
199
|
+
"lineHeight": undefined,
|
|
212
200
|
},
|
|
213
201
|
{
|
|
214
202
|
"color": undefined,
|
|
@@ -434,33 +422,21 @@ exports[`Test Banner Components Banner Snapshot 1`] = `
|
|
|
434
422
|
>
|
|
435
423
|
<Text
|
|
436
424
|
allowFontScaling={false}
|
|
437
|
-
color="blueIO-850"
|
|
438
|
-
defaultColor="black"
|
|
439
|
-
defaultWeight="Semibold"
|
|
440
425
|
dynamicTypeRamp="headline"
|
|
441
|
-
font="TitilliumSansPro"
|
|
442
|
-
fontStyle={
|
|
443
|
-
{
|
|
444
|
-
"fontSize": 18,
|
|
445
|
-
"lineHeight": 25,
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
426
|
maxFontSizeMultiplier={1.25}
|
|
449
427
|
style={
|
|
450
428
|
[
|
|
451
|
-
{
|
|
452
|
-
"fontSize": 18,
|
|
453
|
-
"lineHeight": 25,
|
|
454
|
-
},
|
|
429
|
+
{},
|
|
455
430
|
{
|
|
456
431
|
"color": "#031344",
|
|
457
432
|
"fontFamily": "Titillium Sans Pro",
|
|
433
|
+
"fontSize": 18,
|
|
458
434
|
"fontStyle": "normal",
|
|
459
435
|
"fontWeight": "600",
|
|
436
|
+
"lineHeight": 25,
|
|
460
437
|
},
|
|
461
438
|
]
|
|
462
439
|
}
|
|
463
|
-
weight="Semibold"
|
|
464
440
|
>
|
|
465
441
|
Banner title
|
|
466
442
|
</Text>
|
|
@@ -558,18 +534,18 @@ exports[`Test Banner Components Banner Snapshot 1`] = `
|
|
|
558
534
|
allowFontScaling={false}
|
|
559
535
|
ellipsizeMode="tail"
|
|
560
536
|
importantForAccessibility="no-hide-descendants"
|
|
561
|
-
maxFontSizeMultiplier={1.
|
|
537
|
+
maxFontSizeMultiplier={1.25}
|
|
562
538
|
numberOfLines={1}
|
|
563
539
|
style={
|
|
564
540
|
[
|
|
541
|
+
{},
|
|
565
542
|
{
|
|
543
|
+
"color": "#0E0F13",
|
|
566
544
|
"fontFamily": "Titillium Sans Pro",
|
|
567
545
|
"fontSize": 16,
|
|
568
546
|
"fontStyle": "normal",
|
|
569
547
|
"fontWeight": "700",
|
|
570
|
-
|
|
571
|
-
{
|
|
572
|
-
"color": "#0073E6",
|
|
548
|
+
"lineHeight": undefined,
|
|
573
549
|
},
|
|
574
550
|
{
|
|
575
551
|
"color": undefined,
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useMemo } from "react";
|
|
2
|
-
import {
|
|
3
|
-
GestureResponderEvent,
|
|
4
|
-
Pressable,
|
|
5
|
-
StyleSheet,
|
|
6
|
-
View
|
|
7
|
-
} from "react-native";
|
|
2
|
+
import { GestureResponderEvent, Pressable, View } from "react-native";
|
|
8
3
|
import Animated, {
|
|
9
4
|
Extrapolate,
|
|
10
5
|
interpolate,
|
|
@@ -23,7 +18,6 @@ import {
|
|
|
23
18
|
hexToRgba,
|
|
24
19
|
useIOExperimentalDesign
|
|
25
20
|
} from "../../core";
|
|
26
|
-
import { makeFontStyleObject } from "../../utils/fonts";
|
|
27
21
|
import { WithTestID } from "../../utils/types";
|
|
28
22
|
import {
|
|
29
23
|
AnimatedIcon,
|
|
@@ -32,7 +26,7 @@ import {
|
|
|
32
26
|
IconClassComponent
|
|
33
27
|
} from "../icons";
|
|
34
28
|
import { HSpacer } from "../spacer/Spacer";
|
|
35
|
-
import { buttonTextFontSize } from "../typography";
|
|
29
|
+
import { IOText, buttonTextFontSize } from "../typography";
|
|
36
30
|
|
|
37
31
|
export type ColorButtonLink = "primary" | "contrast";
|
|
38
32
|
|
|
@@ -102,20 +96,6 @@ const mapLegacyColorStates: Record<
|
|
|
102
96
|
};
|
|
103
97
|
|
|
104
98
|
const DISABLED_OPACITY = 0.5;
|
|
105
|
-
const IOButtonStylesLocal = StyleSheet.create({
|
|
106
|
-
label: {
|
|
107
|
-
...makeFontStyleObject("Regular", false, "ReadexPro"),
|
|
108
|
-
fontSize: buttonTextFontSize
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
113
|
-
const IOButtonLegacyStylesLocal = StyleSheet.create({
|
|
114
|
-
label: {
|
|
115
|
-
fontSize: 16,
|
|
116
|
-
...makeFontStyleObject("Bold", false, "TitilliumSansPro")
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
99
|
|
|
120
100
|
export const ButtonLink = React.forwardRef<View, ButtonLinkProps>(
|
|
121
101
|
(
|
|
@@ -139,10 +119,8 @@ export const ButtonLink = React.forwardRef<View, ButtonLinkProps>(
|
|
|
139
119
|
() => (isExperimental ? mapColorStates : mapLegacyColorStates),
|
|
140
120
|
[isExperimental]
|
|
141
121
|
);
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
[isExperimental]
|
|
145
|
-
);
|
|
122
|
+
|
|
123
|
+
const AnimatedIOText = Animated.createAnimatedComponent(IOText);
|
|
146
124
|
|
|
147
125
|
// Scaling transformation applied when the button is pressed
|
|
148
126
|
const animationScaleValue = IOScaleValues?.basicButton?.pressedState;
|
|
@@ -255,24 +233,23 @@ export const ButtonLink = React.forwardRef<View, ButtonLinkProps>(
|
|
|
255
233
|
<HSpacer size={8} />
|
|
256
234
|
</>
|
|
257
235
|
)}
|
|
258
|
-
<
|
|
236
|
+
<AnimatedIOText
|
|
259
237
|
accessible={false}
|
|
260
238
|
accessibilityElementsHidden
|
|
261
239
|
importantForAccessibility="no-hide-descendants"
|
|
262
|
-
|
|
263
|
-
|
|
240
|
+
font={isExperimental ? "ReadexPro" : "TitilliumSansPro"}
|
|
241
|
+
weight={isExperimental ? "Regular" : "Bold"}
|
|
242
|
+
size={buttonTextFontSize}
|
|
243
|
+
style={
|
|
264
244
|
disabled
|
|
265
245
|
? { color: colorMap[color]?.label?.disabled }
|
|
266
|
-
: {
|
|
267
|
-
|
|
268
|
-
]}
|
|
246
|
+
: { ...pressedColorLabelAnimationStyle }
|
|
247
|
+
}
|
|
269
248
|
numberOfLines={1}
|
|
270
249
|
ellipsizeMode="tail"
|
|
271
|
-
allowFontScaling={isExperimental}
|
|
272
|
-
maxFontSizeMultiplier={1.3}
|
|
273
250
|
>
|
|
274
251
|
{label}
|
|
275
|
-
</
|
|
252
|
+
</AnimatedIOText>
|
|
276
253
|
</Animated.View>
|
|
277
254
|
</Pressable>
|
|
278
255
|
);
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
hexToRgba,
|
|
25
25
|
useIOExperimentalDesign
|
|
26
26
|
} from "../../core/";
|
|
27
|
-
import { makeFontStyleObject } from "../../utils/fonts";
|
|
28
27
|
import { WithTestID } from "../../utils/types";
|
|
29
28
|
import {
|
|
30
29
|
AnimatedIcon,
|
|
@@ -33,7 +32,7 @@ import {
|
|
|
33
32
|
IconClassComponent
|
|
34
33
|
} from "../icons";
|
|
35
34
|
import { HSpacer } from "../spacer/Spacer";
|
|
36
|
-
import { buttonTextFontSize } from "../typography";
|
|
35
|
+
import { IOText, buttonTextFontSize } from "../typography";
|
|
37
36
|
|
|
38
37
|
type ColorButtonOutline = "primary" | "contrast" | "danger";
|
|
39
38
|
export type ButtonOutline = WithTestID<
|
|
@@ -193,11 +192,6 @@ const mapLegacyColorStates: Record<
|
|
|
193
192
|
|
|
194
193
|
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
195
194
|
const IOButtonLegacyStylesLocal = StyleSheet.create({
|
|
196
|
-
// eslint-disable-next-line react-native/no-unused-styles
|
|
197
|
-
label: {
|
|
198
|
-
...makeFontStyleObject("Bold")
|
|
199
|
-
},
|
|
200
|
-
// eslint-disable-next-line react-native/no-unused-styles
|
|
201
195
|
buttonWithBorder: {
|
|
202
196
|
borderWidth: 1
|
|
203
197
|
}
|
|
@@ -209,12 +203,6 @@ const iconSize: IOIconSizeScale = 20;
|
|
|
209
203
|
const DISABLED_OPACITY = 0.5;
|
|
210
204
|
|
|
211
205
|
const IOButtonStylesLocal = StyleSheet.create({
|
|
212
|
-
// eslint-disable-next-line react-native/no-unused-styles
|
|
213
|
-
label: {
|
|
214
|
-
...makeFontStyleObject("Regular", false, "ReadexPro"),
|
|
215
|
-
fontSize: buttonTextFontSize
|
|
216
|
-
},
|
|
217
|
-
// eslint-disable-next-line react-native/no-unused-styles
|
|
218
206
|
buttonWithBorder: {
|
|
219
207
|
borderWidth: 2
|
|
220
208
|
}
|
|
@@ -239,6 +227,8 @@ export const ButtonOutline = React.forwardRef<View, ButtonOutline>(
|
|
|
239
227
|
const { isExperimental } = useIOExperimentalDesign();
|
|
240
228
|
const isPressed: Animated.SharedValue<number> = useSharedValue(0);
|
|
241
229
|
|
|
230
|
+
const AnimatedIOText = Animated.createAnimatedComponent(IOText);
|
|
231
|
+
|
|
242
232
|
const colorMap = React.useMemo(
|
|
243
233
|
() => (isExperimental ? mapColorStates : mapLegacyColorStates),
|
|
244
234
|
[isExperimental]
|
|
@@ -383,25 +373,24 @@ export const ButtonOutline = React.forwardRef<View, ButtonOutline>(
|
|
|
383
373
|
<HSpacer size={8} />
|
|
384
374
|
</>
|
|
385
375
|
)}
|
|
386
|
-
<
|
|
376
|
+
<AnimatedIOText
|
|
377
|
+
font={isExperimental ? "ReadexPro" : "TitilliumSansPro"}
|
|
378
|
+
weight={isExperimental ? "Regular" : "Bold"}
|
|
379
|
+
size={buttonTextFontSize}
|
|
380
|
+
accessible={false}
|
|
381
|
+
accessibilityElementsHidden
|
|
382
|
+
importantForAccessibility="no-hide-descendants"
|
|
383
|
+
numberOfLines={1}
|
|
384
|
+
ellipsizeMode="tail"
|
|
387
385
|
style={[
|
|
388
|
-
buttonStylesLocal.label,
|
|
389
386
|
buttonStyles.label,
|
|
390
387
|
disabled
|
|
391
388
|
? { color: colorMap[color]?.label?.disabled }
|
|
392
|
-
: {
|
|
393
|
-
!disabled && pressedColorLabelAnimationStyle
|
|
389
|
+
: { ...pressedColorLabelAnimationStyle }
|
|
394
390
|
]}
|
|
395
|
-
numberOfLines={1}
|
|
396
|
-
ellipsizeMode="tail"
|
|
397
|
-
allowFontScaling={isExperimental}
|
|
398
|
-
maxFontSizeMultiplier={1.3}
|
|
399
|
-
accessible={false}
|
|
400
|
-
accessibilityElementsHidden
|
|
401
|
-
importantForAccessibility="no-hide-descendants"
|
|
402
391
|
>
|
|
403
392
|
{label}
|
|
404
|
-
</
|
|
393
|
+
</AnimatedIOText>
|
|
405
394
|
</Animated.View>
|
|
406
395
|
</Pressable>
|
|
407
396
|
);
|