@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
|
@@ -8,24 +8,11 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _core = require("../../core");
|
|
10
10
|
var _dates = require("../../utils/dates");
|
|
11
|
-
var
|
|
11
|
+
var _typography = require("../typography");
|
|
12
12
|
var _PressableModuleBase = require("./PressableModuleBase");
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
15
|
const styles = _reactNative.StyleSheet.create({
|
|
16
|
-
idpName: {
|
|
17
|
-
fontSize: 12,
|
|
18
|
-
lineHeight: 16,
|
|
19
|
-
alignSelf: "center",
|
|
20
|
-
textTransform: "uppercase",
|
|
21
|
-
flexShrink: 1
|
|
22
|
-
},
|
|
23
|
-
idpNameFont: {
|
|
24
|
-
...(0, _fonts.makeFontStyleObject)("Regular", false, "ReadexPro")
|
|
25
|
-
},
|
|
26
|
-
idpLegacyNameFont: {
|
|
27
|
-
...(0, _fonts.makeFontStyleObject)("Semibold", false, "TitilliumSansPro")
|
|
28
|
-
},
|
|
29
16
|
idpLogo: {
|
|
30
17
|
marginStart: _core.IOListItemLogoMargin,
|
|
31
18
|
width: 120,
|
|
@@ -61,12 +48,18 @@ const ModuleIDP = _ref => {
|
|
|
61
48
|
onPress: onPress,
|
|
62
49
|
testID: testID,
|
|
63
50
|
withLooseSpacing: withLooseSpacing
|
|
64
|
-
}, /*#__PURE__*/React.createElement(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
51
|
+
}, /*#__PURE__*/React.createElement(_typography.IOText, {
|
|
52
|
+
font: isExperimental ? "ReadexPro" : "TitilliumSansPro",
|
|
53
|
+
weight: isExperimental ? "Regular" : "Semibold",
|
|
54
|
+
size: 12,
|
|
55
|
+
lineHeight: 16,
|
|
56
|
+
color: theme["textBody-tertiary"],
|
|
57
|
+
textStyle: {
|
|
58
|
+
alignSelf: "center",
|
|
59
|
+
textTransform: "uppercase",
|
|
60
|
+
letterSpacing: 0.5,
|
|
61
|
+
flexShrink: 1
|
|
62
|
+
},
|
|
70
63
|
accessibilityLabel: accessibilityLabel ?? name
|
|
71
64
|
}, name), /*#__PURE__*/React.createElement(_reactNative.Image, {
|
|
72
65
|
accessibilityIgnoresInvertColors: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_core","_dates","
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_core","_dates","_typography","_PressableModuleBase","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","styles","StyleSheet","create","idpLogo","marginStart","IOListItemLogoMargin","width","height","resizeMode","androidIdpLogoForcedRefreshed","Platform","OS","toAndroidCacheTimestamp","ModuleIDP","_ref","name","localLogo","logo","withLooseSpacing","onPress","testID","accessibilityLabel","theme","useIOTheme","isExperimental","useIOExperimentalDesign","urlLogoIDP","uri","createElement","PressableModuleBase","IOText","font","weight","size","lineHeight","color","textStyle","alignSelf","textTransform","letterSpacing","flexShrink","Image","accessibilityIgnoresInvertColors","source","style","exports","_default"],"sourceRoot":"../../../../src","sources":["components/modules/ModuleIDP.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAKA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,oBAAA,GAAAL,OAAA;AAG+B,SAAAM,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAR,wBAAAY,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,W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A6B,CAAC,CAAE;EACjD,CAAC;EACL,oBACEvC,KAAA,CAAA0D,aAAA,CAACnD,oBAAA,CAAAoD,mBAAmB;IAClBV,OAAO,EAAEA,OAAQ;IACjBC,MAAM,EAAEA,MAAO;IACfF,gBAAgB,EAAEA;EAAiB,gBAEnChD,KAAA,CAAA0D,aAAA,CAACpD,WAAA,CAAAsD,MAAM;IACLC,IAAI,EAAEP,cAAc,GAAG,WAAW,GAAG,kBAAmB;IACxDQ,MAAM,EAAER,cAAc,GAAG,SAAS,GAAG,UAAW;IAChDS,IAAI,EAAE,EAAG;IACTC,UAAU,EAAE,EAAG;IACfC,KAAK,EAAEb,KAAK,CAAC,mBAAmB,CAAE;IAClCc,SAAS,EAAE;MACTC,SAAS,EAAE,QAAQ;MACnBC,aAAa,EAAE,WAAW;MAC1BC,aAAa,EAAE,GAAG;MAClBC,UAAU,EAAE;IACd,CAAE;IACFnB,kBAAkB,EAAEA,kBAAkB,IAAIN;EAAK,GAE9CA,IACK,CAAC,eACT7C,KAAA,CAAA0D,aAAA,CAACvD,YAAA,CAAAoE,KAAK;IACJC,gCAAgC;IAChCC,MAAM,EAAEjB,UAAW;IACnBkB,KAAK,EAAE5C,MAAM,CAACG;EAAQ,CACvB,CACkB,CAAC;AAE1B,CAAC;AAAC0C,OAAA,CAAAhC,SAAA,GAAAA,SAAA;AAAA,IAAAiC,QAAA,GAEajC,SAAS;AAAAgC,OAAA,CAAA5D,OAAA,GAAA6D,QAAA"}
|
|
@@ -82,33 +82,21 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
82
82
|
>
|
|
83
83
|
<Text
|
|
84
84
|
allowFontScaling={false}
|
|
85
|
-
color="white"
|
|
86
|
-
defaultColor="bluegreyDark"
|
|
87
|
-
defaultWeight="Semibold"
|
|
88
85
|
dynamicTypeRamp="title2"
|
|
89
|
-
font="TitilliumSansPro"
|
|
90
|
-
fontStyle={
|
|
91
|
-
{
|
|
92
|
-
"fontSize": 22,
|
|
93
|
-
"lineHeight": 33,
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
86
|
maxFontSizeMultiplier={1.25}
|
|
97
87
|
style={
|
|
98
88
|
[
|
|
99
|
-
{
|
|
100
|
-
"fontSize": 22,
|
|
101
|
-
"lineHeight": 33,
|
|
102
|
-
},
|
|
89
|
+
{},
|
|
103
90
|
{
|
|
104
91
|
"color": "#FFFFFF",
|
|
105
92
|
"fontFamily": "Titillium Sans Pro",
|
|
93
|
+
"fontSize": 22,
|
|
106
94
|
"fontStyle": "normal",
|
|
107
95
|
"fontWeight": "600",
|
|
96
|
+
"lineHeight": 33,
|
|
108
97
|
},
|
|
109
98
|
]
|
|
110
99
|
}
|
|
111
|
-
weight="Semibold"
|
|
112
100
|
>
|
|
113
101
|
1
|
|
114
102
|
</Text>
|
|
@@ -173,33 +161,21 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
173
161
|
>
|
|
174
162
|
<Text
|
|
175
163
|
allowFontScaling={false}
|
|
176
|
-
color="white"
|
|
177
|
-
defaultColor="bluegreyDark"
|
|
178
|
-
defaultWeight="Semibold"
|
|
179
164
|
dynamicTypeRamp="title2"
|
|
180
|
-
font="TitilliumSansPro"
|
|
181
|
-
fontStyle={
|
|
182
|
-
{
|
|
183
|
-
"fontSize": 22,
|
|
184
|
-
"lineHeight": 33,
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
165
|
maxFontSizeMultiplier={1.25}
|
|
188
166
|
style={
|
|
189
167
|
[
|
|
190
|
-
{
|
|
191
|
-
"fontSize": 22,
|
|
192
|
-
"lineHeight": 33,
|
|
193
|
-
},
|
|
168
|
+
{},
|
|
194
169
|
{
|
|
195
170
|
"color": "#FFFFFF",
|
|
196
171
|
"fontFamily": "Titillium Sans Pro",
|
|
172
|
+
"fontSize": 22,
|
|
197
173
|
"fontStyle": "normal",
|
|
198
174
|
"fontWeight": "600",
|
|
175
|
+
"lineHeight": 33,
|
|
199
176
|
},
|
|
200
177
|
]
|
|
201
178
|
}
|
|
202
|
-
weight="Semibold"
|
|
203
179
|
>
|
|
204
180
|
2
|
|
205
181
|
</Text>
|
|
@@ -264,33 +240,21 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
264
240
|
>
|
|
265
241
|
<Text
|
|
266
242
|
allowFontScaling={false}
|
|
267
|
-
color="white"
|
|
268
|
-
defaultColor="bluegreyDark"
|
|
269
|
-
defaultWeight="Semibold"
|
|
270
243
|
dynamicTypeRamp="title2"
|
|
271
|
-
font="TitilliumSansPro"
|
|
272
|
-
fontStyle={
|
|
273
|
-
{
|
|
274
|
-
"fontSize": 22,
|
|
275
|
-
"lineHeight": 33,
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
244
|
maxFontSizeMultiplier={1.25}
|
|
279
245
|
style={
|
|
280
246
|
[
|
|
281
|
-
{
|
|
282
|
-
"fontSize": 22,
|
|
283
|
-
"lineHeight": 33,
|
|
284
|
-
},
|
|
247
|
+
{},
|
|
285
248
|
{
|
|
286
249
|
"color": "#FFFFFF",
|
|
287
250
|
"fontFamily": "Titillium Sans Pro",
|
|
251
|
+
"fontSize": 22,
|
|
288
252
|
"fontStyle": "normal",
|
|
289
253
|
"fontWeight": "600",
|
|
254
|
+
"lineHeight": 33,
|
|
290
255
|
},
|
|
291
256
|
]
|
|
292
257
|
}
|
|
293
|
-
weight="Semibold"
|
|
294
258
|
>
|
|
295
259
|
3
|
|
296
260
|
</Text>
|
|
@@ -378,33 +342,21 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
378
342
|
>
|
|
379
343
|
<Text
|
|
380
344
|
allowFontScaling={false}
|
|
381
|
-
color="white"
|
|
382
|
-
defaultColor="bluegreyDark"
|
|
383
|
-
defaultWeight="Semibold"
|
|
384
345
|
dynamicTypeRamp="title2"
|
|
385
|
-
font="TitilliumSansPro"
|
|
386
|
-
fontStyle={
|
|
387
|
-
{
|
|
388
|
-
"fontSize": 22,
|
|
389
|
-
"lineHeight": 33,
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
346
|
maxFontSizeMultiplier={1.25}
|
|
393
347
|
style={
|
|
394
348
|
[
|
|
395
|
-
{
|
|
396
|
-
"fontSize": 22,
|
|
397
|
-
"lineHeight": 33,
|
|
398
|
-
},
|
|
349
|
+
{},
|
|
399
350
|
{
|
|
400
351
|
"color": "#FFFFFF",
|
|
401
352
|
"fontFamily": "Titillium Sans Pro",
|
|
353
|
+
"fontSize": 22,
|
|
402
354
|
"fontStyle": "normal",
|
|
403
355
|
"fontWeight": "600",
|
|
356
|
+
"lineHeight": 33,
|
|
404
357
|
},
|
|
405
358
|
]
|
|
406
359
|
}
|
|
407
|
-
weight="Semibold"
|
|
408
360
|
>
|
|
409
361
|
4
|
|
410
362
|
</Text>
|
|
@@ -469,33 +421,21 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
469
421
|
>
|
|
470
422
|
<Text
|
|
471
423
|
allowFontScaling={false}
|
|
472
|
-
color="white"
|
|
473
|
-
defaultColor="bluegreyDark"
|
|
474
|
-
defaultWeight="Semibold"
|
|
475
424
|
dynamicTypeRamp="title2"
|
|
476
|
-
font="TitilliumSansPro"
|
|
477
|
-
fontStyle={
|
|
478
|
-
{
|
|
479
|
-
"fontSize": 22,
|
|
480
|
-
"lineHeight": 33,
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
425
|
maxFontSizeMultiplier={1.25}
|
|
484
426
|
style={
|
|
485
427
|
[
|
|
486
|
-
{
|
|
487
|
-
"fontSize": 22,
|
|
488
|
-
"lineHeight": 33,
|
|
489
|
-
},
|
|
428
|
+
{},
|
|
490
429
|
{
|
|
491
430
|
"color": "#FFFFFF",
|
|
492
431
|
"fontFamily": "Titillium Sans Pro",
|
|
432
|
+
"fontSize": 22,
|
|
493
433
|
"fontStyle": "normal",
|
|
494
434
|
"fontWeight": "600",
|
|
435
|
+
"lineHeight": 33,
|
|
495
436
|
},
|
|
496
437
|
]
|
|
497
438
|
}
|
|
498
|
-
weight="Semibold"
|
|
499
439
|
>
|
|
500
440
|
5
|
|
501
441
|
</Text>
|
|
@@ -560,33 +500,21 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
560
500
|
>
|
|
561
501
|
<Text
|
|
562
502
|
allowFontScaling={false}
|
|
563
|
-
color="white"
|
|
564
|
-
defaultColor="bluegreyDark"
|
|
565
|
-
defaultWeight="Semibold"
|
|
566
503
|
dynamicTypeRamp="title2"
|
|
567
|
-
font="TitilliumSansPro"
|
|
568
|
-
fontStyle={
|
|
569
|
-
{
|
|
570
|
-
"fontSize": 22,
|
|
571
|
-
"lineHeight": 33,
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
504
|
maxFontSizeMultiplier={1.25}
|
|
575
505
|
style={
|
|
576
506
|
[
|
|
577
|
-
{
|
|
578
|
-
"fontSize": 22,
|
|
579
|
-
"lineHeight": 33,
|
|
580
|
-
},
|
|
507
|
+
{},
|
|
581
508
|
{
|
|
582
509
|
"color": "#FFFFFF",
|
|
583
510
|
"fontFamily": "Titillium Sans Pro",
|
|
511
|
+
"fontSize": 22,
|
|
584
512
|
"fontStyle": "normal",
|
|
585
513
|
"fontWeight": "600",
|
|
514
|
+
"lineHeight": 33,
|
|
586
515
|
},
|
|
587
516
|
]
|
|
588
517
|
}
|
|
589
|
-
weight="Semibold"
|
|
590
518
|
>
|
|
591
519
|
6
|
|
592
520
|
</Text>
|
|
@@ -674,33 +602,21 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
674
602
|
>
|
|
675
603
|
<Text
|
|
676
604
|
allowFontScaling={false}
|
|
677
|
-
color="white"
|
|
678
|
-
defaultColor="bluegreyDark"
|
|
679
|
-
defaultWeight="Semibold"
|
|
680
605
|
dynamicTypeRamp="title2"
|
|
681
|
-
font="TitilliumSansPro"
|
|
682
|
-
fontStyle={
|
|
683
|
-
{
|
|
684
|
-
"fontSize": 22,
|
|
685
|
-
"lineHeight": 33,
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
606
|
maxFontSizeMultiplier={1.25}
|
|
689
607
|
style={
|
|
690
608
|
[
|
|
691
|
-
{
|
|
692
|
-
"fontSize": 22,
|
|
693
|
-
"lineHeight": 33,
|
|
694
|
-
},
|
|
609
|
+
{},
|
|
695
610
|
{
|
|
696
611
|
"color": "#FFFFFF",
|
|
697
612
|
"fontFamily": "Titillium Sans Pro",
|
|
613
|
+
"fontSize": 22,
|
|
698
614
|
"fontStyle": "normal",
|
|
699
615
|
"fontWeight": "600",
|
|
616
|
+
"lineHeight": 33,
|
|
700
617
|
},
|
|
701
618
|
]
|
|
702
619
|
}
|
|
703
|
-
weight="Semibold"
|
|
704
620
|
>
|
|
705
621
|
7
|
|
706
622
|
</Text>
|
|
@@ -765,33 +681,21 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
765
681
|
>
|
|
766
682
|
<Text
|
|
767
683
|
allowFontScaling={false}
|
|
768
|
-
color="white"
|
|
769
|
-
defaultColor="bluegreyDark"
|
|
770
|
-
defaultWeight="Semibold"
|
|
771
684
|
dynamicTypeRamp="title2"
|
|
772
|
-
font="TitilliumSansPro"
|
|
773
|
-
fontStyle={
|
|
774
|
-
{
|
|
775
|
-
"fontSize": 22,
|
|
776
|
-
"lineHeight": 33,
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
685
|
maxFontSizeMultiplier={1.25}
|
|
780
686
|
style={
|
|
781
687
|
[
|
|
782
|
-
{
|
|
783
|
-
"fontSize": 22,
|
|
784
|
-
"lineHeight": 33,
|
|
785
|
-
},
|
|
688
|
+
{},
|
|
786
689
|
{
|
|
787
690
|
"color": "#FFFFFF",
|
|
788
691
|
"fontFamily": "Titillium Sans Pro",
|
|
692
|
+
"fontSize": 22,
|
|
789
693
|
"fontStyle": "normal",
|
|
790
694
|
"fontWeight": "600",
|
|
695
|
+
"lineHeight": 33,
|
|
791
696
|
},
|
|
792
697
|
]
|
|
793
698
|
}
|
|
794
|
-
weight="Semibold"
|
|
795
699
|
>
|
|
796
700
|
8
|
|
797
701
|
</Text>
|
|
@@ -856,33 +760,21 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
856
760
|
>
|
|
857
761
|
<Text
|
|
858
762
|
allowFontScaling={false}
|
|
859
|
-
color="white"
|
|
860
|
-
defaultColor="bluegreyDark"
|
|
861
|
-
defaultWeight="Semibold"
|
|
862
763
|
dynamicTypeRamp="title2"
|
|
863
|
-
font="TitilliumSansPro"
|
|
864
|
-
fontStyle={
|
|
865
|
-
{
|
|
866
|
-
"fontSize": 22,
|
|
867
|
-
"lineHeight": 33,
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
764
|
maxFontSizeMultiplier={1.25}
|
|
871
765
|
style={
|
|
872
766
|
[
|
|
873
|
-
{
|
|
874
|
-
"fontSize": 22,
|
|
875
|
-
"lineHeight": 33,
|
|
876
|
-
},
|
|
767
|
+
{},
|
|
877
768
|
{
|
|
878
769
|
"color": "#FFFFFF",
|
|
879
770
|
"fontFamily": "Titillium Sans Pro",
|
|
771
|
+
"fontSize": 22,
|
|
880
772
|
"fontStyle": "normal",
|
|
881
773
|
"fontWeight": "600",
|
|
774
|
+
"lineHeight": 33,
|
|
882
775
|
},
|
|
883
776
|
]
|
|
884
777
|
}
|
|
885
|
-
weight="Semibold"
|
|
886
778
|
>
|
|
887
779
|
9
|
|
888
780
|
</Text>
|
|
@@ -1111,33 +1003,21 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
1111
1003
|
>
|
|
1112
1004
|
<Text
|
|
1113
1005
|
allowFontScaling={false}
|
|
1114
|
-
color="white"
|
|
1115
|
-
defaultColor="bluegreyDark"
|
|
1116
|
-
defaultWeight="Semibold"
|
|
1117
1006
|
dynamicTypeRamp="title2"
|
|
1118
|
-
font="TitilliumSansPro"
|
|
1119
|
-
fontStyle={
|
|
1120
|
-
{
|
|
1121
|
-
"fontSize": 22,
|
|
1122
|
-
"lineHeight": 33,
|
|
1123
|
-
}
|
|
1124
|
-
}
|
|
1125
1007
|
maxFontSizeMultiplier={1.25}
|
|
1126
1008
|
style={
|
|
1127
1009
|
[
|
|
1128
|
-
{
|
|
1129
|
-
"fontSize": 22,
|
|
1130
|
-
"lineHeight": 33,
|
|
1131
|
-
},
|
|
1010
|
+
{},
|
|
1132
1011
|
{
|
|
1133
1012
|
"color": "#FFFFFF",
|
|
1134
1013
|
"fontFamily": "Titillium Sans Pro",
|
|
1014
|
+
"fontSize": 22,
|
|
1135
1015
|
"fontStyle": "normal",
|
|
1136
1016
|
"fontWeight": "600",
|
|
1017
|
+
"lineHeight": 33,
|
|
1137
1018
|
},
|
|
1138
1019
|
]
|
|
1139
1020
|
}
|
|
1140
|
-
weight="Semibold"
|
|
1141
1021
|
>
|
|
1142
1022
|
0
|
|
1143
1023
|
</Text>
|
|
@@ -212,12 +212,10 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
212
212
|
marginRight: iconMargin
|
|
213
213
|
},
|
|
214
214
|
placeholder: {
|
|
215
|
-
|
|
216
|
-
...(0, _fonts.makeFontStyleObject)("Regular", false, "ReadexPro")
|
|
215
|
+
...(0, _fonts.makeFontStyleObject)(inputFontSizePlaceholder, "ReadexPro", undefined, "Regular")
|
|
217
216
|
},
|
|
218
217
|
placeholderLegacy: {
|
|
219
|
-
|
|
220
|
-
...(0, _fonts.makeFontStyleObject)("Regular", false, "TitilliumSansPro")
|
|
218
|
+
...(0, _fonts.makeFontStyleObject)(inputFontSizePlaceholder, "TitilliumSansPro", undefined, "Regular")
|
|
221
219
|
},
|
|
222
220
|
cancelButton: {
|
|
223
221
|
position: "absolute",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_core","_fonts","_buttons","_icons","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","inputPaddingHorizontal","inputPaddingClearButton","inputRadius","inputBgColorDefault","IOColors","inputBgColorFocused","inputColorPlaceholder","iconMargin","iconColor","iconSize","iconCloseSize","inputFontSizePlaceholder","cancelButtonMargin","inputTransitionDuration","inputHeightIOS","inputHeightAndroid","AnimatedTextInput","Animated","createAnimatedComponent","TextInput","AnimatedPressable","Pressable","inputWithTimingConfig","duration","easing","Easing","inOut","cubic","SearchInput","forwardRef","_ref","ref","accessibilityLabel","cancelButtonLabel","clearAccessibilityLabel","placeholder","autoFocus","keepCancelVisible","onCancel","onChangeText","pressable","testID","value","searchInputRef","useRef","theme","useIOTheme","isExperimental","useIOExperimentalDesign","inputCaretColor","inputWidth","Dimensions","width","IOVisualCostants","appMarginDefault","cancelButtonWidth","setCancelButtonWidth","useState","getCancelButtonWidth","_ref2","nativeEvent","layout","inputWidthWithCancel","useImperativeHandle","focus","_searchInputRef$curre","current","inputAnimatedWidth","useSharedValue","isFocused","animatedStyle","useAnimatedStyle","withTiming","backgroundColor","interpolateColor","cancelButtonAnimatedStyle","showCancelButton","transform","translateX","interpolate","Extrapolate","CLAMP","opacity","clearButtonAnimatedStyle","showClearButton","length","scale","handleFocus","handleBlur","cancel","useCallback","event","clear","_searchInputRef$curre2","handleChangeText","text","renderSearchBar","createElement","View","style","styles","searchBar","searchInput","pointerEvents","iconContainer","Icon","name","size","color","inputMode","returnKeyType","accessibilityRole","textInput","Platform","OS","textInputIOS","textInputAndroid","placeholderLegacy","selectionColor","cursorColor","placeholderTextColor","onFocus","onBlur","clearButton","onPress","hitSlop","onLayout","cancelButton","ButtonLink","label","exports","StyleSheet","create","flexDirection","justifyContent","alignItems","flexShrink","borderRadius","borderCurve","paddingLeft","paddingRight","flexGrow","height","marginRight","fontSize","makeFontStyleObject","position","right","marginLeft"],"sourceRoot":"../../../../src","sources":["components/searchInput/SearchInput.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AAaA,IAAAE,sBAAA,GAAAH,u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EAAE3I,sBAAsB;IACnC4I,YAAY,EAAE3I;EAChB,CAAC;EACD+G,SAAS,EAAE;IACTwB,UAAU,EAAE,CAAC;IACbK,QAAQ,EAAE;EACZ,CAAC;EACD1B,YAAY,EAAE;IACZ2B,MAAM,EAAEhI;EACV,CAAC;EACDsG,gBAAgB,EAAE;IAChB0B,MAAM,EAAE/H;EACV,CAAC;EACDyF,aAAa,EAAE;IACbuC,WAAW,EAAExI;EACf,CAAC;EACD4B,WAAW,EAAE;IACX6G,QAAQ,EAAErI,wBAAwB;IAClC,GAAG,IAAAsI,0BAAmB,EAAC,SAAS,EAAE,KAAK,EAAE,WAAW;EACtD,CAAC;EACD5B,iBAAiB,EAAE;IACjB2B,QAAQ,EAAErI,wBAAwB;IAClC,GAAG,IAAAsI,0BAAmB,EAAC,SAAS,EAAE,KAAK,EAAE,kBAAkB;EAC7D,CAAC;EACDlB,YAAY,EAAE;IACZmB,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,CAAC;IACRR,WAAW,EAAE/H;EACf,CAAC;EACD+G,WAAW,EAAE;IACXyB,UAAU,EAAE7I;EACd;AACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_core","_fonts","_buttons","_icons","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","inputPaddingHorizontal","inputPaddingClearButton","inputRadius","inputBgColorDefault","IOColors","inputBgColorFocused","inputColorPlaceholder","iconMargin","iconColor","iconSize","iconCloseSize","inputFontSizePlaceholder","cancelButtonMargin","inputTransitionDuration","inputHeightIOS","inputHeightAndroid","AnimatedTextInput","Animated","createAnimatedComponent","TextInput","AnimatedPressable","Pressable","inputWithTimingConfig","duration","easing","Easing","inOut","cubic","SearchInput","forwardRef","_ref","ref","accessibilityLabel","cancelButtonLabel","clearAccessibilityLabel","placeholder","autoFocus","keepCancelVisible","onCancel","onChangeText","pressable","testID","value","searchInputRef","useRef","theme","useIOTheme","isExperimental","useIOExperimentalDesign","inputCaretColor","inputWidth","Dimensions","width","IOVisualCostants","appMarginDefault","cancelButtonWidth","setCancelButtonWidth","useState","getCancelButtonWidth","_ref2","nativeEvent","layout","inputWidthWithCancel","useImperativeHandle","focus","_searchInputRef$curre","current","inputAnimatedWidth","useSharedValue","isFocused","animatedStyle","useAnimatedStyle","withTiming","backgroundColor","interpolateColor","cancelButtonAnimatedStyle","showCancelButton","transform","translateX","interpolate","Extrapolate","CLAMP","opacity","clearButtonAnimatedStyle","showClearButton","length","scale","handleFocus","handleBlur","cancel","useCallback","event","clear","_searchInputRef$curre2","handleChangeText","text","renderSearchBar","createElement","View","style","styles","searchBar","searchInput","pointerEvents","iconContainer","Icon","name","size","color","inputMode","returnKeyType","accessibilityRole","textInput","Platform","OS","textInputIOS","textInputAndroid","placeholderLegacy","selectionColor","cursorColor","placeholderTextColor","onFocus","onBlur","clearButton","onPress","hitSlop","onLayout","cancelButton","ButtonLink","label","exports","StyleSheet","create","flexDirection","justifyContent","alignItems","flexShrink","borderRadius","borderCurve","paddingLeft","paddingRight","flexGrow","height","marginRight","makeFontStyleObject","undefined","position","right","marginLeft"],"sourceRoot":"../../../../src","sources":["components/searchInput/SearchInput.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AAaA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAUA,IAAAG,KAAA,GAAAH,OAAA;AAOA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AAAiD,SAAAO,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,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a,EAAE;IACbuC,WAAW,EAAExI;EACf,CAAC;EACD4B,WAAW,EAAE;IACX,GAAG,IAAA6G,0BAAmB,EACpBrI,wBAAwB,EACxB,WAAW,EACXsI,SAAS,EACT,SACF;EACF,CAAC;EACD5B,iBAAiB,EAAE;IACjB,GAAG,IAAA2B,0BAAmB,EACpBrI,wBAAwB,EACxB,kBAAkB,EAClBsI,SAAS,EACT,SACF;EACF,CAAC;EACDlB,YAAY,EAAE;IACZmB,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,CAAC;IACRR,WAAW,EAAE/H;EACf,CAAC;EACD+G,WAAW,EAAE;IACXyB,UAAU,EAAE7I;EACd;AACF,CAAC,CAAC"}
|
|
@@ -9,7 +9,6 @@ var _reactNative = require("react-native");
|
|
|
9
9
|
var _core = require("../../core");
|
|
10
10
|
var _IOStyles = require("../../core/IOStyles");
|
|
11
11
|
var _hapticFeedback = require("../../functions/haptic-feedback/hapticFeedback");
|
|
12
|
-
var _fonts = require("../../utils/fonts");
|
|
13
12
|
var _Spacer = require("../spacer/Spacer");
|
|
14
13
|
var _H = require("../typography/H6");
|
|
15
14
|
var _AnimatedSwitch = require("./AnimatedSwitch");
|
|
@@ -19,17 +18,6 @@ const DISABLED_OPACITY = 0.5;
|
|
|
19
18
|
|
|
20
19
|
// disabled: the component is no longer touchable
|
|
21
20
|
// onPress:
|
|
22
|
-
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
23
|
-
const styles = _reactNative.StyleSheet.create({
|
|
24
|
-
legacyTextValue: {
|
|
25
|
-
fontSize: 16,
|
|
26
|
-
lineHeight: 24,
|
|
27
|
-
color: _core.IOColors.bluegreyDark,
|
|
28
|
-
flexShrink: 1,
|
|
29
|
-
...(0, _fonts.makeFontStyleObject)("Semibold", undefined, "TitilliumSansPro")
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
|
|
33
21
|
/**
|
|
34
22
|
* A checkbox with the automatic state management that uses a {@link AnimatedCheckBox}
|
|
35
23
|
* The toggleValue change when a `onPress` event is received and dispatch the `onValueChange`.
|
|
@@ -44,23 +32,8 @@ const SwitchLabel = _ref => {
|
|
|
44
32
|
disabled,
|
|
45
33
|
onValueChange
|
|
46
34
|
} = _ref;
|
|
47
|
-
const [toggleValue, setToggleValue] = (0, React.useState)(checked ?? false);
|
|
48
35
|
const theme = (0, _core.useIOTheme)();
|
|
49
|
-
const
|
|
50
|
-
isExperimental
|
|
51
|
-
} = (0, _core.useIOExperimentalDesign)();
|
|
52
|
-
const switchLabelText = /*#__PURE__*/React.createElement(_H.H6, {
|
|
53
|
-
style: {
|
|
54
|
-
flexShrink: 1
|
|
55
|
-
},
|
|
56
|
-
color: theme["textBody-default"]
|
|
57
|
-
}, label);
|
|
58
|
-
|
|
59
|
-
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
60
|
-
const legacySwitchlabelText = /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
61
|
-
style: styles.legacyTextValue
|
|
62
|
-
}, label);
|
|
63
|
-
const switchLabelTextComponent = isExperimental ? switchLabelText : legacySwitchlabelText;
|
|
36
|
+
const [toggleValue, setToggleValue] = (0, React.useState)(checked ?? false);
|
|
64
37
|
const toggleCheckbox = () => {
|
|
65
38
|
(0, _hapticFeedback.triggerHaptic)("impactLight");
|
|
66
39
|
setToggleValue(!toggleValue);
|
|
@@ -93,7 +66,12 @@ const SwitchLabel = _ref => {
|
|
|
93
66
|
checked: checked ?? toggleValue
|
|
94
67
|
})), /*#__PURE__*/React.createElement(_Spacer.HSpacer, {
|
|
95
68
|
size: 8
|
|
96
|
-
}),
|
|
69
|
+
}), /*#__PURE__*/React.createElement(_H.H6, {
|
|
70
|
+
style: {
|
|
71
|
+
flexShrink: 1
|
|
72
|
+
},
|
|
73
|
+
color: theme["textBody-default"]
|
|
74
|
+
}, label)));
|
|
97
75
|
};
|
|
98
76
|
exports.SwitchLabel = SwitchLabel;
|
|
99
77
|
//# sourceMappingURL=SwitchLabel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_core","_IOStyles","_hapticFeedback","
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_core","_IOStyles","_hapticFeedback","_Spacer","_H","_AnimatedSwitch","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","DISABLED_OPACITY","SwitchLabel","_ref","label","checked","disabled","onValueChange","theme","useIOTheme","toggleValue","setToggleValue","useState","toggleCheckbox","triggerHaptic","undefined","createElement","Pressable","onPress","accessibilityRole","accessibilityState","style","alignSelf","opacity","testID","View","IOStyles","row","alignItems","flexShrink","width","pointerEvents","AnimatedSwitch","HSpacer","size","H6","color","exports"],"sourceRoot":"../../../../src","sources":["components/switch/SwitchLabel.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,EAAA,GAAAN,OAAA;AACA,IAAAO,eAAA,GAAAP,OAAA;AAAkD,SAAAQ,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAV,wBAAAc,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,o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
|
@@ -11,7 +11,7 @@ var _core = require("../../core");
|
|
|
11
11
|
var _useSpringPressProgressValue = require("../../utils/hooks/useSpringPressProgressValue");
|
|
12
12
|
var _icons = require("../icons");
|
|
13
13
|
var _spacer = require("../spacer");
|
|
14
|
-
var
|
|
14
|
+
var _typography = require("../typography");
|
|
15
15
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
17
|
const mapColorStates = {
|
|
@@ -159,7 +159,8 @@ const TabItem = _ref => {
|
|
|
159
159
|
size: 16
|
|
160
160
|
}), /*#__PURE__*/_react.default.createElement(_spacer.HSpacer, {
|
|
161
161
|
size: 4
|
|
162
|
-
})), /*#__PURE__*/_react.default.createElement(
|
|
162
|
+
})), /*#__PURE__*/_react.default.createElement(_typography.LabelSmall, {
|
|
163
|
+
weight: "Semibold",
|
|
163
164
|
color: foregroundColor
|
|
164
165
|
}, label)));
|
|
165
166
|
};
|