@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
|
@@ -3,7 +3,7 @@ import * as TestRenderer from "react-test-renderer";
|
|
|
3
3
|
import type { IOColors } from "../../../core/IOColors";
|
|
4
4
|
import { IOFontWeight } from "../../../utils/fonts";
|
|
5
5
|
import { Body } from "../Body";
|
|
6
|
-
import {
|
|
6
|
+
import { ButtonText } from "../ButtonText";
|
|
7
7
|
import { H1 } from "../H1";
|
|
8
8
|
import { H2 } from "../H2";
|
|
9
9
|
import { H3 } from "../H3";
|
|
@@ -12,8 +12,8 @@ import { H5 } from "../H5";
|
|
|
12
12
|
import { H6 } from "../H6";
|
|
13
13
|
import { Label } from "../Label";
|
|
14
14
|
import { LabelSmall } from "../LabelSmall";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
15
|
+
import { LabelLink } from "../LabelLink";
|
|
16
|
+
import { BodyMonospace } from "../BodyMonospace";
|
|
17
17
|
import { calculateWeightColor } from "../common";
|
|
18
18
|
|
|
19
19
|
describe("Test Typography Components", () => {
|
|
@@ -38,16 +38,12 @@ describe("Test Typography Components", () => {
|
|
|
38
38
|
const h3white = TestRenderer.create(<H3 color={"white"}>Text</H3>).toJSON();
|
|
39
39
|
expect(h3white).toMatchSnapshot();
|
|
40
40
|
const h3whiteBold = TestRenderer.create(
|
|
41
|
-
<H3 color={"white"}
|
|
42
|
-
Text
|
|
43
|
-
</H3>
|
|
41
|
+
<H3 color={"white"}>Text</H3>
|
|
44
42
|
).toJSON();
|
|
45
43
|
expect(h3whiteBold).toMatchSnapshot();
|
|
46
44
|
|
|
47
45
|
// default color when choose only bold
|
|
48
|
-
const h3defaultBold = TestRenderer.create(
|
|
49
|
-
<H3 weight={"Bold"}>Text</H3>
|
|
50
|
-
).toJSON();
|
|
46
|
+
const h3defaultBold = TestRenderer.create(<H3>Text</H3>).toJSON();
|
|
51
47
|
expect(h3defaultBold).toMatchSnapshot();
|
|
52
48
|
});
|
|
53
49
|
it("H4 Snapshot", () => {
|
|
@@ -58,19 +54,6 @@ describe("Test Typography Components", () => {
|
|
|
58
54
|
expect(h4Dblue).toMatchSnapshot();
|
|
59
55
|
const h4white = TestRenderer.create(<H4 color={"white"}>Text</H4>).toJSON();
|
|
60
56
|
expect(h4white).toMatchSnapshot();
|
|
61
|
-
// SemiBold weight
|
|
62
|
-
const h4SemiBoldwhite = TestRenderer.create(
|
|
63
|
-
<H4 weight={"SemiBold"} color={"white"}>
|
|
64
|
-
Text
|
|
65
|
-
</H4>
|
|
66
|
-
).toJSON();
|
|
67
|
-
expect(h4SemiBoldwhite).toMatchSnapshot();
|
|
68
|
-
|
|
69
|
-
// Semibold default color
|
|
70
|
-
const h4SemiBoldDefault = TestRenderer.create(
|
|
71
|
-
<H4 weight={"SemiBold"}>Text</H4>
|
|
72
|
-
).toJSON();
|
|
73
|
-
expect(h4SemiBoldDefault).toMatchSnapshot();
|
|
74
57
|
|
|
75
58
|
// Regular weight
|
|
76
59
|
// with regular weight, default color is bluegreydark
|
|
@@ -116,25 +99,6 @@ describe("Test Typography Components", () => {
|
|
|
116
99
|
<H5 color={"white"}>Text</H5>
|
|
117
100
|
).toJSON();
|
|
118
101
|
expect(h5Defaultwhite).toMatchSnapshot();
|
|
119
|
-
|
|
120
|
-
// Regular weight
|
|
121
|
-
// with regular weight, default color is bluegreydark
|
|
122
|
-
const h5Regular = TestRenderer.create(
|
|
123
|
-
<H5 weight={"Regular"}>Text</H5>
|
|
124
|
-
).toJSON();
|
|
125
|
-
expect(h5Regular).toMatchSnapshot();
|
|
126
|
-
const h5Regularbluegrey = TestRenderer.create(
|
|
127
|
-
<H5 weight={"Regular"} color={"bluegrey"}>
|
|
128
|
-
Text
|
|
129
|
-
</H5>
|
|
130
|
-
).toJSON();
|
|
131
|
-
expect(h5Regularbluegrey).toMatchSnapshot();
|
|
132
|
-
const h5Regularblue = TestRenderer.create(
|
|
133
|
-
<H5 weight={"Regular"} color={"blue"}>
|
|
134
|
-
Text
|
|
135
|
-
</H5>
|
|
136
|
-
).toJSON();
|
|
137
|
-
expect(h5Regularblue).toMatchSnapshot();
|
|
138
102
|
});
|
|
139
103
|
it("H6 Snapshot", () => {
|
|
140
104
|
// SemiBold weight, default
|
|
@@ -146,7 +110,7 @@ describe("Test Typography Components", () => {
|
|
|
146
110
|
expect(bodyDefault).toMatchSnapshot();
|
|
147
111
|
});
|
|
148
112
|
it("CTA Snapshot", () => {
|
|
149
|
-
const cta = TestRenderer.create(<
|
|
113
|
+
const cta = TestRenderer.create(<ButtonText>Text</ButtonText>).toJSON();
|
|
150
114
|
expect(cta).toMatchSnapshot();
|
|
151
115
|
});
|
|
152
116
|
it("LabelSmall Snapshot", () => {
|
|
@@ -177,11 +141,7 @@ describe("Test Typography Components", () => {
|
|
|
177
141
|
|
|
178
142
|
type BodyColors = React.ComponentProps<typeof Label>["color"];
|
|
179
143
|
|
|
180
|
-
const allowedColors: ReadonlyArray<BodyColors> = [
|
|
181
|
-
"blue",
|
|
182
|
-
"bluegrey",
|
|
183
|
-
"white"
|
|
184
|
-
];
|
|
144
|
+
const allowedColors: ReadonlyArray<BodyColors> = ["black"];
|
|
185
145
|
|
|
186
146
|
allowedColors.map(color => {
|
|
187
147
|
const label = TestRenderer.create(
|
|
@@ -191,11 +151,13 @@ describe("Test Typography Components", () => {
|
|
|
191
151
|
});
|
|
192
152
|
});
|
|
193
153
|
it("Link Snapshot", () => {
|
|
194
|
-
const link = TestRenderer.create(<
|
|
154
|
+
const link = TestRenderer.create(<LabelLink>Text</LabelLink>).toJSON();
|
|
195
155
|
expect(link).toMatchSnapshot();
|
|
196
156
|
});
|
|
197
|
-
it("
|
|
198
|
-
const monospace = TestRenderer.create(
|
|
157
|
+
it("BodyMonospace Snapshot", () => {
|
|
158
|
+
const monospace = TestRenderer.create(
|
|
159
|
+
<BodyMonospace>Text</BodyMonospace>
|
|
160
|
+
).toJSON();
|
|
199
161
|
expect(monospace).toMatchSnapshot();
|
|
200
162
|
});
|
|
201
163
|
});
|
|
@@ -4,6 +4,22 @@ import type { IOColors } from "../../core";
|
|
|
4
4
|
import { IOFontWeight } from "../../utils/fonts";
|
|
5
5
|
import { RequiredAll } from "../../utils/types";
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Define the font size values for the typography elements
|
|
9
|
+
*/
|
|
10
|
+
export type FontSize = "regular" | "small" | "mini";
|
|
11
|
+
|
|
12
|
+
export const fontSizeMapping: Record<FontSize, number> = {
|
|
13
|
+
regular: 16,
|
|
14
|
+
small: 14,
|
|
15
|
+
mini: 12
|
|
16
|
+
};
|
|
17
|
+
export const lineHeightMapping: Record<FontSize, number> = {
|
|
18
|
+
regular: 24,
|
|
19
|
+
small: 24,
|
|
20
|
+
mini: 18
|
|
21
|
+
};
|
|
22
|
+
|
|
7
23
|
/**
|
|
8
24
|
* The style exported for the typography elements, without the fields characterizing the font style
|
|
9
25
|
*/
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from "./BaseTypography";
|
|
2
2
|
export * from "./Body";
|
|
3
|
-
export * from "./
|
|
3
|
+
export * from "./Caption";
|
|
4
|
+
export * from "./Chip";
|
|
5
|
+
export * from "./ButtonText";
|
|
4
6
|
export * from "./Factory";
|
|
5
7
|
export * from "./H1";
|
|
6
8
|
export * from "./H2";
|
|
@@ -8,8 +10,9 @@ export * from "./H3";
|
|
|
8
10
|
export * from "./H4";
|
|
9
11
|
export * from "./H5";
|
|
10
12
|
export * from "./H6";
|
|
13
|
+
export * from "./Hero";
|
|
11
14
|
export * from "./Label";
|
|
12
15
|
export * from "./LabelSmall";
|
|
13
|
-
export * from "./
|
|
14
|
-
export * from "./
|
|
16
|
+
export * from "./LabelLink";
|
|
17
|
+
export * from "./BodyMonospace";
|
|
15
18
|
export * from "./common";
|
package/src/core/IOShapes.ts
CHANGED
|
@@ -16,6 +16,6 @@ export const IOAlertRadius: IORadiusScale = IODefaultRadius;
|
|
|
16
16
|
export const IOBannerRadius: IORadiusScale = IODefaultRadius;
|
|
17
17
|
export const IOTagRadius: IORadiusScale = 6;
|
|
18
18
|
export const IOBottomSheetHeaderRadius: IORadiusScale = 24;
|
|
19
|
-
export const
|
|
19
|
+
export const IOModuleIDPRadius: IORadiusScale = IODefaultRadius;
|
|
20
20
|
export const IOBadgeRadius: IORadiusScale = 24;
|
|
21
21
|
export const IOAccordionRadius: IORadiusScale = IODefaultRadius;
|
package/src/core/IOSpacing.ts
CHANGED
|
@@ -40,9 +40,9 @@ export type IOBadgeSpacing = Extract<IOSpacingScale, 4 | 8>;
|
|
|
40
40
|
export const IOBadgeHSpacing: IOBadgeSpacing = 8 as const;
|
|
41
41
|
export const IOBadgeVSpacing: IOBadgeSpacing = 4 as const;
|
|
42
42
|
|
|
43
|
-
// Values used in the `<
|
|
44
|
-
export type
|
|
45
|
-
export const
|
|
46
|
-
export const
|
|
47
|
-
export const
|
|
48
|
-
export const IOListItemLogoMargin:
|
|
43
|
+
// Values used in the `<ModuleIDP>` component
|
|
44
|
+
export type IOModuleIDPSpacing = Extract<IOSpacingScale, 8 | 16 | 24>;
|
|
45
|
+
export const IOModuleIDPHSpacing: IOModuleIDPSpacing = 16 as const;
|
|
46
|
+
export const IOModuleIDPVSpacing: IOModuleIDPSpacing = 16 as const;
|
|
47
|
+
export const IOModuleIDPSavedVSpacing: IOModuleIDPSpacing = 24 as const;
|
|
48
|
+
export const IOListItemLogoMargin: IOModuleIDPSpacing = 8 as const;
|
package/src/core/IOStyles.ts
CHANGED
|
@@ -14,13 +14,15 @@ interface IOVisualCostants {
|
|
|
14
14
|
// Dimensions
|
|
15
15
|
avatarSizeSmall: number;
|
|
16
16
|
avatarSizeMedium: number;
|
|
17
|
+
iconContainedSizeDefault: number;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
export const IOVisualCostants: IOVisualCostants = {
|
|
20
21
|
appMarginDefault: 24,
|
|
21
22
|
headerHeight: 56,
|
|
22
23
|
avatarSizeSmall: 44,
|
|
23
|
-
avatarSizeMedium: 66
|
|
24
|
+
avatarSizeMedium: 66,
|
|
25
|
+
iconContainedSizeDefault: 44
|
|
24
26
|
};
|
|
25
27
|
|
|
26
28
|
export const IOStyles = StyleSheet.create({
|
|
@@ -86,7 +88,6 @@ export const IOStyles = StyleSheet.create({
|
|
|
86
88
|
- Width and height for icon buttons
|
|
87
89
|
*/
|
|
88
90
|
const btnLegacySizeDefault = 40;
|
|
89
|
-
const btnLegacySizeSmall = 39;
|
|
90
91
|
const btnSizeLarge = 56;
|
|
91
92
|
// NEW Design System
|
|
92
93
|
const btnBorderRadius = 8;
|
|
@@ -123,17 +124,11 @@ export const IOButtonLegacyStyles = StyleSheet.create({
|
|
|
123
124
|
labelSizeDefault: {
|
|
124
125
|
fontSize: 16
|
|
125
126
|
},
|
|
126
|
-
labelSizeSmall: {
|
|
127
|
-
fontSize: 14
|
|
128
|
-
},
|
|
129
127
|
/* Heights
|
|
130
128
|
Must be replaced with dynamic values, depending on the
|
|
131
129
|
fontScale parameter */
|
|
132
130
|
buttonSizeDefault: {
|
|
133
131
|
height: btnLegacySizeDefault
|
|
134
|
-
},
|
|
135
|
-
buttonSizeSmall: {
|
|
136
|
-
height: btnLegacySizeSmall
|
|
137
132
|
}
|
|
138
133
|
});
|
|
139
134
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
2
|
|
|
3
3
|
import { Alert } from "react-native";
|
|
4
|
-
import {
|
|
4
|
+
import { LabelLink } from "../components";
|
|
5
5
|
|
|
6
6
|
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
7
7
|
const meta = {
|
|
8
8
|
title: "Example/Link",
|
|
9
|
-
component:
|
|
9
|
+
component: LabelLink,
|
|
10
10
|
parameters: {
|
|
11
11
|
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
12
12
|
layout: "centered",
|
|
13
13
|
actions: { argTypesRegex: "^on.*" }
|
|
14
14
|
},
|
|
15
15
|
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
16
|
-
tags: ["autodocs"]
|
|
17
|
-
} satisfies Meta<typeof
|
|
16
|
+
tags: ["autodocs"]
|
|
17
|
+
} satisfies Meta<typeof LabelLink>;
|
|
18
18
|
|
|
19
19
|
export default meta;
|
|
20
20
|
type Story = StoryObj<typeof meta>;
|
|
@@ -25,4 +25,4 @@ export const Primary: Story = {
|
|
|
25
25
|
onPress: () => Alert.alert("Alert", "Action triggered"),
|
|
26
26
|
children: "Hello World"
|
|
27
27
|
}
|
|
28
|
-
};
|
|
28
|
+
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
2
|
|
|
3
3
|
import { Alert } from "react-native";
|
|
4
|
-
import {
|
|
4
|
+
import { BodyMonospace } from "../components";
|
|
5
5
|
|
|
6
6
|
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
7
7
|
const meta = {
|
|
8
8
|
title: "Example/Monospace",
|
|
9
|
-
component:
|
|
9
|
+
component: BodyMonospace,
|
|
10
10
|
parameters: {
|
|
11
11
|
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
12
12
|
layout: "centered",
|
|
13
13
|
actions: { argTypesRegex: "^on.*" }
|
|
14
14
|
},
|
|
15
15
|
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
16
|
-
tags: ["autodocs"]
|
|
17
|
-
} satisfies Meta<typeof
|
|
16
|
+
tags: ["autodocs"]
|
|
17
|
+
} satisfies Meta<typeof BodyMonospace>;
|
|
18
18
|
|
|
19
19
|
export default meta;
|
|
20
20
|
type Story = StoryObj<typeof meta>;
|
|
@@ -25,4 +25,4 @@ export const Primary: Story = {
|
|
|
25
25
|
onPress: () => Alert.alert("Alert", "Action triggered"),
|
|
26
26
|
children: "Hello World"
|
|
27
27
|
}
|
|
28
|
-
};
|
|
28
|
+
};
|
package/src/utils/fonts.ts
CHANGED
|
@@ -8,10 +8,10 @@ import { Platform } from "react-native";
|
|
|
8
8
|
|
|
9
9
|
export type IOFontFamily = keyof typeof fonts;
|
|
10
10
|
|
|
11
|
-
const weights = ["Light", "Regular", "SemiBold", "Bold"] as const;
|
|
11
|
+
const weights = ["Light", "Regular", "Medium", "SemiBold", "Bold"] as const;
|
|
12
12
|
export type IOFontWeight = (typeof weights)[number];
|
|
13
13
|
|
|
14
|
-
const weightValues = ["300", "400", "600", "700"] as const;
|
|
14
|
+
const weightValues = ["300", "400", "500", "600", "700"] as const;
|
|
15
15
|
export type FontWeightValue = (typeof weightValues)[number];
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -28,10 +28,10 @@ const fonts = {
|
|
|
28
28
|
web: "ReadexPro",
|
|
29
29
|
ios: "Readex Pro"
|
|
30
30
|
}),
|
|
31
|
-
|
|
32
|
-
android: "
|
|
33
|
-
web: "
|
|
34
|
-
ios: "
|
|
31
|
+
DMMono: Platform.select({
|
|
32
|
+
android: "DMMono",
|
|
33
|
+
web: "DMMono",
|
|
34
|
+
ios: "DM Mono"
|
|
35
35
|
})
|
|
36
36
|
};
|
|
37
37
|
|
|
@@ -42,6 +42,7 @@ const fonts = {
|
|
|
42
42
|
export const fontWeights: Record<IOFontWeight, FontWeightValue> = {
|
|
43
43
|
Light: "300",
|
|
44
44
|
Regular: "400",
|
|
45
|
+
Medium: "500",
|
|
45
46
|
SemiBold: "600",
|
|
46
47
|
Bold: "700"
|
|
47
48
|
};
|
|
@@ -56,6 +57,7 @@ export type FontWeight = keyof typeof fontWeights;
|
|
|
56
57
|
export const fontWeightsMap: Record<IOFontWeight, FontWeightValue> = {
|
|
57
58
|
Light: "300",
|
|
58
59
|
Regular: "400",
|
|
60
|
+
Medium: "500",
|
|
59
61
|
SemiBold: "600",
|
|
60
62
|
Bold: "700"
|
|
61
63
|
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_core","_dates","_fonts","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","styles","StyleSheet","create","button","borderWidth","borderColor","IOColors","borderRadius","IOListItemIDPRadius","backgroundColor","white","flexDirection","justifyContent","alignItems","paddingVertical","IOListItemIDPVSpacing","paddingHorizontal","IOListItemIDPHSpacing","idpName","color","fontSize","lineHeight","alignSelf","textTransform","flexShrink","makeFontStyleObject","idpLogo","marginStart","IOListItemLogoMargin","width","height","resizeMode","androidIdpLogoForcedRefreshed","Platform","OS","toAndroidCacheTimestamp","ListItemIDP","_ref","_IOScaleValues$magnif","name","localLogo","logo","saved","onPress","testID","isPressed","useSharedValue","animationScaleValue","IOScaleValues","magnifiedButton","pressedState","scaleTraversed","useDerivedValue","withSpring","value","IOSpringValues","animatedStyle","useAnimatedStyle","scale","interpolate","Extrapolate","CLAMP","transform","handlePressIn","useCallback","handlePressOut","urlLogoIDP","uri","createElement","Pressable","onPressIn","onPressOut","onTouchEnd","accessible","accessibilityRole","accessibilityLabel","View","style","IOListItemIDPSavedVSpacing","Text","Image","source","exports","_default"],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AAK;IACjBC,iBAAiB,EAAE,QAAS;IAC5BC,kBAAkB,EAAEpC,IAAK;IACzBK,MAAM,EAAEA;EAAO,gBAEf1E,KAAA,CAAAkG,aAAA,CAAC9F,sBAAA,CAAAW,OAAQ,CAAC2F,IAAI;IACZC,KAAK,EAAE,CACL7E,MAAM,CAACG,MAAM,EACbuC,KAAK,IAAI;MAAE5B,eAAe,EAAEgE;IAA2B,CAAC,EACxDtB,aAAa;EACb,gBAEFtF,KAAA,CAAAkG,aAAA,CAAC/F,YAAA,CAAA0G,IAAI;IAACF,KAAK,EAAE7E,MAAM,CAACkB;EAAQ,GAAEqB,IAAW,CAAC,eAC1CrE,KAAA,CAAAkG,aAAA,CAAC/F,YAAA,CAAA2G,KAAK;IAACC,MAAM,EAAEf,UAAW;IAACW,KAAK,EAAE7E,MAAM,CAAC0B;EAAQ,CAAE,CACtC,CACN,CAAC;AAEhB,CAAC;AAACwD,OAAA,CAAA9C,WAAA,GAAAA,WAAA;AAAA,IAAA+C,QAAA,GAEa/C,WAAW;AAAA8C,OAAA,CAAAjG,OAAA,GAAAkG,QAAA"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.CTA = void 0;
|
|
7
|
-
var _IOColors = require("../../core/IOColors");
|
|
8
|
-
var _Factory = require("./Factory");
|
|
9
|
-
/* Common typographic styles */
|
|
10
|
-
const ctaFontSize = 16;
|
|
11
|
-
const ctaLineHeight = 20;
|
|
12
|
-
const ctaDefaultColor = _IOColors.IOThemeLight["textBody-default"];
|
|
13
|
-
/* New typographic styles */
|
|
14
|
-
const ctaFontName = "ReadexPro";
|
|
15
|
-
const ctaDefaultWeight = "Regular";
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Typography component to render `CTA` text with font size {@link ctaFontSize} and fontFamily {@link ctaFontName}.
|
|
19
|
-
* default values(if not defined) are weight: {@link ctaDefaultWeight}, color: {@link ctaDefaultColor}
|
|
20
|
-
* @param props
|
|
21
|
-
* @constructor
|
|
22
|
-
*/
|
|
23
|
-
const CTA = props => (0, _Factory.useTypographyFactory)({
|
|
24
|
-
...props,
|
|
25
|
-
defaultWeight: ctaDefaultWeight,
|
|
26
|
-
defaultColor: ctaDefaultColor,
|
|
27
|
-
font: ctaFontName,
|
|
28
|
-
fontStyle: {
|
|
29
|
-
fontSize: ctaFontSize,
|
|
30
|
-
lineHeight: ctaLineHeight
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
exports.CTA = CTA;
|
|
34
|
-
//# sourceMappingURL=CTA.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_IOColors","require","_Factory","ctaFontSize","ctaLineHeight","ctaDefaultColor","IOThemeLight","ctaFontName","ctaDefaultWeight","CTA","props","useTypographyFactory","defaultWeight","defaultColor","font","fontStyle","fontSize","lineHeight","exports"],"sourceRoot":"../../../../src","sources":["components/typography/CTA.tsx"],"mappings":";;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAD,OAAA;AAUA;AACA,MAAME,WAAW,GAAG,EAAE;AACtB,MAAMC,aAAa,GAAG,EAAE;AACxB,MAAMC,eAA8B,GAAGC,sBAAY,CAAC,kBAAkB,CAAC;AACvE;AACA,MAAMC,WAAyB,GAAG,WAAW;AAC7C,MAAMC,gBAA+B,GAAG,SAAS;;AAEjD;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,GAAsC,GAAGC,KAAK,IACzD,IAAAC,6BAAoB,EAA+B;EACjD,GAAGD,KAAK;EACRE,aAAa,EAAEJ,gBAAgB;EAC/BK,YAAY,EAAER,eAAe;EAC7BS,IAAI,EAAEP,WAAW;EACjBQ,SAAS,EAAE;IAAEC,QAAQ,EAAEb,WAAW;IAAEc,UAAU,EAAEb;EAAc;AAChE,CAAC,CAAC;AAACc,OAAA,CAAAT,GAAA,GAAAA,GAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_Factory","require","fontName","fontSizeMapping","regular","small","linkDefaultColor","exports","linkDefaultWeight","Link","props","useTypographyFactory","accessibilityRole","onPress","undefined","defaultWeight","defaultColor","font","fontStyle","fontSize","textDecorationLine"],"sourceRoot":"../../../../src","sources":["components/typography/Link.tsx"],"mappings":";;;;;;AAIA,IAAAA,QAAA,GAAAC,OAAA;AAYA,MAAMC,QAAsB,GAAG,cAAc;AAC7C,MAAMC,eAAyC,GAAG;EAAEC,OAAO,EAAE,EAAE;EAAEC,KAAK,EAAE;AAAG,CAAC;AAErE,MAAMC,gBAA+B,GAAG,YAAY;AAACC,OAAA,CAAAD,gBAAA,GAAAA,gBAAA;AACrD,MAAME,iBAAgC,GAAG,MAAM;;AAEtD;AACA;AACA;AACA;AACA;AACA;AALAD,OAAA,CAAAC,iBAAA,GAAAA,iBAAA;AAMO,MAAMC,IAAuC,GAAGC,KAAK,IAC1D,IAAAC,6BAAoB,EAA+B;EACjDC,iBAAiB,EAAEF,KAAK,CAACG,OAAO,GAAG,MAAM,GAAGC,SAAS;EACrD,GAAGJ,KAAK;EACRK,aAAa,EAAEP,iBAAiB;EAChCQ,YAAY,EAAEV,gBAAgB;EAC9BW,IAAI,EAAEf,QAAQ;EACdgB,SAAS,EAAE;IACTC,QAAQ,EAAET,KAAK,CAACS,QAAQ,GACpBhB,eAAe,CAACO,KAAK,CAACS,QAAQ,CAAC,GAC/BhB,eAAe,CAACC,OAAO;IAC3BgB,kBAAkB,EAAE;EACtB;AACF,CAAC,CAAC;AAACb,OAAA,CAAAE,IAAA,GAAAA,IAAA"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Monospace = void 0;
|
|
7
|
-
var _Factory = require("./Factory");
|
|
8
|
-
/**
|
|
9
|
-
* Typography component to render `Monospace` text with font size {@link fontSize} and fontFamily {@link fontName}.
|
|
10
|
-
* default values(if not defined) are weight: `Regular`, color: `bluegrey`
|
|
11
|
-
* @param props`
|
|
12
|
-
* @constructor
|
|
13
|
-
*/
|
|
14
|
-
const Monospace = props => {
|
|
15
|
-
const fontName = "RobotoMono";
|
|
16
|
-
const fontSize = 16;
|
|
17
|
-
const monospaceDefaultWeight = "Regular";
|
|
18
|
-
const monospaceDefaultcolor = "bluegrey";
|
|
19
|
-
return (0, _Factory.useTypographyFactory)({
|
|
20
|
-
...props,
|
|
21
|
-
defaultWeight: monospaceDefaultWeight,
|
|
22
|
-
defaultColor: monospaceDefaultcolor,
|
|
23
|
-
font: fontName,
|
|
24
|
-
fontStyle: {
|
|
25
|
-
fontSize
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
exports.Monospace = Monospace;
|
|
30
|
-
//# sourceMappingURL=Monospace.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_Factory","require","Monospace","props","fontName","fontSize","monospaceDefaultWeight","monospaceDefaultcolor","useTypographyFactory","defaultWeight","defaultColor","font","fontStyle","exports"],"sourceRoot":"../../../../src","sources":["components/typography/Monospace.tsx"],"mappings":";;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AAUA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,SAA6B,GAAGC,KAAK,IAAI;EACpD,MAAMC,QAAoB,GAAG,YAAY;EACzC,MAAMC,QAAQ,GAAG,EAAE;EAEnB,MAAMC,sBAAsB,GAAG,SAAS;EACxC,MAAMC,qBAAqB,GAAG,UAAU;EAExC,OAAO,IAAAC,6BAAoB,EAA+B;IACxD,GAAGL,KAAK;IACRM,aAAa,EAAEH,sBAAsB;IACrCI,YAAY,EAAEH,qBAAqB;IACnCI,IAAI,EAAEP,QAAQ;IACdQ,SAAS,EAAE;MAAEP;IAAS;EACxB,CAAC,CAAC;AACJ,CAAC;AAACQ,OAAA,CAAAX,SAAA,GAAAA,SAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","Image","Platform","Pressable","StyleSheet","Text","Animated","Extrapolate","interpolate","useAnimatedStyle","useDerivedValue","useSharedValue","withSpring","IOColors","IOListItemIDPHSpacing","IOListItemIDPRadius","IOListItemIDPSavedVSpacing","IOListItemIDPVSpacing","IOListItemLogoMargin","IOScaleValues","IOSpringValues","toAndroidCacheTimestamp","makeFontStyleObject","styles","create","button","borderWidth","borderColor","borderRadius","backgroundColor","white","flexDirection","justifyContent","alignItems","paddingVertical","paddingHorizontal","idpName","color","fontSize","lineHeight","alignSelf","textTransform","flexShrink","idpLogo","marginStart","width","height","resizeMode","androidIdpLogoForcedRefreshed","OS","ListItemIDP","_ref","_IOScaleValues$magnif","name","localLogo","logo","saved","onPress","testID","isPressed","animationScaleValue","magnifiedButton","pressedState","scaleTraversed","value","animatedStyle","scale","CLAMP","transform","handlePressIn","handlePressOut","urlLogoIDP","uri","createElement","onPressIn","onPressOut","onTouchEnd","accessible","accessibilityRole","accessibilityLabel","View","style","source"],"sourceRoot":"../../../../src","sources":["components/listitems/ListItemIDP.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,QAAQ,OAAO;AACnC,SAEEC,KAAK,EAELC,QAAQ,EACRC,SAAS,EACTC,UAAU,EACVC,IAAI,QACC,cAAc;AACrB,OAAOC,QAAQ,IACbC,WAAW,EACXC,WAAW,EACXC,gBAAgB,EAChBC,eAAe,EACfC,cAAc,EACdC,UAAU,QACL,yBAAyB;AAChC,SACEC,QAAQ,EACRC,qBAAqB,EACrBC,mBAAmB,EACnBC,0BAA0B,EAC1BC,qBAAqB,EACrBC,oBAAoB,EACpBC,aAAa,EACbC,cAAc,QACT,YAAY;AACnB,SAASC,uBAAuB,QAAQ,mBAAmB;AAC3D,SAASC,mBAAmB,QAAQ,mBA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AACE,MAAM,EACb+B,KAAK,IAAI;MAAEtB,eAAe,EAAElB;IAA2B,CAAC,EACxDiD,aAAa;EACb,gBAEFlE,KAAA,CAAA0E,aAAA,CAACpE,IAAI;IAAC4E,KAAK,EAAE1D,MAAM,CAACa;EAAQ,GAAEiB,IAAW,CAAC,eAC1CtD,KAAA,CAAA0E,aAAA,CAACxE,KAAK;IAACiF,MAAM,EAAEX,UAAW;IAACU,KAAK,EAAE1D,MAAM,CAACoB;EAAQ,CAAE,CACtC,CACN,CAAC;AAEhB,CAAC;AAED,eAAeO,WAAW"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { IOThemeLight } from "../../core/IOColors";
|
|
2
|
-
import { useTypographyFactory } from "./Factory";
|
|
3
|
-
/* Common typographic styles */
|
|
4
|
-
const ctaFontSize = 16;
|
|
5
|
-
const ctaLineHeight = 20;
|
|
6
|
-
const ctaDefaultColor = IOThemeLight["textBody-default"];
|
|
7
|
-
/* New typographic styles */
|
|
8
|
-
const ctaFontName = "ReadexPro";
|
|
9
|
-
const ctaDefaultWeight = "Regular";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Typography component to render `CTA` text with font size {@link ctaFontSize} and fontFamily {@link ctaFontName}.
|
|
13
|
-
* default values(if not defined) are weight: {@link ctaDefaultWeight}, color: {@link ctaDefaultColor}
|
|
14
|
-
* @param props
|
|
15
|
-
* @constructor
|
|
16
|
-
*/
|
|
17
|
-
export const CTA = props => useTypographyFactory({
|
|
18
|
-
...props,
|
|
19
|
-
defaultWeight: ctaDefaultWeight,
|
|
20
|
-
defaultColor: ctaDefaultColor,
|
|
21
|
-
font: ctaFontName,
|
|
22
|
-
fontStyle: {
|
|
23
|
-
fontSize: ctaFontSize,
|
|
24
|
-
lineHeight: ctaLineHeight
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
//# sourceMappingURL=CTA.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["IOThemeLight","useTypographyFactory","ctaFontSize","ctaLineHeight","ctaDefaultColor","ctaFontName","ctaDefaultWeight","CTA","props","defaultWeight","defaultColor","font","fontStyle","fontSize","lineHeight"],"sourceRoot":"../../../../src","sources":["components/typography/CTA.tsx"],"mappings":"AACA,SAAkBA,YAAY,QAAQ,qBAAqB;AAE3D,SAASC,oBAAoB,QAAQ,WAAW;AAUhD;AACA,MAAMC,WAAW,GAAG,EAAE;AACtB,MAAMC,aAAa,GAAG,EAAE;AACxB,MAAMC,eAA8B,GAAGJ,YAAY,CAAC,kBAAkB,CAAC;AACvE;AACA,MAAMK,WAAyB,GAAG,WAAW;AAC7C,MAAMC,gBAA+B,GAAG,SAAS;;AAEjD;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,GAAsC,GAAGC,KAAK,IACzDP,oBAAoB,CAA+B;EACjD,GAAGO,KAAK;EACRC,aAAa,EAAEH,gBAAgB;EAC/BI,YAAY,EAAEN,eAAe;EAC7BO,IAAI,EAAEN,WAAW;EACjBO,SAAS,EAAE;IAAEC,QAAQ,EAAEX,WAAW;IAAEY,UAAU,EAAEX;EAAc;AAChE,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useTypographyFactory","fontName","fontSizeMapping","regular","small","linkDefaultColor","linkDefaultWeight","Link","props","accessibilityRole","onPress","undefined","defaultWeight","defaultColor","font","fontStyle","fontSize","textDecorationLine"],"sourceRoot":"../../../../src","sources":["components/typography/Link.tsx"],"mappings":"AAIA,SAASA,oBAAoB,QAAQ,WAAW;AAYhD,MAAMC,QAAsB,GAAG,cAAc;AAC7C,MAAMC,eAAyC,GAAG;EAAEC,OAAO,EAAE,EAAE;EAAEC,KAAK,EAAE;AAAG,CAAC;AAE5E,OAAO,MAAMC,gBAA+B,GAAG,YAAY;AAC3D,OAAO,MAAMC,iBAAgC,GAAG,MAAM;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,IAAuC,GAAGC,KAAK,IAC1DR,oBAAoB,CAA+B;EACjDS,iBAAiB,EAAED,KAAK,CAACE,OAAO,GAAG,MAAM,GAAGC,SAAS;EACrD,GAAGH,KAAK;EACRI,aAAa,EAAEN,iBAAiB;EAChCO,YAAY,EAAER,gBAAgB;EAC9BS,IAAI,EAAEb,QAAQ;EACdc,SAAS,EAAE;IACTC,QAAQ,EAAER,KAAK,CAACQ,QAAQ,GACpBd,eAAe,CAACM,KAAK,CAACQ,QAAQ,CAAC,GAC/Bd,eAAe,CAACC,OAAO;IAC3Bc,kBAAkB,EAAE;EACtB;AACF,CAAC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { useTypographyFactory } from "./Factory";
|
|
2
|
-
/**
|
|
3
|
-
* Typography component to render `Monospace` text with font size {@link fontSize} and fontFamily {@link fontName}.
|
|
4
|
-
* default values(if not defined) are weight: `Regular`, color: `bluegrey`
|
|
5
|
-
* @param props`
|
|
6
|
-
* @constructor
|
|
7
|
-
*/
|
|
8
|
-
export const Monospace = props => {
|
|
9
|
-
const fontName = "RobotoMono";
|
|
10
|
-
const fontSize = 16;
|
|
11
|
-
const monospaceDefaultWeight = "Regular";
|
|
12
|
-
const monospaceDefaultcolor = "bluegrey";
|
|
13
|
-
return useTypographyFactory({
|
|
14
|
-
...props,
|
|
15
|
-
defaultWeight: monospaceDefaultWeight,
|
|
16
|
-
defaultColor: monospaceDefaultcolor,
|
|
17
|
-
font: fontName,
|
|
18
|
-
fontStyle: {
|
|
19
|
-
fontSize
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=Monospace.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useTypographyFactory","Monospace","props","fontName","fontSize","monospaceDefaultWeight","monospaceDefaultcolor","defaultWeight","defaultColor","font","fontStyle"],"sourceRoot":"../../../../src","sources":["components/typography/Monospace.tsx"],"mappings":"AAGA,SAASA,oBAAoB,QAAQ,WAAW;AAUhD;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,SAA6B,GAAGC,KAAK,IAAI;EACpD,MAAMC,QAAoB,GAAG,YAAY;EACzC,MAAMC,QAAQ,GAAG,EAAE;EAEnB,MAAMC,sBAAsB,GAAG,SAAS;EACxC,MAAMC,qBAAqB,GAAG,UAAU;EAExC,OAAON,oBAAoB,CAA+B;IACxD,GAAGE,KAAK;IACRK,aAAa,EAAEF,sBAAsB;IACrCG,YAAY,EAAEF,qBAAqB;IACnCG,IAAI,EAAEN,QAAQ;IACdO,SAAS,EAAE;MAAEN;IAAS;EACxB,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemIDP.d.ts","sourceRoot":"","sources":["../../../../src/components/listitems/ListItemIDP.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,qBAAqB,EAErB,mBAAmB,EAKpB,MAAM,cAAc,CAAC;AAqBtB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,KAAK,WAAW,GAAG,UAAU,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,mBAAmB,CAAC;IAC/B,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAChD,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAqCH,eAAO,MAAM,WAAW,sDAOrB,WAAW,sBA8Db,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { IOTheme } from "../../core/IOColors";
|
|
3
|
-
import { IOFontWeight } from "../../utils/fonts";
|
|
4
|
-
import { ExternalTypographyProps, TypographyProps } from "./common";
|
|
5
|
-
type AllowedColors = IOTheme["textBody-default"] | "blueIO-850";
|
|
6
|
-
type AllowedWeight = Extract<IOFontWeight, "SemiBold" | "Regular">;
|
|
7
|
-
type OwnProps = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
|
|
8
|
-
/**
|
|
9
|
-
* Typography component to render `CTA` text with font size {@link ctaFontSize} and fontFamily {@link ctaFontName}.
|
|
10
|
-
* default values(if not defined) are weight: {@link ctaDefaultWeight}, color: {@link ctaDefaultColor}
|
|
11
|
-
* @param props
|
|
12
|
-
* @constructor
|
|
13
|
-
*/
|
|
14
|
-
export declare const CTA: React.FunctionComponent<OwnProps>;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=CTA.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CTA.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/CTA.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAgB,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAgB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEpE,KAAK,aAAa,GAAG,OAAO,CAAC,kBAAkB,CAAC,GAAG,YAAY,CAAC;AAChE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAEnE,KAAK,QAAQ,GAAG,uBAAuB,CACrC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,CAAC;AAUF;;;;;GAKG;AACH,eAAO,MAAM,GAAG,EAAE,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAO9C,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { IOFontWeight } from "../../utils/fonts";
|
|
3
|
-
import type { IOColors } from "../../core";
|
|
4
|
-
import { ExternalTypographyProps, TypographyProps } from "./common";
|
|
5
|
-
type AllowedColors = IOColors;
|
|
6
|
-
type AllowedWeight = Extract<IOFontWeight, "SemiBold" | "Bold">;
|
|
7
|
-
type FontSize = "regular" | "small";
|
|
8
|
-
type AllowedFontSize = {
|
|
9
|
-
fontSize?: FontSize;
|
|
10
|
-
};
|
|
11
|
-
type OwnProps = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>> & AllowedFontSize;
|
|
12
|
-
export declare const linkDefaultColor: AllowedColors;
|
|
13
|
-
export declare const linkDefaultWeight: AllowedWeight;
|
|
14
|
-
/**
|
|
15
|
-
* Typography component to render `Link` text with font size {@link fontSize} and fontFamily {@link fontName}.
|
|
16
|
-
* default values(if not defined) are weight: `SemiBold`, color: `blue`
|
|
17
|
-
* @param props`
|
|
18
|
-
* @constructor
|
|
19
|
-
*/
|
|
20
|
-
export declare const Link: React.FunctionComponent<OwnProps>;
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=Link.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAgB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAGpE,KAAK,aAAa,GAAG,QAAQ,CAAC;AAC9B,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,UAAU,GAAG,MAAM,CAAC,CAAC;AAChE,KAAK,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;AACpC,KAAK,eAAe,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;AAE/C,KAAK,QAAQ,GAAG,uBAAuB,CACrC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,GACC,eAAe,CAAC;AAKlB,eAAO,MAAM,gBAAgB,EAAE,aAA4B,CAAC;AAC5D,eAAO,MAAM,iBAAiB,EAAE,aAAsB,CAAC;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAa/C,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { IOColors } from "../../core/IOColors";
|
|
3
|
-
import { IOFontWeight } from "../../utils/fonts";
|
|
4
|
-
import { ExternalTypographyProps, TypographyProps } from "./common";
|
|
5
|
-
type AllowedColors = Extract<IOColors, "bluegreyDark" | "bluegrey">;
|
|
6
|
-
type AllowedWeight = Extract<IOFontWeight, "Regular" | "SemiBold" | "Bold">;
|
|
7
|
-
type OwnProps = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
|
|
8
|
-
/**
|
|
9
|
-
* Typography component to render `Monospace` text with font size {@link fontSize} and fontFamily {@link fontName}.
|
|
10
|
-
* default values(if not defined) are weight: `Regular`, color: `bluegrey`
|
|
11
|
-
* @param props`
|
|
12
|
-
* @constructor
|
|
13
|
-
*/
|
|
14
|
-
export declare const Monospace: React.FC<OwnProps>;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=Monospace.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Monospace.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/Monospace.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEpE,KAAK,aAAa,GAAG,OAAO,CAAC,QAAQ,EAAE,cAAc,GAAG,UAAU,CAAC,CAAC;AACpE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC,CAAC;AAE5E,KAAK,QAAQ,GAAG,uBAAuB,CACrC,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAcxC,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { IOTheme, IOThemeLight } from "../../core/IOColors";
|
|
3
|
-
import { IOFontFamily, IOFontWeight } from "../../utils/fonts";
|
|
4
|
-
import { useTypographyFactory } from "./Factory";
|
|
5
|
-
import { ExternalTypographyProps, TypographyProps } from "./common";
|
|
6
|
-
|
|
7
|
-
type AllowedColors = IOTheme["textBody-default"] | "blueIO-850";
|
|
8
|
-
type AllowedWeight = Extract<IOFontWeight, "SemiBold" | "Regular">;
|
|
9
|
-
|
|
10
|
-
type OwnProps = ExternalTypographyProps<
|
|
11
|
-
TypographyProps<AllowedWeight, AllowedColors>
|
|
12
|
-
>;
|
|
13
|
-
|
|
14
|
-
/* Common typographic styles */
|
|
15
|
-
const ctaFontSize = 16;
|
|
16
|
-
const ctaLineHeight = 20;
|
|
17
|
-
const ctaDefaultColor: AllowedColors = IOThemeLight["textBody-default"];
|
|
18
|
-
/* New typographic styles */
|
|
19
|
-
const ctaFontName: IOFontFamily = "ReadexPro";
|
|
20
|
-
const ctaDefaultWeight: AllowedWeight = "Regular";
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Typography component to render `CTA` text with font size {@link ctaFontSize} and fontFamily {@link ctaFontName}.
|
|
24
|
-
* default values(if not defined) are weight: {@link ctaDefaultWeight}, color: {@link ctaDefaultColor}
|
|
25
|
-
* @param props
|
|
26
|
-
* @constructor
|
|
27
|
-
*/
|
|
28
|
-
export const CTA: React.FunctionComponent<OwnProps> = props =>
|
|
29
|
-
useTypographyFactory<AllowedWeight, AllowedColors>({
|
|
30
|
-
...props,
|
|
31
|
-
defaultWeight: ctaDefaultWeight,
|
|
32
|
-
defaultColor: ctaDefaultColor,
|
|
33
|
-
font: ctaFontName,
|
|
34
|
-
fontStyle: { fontSize: ctaFontSize, lineHeight: ctaLineHeight }
|
|
35
|
-
});
|