@pagopa/io-app-design-system 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/alert/Alert.js +9 -1
- package/lib/commonjs/components/alert/Alert.js.map +1 -1
- package/lib/commonjs/components/badge/Badge.js +11 -2
- package/lib/commonjs/components/badge/Badge.js.map +1 -1
- package/lib/commonjs/components/badge/__test__/__snapshots__/badge.test.tsx.snap +5 -3
- package/lib/commonjs/components/banner/Banner.js +0 -1
- package/lib/commonjs/components/banner/Banner.js.map +1 -1
- package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +5 -5
- package/lib/commonjs/components/buttons/ButtonExtendedOutline.js +1 -1
- package/lib/commonjs/components/buttons/ButtonExtendedOutline.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonLink.js +3 -2
- package/lib/commonjs/components/buttons/ButtonLink.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonOutline.js +8 -48
- package/lib/commonjs/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonSolid.js +5 -7
- package/lib/commonjs/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButtonSolid.js +54 -29
- package/lib/commonjs/components/buttons/IconButtonSolid.js.map +1 -1
- package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +23 -21
- package/lib/commonjs/components/checkbox/AnimatedCheckbox.js +14 -2
- package/lib/commonjs/components/checkbox/AnimatedCheckbox.js.map +1 -1
- package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js +11 -3
- package/lib/commonjs/components/checkbox/AnimatedMessageCheckbox.js.map +1 -1
- package/lib/commonjs/components/checkbox/CheckboxLabel.js +31 -8
- package/lib/commonjs/components/checkbox/CheckboxLabel.js.map +1 -1
- package/lib/commonjs/components/icons/Icon.js +27 -15
- package/lib/commonjs/components/icons/Icon.js.map +1 -1
- package/lib/commonjs/components/icons/IconContained.js +59 -0
- package/lib/commonjs/components/icons/IconContained.js.map +1 -0
- package/lib/commonjs/components/icons/index.js +11 -0
- package/lib/commonjs/components/icons/index.js.map +1 -1
- package/lib/commonjs/components/icons/svg/IconChange.js +31 -0
- package/lib/commonjs/components/icons/svg/IconChange.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconDialpad.js +29 -0
- package/lib/commonjs/components/icons/svg/IconDialpad.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconKey.js +31 -0
- package/lib/commonjs/components/icons/svg/IconKey.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconNotification.js +31 -0
- package/lib/commonjs/components/icons/svg/IconNotification.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconOption.js +31 -0
- package/lib/commonjs/components/icons/svg/IconOption.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconTransactions.js +1 -1
- package/lib/commonjs/components/icons/svg/IconTransactions.js.map +1 -1
- package/lib/commonjs/components/icons/svg/IconTransactionsBoxed.js +31 -0
- package/lib/commonjs/components/icons/svg/IconTransactionsBoxed.js.map +1 -0
- package/lib/commonjs/components/icons/svg/originals/IconChange.svg +3 -0
- package/lib/commonjs/components/icons/svg/originals/IconDialpad.svg +5 -0
- package/lib/commonjs/components/icons/svg/originals/IconKey.svg +7 -0
- package/lib/commonjs/components/icons/svg/originals/IconNotification.svg +7 -0
- package/lib/commonjs/components/icons/svg/originals/IconOption.svg +7 -0
- package/lib/commonjs/components/icons/svg/originals/IconTransactions.svg +8 -0
- package/lib/commonjs/components/icons/svg/originals/IconTransactionsBoxed.svg +8 -0
- package/lib/commonjs/components/index.js +11 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemAction.js +38 -8
- package/lib/commonjs/components/listitems/ListItemAction.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemInfo.js +31 -7
- package/lib/commonjs/components/listitems/ListItemInfo.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js +40 -10
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNav.js +30 -7
- package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNavAlert.js +32 -7
- package/lib/commonjs/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemSwitch.js +1 -1
- package/lib/commonjs/components/listitems/ListItemSwitch.js.map +1 -1
- package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +75 -108
- package/lib/commonjs/components/listitems/__test__/listitem.test.js +2 -2
- package/lib/commonjs/components/listitems/__test__/listitem.test.js.map +1 -1
- package/lib/commonjs/components/listitems/index.js +4 -4
- package/lib/commonjs/components/listitems/index.js.map +1 -1
- package/lib/commonjs/components/{listitems/ListItemIDP.js → modules/ModuleIDP.js} +19 -12
- package/lib/commonjs/components/modules/ModuleIDP.js.map +1 -0
- package/lib/commonjs/components/modules/index.js +17 -0
- package/lib/commonjs/components/modules/index.js.map +1 -0
- package/lib/commonjs/components/pictograms/Pictogram.js +13 -1
- package/lib/commonjs/components/pictograms/Pictogram.js.map +1 -1
- package/lib/commonjs/components/pictograms/svg/PictogramBleedCie.js +47 -0
- package/lib/commonjs/components/pictograms/svg/PictogramBleedCie.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/PictogramBleedFeature.js +50 -0
- package/lib/commonjs/components/pictograms/svg/PictogramBleedFeature.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/PictogramBleedSecurity.js +44 -0
- package/lib/commonjs/components/pictograms/svg/PictogramBleedSecurity.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/PictogramCie.js +47 -0
- package/lib/commonjs/components/pictograms/svg/PictogramCie.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/PictogramFeature.js +50 -0
- package/lib/commonjs/components/pictograms/svg/PictogramFeature.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/PictogramSecurity.js +47 -0
- package/lib/commonjs/components/pictograms/svg/PictogramSecurity.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedCie.svg +30 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedFeature.svg +34 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedSecurity.svg +26 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramCie.svg +30 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramFeature.svg +34 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramSecurity.svg +30 -0
- package/lib/commonjs/components/radio/AnimatedRadio.js +14 -2
- package/lib/commonjs/components/radio/AnimatedRadio.js.map +1 -1
- package/lib/commonjs/components/switch/NativeSwitch.js +19 -5
- package/lib/commonjs/components/switch/NativeSwitch.js.map +1 -1
- package/lib/commonjs/components/switch/SwitchLabel.js +31 -8
- package/lib/commonjs/components/switch/SwitchLabel.js.map +1 -1
- package/lib/commonjs/components/tag/Tag.js +16 -8
- package/lib/commonjs/components/tag/Tag.js.map +1 -1
- package/lib/commonjs/components/textInput/TextInputBase.js +11 -2
- package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
- package/lib/commonjs/components/typography/Body.js +1 -4
- package/lib/commonjs/components/typography/Body.js.map +1 -1
- package/lib/commonjs/components/typography/BodyMonospace.js +28 -0
- package/lib/commonjs/components/typography/BodyMonospace.js.map +1 -0
- package/lib/commonjs/components/typography/ButtonText.js +39 -0
- package/lib/commonjs/components/typography/ButtonText.js.map +1 -0
- package/lib/commonjs/components/typography/Caption.js +37 -0
- package/lib/commonjs/components/typography/Caption.js.map +1 -0
- package/lib/commonjs/components/typography/Chip.js +34 -0
- package/lib/commonjs/components/typography/Chip.js.map +1 -0
- package/lib/commonjs/components/typography/H1.js +18 -15
- package/lib/commonjs/components/typography/H1.js.map +1 -1
- package/lib/commonjs/components/typography/H2.js +18 -15
- package/lib/commonjs/components/typography/H2.js.map +1 -1
- package/lib/commonjs/components/typography/H3.js +24 -18
- package/lib/commonjs/components/typography/H3.js.map +1 -1
- package/lib/commonjs/components/typography/H4.js +18 -14
- package/lib/commonjs/components/typography/H4.js.map +1 -1
- package/lib/commonjs/components/typography/H5.js +19 -33
- package/lib/commonjs/components/typography/H5.js.map +1 -1
- package/lib/commonjs/components/typography/H6.js +15 -13
- package/lib/commonjs/components/typography/H6.js.map +1 -1
- package/lib/commonjs/components/typography/Hero.js +38 -0
- package/lib/commonjs/components/typography/Hero.js.map +1 -0
- package/lib/commonjs/components/typography/Label.js +13 -10
- package/lib/commonjs/components/typography/Label.js.map +1 -1
- package/lib/commonjs/components/typography/LabelHeader.js +19 -16
- package/lib/commonjs/components/typography/LabelHeader.js.map +1 -1
- package/lib/commonjs/components/typography/{Link.js → LabelLink.js} +9 -14
- package/lib/commonjs/components/typography/LabelLink.js.map +1 -0
- package/lib/commonjs/components/typography/LabelSmall.js +18 -22
- package/lib/commonjs/components/typography/LabelSmall.js.map +1 -1
- package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +195 -379
- package/lib/commonjs/components/typography/__test__/typography.test.js +10 -42
- package/lib/commonjs/components/typography/__test__/typography.test.js.map +1 -1
- package/lib/commonjs/components/typography/common.js +18 -1
- package/lib/commonjs/components/typography/common.js.map +1 -1
- package/lib/commonjs/components/typography/index.js +45 -12
- package/lib/commonjs/components/typography/index.js.map +1 -1
- package/lib/commonjs/core/IODSExperimentalContextProvider.js +3 -2
- package/lib/commonjs/core/IODSExperimentalContextProvider.js.map +1 -1
- package/lib/commonjs/core/IOShapes.js +3 -3
- package/lib/commonjs/core/IOShapes.js.map +1 -1
- package/lib/commonjs/core/IOSpacing.js +8 -8
- package/lib/commonjs/core/IOSpacing.js.map +1 -1
- package/lib/commonjs/core/IOStyles.js +2 -8
- package/lib/commonjs/core/IOStyles.js.map +1 -1
- package/lib/commonjs/stories/Link.stories.js +1 -1
- package/lib/commonjs/stories/Link.stories.js.map +1 -1
- package/lib/commonjs/stories/Monospace.stories.js +1 -1
- package/lib/commonjs/stories/Monospace.stories.js.map +1 -1
- package/lib/commonjs/utils/fonts.js +8 -6
- package/lib/commonjs/utils/fonts.js.map +1 -1
- package/lib/module/components/alert/Alert.js +9 -1
- package/lib/module/components/alert/Alert.js.map +1 -1
- package/lib/module/components/badge/Badge.js +12 -3
- package/lib/module/components/badge/Badge.js.map +1 -1
- package/lib/module/components/badge/__test__/__snapshots__/badge.test.tsx.snap +5 -3
- package/lib/module/components/banner/Banner.js +0 -1
- package/lib/module/components/banner/Banner.js.map +1 -1
- package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +5 -5
- package/lib/module/components/buttons/ButtonExtendedOutline.js +2 -2
- package/lib/module/components/buttons/ButtonExtendedOutline.js.map +1 -1
- package/lib/module/components/buttons/ButtonLink.js +3 -2
- package/lib/module/components/buttons/ButtonLink.js.map +1 -1
- package/lib/module/components/buttons/ButtonOutline.js +8 -48
- package/lib/module/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/module/components/buttons/ButtonSolid.js +5 -7
- package/lib/module/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/module/components/buttons/IconButtonSolid.js +55 -30
- package/lib/module/components/buttons/IconButtonSolid.js.map +1 -1
- package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +23 -21
- package/lib/module/components/checkbox/AnimatedCheckbox.js +15 -3
- package/lib/module/components/checkbox/AnimatedCheckbox.js.map +1 -1
- package/lib/module/components/checkbox/AnimatedMessageCheckbox.js +13 -5
- package/lib/module/components/checkbox/AnimatedMessageCheckbox.js.map +1 -1
- package/lib/module/components/checkbox/CheckboxLabel.js +32 -9
- package/lib/module/components/checkbox/CheckboxLabel.js.map +1 -1
- package/lib/module/components/icons/Icon.js +27 -15
- package/lib/module/components/icons/Icon.js.map +1 -1
- package/lib/module/components/icons/IconContained.js +51 -0
- package/lib/module/components/icons/IconContained.js.map +1 -0
- package/lib/module/components/icons/index.js +1 -0
- package/lib/module/components/icons/index.js.map +1 -1
- package/lib/module/components/icons/svg/IconChange.js +23 -0
- package/lib/module/components/icons/svg/IconChange.js.map +1 -0
- package/lib/module/components/icons/svg/IconDialpad.js +21 -0
- package/lib/module/components/icons/svg/IconDialpad.js.map +1 -0
- package/lib/module/components/icons/svg/IconKey.js +23 -0
- package/lib/module/components/icons/svg/IconKey.js.map +1 -0
- package/lib/module/components/icons/svg/IconNotification.js +23 -0
- package/lib/module/components/icons/svg/IconNotification.js.map +1 -0
- package/lib/module/components/icons/svg/IconOption.js +23 -0
- package/lib/module/components/icons/svg/IconOption.js.map +1 -0
- package/lib/module/components/icons/svg/IconTransactions.js +1 -1
- package/lib/module/components/icons/svg/IconTransactions.js.map +1 -1
- package/lib/module/components/icons/svg/IconTransactionsBoxed.js +23 -0
- package/lib/module/components/icons/svg/IconTransactionsBoxed.js.map +1 -0
- package/lib/module/components/icons/svg/originals/IconChange.svg +3 -0
- package/lib/module/components/icons/svg/originals/IconDialpad.svg +5 -0
- package/lib/module/components/icons/svg/originals/IconKey.svg +7 -0
- package/lib/module/components/icons/svg/originals/IconNotification.svg +7 -0
- package/lib/module/components/icons/svg/originals/IconOption.svg +7 -0
- package/lib/module/components/icons/svg/originals/IconTransactions.svg +8 -0
- package/lib/module/components/icons/svg/originals/IconTransactionsBoxed.svg +8 -0
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/listitems/ListItemAction.js +40 -10
- package/lib/module/components/listitems/ListItemAction.js.map +1 -1
- package/lib/module/components/listitems/ListItemInfo.js +34 -10
- package/lib/module/components/listitems/ListItemInfo.js.map +1 -1
- package/lib/module/components/listitems/ListItemInfoCopy.js +43 -13
- package/lib/module/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/module/components/listitems/ListItemNav.js +34 -10
- package/lib/module/components/listitems/ListItemNav.js.map +1 -1
- package/lib/module/components/listitems/ListItemNavAlert.js +35 -10
- package/lib/module/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/module/components/listitems/ListItemSwitch.js +2 -2
- package/lib/module/components/listitems/ListItemSwitch.js.map +1 -1
- package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +75 -108
- package/lib/module/components/listitems/__test__/listitem.test.js +1 -1
- package/lib/module/components/listitems/__test__/listitem.test.js.map +1 -1
- package/lib/module/components/listitems/index.js +1 -1
- package/lib/module/components/listitems/index.js.map +1 -1
- package/lib/module/components/{listitems/ListItemIDP.js → modules/ModuleIDP.js} +18 -11
- package/lib/module/components/modules/ModuleIDP.js.map +1 -0
- package/lib/module/components/modules/index.js +2 -0
- package/lib/module/components/modules/index.js.map +1 -0
- package/lib/module/components/pictograms/Pictogram.js +13 -1
- package/lib/module/components/pictograms/Pictogram.js.map +1 -1
- package/lib/module/components/pictograms/svg/PictogramBleedCie.js +39 -0
- package/lib/module/components/pictograms/svg/PictogramBleedCie.js.map +1 -0
- package/lib/module/components/pictograms/svg/PictogramBleedFeature.js +42 -0
- package/lib/module/components/pictograms/svg/PictogramBleedFeature.js.map +1 -0
- package/lib/module/components/pictograms/svg/PictogramBleedSecurity.js +36 -0
- package/lib/module/components/pictograms/svg/PictogramBleedSecurity.js.map +1 -0
- package/lib/module/components/pictograms/svg/PictogramCie.js +39 -0
- package/lib/module/components/pictograms/svg/PictogramCie.js.map +1 -0
- package/lib/module/components/pictograms/svg/PictogramFeature.js +42 -0
- package/lib/module/components/pictograms/svg/PictogramFeature.js.map +1 -0
- package/lib/module/components/pictograms/svg/PictogramSecurity.js +39 -0
- package/lib/module/components/pictograms/svg/PictogramSecurity.js.map +1 -0
- package/lib/module/components/pictograms/svg/originals/PictogramBleedCie.svg +30 -0
- package/lib/module/components/pictograms/svg/originals/PictogramBleedFeature.svg +34 -0
- package/lib/module/components/pictograms/svg/originals/PictogramBleedSecurity.svg +26 -0
- package/lib/module/components/pictograms/svg/originals/PictogramCie.svg +30 -0
- package/lib/module/components/pictograms/svg/originals/PictogramFeature.svg +34 -0
- package/lib/module/components/pictograms/svg/originals/PictogramSecurity.svg +30 -0
- package/lib/module/components/radio/AnimatedRadio.js +15 -3
- package/lib/module/components/radio/AnimatedRadio.js.map +1 -1
- package/lib/module/components/switch/NativeSwitch.js +20 -6
- package/lib/module/components/switch/NativeSwitch.js.map +1 -1
- package/lib/module/components/switch/SwitchLabel.js +32 -9
- package/lib/module/components/switch/SwitchLabel.js.map +1 -1
- package/lib/module/components/tag/Tag.js +12 -4
- package/lib/module/components/tag/Tag.js.map +1 -1
- package/lib/module/components/textInput/TextInputBase.js +12 -3
- package/lib/module/components/textInput/TextInputBase.js.map +1 -1
- package/lib/module/components/typography/Body.js +1 -4
- package/lib/module/components/typography/Body.js.map +1 -1
- package/lib/module/components/typography/BodyMonospace.js +21 -0
- package/lib/module/components/typography/BodyMonospace.js.map +1 -0
- package/lib/module/components/typography/ButtonText.js +31 -0
- package/lib/module/components/typography/ButtonText.js.map +1 -0
- package/lib/module/components/typography/Caption.js +29 -0
- package/lib/module/components/typography/Caption.js.map +1 -0
- package/lib/module/components/typography/Chip.js +27 -0
- package/lib/module/components/typography/Chip.js.map +1 -0
- package/lib/module/components/typography/H1.js +17 -12
- package/lib/module/components/typography/H1.js.map +1 -1
- package/lib/module/components/typography/H2.js +17 -12
- package/lib/module/components/typography/H2.js.map +1 -1
- package/lib/module/components/typography/H3.js +24 -18
- package/lib/module/components/typography/H3.js.map +1 -1
- package/lib/module/components/typography/H4.js +17 -13
- package/lib/module/components/typography/H4.js.map +1 -1
- package/lib/module/components/typography/H5.js +17 -31
- package/lib/module/components/typography/H5.js.map +1 -1
- package/lib/module/components/typography/H6.js +15 -11
- package/lib/module/components/typography/H6.js.map +1 -1
- package/lib/module/components/typography/Hero.js +29 -0
- package/lib/module/components/typography/Hero.js.map +1 -0
- package/lib/module/components/typography/Label.js +13 -10
- package/lib/module/components/typography/Label.js.map +1 -1
- package/lib/module/components/typography/LabelHeader.js +20 -17
- package/lib/module/components/typography/LabelHeader.js.map +1 -1
- package/lib/module/components/typography/{Link.js → LabelLink.js} +6 -11
- package/lib/module/components/typography/LabelLink.js.map +1 -0
- package/lib/module/components/typography/LabelSmall.js +18 -22
- package/lib/module/components/typography/LabelSmall.js.map +1 -1
- package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +195 -379
- package/lib/module/components/typography/__test__/typography.test.js +10 -42
- package/lib/module/components/typography/__test__/typography.test.js.map +1 -1
- package/lib/module/components/typography/common.js +15 -0
- package/lib/module/components/typography/common.js.map +1 -1
- package/lib/module/components/typography/index.js +6 -3
- package/lib/module/components/typography/index.js.map +1 -1
- package/lib/module/core/IODSExperimentalContextProvider.js +3 -2
- package/lib/module/core/IODSExperimentalContextProvider.js.map +1 -1
- package/lib/module/core/IOShapes.js +1 -1
- package/lib/module/core/IOShapes.js.map +1 -1
- package/lib/module/core/IOSpacing.js +4 -4
- package/lib/module/core/IOSpacing.js.map +1 -1
- package/lib/module/core/IOStyles.js +2 -8
- package/lib/module/core/IOStyles.js.map +1 -1
- package/lib/module/stories/Link.stories.js +2 -2
- package/lib/module/stories/Link.stories.js.map +1 -1
- package/lib/module/stories/Monospace.stories.js +2 -2
- package/lib/module/stories/Monospace.stories.js.map +1 -1
- package/lib/module/utils/fonts.js +8 -6
- package/lib/module/utils/fonts.js.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/banner/Banner.d.ts.map +1 -1
- package/lib/typescript/components/buttons/ButtonLink.d.ts.map +1 -1
- package/lib/typescript/components/buttons/ButtonOutline.d.ts +2 -3
- package/lib/typescript/components/buttons/ButtonOutline.d.ts.map +1 -1
- package/lib/typescript/components/buttons/ButtonSolid.d.ts.map +1 -1
- package/lib/typescript/components/buttons/IconButtonSolid.d.ts.map +1 -1
- package/lib/typescript/components/checkbox/AnimatedCheckbox.d.ts.map +1 -1
- package/lib/typescript/components/checkbox/AnimatedMessageCheckbox.d.ts.map +1 -1
- package/lib/typescript/components/checkbox/CheckboxLabel.d.ts.map +1 -1
- package/lib/typescript/components/icons/Icon.d.ts +7 -1
- package/lib/typescript/components/icons/Icon.d.ts.map +1 -1
- package/lib/typescript/components/icons/IconContained.d.ts +10 -0
- package/lib/typescript/components/icons/IconContained.d.ts.map +1 -0
- package/lib/typescript/components/icons/index.d.ts +1 -0
- package/lib/typescript/components/icons/index.d.ts.map +1 -1
- package/lib/typescript/components/icons/svg/IconChange.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconChange.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconDialpad.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconDialpad.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconKey.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconKey.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconNotification.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconNotification.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconOption.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconOption.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconTransactionsBoxed.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconTransactionsBoxed.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +1 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemAction.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemInfo.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemInfoCopy.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemNav.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemNavAlert.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemSwitch.d.ts +1 -1
- package/lib/typescript/components/listitems/ListItemSwitch.d.ts.map +1 -1
- package/lib/typescript/components/listitems/index.d.ts +1 -1
- package/lib/typescript/components/listitems/index.d.ts.map +1 -1
- package/lib/typescript/components/{listitems/ListItemIDP.d.ts → modules/ModuleIDP.d.ts} +4 -4
- package/lib/typescript/components/modules/ModuleIDP.d.ts.map +1 -0
- package/lib/typescript/components/modules/index.d.ts +2 -0
- package/lib/typescript/components/modules/index.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/Pictogram.d.ts +4 -1
- package/lib/typescript/components/pictograms/Pictogram.d.ts.map +1 -1
- package/lib/typescript/components/pictograms/svg/PictogramBleedCie.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramBleedCie.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramBleedFeature.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramBleedFeature.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramBleedSecurity.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramBleedSecurity.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramCie.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramCie.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramFeature.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramFeature.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramSecurity.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramSecurity.d.ts.map +1 -0
- package/lib/typescript/components/radio/AnimatedRadio.d.ts.map +1 -1
- package/lib/typescript/components/switch/NativeSwitch.d.ts.map +1 -1
- package/lib/typescript/components/switch/SwitchLabel.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/Body.d.ts +4 -7
- package/lib/typescript/components/typography/Body.d.ts.map +1 -1
- package/lib/typescript/components/typography/BodyMonospace.d.ts +13 -0
- package/lib/typescript/components/typography/BodyMonospace.d.ts.map +1 -0
- package/lib/typescript/components/typography/ButtonText.d.ts +14 -0
- package/lib/typescript/components/typography/ButtonText.d.ts.map +1 -0
- package/lib/typescript/components/typography/Caption.d.ts +14 -0
- package/lib/typescript/components/typography/Caption.d.ts.map +1 -0
- package/lib/typescript/components/typography/Chip.d.ts +13 -0
- package/lib/typescript/components/typography/Chip.d.ts.map +1 -0
- package/lib/typescript/components/typography/H1.d.ts +9 -15
- package/lib/typescript/components/typography/H1.d.ts.map +1 -1
- package/lib/typescript/components/typography/H2.d.ts +9 -15
- package/lib/typescript/components/typography/H2.d.ts.map +1 -1
- package/lib/typescript/components/typography/H3.d.ts +7 -10
- package/lib/typescript/components/typography/H3.d.ts.map +1 -1
- package/lib/typescript/components/typography/H4.d.ts +8 -11
- package/lib/typescript/components/typography/H4.d.ts.map +1 -1
- package/lib/typescript/components/typography/H5.d.ts +9 -24
- package/lib/typescript/components/typography/H5.d.ts.map +1 -1
- package/lib/typescript/components/typography/H6.d.ts +7 -12
- package/lib/typescript/components/typography/H6.d.ts.map +1 -1
- package/lib/typescript/components/typography/Hero.d.ts +15 -0
- package/lib/typescript/components/typography/Hero.d.ts.map +1 -0
- package/lib/typescript/components/typography/Label.d.ts +8 -9
- package/lib/typescript/components/typography/Label.d.ts.map +1 -1
- package/lib/typescript/components/typography/LabelHeader.d.ts +4 -7
- package/lib/typescript/components/typography/LabelHeader.d.ts.map +1 -1
- package/lib/typescript/components/typography/LabelLink.d.ts +18 -0
- package/lib/typescript/components/typography/LabelLink.d.ts.map +1 -0
- package/lib/typescript/components/typography/LabelSmall.d.ts +4 -7
- package/lib/typescript/components/typography/LabelSmall.d.ts.map +1 -1
- package/lib/typescript/components/typography/common.d.ts +6 -0
- package/lib/typescript/components/typography/common.d.ts.map +1 -1
- package/lib/typescript/components/typography/index.d.ts +6 -3
- package/lib/typescript/components/typography/index.d.ts.map +1 -1
- package/lib/typescript/core/IODSExperimentalContextProvider.d.ts +4 -1
- package/lib/typescript/core/IODSExperimentalContextProvider.d.ts.map +1 -1
- package/lib/typescript/core/IOShapes.d.ts +1 -1
- package/lib/typescript/core/IOShapes.d.ts.map +1 -1
- package/lib/typescript/core/IOSpacing.d.ts +5 -5
- package/lib/typescript/core/IOSpacing.d.ts.map +1 -1
- package/lib/typescript/core/IOStyles.d.ts +1 -6
- package/lib/typescript/core/IOStyles.d.ts.map +1 -1
- package/lib/typescript/stories/H1.stories.d.ts +2 -2
- package/lib/typescript/stories/H2.stories.d.ts +2 -2
- package/lib/typescript/stories/H3.stories.d.ts +2 -2
- package/lib/typescript/stories/H4.stories.d.ts +2 -2
- package/lib/typescript/stories/H5.stories.d.ts +2 -10
- package/lib/typescript/stories/H5.stories.d.ts.map +1 -1
- package/lib/typescript/stories/H6.stories.d.ts +2 -2
- package/lib/typescript/stories/Label.stories.d.ts +4 -2
- package/lib/typescript/stories/Label.stories.d.ts.map +1 -1
- package/lib/typescript/stories/LabelSmall.stories.d.ts +2 -2
- package/lib/typescript/stories/Link.stories.d.ts +3 -3
- package/lib/typescript/stories/Link.stories.d.ts.map +1 -1
- package/lib/typescript/stories/Monospace.stories.d.ts +2 -2
- package/lib/typescript/stories/Monospace.stories.d.ts.map +1 -1
- package/lib/typescript/utils/fonts.d.ts +3 -3
- package/lib/typescript/utils/fonts.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/alert/Alert.tsx +7 -1
- package/src/components/badge/Badge.tsx +30 -19
- package/src/components/badge/__test__/__snapshots__/badge.test.tsx.snap +5 -3
- package/src/components/banner/Banner.tsx +1 -3
- package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +5 -5
- package/src/components/buttons/ButtonExtendedOutline.tsx +2 -2
- package/src/components/buttons/ButtonLink.tsx +3 -2
- package/src/components/buttons/ButtonOutline.tsx +6 -53
- package/src/components/buttons/ButtonSolid.tsx +8 -17
- package/src/components/buttons/IconButtonSolid.tsx +43 -13
- package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +23 -21
- package/src/components/checkbox/AnimatedCheckbox.tsx +26 -5
- package/src/components/checkbox/AnimatedMessageCheckbox.tsx +20 -10
- package/src/components/checkbox/CheckboxLabel.tsx +33 -6
- package/src/components/icons/Icon.tsx +27 -15
- package/src/components/icons/IconContained.tsx +76 -0
- package/src/components/icons/index.tsx +1 -0
- package/src/components/icons/svg/IconChange.tsx +16 -0
- package/src/components/icons/svg/IconDialpad.tsx +14 -0
- package/src/components/icons/svg/IconKey.tsx +16 -0
- package/src/components/icons/svg/IconNotification.tsx +16 -0
- package/src/components/icons/svg/IconOption.tsx +16 -0
- package/src/components/icons/svg/IconTransactions.tsx +1 -1
- package/src/components/icons/svg/IconTransactionsBoxed.tsx +16 -0
- package/src/components/icons/svg/originals/IconChange.svg +3 -0
- package/src/components/icons/svg/originals/IconDialpad.svg +5 -0
- package/src/components/icons/svg/originals/IconKey.svg +7 -0
- package/src/components/icons/svg/originals/IconNotification.svg +7 -0
- package/src/components/icons/svg/originals/IconOption.svg +7 -0
- package/src/components/icons/svg/originals/IconTransactions.svg +8 -0
- package/src/components/icons/svg/originals/IconTransactionsBoxed.svg +8 -0
- package/src/components/index.tsx +1 -0
- package/src/components/listitems/ListItemAction.tsx +53 -11
- package/src/components/listitems/ListItemInfo.tsx +55 -11
- package/src/components/listitems/ListItemInfoCopy.tsx +67 -18
- package/src/components/listitems/ListItemNav.tsx +60 -12
- package/src/components/listitems/ListItemNavAlert.tsx +50 -9
- package/src/components/listitems/ListItemSwitch.tsx +4 -4
- package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +75 -108
- package/src/components/listitems/__test__/listitem.test.tsx +1 -1
- package/src/components/listitems/index.tsx +1 -1
- package/src/components/{listitems/ListItemIDP.tsx → modules/ModuleIDP.tsx} +29 -16
- package/src/components/modules/index.tsx +1 -0
- package/src/components/pictograms/Pictogram.tsx +14 -2
- package/src/components/pictograms/svg/PictogramBleedCie.tsx +38 -0
- package/src/components/pictograms/svg/PictogramBleedFeature.tsx +46 -0
- package/src/components/pictograms/svg/PictogramBleedSecurity.tsx +38 -0
- package/src/components/pictograms/svg/PictogramCie.tsx +38 -0
- package/src/components/pictograms/svg/PictogramFeature.tsx +42 -0
- package/src/components/pictograms/svg/PictogramSecurity.tsx +38 -0
- package/src/components/pictograms/svg/originals/PictogramBleedCie.svg +30 -0
- package/src/components/pictograms/svg/originals/PictogramBleedFeature.svg +34 -0
- package/src/components/pictograms/svg/originals/PictogramBleedSecurity.svg +26 -0
- package/src/components/pictograms/svg/originals/PictogramCie.svg +30 -0
- package/src/components/pictograms/svg/originals/PictogramFeature.svg +34 -0
- package/src/components/pictograms/svg/originals/PictogramSecurity.svg +30 -0
- package/src/components/radio/AnimatedRadio.tsx +26 -5
- package/src/components/switch/NativeSwitch.tsx +35 -13
- package/src/components/switch/SwitchLabel.tsx +33 -6
- package/src/components/tag/Tag.tsx +39 -24
- package/src/components/textInput/TextInputBase.tsx +20 -3
- package/src/components/typography/Body.tsx +3 -7
- package/src/components/typography/BodyMonospace.tsx +29 -0
- package/src/components/typography/ButtonText.tsx +45 -0
- package/src/components/typography/Caption.tsx +37 -0
- package/src/components/typography/Chip.tsx +33 -0
- package/src/components/typography/H1.tsx +20 -29
- package/src/components/typography/H2.tsx +20 -29
- package/src/components/typography/H3.tsx +21 -20
- package/src/components/typography/H4.tsx +19 -20
- package/src/components/typography/H5.tsx +22 -54
- package/src/components/typography/H6.tsx +17 -15
- package/src/components/typography/Hero.tsx +34 -0
- package/src/components/typography/Label.tsx +23 -21
- package/src/components/typography/LabelHeader.tsx +12 -12
- package/src/components/typography/{Link.tsx → LabelLink.tsx} +15 -12
- package/src/components/typography/LabelSmall.tsx +13 -14
- package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +195 -379
- package/src/components/typography/__test__/typography.test.tsx +12 -50
- package/src/components/typography/common.tsx +16 -0
- package/src/components/typography/index.tsx +6 -3
- package/src/core/IODSExperimentalContextProvider.tsx +10 -3
- package/src/core/IOShapes.ts +1 -1
- package/src/core/IOSpacing.ts +6 -6
- package/src/core/IOStyles.ts +3 -8
- package/src/stories/Link.stories.ts +5 -5
- package/src/stories/Monospace.stories.ts +5 -5
- package/src/utils/fonts.ts +8 -6
- package/lib/commonjs/components/listitems/ListItemIDP.js.map +0 -1
- package/lib/commonjs/components/typography/CTA.js +0 -34
- package/lib/commonjs/components/typography/CTA.js.map +0 -1
- package/lib/commonjs/components/typography/Link.js.map +0 -1
- package/lib/commonjs/components/typography/Monospace.js +0 -30
- package/lib/commonjs/components/typography/Monospace.js.map +0 -1
- package/lib/module/components/listitems/ListItemIDP.js.map +0 -1
- package/lib/module/components/typography/CTA.js +0 -27
- package/lib/module/components/typography/CTA.js.map +0 -1
- package/lib/module/components/typography/Link.js.map +0 -1
- package/lib/module/components/typography/Monospace.js +0 -23
- package/lib/module/components/typography/Monospace.js.map +0 -1
- package/lib/typescript/components/listitems/ListItemIDP.d.ts.map +0 -1
- package/lib/typescript/components/typography/CTA.d.ts +0 -16
- package/lib/typescript/components/typography/CTA.d.ts.map +0 -1
- package/lib/typescript/components/typography/Link.d.ts +0 -22
- package/lib/typescript/components/typography/Link.d.ts.map +0 -1
- package/lib/typescript/components/typography/Monospace.d.ts +0 -16
- package/lib/typescript/components/typography/Monospace.d.ts.map +0 -1
- package/src/components/typography/CTA.tsx +0 -35
- package/src/components/typography/Monospace.tsx +0 -34
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import React, { useCallback } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
GestureResponderEvent,
|
|
4
|
+
Pressable,
|
|
5
|
+
StyleSheet,
|
|
6
|
+
Text,
|
|
7
|
+
View
|
|
8
|
+
} from "react-native";
|
|
3
9
|
import Animated, {
|
|
4
10
|
Extrapolate,
|
|
5
11
|
interpolate,
|
|
@@ -17,11 +23,13 @@ import {
|
|
|
17
23
|
IOSpringValues,
|
|
18
24
|
IOStyles,
|
|
19
25
|
hexToRgba,
|
|
26
|
+
useIOExperimentalDesign,
|
|
20
27
|
useIOTheme
|
|
21
28
|
} from "../../core";
|
|
29
|
+
import { makeFontStyleObject } from "../../utils/fonts";
|
|
22
30
|
import { WithTestID } from "../../utils/types";
|
|
23
31
|
import { Icon } from "../icons";
|
|
24
|
-
import { H6, LabelSmall } from "../typography";
|
|
32
|
+
import { Body, H6, LabelSmall } from "../typography";
|
|
25
33
|
|
|
26
34
|
export type ListItemNavAlert = WithTestID<{
|
|
27
35
|
value: string;
|
|
@@ -32,6 +40,15 @@ export type ListItemNavAlert = WithTestID<{
|
|
|
32
40
|
accessibilityLabel: string;
|
|
33
41
|
}>;
|
|
34
42
|
|
|
43
|
+
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
44
|
+
const legacyStyles = StyleSheet.create({
|
|
45
|
+
textValue: {
|
|
46
|
+
fontSize: 18,
|
|
47
|
+
lineHeight: 24,
|
|
48
|
+
...makeFontStyleObject("SemiBold", undefined, "TitilliumWeb")
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
|
|
35
52
|
export const ListItemNavAlert = ({
|
|
36
53
|
value,
|
|
37
54
|
description,
|
|
@@ -41,9 +58,38 @@ export const ListItemNavAlert = ({
|
|
|
41
58
|
testID
|
|
42
59
|
}: ListItemNavAlert) => {
|
|
43
60
|
const isPressed: Animated.SharedValue<number> = useSharedValue(0);
|
|
61
|
+
const { isExperimental } = useIOExperimentalDesign();
|
|
44
62
|
|
|
45
63
|
const theme = useIOTheme();
|
|
46
64
|
|
|
65
|
+
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
66
|
+
const legacyNavAlertText = (
|
|
67
|
+
<>
|
|
68
|
+
<Text style={[legacyStyles.textValue, { color: IOColors.bluegreyDark }]}>
|
|
69
|
+
{value}
|
|
70
|
+
</Text>
|
|
71
|
+
{description && (
|
|
72
|
+
<Body weight="SemiBold" color={theme.errorText}>
|
|
73
|
+
{description}
|
|
74
|
+
</Body>
|
|
75
|
+
)}
|
|
76
|
+
</>
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
const navAlertText = (
|
|
80
|
+
<>
|
|
81
|
+
<H6 color={theme["textBody-default"]}>{value}</H6>
|
|
82
|
+
{description && (
|
|
83
|
+
<LabelSmall weight="SemiBold" color={theme.errorText}>
|
|
84
|
+
{description}
|
|
85
|
+
</LabelSmall>
|
|
86
|
+
)}
|
|
87
|
+
</>
|
|
88
|
+
);
|
|
89
|
+
|
|
90
|
+
const navAlertTextComponent = isExperimental ? navAlertText : legacyNavAlertText;
|
|
91
|
+
const iconColor = isExperimental ? theme["interactiveElem-default"] : "blue";
|
|
92
|
+
|
|
47
93
|
const mapBackgroundStates: Record<string, string> = {
|
|
48
94
|
default: hexToRgba(IOColors[theme["listItem-pressed"]], 0),
|
|
49
95
|
pressed: IOColors[theme["listItem-pressed"]]
|
|
@@ -117,17 +163,12 @@ export const ListItemNavAlert = ({
|
|
|
117
163
|
</View>
|
|
118
164
|
)}
|
|
119
165
|
<View style={IOStyles.flex}>
|
|
120
|
-
|
|
121
|
-
{description && (
|
|
122
|
-
<LabelSmall weight="SemiBold" color={theme.errorText}>
|
|
123
|
-
{description}
|
|
124
|
-
</LabelSmall>
|
|
125
|
-
)}
|
|
166
|
+
{navAlertTextComponent}
|
|
126
167
|
</View>
|
|
127
168
|
<View style={{ marginLeft: IOListItemVisualParams.iconMargin }}>
|
|
128
169
|
<Icon
|
|
129
170
|
name="chevronRightListItem"
|
|
130
|
-
color={
|
|
171
|
+
color={iconColor}
|
|
131
172
|
size={IOListItemVisualParams.chevronSize}
|
|
132
173
|
/>
|
|
133
174
|
</View>
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "../../core";
|
|
9
9
|
import { IOIcons, Icon } from "../icons";
|
|
10
10
|
import { HSpacer, VSpacer } from "../spacer";
|
|
11
|
-
import { H6, LabelSmall,
|
|
11
|
+
import { H6, LabelSmall, LabelLink } from "../typography";
|
|
12
12
|
import { NativeSwitch } from "../switch/NativeSwitch";
|
|
13
13
|
|
|
14
14
|
type Props = {
|
|
@@ -19,7 +19,7 @@ type Props = {
|
|
|
19
19
|
action?: SwitchAction;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
type SwitchAction = {
|
|
22
|
+
export type SwitchAction = {
|
|
23
23
|
label: string;
|
|
24
24
|
onPress: (event: GestureResponderEvent) => void;
|
|
25
25
|
};
|
|
@@ -91,9 +91,9 @@ export const ListItemSwitch = React.memo(
|
|
|
91
91
|
{action && (
|
|
92
92
|
<>
|
|
93
93
|
<VSpacer size={IOSelectionListItemVisualParams.actionMargin} />
|
|
94
|
-
<
|
|
94
|
+
<LabelLink fontSize="small" onPress={action.onPress}>
|
|
95
95
|
{action.label}
|
|
96
|
-
</
|
|
96
|
+
</LabelLink>
|
|
97
97
|
</>
|
|
98
98
|
)}
|
|
99
99
|
</View>
|
|
@@ -78,14 +78,14 @@ exports[`Test List Item Components ListItemAction Snapshot 1`] = `
|
|
|
78
78
|
style={
|
|
79
79
|
[
|
|
80
80
|
{
|
|
81
|
-
"fontFamily": "
|
|
82
|
-
"fontSize":
|
|
81
|
+
"fontFamily": "Titillium Web",
|
|
82
|
+
"fontSize": 18,
|
|
83
83
|
"fontStyle": "normal",
|
|
84
|
-
"fontWeight": "
|
|
85
|
-
"lineHeight":
|
|
84
|
+
"fontWeight": "600",
|
|
85
|
+
"lineHeight": 24,
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
|
-
"color": "#
|
|
88
|
+
"color": "#0073E6",
|
|
89
89
|
},
|
|
90
90
|
]
|
|
91
91
|
}
|
|
@@ -159,17 +159,21 @@ exports[`Test List Item Components ListItemIDP Snapshot 1`] = `
|
|
|
159
159
|
>
|
|
160
160
|
<Text
|
|
161
161
|
style={
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
162
|
+
[
|
|
163
|
+
{
|
|
164
|
+
"alignSelf": "center",
|
|
165
|
+
"color": "#555C70",
|
|
166
|
+
"flexShrink": 1,
|
|
167
|
+
"fontSize": 12,
|
|
168
|
+
"lineHeight": 16,
|
|
169
|
+
"textTransform": "uppercase",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"fontFamily": "Titillium Web",
|
|
173
|
+
"fontStyle": "normal",
|
|
174
|
+
"fontWeight": "600",
|
|
175
|
+
},
|
|
176
|
+
]
|
|
173
177
|
}
|
|
174
178
|
/>
|
|
175
179
|
<Image
|
|
@@ -220,22 +224,24 @@ exports[`Test List Item Components ListItemInfo Snapshot 1`] = `
|
|
|
220
224
|
}
|
|
221
225
|
>
|
|
222
226
|
<Text
|
|
223
|
-
color="
|
|
224
|
-
defaultColor="
|
|
225
|
-
defaultWeight="
|
|
227
|
+
color="bluegrey"
|
|
228
|
+
defaultColor="bluegrey"
|
|
229
|
+
defaultWeight="Regular"
|
|
226
230
|
font="TitilliumWeb"
|
|
227
231
|
fontStyle={
|
|
228
232
|
{
|
|
229
|
-
"fontSize":
|
|
233
|
+
"fontSize": 16,
|
|
234
|
+
"lineHeight": 24,
|
|
230
235
|
}
|
|
231
236
|
}
|
|
232
237
|
style={
|
|
233
238
|
[
|
|
234
239
|
{
|
|
235
|
-
"fontSize":
|
|
240
|
+
"fontSize": 16,
|
|
241
|
+
"lineHeight": 24,
|
|
236
242
|
},
|
|
237
243
|
{
|
|
238
|
-
"color": "#
|
|
244
|
+
"color": "#475A6D",
|
|
239
245
|
"fontFamily": "Titillium Web",
|
|
240
246
|
"fontStyle": "normal",
|
|
241
247
|
"fontWeight": "400",
|
|
@@ -247,32 +253,21 @@ exports[`Test List Item Components ListItemInfo Snapshot 1`] = `
|
|
|
247
253
|
label
|
|
248
254
|
</Text>
|
|
249
255
|
<Text
|
|
250
|
-
color="black"
|
|
251
|
-
defaultColor="black"
|
|
252
|
-
defaultWeight="Regular"
|
|
253
|
-
font="ReadexPro"
|
|
254
|
-
fontStyle={
|
|
255
|
-
{
|
|
256
|
-
"fontSize": 16,
|
|
257
|
-
"lineHeight": 20,
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
256
|
numberOfLines={2}
|
|
261
257
|
style={
|
|
262
258
|
[
|
|
263
259
|
{
|
|
264
|
-
"
|
|
265
|
-
"
|
|
260
|
+
"fontFamily": "Titillium Web",
|
|
261
|
+
"fontSize": 18,
|
|
262
|
+
"fontStyle": "normal",
|
|
263
|
+
"fontWeight": "600",
|
|
264
|
+
"lineHeight": 24,
|
|
266
265
|
},
|
|
267
266
|
{
|
|
268
|
-
"color": "#
|
|
269
|
-
"fontFamily": "Readex Pro",
|
|
270
|
-
"fontStyle": "normal",
|
|
271
|
-
"fontWeight": "400",
|
|
267
|
+
"color": "#17324D",
|
|
272
268
|
},
|
|
273
269
|
]
|
|
274
270
|
}
|
|
275
|
-
weight="Regular"
|
|
276
271
|
>
|
|
277
272
|
testValue
|
|
278
273
|
</Text>
|
|
@@ -355,22 +350,24 @@ exports[`Test List Item Components ListItemInfoCopy Snapshot 1`] = `
|
|
|
355
350
|
}
|
|
356
351
|
>
|
|
357
352
|
<Text
|
|
358
|
-
color="
|
|
359
|
-
defaultColor="
|
|
360
|
-
defaultWeight="
|
|
353
|
+
color="bluegrey"
|
|
354
|
+
defaultColor="bluegrey"
|
|
355
|
+
defaultWeight="Regular"
|
|
361
356
|
font="TitilliumWeb"
|
|
362
357
|
fontStyle={
|
|
363
358
|
{
|
|
364
|
-
"fontSize":
|
|
359
|
+
"fontSize": 16,
|
|
360
|
+
"lineHeight": 24,
|
|
365
361
|
}
|
|
366
362
|
}
|
|
367
363
|
style={
|
|
368
364
|
[
|
|
369
365
|
{
|
|
370
|
-
"fontSize":
|
|
366
|
+
"fontSize": 16,
|
|
367
|
+
"lineHeight": 24,
|
|
371
368
|
},
|
|
372
369
|
{
|
|
373
|
-
"color": "#
|
|
370
|
+
"color": "#475A6D",
|
|
374
371
|
"fontFamily": "Titillium Web",
|
|
375
372
|
"fontStyle": "normal",
|
|
376
373
|
"fontWeight": "400",
|
|
@@ -381,33 +378,29 @@ exports[`Test List Item Components ListItemInfoCopy Snapshot 1`] = `
|
|
|
381
378
|
>
|
|
382
379
|
label
|
|
383
380
|
</Text>
|
|
384
|
-
<
|
|
385
|
-
|
|
386
|
-
defaultColor="black"
|
|
387
|
-
defaultWeight="Regular"
|
|
388
|
-
font="ReadexPro"
|
|
389
|
-
fontStyle={
|
|
381
|
+
<View
|
|
382
|
+
style={
|
|
390
383
|
{
|
|
391
|
-
"
|
|
392
|
-
"lineHeight": 20,
|
|
384
|
+
"height": 4,
|
|
393
385
|
}
|
|
394
386
|
}
|
|
387
|
+
/>
|
|
388
|
+
<Text
|
|
395
389
|
numberOfLines={2}
|
|
396
390
|
style={
|
|
397
391
|
[
|
|
398
392
|
{
|
|
399
|
-
"
|
|
400
|
-
"
|
|
393
|
+
"fontFamily": "Titillium Web",
|
|
394
|
+
"fontSize": 18,
|
|
395
|
+
"fontStyle": "normal",
|
|
396
|
+
"fontWeight": "600",
|
|
397
|
+
"lineHeight": 24,
|
|
401
398
|
},
|
|
402
399
|
{
|
|
403
|
-
"color": "#
|
|
404
|
-
"fontFamily": "Readex Pro",
|
|
405
|
-
"fontStyle": "normal",
|
|
406
|
-
"fontWeight": "400",
|
|
400
|
+
"color": "#0073E6",
|
|
407
401
|
},
|
|
408
402
|
]
|
|
409
403
|
}
|
|
410
|
-
weight="Regular"
|
|
411
404
|
>
|
|
412
405
|
testValue
|
|
413
406
|
</Text>
|
|
@@ -426,7 +419,7 @@ exports[`Test List Item Components ListItemInfoCopy Snapshot 1`] = `
|
|
|
426
419
|
align="xMidYMid"
|
|
427
420
|
bbHeight={24}
|
|
428
421
|
bbWidth={24}
|
|
429
|
-
color={
|
|
422
|
+
color={4278219750}
|
|
430
423
|
focusable={false}
|
|
431
424
|
height={24}
|
|
432
425
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -440,7 +433,7 @@ exports[`Test List Item Components ListItemInfoCopy Snapshot 1`] = `
|
|
|
440
433
|
"borderWidth": 0,
|
|
441
434
|
},
|
|
442
435
|
{
|
|
443
|
-
"color": "#
|
|
436
|
+
"color": "#0073E6",
|
|
444
437
|
},
|
|
445
438
|
{
|
|
446
439
|
"flex": 0,
|
|
@@ -449,7 +442,7 @@ exports[`Test List Item Components ListItemInfoCopy Snapshot 1`] = `
|
|
|
449
442
|
},
|
|
450
443
|
]
|
|
451
444
|
}
|
|
452
|
-
tintColor={
|
|
445
|
+
tintColor={4278219750}
|
|
453
446
|
vbHeight={24}
|
|
454
447
|
vbWidth={24}
|
|
455
448
|
width={24}
|
|
@@ -553,31 +546,16 @@ exports[`Test List Item Components ListItemNav Snapshot 1`] = `
|
|
|
553
546
|
}
|
|
554
547
|
>
|
|
555
548
|
<Text
|
|
556
|
-
|
|
557
|
-
defaultColor="black"
|
|
558
|
-
defaultWeight="Regular"
|
|
559
|
-
font="ReadexPro"
|
|
560
|
-
fontStyle={
|
|
549
|
+
style={
|
|
561
550
|
{
|
|
562
|
-
"
|
|
563
|
-
"
|
|
551
|
+
"color": "#17324D",
|
|
552
|
+
"fontFamily": "Titillium Web",
|
|
553
|
+
"fontSize": 18,
|
|
554
|
+
"fontStyle": "normal",
|
|
555
|
+
"fontWeight": "600",
|
|
556
|
+
"lineHeight": 24,
|
|
564
557
|
}
|
|
565
558
|
}
|
|
566
|
-
style={
|
|
567
|
-
[
|
|
568
|
-
{
|
|
569
|
-
"fontSize": 16,
|
|
570
|
-
"lineHeight": 20,
|
|
571
|
-
},
|
|
572
|
-
{
|
|
573
|
-
"color": "#0E0F13",
|
|
574
|
-
"fontFamily": "Readex Pro",
|
|
575
|
-
"fontStyle": "normal",
|
|
576
|
-
"fontWeight": "400",
|
|
577
|
-
},
|
|
578
|
-
]
|
|
579
|
-
}
|
|
580
|
-
weight="Regular"
|
|
581
559
|
>
|
|
582
560
|
testValue
|
|
583
561
|
</Text>
|
|
@@ -596,7 +574,7 @@ exports[`Test List Item Components ListItemNav Snapshot 1`] = `
|
|
|
596
574
|
align="xMidYMid"
|
|
597
575
|
bbHeight={24}
|
|
598
576
|
bbWidth={24}
|
|
599
|
-
color={
|
|
577
|
+
color={4278219750}
|
|
600
578
|
focusable={false}
|
|
601
579
|
height={24}
|
|
602
580
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -610,7 +588,7 @@ exports[`Test List Item Components ListItemNav Snapshot 1`] = `
|
|
|
610
588
|
"borderWidth": 0,
|
|
611
589
|
},
|
|
612
590
|
{
|
|
613
|
-
"color": "#
|
|
591
|
+
"color": "#0073E6",
|
|
614
592
|
},
|
|
615
593
|
{
|
|
616
594
|
"flex": 0,
|
|
@@ -619,7 +597,7 @@ exports[`Test List Item Components ListItemNav Snapshot 1`] = `
|
|
|
619
597
|
},
|
|
620
598
|
]
|
|
621
599
|
}
|
|
622
|
-
tintColor={
|
|
600
|
+
tintColor={4278219750}
|
|
623
601
|
vbHeight={24}
|
|
624
602
|
vbWidth={24}
|
|
625
603
|
width={24}
|
|
@@ -785,31 +763,20 @@ exports[`Test List Item Components ListItemNavAlert Snapshot 1`] = `
|
|
|
785
763
|
}
|
|
786
764
|
>
|
|
787
765
|
<Text
|
|
788
|
-
color="black"
|
|
789
|
-
defaultColor="black"
|
|
790
|
-
defaultWeight="Regular"
|
|
791
|
-
font="ReadexPro"
|
|
792
|
-
fontStyle={
|
|
793
|
-
{
|
|
794
|
-
"fontSize": 16,
|
|
795
|
-
"lineHeight": 20,
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
766
|
style={
|
|
799
767
|
[
|
|
800
768
|
{
|
|
801
|
-
"
|
|
802
|
-
"
|
|
769
|
+
"fontFamily": "Titillium Web",
|
|
770
|
+
"fontSize": 18,
|
|
771
|
+
"fontStyle": "normal",
|
|
772
|
+
"fontWeight": "600",
|
|
773
|
+
"lineHeight": 24,
|
|
803
774
|
},
|
|
804
775
|
{
|
|
805
|
-
"color": "#
|
|
806
|
-
"fontFamily": "Readex Pro",
|
|
807
|
-
"fontStyle": "normal",
|
|
808
|
-
"fontWeight": "400",
|
|
776
|
+
"color": "#17324D",
|
|
809
777
|
},
|
|
810
778
|
]
|
|
811
779
|
}
|
|
812
|
-
weight="Regular"
|
|
813
780
|
>
|
|
814
781
|
testValue
|
|
815
782
|
</Text>
|
|
@@ -828,7 +795,7 @@ exports[`Test List Item Components ListItemNavAlert Snapshot 1`] = `
|
|
|
828
795
|
align="xMidYMid"
|
|
829
796
|
bbHeight={24}
|
|
830
797
|
bbWidth={24}
|
|
831
|
-
color={
|
|
798
|
+
color={4278219750}
|
|
832
799
|
focusable={false}
|
|
833
800
|
height={24}
|
|
834
801
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -842,7 +809,7 @@ exports[`Test List Item Components ListItemNavAlert Snapshot 1`] = `
|
|
|
842
809
|
"borderWidth": 0,
|
|
843
810
|
},
|
|
844
811
|
{
|
|
845
|
-
"color": "#
|
|
812
|
+
"color": "#0073E6",
|
|
846
813
|
},
|
|
847
814
|
{
|
|
848
815
|
"flex": 0,
|
|
@@ -851,7 +818,7 @@ exports[`Test List Item Components ListItemNavAlert Snapshot 1`] = `
|
|
|
851
818
|
},
|
|
852
819
|
]
|
|
853
820
|
}
|
|
854
|
-
tintColor={
|
|
821
|
+
tintColor={4278219750}
|
|
855
822
|
vbHeight={24}
|
|
856
823
|
vbWidth={24}
|
|
857
824
|
width={24}
|
|
@@ -6,7 +6,7 @@ import ListItemInfoCopy from "../ListItemInfoCopy";
|
|
|
6
6
|
import ListItemNav from "../ListItemNav";
|
|
7
7
|
import ListItemNavAlert from "../ListItemNavAlert";
|
|
8
8
|
import ListItemAction from "../ListItemAction";
|
|
9
|
-
import ListItemIDP from "
|
|
9
|
+
import ListItemIDP from "../../modules/ModuleIDP";
|
|
10
10
|
import { ListItemTransaction } from "../ListItemTransaction";
|
|
11
11
|
import { PressableListItemBase } from "../PressableListItemsBase";
|
|
12
12
|
|
|
@@ -19,19 +19,20 @@ import Animated, {
|
|
|
19
19
|
} from "react-native-reanimated";
|
|
20
20
|
import {
|
|
21
21
|
IOColors,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
IOModuleIDPHSpacing,
|
|
23
|
+
IOModuleIDPRadius,
|
|
24
|
+
IOModuleIDPSavedVSpacing,
|
|
25
|
+
IOModuleIDPVSpacing,
|
|
26
26
|
IOListItemLogoMargin,
|
|
27
27
|
IOScaleValues,
|
|
28
|
-
IOSpringValues
|
|
28
|
+
IOSpringValues,
|
|
29
|
+
useIOExperimentalDesign
|
|
29
30
|
} from "../../core";
|
|
30
31
|
import { toAndroidCacheTimestamp } from "../../utils/dates";
|
|
31
32
|
import { makeFontStyleObject } from "../../utils/fonts";
|
|
32
33
|
import { WithTestID } from "../../utils/types";
|
|
33
34
|
|
|
34
|
-
type
|
|
35
|
+
type ModuleIDP = WithTestID<{
|
|
35
36
|
name: string;
|
|
36
37
|
localLogo: ImageSourcePropType;
|
|
37
38
|
logo: ImageSourcePropType;
|
|
@@ -44,13 +45,13 @@ const styles = StyleSheet.create({
|
|
|
44
45
|
button: {
|
|
45
46
|
borderWidth: 1,
|
|
46
47
|
borderColor: IOColors["grey-100"],
|
|
47
|
-
borderRadius:
|
|
48
|
+
borderRadius: IOModuleIDPRadius,
|
|
48
49
|
backgroundColor: IOColors.white,
|
|
49
50
|
flexDirection: "row",
|
|
50
51
|
justifyContent: "space-between",
|
|
51
52
|
alignItems: "center",
|
|
52
|
-
paddingVertical:
|
|
53
|
-
paddingHorizontal:
|
|
53
|
+
paddingVertical: IOModuleIDPVSpacing,
|
|
54
|
+
paddingHorizontal: IOModuleIDPHSpacing
|
|
54
55
|
},
|
|
55
56
|
idpName: {
|
|
56
57
|
color: IOColors["grey-700"],
|
|
@@ -58,9 +59,14 @@ const styles = StyleSheet.create({
|
|
|
58
59
|
lineHeight: 16,
|
|
59
60
|
alignSelf: "center",
|
|
60
61
|
textTransform: "uppercase",
|
|
61
|
-
flexShrink: 1
|
|
62
|
+
flexShrink: 1
|
|
63
|
+
},
|
|
64
|
+
idpNameFont: {
|
|
62
65
|
...makeFontStyleObject("Regular", false, "ReadexPro")
|
|
63
66
|
},
|
|
67
|
+
idpLegacyNameFont: {
|
|
68
|
+
...makeFontStyleObject("SemiBold", false, "TitilliumWeb")
|
|
69
|
+
},
|
|
64
70
|
idpLogo: {
|
|
65
71
|
marginStart: IOListItemLogoMargin,
|
|
66
72
|
width: 120,
|
|
@@ -75,16 +81,16 @@ const styles = StyleSheet.create({
|
|
|
75
81
|
const androidIdpLogoForcedRefreshed = () =>
|
|
76
82
|
Platform.OS === "android" ? `?ts=${toAndroidCacheTimestamp()}` : "";
|
|
77
83
|
|
|
78
|
-
export const
|
|
84
|
+
export const ModuleIDP = ({
|
|
79
85
|
name,
|
|
80
86
|
localLogo,
|
|
81
87
|
logo,
|
|
82
88
|
saved,
|
|
83
89
|
onPress,
|
|
84
90
|
testID
|
|
85
|
-
}:
|
|
91
|
+
}: ModuleIDP) => {
|
|
86
92
|
const isPressed = useSharedValue(0);
|
|
87
|
-
|
|
93
|
+
const { isExperimental } = useIOExperimentalDesign();
|
|
88
94
|
// Scaling transformation applied when the button is pressed
|
|
89
95
|
const animationScaleValue = IOScaleValues?.magnifiedButton?.pressedState;
|
|
90
96
|
|
|
@@ -135,15 +141,22 @@ export const ListItemIDP = ({
|
|
|
135
141
|
<Animated.View
|
|
136
142
|
style={[
|
|
137
143
|
styles.button,
|
|
138
|
-
saved && { paddingVertical:
|
|
144
|
+
saved && { paddingVertical: IOModuleIDPSavedVSpacing },
|
|
139
145
|
animatedStyle
|
|
140
146
|
]}
|
|
141
147
|
>
|
|
142
|
-
<Text
|
|
148
|
+
<Text
|
|
149
|
+
style={[
|
|
150
|
+
styles.idpName,
|
|
151
|
+
isExperimental ? styles.idpNameFont : styles.idpLegacyNameFont
|
|
152
|
+
]}
|
|
153
|
+
>
|
|
154
|
+
{name}
|
|
155
|
+
</Text>
|
|
143
156
|
<Image source={urlLogoIDP} style={styles.idpLogo} />
|
|
144
157
|
</Animated.View>
|
|
145
158
|
</Pressable>
|
|
146
159
|
);
|
|
147
160
|
};
|
|
148
161
|
|
|
149
|
-
export default
|
|
162
|
+
export default ModuleIDP;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ModuleIDP";
|
|
@@ -50,16 +50,22 @@ import PictogramIdentity from "./svg/PictogramIdentity";
|
|
|
50
50
|
import PictogramAccessDenied from "./svg/PictogramAccessDenied";
|
|
51
51
|
import PictogramTime from "./svg/PictogramTime";
|
|
52
52
|
import PictogramStopSecurity from "./svg/PictogramStopSecurity";
|
|
53
|
+
import PictogramSecurity from "./svg/PictogramSecurity";
|
|
53
54
|
import PictogramPasscode from "./svg/PictogramPasscode";
|
|
54
55
|
import PictogramIdentityCheck from "./svg/PictogramIdentityCheck";
|
|
55
56
|
import PictogramTrash from "./svg/PictogramTrash";
|
|
56
57
|
import PictogramCharity from "./svg/PictogramCharity";
|
|
57
58
|
import PictogramEmpty from "./svg/PictogramEmpty";
|
|
59
|
+
import PictogramCie from "./svg/PictogramCie";
|
|
60
|
+
import PictogramFeature from "./svg/PictogramFeature";
|
|
58
61
|
/* Bleed Pictograms */
|
|
59
62
|
import PictogramBleedCharity from "./svg/PictogramBleedCharity";
|
|
60
63
|
import PictogramBleedHelp from "./svg/PictogramBleedHelp";
|
|
61
64
|
import PictogramBleedITWallet from "./svg/PictogramBleedITWallet";
|
|
62
65
|
import PictogramBleedFeedback from "./svg/PictogramBleedFeedback";
|
|
66
|
+
import PictogramBleedSecurity from "./svg/PictogramBleedSecurity";
|
|
67
|
+
import PictogramBleedFeature from "./svg/PictogramBleedFeature";
|
|
68
|
+
import PictogramBleedCie from "./svg/PictogramBleedCie";
|
|
63
69
|
|
|
64
70
|
export const IOPictograms = {
|
|
65
71
|
// Start legacy pictograms //
|
|
@@ -98,6 +104,7 @@ export const IOPictograms = {
|
|
|
98
104
|
manual: PictogramManual,
|
|
99
105
|
trash: PictogramTrash,
|
|
100
106
|
empty: PictogramEmpty,
|
|
107
|
+
feature: PictogramFeature,
|
|
101
108
|
charity: PictogramCharity,
|
|
102
109
|
attention: PictogramAttention,
|
|
103
110
|
emptyArchive: PictogramEmptyArchive,
|
|
@@ -115,6 +122,8 @@ export const IOPictograms = {
|
|
|
115
122
|
identityCheck: PictogramIdentityCheck,
|
|
116
123
|
accessDenied: PictogramAccessDenied,
|
|
117
124
|
stopSecurity: PictogramStopSecurity,
|
|
125
|
+
security: PictogramSecurity,
|
|
126
|
+
cie: PictogramCie,
|
|
118
127
|
time: PictogramTime,
|
|
119
128
|
passcode: PictogramPasscode
|
|
120
129
|
};
|
|
@@ -152,7 +161,7 @@ export const Pictogram = ({
|
|
|
152
161
|
*/
|
|
153
162
|
|
|
154
163
|
export type IOPictogramsBleed = Extract<
|
|
155
|
-
"charity" | "help" | "feedback" | "itWallet",
|
|
164
|
+
"charity" | "help" | "feedback" | "itWallet" | "security" | "feature" | "cie",
|
|
156
165
|
IOPictograms
|
|
157
166
|
>;
|
|
158
167
|
|
|
@@ -162,7 +171,10 @@ export const IOPictogramsBleed: {
|
|
|
162
171
|
charity: PictogramBleedCharity,
|
|
163
172
|
help: PictogramBleedHelp,
|
|
164
173
|
feedback: PictogramBleedFeedback,
|
|
165
|
-
itWallet: PictogramBleedITWallet
|
|
174
|
+
itWallet: PictogramBleedITWallet,
|
|
175
|
+
security: PictogramBleedSecurity,
|
|
176
|
+
feature: PictogramBleedFeature,
|
|
177
|
+
cie: PictogramBleedCie
|
|
166
178
|
};
|
|
167
179
|
|
|
168
180
|
export const PictogramBleed = ({
|