@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,6 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import * as TestRenderer from "react-test-renderer";
|
|
3
|
+
import { Alert } from "react-native";
|
|
3
4
|
import { Body } from "../Body";
|
|
5
|
+
import { BodyMonospace } from "../BodyMonospace";
|
|
4
6
|
import { ButtonText } from "../ButtonText";
|
|
5
7
|
import { H1 } from "../H1";
|
|
6
8
|
import { H2 } from "../H2";
|
|
@@ -10,8 +12,6 @@ import { H5 } from "../H5";
|
|
|
10
12
|
import { H6 } from "../H6";
|
|
11
13
|
import { Label } from "../Label";
|
|
12
14
|
import { LabelSmall } from "../LabelSmall";
|
|
13
|
-
import { LabelLink } from "../LabelLink";
|
|
14
|
-
import { BodyMonospace } from "../BodyMonospace";
|
|
15
15
|
import { calculateWeightColor } from "../common";
|
|
16
16
|
describe("Test Typography Components", () => {
|
|
17
17
|
it("H1 Snapshot", () => {
|
|
@@ -59,28 +59,6 @@ describe("Test Typography Components", () => {
|
|
|
59
59
|
color: "white"
|
|
60
60
|
}, "Text")).toJSON();
|
|
61
61
|
expect(h4white).toMatchSnapshot();
|
|
62
|
-
|
|
63
|
-
// Regular weight
|
|
64
|
-
// with regular weight, default color is bluegreydark
|
|
65
|
-
const h4Regular = TestRenderer.create( /*#__PURE__*/React.createElement(H4, {
|
|
66
|
-
weight: "Regular"
|
|
67
|
-
}, "Text")).toJSON();
|
|
68
|
-
expect(h4Regular).toMatchSnapshot();
|
|
69
|
-
const h4Regularbluegrey = TestRenderer.create( /*#__PURE__*/React.createElement(H4, {
|
|
70
|
-
weight: "Regular",
|
|
71
|
-
color: "bluegrey"
|
|
72
|
-
}, "Text")).toJSON();
|
|
73
|
-
expect(h4Regularbluegrey).toMatchSnapshot();
|
|
74
|
-
const h4RegularbluegreyLight = TestRenderer.create( /*#__PURE__*/React.createElement(H4, {
|
|
75
|
-
weight: "Regular",
|
|
76
|
-
color: "bluegreyLight"
|
|
77
|
-
}, "Text")).toJSON();
|
|
78
|
-
expect(h4RegularbluegreyLight).toMatchSnapshot();
|
|
79
|
-
const h4Regularwhite = TestRenderer.create( /*#__PURE__*/React.createElement(H4, {
|
|
80
|
-
weight: "Regular",
|
|
81
|
-
color: "white"
|
|
82
|
-
}, "Text")).toJSON();
|
|
83
|
-
expect(h4Regularwhite).toMatchSnapshot();
|
|
84
62
|
});
|
|
85
63
|
it("H5 Snapshot", () => {
|
|
86
64
|
// SemiBold weight, default
|
|
@@ -135,7 +113,10 @@ describe("Test Typography Components", () => {
|
|
|
135
113
|
});
|
|
136
114
|
});
|
|
137
115
|
it("Link Snapshot", () => {
|
|
138
|
-
const link = TestRenderer.create( /*#__PURE__*/React.createElement(
|
|
116
|
+
const link = TestRenderer.create( /*#__PURE__*/React.createElement(Label, {
|
|
117
|
+
asLink: true,
|
|
118
|
+
onPress: () => Alert.alert("Pressed")
|
|
119
|
+
}, "Text")).toJSON();
|
|
139
120
|
expect(link).toMatchSnapshot();
|
|
140
121
|
});
|
|
141
122
|
it("BodyMonospace Snapshot", () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","TestRenderer","Body","ButtonText","H1","H2","H3","H4","H5","H6","Label","LabelSmall","
|
|
1
|
+
{"version":3,"names":["React","TestRenderer","Alert","Body","BodyMonospace","ButtonText","H1","H2","H3","H4","H5","H6","Label","LabelSmall","calculateWeightColor","describe","it","h1Default","create","createElement","toJSON","expect","toMatchSnapshot","h1White","color","h2Default","h3Default","h3bluegreyLight","h3white","h3whiteBold","h3defaultBold","h4Default","h4Dblue","h4white","h5Default","h5Defaultbluegrey","h5Defaultblue","h5Defaultwhite","h6Default","bodyDefault","cta","labelSmallDefault","allowedColors","map","labelSmall","labelDefault","label","link","asLink","onPress","alert","monospace","noValues","toBe","weight","weightProvided","allValuesProvided"],"sourceRoot":"../../../../../src","sources":["components/typography/__test__/typography.test.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAO,KAAKC,YAAY,MAAM,qBAAqB;AACnD,SAASC,KAAK,QAAQ,cAAc;AAGpC,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,aAAa,QAAQ,kBAAkB;AAChD,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,EAAE,QAAQ,OAAO;AAC1B,SAASC,EAAE,QAAQ,OAAO;AAC1B,SAASC,EAAE,QAAQ,OAAO;AAC1B,SAASC,EAAE,QAAQ,OAAO;AAC1B,SAASC,EAAE,QAAQ,OAAO;AAC1B,SAASC,EAAE,QAAQ,OAAO;AAC1B,SAASC,KAAK,QAAQ,UAAU;AAChC,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,oBAAoB,QAAQ,WAAW;AAEhDC,QAAQ,CAAC,4BAA4B,EAAE,MAAM;EAC3CC,EAAE,CAAC,aAAa,EAAE,MAAM;IACtB,MAAMC,SAAS,GAAGhB,YAAY,CAACiB,MAAM,eAAClB,KAAA,CAAAmB,aAAA,CAACb,EAAE,QAAC,MAAQ,CAAC,CAAC,CAACc,MAAM,CAAC,CAAC;IAC7DC,MAAM,CAACJ,SAAS,CAAC,CAACK,eAAe,CAAC,CAAC;IACnC,MAAMC,OAAO,GAAGtB,YAAY,CAACiB,MAAM,eAAClB,KAAA,CAAAmB,aAAA,CAACb,EAAE;MAACkB,KAAK,EAAE;IAAQ,GAAC,MAAQ,CAAC,CAAC,CAACJ,MAAM,CAAC,CAAC;IAC3EC,MAAM,CAACE,OAAO,CAAC,CAACD,eAAe,CAAC,CAAC;EACnC,CAAC,CAAC;EACFN,EAAE,CAAC,aAAa,EAAE,MAAM;IACtB,MAAMS,SAAS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CAAC,UAAU,CAAC;IAChDhC,MAAM,CAACmC,iBAAiB,CAACF,MAAM,CAAC,CAACD,IAAI,CAAC,SAAS,CAAC;EAClD,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./BaseTypography";
|
|
2
|
+
export * from "./IOText";
|
|
2
3
|
export * from "./Body";
|
|
3
4
|
export * from "./Caption";
|
|
4
5
|
export * from "./Chip";
|
|
@@ -14,13 +15,10 @@ export * from "./Hero";
|
|
|
14
15
|
export * from "./Label";
|
|
15
16
|
export * from "./LabelSmall";
|
|
16
17
|
export * from "./LabelSmallAlt";
|
|
17
|
-
export * from "./
|
|
18
|
+
export * from "./LabelMini";
|
|
18
19
|
export * from "./BodyMonospace";
|
|
19
20
|
export * from "./common";
|
|
20
21
|
export * from "./markdown/MdH1";
|
|
21
22
|
export * from "./markdown/MdH2";
|
|
22
23
|
export * from "./markdown/MdH3";
|
|
23
|
-
export * from "./markdown/MdH4";
|
|
24
|
-
export * from "./markdown/MdH5";
|
|
25
|
-
export * from "./markdown/MdH6";
|
|
26
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/typography/index.tsx"],"mappings":"AAAA,cAAc,kBAAkB;AAChC,cAAc,QAAQ;AACtB,cAAc,WAAW;AACzB,cAAc,QAAQ;AACtB,cAAc,cAAc;AAC5B,cAAc,WAAW;AACzB,cAAc,MAAM;AACpB,cAAc,MAAM;AACpB,cAAc,MAAM;AACpB,cAAc,MAAM;AACpB,cAAc,MAAM;AACpB,cAAc,MAAM;AACpB,cAAc,QAAQ;AACtB,cAAc,SAAS;AACvB,cAAc,cAAc;AAC5B,cAAc,iBAAiB;AAC/B,cAAc,aAAa;AAC3B,cAAc,iBAAiB;AAC/B,cAAc,UAAU;AACxB,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/typography/index.tsx"],"mappings":"AAAA,cAAc,kBAAkB;AAChC,cAAc,UAAU;AACxB,cAAc,QAAQ;AACtB,cAAc,WAAW;AACzB,cAAc,QAAQ;AACtB,cAAc,cAAc;AAC5B,cAAc,WAAW;AACzB,cAAc,MAAM;AACpB,cAAc,MAAM;AACpB,cAAc,MAAM;AACpB,cAAc,MAAM;AACpB,cAAc,MAAM;AACpB,cAAc,MAAM;AACpB,cAAc,QAAQ;AACtB,cAAc,SAAS;AACvB,cAAc,cAAc;AAC5B,cAAc,iBAAiB;AAC/B,cAAc,aAAa;AAC3B,cAAc,iBAAiB;AAC/B,cAAc,UAAU;AACxB,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB"}
|
|
@@ -1,21 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const defaultColor = "black";
|
|
6
|
-
const defaultWeight = "Regular";
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React, { forwardRef } from "react";
|
|
3
|
+
import { useIOExperimentalDesign, useIOTheme } from "../../../core";
|
|
4
|
+
import { IOText } from "../IOText";
|
|
7
5
|
|
|
8
6
|
/**
|
|
9
7
|
* `MdH1` typographic style
|
|
10
8
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
|
|
10
|
+
export const MdH1 = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
11
|
+
let {
|
|
12
|
+
color: customColor,
|
|
13
|
+
...props
|
|
14
|
+
} = _ref;
|
|
15
|
+
const theme = useIOTheme();
|
|
16
|
+
const {
|
|
17
|
+
isExperimental
|
|
18
|
+
} = useIOExperimentalDesign();
|
|
19
|
+
const MdH1Props = {
|
|
20
|
+
...props,
|
|
21
|
+
font: isExperimental ? "ReadexPro" : "TitilliumSansPro",
|
|
22
|
+
weight: isExperimental ? "Regular" : "Semibold",
|
|
23
|
+
size: 20,
|
|
24
|
+
lineHeight: 24,
|
|
25
|
+
color: customColor ?? theme["textHeading-tertiary"]
|
|
26
|
+
};
|
|
27
|
+
return /*#__PURE__*/React.createElement(IOText, _extends({
|
|
28
|
+
ref: ref
|
|
29
|
+
}, MdH1Props), props.children);
|
|
20
30
|
});
|
|
21
31
|
//# sourceMappingURL=MdH1.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useIOExperimentalDesign","useIOTheme","IOText","MdH1","_ref","ref","color","customColor","props","theme","isExperimental","MdH1Props","font","weight","size","lineHeight","createElement","_extends","children"],"sourceRoot":"../../../../../src","sources":["components/typography/markdown/MdH1.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAkBC,UAAU,QAAQ,OAAO;AAEvD,SAASC,uBAAuB,EAAEC,UAAU,QAAQ,eAAe;AACnE,SAASC,MAAM,QAA4C,WAAW;;AAEtE;AACA;AACA;;AAEA,OAAO,MAAMC,IAAI,gBAAGJ,UAAU,CAC5B,CAAAK,IAAA,EAAmCC,GAAwB,KAAK;EAAA,IAA/D;IAAEC,KAAK,EAAEC,WAAW;IAAE,GAAGC;EAAM,CAAC,GAAAJ,IAAA;EAC/B,MAAMK,KAAK,GAAGR,UAAU,CAAC,CAAC;EAC1B,MAAM;IAAES;EAAe,CAAC,GAAGV,uBAAuB,CAAC,CAAC;EAEpD,MAAMW,SAAsB,GAAG;IAC7B,GAAGH,KAAK;IACRI,IAAI,EAAEF,cAAc,GAAG,WAAW,GAAG,kBAAkB;IACvDG,MAAM,EAAEH,cAAc,GAAG,SAAS,GAAG,UAAU;IAC/CI,IAAI,EAAE,EAAE;IACRC,UAAU,EAAE,EAAE;IACdT,KAAK,EAAEC,WAAW,IAAIE,KAAK,CAAC,sBAAsB;EACpD,CAAC;EAED,oBACEX,KAAA,CAAAkB,aAAA,CAACd,MAAM,EAAAe,QAAA;IAACZ,GAAG,EAAEA;EAAI,GAAKM,SAAS,GAC5BH,KAAK,CAACU,QACD,CAAC;AAEb,CACF,CAAC"}
|
|
@@ -1,23 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const lineHeight = 24;
|
|
6
|
-
const font = "ReadexPro";
|
|
7
|
-
const defaultColor = "black";
|
|
8
|
-
const defaultWeight = "Regular";
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React, { forwardRef } from "react";
|
|
3
|
+
import { useIOExperimentalDesign, useIOTheme } from "../../../core";
|
|
4
|
+
import { IOText } from "../IOText";
|
|
9
5
|
|
|
10
6
|
/**
|
|
11
7
|
* `MdH2` typographic style
|
|
12
8
|
*/
|
|
13
|
-
export const MdH2 =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
9
|
+
export const MdH2 = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
10
|
+
let {
|
|
11
|
+
color: customColor,
|
|
12
|
+
...props
|
|
13
|
+
} = _ref;
|
|
14
|
+
const theme = useIOTheme();
|
|
15
|
+
const {
|
|
16
|
+
isExperimental
|
|
17
|
+
} = useIOExperimentalDesign();
|
|
18
|
+
const MdH2Props = {
|
|
19
|
+
...props,
|
|
20
|
+
font: isExperimental ? "ReadexPro" : "TitilliumSansPro",
|
|
21
|
+
weight: isExperimental ? "Regular" : "Semibold",
|
|
22
|
+
/* We set 18 instead of 16 to diffrentiate from the H3 typographic style.
|
|
23
|
+
It should be 16 with `SemiBold` font weight. */
|
|
24
|
+
size: 18,
|
|
25
|
+
lineHeight: 24,
|
|
26
|
+
color: customColor ?? theme["textHeading-tertiary"]
|
|
27
|
+
};
|
|
28
|
+
return /*#__PURE__*/React.createElement(IOText, _extends({
|
|
29
|
+
ref: ref
|
|
30
|
+
}, MdH2Props), props.children);
|
|
22
31
|
});
|
|
23
32
|
//# sourceMappingURL=MdH2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useIOExperimentalDesign","useIOTheme","IOText","MdH2","_ref","ref","color","customColor","props","theme","isExperimental","MdH2Props","font","weight","size","lineHeight","createElement","_extends","children"],"sourceRoot":"../../../../../src","sources":["components/typography/markdown/MdH2.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAkBC,UAAU,QAAQ,OAAO;AAEvD,SAASC,uBAAuB,EAAEC,UAAU,QAAQ,eAAe;AACnE,SAASC,MAAM,QAA4C,WAAW;;AAEtE;AACA;AACA;AACA,OAAO,MAAMC,IAAI,gBAAGJ,UAAU,CAC5B,CAAAK,IAAA,EAAmCC,GAAwB,KAAK;EAAA,IAA/D;IAAEC,KAAK,EAAEC,WAAW;IAAE,GAAGC;EAAM,CAAC,GAAAJ,IAAA;EAC/B,MAAMK,KAAK,GAAGR,UAAU,CAAC,CAAC;EAC1B,MAAM;IAAES;EAAe,CAAC,GAAGV,uBAAuB,CAAC,CAAC;EAEpD,MAAMW,SAAsB,GAAG;IAC7B,GAAGH,KAAK;IACRI,IAAI,EAAEF,cAAc,GAAG,WAAW,GAAG,kBAAkB;IACvDG,MAAM,EAAEH,cAAc,GAAG,SAAS,GAAG,UAAU;IAC/C;AACN;IACMI,IAAI,EAAE,EAAE;IACRC,UAAU,EAAE,EAAE;IACdT,KAAK,EAAEC,WAAW,IAAIE,KAAK,CAAC,sBAAsB;EACpD,CAAC;EAED,oBACEX,KAAA,CAAAkB,aAAA,CAACd,MAAM,EAAAe,QAAA;IAACZ,GAAG,EAAEA;EAAI,GAAKM,SAAS,GAC5BH,KAAK,CAACU,QACD,CAAC;AAEb,CACF,CAAC"}
|
|
@@ -1,21 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const defaultColor = "black";
|
|
6
|
-
const defaultWeight = "Regular";
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React, { forwardRef } from "react";
|
|
3
|
+
import { useIOExperimentalDesign, useIOTheme } from "../../../core";
|
|
4
|
+
import { IOText } from "../IOText";
|
|
7
5
|
|
|
8
6
|
/**
|
|
9
7
|
* `MdH3` typographic style
|
|
10
8
|
*/
|
|
11
|
-
export const MdH3 =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
9
|
+
export const MdH3 = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
10
|
+
let {
|
|
11
|
+
color: customColor,
|
|
12
|
+
...props
|
|
13
|
+
} = _ref;
|
|
14
|
+
const theme = useIOTheme();
|
|
15
|
+
const {
|
|
16
|
+
isExperimental
|
|
17
|
+
} = useIOExperimentalDesign();
|
|
18
|
+
const MdH3Props = {
|
|
19
|
+
...props,
|
|
20
|
+
font: isExperimental ? "ReadexPro" : "TitilliumSansPro",
|
|
21
|
+
weight: isExperimental ? "Regular" : "Semibold",
|
|
22
|
+
size: 16,
|
|
23
|
+
lineHeight: 24,
|
|
24
|
+
color: customColor ?? theme["textHeading-tertiary"]
|
|
25
|
+
};
|
|
26
|
+
return /*#__PURE__*/React.createElement(IOText, _extends({
|
|
27
|
+
ref: ref
|
|
28
|
+
}, MdH3Props), props.children);
|
|
20
29
|
});
|
|
21
30
|
//# sourceMappingURL=MdH3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useIOExperimentalDesign","useIOTheme","IOText","MdH3","_ref","ref","color","customColor","props","theme","isExperimental","MdH3Props","font","weight","size","lineHeight","createElement","_extends","children"],"sourceRoot":"../../../../../src","sources":["components/typography/markdown/MdH3.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAkBC,UAAU,QAAQ,OAAO;AAEvD,SAASC,uBAAuB,EAAEC,UAAU,QAAQ,eAAe;AACnE,SAASC,MAAM,QAA4C,WAAW;;AAEtE;AACA;AACA;AACA,OAAO,MAAMC,IAAI,gBAAGJ,UAAU,CAC5B,CAAAK,IAAA,EAAmCC,GAAwB,KAAK;EAAA,IAA/D;IAAEC,KAAK,EAAEC,WAAW;IAAE,GAAGC;EAAM,CAAC,GAAAJ,IAAA;EAC/B,MAAMK,KAAK,GAAGR,UAAU,CAAC,CAAC;EAC1B,MAAM;IAAES;EAAe,CAAC,GAAGV,uBAAuB,CAAC,CAAC;EAEpD,MAAMW,SAAsB,GAAG;IAC7B,GAAGH,KAAK;IACRI,IAAI,EAAEF,cAAc,GAAG,WAAW,GAAG,kBAAkB;IACvDG,MAAM,EAAEH,cAAc,GAAG,SAAS,GAAG,UAAU;IAC/CI,IAAI,EAAE,EAAE;IACRC,UAAU,EAAE,EAAE;IACdT,KAAK,EAAEC,WAAW,IAAIE,KAAK,CAAC,sBAAsB;EACpD,CAAC;EAED,oBACEX,KAAA,CAAAkB,aAAA,CAACd,MAAM,EAAAe,QAAA;IAACZ,GAAG,EAAEA;EAAI,GAAKM,SAAS,GAC5BH,KAAK,CAACU,QACD,CAAC;AAEb,CACF,CAAC"}
|
|
@@ -216,11 +216,23 @@ export const IOColorsExtra = {
|
|
|
216
216
|
"blue-600": IOColors["blue-600"],
|
|
217
217
|
"blue-50": IOColors["blue-50"]
|
|
218
218
|
};
|
|
219
|
-
|
|
220
219
|
/*
|
|
221
220
|
░░░ THEME COLORS ░░░
|
|
222
221
|
*/
|
|
223
222
|
|
|
223
|
+
const themeKeys = [
|
|
224
|
+
// General
|
|
225
|
+
"appBackground-primary", "appBackground-secondary", "appBackground-tertiary", "appBackground-accent", "interactiveElem-default", "interactiveElem-pressed", "listItem-pressed",
|
|
226
|
+
// Typography
|
|
227
|
+
"textHeading-default", "textHeading-secondary", "textHeading-tertiary", "textBody-default", "textBody-secondary", "textBody-tertiary",
|
|
228
|
+
// Design System related
|
|
229
|
+
"cardBorder-default", "icon-default", "icon-decorative",
|
|
230
|
+
// Layout
|
|
231
|
+
"divider-default",
|
|
232
|
+
// Status
|
|
233
|
+
"errorIcon", "errorText",
|
|
234
|
+
// Pictograms
|
|
235
|
+
"pictogram-hands", "pictogram-tint-main", "pictogram-tint-secondary"];
|
|
224
236
|
export const IOThemeLight = {
|
|
225
237
|
// General
|
|
226
238
|
"appBackground-primary": "white",
|
|
@@ -232,6 +244,8 @@ export const IOThemeLight = {
|
|
|
232
244
|
"listItem-pressed": "grey-50",
|
|
233
245
|
// Typography
|
|
234
246
|
"textHeading-default": "black",
|
|
247
|
+
"textHeading-secondary": "grey-850",
|
|
248
|
+
"textHeading-tertiary": "grey-700",
|
|
235
249
|
"textBody-default": "black",
|
|
236
250
|
"textBody-secondary": "grey-850",
|
|
237
251
|
"textBody-tertiary": "grey-700",
|
|
@@ -266,6 +280,8 @@ export const IOThemeDark = {
|
|
|
266
280
|
"listItem-pressed": "grey-850",
|
|
267
281
|
// Typography
|
|
268
282
|
"textHeading-default": "grey-200",
|
|
283
|
+
"textHeading-secondary": "grey-300",
|
|
284
|
+
"textHeading-tertiary": "grey-450",
|
|
269
285
|
"textBody-default": "white",
|
|
270
286
|
"textBody-secondary": "grey-100",
|
|
271
287
|
"textBody-tertiary": "grey-450",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["asIOColors","arg","asIOThemeColors","asIOColorGradients","IOColors","white","black","greyUltraLight","greyLight","bluegreyLight","grey","bluegrey","bluegreyDark","blue","blueUltraLight","aqua","aquaUltraLight","antiqueFuchsia","orange","red","green","greenLight","IOColorGradients","appLaunch","appIcon","cgnAll","cgn","cgnFinance","cgnCulture","cgnLearning","cgnHealth","cgnHome","cgnJobOffers","cgnSport","cgnMobility","cgnTelco","cgnTravel","getGradientColorValues","gradientId","first","second","IOColorsLegacy","IOColorsNeutral","IOColorsTints","IOColorsStatus","IOColorsExtra","IOThemeLight","errorIcon","errorText","IOThemeLightLegacy","IOThemeDark","themeStatusColorsLightMode","errorMain","errorBackground","errorGraphics","errorTypography","warningMain","warningBackground","warningGraphics","warningTypography","successMain","successBackground","successGraphics","successTypography","infoMain","infoBackground","infoGraphics","infoTypography","themeStatusColorsDarkMode","hexToRgba","hexCode","opacity","arguments","length","undefined","hex","toString","replace","r","parseInt","substring","g","b"],"sourceRoot":"../../../src","sources":["core/IOColors.ts"],"mappings":"AAEgE;;AAEhE;AACA;AACA,EAFA,CAIA;AACA,SAASA,UAAUA,CAA0CC,GAAM,EAAK;EACtE,OAAOA,GAAG;AACZ;AAEA,SAASC,eAAeA,CAAwCD,GAAM,EAAK;EACzE,OAAOA,GAAG;AACZ;AAEA,SAASE,kBAAkBA,CACzBF,GAAM,EACH;EACH,OAAOA,GAAG;AACZ;;AAEA;AACA;AACA;;AAEA,OAAO,MAAMG,QAAQ,GAAGJ,UAAU,CAAC;EACjCK,KAAK,EAAE,SAAS;EAChB,SAAS,EAAE,SAAS;EACpB,UAAU,EAAE,SAAS;EACrB,UAAU,EAAE,SAAS;EACrB,UAAU,EAAE,SAAS;EACrB,UAAU,EAAE,SAAS;EACrB,UAAU,EAAE,SAAS;EACrB,UAAU,EAAE,SAAS;EACrB,UAAU,EAAE,SAAS;EACrBC,KAAK,EA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;EACtC,aAAa,EAAEA,QAAQ,CAAC,aAAa,CAAC;EACtC,aAAa,EAAEA,QAAQ,CAAC,aAAa,CAAC;EACtC,UAAU,EAAEA,QAAQ,CAAC,UAAU,CAAC;EAChC,UAAU,EAAEA,QAAQ,CAAC,UAAU,CAAC;EAChC,UAAU,EAAEA,QAAQ,CAAC,UAAU,CAAC;EAChC,UAAU,EAAEA,QAAQ,CAAC,UAAU,CAAC;EAChC,UAAU,EAAEA,QAAQ,CAAC,UAAU;AACjC,CAAC,CAAC;AAYF,OAAO,MAAMyC,aAAa,GAAG;EAC3B,gBAAgB,EAAEzC,QAAQ,CAAC,gBAAgB,CAAC;EAC5C,gBAAgB,EAAEA,QAAQ,CAAC,gBAAgB,CAAC;EAC5C,gBAAgB,EAAEA,QAAQ,CAAC,gBAAgB,CAAC;EAC5C,gBAAgB,EAAEA,QAAQ,CAAC,gBAAgB,CAAC;EAC5C,eAAe,EAAEA,QAAQ,CAAC,eAAe,CAAC;EAC1C,UAAU,EAAEA,QAAQ,CAAC,UAAU,CAAC;EAChC,SAAS,EAAEA,QAAQ,CAAC,SAAS;AAC/B,CAAC
|
|
1
|
+
{"version":3,"names":["asIOColors","arg","asIOThemeColors","asIOColorGradients","IOColors","white","black","greyUltraLight","greyLight","bluegreyLight","grey","bluegrey","bluegreyDark","blue","blueUltraLight","aqua","aquaUltraLight","antiqueFuchsia","orange","red","green","greenLight","IOColorGradients","appLaunch","appIcon","cgnAll","cgn","cgnFinance","cgnCulture","cgnLearning","cgnHealth","cgnHome","cgnJobOffers","cgnSport","cgnMobility","cgnTelco","cgnTravel","getGradientColorValues","gradientId","first","second","IOColorsLegacy","IOColorsNeutral","IOColorsTints","IOColorsStatus","IOColorsExtra","themeKeys","IOThemeLight","errorIcon","errorText","IOThemeLightLegacy","IOThemeDark","themeStatusColorsLightMode","errorMain","errorBackground","errorGraphics","errorTypography","warningMain","warningBackground","warningGraphics","warningTypography","successMain","successBackground","successGraphics","successTypography","infoMain","infoBackground","infoGraphics","infoTypography","themeStatusColorsDarkMode","hexToRgba","hexCode","opacity","arguments","length","undefined","hex","toString","replace","r","parseInt","substring","g","b"],"sourceRoot":"../../../src","sources":["core/IOColors.ts"],"mappings":"AAEgE;;AAEhE;AACA;AACA,EAFA,CAIA;AACA,SAASA,UAAUA,CAA0CC,GAAM,EAAK;EACtE,OAAOA,GAAG;AACZ;AAEA,SAASC,eAAeA,CAAwCD,GAAM,EAAK;EACzE,OAAOA,GAAG;AACZ;AAEA,SAASE,kBAAkBA,CACzBF,GAAM,EACH;EACH,OAAOA,GAAG;AACZ;;AAEA;AACA;AACA;;AAEA,OAAO,MAAMG,QAAQ,GAAGJ,UAAU,CAAC;EACjCK,KAAK,EAAE,SAAS;EAChB,SAAS,EAAE,SAAS;EACpB,UAAU,EAAE,SAAS;EACrB,UAAU,EAAE,SAAS;EACrB,UAAU,EAAE,SAAS;EACrB,UAAU,EAAE,SAAS;EACrB,UAAU,EAAE,SAAS;EACrB,UAAU,EAAE,SAAS;EACrB,UAAU,EAAE,SAAS;EACrBC,KAAK,EAAE,SAAS;EAChB,YAAY,EAAE,SAAS;EACvB,YAAY,EAAE,SAAS;EACvB,YAAY,EAAE,SAAS;EACvB,YAAY,EAAE,SAAS;EACvB,YAAY,EAAE,SAAS,CAAC;EACxB,YAAY,EAAE,SAAS;EACvB,YAAY,EAAE,SAAS;EACvB,YAAY,EAAE,SAAS;EACvB,WAAW,EAAE,SAAS;EACtB,eAAe,EAAE,SAAS;EAC1B,eAAe,EAAE,SAAS;EAC1B,eAAe,EAAE,SAAS;EAC1B,eAAe,EAAE,SAAS;EAC1B,cAAc,EAAE,SAAS;EACzB,eAAe,EAAE,SAAS;EAC1B,eAAe,EAAE,SAAS;EAC1B,eAAe,EAAE,SAAS,CAAC;EAC3B,eAAe,EAAE,SAAS;EAC1B,eAAe,EAAE,SAAS;EAC1B,cAAc,EAAE,SAAS;EACzB,WAAW,EAAE,SAAS;EACtB,WAAW,EAAE,SAAS;EACtB,W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ACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
|
@@ -10,7 +10,6 @@ import { IOModuleIDPHSpacing, IOModuleIDPVSpacing } from "./IOSpacing";
|
|
|
10
10
|
export const IOVisualCostants = {
|
|
11
11
|
appMarginDefault: 24,
|
|
12
12
|
headerHeight: 56,
|
|
13
|
-
maxFontSizeMultiplier: 1.25,
|
|
14
13
|
avatarSizeSmall: 44,
|
|
15
14
|
avatarSizeMedium: 66,
|
|
16
15
|
avatarRadiusSizeSmall: 8,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Platform","StyleSheet","IOColors","IOModuleIDPRadius","IOModuleIDPHSpacing","IOModuleIDPVSpacing","IOVisualCostants","appMarginDefault","headerHeight","
|
|
1
|
+
{"version":3,"names":["Platform","StyleSheet","IOColors","IOModuleIDPRadius","IOModuleIDPHSpacing","IOModuleIDPVSpacing","IOVisualCostants","appMarginDefault","headerHeight","avatarSizeSmall","avatarSizeMedium","avatarRadiusSizeSmall","avatarRadiusSizeMedium","iconContainedSizeDefault","scrollDownButtonRight","scrollDownButtonBottom","iconMargin","IOStyles","create","flex","selfCenter","alignSelf","alignCenter","alignItems","horizontalContentPadding","paddingHorizontal","row","flexDirection","column","rowSpaceBetween","justifyContent","centerJustified","footer","backgroundColor","white","paddingBottom","paddingTop","shadowColor","black","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","bgWhite","topListBorderBelowTabsStyle","borderTopWidth","OS","undefined","btnLegacySizeDefault","btnSizeLarge","btnBorderRadius","btnSizeDefault","buttonSolidHeight","iconBtnSizeSmall","numberPadBtnSize","IOButtonLegacyStyles","button","textAlignVertical","borderRadius","buttonInner","label","labelSizeDefault","fontSize","buttonSizeDefault","IOButtonStyles","borderCurve","buttonLink","labelSizeSmall","buttonSizeSmall","dimensionsDefault","IOIconButtonStyles","buttonSizeLarge","IONumberPadButtonStyles","circularShape","buttonSize","IOListItemVisualParams","paddingVertical","actionMargin","iconSize","chevronSize","IOListItemStyles","listItem","marginHorizontal","listItemInner","IOModuleStyles","borderWidth","borderColor","IOSelectionTickVisualParams","size","borderColorOffState","bgColorOnState","tickColor","IOSwitchVisualParams","bgColorOffState","bgCircle","padding","IOSelectionTickLegacyVisualParams","IOSelectionListItemVisualParams","descriptionMargin","IOSelectionListItemStyles"],"sourceRoot":"../../../src","sources":["core/IOStyles.ts"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AAEnD,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAASC,iBAAiB,QAAQ,YAAY;AAC9C,SAEEC,mBAAmB,EACnBC,mBAAmB,QAGd,aAAa;;AAEpB;AACA;AACA;;AAiBA,OAAO,MAAMC,gBAAkC,GAAG;EAChDC,gBAAgB,EAAE,EAAE;EACpBC,YAAY,EAAE,EAAE;EAChBC,eAAe,EAAE,EAAE;EACnBC,gBAAgB,EAAE,EAAE;EACpBC,qBAAqB,EAAE,CAAC;EACxBC,sBAAsB,EAAE,EAAE;EAC1BC,wBAAwB,EAAE,EAAE;EAC5BC,qBAAqB,EAAE,EAAE;EACzBC,sBAAsB,EAAE,EAAE;EAC1BC,UAAU,EAAE;AACd,CAAC;AAED,OAAO,MAAMC,QAAQ,GAAGhB,UAAU,CAACiB,MAAM,CAAC;EACxCC,IAAI,EAAE;IACJA,IAAI,EAAE;EACR,CAAC;EACDC,UAAU,EAAE;IACVC,SAAS,EAAE;EACb,CAAC;EACDC,WAAW,EAAE;IACXC,UAAU,EAAE;EACd,CAAC;EACDC,wBAAwB,EAAE;IACxBC,iBAAiB,EAAEnB,gBAAgB,CAACC;EACtC,CAAC;EACDmB,GAAG,EAAE;IACHC,aAAa,EAAE;EACjB,CAAC;EACDC,MAAM,EAAE;IACND,aAAa,EAAE;EACjB,CAAC;EACDE,eAAe,EAAE;IACfF,aAAa,EAAE,KAAK;IACpB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AAU,EAAEV,gBAAgB,CAACU,UAAU;EACvCgE,QAAQ,EAAE,EAAE;EACZD,YAAY,EAAE,CAAC;EACfqB,iBAAiB,EAAE;AACrB,CAAC;AAEH,OAAO,MAAMC,yBAAyB,GAAGpG,UAAU,CAACiB,MAAM,CAAC;EACzDiE,QAAQ,EAAE;IACRL,eAAe,EAAED,sBAAsB,CAACC,eAAe;IACvDrD,iBAAiB,EAAEoD,sBAAsB,CAACpD,iBAAiB;IAC3D2D,gBAAgB,EAAE,CAACP,sBAAsB,CAACpD;EAC5C,CAAC;EACD4D,aAAa,EAAE;IACb1D,aAAa,EAAE,KAAK;IACpBJ,UAAU,EAAE,YAAY;IACxBO,cAAc,EAAE;EAClB;AACF,CAAC,CAAC"}
|
|
@@ -1,10 +1,32 @@
|
|
|
1
1
|
import { pipe } from "fp-ts/lib/function";
|
|
2
2
|
import * as O from "fp-ts/lib/Option";
|
|
3
3
|
import I18n from "i18n-js";
|
|
4
|
+
import { useEffect, useState } from "react";
|
|
5
|
+
import { AccessibilityInfo } from "react-native";
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* This function is used to get the text that will be read by the screen reader
|
|
7
9
|
* with the correct minus symbol pronunciation.
|
|
8
10
|
*/
|
|
9
11
|
export const getAccessibleAmountText = amount => pipe(amount, O.fromNullable, O.map(amount => amount.replace("-", I18n.t("global.accessibility.minusSymbol"))), O.getOrElseW(() => undefined));
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Query whether a bold text is currently enabled. The result is true
|
|
15
|
+
* when bold text is enabled and false otherwise.
|
|
16
|
+
*/
|
|
17
|
+
export const useBoldTextEnabled = () => {
|
|
18
|
+
const [boldTextEnabled, setBoldTextEnabled] = useState(false);
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
const boldTextChangedSubscription = AccessibilityInfo.addEventListener("boldTextChanged", isBoldTextEnabled => {
|
|
21
|
+
setBoldTextEnabled(isBoldTextEnabled);
|
|
22
|
+
});
|
|
23
|
+
AccessibilityInfo.isBoldTextEnabled().then(isBoldTextEnabled => {
|
|
24
|
+
setBoldTextEnabled(isBoldTextEnabled);
|
|
25
|
+
}).catch(_ => false);
|
|
26
|
+
return () => {
|
|
27
|
+
boldTextChangedSubscription.remove();
|
|
28
|
+
};
|
|
29
|
+
}, []);
|
|
30
|
+
return boldTextEnabled;
|
|
31
|
+
};
|
|
10
32
|
//# sourceMappingURL=accessibility.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["pipe","O","I18n","getAccessibleAmountText","amount","fromNullable","map","replace","t","getOrElseW","undefined"],"sourceRoot":"../../../src","sources":["utils/accessibility.ts"],"mappings":"AAAA,SAASA,IAAI,QAAQ,oBAAoB;AACzC,OAAO,KAAKC,CAAC,MAAM,kBAAkB;AACrC,OAAOC,IAAI,MAAM,SAAS;;
|
|
1
|
+
{"version":3,"names":["pipe","O","I18n","useEffect","useState","AccessibilityInfo","getAccessibleAmountText","amount","fromNullable","map","replace","t","getOrElseW","undefined","useBoldTextEnabled","boldTextEnabled","setBoldTextEnabled","boldTextChangedSubscription","addEventListener","isBoldTextEnabled","then","catch","_","remove"],"sourceRoot":"../../../src","sources":["utils/accessibility.ts"],"mappings":"AAAA,SAASA,IAAI,QAAQ,oBAAoB;AACzC,OAAO,KAAKC,CAAC,MAAM,kBAAkB;AACrC,OAAOC,IAAI,MAAM,SAAS;AAC1B,SAASC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,iBAAiB,QAAQ,cAAc;;AAEhD;AACA;AACA;AACA;AACA,OAAO,MAAMC,uBAAuB,GAAIC,MAAe,IACrDP,IAAI,CACFO,MAAM,EACNN,CAAC,CAACO,YAAY,EACdP,CAAC,CAACQ,GAAG,CAACF,MAAM,IACVA,MAAM,CAACG,OAAO,CAAC,GAAG,EAAER,IAAI,CAACS,CAAC,CAAC,kCAAkC,CAAC,CAChE,CAAC,EACDV,CAAC,CAACW,UAAU,CAAC,MAAMC,SAAS,CAC9B,CAAC;;AAEH;AACA;AACA;AACA;AACA,OAAO,MAAMC,kBAAkB,GAAGA,CAAA,KAAM;EACtC,MAAM,CAACC,eAAe,EAAEC,kBAAkB,CAAC,GAAGZ,QAAQ,CAAC,KAAK,CAAC;EAE7DD,SAAS,CAAC,MAAM;IACd,MAAMc,2BAA2B,GAAGZ,iBAAiB,CAACa,gBAAgB,CACpE,iBAAiB,EACjBC,iBAAiB,IAAI;MACnBH,kBAAkB,CAACG,iBAAiB,CAAC;IACvC,CACF,CAAC;IAEDd,iBAAiB,CAACc,iBAAiB,CAAC,CAAC,CAClCC,IAAI,CAACD,iBAAiB,IAAI;MACzBH,kBAAkB,CAACG,iBAAiB,CAAC;IACvC,CAAC,CAAC,CACDE,KAAK,CAACC,CAAC,IAAI,KAAK,CAAC;IAEpB,OAAO,MAAM;MACXL,2BAA2B,CAACM,MAAM,CAAC,CAAC;IACtC,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,OAAOR,eAAe;AACxB,CAAC"}
|