@pagopa/io-app-design-system 1.42.0 → 2.0.0-1
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 +12 -50
- 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/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 +83 -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/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 +92 -557
- 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/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 +16 -54
- 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/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 +83 -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/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 +92 -557
- 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/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.map +1 -1
- package/lib/typescript/components/listitems/ListItemAmount.d.ts.map +1 -1
- package/lib/typescript/components/modules/ModuleIDP.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/IOStyles.d.ts +0 -3
- 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 +19 -23
- package/lib/typescript/utils/fonts.d.ts.map +1 -1
- package/package.json +1 -1
- 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 +13 -75
- package/src/components/listitems/ListItemAmount.tsx +2 -5
- package/src/components/listitems/ListItemSwitch.tsx +3 -3
- package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +83 -347
- package/src/components/modules/ModuleIDP.tsx +15 -32
- package/src/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +30 -150
- 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 +92 -557
- 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/IOStyles.ts +1 -5
- package/src/utils/accessibility.ts +31 -0
- package/src/utils/fonts.ts +94 -50
- 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/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/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/typography/LabelHeader.tsx +0 -56
- package/src/components/typography/LabelLink.tsx +0 -61
- package/src/components/typography/markdown/MdH4.tsx +0 -34
- package/src/components/typography/markdown/MdH5.tsx +0 -32
- package/src/components/typography/markdown/MdH6.tsx +0 -33
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { ExternalTypographyProps, TypographyProps } from "../common";
|
|
5
|
-
type AllowedColors = Extract<IOTheme, "textHeading-default"> | IOColors;
|
|
6
|
-
type AllowedWeight = Extract<IOFontWeight, "Regular">;
|
|
7
|
-
type MdH3Props = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { View } from "react-native";
|
|
3
|
+
import { IOTextProps } from "../IOText";
|
|
8
4
|
/**
|
|
9
5
|
* `MdH3` typographic style
|
|
10
6
|
*/
|
|
11
|
-
export declare const MdH3:
|
|
12
|
-
|
|
7
|
+
export declare const MdH3: React.ForwardRefExoticComponent<Omit<IOTextProps, "style" | "size" | "color" | "font" | "fontStyle" | "lineHeight" | "weight"> & {
|
|
8
|
+
textStyle?: import("../IOText").IOTextStyle | undefined;
|
|
9
|
+
style?: import("../IOText").IOTextStyle | undefined;
|
|
10
|
+
} & {
|
|
11
|
+
color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-450" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-100" | "blueItalia-50" | "blue-600" | "blue-50" | "greyUltraLight" | "greyLight" | "bluegreyLight" | "grey" | "bluegrey" | "bluegreyDark" | "blue" | "blueUltraLight" | "aqua" | "aquaUltraLight" | "antiqueFuchsia" | "orange" | "red" | "green" | "greenLight" | undefined;
|
|
12
|
+
} & React.RefAttributes<View>>;
|
|
13
13
|
//# sourceMappingURL=MdH3.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MdH3.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/markdown/MdH3.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MdH3.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/markdown/MdH3.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmC,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAU,WAAW,EAAyB,MAAM,WAAW,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,IAAI;;;;;8BAoBhB,CAAC"}
|
|
@@ -180,27 +180,9 @@ export declare const IOColorsExtra: {
|
|
|
180
180
|
"blue-50": string;
|
|
181
181
|
};
|
|
182
182
|
export type IOColorsExtra = keyof typeof IOColorsExtra;
|
|
183
|
+
declare const themeKeys: readonly ["appBackground-primary", "appBackground-secondary", "appBackground-tertiary", "appBackground-accent", "interactiveElem-default", "interactiveElem-pressed", "listItem-pressed", "textHeading-default", "textHeading-secondary", "textHeading-tertiary", "textBody-default", "textBody-secondary", "textBody-tertiary", "cardBorder-default", "icon-default", "icon-decorative", "divider-default", "errorIcon", "errorText", "pictogram-hands", "pictogram-tint-main", "pictogram-tint-secondary"];
|
|
183
184
|
export type IOTheme = {
|
|
184
|
-
|
|
185
|
-
"appBackground-secondary": IOColors;
|
|
186
|
-
"appBackground-tertiary": IOColors;
|
|
187
|
-
"appBackground-accent": IOColors;
|
|
188
|
-
"interactiveElem-default": IOColors;
|
|
189
|
-
"interactiveElem-pressed": IOColors;
|
|
190
|
-
"listItem-pressed": IOColors;
|
|
191
|
-
"textHeading-default": IOColors;
|
|
192
|
-
"textBody-default": IOColors;
|
|
193
|
-
"textBody-secondary": IOColors;
|
|
194
|
-
"textBody-tertiary": IOColors;
|
|
195
|
-
"cardBorder-default": IOColors;
|
|
196
|
-
"icon-default": IOColors;
|
|
197
|
-
"icon-decorative": IOColors;
|
|
198
|
-
"divider-default": IOColors;
|
|
199
|
-
errorIcon: IOColors;
|
|
200
|
-
errorText: IOColors;
|
|
201
|
-
"pictogram-hands": IOColors;
|
|
202
|
-
"pictogram-tint-main": IOColors;
|
|
203
|
-
"pictogram-tint-secondary": IOColors;
|
|
185
|
+
[K in (typeof themeKeys)[number]]: IOColors;
|
|
204
186
|
};
|
|
205
187
|
export declare const IOThemeLight: IOTheme;
|
|
206
188
|
export declare const IOThemeLightLegacy: IOTheme;
|
|
@@ -232,4 +214,5 @@ Return the color value with RGBA format (RGB + Alpha transparency), starting fro
|
|
|
232
214
|
@param opacity Opacity value that range from 0 to 1. Default value = 1.
|
|
233
215
|
*/
|
|
234
216
|
export declare const hexToRgba: (hexCode: ColorValue, opacity?: number) => string;
|
|
217
|
+
export {};
|
|
235
218
|
//# sourceMappingURL=IOColors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOColors.d.ts","sourceRoot":"","sources":["../../../src/core/IOColors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,cAAc,MAAM,8BAA8B,CAAC;AAyB/D,eAAO,MAA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AAa;;;;;;;;CAQzB,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,aAAa,CAAC;AAMvD,QAAA,MAAM,SAAS,8eA6BL,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG;KACnB,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,GAAG,QAAQ;CAC5C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,OA6B1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,OAKhC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,OA4BzB,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;CAiBrC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GACpC,MAAM,OAAO,0BAA0B,CAAC;AAE1C,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAC5C,WAAW,CAAC,0BAA0B,CAAC,EACvC,cAAc,CAkBf,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,MAAM,OAAO,yBAAyB,CAAC;AAM/E;;;;GAIG;AAEH,eAAO,MAAM,SAAS,YAAa,UAAU,YAAW,MAAM,WAQ7D,CAAC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { Text } from "react-native";
|
|
2
|
-
import { ComponentProps } from "react";
|
|
3
1
|
import { IOIconSizeScale } from "../components/icons";
|
|
4
2
|
import { IOColors } from "./IOColors";
|
|
5
3
|
import { IOAppMargin, IOSpacer, IOSpacingScale } from "./IOSpacing";
|
|
@@ -9,7 +7,6 @@ import { IOAppMargin, IOSpacer, IOSpacingScale } from "./IOSpacing";
|
|
|
9
7
|
interface IOVisualCostants {
|
|
10
8
|
appMarginDefault: IOAppMargin;
|
|
11
9
|
headerHeight: number;
|
|
12
|
-
maxFontSizeMultiplier: ComponentProps<typeof Text>["maxFontSizeMultiplier"];
|
|
13
10
|
avatarSizeSmall: number;
|
|
14
11
|
avatarSizeMedium: number;
|
|
15
12
|
avatarRadiusSizeSmall: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOStyles.d.ts","sourceRoot":"","sources":["../../../src/core/IOStyles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IOStyles.d.ts","sourceRoot":"","sources":["../../../src/core/IOStyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EACL,WAAW,EAGX,QAAQ,EACR,cAAc,EACf,MAAM,aAAa,CAAC;AAErB;;GAEG;AAEH,UAAU,gBAAgB;IACxB,gBAAgB,EAAE,WAAW,CAAC;IAE9B,YAAY,EAAE,MAAM,CAAC;IAErB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,wBAAwB,EAAE,MAAM,CAAC;IACjC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,UAAU,EAAE,cAAc,CAAC;CAC5B;AAED,eAAO,MAAM,gBAAgB,EAAE,gBAW9B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDnB,CAAC;AAeH,eAAO,MAAM,iBAAiB,EAAE,MAAuB,CAAC;AAGxD,eAAO,MAAM,gBAAgB,EAAE,MAAW,CAAC;AAE3C,eAAO,MAAM,gBAAgB,EAAE,MAAW,CAAC;AAE3C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;CAsC/B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDzB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;CAsB7B,CA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,EAAE,QAAQ,CAAC;IACvB,QAAQ,EAAE,eAAe,CAAC;IAC1B,iBAAiB,EAAE,QAAQ,CAAC;CAC7B;AAED,eAAO,MAAM,+BAA+B,EAAE,+BAQ3C,CAAC;AAEJ,eAAO,MAAM,yBAAyB;;;;;;;;;;;CAWpC,CAAC"}
|
|
@@ -3,4 +3,9 @@
|
|
|
3
3
|
* with the correct minus symbol pronunciation.
|
|
4
4
|
*/
|
|
5
5
|
export declare const getAccessibleAmountText: (amount?: string) => string | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* Query whether a bold text is currently enabled. The result is true
|
|
8
|
+
* when bold text is enabled and false otherwise.
|
|
9
|
+
*/
|
|
10
|
+
export declare const useBoldTextEnabled: () => boolean;
|
|
6
11
|
//# sourceMappingURL=accessibility.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessibility.d.ts","sourceRoot":"","sources":["../../../src/utils/accessibility.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"accessibility.d.ts","sourceRoot":"","sources":["../../../src/utils/accessibility.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,eAAO,MAAM,uBAAuB,YAAa,MAAM,uBAQpD,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,kBAAkB,eAuB9B,CAAC"}
|
|
@@ -3,39 +3,34 @@
|
|
|
3
3
|
* Fonts are managed differently on Android and iOS. Read the Font section of the
|
|
4
4
|
* README file included in this repository.
|
|
5
5
|
*/
|
|
6
|
+
import { TextStyle } from "react-native";
|
|
6
7
|
/**
|
|
7
8
|
* Choose the font name based on the platform
|
|
8
9
|
*/
|
|
9
10
|
declare const fonts: {
|
|
10
|
-
TitilliumSansPro: string
|
|
11
|
-
ReadexPro: string
|
|
12
|
-
DMMono: string
|
|
11
|
+
TitilliumSansPro: string;
|
|
12
|
+
ReadexPro: string;
|
|
13
|
+
DMMono: string;
|
|
13
14
|
};
|
|
14
15
|
export type IOFontFamily = keyof typeof fonts;
|
|
16
|
+
declare const allFontSizes: (22 | 16 | 12 | 20 | 32 | 14 | 18 | 28 | 26 | 31 | 35)[];
|
|
17
|
+
export type IOFontSize = (typeof allFontSizes)[number];
|
|
15
18
|
declare const weights: readonly ["Light", "Regular", "Medium", "Semibold", "Bold"];
|
|
16
19
|
export type IOFontWeight = (typeof weights)[number];
|
|
17
20
|
declare const weightValues: readonly ["300", "400", "500", "600", "700"];
|
|
18
|
-
export type
|
|
21
|
+
export type IOFontWeightNumeric = (typeof weightValues)[number];
|
|
19
22
|
/**
|
|
20
23
|
* Mapping between the nominal description of the weight (also the postfix used on Android) and the numeric value
|
|
21
24
|
* used on iOS
|
|
22
25
|
*/
|
|
23
|
-
export declare const fontWeights: Record<IOFontWeight,
|
|
24
|
-
export type FontFamily = keyof typeof fonts;
|
|
25
|
-
export type FontWeight = keyof typeof fontWeights;
|
|
26
|
-
/**
|
|
27
|
-
* Mapping between the nominal description of the weight (also the postfix used on Android) and the numeric value
|
|
28
|
-
* used on iOS
|
|
29
|
-
*/
|
|
30
|
-
export declare const fontWeightsMap: Record<IOFontWeight, FontWeightValue>;
|
|
31
|
-
export declare enum FontStyle {
|
|
32
|
-
"normal" = "normal",
|
|
33
|
-
"italic" = "italic"
|
|
34
|
-
}
|
|
26
|
+
export declare const fontWeights: Record<IOFontWeight, IOFontWeightNumeric>;
|
|
35
27
|
type FontStyleObject = {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
fontSize: IOFontSize;
|
|
29
|
+
fontFamily: string | IOFontFamily;
|
|
30
|
+
fontWeight?: IOFontWeightNumeric;
|
|
31
|
+
lineHeight?: TextStyle["lineHeight"];
|
|
32
|
+
fontStyle?: TextStyle["fontStyle"];
|
|
33
|
+
boldEnabled?: boolean;
|
|
39
34
|
};
|
|
40
35
|
/**
|
|
41
36
|
* Get the correct `fontFamily` name on both Android and iOS.
|
|
@@ -43,13 +38,14 @@ type FontStyleObject = {
|
|
|
43
38
|
* @param weight
|
|
44
39
|
* @param isItalic
|
|
45
40
|
*/
|
|
46
|
-
export declare const makeFontFamilyName: (font:
|
|
41
|
+
export declare const makeFontFamilyName: (font: IOFontFamily, weight?: IOFontWeight, fontStyle?: TextStyle["fontStyle"]) => FontStyleObject["fontFamily"];
|
|
47
42
|
/**
|
|
48
43
|
* Return a {@link FontStyleObject} with the fields filled based on the platform (iOS or Android).
|
|
49
|
-
* @param
|
|
50
|
-
* @param isItalic
|
|
44
|
+
* @param size
|
|
51
45
|
* @param font
|
|
46
|
+
* @param weight
|
|
47
|
+
* @param fontStyle
|
|
52
48
|
*/
|
|
53
|
-
export declare const makeFontStyleObject: (
|
|
49
|
+
export declare const makeFontStyleObject: (size: 22 | 16 | 12 | 20 | 32 | 14 | 18 | 28 | 26 | 31 | 35 | undefined, font: "TitilliumSansPro" | "ReadexPro" | "DMMono" | undefined, lineHeight: TextStyle["lineHeight"], weight?: IOFontWeight, fontStyle?: TextStyle["fontStyle"], boldEnabled?: boolean) => FontStyleObject;
|
|
54
50
|
export {};
|
|
55
51
|
//# sourceMappingURL=fonts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../src/utils/fonts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../src/utils/fonts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAY,SAAS,EAAE,MAAM,cAAc,CAAC;AAEnD;;GAEG;AACH,QAAA,MAAM,KAAK;;;;CAmBV,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,KAAK,CAAC;AAO9C,QAAA,MAAM,YAAY,0DAAmD,CAAC;AACtE,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAMvD,QAAA,MAAM,OAAO,6DAA8D,CAAC;AAC5E,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpD,QAAA,MAAM,YAAY,8CAA+C,CAAC;AAClE,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,YAAY,EAAE,mBAAmB,CAMjE,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,QAAQ,EAAE,UAAU,CAAC;IAGrB,UAAU,EAAE,MAAM,GAAG,YAAY,CAAC;IAClC,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,UAAU,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAeF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,SACvB,YAAY,WACV,YAAY,cACT,SAAS,CAAC,WAAW,CAAC,KAChC,eAAe,CAAC,YAAY,CAQ3B,CAAC;AASL;;;;;;GAMG;AAEH,eAAO,MAAM,mBAAmB,sJAGlB,SAAS,CAAC,YAAY,CAAC,WAC3B,YAAY,cACT,SAAS,CAAC,WAAW,CAAC,gBACpB,OAAO,KACnB,eAkCF,CAAC"}
|
package/package.json
CHANGED
|
@@ -85,33 +85,21 @@ exports[`Test Advice Components - Experimental Enabled Advice Snapshot 1`] = `
|
|
|
85
85
|
/>
|
|
86
86
|
<Text
|
|
87
87
|
allowFontScaling={true}
|
|
88
|
-
color="bluegrey"
|
|
89
|
-
defaultColor="bluegrey"
|
|
90
|
-
defaultWeight="Regular"
|
|
91
88
|
dynamicTypeRamp="body"
|
|
92
|
-
font="TitilliumSansPro"
|
|
93
|
-
fontStyle={
|
|
94
|
-
{
|
|
95
|
-
"fontSize": 16,
|
|
96
|
-
"lineHeight": 24,
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
89
|
maxFontSizeMultiplier={1.25}
|
|
100
90
|
style={
|
|
101
91
|
[
|
|
92
|
+
{},
|
|
102
93
|
{
|
|
103
|
-
"
|
|
104
|
-
"lineHeight": 24,
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"color": "#475A6D",
|
|
94
|
+
"color": "#555C70",
|
|
108
95
|
"fontFamily": "Titillium Sans Pro",
|
|
96
|
+
"fontSize": 16,
|
|
109
97
|
"fontStyle": "normal",
|
|
110
98
|
"fontWeight": "400",
|
|
99
|
+
"lineHeight": 24,
|
|
111
100
|
},
|
|
112
101
|
]
|
|
113
102
|
}
|
|
114
|
-
weight="Regular"
|
|
115
103
|
>
|
|
116
104
|
Text
|
|
117
105
|
</Text>
|
|
@@ -203,33 +191,21 @@ exports[`Test Advice Components Advice Snapshot 1`] = `
|
|
|
203
191
|
/>
|
|
204
192
|
<Text
|
|
205
193
|
allowFontScaling={false}
|
|
206
|
-
color="bluegrey"
|
|
207
|
-
defaultColor="bluegrey"
|
|
208
|
-
defaultWeight="Regular"
|
|
209
194
|
dynamicTypeRamp="body"
|
|
210
|
-
font="TitilliumSansPro"
|
|
211
|
-
fontStyle={
|
|
212
|
-
{
|
|
213
|
-
"fontSize": 16,
|
|
214
|
-
"lineHeight": 24,
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
195
|
maxFontSizeMultiplier={1.25}
|
|
218
196
|
style={
|
|
219
197
|
[
|
|
198
|
+
{},
|
|
220
199
|
{
|
|
221
|
-
"
|
|
222
|
-
"lineHeight": 24,
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"color": "#475A6D",
|
|
200
|
+
"color": "#555C70",
|
|
226
201
|
"fontFamily": "Titillium Sans Pro",
|
|
202
|
+
"fontSize": 16,
|
|
227
203
|
"fontStyle": "normal",
|
|
228
204
|
"fontWeight": "400",
|
|
205
|
+
"lineHeight": 24,
|
|
229
206
|
},
|
|
230
207
|
]
|
|
231
208
|
}
|
|
232
|
-
weight="Regular"
|
|
233
209
|
>
|
|
234
210
|
Text
|
|
235
211
|
</Text>
|
|
@@ -2,7 +2,6 @@ import React, { useState } from "react";
|
|
|
2
2
|
import {
|
|
3
3
|
LayoutChangeEvent,
|
|
4
4
|
StyleSheet,
|
|
5
|
-
Text,
|
|
6
5
|
TouchableWithoutFeedback,
|
|
7
6
|
View
|
|
8
7
|
} from "react-native";
|
|
@@ -19,9 +18,8 @@ import {
|
|
|
19
18
|
} from "../../core";
|
|
20
19
|
import { IOSpringValues } from "../../core/IOAnimations";
|
|
21
20
|
import { IOColors, hexToRgba } from "../../core/IOColors";
|
|
22
|
-
import { makeFontStyleObject } from "../../utils/fonts";
|
|
23
21
|
import { IOIconSizeScale, IOIcons, Icon } from "../icons/Icon";
|
|
24
|
-
import { H6 } from "../typography";
|
|
22
|
+
import { Body, H6 } from "../typography";
|
|
25
23
|
|
|
26
24
|
export type AccordionItem = {
|
|
27
25
|
title: string;
|
|
@@ -158,11 +156,7 @@ export const AccordionItem = ({
|
|
|
158
156
|
</TouchableWithoutFeedback>
|
|
159
157
|
|
|
160
158
|
<AccordionBody expanded={expanded}>
|
|
161
|
-
{typeof body === "string" ?
|
|
162
|
-
<Text style={styles.accordionBodyText}>{body}</Text>
|
|
163
|
-
) : (
|
|
164
|
-
body
|
|
165
|
-
)}
|
|
159
|
+
{typeof body === "string" ? <Body>{body}</Body> : body}
|
|
166
160
|
</AccordionBody>
|
|
167
161
|
{/* This gradient adds a smooth end to the content. If it is missing,
|
|
168
162
|
the content will be cut sharply during the height transition. */}
|
|
@@ -199,12 +193,6 @@ const styles = StyleSheet.create({
|
|
|
199
193
|
padding: accordionBodySpacing,
|
|
200
194
|
paddingTop: 0
|
|
201
195
|
},
|
|
202
|
-
accordionBodyText: {
|
|
203
|
-
fontSize: 14,
|
|
204
|
-
lineHeight: 21,
|
|
205
|
-
color: IOColors["grey-700"],
|
|
206
|
-
...makeFontStyleObject("Regular", undefined, "TitilliumSansPro")
|
|
207
|
-
},
|
|
208
196
|
textContainer: {
|
|
209
197
|
padding: accordionBodySpacing,
|
|
210
198
|
flexDirection: "row",
|
|
@@ -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
|
});
|