@pagopa/io-app-design-system 1.7.1 → 1.9.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/featureInfo/FeatureInfo.js +55 -0
- package/lib/commonjs/components/featureInfo/FeatureInfo.js.map +1 -0
- package/lib/commonjs/components/featureInfo/index.js +17 -0
- package/lib/commonjs/components/featureInfo/index.js.map +1 -0
- package/lib/commonjs/components/icons/Icon.js +35 -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/IconContactless.js +31 -0
- package/lib/commonjs/components/icons/svg/IconContactless.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconDisabilityCard.js +31 -0
- package/lib/commonjs/components/icons/svg/IconDisabilityCard.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconDriverLicense.js +31 -0
- package/lib/commonjs/components/icons/svg/IconDriverLicense.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconHealthCard.js +31 -0
- package/lib/commonjs/components/icons/svg/IconHealthCard.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/IconKeyboard.js +31 -0
- package/lib/commonjs/components/icons/svg/IconKeyboard.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/IconContactless.svg +3 -0
- package/lib/commonjs/components/icons/svg/originals/IconDisabilityCard.svg +7 -0
- package/lib/commonjs/components/icons/svg/originals/IconDriverLicense.svg +8 -0
- package/lib/commonjs/components/icons/svg/originals/IconHealthCard.svg +7 -0
- package/lib/commonjs/components/icons/svg/originals/IconKey.svg +7 -0
- package/lib/commonjs/components/icons/svg/originals/IconKeyboard.svg +3 -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 +22 -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 +53 -12
- 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/{PictogramFollowMessage.js.map → PictogramBleedSecurity.js.map} +1 -1
- 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/PictogramObjClock.js +34 -0
- package/lib/commonjs/components/pictograms/svg/PictogramObjClock.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/PictogramObjFlyingMessage.js +34 -0
- package/lib/commonjs/components/pictograms/svg/PictogramObjFlyingMessage.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/{PictogramFollowMessage.js → PictogramObjFollowMessage.js} +3 -3
- package/lib/commonjs/components/pictograms/svg/PictogramObjFollowMessage.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/PictogramObjIbanCard.js +76 -0
- package/lib/commonjs/components/pictograms/svg/PictogramObjIbanCard.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/PictogramObjKey.js +36 -0
- package/lib/commonjs/components/pictograms/svg/{PictogramManual.js.map → PictogramObjKey.js.map} +1 -1
- package/lib/commonjs/components/pictograms/svg/{PictogramManual.js → PictogramObjManual.js} +3 -3
- package/lib/commonjs/components/pictograms/svg/PictogramObjManual.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/{PictogramTrash.js → PictogramObjTrash.js} +3 -3
- package/lib/commonjs/components/pictograms/svg/PictogramObjTrash.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/PictogramObjClock.svg +12 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramObjFlyingMessage.svg +12 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramObjIbanCard.svg +59 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramObjKey.svg +14 -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/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/featureInfo/FeatureInfo.js +47 -0
- package/lib/module/components/featureInfo/FeatureInfo.js.map +1 -0
- package/lib/module/components/featureInfo/index.js +2 -0
- package/lib/module/components/featureInfo/index.js.map +1 -0
- package/lib/module/components/icons/Icon.js +35 -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/IconContactless.js +23 -0
- package/lib/module/components/icons/svg/IconContactless.js.map +1 -0
- package/lib/module/components/icons/svg/IconDisabilityCard.js +23 -0
- package/lib/module/components/icons/svg/IconDisabilityCard.js.map +1 -0
- package/lib/module/components/icons/svg/IconDriverLicense.js +23 -0
- package/lib/module/components/icons/svg/IconDriverLicense.js.map +1 -0
- package/lib/module/components/icons/svg/IconHealthCard.js +23 -0
- package/lib/module/components/icons/svg/IconHealthCard.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/IconKeyboard.js +23 -0
- package/lib/module/components/icons/svg/IconKeyboard.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/IconContactless.svg +3 -0
- package/lib/module/components/icons/svg/originals/IconDisabilityCard.svg +7 -0
- package/lib/module/components/icons/svg/originals/IconDriverLicense.svg +8 -0
- package/lib/module/components/icons/svg/originals/IconHealthCard.svg +7 -0
- package/lib/module/components/icons/svg/originals/IconKey.svg +7 -0
- package/lib/module/components/icons/svg/originals/IconKeyboard.svg +3 -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 +2 -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 +51 -10
- 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/PictogramObjClock.js +26 -0
- package/lib/module/components/pictograms/svg/PictogramObjClock.js.map +1 -0
- package/lib/module/components/pictograms/svg/PictogramObjFlyingMessage.js +26 -0
- package/lib/module/components/pictograms/svg/PictogramObjFlyingMessage.js.map +1 -0
- package/lib/module/components/pictograms/svg/{PictogramFollowMessage.js → PictogramObjFollowMessage.js} +3 -3
- package/lib/module/components/pictograms/svg/PictogramObjFollowMessage.js.map +1 -0
- package/lib/module/components/pictograms/svg/PictogramObjIbanCard.js +68 -0
- package/lib/module/components/pictograms/svg/PictogramObjIbanCard.js.map +1 -0
- package/lib/module/components/pictograms/svg/PictogramObjKey.js +28 -0
- package/lib/module/components/pictograms/svg/{PictogramManual.js.map → PictogramObjKey.js.map} +1 -1
- package/lib/module/components/pictograms/svg/{PictogramManual.js → PictogramObjManual.js} +3 -3
- package/lib/module/components/pictograms/svg/PictogramObjManual.js.map +1 -0
- package/lib/module/components/pictograms/svg/{PictogramTrash.js → PictogramObjTrash.js} +3 -3
- package/lib/module/components/pictograms/svg/PictogramObjTrash.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/PictogramObjClock.svg +12 -0
- package/lib/module/components/pictograms/svg/originals/PictogramObjFlyingMessage.svg +12 -0
- package/lib/module/components/pictograms/svg/originals/PictogramObjIbanCard.svg +59 -0
- package/lib/module/components/pictograms/svg/originals/PictogramObjKey.svg +14 -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/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/featureInfo/FeatureInfo.d.ts +24 -0
- package/lib/typescript/components/featureInfo/FeatureInfo.d.ts.map +1 -0
- package/lib/typescript/components/featureInfo/index.d.ts +2 -0
- package/lib/typescript/components/featureInfo/index.d.ts.map +1 -0
- package/lib/typescript/components/icons/Icon.d.ts +11 -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/IconContactless.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconContactless.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconDisabilityCard.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconDisabilityCard.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconDriverLicense.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconDriverLicense.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconHealthCard.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconHealthCard.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/IconKeyboard.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconKeyboard.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 +2 -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 +21 -5
- 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/PictogramObjClock.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramObjClock.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramObjFlyingMessage.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramObjFlyingMessage.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramObjFollowMessage.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramObjFollowMessage.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramObjIbanCard.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramObjIbanCard.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramObjKey.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramObjKey.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramObjManual.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramObjManual.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramObjTrash.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramObjTrash.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/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/featureInfo/FeatureInfo.tsx +85 -0
- package/src/components/featureInfo/index.tsx +1 -0
- package/src/components/icons/Icon.tsx +35 -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/IconContactless.tsx +16 -0
- package/src/components/icons/svg/IconDisabilityCard.tsx +16 -0
- package/src/components/icons/svg/IconDriverLicense.tsx +16 -0
- package/src/components/icons/svg/IconHealthCard.tsx +16 -0
- package/src/components/icons/svg/IconKey.tsx +16 -0
- package/src/components/icons/svg/IconKeyboard.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/IconContactless.svg +3 -0
- package/src/components/icons/svg/originals/IconDisabilityCard.svg +7 -0
- package/src/components/icons/svg/originals/IconDriverLicense.svg +8 -0
- package/src/components/icons/svg/originals/IconHealthCard.svg +7 -0
- package/src/components/icons/svg/originals/IconKey.svg +7 -0
- package/src/components/icons/svg/originals/IconKeyboard.svg +3 -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 +2 -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 +48 -11
- 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/PictogramObjClock.tsx +20 -0
- package/src/components/pictograms/svg/PictogramObjFlyingMessage.tsx +24 -0
- package/src/components/pictograms/svg/{PictogramFollowMessage.tsx → PictogramObjFollowMessage.tsx} +2 -2
- package/src/components/pictograms/svg/PictogramObjIbanCard.tsx +67 -0
- package/src/components/pictograms/svg/PictogramObjKey.tsx +22 -0
- package/src/components/pictograms/svg/{PictogramManual.tsx → PictogramObjManual.tsx} +2 -2
- package/src/components/pictograms/svg/{PictogramTrash.tsx → PictogramObjTrash.tsx} +2 -2
- 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/PictogramObjClock.svg +12 -0
- package/src/components/pictograms/svg/originals/PictogramObjFlyingMessage.svg +12 -0
- package/src/components/pictograms/svg/originals/PictogramObjIbanCard.svg +59 -0
- package/src/components/pictograms/svg/originals/PictogramObjKey.svg +14 -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/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/pictograms/svg/PictogramIBANCard.js +0 -75
- package/lib/commonjs/components/pictograms/svg/PictogramIBANCard.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramTrash.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/originals/PictogramIBANCard.svg +0 -15
- 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/pictograms/svg/PictogramFollowMessage.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramIBANCard.js +0 -67
- package/lib/module/components/pictograms/svg/PictogramIBANCard.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramTrash.js.map +0 -1
- package/lib/module/components/pictograms/svg/originals/PictogramIBANCard.svg +0 -15
- 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/pictograms/svg/PictogramFollowMessage.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramFollowMessage.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramIBANCard.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramIBANCard.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramManual.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramManual.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramTrash.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramTrash.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/pictograms/svg/PictogramIBANCard.tsx +0 -67
- package/src/components/pictograms/svg/originals/PictogramIBANCard.svg +0 -15
- package/src/components/typography/CTA.tsx +0 -35
- package/src/components/typography/Monospace.tsx +0 -34
- /package/lib/commonjs/components/pictograms/svg/originals/{PictogramFollowMessage.svg → PictogramObjFollowMessage.svg} +0 -0
- /package/lib/commonjs/components/pictograms/svg/originals/{PictogramManual.svg → PictogramObjManual.svg} +0 -0
- /package/lib/commonjs/components/pictograms/svg/originals/{PictogramTrash.svg → PictogramObjTrash.svg} +0 -0
- /package/lib/module/components/pictograms/svg/originals/{PictogramFollowMessage.svg → PictogramObjFollowMessage.svg} +0 -0
- /package/lib/module/components/pictograms/svg/originals/{PictogramManual.svg → PictogramObjManual.svg} +0 -0
- /package/lib/module/components/pictograms/svg/originals/{PictogramTrash.svg → PictogramObjTrash.svg} +0 -0
- /package/src/components/pictograms/svg/originals/{PictogramFollowMessage.svg → PictogramObjFollowMessage.svg} +0 -0
- /package/src/components/pictograms/svg/originals/{PictogramManual.svg → PictogramObjManual.svg} +0 -0
- /package/src/components/pictograms/svg/originals/{PictogramTrash.svg → PictogramObjTrash.svg} +0 -0
|
@@ -21,19 +21,14 @@ import {
|
|
|
21
21
|
} from "../../core/";
|
|
22
22
|
import { makeFontStyleObject } from "../../utils/fonts";
|
|
23
23
|
import { WithTestID } from "../../utils/types";
|
|
24
|
-
import {
|
|
25
|
-
AnimatedIcon,
|
|
26
|
-
IOIconSizeScale,
|
|
27
|
-
IOIcons,
|
|
28
|
-
IconClassComponent
|
|
29
|
-
} from "../icons";
|
|
24
|
+
import { AnimatedIcon, IOIcons, IconClassComponent } from "../icons";
|
|
30
25
|
import { HSpacer } from "../spacer/Spacer";
|
|
26
|
+
import { buttonTextFontSize } from "../typography";
|
|
31
27
|
|
|
32
|
-
type ColorButtonOutline = "primary" | "
|
|
28
|
+
type ColorButtonOutline = "primary" | "contrast" | "danger";
|
|
33
29
|
export type ButtonOutline = WithTestID<{
|
|
34
30
|
color?: ColorButtonOutline;
|
|
35
31
|
label: string;
|
|
36
|
-
small?: boolean;
|
|
37
32
|
fullWidth?: boolean;
|
|
38
33
|
disabled?: boolean;
|
|
39
34
|
// Icons
|
|
@@ -85,24 +80,6 @@ const mapColorStates: Record<
|
|
|
85
80
|
disabled: IOColors["grey-700"]
|
|
86
81
|
}
|
|
87
82
|
},
|
|
88
|
-
// Neutral button
|
|
89
|
-
neutral: {
|
|
90
|
-
border: {
|
|
91
|
-
default: IOColors.grey,
|
|
92
|
-
pressed: IOColors.bluegrey,
|
|
93
|
-
disabled: IOColors.bluegreyLight
|
|
94
|
-
},
|
|
95
|
-
background: {
|
|
96
|
-
default: IOColors.white,
|
|
97
|
-
pressed: IOColors.greyUltraLight,
|
|
98
|
-
disabled: "transparent"
|
|
99
|
-
},
|
|
100
|
-
label: {
|
|
101
|
-
default: IOColors.bluegrey,
|
|
102
|
-
pressed: IOColors.bluegreyDark,
|
|
103
|
-
disabled: IOColors.grey
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
83
|
// Contrast button
|
|
107
84
|
contrast: {
|
|
108
85
|
border: {
|
|
@@ -164,24 +141,6 @@ const mapLegacyColorStates: Record<
|
|
|
164
141
|
disabled: IOColors.grey
|
|
165
142
|
}
|
|
166
143
|
},
|
|
167
|
-
// Neutral button
|
|
168
|
-
neutral: {
|
|
169
|
-
border: {
|
|
170
|
-
default: IOColors.grey,
|
|
171
|
-
pressed: IOColors.bluegrey,
|
|
172
|
-
disabled: IOColors.bluegreyLight
|
|
173
|
-
},
|
|
174
|
-
background: {
|
|
175
|
-
default: IOColors.white,
|
|
176
|
-
pressed: IOColors.greyUltraLight,
|
|
177
|
-
disabled: "transparent"
|
|
178
|
-
},
|
|
179
|
-
label: {
|
|
180
|
-
default: IOColors.bluegrey,
|
|
181
|
-
pressed: IOColors.bluegreyDark,
|
|
182
|
-
disabled: IOColors.grey
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
144
|
// Contrast button
|
|
186
145
|
contrast: {
|
|
187
146
|
border: {
|
|
@@ -237,7 +196,8 @@ const DISABLED_OPACITY = 0.5;
|
|
|
237
196
|
const IOButtonStylesLocal = StyleSheet.create({
|
|
238
197
|
// eslint-disable-next-line react-native/no-unused-styles
|
|
239
198
|
label: {
|
|
240
|
-
...makeFontStyleObject("Regular", false, "ReadexPro")
|
|
199
|
+
...makeFontStyleObject("Regular", false, "ReadexPro"),
|
|
200
|
+
fontSize: buttonTextFontSize
|
|
241
201
|
},
|
|
242
202
|
// eslint-disable-next-line react-native/no-unused-styles
|
|
243
203
|
buttonWithBorder: {
|
|
@@ -248,7 +208,6 @@ const IOButtonStylesLocal = StyleSheet.create({
|
|
|
248
208
|
export const ButtonOutline = ({
|
|
249
209
|
color = "primary",
|
|
250
210
|
label,
|
|
251
|
-
small = false,
|
|
252
211
|
fullWidth = false,
|
|
253
212
|
disabled = false,
|
|
254
213
|
icon,
|
|
@@ -349,9 +308,6 @@ export const ButtonOutline = ({
|
|
|
349
308
|
isPressed.value = 0;
|
|
350
309
|
}, [isPressed]);
|
|
351
310
|
|
|
352
|
-
// Icon size
|
|
353
|
-
const iconSize: IOIconSizeScale = small ? 16 : 20;
|
|
354
|
-
|
|
355
311
|
return (
|
|
356
312
|
<Pressable
|
|
357
313
|
accessibilityLabel={accessibilityLabel}
|
|
@@ -369,8 +325,8 @@ export const ButtonOutline = ({
|
|
|
369
325
|
style={[
|
|
370
326
|
buttonStyles.button,
|
|
371
327
|
buttonStylesLocal.buttonWithBorder,
|
|
328
|
+
buttonStyles.buttonSizeDefault,
|
|
372
329
|
iconPosition === "end" && { flexDirection: "row-reverse" },
|
|
373
|
-
small ? buttonStyles.buttonSizeSmall : buttonStyles.buttonSizeDefault,
|
|
374
330
|
disabled
|
|
375
331
|
? {
|
|
376
332
|
backgroundColor: colorMap[color]?.background?.disabled,
|
|
@@ -393,13 +349,11 @@ export const ButtonOutline = ({
|
|
|
393
349
|
name={icon}
|
|
394
350
|
animatedProps={pressedColorIconAnimationStyle}
|
|
395
351
|
color={colorMap[color]?.label?.default}
|
|
396
|
-
size={iconSize}
|
|
397
352
|
/>
|
|
398
353
|
) : (
|
|
399
354
|
<AnimatedIcon
|
|
400
355
|
name={icon}
|
|
401
356
|
color={colorMap[color]?.label?.disabled}
|
|
402
|
-
size={iconSize}
|
|
403
357
|
/>
|
|
404
358
|
)}
|
|
405
359
|
<HSpacer size={8} />
|
|
@@ -409,7 +363,6 @@ export const ButtonOutline = ({
|
|
|
409
363
|
style={[
|
|
410
364
|
buttonStylesLocal.label,
|
|
411
365
|
buttonStyles.label,
|
|
412
|
-
small ? buttonStyles.labelSizeSmall : buttonStyles.labelSizeDefault,
|
|
413
366
|
disabled
|
|
414
367
|
? { color: colorMap[color]?.label?.disabled }
|
|
415
368
|
: { color: colorMap[color]?.label?.default },
|
|
@@ -12,7 +12,7 @@ import Animated, {
|
|
|
12
12
|
import { IOIcons, Icon } from "../icons";
|
|
13
13
|
import { WithTestID } from "../../utils/types";
|
|
14
14
|
import { HSpacer } from "../spacer/Spacer";
|
|
15
|
-
import {
|
|
15
|
+
import { ButtonText, ButtonTextAllowedColors } from "../typography/ButtonText";
|
|
16
16
|
import {
|
|
17
17
|
IOButtonLegacyStyles,
|
|
18
18
|
IOButtonStyles,
|
|
@@ -28,8 +28,8 @@ type ColorStates = {
|
|
|
28
28
|
default: string;
|
|
29
29
|
pressed: string;
|
|
30
30
|
label: {
|
|
31
|
-
default:
|
|
32
|
-
disabled:
|
|
31
|
+
default: ButtonTextAllowedColors;
|
|
32
|
+
disabled: ButtonTextAllowedColors;
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
|
|
@@ -142,7 +142,7 @@ const mapLegacyColorStates: Record<
|
|
|
142
142
|
default: IOColors.white,
|
|
143
143
|
pressed: IOColors["blue-50"],
|
|
144
144
|
label: {
|
|
145
|
-
default: "
|
|
145
|
+
default: "blueIO-500",
|
|
146
146
|
disabled: "white"
|
|
147
147
|
}
|
|
148
148
|
}
|
|
@@ -239,9 +239,7 @@ export const ButtonSolid = React.memo(
|
|
|
239
239
|
style={[
|
|
240
240
|
buttonStyles.button,
|
|
241
241
|
iconPosition === "end" && { flexDirection: "row-reverse" },
|
|
242
|
-
|
|
243
|
-
? buttonStyles.buttonSizeSmall
|
|
244
|
-
: buttonStyles.buttonSizeDefault,
|
|
242
|
+
buttonStyles.buttonSizeDefault,
|
|
245
243
|
disabled
|
|
246
244
|
? isExperimental
|
|
247
245
|
? styles.backgroundDisabled
|
|
@@ -262,16 +260,9 @@ export const ButtonSolid = React.memo(
|
|
|
262
260
|
<HSpacer size={8} />
|
|
263
261
|
</>
|
|
264
262
|
)}
|
|
265
|
-
<
|
|
266
|
-
font={isExperimental ? "ReadexPro" : undefined}
|
|
267
|
-
weight={isExperimental ? "Regular" : "Bold"}
|
|
263
|
+
<ButtonText
|
|
268
264
|
color={foregroundColor}
|
|
269
|
-
style={
|
|
270
|
-
buttonStyles.label,
|
|
271
|
-
small
|
|
272
|
-
? buttonStyles.labelSizeSmall
|
|
273
|
-
: buttonStyles.labelSizeDefault
|
|
274
|
-
]}
|
|
265
|
+
style={IOButtonStyles.label}
|
|
275
266
|
numberOfLines={1}
|
|
276
267
|
ellipsizeMode="tail"
|
|
277
268
|
/* A11y-related props:
|
|
@@ -280,7 +271,7 @@ export const ButtonSolid = React.memo(
|
|
|
280
271
|
maxFontSizeMultiplier={1.3} */
|
|
281
272
|
>
|
|
282
273
|
{label}
|
|
283
|
-
</
|
|
274
|
+
</ButtonText>
|
|
284
275
|
</Animated.View>
|
|
285
276
|
</Pressable>
|
|
286
277
|
);
|
|
@@ -14,7 +14,8 @@ import {
|
|
|
14
14
|
IOButtonStyles,
|
|
15
15
|
IOIconButtonStyles,
|
|
16
16
|
IOScaleValues,
|
|
17
|
-
IOSpringValues
|
|
17
|
+
IOSpringValues,
|
|
18
|
+
useIOExperimentalDesign
|
|
18
19
|
} from "../../core";
|
|
19
20
|
import { IOColors, hexToRgba } from "../../core/IOColors";
|
|
20
21
|
import { WithTestID } from "../../utils/types";
|
|
@@ -70,6 +71,36 @@ const mapColorStates: Record<
|
|
|
70
71
|
}
|
|
71
72
|
};
|
|
72
73
|
|
|
74
|
+
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
75
|
+
const mapLegacyColorStates: Record<
|
|
76
|
+
NonNullable<IconButtonSolid["color"]>,
|
|
77
|
+
ColorStates
|
|
78
|
+
> = {
|
|
79
|
+
// Primary button
|
|
80
|
+
primary: {
|
|
81
|
+
background: {
|
|
82
|
+
default: IOColors.blue,
|
|
83
|
+
pressed: IOColors["blue-600"],
|
|
84
|
+
disabled: IOColors["grey-100"]
|
|
85
|
+
},
|
|
86
|
+
icon: {
|
|
87
|
+
default: IOColors.white,
|
|
88
|
+
disabled: IOColors["grey-450"]
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
contrast: {
|
|
92
|
+
background: {
|
|
93
|
+
default: IOColors.white,
|
|
94
|
+
pressed: IOColors["blue-50"],
|
|
95
|
+
disabled: hexToRgba(IOColors.white, 0.25)
|
|
96
|
+
},
|
|
97
|
+
icon: {
|
|
98
|
+
default: IOColors.blue,
|
|
99
|
+
disabled: IOColors.blue
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
|
|
73
104
|
export const IconButtonSolid = ({
|
|
74
105
|
icon,
|
|
75
106
|
color = "primary",
|
|
@@ -80,7 +111,7 @@ export const IconButtonSolid = ({
|
|
|
80
111
|
testID
|
|
81
112
|
}: IconButtonSolid) => {
|
|
82
113
|
const isPressed = useSharedValue(0);
|
|
83
|
-
|
|
114
|
+
const { isExperimental } = useIOExperimentalDesign();
|
|
84
115
|
// Scaling transformation applied when the button is pressed
|
|
85
116
|
const animationScaleValue = IOScaleValues?.exaggeratedButton?.pressedState;
|
|
86
117
|
|
|
@@ -89,15 +120,16 @@ export const IconButtonSolid = ({
|
|
|
89
120
|
withSpring(isPressed.value, IOSpringValues.button)
|
|
90
121
|
);
|
|
91
122
|
|
|
123
|
+
const colorMap = React.useMemo(
|
|
124
|
+
() => (isExperimental ? mapColorStates : mapLegacyColorStates),
|
|
125
|
+
[isExperimental]
|
|
126
|
+
);
|
|
92
127
|
// Interpolate animation values from `isPressed` values
|
|
93
128
|
const pressedAnimationStyle = useAnimatedStyle(() => {
|
|
94
129
|
const backgroundColor = interpolateColor(
|
|
95
130
|
progressPressed.value,
|
|
96
131
|
[0, 1],
|
|
97
|
-
[
|
|
98
|
-
mapColorStates[color].background.default,
|
|
99
|
-
mapColorStates[color].background.pressed
|
|
100
|
-
]
|
|
132
|
+
[colorMap[color].background.default, colorMap[color].background.pressed]
|
|
101
133
|
);
|
|
102
134
|
|
|
103
135
|
// Scale down button slightly when pressed
|
|
@@ -123,7 +155,7 @@ export const IconButtonSolid = ({
|
|
|
123
155
|
isPressed.value = 0;
|
|
124
156
|
}, [isPressed]);
|
|
125
157
|
|
|
126
|
-
|
|
158
|
+
return (
|
|
127
159
|
<Pressable
|
|
128
160
|
accessibilityLabel={accessibilityLabel}
|
|
129
161
|
accessibilityHint={accessibilityHint}
|
|
@@ -143,10 +175,10 @@ export const IconButtonSolid = ({
|
|
|
143
175
|
!disabled && pressedAnimationStyle,
|
|
144
176
|
disabled
|
|
145
177
|
? {
|
|
146
|
-
backgroundColor:
|
|
178
|
+
backgroundColor: colorMap[color]?.background?.disabled
|
|
147
179
|
}
|
|
148
180
|
: {
|
|
149
|
-
backgroundColor:
|
|
181
|
+
backgroundColor: colorMap[color]?.background?.default
|
|
150
182
|
}
|
|
151
183
|
]}
|
|
152
184
|
>
|
|
@@ -154,15 +186,13 @@ export const IconButtonSolid = ({
|
|
|
154
186
|
name={icon}
|
|
155
187
|
color={
|
|
156
188
|
!disabled
|
|
157
|
-
?
|
|
158
|
-
:
|
|
189
|
+
? colorMap[color]?.icon?.default
|
|
190
|
+
: colorMap[color]?.icon?.disabled
|
|
159
191
|
}
|
|
160
192
|
/>
|
|
161
193
|
</Animated.View>
|
|
162
194
|
</Pressable>
|
|
163
195
|
);
|
|
164
|
-
|
|
165
|
-
return <NewButton />;
|
|
166
196
|
};
|
|
167
197
|
|
|
168
198
|
export default IconButtonSolid;
|
|
@@ -69,29 +69,29 @@ exports[`Test Buttons Components ButtonExtendedOutline Snapshot 1`] = `
|
|
|
69
69
|
<Text
|
|
70
70
|
color="black"
|
|
71
71
|
defaultColor="black"
|
|
72
|
-
defaultWeight="
|
|
73
|
-
font="
|
|
72
|
+
defaultWeight="SemiBold"
|
|
73
|
+
font="TitilliumWeb"
|
|
74
74
|
fontStyle={
|
|
75
75
|
{
|
|
76
|
-
"fontSize":
|
|
76
|
+
"fontSize": 16,
|
|
77
77
|
"lineHeight": 24,
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
style={
|
|
81
81
|
[
|
|
82
82
|
{
|
|
83
|
-
"fontSize":
|
|
83
|
+
"fontSize": 16,
|
|
84
84
|
"lineHeight": 24,
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"color": "#0E0F13",
|
|
88
|
-
"fontFamily": "
|
|
88
|
+
"fontFamily": "Titillium Web",
|
|
89
89
|
"fontStyle": "normal",
|
|
90
|
-
"fontWeight": "
|
|
90
|
+
"fontWeight": "600",
|
|
91
91
|
},
|
|
92
92
|
]
|
|
93
93
|
}
|
|
94
|
-
weight="
|
|
94
|
+
weight="SemiBold"
|
|
95
95
|
>
|
|
96
96
|
label
|
|
97
97
|
</Text>
|
|
@@ -311,10 +311,10 @@ exports[`Test Buttons Components ButtonOutline Snapshot 1`] = `
|
|
|
311
311
|
{
|
|
312
312
|
"borderWidth": 1,
|
|
313
313
|
},
|
|
314
|
-
false,
|
|
315
314
|
{
|
|
316
315
|
"height": 40,
|
|
317
316
|
},
|
|
317
|
+
false,
|
|
318
318
|
{
|
|
319
319
|
"backgroundColor": "rgba(0,115,230,0)",
|
|
320
320
|
"borderColor": "#0073E6",
|
|
@@ -344,9 +344,6 @@ exports[`Test Buttons Components ButtonOutline Snapshot 1`] = `
|
|
|
344
344
|
{
|
|
345
345
|
"alignSelf": "center",
|
|
346
346
|
},
|
|
347
|
-
{
|
|
348
|
-
"fontSize": 16,
|
|
349
|
-
},
|
|
350
347
|
{
|
|
351
348
|
"color": "#0073E6",
|
|
352
349
|
},
|
|
@@ -433,19 +430,24 @@ exports[`Test Buttons Components ButtonSolid Snapshot 1`] = `
|
|
|
433
430
|
>
|
|
434
431
|
<Text
|
|
435
432
|
color="white"
|
|
433
|
+
defaultColor="white"
|
|
434
|
+
defaultWeight="Bold"
|
|
436
435
|
ellipsizeMode="tail"
|
|
436
|
+
font="TitilliumWeb"
|
|
437
|
+
fontStyle={
|
|
438
|
+
{
|
|
439
|
+
"fontSize": 16,
|
|
440
|
+
}
|
|
441
|
+
}
|
|
437
442
|
numberOfLines={1}
|
|
438
443
|
style={
|
|
439
444
|
[
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
},
|
|
447
|
-
],
|
|
448
|
-
undefined,
|
|
445
|
+
{
|
|
446
|
+
"alignSelf": "center",
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"fontSize": 16,
|
|
450
|
+
},
|
|
449
451
|
{
|
|
450
452
|
"color": "#FFFFFF",
|
|
451
453
|
"fontFamily": "Titillium Web",
|
|
@@ -764,7 +766,7 @@ exports[`Test Buttons Components IconButtonSolid Snapshot 1`] = `
|
|
|
764
766
|
],
|
|
765
767
|
},
|
|
766
768
|
{
|
|
767
|
-
"backgroundColor": "#
|
|
769
|
+
"backgroundColor": "#0073E6",
|
|
768
770
|
},
|
|
769
771
|
]
|
|
770
772
|
}
|
|
@@ -8,9 +8,13 @@ import Animated, {
|
|
|
8
8
|
withSpring,
|
|
9
9
|
withTiming
|
|
10
10
|
} from "react-native-reanimated";
|
|
11
|
+
import { useIOExperimentalDesign } from "../../core";
|
|
11
12
|
import { IOSpringValues } from "../../core/IOAnimations";
|
|
12
13
|
import { IOColors } from "../../core/IOColors";
|
|
13
|
-
import {
|
|
14
|
+
import {
|
|
15
|
+
IOSelectionTickLegacyVisualParams,
|
|
16
|
+
IOSelectionTickVisualParams
|
|
17
|
+
} from "../../core/IOStyles";
|
|
14
18
|
import { AnimatedTick } from "../common/AnimatedTick";
|
|
15
19
|
|
|
16
20
|
type Props = {
|
|
@@ -52,6 +56,25 @@ const styles = StyleSheet.create({
|
|
|
52
56
|
export const AnimatedCheckbox = ({ checked, onPress, disabled }: OwnProps) => {
|
|
53
57
|
const isChecked = checked ?? false;
|
|
54
58
|
|
|
59
|
+
const { isExperimental } = useIOExperimentalDesign();
|
|
60
|
+
const borderColorOffState =
|
|
61
|
+
IOColors[IOSelectionTickVisualParams.borderColorOffState];
|
|
62
|
+
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
63
|
+
const legacyBorderColorOffState =
|
|
64
|
+
IOColors[IOSelectionTickLegacyVisualParams.borderColorOffState];
|
|
65
|
+
const borderColorProp = isExperimental
|
|
66
|
+
? borderColorOffState
|
|
67
|
+
: legacyBorderColorOffState;
|
|
68
|
+
|
|
69
|
+
const backgroundColorOnState =
|
|
70
|
+
IOColors[IOSelectionTickVisualParams.bgColorOnState];
|
|
71
|
+
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
72
|
+
const legacyBackgroundColorOnState =
|
|
73
|
+
IOColors[IOSelectionTickLegacyVisualParams.bgColorOnState];
|
|
74
|
+
const backgroundColorProp = isExperimental
|
|
75
|
+
? backgroundColorOnState
|
|
76
|
+
: legacyBackgroundColorOnState;
|
|
77
|
+
|
|
55
78
|
const squareAnimationProgress = useSharedValue(checked ? 1 : 0);
|
|
56
79
|
const tickAnimationProgress = useSharedValue(checked ? 1 : 0);
|
|
57
80
|
|
|
@@ -89,8 +112,7 @@ export const AnimatedCheckbox = ({ checked, onPress, disabled }: OwnProps) => {
|
|
|
89
112
|
style={[
|
|
90
113
|
styles.checkboxBorder,
|
|
91
114
|
{
|
|
92
|
-
borderColor:
|
|
93
|
-
IOColors[IOSelectionTickVisualParams.borderColorOffState]
|
|
115
|
+
borderColor: borderColorProp
|
|
94
116
|
}
|
|
95
117
|
]}
|
|
96
118
|
/>
|
|
@@ -98,8 +120,7 @@ export const AnimatedCheckbox = ({ checked, onPress, disabled }: OwnProps) => {
|
|
|
98
120
|
style={[
|
|
99
121
|
styles.checkBoxSquare,
|
|
100
122
|
{
|
|
101
|
-
backgroundColor:
|
|
102
|
-
IOColors[IOSelectionTickVisualParams.bgColorOnState]
|
|
123
|
+
backgroundColor: backgroundColorProp
|
|
103
124
|
},
|
|
104
125
|
animatedCheckboxSquare
|
|
105
126
|
]}
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import React, { useEffect } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Pressable, PressableProps, StyleSheet } from "react-native";
|
|
3
3
|
import Animated, {
|
|
4
|
-
|
|
5
|
-
useAnimatedStyle,
|
|
4
|
+
Easing,
|
|
6
5
|
interpolate,
|
|
6
|
+
useAnimatedStyle,
|
|
7
|
+
useSharedValue,
|
|
7
8
|
withSpring,
|
|
8
|
-
withTiming
|
|
9
|
-
Easing
|
|
9
|
+
withTiming
|
|
10
10
|
} from "react-native-reanimated";
|
|
11
|
-
import {
|
|
11
|
+
import { useIOExperimentalDesign } from "../../core";
|
|
12
12
|
import { IOSpringValues } from "../../core/IOAnimations";
|
|
13
|
-
import {
|
|
13
|
+
import { IOColors } from "../../core/IOColors";
|
|
14
|
+
import { IOSpacingScale } from "../../core/IOSpacing";
|
|
14
15
|
import {
|
|
16
|
+
IOSelectionTickLegacyVisualParams,
|
|
15
17
|
IOSelectionTickVisualParams,
|
|
16
18
|
IOVisualCostants
|
|
17
19
|
} from "../../core/IOStyles";
|
|
18
|
-
import {
|
|
20
|
+
import { AnimatedTick } from "../common/AnimatedTick";
|
|
19
21
|
|
|
20
22
|
type Props = {
|
|
21
23
|
checked?: boolean;
|
|
@@ -50,9 +52,18 @@ export const AnimatedMessageCheckbox = ({
|
|
|
50
52
|
onPress
|
|
51
53
|
}: AnimatedMessageCheckbox) => {
|
|
52
54
|
const isChecked = checked ?? true;
|
|
55
|
+
const { isExperimental } = useIOExperimentalDesign();
|
|
53
56
|
|
|
54
57
|
const circleAnimationProgress = useSharedValue(checked ? 1 : 0);
|
|
55
58
|
const tickAnimationProgress = useSharedValue(checked ? 1 : 0);
|
|
59
|
+
const backgroundColorOnState =
|
|
60
|
+
IOColors[IOSelectionTickVisualParams.bgColorOnState];
|
|
61
|
+
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
62
|
+
const legacyBackgroundColorOnState =
|
|
63
|
+
IOColors[IOSelectionTickLegacyVisualParams.bgColorOnState];
|
|
64
|
+
const backgroundColorProp = isExperimental
|
|
65
|
+
? backgroundColorOnState
|
|
66
|
+
: legacyBackgroundColorOnState;
|
|
56
67
|
|
|
57
68
|
useEffect(() => {
|
|
58
69
|
// eslint-disable-next-line functional/immutable-data
|
|
@@ -87,8 +98,7 @@ export const AnimatedMessageCheckbox = ({
|
|
|
87
98
|
style={[
|
|
88
99
|
styles.checkBoxCircle,
|
|
89
100
|
{
|
|
90
|
-
backgroundColor:
|
|
91
|
-
IOColors[IOSelectionTickVisualParams.bgColorOnState]
|
|
101
|
+
backgroundColor: backgroundColorProp
|
|
92
102
|
},
|
|
93
103
|
animatedCheckboxCircle
|
|
94
104
|
]}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { Pressable, View } from "react-native";
|
|
4
|
-
import {
|
|
5
|
-
import { H6 } from "../typography/H6";
|
|
3
|
+
import { Pressable, StyleSheet, Text, View } from "react-native";
|
|
4
|
+
import { IOColors, useIOExperimentalDesign } from "../../core";
|
|
6
5
|
import { IOStyles } from "../../core/IOStyles";
|
|
6
|
+
import { triggerHaptic } from "../../functions/haptic-feedback/hapticFeedback";
|
|
7
|
+
import { makeFontStyleObject } from "../../utils/fonts";
|
|
7
8
|
import { HSpacer } from "../spacer/Spacer";
|
|
9
|
+
import { H6 } from "../typography/H6";
|
|
8
10
|
import { AnimatedCheckbox } from "./AnimatedCheckbox";
|
|
9
11
|
|
|
10
12
|
type Props = {
|
|
@@ -21,6 +23,17 @@ type OwnProps = Props &
|
|
|
21
23
|
Pick<React.ComponentProps<typeof AnimatedCheckbox>, "disabled" | "checked"> &
|
|
22
24
|
Pick<React.ComponentProps<typeof Pressable>, "onPress">;
|
|
23
25
|
|
|
26
|
+
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
27
|
+
const styles = StyleSheet.create({
|
|
28
|
+
legacyTextValue: {
|
|
29
|
+
fontSize: 16,
|
|
30
|
+
lineHeight: 24,
|
|
31
|
+
color: IOColors.bluegreyDark,
|
|
32
|
+
flexShrink: 1,
|
|
33
|
+
...makeFontStyleObject("SemiBold", undefined, "TitilliumWeb")
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
24
37
|
/**
|
|
25
38
|
* A checkbox with the automatic state management that uses a {@link AnimatedCheckBox}
|
|
26
39
|
* The toggleValue change when a `onPress` event is received and dispatch the `onValueChange`.
|
|
@@ -36,6 +49,22 @@ export const CheckboxLabel = ({
|
|
|
36
49
|
}: OwnProps) => {
|
|
37
50
|
const [toggleValue, setToggleValue] = useState(checked ?? false);
|
|
38
51
|
|
|
52
|
+
const { isExperimental } = useIOExperimentalDesign();
|
|
53
|
+
const checkboxLabelText = (
|
|
54
|
+
<H6 style={{ flexShrink: 1 }} color={"black"}>
|
|
55
|
+
{label}
|
|
56
|
+
</H6>
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
60
|
+
const legacyCheckboxlabelText = (
|
|
61
|
+
<Text style={styles.legacyTextValue}>{label}</Text>
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
const checkboxLabelTextComponent = isExperimental
|
|
65
|
+
? checkboxLabelText
|
|
66
|
+
: legacyCheckboxlabelText;
|
|
67
|
+
|
|
39
68
|
const toggleCheckbox = () => {
|
|
40
69
|
triggerHaptic("impactLight");
|
|
41
70
|
setToggleValue(!toggleValue);
|
|
@@ -67,9 +96,7 @@ export const CheckboxLabel = ({
|
|
|
67
96
|
<AnimatedCheckbox checked={checked ?? toggleValue} />
|
|
68
97
|
</View>
|
|
69
98
|
<HSpacer size={8} />
|
|
70
|
-
|
|
71
|
-
{label}
|
|
72
|
-
</H6>
|
|
99
|
+
{checkboxLabelTextComponent}
|
|
73
100
|
</View>
|
|
74
101
|
</Pressable>
|
|
75
102
|
);
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { GestureResponderEvent, View } from "react-native";
|
|
3
|
+
import { IOStyles } from "../../core";
|
|
4
|
+
import {
|
|
5
|
+
HSpacer,
|
|
6
|
+
IOIconSizeScale,
|
|
7
|
+
IOIcons,
|
|
8
|
+
IOPictogramSizeScale,
|
|
9
|
+
IOPictograms,
|
|
10
|
+
Icon,
|
|
11
|
+
LabelLink,
|
|
12
|
+
LabelSmall,
|
|
13
|
+
Pictogram,
|
|
14
|
+
VSpacer
|
|
15
|
+
} from "../../components";
|
|
16
|
+
|
|
17
|
+
type PartialFeatureInfo = {
|
|
18
|
+
// Necessary to render main body with different formatting
|
|
19
|
+
body?: string | React.ReactNode;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
type FeatureInfoActionProps =
|
|
23
|
+
| {
|
|
24
|
+
actionLabel?: string;
|
|
25
|
+
actionOnPress: (event: GestureResponderEvent) => void;
|
|
26
|
+
}
|
|
27
|
+
| {
|
|
28
|
+
actionLabel?: never;
|
|
29
|
+
actionOnPress?: never;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
type FeatureInfoGraphicProps =
|
|
33
|
+
| { iconName?: never; pictogramName: IOPictograms }
|
|
34
|
+
| { iconName: IOIcons; pictogramName?: never };
|
|
35
|
+
|
|
36
|
+
type FeatureInfo = FeatureInfoGraphicProps &
|
|
37
|
+
PartialFeatureInfo &
|
|
38
|
+
FeatureInfoActionProps;
|
|
39
|
+
|
|
40
|
+
const DEFAULT_ICON_SIZE: IOIconSizeScale = 24;
|
|
41
|
+
const DEFAULT_PICTOGRAM_SIZE: IOPictogramSizeScale = 48;
|
|
42
|
+
|
|
43
|
+
const renderNode = (body: FeatureInfo["body"]) => {
|
|
44
|
+
if (typeof body === "string") {
|
|
45
|
+
return (
|
|
46
|
+
<LabelSmall weight="Regular" color="grey-700" testID="infoScreenBody">
|
|
47
|
+
{body}
|
|
48
|
+
</LabelSmall>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return body;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export const FeatureInfo = ({
|
|
56
|
+
iconName,
|
|
57
|
+
pictogramName,
|
|
58
|
+
body,
|
|
59
|
+
actionLabel,
|
|
60
|
+
actionOnPress
|
|
61
|
+
}: FeatureInfo) => (
|
|
62
|
+
<View style={[IOStyles.flex, IOStyles.row, IOStyles.alignCenter]}>
|
|
63
|
+
{iconName && (
|
|
64
|
+
<Icon name={iconName} size={DEFAULT_ICON_SIZE} color="grey-300" />
|
|
65
|
+
)}
|
|
66
|
+
{pictogramName && (
|
|
67
|
+
<Pictogram name={pictogramName} size={DEFAULT_PICTOGRAM_SIZE} />
|
|
68
|
+
)}
|
|
69
|
+
<HSpacer size={24} />
|
|
70
|
+
<View style={{ flexShrink: 1 }}>
|
|
71
|
+
{renderNode(body)}
|
|
72
|
+
{actionLabel && actionOnPress && (
|
|
73
|
+
<>
|
|
74
|
+
{/* Add "marginTop" equivalent if body text is present.
|
|
75
|
+
This verbose code could be deleted once we got "gap"
|
|
76
|
+
property support */}
|
|
77
|
+
{body && <VSpacer size={8} />}
|
|
78
|
+
<LabelLink fontSize="small" onPress={actionOnPress}>
|
|
79
|
+
{actionLabel}
|
|
80
|
+
</LabelLink>
|
|
81
|
+
</>
|
|
82
|
+
)}
|
|
83
|
+
</View>
|
|
84
|
+
</View>
|
|
85
|
+
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FeatureInfo";
|