@pagopa/io-app-design-system 1.7.1 → 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/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/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/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/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,15 +1,28 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { Pressable, View } from "react-native";
|
|
4
|
-
import {
|
|
5
|
-
import { HSpacer } from "../spacer/Spacer";
|
|
3
|
+
import { Pressable, StyleSheet, Text, View } from "react-native";
|
|
4
|
+
import { IOColors, useIOExperimentalDesign } from "../../core";
|
|
6
5
|
import { IOStyles } from "../../core/IOStyles";
|
|
7
6
|
import { triggerHaptic } from "../../functions/haptic-feedback/hapticFeedback";
|
|
7
|
+
import { makeFontStyleObject } from "../../utils/fonts";
|
|
8
|
+
import { HSpacer } from "../spacer/Spacer";
|
|
9
|
+
import { H6 } from "../typography/H6";
|
|
8
10
|
import { AnimatedSwitch } from "./AnimatedSwitch";
|
|
9
11
|
const DISABLED_OPACITY = 0.5;
|
|
10
12
|
|
|
11
13
|
// disabled: the component is no longer touchable
|
|
12
14
|
// onPress:
|
|
15
|
+
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
16
|
+
const styles = StyleSheet.create({
|
|
17
|
+
legacyTextValue: {
|
|
18
|
+
fontSize: 16,
|
|
19
|
+
lineHeight: 24,
|
|
20
|
+
color: IOColors.bluegreyDark,
|
|
21
|
+
flexShrink: 1,
|
|
22
|
+
...makeFontStyleObject("SemiBold", undefined, "TitilliumWeb")
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
|
|
13
26
|
/**
|
|
14
27
|
* A checkbox with the automatic state management that uses a {@link AnimatedCheckBox}
|
|
15
28
|
* The toggleValue change when a `onPress` event is received and dispatch the `onValueChange`.
|
|
@@ -25,6 +38,21 @@ export const SwitchLabel = _ref => {
|
|
|
25
38
|
onValueChange
|
|
26
39
|
} = _ref;
|
|
27
40
|
const [toggleValue, setToggleValue] = useState(checked ?? false);
|
|
41
|
+
const {
|
|
42
|
+
isExperimental
|
|
43
|
+
} = useIOExperimentalDesign();
|
|
44
|
+
const switchLabelText = /*#__PURE__*/React.createElement(H6, {
|
|
45
|
+
style: {
|
|
46
|
+
flexShrink: 1
|
|
47
|
+
},
|
|
48
|
+
color: "black"
|
|
49
|
+
}, label);
|
|
50
|
+
|
|
51
|
+
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
52
|
+
const legacySwitchlabelText = /*#__PURE__*/React.createElement(Text, {
|
|
53
|
+
style: styles.legacyTextValue
|
|
54
|
+
}, label);
|
|
55
|
+
const switchLabelTextComponent = isExperimental ? switchLabelText : legacySwitchlabelText;
|
|
28
56
|
const toggleCheckbox = () => {
|
|
29
57
|
triggerHaptic("impactLight");
|
|
30
58
|
setToggleValue(!toggleValue);
|
|
@@ -52,11 +80,6 @@ export const SwitchLabel = _ref => {
|
|
|
52
80
|
checked: checked ?? toggleValue
|
|
53
81
|
})), /*#__PURE__*/React.createElement(HSpacer, {
|
|
54
82
|
size: 8
|
|
55
|
-
}),
|
|
56
|
-
style: {
|
|
57
|
-
flexShrink: 1
|
|
58
|
-
},
|
|
59
|
-
color: "black"
|
|
60
|
-
}, label)));
|
|
83
|
+
}), switchLabelTextComponent));
|
|
61
84
|
};
|
|
62
85
|
//# sourceMappingURL=SwitchLabel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","Pressable","View","
|
|
1
|
+
{"version":3,"names":["React","useState","Pressable","StyleSheet","Text","View","IOColors","useIOExperimentalDesign","IOStyles","triggerHaptic","makeFontStyleObject","HSpacer","H6","AnimatedSwitch","DISABLED_OPACITY","styles","create","legacyTextValue","fontSize","lineHeight","color","bluegreyDark","flexShrink","undefined","SwitchLabel","_ref","label","checked","disabled","onValueChange","toggleValue","setToggleValue","isExperimental","switchLabelText","createElement","style","legacySwitchlabelText","switchLabelTextComponent","toggleCheckbox","onPress","testID","alignSelf","opacity","row","alignItems","width","pointerEvents","size"],"sourceRoot":"../../../../src","sources":["components/switch/SwitchLabel.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,OAAO;AAChC,SAASC,SAAS,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAChE,SAASC,QAAQ,EAAEC,uBAAuB,QAAQ,YAAY;AAC9D,SAASC,QAAQ,QAAQ,qBAAqB;AAC9C,SAASC,aAAa,QAAQ,gDAAgD;AAC9E,SAASC,mBAAmB,QAAQ,mBAAmB;AACvD,SAASC,OAAO,QAAQ,kBAAkB;AAC1C,SAASC,EAAE,QAAQ,kBAAkB;AACrC,SAASC,cAAc,QAAQ,kBAAkB;AAQjD,MAAMC,gBAAgB,GAAG,GAAG;;AAE5B;AACA;AAKA;AACA,MAAMC,MAAM,GAAGZ,UAAU,CAACa,MAAM,CAAC;EAC/BC,eAAe,EAAE;IACfC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,KAAK,EAAEd,QAAQ,CAACe,YAAY;IAC5BC,UAAU,EAAE,CAAC;IACb,GAAGZ,mBAAmB,CAAC,UAAU,EAAEa,SAAS,EAAE,cAAc;EAC9D;AACF,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,WAA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D,gBAEF7C,KAAA,CAAAkC,aAAA,CAAC7B,IAAI;IAACyC,aAAa,EAAC;EAAM,gBACxB9C,KAAA,CAAAkC,aAAA,CAACrB,cAAc;IAACc,OAAO,EAAEA,OAAO,IAAIG;EAAY,CAAE,CAC9C,CAAC,eACP9B,KAAA,CAAAkC,aAAA,CAACvB,OAAO;IAACoC,IAAI,EAAE;EAAE,CAAE,CAAC,EACnBV,wBACG,CACG,CAAC;AAEhB,CAAC"}
|
|
@@ -3,9 +3,8 @@ import * as O from "fp-ts/lib/Option";
|
|
|
3
3
|
import { pipe } from "fp-ts/lib/function";
|
|
4
4
|
import { View, Text, StyleSheet, Platform } from "react-native";
|
|
5
5
|
import { makeFontStyleObject } from "../../utils/fonts";
|
|
6
|
-
import { IOColors } from "../../core/IOColors";
|
|
7
6
|
import { Icon } from "../icons";
|
|
8
|
-
import { IOTagRadius } from "../../core
|
|
7
|
+
import { IOColors, IOTagRadius, useIOExperimentalDesign } from "../../core";
|
|
9
8
|
import { IOTagHSpacing, IOTagVSpacing } from "../../core/IOSpacing";
|
|
10
9
|
const mapVariants = {
|
|
11
10
|
qrCode: {
|
|
@@ -70,8 +69,14 @@ const styles = StyleSheet.create({
|
|
|
70
69
|
alignSelf: "center",
|
|
71
70
|
textTransform: "uppercase",
|
|
72
71
|
color: IOColors["grey-700"],
|
|
73
|
-
flexShrink: 1
|
|
72
|
+
flexShrink: 1
|
|
73
|
+
},
|
|
74
|
+
labelFont: {
|
|
74
75
|
...makeFontStyleObject("Regular", false, "ReadexPro")
|
|
76
|
+
},
|
|
77
|
+
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
78
|
+
legacyLabelFont: {
|
|
79
|
+
...makeFontStyleObject("SemiBold", false, "TitilliumWeb")
|
|
75
80
|
}
|
|
76
81
|
});
|
|
77
82
|
|
|
@@ -84,6 +89,9 @@ export const Tag = _ref => {
|
|
|
84
89
|
variant,
|
|
85
90
|
testID
|
|
86
91
|
} = _ref;
|
|
92
|
+
const {
|
|
93
|
+
isExperimental
|
|
94
|
+
} = useIOExperimentalDesign();
|
|
87
95
|
return /*#__PURE__*/React.createElement(View, {
|
|
88
96
|
testID: testID,
|
|
89
97
|
style: styles.tag
|
|
@@ -104,7 +112,7 @@ export const Tag = _ref => {
|
|
|
104
112
|
}), text && /*#__PURE__*/React.createElement(Text, {
|
|
105
113
|
numberOfLines: 1,
|
|
106
114
|
ellipsizeMode: "tail",
|
|
107
|
-
style: styles.label
|
|
115
|
+
style: [styles.label, isExperimental ? styles.labelFont : styles.legacyLabelFont]
|
|
108
116
|
}, text));
|
|
109
117
|
};
|
|
110
118
|
//# sourceMappingURL=Tag.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","O","pipe","View","Text","StyleSheet","Platform","makeFontStyleObject","
|
|
1
|
+
{"version":3,"names":["React","O","pipe","View","Text","StyleSheet","Platform","makeFontStyleObject","Icon","IOColors","IOTagRadius","useIOExperimentalDesign","IOTagHSpacing","IOTagVSpacing","mapVariants","qrCode","iconColor","iconName","attachment","legalMessage","info","warning","error","success","noIcon","undefined","IOTagIconMargin","IOTagIconSize","styles","create","tag","alignSelf","flexDirection","alignItems","justifyContent","select","android","textAlignVertical","borderWidth","backgroundColor","white","borderColor","borderRadius","paddingHorizontal","paddingVertical","iconWrapper","flexShrink","spacer","width","label","fontSize","lineHeight","textTransform","color","labelFont","legacyLabelFont","Tag","_ref","text","variant","testID","isExperimental","createElement","style","fromNullable","fold","_ref2","name","size","numberOfLines","ellipsizeMode"],"sourceRoot":"../../../../src","sources":["components/tag/Tag.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAO,KAAKC,CAAC,MAAM,kBAAkB;AACrC,SAASC,IAAI,QAAQ,oBAAoB;AACzC,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,EAAEC,QAAQ,QAAQ,cAAc;AAE/D,SAASC,mBAAmB,QAAQ,mBAAmB;AACvD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IAAI,EAAEzC;IAAc,CAAE,CAC1D,CAAC;EAAA,CAEX,CACF,CAAC,EACAb,WAAW,CAAC6C,OAAO,CAAC,IAAID,IAAI,iBAAI1D,KAAA,CAAA8D,aAAA,CAAC3D,IAAI;IAAC4D,KAAK,EAAEnC,MAAM,CAACmB;EAAO,CAAE,CAAC,EAC9DW,IAAI,iBACH1D,KAAA,CAAA8D,aAAA,CAAC1D,IAAI;IACHiE,aAAa,EAAE,CAAE;IACjBC,aAAa,EAAC,MAAM;IACpBP,KAAK,EAAE,CACLnC,MAAM,CAACqB,KAAK,EACZY,cAAc,GAAGjC,MAAM,CAAC0B,SAAS,GAAG1B,MAAM,CAAC2B,eAAe;EAC1D,GAEDG,IACG,CAEJ,CAAC;AAEX,CAAC"}
|
|
@@ -3,7 +3,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
3
3
|
import { Pressable, StyleSheet, TextInput, View } from "react-native";
|
|
4
4
|
import React, { useCallback, useEffect, useMemo, useRef } from "react";
|
|
5
5
|
import Animated, { Easing, useAnimatedStyle, useSharedValue, withTiming } from "react-native-reanimated";
|
|
6
|
-
import { IOColors, IOSpacingScale, IOStyles } from "../../core";
|
|
6
|
+
import { IOColors, IOSpacingScale, IOStyles, useIOExperimentalDesign } from "../../core";
|
|
7
7
|
import { Icon } from "../icons";
|
|
8
8
|
import { HSpacer } from "../spacer";
|
|
9
9
|
import { LabelSmall } from "../typography";
|
|
@@ -20,12 +20,18 @@ const styles = StyleSheet.create({
|
|
|
20
20
|
},
|
|
21
21
|
textInputStyle: {
|
|
22
22
|
...IOStyles.flex,
|
|
23
|
-
...makeFontStyleObject("Regular", false, "ReadexPro"),
|
|
24
23
|
fontSize: 16,
|
|
25
24
|
marginTop: IOSpacingScale[2],
|
|
26
25
|
lineHeight: 24,
|
|
27
26
|
height: "100%"
|
|
28
27
|
},
|
|
28
|
+
textInputStyleFont: {
|
|
29
|
+
...makeFontStyleObject("Regular", false, "ReadexPro")
|
|
30
|
+
},
|
|
31
|
+
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
32
|
+
textInputStyleLegacyFont: {
|
|
33
|
+
...makeFontStyleObject("SemiBold", false, "TitilliumWeb")
|
|
34
|
+
},
|
|
29
35
|
textInputLabelWrapper: {
|
|
30
36
|
position: "absolute",
|
|
31
37
|
paddingHorizontal: 12,
|
|
@@ -165,6 +171,9 @@ export const TextInputBase = _ref2 => {
|
|
|
165
171
|
}, [value, labelSharedValue, onBlur]);
|
|
166
172
|
const derivedInputProps = useMemo(() => getInputPropsByType(inputTyoe), [inputTyoe]);
|
|
167
173
|
const inputValue = useMemo(() => derivedInputProps && derivedInputProps.valueFormat ? derivedInputProps.valueFormat(value) : value, [value, derivedInputProps]);
|
|
174
|
+
const {
|
|
175
|
+
isExperimental
|
|
176
|
+
} = useIOExperimentalDesign();
|
|
168
177
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Pressable, {
|
|
169
178
|
onPress: onTextInputPress,
|
|
170
179
|
style: [inputStatus === "disabled" ? {
|
|
@@ -198,7 +207,7 @@ export const TextInputBase = _ref2 => {
|
|
|
198
207
|
onBlur: onBlurHandler,
|
|
199
208
|
value: inputValue,
|
|
200
209
|
onChangeText: onChangeTextHandler,
|
|
201
|
-
style: styles.textInputStyle
|
|
210
|
+
style: [styles.textInputStyle, isExperimental ? styles.textInputStyleFont : styles.textInputStyleLegacyFont]
|
|
202
211
|
})), /*#__PURE__*/React.createElement(Animated.View, {
|
|
203
212
|
style: [styles.textInputLabelWrapper, icon ? {
|
|
204
213
|
left: 32
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Pressable","StyleSheet","TextInput","View","React","useCallback","useEffect","useMemo","useRef","Animated","Easing","useAnimatedStyle","useSharedValue","withTiming","IOColors","IOSpacingScale","IOStyles","Icon","HSpacer","LabelSmall","getInputPropsByType","makeFontStyleObject","styles","create","textInput","row","alignItems","paddingVertical","height","borderRadius","paddingHorizontal","textInputStyle","flex","fontSize","marginTop","lineHeight","textInputLabelWrapper","position","zIndex","bottom","top","justifyContent","HelperRow","_ref","value","counterLimit","bottomMessage","bottomMessageColor","valueCount","length","helperRowStyle","createElement","style","weight","color","TextInputBase","_ref2","disabled","placeholder","onChangeText","accessibilityLabel","textInputProps","inputTyoe","status","icon","rightElement","onBlur","onFocus","isPassword","labelSharedValue","inputStatus","setInputStatus","useState","isSecretInput","inputRef","boxStyle","borderColor","borderWidth","animatedLabelProps","duration","easing","elastic","transform","translateY","onTextInputPress","_inputRef$current","current","focus","onChangeTextHandler","text","onBlurHandler","derivedInputProps","inputValue","valueFormat","Fragment","onPress","opacity","accessible","accessibilityRole","name","size","_extends","editable","secureTextEntry","disableFullscreenUI","blurOnSubmit","ref","accessibilityState","maxLength","left","Text","numberOfLines","marginLeft"],"sourceRoot":"../../../../src","sources":["components/textInput/TextInputBase.tsx"],"mappings":";AAAA;AACA,SACEA,SAAS,EACTC,UAAU,EACVC,SAAS,EACTC,IAAI,QAEC,cAAc;AACrB,OAAOC,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AACtE,OAAOC,QAAQ,IACbC,MAAM,EACNC,gBAAgB,EAChBC,cAAc,EACdC,UAAU,QACL,yBAAyB;AAChC,
|
|
1
|
+
{"version":3,"names":["Pressable","StyleSheet","TextInput","View","React","useCallback","useEffect","useMemo","useRef","Animated","Easing","useAnimatedStyle","useSharedValue","withTiming","IOColors","IOSpacingScale","IOStyles","useIOExperimentalDesign","Icon","HSpacer","LabelSmall","getInputPropsByType","makeFontStyleObject","styles","create","textInput","row","alignItems","paddingVertical","height","borderRadius","paddingHorizontal","textInputStyle","flex","fontSize","marginTop","lineHeight","textInputStyleFont","textInputStyleLegacyFont","textInputLabelWrapper","position","zIndex","bottom","top","justifyContent","HelperRow","_ref","value","counterLimit","bottomMessage","bottomMessageColor","valueCount","length","helperRowStyle","createElement","style","weight","color","TextInputBase","_ref2","disabled","placeholder","onChangeText","accessibilityLabel","textInputProps","inputTyoe","status","icon","rightElement","onBlur","onFocus","isPassword","labelSharedValue","inputStatus","setInputStatus","useState","isSecretInput","inputRef","boxStyle","borderColor","borderWidth","animatedLabelProps","duration","easing","elastic","transform","translateY","onTextInputPress","_inputRef$current","current","focus","onChangeTextHandler","text","onBlurHandler","derivedInputProps","inputValue","valueFormat","isExperimental","Fragment","onPress","opacity","accessible","accessibilityRole","name","size","_extends","editable","secureTextEntry","disableFullscreenUI","blurOnSubmit","ref","accessibilityState","maxLength","left","Text","numberOfLines","marginLeft"],"sourceRoot":"../../../../src","sources":["components/textInput/TextInputBase.tsx"],"mappings":";AAAA;AACA,SACEA,SAAS,EACTC,UAAU,EACVC,SAAS,EACTC,IAAI,QAEC,cAAc;AACrB,OAAOC,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AACtE,OAAOC,QAAQ,IACbC,MAAM,EACNC,gBAAgB,EAChBC,cAAc,EACdC,UAAU,QACL,yBAAyB;AAChC,SACEC,QAAQ,EACRC,cAAc,EACdC,QAAQ,EACRC,uBAAuB,QAClB,YAAY;AACnB,SAAkBC,IAAI,QAAQ,UAAU;AACxC,SAASC,OAAO,QAAQ,WAAW;AACnC,SAASC,UAAU,QAAQ,eAAe;AAE1C,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,mBAAmB,QAAQ,mBAAmB;AA4BvD,MAAMC,MAAM,GAAGtB,UAAU,CAACuB,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACT,GAAGT,QAAQ,CAACU,GAAG;IACfC,UAAU,EAAE,QAAQ;IACpBC,eAAe,EAAE,CAAC;IAClBC,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE,CAAC;IACfC,iBAAiB,EAAE;EACrB,CAAC;EACDC,cAAc,EAAE;IACd,GAAGhB,QAAQ,CAACiB,IAAI;IAChBC,QAAQ,EAA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7C,QAAQ,CAACN,IAAI;IACZoD,KAAK,EAAE,CAAChC,MAAM,CAACgB,qBAAqB,EAAE4B,IAAI,GAAG;MAAE8C,IAAI,EAAE;IAAG,CAAC,GAAG,CAAC,CAAC;EAAE,gBAEhE7G,KAAA,CAAAkD,aAAA,CAAC7C,QAAQ,CAACyG,IAAI;IACZC,aAAa,EAAE,CAAE;IACjBd,UAAU,EAAE,KAAM;IAClB9C,KAAK,EAAE,CACL0B,kBAAkB,EAClB;MACExB,KAAK,EAAE3C,QAAQ,CAAC,UAAU;IAC5B,CAAC;EACD,GAED+C,WACY,CACF,CAAC,EACfO,YAAY,iBACXhE,KAAA,CAAAkD,aAAA,CAACnD,IAAI;IAACoD,KAAK,EAAE;MAAE6D,UAAU,EAAE;IAAO;EAAE,gBAClChH,KAAA,CAAAkD,aAAA,CAACnC,OAAO;IAACqF,IAAI,EAAE;EAAE,CAAE,CAAC,EACnBpC,YACG,CAEC,CAAC,EACX,CAACnB,aAAa,IAAID,YAAY,kBAC7B5C,KAAA,CAAAkD,aAAA,CAACT,SAAS;IACRE,KAAK,EAAEA,KAAM;IACbE,aAAa,EAAEA,aAAc;IAC7BC,kBAAkB,EAAEA,kBAAmB;IACvCF,YAAY,EAAEA;EAAa,CAC5B,CAEH,CAAC;AAEP,CAAC"}
|
|
@@ -6,10 +6,7 @@ export const bodyDefaultColor = "bluegrey";
|
|
|
6
6
|
export const bodyDefaultWeight = "Regular";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* default values (if not defined) are weight: `Regular`, color: `bluegrey`
|
|
11
|
-
* @param props`
|
|
12
|
-
* @constructor
|
|
9
|
+
* `Body` typographic style
|
|
13
10
|
*/
|
|
14
11
|
export const Body = props => useTypographyFactory({
|
|
15
12
|
...props,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useTypographyFactory","fontName","bodyFontSize","bodyLineHeight","bodyDefaultColor","bodyDefaultWeight","Body","props","defaultWeight","defaultColor","font","fontStyle","fontSize","lineHeight"],"sourceRoot":"../../../../src","sources":["components/typography/Body.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"names":["useTypographyFactory","fontName","bodyFontSize","bodyLineHeight","bodyDefaultColor","bodyDefaultWeight","Body","props","defaultWeight","defaultColor","font","fontStyle","fontSize","lineHeight"],"sourceRoot":"../../../../src","sources":["components/typography/Body.tsx"],"mappings":"AAEA,SAASA,oBAAoB,QAAQ,WAAW;AAchD,MAAMC,QAAoB,GAAG,cAAc;AAC3C,OAAO,MAAMC,YAAY,GAAG,EAAE;AAC9B,OAAO,MAAMC,cAAc,GAAG,EAAE;AAChC,OAAO,MAAMC,gBAA+B,GAAG,UAAU;AACzD,OAAO,MAAMC,iBAAgC,GAAG,SAAS;;AAEzD;AACA;AACA;AACA,OAAO,MAAMC,IAAI,GAAIC,KAAgB,IACnCP,oBAAoB,CAA+B;EACjD,GAAGO,KAAK;EACRC,aAAa,EAAEH,iBAAiB;EAChCI,YAAY,EAAEL,gBAAgB;EAC9BM,IAAI,EAAET,QAAQ;EACdU,SAAS,EAAE;IAAEC,QAAQ,EAAEV,YAAY;IAAEW,UAAU,EAAEV;EAAe;AAClE,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useTypographyFactory } from "./Factory";
|
|
2
|
+
const fontName = "DMMono";
|
|
3
|
+
const fontSize = 16;
|
|
4
|
+
const lineHeight = 24;
|
|
5
|
+
const monospaceDefaultWeight = "Medium";
|
|
6
|
+
const monospaceDefaultcolor = "bluegrey";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* `BodyMonospace` typographic style
|
|
10
|
+
*/
|
|
11
|
+
export const BodyMonospace = props => useTypographyFactory({
|
|
12
|
+
...props,
|
|
13
|
+
defaultWeight: monospaceDefaultWeight,
|
|
14
|
+
defaultColor: monospaceDefaultcolor,
|
|
15
|
+
font: fontName,
|
|
16
|
+
fontStyle: {
|
|
17
|
+
fontSize,
|
|
18
|
+
lineHeight
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=BodyMonospace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useTypographyFactory","fontName","fontSize","lineHeight","monospaceDefaultWeight","monospaceDefaultcolor","BodyMonospace","props","defaultWeight","defaultColor","font","fontStyle"],"sourceRoot":"../../../../src","sources":["components/typography/BodyMonospace.tsx"],"mappings":"AAEA,SAASA,oBAAoB,QAAQ,WAAW;AAUhD,MAAMC,QAAoB,GAAG,QAAQ;AACrC,MAAMC,QAAQ,GAAG,EAAE;AACnB,MAAMC,UAAU,GAAG,EAAE;AACrB,MAAMC,sBAAsB,GAAG,QAAQ;AACvC,MAAMC,qBAAqB,GAAG,UAAU;;AAExC;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAIC,KAAyB,IACrDP,oBAAoB,CAA+B;EACjD,GAAGO,KAAK;EACRC,aAAa,EAAEJ,sBAAsB;EACrCK,YAAY,EAAEJ,qBAAqB;EACnCK,IAAI,EAAET,QAAQ;EACdU,SAAS,EAAE;IAAET,QAAQ;IAAEC;EAAW;AACpC,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useIOExperimentalDesign } from "../../core";
|
|
2
|
+
import { useTypographyFactory } from "./Factory";
|
|
3
|
+
export const buttonTextFontSize = 16;
|
|
4
|
+
/* Needed to render `ButtonOutline` and`ButtonLink` because they use
|
|
5
|
+
`AnimatedText` for color transition through Reanimated */
|
|
6
|
+
const buttonTextDefaultColor = "white";
|
|
7
|
+
const buttonTextFontName = "ReadexPro";
|
|
8
|
+
const buttonTextDefaultWeight = "Regular";
|
|
9
|
+
|
|
10
|
+
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
11
|
+
const legacyTextFontName = "TitilliumWeb";
|
|
12
|
+
const legacyTextDefaultWeight = "Bold";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* `ButtonText` typographic style
|
|
16
|
+
*/
|
|
17
|
+
export const ButtonText = props => {
|
|
18
|
+
const {
|
|
19
|
+
isExperimental
|
|
20
|
+
} = useIOExperimentalDesign();
|
|
21
|
+
return useTypographyFactory({
|
|
22
|
+
...props,
|
|
23
|
+
defaultWeight: isExperimental ? buttonTextDefaultWeight : legacyTextDefaultWeight,
|
|
24
|
+
defaultColor: buttonTextDefaultColor,
|
|
25
|
+
font: isExperimental ? buttonTextFontName : legacyTextFontName,
|
|
26
|
+
fontStyle: {
|
|
27
|
+
fontSize: buttonTextFontSize
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=ButtonText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useIOExperimentalDesign","useTypographyFactory","buttonTextFontSize","buttonTextDefaultColor","buttonTextFontName","buttonTextDefaultWeight","legacyTextFontName","legacyTextDefaultWeight","ButtonText","props","isExperimental","defaultWeight","defaultColor","font","fontStyle","fontSize"],"sourceRoot":"../../../../src","sources":["components/typography/ButtonText.tsx"],"mappings":"AAEA,SAASA,uBAAuB,QAAQ,YAAY;AACpD,SAASC,oBAAoB,QAAQ,WAAW;AAahD,OAAO,MAAMC,kBAAkB,GAAG,EAAE;AACpC;AACA;AACA,MAAMC,sBAA+C,GAAG,OAAO;AAC/D,MAAMC,kBAAgC,GAAG,WAAW;AACpD,MAAMC,uBAAsC,GAAG,SAAS;;AAExD;AACA,MAAMC,kBAAgC,GAAG,cAAc;AACvD,MAAMC,uBAAsC,GAAG,MAAM;;AAErD;AACA;AACA;AACA,OAAO,MAAMC,UAAU,GAAIC,KAAsB,IAAK;EACpD,MAAM;IAAEC;EAAe,CAAC,GAAGV,uBAAuB,CAAC,CAAC;EAEpD,OAAOC,oBAAoB,CAAyC;IAClE,GAAGQ,KAAK;IACRE,aAAa,EAAED,cAAc,GACzBL,uBAAuB,GACvBE,uBAAuB;IAC3BK,YAAY,EAAET,sBAAsB;IACpCU,IAAI,EAAEH,cAAc,GAAGN,kBAAkB,GAAGE,kBAAkB;IAC9DQ,SAAS,EAAE;MACTC,QAAQ,EAAEb;IACZ;EACF,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useIOExperimentalDesign } from "../../core";
|
|
2
|
+
import { useTypographyFactory } from "./Factory";
|
|
3
|
+
export const captionFontSize = 12;
|
|
4
|
+
const font = "ReadexPro";
|
|
5
|
+
const defaultColor = "black";
|
|
6
|
+
const defaultWeight = "Regular";
|
|
7
|
+
|
|
8
|
+
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
9
|
+
const legacyFont = "TitilliumWeb";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* `Caption` typographic style
|
|
13
|
+
*/
|
|
14
|
+
export const Caption = props => {
|
|
15
|
+
const {
|
|
16
|
+
isExperimental
|
|
17
|
+
} = useIOExperimentalDesign();
|
|
18
|
+
return useTypographyFactory({
|
|
19
|
+
...props,
|
|
20
|
+
defaultWeight,
|
|
21
|
+
defaultColor,
|
|
22
|
+
font: isExperimental ? font : legacyFont,
|
|
23
|
+
fontStyle: {
|
|
24
|
+
fontSize: captionFontSize,
|
|
25
|
+
textTransform: "uppercase"
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=Caption.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useIOExperimentalDesign","useTypographyFactory","captionFontSize","font","defaultColor","defaultWeight","legacyFont","Caption","props","isExperimental","fontStyle","fontSize","textTransform"],"sourceRoot":"../../../../src","sources":["components/typography/Caption.tsx"],"mappings":"AAAA,SAAkBA,uBAAuB,QAAQ,YAAY;AAE7D,SAASC,oBAAoB,QAAQ,WAAW;AAUhD,OAAO,MAAMC,eAAe,GAAG,EAAE;AACjC,MAAMC,IAAgB,GAAG,WAAW;AACpC,MAAMC,YAA2B,GAAG,OAAO;AAC3C,MAAMC,aAA4B,GAAG,SAAS;;AAE9C;AACA,MAAMC,UAAsB,GAAG,cAAc;;AAE7C;AACA;AACA;AACA,OAAO,MAAMC,OAAO,GAAIC,KAAmB,IAAK;EAC9C,MAAM;IAAEC;EAAe,CAAC,GAAGT,uBAAuB,CAAC,CAAC;EAEpD,OAAOC,oBAAoB,CAA+B;IACxD,GAAGO,KAAK;IACRH,aAAa;IACbD,YAAY;IACZD,IAAI,EAAEM,cAAc,GAAGN,IAAI,GAAGG,UAAU;IACxCI,SAAS,EAAE;MACTC,QAAQ,EAAET,eAAe;MACzBU,aAAa,EAAE;IACjB;EACF,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useIOExperimentalDesign } from "../../core";
|
|
2
|
+
import { useTypographyFactory } from "./Factory";
|
|
3
|
+
const chipFontSize = 12;
|
|
4
|
+
const font = "ReadexPro";
|
|
5
|
+
const defaultColor = "black";
|
|
6
|
+
const defaultWeight = "Regular";
|
|
7
|
+
|
|
8
|
+
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
9
|
+
const legacyFont = "TitilliumWeb";
|
|
10
|
+
/**
|
|
11
|
+
* `Chip` typographic style
|
|
12
|
+
*/
|
|
13
|
+
export const Chip = props => {
|
|
14
|
+
const {
|
|
15
|
+
isExperimental
|
|
16
|
+
} = useIOExperimentalDesign();
|
|
17
|
+
return useTypographyFactory({
|
|
18
|
+
...props,
|
|
19
|
+
defaultWeight,
|
|
20
|
+
defaultColor,
|
|
21
|
+
font: isExperimental ? font : legacyFont,
|
|
22
|
+
fontStyle: {
|
|
23
|
+
fontSize: chipFontSize
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=Chip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useIOExperimentalDesign","useTypographyFactory","chipFontSize","font","defaultColor","defaultWeight","legacyFont","Chip","props","isExperimental","fontStyle","fontSize"],"sourceRoot":"../../../../src","sources":["components/typography/Chip.tsx"],"mappings":"AAAA,SAAmBA,uBAAuB,QAAQ,YAAY;AAE9D,SAASC,oBAAoB,QAAQ,WAAW;AAUhD,MAAMC,YAAY,GAAG,EAAE;AACvB,MAAMC,IAAgB,GAAG,WAAW;AACpC,MAAMC,YAA2B,GAAG,OAAO;AAC3C,MAAMC,aAA4B,GAAG,SAAS;;AAE9C;AACA,MAAMC,UAAsB,GAAG,cAAc;AAC7C;AACA;AACA;AACA,OAAO,MAAMC,IAAI,GAAIC,KAAgB,IAAK;EACxC,MAAM;IAAEC;EAAe,CAAC,GAAGT,uBAAuB,CAAC,CAAC;EAEpD,OAAOC,oBAAoB,CAA+B;IACxD,GAAGO,KAAK;IACRH,aAAa;IACbD,YAAY;IACZD,IAAI,EAAEM,cAAc,GAAGN,IAAI,GAAGG,UAAU;IACxCI,SAAS,EAAE;MAAEC,QAAQ,EAAET;IAAa;EACtC,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,22 +1,27 @@
|
|
|
1
|
+
import { useIOExperimentalDesign } from "../../core";
|
|
1
2
|
import { useTypographyFactory } from "./Factory";
|
|
2
|
-
export const h1FontSize =
|
|
3
|
-
export const h1LineHeight =
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export const h1FontSize = 28;
|
|
4
|
+
export const h1LineHeight = 42;
|
|
5
|
+
const font = "ReadexPro";
|
|
6
|
+
const defaultColor = "black";
|
|
7
|
+
const defaultWeight = "Regular";
|
|
8
|
+
|
|
9
|
+
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
10
|
+
const legacyFont = "TitilliumWeb";
|
|
11
|
+
const legacyDefaultWeight = "Bold";
|
|
6
12
|
|
|
7
13
|
/**
|
|
8
|
-
*
|
|
9
|
-
* default values(if not defined) are weight: `Bold`, color: `bluegreyDark`
|
|
10
|
-
* @param props
|
|
11
|
-
* @constructor
|
|
14
|
+
* `H1` typographic style
|
|
12
15
|
*/
|
|
13
16
|
export const H1 = props => {
|
|
14
|
-
const
|
|
17
|
+
const {
|
|
18
|
+
isExperimental
|
|
19
|
+
} = useIOExperimentalDesign();
|
|
15
20
|
return useTypographyFactory({
|
|
16
21
|
...props,
|
|
17
|
-
defaultWeight:
|
|
18
|
-
defaultColor
|
|
19
|
-
font:
|
|
22
|
+
defaultWeight: isExperimental ? defaultWeight : legacyDefaultWeight,
|
|
23
|
+
defaultColor,
|
|
24
|
+
font: isExperimental ? font : legacyFont,
|
|
20
25
|
fontStyle: {
|
|
21
26
|
fontSize: h1FontSize,
|
|
22
27
|
lineHeight: h1LineHeight
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useTypographyFactory","h1FontSize","h1LineHeight","
|
|
1
|
+
{"version":3,"names":["useIOExperimentalDesign","useTypographyFactory","h1FontSize","h1LineHeight","font","defaultColor","defaultWeight","legacyFont","legacyDefaultWeight","H1","props","isExperimental","fontStyle","fontSize","lineHeight"],"sourceRoot":"../../../../src","sources":["components/typography/H1.tsx"],"mappings":"AAAA,SAAkBA,uBAAuB,QAAQ,YAAY;AAE7D,SAASC,oBAAoB,QAAQ,WAAW;AAUhD,OAAO,MAAMC,UAAU,GAAG,EAAE;AAC5B,OAAO,MAAMC,YAAY,GAAG,EAAE;AAC9B,MAAMC,IAAgB,GAAG,WAAW;AACpC,MAAMC,YAA2B,GAAG,OAAO;AAC3C,MAAMC,aAA4B,GAAG,SAAS;;AAE9C;AACA,MAAMC,UAAsB,GAAG,cAAc;AAC7C,MAAMC,mBAAkC,GAAG,MAAM;;AAEjD;AACA;AACA;AACA,OAAO,MAAMC,EAAE,GAAIC,KAAc,IAAK;EACpC,MAAM;IAAEC;EAAe,CAAC,GAAGX,uBAAuB,CAAC,CAAC;EAEpD,OAAOC,oBAAoB,CAA+B;IACxD,GAAGS,KAAK;IACRJ,aAAa,EAAEK,cAAc,GAAGL,aAAa,GAAGE,mBAAmB;IACnEH,YAAY;IACZD,IAAI,EAAEO,cAAc,GAAGP,IAAI,GAAGG,UAAU;IACxCK,SAAS,EAAE;MAAEC,QAAQ,EAAEX,UAAU;MAAEY,UAAU,EAAEX;IAAa;EAC9D,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,22 +1,27 @@
|
|
|
1
|
+
import { useIOExperimentalDesign } from "../../core";
|
|
1
2
|
import { useTypographyFactory } from "./Factory";
|
|
2
|
-
export const h2FontSize =
|
|
3
|
-
export const h2LineHeight =
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export const h2FontSize = 26;
|
|
4
|
+
export const h2LineHeight = 39;
|
|
5
|
+
const font = "ReadexPro";
|
|
6
|
+
const defaultColor = "black";
|
|
7
|
+
const defaultWeight = "Regular";
|
|
8
|
+
|
|
9
|
+
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
10
|
+
const legacyFont = "TitilliumWeb";
|
|
11
|
+
const legacyDefaultWeight = "Bold";
|
|
6
12
|
|
|
7
13
|
/**
|
|
8
|
-
*
|
|
9
|
-
* default values(if not defined) are weight: `Bold`, color: `bluegreyDark`
|
|
10
|
-
* @param props
|
|
11
|
-
* @constructor
|
|
14
|
+
* `H2` typographic style
|
|
12
15
|
*/
|
|
13
16
|
export const H2 = props => {
|
|
14
|
-
const
|
|
17
|
+
const {
|
|
18
|
+
isExperimental
|
|
19
|
+
} = useIOExperimentalDesign();
|
|
15
20
|
return useTypographyFactory({
|
|
16
21
|
...props,
|
|
17
|
-
defaultWeight:
|
|
18
|
-
defaultColor
|
|
19
|
-
font:
|
|
22
|
+
defaultWeight: isExperimental ? defaultWeight : legacyDefaultWeight,
|
|
23
|
+
defaultColor,
|
|
24
|
+
font: isExperimental ? font : legacyFont,
|
|
20
25
|
fontStyle: {
|
|
21
26
|
fontSize: h2FontSize,
|
|
22
27
|
lineHeight: h2LineHeight
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useTypographyFactory","h2FontSize","h2LineHeight","
|
|
1
|
+
{"version":3,"names":["useIOExperimentalDesign","useTypographyFactory","h2FontSize","h2LineHeight","font","defaultColor","defaultWeight","legacyFont","legacyDefaultWeight","H2","props","isExperimental","fontStyle","fontSize","lineHeight"],"sourceRoot":"../../../../src","sources":["components/typography/H2.tsx"],"mappings":"AAAA,SAAkBA,uBAAuB,QAAQ,YAAY;AAE7D,SAASC,oBAAoB,QAAQ,WAAW;AAUhD,OAAO,MAAMC,UAAU,GAAG,EAAE;AAC5B,OAAO,MAAMC,YAAY,GAAG,EAAE;AAC9B,MAAMC,IAAgB,GAAG,WAAW;AACpC,MAAMC,YAA2B,GAAG,OAAO;AAC3C,MAAMC,aAA4B,GAAG,SAAS;;AAE9C;AACA,MAAMC,UAAsB,GAAG,cAAc;AAC7C,MAAMC,mBAAkC,GAAG,MAAM;;AAEjD;AACA;AACA;AACA,OAAO,MAAMC,EAAE,GAAIC,KAAc,IAAK;EACpC,MAAM;IAAEC;EAAe,CAAC,GAAGX,uBAAuB,CAAC,CAAC;EAEpD,OAAOC,oBAAoB,CAA+B;IACxD,GAAGS,KAAK;IACRJ,aAAa,EAAEK,cAAc,GAAGL,aAAa,GAAGE,mBAAmB;IACnEH,YAAY;IACZD,IAAI,EAAEO,cAAc,GAAGP,IAAI,GAAGG,UAAU;IACxCK,SAAS,EAAE;MAAEC,QAAQ,EAAEX,UAAU;MAAEY,UAAU,EAAEX;IAAa;EAC9D,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,26 +1,32 @@
|
|
|
1
|
+
import { useIOExperimentalDesign } from "../../core";
|
|
1
2
|
import { useTypographyFactory } from "./Factory";
|
|
2
3
|
/* Common typographic styles */
|
|
3
4
|
export const h3FontSize = 22;
|
|
4
5
|
export const h3LineHeight = 33;
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const h3DefaultWeight = "Regular";
|
|
6
|
+
const font = "ReadexPro";
|
|
7
|
+
const defaultColor = "black";
|
|
8
|
+
const defaultWeight = "Regular";
|
|
9
9
|
|
|
10
|
+
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
11
|
+
const legacyFontName = "TitilliumWeb";
|
|
12
|
+
const legacyDefaultColor = "bluegreyDark";
|
|
13
|
+
const legacyDefaultWeight = "Bold";
|
|
10
14
|
/**
|
|
11
|
-
*
|
|
12
|
-
* default values(if not defined) are weight: `Bold`, color: `bluegreyDark`
|
|
13
|
-
* @param props
|
|
14
|
-
* @constructor
|
|
15
|
+
* `H3` typographic style
|
|
15
16
|
*/
|
|
16
|
-
export const H3 = props =>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
export const H3 = props => {
|
|
18
|
+
const {
|
|
19
|
+
isExperimental
|
|
20
|
+
} = useIOExperimentalDesign();
|
|
21
|
+
return useTypographyFactory({
|
|
22
|
+
...props,
|
|
23
|
+
defaultWeight: isExperimental ? defaultWeight : legacyDefaultWeight,
|
|
24
|
+
defaultColor: isExperimental ? defaultColor : legacyDefaultColor,
|
|
25
|
+
font: isExperimental ? font : legacyFontName,
|
|
26
|
+
fontStyle: {
|
|
27
|
+
fontSize: h3FontSize,
|
|
28
|
+
lineHeight: h3LineHeight
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
};
|
|
26
32
|
//# sourceMappingURL=H3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useTypographyFactory","h3FontSize","h3LineHeight","
|
|
1
|
+
{"version":3,"names":["useIOExperimentalDesign","useTypographyFactory","h3FontSize","h3LineHeight","font","defaultColor","defaultWeight","legacyFontName","legacyDefaultColor","legacyDefaultWeight","H3","props","isExperimental","fontStyle","fontSize","lineHeight"],"sourceRoot":"../../../../src","sources":["components/typography/H3.tsx"],"mappings":"AAAA,SAAkBA,uBAAuB,QAAQ,YAAY;AAE7D,SAASC,oBAAoB,QAAQ,WAAW;AAUhD;AACA,OAAO,MAAMC,UAAU,GAAG,EAAE;AAC5B,OAAO,MAAMC,YAAY,GAAG,EAAE;AAC9B,MAAMC,IAAgB,GAAG,WAAW;AACpC,MAAMC,YAA2B,GAAG,OAAO;AAC3C,MAAMC,aAA4B,GAAG,SAAS;;AAE9C;AACA,MAAMC,cAA0B,GAAG,cAAc;AACjD,MAAMC,kBAAiC,GAAG,cAAc;AACxD,MAAMC,mBAAkC,GAAG,MAAM;AACjD;AACA;AACA;AACA,OAAO,MAAMC,EAAE,GAAIC,KAAc,IAAK;EACpC,MAAM;IAAEC;EAAe,CAAC,GAAGZ,uBAAuB,CAAC,CAAC;EACpD,OAAOC,oBAAoB,CAA+B;IACxD,GAAGU,KAAK;IACRL,aAAa,EAAEM,cAAc,GAAGN,aAAa,GAAGG,mBAAmB;IACnEJ,YAAY,EAAEO,cAAc,GAAGP,YAAY,GAAGG,kBAAkB;IAChEJ,IAAI,EAAEQ,cAAc,GAAGR,IAAI,GAAGG,cAAc;IAC5CM,SAAS,EAAE;MAAEC,QAAQ,EAAEZ,UAAU;MAAEa,UAAU,EAAEZ;IAAa;EAC9D,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,24 +1,28 @@
|
|
|
1
|
+
import { useIOExperimentalDesign } from "../../core";
|
|
1
2
|
import { useTypographyFactory } from "./Factory";
|
|
2
|
-
/* Common typographic styles */
|
|
3
3
|
export const h4FontSize = 20;
|
|
4
|
-
export const h4LineHeight =
|
|
4
|
+
export const h4LineHeight = 30;
|
|
5
|
+
const font = "ReadexPro";
|
|
6
|
+
const defaultColor = "black";
|
|
7
|
+
const defaultWeight = "Regular";
|
|
8
|
+
|
|
9
|
+
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
10
|
+
const legacyFontName = "TitilliumWeb";
|
|
11
|
+
const legacyDefaultColor = "bluegreyDark";
|
|
12
|
+
const legacyDefaultWeight = "SemiBold";
|
|
5
13
|
|
|
6
14
|
/**
|
|
7
|
-
*
|
|
8
|
-
* default values(if not defined) are weight: `Regular/SemiBold`, color: `black/bluegreyDark` if design system is enabled or not
|
|
9
|
-
* @param props
|
|
10
|
-
* @constructor
|
|
15
|
+
* `H4` typographic style
|
|
11
16
|
*/
|
|
12
17
|
export const H4 = props => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const defaultWeight = "Regular";
|
|
18
|
+
const {
|
|
19
|
+
isExperimental
|
|
20
|
+
} = useIOExperimentalDesign();
|
|
17
21
|
return useTypographyFactory({
|
|
18
22
|
...props,
|
|
19
|
-
defaultWeight,
|
|
20
|
-
defaultColor,
|
|
21
|
-
font,
|
|
23
|
+
defaultWeight: isExperimental ? defaultWeight : legacyDefaultWeight,
|
|
24
|
+
defaultColor: isExperimental ? defaultColor : legacyDefaultColor,
|
|
25
|
+
font: isExperimental ? font : legacyFontName,
|
|
22
26
|
fontStyle: {
|
|
23
27
|
fontSize: h4FontSize,
|
|
24
28
|
lineHeight: h4LineHeight
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useTypographyFactory","h4FontSize","h4LineHeight","
|
|
1
|
+
{"version":3,"names":["useIOExperimentalDesign","useTypographyFactory","h4FontSize","h4LineHeight","font","defaultColor","defaultWeight","legacyFontName","legacyDefaultColor","legacyDefaultWeight","H4","props","isExperimental","fontStyle","fontSize","lineHeight"],"sourceRoot":"../../../../src","sources":["components/typography/H4.tsx"],"mappings":"AAAA,SAAkBA,uBAAuB,QAAQ,YAAY;AAE7D,SAASC,oBAAoB,QAAQ,WAAW;AAUhD,OAAO,MAAMC,UAAU,GAAG,EAAE;AAC5B,OAAO,MAAMC,YAAY,GAAG,EAAE;AAC9B,MAAMC,IAAgB,GAAG,WAAW;AACpC,MAAMC,YAA2B,GAAG,OAAO;AAC3C,MAAMC,aAA4B,GAAG,SAAS;;AAE9C;AACA,MAAMC,cAA0B,GAAG,cAAc;AACjD,MAAMC,kBAAiC,GAAG,cAAc;AACxD,MAAMC,mBAAkC,GAAG,UAAU;;AAErD;AACA;AACA;AACA,OAAO,MAAMC,EAAE,GAAIC,KAAc,IAAK;EACpC,MAAM;IAAEC;EAAe,CAAC,GAAGZ,uBAAuB,CAAC,CAAC;EACpD,OAAOC,oBAAoB,CAA+B;IACxD,GAAGU,KAAK;IACRL,aAAa,EAAEM,cAAc,GAAGN,aAAa,GAAGG,mBAAmB;IACnEJ,YAAY,EAAEO,cAAc,GAAGP,YAAY,GAAGG,kBAAkB;IAChEJ,IAAI,EAAEQ,cAAc,GAAGR,IAAI,GAAGG,cAAc;IAC5CM,SAAS,EAAE;MAAEC,QAAQ,EAAEZ,UAAU;MAAEa,UAAU,EAAEZ;IAAa;EAC9D,CAAC,CAAC;AACJ,CAAC"}
|