@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
|
@@ -76,18 +76,18 @@ exports[`Test Buttons Components - Experimental Enabled ButtonLink Snapshot 1`]
|
|
|
76
76
|
allowFontScaling={true}
|
|
77
77
|
ellipsizeMode="tail"
|
|
78
78
|
importantForAccessibility="no-hide-descendants"
|
|
79
|
-
maxFontSizeMultiplier={1.
|
|
79
|
+
maxFontSizeMultiplier={1.25}
|
|
80
80
|
numberOfLines={1}
|
|
81
81
|
style={
|
|
82
82
|
[
|
|
83
|
+
{},
|
|
83
84
|
{
|
|
85
|
+
"color": "#0E0F13",
|
|
84
86
|
"fontFamily": "Readex Pro",
|
|
85
87
|
"fontSize": 16,
|
|
86
88
|
"fontStyle": "normal",
|
|
87
89
|
"fontWeight": "400",
|
|
88
|
-
|
|
89
|
-
{
|
|
90
|
-
"color": "#0B3EE3",
|
|
90
|
+
"lineHeight": undefined,
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
"color": undefined,
|
|
@@ -183,25 +183,27 @@ exports[`Test Buttons Components - Experimental Enabled ButtonOutline Snapshot 1
|
|
|
183
183
|
allowFontScaling={true}
|
|
184
184
|
ellipsizeMode="tail"
|
|
185
185
|
importantForAccessibility="no-hide-descendants"
|
|
186
|
-
maxFontSizeMultiplier={1.
|
|
186
|
+
maxFontSizeMultiplier={1.25}
|
|
187
187
|
numberOfLines={1}
|
|
188
188
|
style={
|
|
189
189
|
[
|
|
190
|
+
{},
|
|
190
191
|
{
|
|
192
|
+
"color": "#0E0F13",
|
|
191
193
|
"fontFamily": "Readex Pro",
|
|
192
194
|
"fontSize": 16,
|
|
193
195
|
"fontStyle": "normal",
|
|
194
196
|
"fontWeight": "400",
|
|
197
|
+
"lineHeight": undefined,
|
|
195
198
|
},
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
},
|
|
199
|
+
[
|
|
200
|
+
{
|
|
201
|
+
"alignSelf": "center",
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"color": undefined,
|
|
205
|
+
},
|
|
206
|
+
],
|
|
205
207
|
]
|
|
206
208
|
}
|
|
207
209
|
>
|
|
@@ -300,36 +302,26 @@ exports[`Test Buttons Components - Experimental Enabled ButtonSolid Snapshot 1`]
|
|
|
300
302
|
accessibilityElementsHidden={true}
|
|
301
303
|
accessible={false}
|
|
302
304
|
allowFontScaling={true}
|
|
303
|
-
color="white"
|
|
304
|
-
defaultColor="white"
|
|
305
|
-
defaultWeight="Regular"
|
|
306
305
|
ellipsizeMode="tail"
|
|
307
|
-
font="ReadexPro"
|
|
308
|
-
fontStyle={
|
|
309
|
-
{
|
|
310
|
-
"fontSize": 16,
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
306
|
importantForAccessibility="no-hide-descendants"
|
|
314
307
|
maxFontSizeMultiplier={1.25}
|
|
315
308
|
numberOfLines={1}
|
|
316
309
|
style={
|
|
317
310
|
[
|
|
318
|
-
{
|
|
319
|
-
"alignSelf": "center",
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
"fontSize": 16,
|
|
323
|
-
},
|
|
311
|
+
{},
|
|
324
312
|
{
|
|
325
313
|
"color": "#FFFFFF",
|
|
326
314
|
"fontFamily": "Readex Pro",
|
|
315
|
+
"fontSize": 16,
|
|
327
316
|
"fontStyle": "normal",
|
|
328
317
|
"fontWeight": "400",
|
|
318
|
+
"lineHeight": 20,
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"alignSelf": "center",
|
|
329
322
|
},
|
|
330
323
|
]
|
|
331
324
|
}
|
|
332
|
-
weight="Regular"
|
|
333
325
|
>
|
|
334
326
|
label
|
|
335
327
|
</Text>
|
|
@@ -803,18 +795,18 @@ exports[`Test Buttons Components ButtonLink Snapshot 1`] = `
|
|
|
803
795
|
allowFontScaling={false}
|
|
804
796
|
ellipsizeMode="tail"
|
|
805
797
|
importantForAccessibility="no-hide-descendants"
|
|
806
|
-
maxFontSizeMultiplier={1.
|
|
798
|
+
maxFontSizeMultiplier={1.25}
|
|
807
799
|
numberOfLines={1}
|
|
808
800
|
style={
|
|
809
801
|
[
|
|
802
|
+
{},
|
|
810
803
|
{
|
|
804
|
+
"color": "#0E0F13",
|
|
811
805
|
"fontFamily": "Titillium Sans Pro",
|
|
812
806
|
"fontSize": 16,
|
|
813
807
|
"fontStyle": "normal",
|
|
814
808
|
"fontWeight": "700",
|
|
815
|
-
|
|
816
|
-
{
|
|
817
|
-
"color": "#0073E6",
|
|
809
|
+
"lineHeight": undefined,
|
|
818
810
|
},
|
|
819
811
|
{
|
|
820
812
|
"color": undefined,
|
|
@@ -909,24 +901,27 @@ exports[`Test Buttons Components ButtonOutline Snapshot 1`] = `
|
|
|
909
901
|
allowFontScaling={false}
|
|
910
902
|
ellipsizeMode="tail"
|
|
911
903
|
importantForAccessibility="no-hide-descendants"
|
|
912
|
-
maxFontSizeMultiplier={1.
|
|
904
|
+
maxFontSizeMultiplier={1.25}
|
|
913
905
|
numberOfLines={1}
|
|
914
906
|
style={
|
|
915
907
|
[
|
|
908
|
+
{},
|
|
916
909
|
{
|
|
910
|
+
"color": "#0E0F13",
|
|
917
911
|
"fontFamily": "Titillium Sans Pro",
|
|
912
|
+
"fontSize": 16,
|
|
918
913
|
"fontStyle": "normal",
|
|
919
914
|
"fontWeight": "700",
|
|
915
|
+
"lineHeight": undefined,
|
|
920
916
|
},
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
},
|
|
917
|
+
[
|
|
918
|
+
{
|
|
919
|
+
"alignSelf": "center",
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"color": undefined,
|
|
923
|
+
},
|
|
924
|
+
],
|
|
930
925
|
]
|
|
931
926
|
}
|
|
932
927
|
>
|
|
@@ -1024,36 +1019,26 @@ exports[`Test Buttons Components ButtonSolid Snapshot 1`] = `
|
|
|
1024
1019
|
accessibilityElementsHidden={true}
|
|
1025
1020
|
accessible={false}
|
|
1026
1021
|
allowFontScaling={false}
|
|
1027
|
-
color="white"
|
|
1028
|
-
defaultColor="white"
|
|
1029
|
-
defaultWeight="Bold"
|
|
1030
1022
|
ellipsizeMode="tail"
|
|
1031
|
-
font="TitilliumSansPro"
|
|
1032
|
-
fontStyle={
|
|
1033
|
-
{
|
|
1034
|
-
"fontSize": 16,
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
1023
|
importantForAccessibility="no-hide-descendants"
|
|
1038
1024
|
maxFontSizeMultiplier={1.25}
|
|
1039
1025
|
numberOfLines={1}
|
|
1040
1026
|
style={
|
|
1041
1027
|
[
|
|
1042
|
-
{
|
|
1043
|
-
"alignSelf": "center",
|
|
1044
|
-
},
|
|
1045
|
-
{
|
|
1046
|
-
"fontSize": 16,
|
|
1047
|
-
},
|
|
1028
|
+
{},
|
|
1048
1029
|
{
|
|
1049
1030
|
"color": "#FFFFFF",
|
|
1050
1031
|
"fontFamily": "Titillium Sans Pro",
|
|
1032
|
+
"fontSize": 16,
|
|
1051
1033
|
"fontStyle": "normal",
|
|
1052
1034
|
"fontWeight": "700",
|
|
1035
|
+
"lineHeight": 20,
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"alignSelf": "center",
|
|
1053
1039
|
},
|
|
1054
1040
|
]
|
|
1055
1041
|
}
|
|
1056
|
-
weight="Bold"
|
|
1057
1042
|
>
|
|
1058
1043
|
label
|
|
1059
1044
|
</Text>
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
IOPictogramSizeScale,
|
|
9
9
|
IOPictograms,
|
|
10
10
|
Icon,
|
|
11
|
-
|
|
11
|
+
Label,
|
|
12
12
|
Pictogram,
|
|
13
13
|
VSpacer
|
|
14
14
|
} from "../../components";
|
|
@@ -21,12 +21,13 @@ type PartialFeatureInfo = {
|
|
|
21
21
|
|
|
22
22
|
type FeatureInfoActionProps =
|
|
23
23
|
| {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
action: {
|
|
25
|
+
label: string;
|
|
26
|
+
onPress: (event: GestureResponderEvent) => void;
|
|
27
|
+
};
|
|
26
28
|
}
|
|
27
29
|
| {
|
|
28
|
-
|
|
29
|
-
actionOnPress?: never;
|
|
30
|
+
action?: never;
|
|
30
31
|
};
|
|
31
32
|
|
|
32
33
|
type FeatureInfoGraphicProps =
|
|
@@ -56,8 +57,7 @@ export const FeatureInfo = ({
|
|
|
56
57
|
iconName,
|
|
57
58
|
pictogramName,
|
|
58
59
|
body,
|
|
59
|
-
|
|
60
|
-
actionOnPress
|
|
60
|
+
action
|
|
61
61
|
}: FeatureInfoProps) => (
|
|
62
62
|
<View style={[IOStyles.flex, IOStyles.row, IOStyles.alignCenter]}>
|
|
63
63
|
{iconName && (
|
|
@@ -69,21 +69,21 @@ export const FeatureInfo = ({
|
|
|
69
69
|
<HSpacer size={24} />
|
|
70
70
|
<View style={{ flexShrink: 1 }}>
|
|
71
71
|
{renderNode(body)}
|
|
72
|
-
{
|
|
72
|
+
{action && (
|
|
73
73
|
<>
|
|
74
74
|
{/* Add "marginTop" equivalent if body text is present.
|
|
75
75
|
This verbose code could be deleted once we got "gap"
|
|
76
76
|
property support */}
|
|
77
77
|
{body && <VSpacer size={4} />}
|
|
78
|
-
<
|
|
79
|
-
|
|
80
|
-
onPress={
|
|
78
|
+
<Label
|
|
79
|
+
asLink
|
|
80
|
+
onPress={action.onPress}
|
|
81
81
|
accessible
|
|
82
82
|
importantForAccessibility={"yes"}
|
|
83
83
|
accessibilityElementsHidden={false}
|
|
84
84
|
>
|
|
85
|
-
{
|
|
86
|
-
</
|
|
85
|
+
{action.label}
|
|
86
|
+
</Label>
|
|
87
87
|
</>
|
|
88
88
|
)}
|
|
89
89
|
</View>
|
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
useIOTheme
|
|
25
25
|
} from "../../core";
|
|
26
26
|
import type { IOSpacer, IOSpacingScale } from "../../core/IOSpacing";
|
|
27
|
-
import { makeFontStyleObject } from "../../utils/fonts";
|
|
28
27
|
import { WithTestID } from "../../utils/types";
|
|
29
28
|
import IconButton from "../buttons/IconButton";
|
|
30
29
|
import { HSpacer } from "../spacer";
|
|
30
|
+
import { IOText } from "../typography";
|
|
31
31
|
import { ActionProp } from "./common";
|
|
32
32
|
|
|
33
33
|
type ScrollValues = {
|
|
@@ -103,16 +103,6 @@ const styles = StyleSheet.create({
|
|
|
103
103
|
flexGrow: 1,
|
|
104
104
|
flexShrink: 1,
|
|
105
105
|
marginHorizontal: titleHorizontalMargin
|
|
106
|
-
},
|
|
107
|
-
headerTitle: {
|
|
108
|
-
fontSize: 14,
|
|
109
|
-
textAlign: "center"
|
|
110
|
-
},
|
|
111
|
-
headerTitleFont: {
|
|
112
|
-
...makeFontStyleObject("Regular", false, "ReadexPro")
|
|
113
|
-
},
|
|
114
|
-
headerTitleLegacyFont: {
|
|
115
|
-
...makeFontStyleObject("Semibold", false, "TitilliumSansPro")
|
|
116
106
|
}
|
|
117
107
|
});
|
|
118
108
|
|
|
@@ -144,6 +134,8 @@ export const HeaderSecondLevel = ({
|
|
|
144
134
|
const insets = useSafeAreaInsets();
|
|
145
135
|
const isTitleAccessible = React.useMemo(() => !!title.trim(), [title]);
|
|
146
136
|
|
|
137
|
+
const AnimatedIOText = Animated.createAnimatedComponent(IOText);
|
|
138
|
+
|
|
147
139
|
const iconButtonColor: ComponentProps<typeof IconButton>["color"] =
|
|
148
140
|
variant === "neutral" ? "neutral" : "contrast";
|
|
149
141
|
const titleColor: ColorValue =
|
|
@@ -240,20 +232,19 @@ export const HeaderSecondLevel = ({
|
|
|
240
232
|
accessibilityRole="header"
|
|
241
233
|
style={styles.titleContainer}
|
|
242
234
|
>
|
|
243
|
-
<
|
|
235
|
+
<AnimatedIOText
|
|
236
|
+
size={14}
|
|
244
237
|
numberOfLines={1}
|
|
245
238
|
accessible={false}
|
|
239
|
+
font={isExperimental ? "ReadexPro" : "TitilliumSansPro"}
|
|
240
|
+
weight={isExperimental ? "Regular" : "Semibold"}
|
|
246
241
|
style={[
|
|
247
|
-
|
|
248
|
-
{ color: titleColor },
|
|
249
|
-
isExperimental
|
|
250
|
-
? styles.headerTitleFont
|
|
251
|
-
: styles.headerTitleLegacyFont,
|
|
242
|
+
{ color: titleColor, textAlign: "center" },
|
|
252
243
|
titleAnimatedStyle
|
|
253
244
|
]}
|
|
254
245
|
>
|
|
255
246
|
{title}
|
|
256
|
-
</
|
|
247
|
+
</AnimatedIOText>
|
|
257
248
|
</View>
|
|
258
249
|
<View style={[IOStyles.row, { flexShrink: 0 }]}>
|
|
259
250
|
{type === "threeActions" && (
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import React, { useCallback } from "react";
|
|
2
|
-
import {
|
|
3
|
-
GestureResponderEvent,
|
|
4
|
-
Pressable,
|
|
5
|
-
StyleSheet,
|
|
6
|
-
Text,
|
|
7
|
-
View
|
|
8
|
-
} from "react-native";
|
|
1
|
+
import React, { ComponentProps, useCallback, useMemo } from "react";
|
|
2
|
+
import { GestureResponderEvent, Pressable, View } from "react-native";
|
|
9
3
|
import Animated, {
|
|
10
4
|
Extrapolate,
|
|
11
5
|
interpolate,
|
|
@@ -21,41 +15,23 @@ import {
|
|
|
21
15
|
IOListItemVisualParams,
|
|
22
16
|
IOScaleValues,
|
|
23
17
|
IOSpringValues,
|
|
24
|
-
IOStyles,
|
|
25
18
|
hexToRgba,
|
|
26
|
-
useIOExperimentalDesign,
|
|
27
19
|
useIOTheme
|
|
28
20
|
} from "../../core";
|
|
29
|
-
import { makeFontStyleObject } from "../../utils/fonts";
|
|
30
21
|
import { WithTestID } from "../../utils/types";
|
|
31
|
-
import { AnimatedIcon, IOIcons
|
|
32
|
-
import {
|
|
22
|
+
import { AnimatedIcon, IOIcons } from "../icons";
|
|
23
|
+
import { ButtonText } from "../typography/ButtonText";
|
|
33
24
|
|
|
34
25
|
export type ListItemAction = WithTestID<{
|
|
35
26
|
label: string;
|
|
36
27
|
variant: "primary" | "danger";
|
|
37
28
|
onPress: (event: GestureResponderEvent) => void;
|
|
38
29
|
icon?: IOIcons;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
label: {
|
|
45
|
-
fontSize: buttonTextFontSize,
|
|
46
|
-
lineHeight: 20,
|
|
47
|
-
...makeFontStyleObject("Regular", false, "ReadexPro")
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
52
|
-
const legacyStyles = StyleSheet.create({
|
|
53
|
-
labelLegacy: {
|
|
54
|
-
fontSize: buttonTextFontSize,
|
|
55
|
-
lineHeight: 20,
|
|
56
|
-
...makeFontStyleObject("Semibold", false, "TitilliumSansPro")
|
|
57
|
-
}
|
|
58
|
-
});
|
|
30
|
+
}> &
|
|
31
|
+
Pick<
|
|
32
|
+
ComponentProps<typeof Pressable>,
|
|
33
|
+
"accessibilityLabel" | "accessibilityHint"
|
|
34
|
+
>;
|
|
59
35
|
|
|
60
36
|
export const ListItemAction = ({
|
|
61
37
|
variant,
|
|
@@ -63,65 +39,31 @@ export const ListItemAction = ({
|
|
|
63
39
|
onPress,
|
|
64
40
|
icon,
|
|
65
41
|
accessibilityLabel,
|
|
42
|
+
accessibilityHint,
|
|
66
43
|
testID
|
|
67
44
|
}: ListItemAction) => {
|
|
68
45
|
const isPressed = useSharedValue(0);
|
|
69
46
|
|
|
70
|
-
const { isExperimental } = useIOExperimentalDesign();
|
|
71
47
|
const theme = useIOTheme();
|
|
72
48
|
|
|
49
|
+
const listItemAccessibilityLabel = useMemo(
|
|
50
|
+
() => (accessibilityLabel ? accessibilityLabel : `${label}`),
|
|
51
|
+
[label, accessibilityLabel]
|
|
52
|
+
);
|
|
53
|
+
|
|
73
54
|
const mapBackgroundStates: Record<string, string> = {
|
|
74
55
|
default: hexToRgba(IOColors[theme["listItem-pressed"]], 0),
|
|
75
56
|
pressed: IOColors[theme["listItem-pressed"]]
|
|
76
57
|
};
|
|
77
58
|
|
|
78
|
-
const mapLegacyForegroundColor: Record<
|
|
79
|
-
NonNullable<ListItemAction["variant"]>,
|
|
80
|
-
IOColors
|
|
81
|
-
> = {
|
|
82
|
-
primary: "blue",
|
|
83
|
-
danger: "error-600"
|
|
84
|
-
};
|
|
85
|
-
|
|
86
59
|
const mapForegroundColor: Record<
|
|
87
60
|
NonNullable<ListItemAction["variant"]>,
|
|
88
|
-
|
|
61
|
+
IOColors
|
|
89
62
|
> = {
|
|
90
|
-
primary:
|
|
91
|
-
danger:
|
|
63
|
+
primary: theme["interactiveElem-default"],
|
|
64
|
+
danger: theme.errorText
|
|
92
65
|
};
|
|
93
66
|
|
|
94
|
-
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
95
|
-
const legacyItemActionIcon = (icon: IOIcons) => (
|
|
96
|
-
<Icon
|
|
97
|
-
name={icon}
|
|
98
|
-
color={mapLegacyForegroundColor[variant]}
|
|
99
|
-
size={IOListItemVisualParams.iconSize}
|
|
100
|
-
/>
|
|
101
|
-
);
|
|
102
|
-
|
|
103
|
-
const itemActionIcon = (icon: IOIcons) => (
|
|
104
|
-
<>
|
|
105
|
-
<AnimatedIcon
|
|
106
|
-
name={icon}
|
|
107
|
-
color={mapForegroundColor[variant] as IOColors}
|
|
108
|
-
size={IOListItemVisualParams.iconSize}
|
|
109
|
-
/>
|
|
110
|
-
</>
|
|
111
|
-
);
|
|
112
|
-
|
|
113
|
-
const itemActionIconComponent = (icon: IOIcons) =>
|
|
114
|
-
isExperimental ? itemActionIcon(icon) : legacyItemActionIcon(icon);
|
|
115
|
-
|
|
116
|
-
const textStyle = [styles.label, { color: mapForegroundColor[variant] }];
|
|
117
|
-
|
|
118
|
-
const legacyTextStyle = [
|
|
119
|
-
legacyStyles.labelLegacy,
|
|
120
|
-
{ color: IOColors[mapLegacyForegroundColor[variant]] }
|
|
121
|
-
];
|
|
122
|
-
|
|
123
|
-
const textStyleComponent = isExperimental ? textStyle : legacyTextStyle;
|
|
124
|
-
|
|
125
67
|
// Scaling transformation applied when the button is pressed
|
|
126
68
|
const animationScaleValue = IOScaleValues?.basicButton?.pressedState;
|
|
127
69
|
|
|
@@ -171,24 +113,30 @@ export const ListItemAction = ({
|
|
|
171
113
|
onPressOut={handlePressOut}
|
|
172
114
|
onTouchEnd={handlePressOut}
|
|
173
115
|
accessible={true}
|
|
174
|
-
accessibilityLabel={
|
|
116
|
+
accessibilityLabel={listItemAccessibilityLabel}
|
|
117
|
+
accessibilityHint={accessibilityHint}
|
|
175
118
|
accessibilityRole="button"
|
|
176
119
|
testID={testID}
|
|
177
120
|
>
|
|
178
121
|
<Animated.View
|
|
179
122
|
style={[IOListItemStyles.listItem, animatedBackgroundStyle]}
|
|
180
123
|
importantForAccessibility="no-hide-descendants"
|
|
124
|
+
accessibilityElementsHidden
|
|
181
125
|
>
|
|
182
126
|
<Animated.View
|
|
183
127
|
style={[IOListItemStyles.listItemInner, animatedScaleStyle]}
|
|
184
128
|
>
|
|
185
129
|
{icon && (
|
|
186
130
|
<View style={{ marginRight: IOListItemVisualParams.iconMargin }}>
|
|
187
|
-
|
|
131
|
+
<AnimatedIcon
|
|
132
|
+
name={icon}
|
|
133
|
+
color={IOColors[mapForegroundColor[variant]]}
|
|
134
|
+
size={IOListItemVisualParams.iconSize}
|
|
135
|
+
/>
|
|
188
136
|
</View>
|
|
189
137
|
)}
|
|
190
|
-
<View style={
|
|
191
|
-
<
|
|
138
|
+
<View style={{ flexGrow: 1 }}>
|
|
139
|
+
<ButtonText color={mapForegroundColor[variant]}>{label}</ButtonText>
|
|
192
140
|
</View>
|
|
193
141
|
</Animated.View>
|
|
194
142
|
</Animated.View>
|
|
@@ -54,9 +54,7 @@ export const ListItemAmount = ({
|
|
|
54
54
|
importantForAccessibility={"no-hide-descendants"}
|
|
55
55
|
accessibilityElementsHidden={false}
|
|
56
56
|
>
|
|
57
|
-
<H6
|
|
58
|
-
{label}
|
|
59
|
-
</H6>
|
|
57
|
+
<H6 color={theme["textBody-tertiary"]}>{label}</H6>
|
|
60
58
|
</View>
|
|
61
59
|
);
|
|
62
60
|
|
|
@@ -80,9 +78,8 @@ export const ListItemAmount = ({
|
|
|
80
78
|
<View style={IOStyles.flex}>{itemInfoTextComponent}</View>
|
|
81
79
|
<HSpacer size={4} />
|
|
82
80
|
<H3
|
|
83
|
-
weight={"Semibold"}
|
|
84
|
-
color={"black"}
|
|
85
81
|
{...valueElementProps}
|
|
82
|
+
color={theme["textBody-default"]}
|
|
86
83
|
accessibilityLabel={`${listItemAccessibilityLabel}; ${
|
|
87
84
|
valueElementProps?.accessibilityLabel ?? ""
|
|
88
85
|
}`}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useCallback } from "react";
|
|
1
|
+
import React, { ComponentProps, useCallback, useMemo } from "react";
|
|
2
2
|
import { GestureResponderEvent, Pressable, View } from "react-native";
|
|
3
3
|
import Animated, {
|
|
4
4
|
Extrapolate,
|
|
@@ -30,9 +30,11 @@ export type ListItemInfoCopy = WithTestID<{
|
|
|
30
30
|
numberOfLines?: number;
|
|
31
31
|
onPress: (event: GestureResponderEvent) => void;
|
|
32
32
|
icon?: IOIcons;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
}> &
|
|
34
|
+
Pick<
|
|
35
|
+
ComponentProps<typeof Pressable>,
|
|
36
|
+
"accessibilityLabel" | "accessibilityHint"
|
|
37
|
+
>;
|
|
36
38
|
|
|
37
39
|
export const ListItemInfoCopy = ({
|
|
38
40
|
label,
|
|
@@ -41,12 +43,26 @@ export const ListItemInfoCopy = ({
|
|
|
41
43
|
onPress,
|
|
42
44
|
icon,
|
|
43
45
|
accessibilityLabel,
|
|
46
|
+
accessibilityHint,
|
|
44
47
|
testID
|
|
45
48
|
}: ListItemInfoCopy) => {
|
|
46
49
|
const isPressed = useSharedValue(0);
|
|
47
50
|
const { isExperimental } = useIOExperimentalDesign();
|
|
48
51
|
const theme = useIOTheme();
|
|
49
52
|
|
|
53
|
+
const componentValueToAccessibility = useMemo(
|
|
54
|
+
() => (typeof value === "string" ? value : ""),
|
|
55
|
+
[value]
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
const listItemAccessibilityLabel = useMemo(
|
|
59
|
+
() =>
|
|
60
|
+
accessibilityLabel
|
|
61
|
+
? accessibilityLabel
|
|
62
|
+
: `${label}; ${componentValueToAccessibility}`,
|
|
63
|
+
[label, componentValueToAccessibility, accessibilityLabel]
|
|
64
|
+
);
|
|
65
|
+
|
|
50
66
|
const foregroundColor = isExperimental
|
|
51
67
|
? theme["interactiveElem-default"]
|
|
52
68
|
: "blue";
|
|
@@ -120,12 +136,14 @@ export const ListItemInfoCopy = ({
|
|
|
120
136
|
onPressIn={handlePressIn}
|
|
121
137
|
onPressOut={handlePressOut}
|
|
122
138
|
accessible={true}
|
|
123
|
-
accessibilityLabel={
|
|
139
|
+
accessibilityLabel={listItemAccessibilityLabel}
|
|
140
|
+
accessibilityHint={accessibilityHint}
|
|
124
141
|
accessibilityRole="button"
|
|
125
142
|
testID={testID}
|
|
126
143
|
>
|
|
127
144
|
<Animated.View
|
|
128
145
|
importantForAccessibility="no-hide-descendants"
|
|
146
|
+
accessibilityElementsHidden
|
|
129
147
|
style={[IOListItemStyles.listItem, animatedBackgroundStyle]}
|
|
130
148
|
>
|
|
131
149
|
<Animated.View
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useCallback } from "react";
|
|
1
|
+
import React, { ComponentProps, useCallback, useMemo } from "react";
|
|
2
2
|
import { GestureResponderEvent, Pressable, View } from "react-native";
|
|
3
3
|
import Animated, {
|
|
4
4
|
Extrapolate,
|
|
@@ -29,9 +29,11 @@ export type ListItemNavAlert = WithTestID<{
|
|
|
29
29
|
description?: string | React.ReactNode;
|
|
30
30
|
withoutIcon?: boolean;
|
|
31
31
|
onPress: (event: GestureResponderEvent) => void;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
}> &
|
|
33
|
+
Pick<
|
|
34
|
+
ComponentProps<typeof Pressable>,
|
|
35
|
+
"accessibilityLabel" | "accessibilityHint"
|
|
36
|
+
>;
|
|
35
37
|
|
|
36
38
|
export const ListItemNavAlert = ({
|
|
37
39
|
value,
|
|
@@ -39,11 +41,33 @@ export const ListItemNavAlert = ({
|
|
|
39
41
|
withoutIcon = false,
|
|
40
42
|
onPress,
|
|
41
43
|
accessibilityLabel,
|
|
44
|
+
accessibilityHint,
|
|
42
45
|
testID
|
|
43
46
|
}: ListItemNavAlert) => {
|
|
44
47
|
const isPressed: Animated.SharedValue<number> = useSharedValue(0);
|
|
45
48
|
const { isExperimental } = useIOExperimentalDesign();
|
|
46
49
|
|
|
50
|
+
const componentValueToAccessibility = useMemo(
|
|
51
|
+
() => (typeof value === "string" ? value : ""),
|
|
52
|
+
[value]
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
const componentDescriptionToAccessibility = useMemo(
|
|
56
|
+
() => (typeof description === "string" ? description : ""),
|
|
57
|
+
[description]
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
const listItemAccessibilityLabel = useMemo(
|
|
61
|
+
() =>
|
|
62
|
+
accessibilityLabel
|
|
63
|
+
? accessibilityLabel
|
|
64
|
+
: `${componentValueToAccessibility}; ${componentDescriptionToAccessibility}`,
|
|
65
|
+
[
|
|
66
|
+
componentDescriptionToAccessibility,
|
|
67
|
+
componentValueToAccessibility,
|
|
68
|
+
accessibilityLabel
|
|
69
|
+
]
|
|
70
|
+
);
|
|
47
71
|
const theme = useIOTheme();
|
|
48
72
|
|
|
49
73
|
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
@@ -124,12 +148,15 @@ export const ListItemNavAlert = ({
|
|
|
124
148
|
onPressIn={handlePressIn}
|
|
125
149
|
onPressOut={handlePressOut}
|
|
126
150
|
accessible={true}
|
|
127
|
-
accessibilityLabel={
|
|
151
|
+
accessibilityLabel={listItemAccessibilityLabel}
|
|
152
|
+
accessibilityHint={accessibilityHint}
|
|
128
153
|
accessibilityRole="button"
|
|
129
154
|
testID={testID}
|
|
130
155
|
>
|
|
131
156
|
<Animated.View
|
|
132
157
|
style={[IOListItemStyles.listItem, animatedBackgroundStyle]}
|
|
158
|
+
importantForAccessibility="no-hide-descendants"
|
|
159
|
+
accessibilityElementsHidden
|
|
133
160
|
>
|
|
134
161
|
<Animated.View
|
|
135
162
|
style={[IOListItemStyles.listItemInner, animatedScaleStyle]}
|
|
@@ -12,7 +12,7 @@ import { LoadingSpinner } from "../loadingSpinner";
|
|
|
12
12
|
import { IOLogoPaymentType, LogoPayment } from "../logos";
|
|
13
13
|
import { HSpacer, VSpacer } from "../spacer";
|
|
14
14
|
import { NativeSwitch } from "../switch/NativeSwitch";
|
|
15
|
-
import { H6,
|
|
15
|
+
import { H6, LabelMini, LabelSmall } from "../typography";
|
|
16
16
|
|
|
17
17
|
type PartialProps = WithTestID<{
|
|
18
18
|
label: string;
|
|
@@ -186,9 +186,9 @@ export const ListItemSwitch = React.memo(
|
|
|
186
186
|
{action && (
|
|
187
187
|
<>
|
|
188
188
|
<VSpacer size={IOSelectionListItemVisualParams.actionMargin} />
|
|
189
|
-
<
|
|
189
|
+
<LabelMini asLink onPress={action.onPress}>
|
|
190
190
|
{action.label}
|
|
191
|
-
</
|
|
191
|
+
</LabelMini>
|
|
192
192
|
</>
|
|
193
193
|
)}
|
|
194
194
|
</View>
|