@pagopa/io-app-design-system 1.16.1 → 1.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +131 -54
- package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +4 -4
- package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +4 -4
- package/lib/commonjs/components/checkbox/AnimatedCheckbox.js +6 -2
- package/lib/commonjs/components/checkbox/AnimatedCheckbox.js.map +1 -1
- package/lib/commonjs/components/codeInput/CodeInput.js +107 -0
- package/lib/commonjs/components/codeInput/CodeInput.js.map +1 -0
- package/lib/commonjs/components/codeInput/index.js +17 -0
- package/lib/commonjs/components/codeInput/index.js.map +1 -0
- package/lib/commonjs/components/icons/Icon.js +2 -0
- package/lib/commonjs/components/icons/Icon.js.map +1 -1
- package/lib/commonjs/components/icons/README.md +79 -19
- package/lib/commonjs/components/icons/svg/IconSparkles.js +30 -0
- package/lib/commonjs/components/icons/svg/IconSparkles.js.map +1 -0
- package/lib/commonjs/components/icons/svg/originals/IconSparkles.svg +3 -0
- package/lib/commonjs/components/index.js +48 -26
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/layout/HeaderSecondLevel.js +5 -4
- package/lib/commonjs/components/layout/HeaderSecondLevel.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemAction.js +4 -3
- package/lib/commonjs/components/listitems/ListItemAction.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemHeader.js +87 -0
- package/lib/commonjs/components/listitems/ListItemHeader.js.map +1 -0
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js +5 -30
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNav.js +15 -23
- package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNavAlert.js +4 -22
- package/lib/commonjs/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemRadio.js +69 -10
- package/lib/commonjs/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js +64 -0
- package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js.map +1 -0
- package/lib/commonjs/components/listitems/ListItemTransaction.js +8 -5
- package/lib/commonjs/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +684 -34
- package/lib/commonjs/components/listitems/__test__/listitem.test.js +17 -0
- package/lib/commonjs/components/listitems/__test__/listitem.test.js.map +1 -1
- package/lib/commonjs/components/listitems/index.js +22 -0
- package/lib/commonjs/components/listitems/index.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleCheckout.js +103 -0
- package/lib/commonjs/components/modules/ModuleCheckout.js.map +1 -0
- package/lib/commonjs/components/modules/index.js +11 -0
- package/lib/commonjs/components/modules/index.js.map +1 -1
- package/lib/commonjs/components/numberpad/NumberButton.js +1 -16
- package/lib/commonjs/components/numberpad/NumberButton.js.map +1 -1
- package/lib/commonjs/components/numberpad/NumberPad.js +10 -12
- package/lib/commonjs/components/numberpad/NumberPad.js.map +1 -1
- package/lib/commonjs/components/pictograms/Pictogram.js +19 -1
- package/lib/commonjs/components/pictograms/Pictogram.js.map +1 -1
- package/lib/commonjs/components/pictograms/README.md +103 -14
- package/lib/commonjs/components/pictograms/svg/PictogramBiometric.js +82 -0
- package/lib/commonjs/components/pictograms/svg/PictogramBiometric.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/PictogramBleedEnded.js +43 -0
- package/lib/commonjs/components/pictograms/svg/PictogramBleedEnded.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/PictogramBleedLostConnection.js +64 -0
- package/lib/commonjs/components/pictograms/svg/PictogramBleedLostConnection.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/PictogramBleedPending.js +15 -9
- package/lib/commonjs/components/pictograms/svg/PictogramBleedPending.js.map +1 -1
- package/lib/commonjs/components/pictograms/svg/PictogramBleedQrCode.js +79 -0
- package/lib/commonjs/components/pictograms/svg/PictogramBleedQrCode.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/PictogramEmailDotCheck.js +60 -0
- package/lib/commonjs/components/pictograms/svg/PictogramEmailDotCheck.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/PictogramEmailDotNotif.js +58 -0
- package/lib/commonjs/components/pictograms/svg/PictogramEmailDotNotif.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/PictogramEnded.js +43 -0
- package/lib/commonjs/components/pictograms/svg/PictogramEnded.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/PictogramLostConnection.js +58 -0
- package/lib/commonjs/components/pictograms/svg/PictogramLostConnection.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/PictogramPending.js +15 -9
- package/lib/commonjs/components/pictograms/svg/PictogramPending.js.map +1 -1
- package/lib/commonjs/components/pictograms/svg/PictogramQrCode.js +91 -0
- package/lib/commonjs/components/pictograms/svg/PictogramQrCode.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramBiometric.svg +1 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedEnded.svg +1 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedLostConnection.svg +1 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedPending.svg +1 -1
- package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedQrCode.svg +1 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramEmailDotCheck.svg +41 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramEmailDotNotif.svg +35 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramEnded.svg +1 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramLostConnection.svg +1 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramPending.svg +1 -1
- package/lib/commonjs/components/pictograms/svg/originals/PictogramQrCode.svg +1 -0
- package/lib/commonjs/components/radio/RadioGroup.js +2 -1
- package/lib/commonjs/components/radio/RadioGroup.js.map +1 -1
- package/lib/commonjs/components/stepper/Stepper.js +52 -0
- package/lib/commonjs/components/stepper/Stepper.js.map +1 -0
- package/lib/commonjs/components/stepper/index.js +17 -0
- package/lib/commonjs/components/stepper/index.js.map +1 -0
- package/lib/commonjs/components/textInput/TextInputBase.js +1 -0
- package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
- package/lib/commonjs/components/toast/ToastProvider.js +17 -16
- package/lib/commonjs/components/toast/ToastProvider.js.map +1 -1
- package/lib/commonjs/components/typography/H1.js +5 -3
- package/lib/commonjs/components/typography/H1.js.map +1 -1
- package/lib/commonjs/components/typography/H2.js +5 -3
- package/lib/commonjs/components/typography/H2.js.map +1 -1
- package/lib/commonjs/components/typography/H3.js +5 -3
- package/lib/commonjs/components/typography/H3.js.map +1 -1
- package/lib/commonjs/components/typography/H4.js +2 -1
- package/lib/commonjs/components/typography/H4.js.map +1 -1
- package/lib/commonjs/components/typography/H6.js +4 -2
- package/lib/commonjs/components/typography/H6.js.map +1 -1
- package/lib/commonjs/components/typography/Hero.js +7 -3
- package/lib/commonjs/components/typography/Hero.js.map +1 -1
- package/lib/commonjs/components/typography/LabelSmall.js +6 -1
- package/lib/commonjs/components/typography/LabelSmall.js.map +1 -1
- package/lib/commonjs/components/typography/LabelSmallAlt.js +39 -0
- package/lib/commonjs/components/typography/LabelSmallAlt.js.map +1 -0
- package/lib/commonjs/components/typography/README.md +23 -0
- package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +84 -74
- package/lib/commonjs/components/typography/index.js +11 -0
- package/lib/commonjs/components/typography/index.js.map +1 -1
- package/lib/commonjs/core/IOSpacing.js +1 -1
- package/lib/commonjs/core/IOSpacing.js.map +1 -1
- package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +4 -4
- package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +4 -4
- package/lib/module/components/checkbox/AnimatedCheckbox.js +6 -2
- package/lib/module/components/checkbox/AnimatedCheckbox.js.map +1 -1
- package/lib/module/components/codeInput/CodeInput.js +98 -0
- package/lib/module/components/codeInput/CodeInput.js.map +1 -0
- package/lib/module/components/codeInput/index.js +2 -0
- package/lib/module/components/codeInput/index.js.map +1 -0
- package/lib/module/components/icons/Icon.js +2 -0
- package/lib/module/components/icons/Icon.js.map +1 -1
- package/lib/module/components/icons/README.md +79 -19
- package/lib/module/components/icons/svg/IconSparkles.js +21 -0
- package/lib/module/components/icons/svg/IconSparkles.js.map +1 -0
- package/lib/module/components/icons/svg/originals/IconSparkles.svg +3 -0
- package/lib/module/components/index.js +5 -3
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/HeaderSecondLevel.js +5 -4
- package/lib/module/components/layout/HeaderSecondLevel.js.map +1 -1
- package/lib/module/components/listitems/ListItemAction.js +4 -3
- package/lib/module/components/listitems/ListItemAction.js.map +1 -1
- package/lib/module/components/listitems/ListItemHeader.js +77 -0
- package/lib/module/components/listitems/ListItemHeader.js.map +1 -0
- package/lib/module/components/listitems/ListItemInfoCopy.js +7 -32
- package/lib/module/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/module/components/listitems/ListItemNav.js +17 -26
- package/lib/module/components/listitems/ListItemNav.js.map +1 -1
- package/lib/module/components/listitems/ListItemNavAlert.js +6 -24
- package/lib/module/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/module/components/listitems/ListItemRadio.js +69 -10
- package/lib/module/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/module/components/listitems/ListItemRadioWithAmount.js +54 -0
- package/lib/module/components/listitems/ListItemRadioWithAmount.js.map +1 -0
- package/lib/module/components/listitems/ListItemTransaction.js +10 -7
- package/lib/module/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +684 -34
- package/lib/module/components/listitems/__test__/listitem.test.js +17 -0
- package/lib/module/components/listitems/__test__/listitem.test.js.map +1 -1
- package/lib/module/components/listitems/index.js +2 -0
- package/lib/module/components/listitems/index.js.map +1 -1
- package/lib/module/components/modules/ModuleCheckout.js +95 -0
- package/lib/module/components/modules/ModuleCheckout.js.map +1 -0
- package/lib/module/components/modules/index.js +1 -0
- package/lib/module/components/modules/index.js.map +1 -1
- package/lib/module/components/numberpad/NumberButton.js +2 -17
- package/lib/module/components/numberpad/NumberButton.js.map +1 -1
- package/lib/module/components/numberpad/NumberPad.js +9 -9
- package/lib/module/components/numberpad/NumberPad.js.map +1 -1
- package/lib/module/components/pictograms/Pictogram.js +19 -1
- package/lib/module/components/pictograms/Pictogram.js.map +1 -1
- package/lib/module/components/pictograms/README.md +103 -14
- package/lib/module/components/pictograms/svg/PictogramBiometric.js +74 -0
- package/lib/module/components/pictograms/svg/PictogramBiometric.js.map +1 -0
- package/lib/module/components/pictograms/svg/PictogramBleedEnded.js +35 -0
- package/lib/module/components/pictograms/svg/PictogramBleedEnded.js.map +1 -0
- package/lib/module/components/pictograms/svg/PictogramBleedLostConnection.js +56 -0
- package/lib/module/components/pictograms/svg/PictogramBleedLostConnection.js.map +1 -0
- package/lib/module/components/pictograms/svg/PictogramBleedPending.js +15 -9
- package/lib/module/components/pictograms/svg/PictogramBleedPending.js.map +1 -1
- package/lib/module/components/pictograms/svg/PictogramBleedQrCode.js +71 -0
- package/lib/module/components/pictograms/svg/PictogramBleedQrCode.js.map +1 -0
- package/lib/module/components/pictograms/svg/PictogramEmailDotCheck.js +52 -0
- package/lib/module/components/pictograms/svg/PictogramEmailDotCheck.js.map +1 -0
- package/lib/module/components/pictograms/svg/PictogramEmailDotNotif.js +50 -0
- package/lib/module/components/pictograms/svg/PictogramEmailDotNotif.js.map +1 -0
- package/lib/module/components/pictograms/svg/PictogramEnded.js +35 -0
- package/lib/module/components/pictograms/svg/PictogramEnded.js.map +1 -0
- package/lib/module/components/pictograms/svg/PictogramLostConnection.js +50 -0
- package/lib/module/components/pictograms/svg/PictogramLostConnection.js.map +1 -0
- package/lib/module/components/pictograms/svg/PictogramPending.js +15 -9
- package/lib/module/components/pictograms/svg/PictogramPending.js.map +1 -1
- package/lib/module/components/pictograms/svg/PictogramQrCode.js +83 -0
- package/lib/module/components/pictograms/svg/PictogramQrCode.js.map +1 -0
- package/lib/module/components/pictograms/svg/originals/PictogramBiometric.svg +1 -0
- package/lib/module/components/pictograms/svg/originals/PictogramBleedEnded.svg +1 -0
- package/lib/module/components/pictograms/svg/originals/PictogramBleedLostConnection.svg +1 -0
- package/lib/module/components/pictograms/svg/originals/PictogramBleedPending.svg +1 -1
- package/lib/module/components/pictograms/svg/originals/PictogramBleedQrCode.svg +1 -0
- package/lib/module/components/pictograms/svg/originals/PictogramEmailDotCheck.svg +41 -0
- package/lib/module/components/pictograms/svg/originals/PictogramEmailDotNotif.svg +35 -0
- package/lib/module/components/pictograms/svg/originals/PictogramEnded.svg +1 -0
- package/lib/module/components/pictograms/svg/originals/PictogramLostConnection.svg +1 -0
- package/lib/module/components/pictograms/svg/originals/PictogramPending.svg +1 -1
- package/lib/module/components/pictograms/svg/originals/PictogramQrCode.svg +1 -0
- package/lib/module/components/radio/RadioGroup.js +2 -1
- package/lib/module/components/radio/RadioGroup.js.map +1 -1
- package/lib/module/components/stepper/Stepper.js +43 -0
- package/lib/module/components/stepper/Stepper.js.map +1 -0
- package/lib/module/components/stepper/index.js +2 -0
- package/lib/module/components/stepper/index.js.map +1 -0
- package/lib/module/components/textInput/TextInputBase.js +1 -0
- package/lib/module/components/textInput/TextInputBase.js.map +1 -1
- package/lib/module/components/toast/ToastProvider.js +17 -16
- package/lib/module/components/toast/ToastProvider.js.map +1 -1
- package/lib/module/components/typography/H1.js +5 -3
- package/lib/module/components/typography/H1.js.map +1 -1
- package/lib/module/components/typography/H2.js +5 -3
- package/lib/module/components/typography/H2.js.map +1 -1
- package/lib/module/components/typography/H3.js +5 -3
- package/lib/module/components/typography/H3.js.map +1 -1
- package/lib/module/components/typography/H4.js +2 -1
- package/lib/module/components/typography/H4.js.map +1 -1
- package/lib/module/components/typography/H6.js +4 -2
- package/lib/module/components/typography/H6.js.map +1 -1
- package/lib/module/components/typography/Hero.js +7 -3
- package/lib/module/components/typography/Hero.js.map +1 -1
- package/lib/module/components/typography/LabelSmall.js +6 -1
- package/lib/module/components/typography/LabelSmall.js.map +1 -1
- package/lib/module/components/typography/LabelSmallAlt.js +32 -0
- package/lib/module/components/typography/LabelSmallAlt.js.map +1 -0
- package/lib/module/components/typography/README.md +23 -0
- package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +84 -74
- package/lib/module/components/typography/index.js +1 -0
- package/lib/module/components/typography/index.js.map +1 -1
- package/lib/module/core/IOSpacing.js +1 -1
- package/lib/module/core/IOSpacing.js.map +1 -1
- package/lib/typescript/components/checkbox/AnimatedCheckbox.d.ts.map +1 -1
- package/lib/typescript/components/codeInput/CodeInput.d.ts +11 -0
- package/lib/typescript/components/codeInput/CodeInput.d.ts.map +1 -0
- package/lib/typescript/components/codeInput/index.d.ts +2 -0
- package/lib/typescript/components/codeInput/index.d.ts.map +1 -0
- package/lib/typescript/components/icons/Icon.d.ts +1 -0
- package/lib/typescript/components/icons/Icon.d.ts.map +1 -1
- package/lib/typescript/components/icons/svg/IconSparkles.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconSparkles.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +5 -3
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/layout/HeaderSecondLevel.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemAction.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemHeader.d.ts +34 -0
- package/lib/typescript/components/listitems/ListItemHeader.d.ts.map +1 -0
- package/lib/typescript/components/listitems/ListItemInfoCopy.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemNav.d.ts +4 -1
- package/lib/typescript/components/listitems/ListItemNav.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemNavAlert.d.ts +2 -2
- package/lib/typescript/components/listitems/ListItemNavAlert.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemRadio.d.ts +21 -3
- package/lib/typescript/components/listitems/ListItemRadio.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemRadioWithAmount.d.ts +13 -0
- package/lib/typescript/components/listitems/ListItemRadioWithAmount.d.ts.map +1 -0
- package/lib/typescript/components/listitems/ListItemTransaction.d.ts.map +1 -1
- package/lib/typescript/components/listitems/index.d.ts +2 -0
- package/lib/typescript/components/listitems/index.d.ts.map +1 -1
- package/lib/typescript/components/modules/ModuleCheckout.d.ts +21 -0
- package/lib/typescript/components/modules/ModuleCheckout.d.ts.map +1 -0
- package/lib/typescript/components/modules/index.d.ts +1 -0
- package/lib/typescript/components/modules/index.d.ts.map +1 -1
- package/lib/typescript/components/numberpad/NumberButton.d.ts.map +1 -1
- package/lib/typescript/components/numberpad/NumberPad.d.ts +2 -1
- package/lib/typescript/components/numberpad/NumberPad.d.ts.map +1 -1
- package/lib/typescript/components/pictograms/Pictogram.d.ts +7 -1
- package/lib/typescript/components/pictograms/Pictogram.d.ts.map +1 -1
- package/lib/typescript/components/pictograms/svg/PictogramBiometric.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramBiometric.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramBleedEnded.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramBleedEnded.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramBleedLostConnection.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramBleedLostConnection.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramBleedPending.d.ts.map +1 -1
- package/lib/typescript/components/pictograms/svg/PictogramBleedQrCode.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramBleedQrCode.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramEmailDotCheck.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramEmailDotCheck.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramEmailDotNotif.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramEmailDotNotif.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramEnded.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramEnded.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramLostConnection.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramLostConnection.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramPending.d.ts.map +1 -1
- package/lib/typescript/components/pictograms/svg/PictogramQrCode.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramQrCode.d.ts.map +1 -0
- package/lib/typescript/components/radio/RadioGroup.d.ts +4 -3
- package/lib/typescript/components/radio/RadioGroup.d.ts.map +1 -1
- package/lib/typescript/components/stepper/Stepper.d.ts +8 -0
- package/lib/typescript/components/stepper/Stepper.d.ts.map +1 -0
- package/lib/typescript/components/stepper/index.d.ts +2 -0
- package/lib/typescript/components/stepper/index.d.ts.map +1 -0
- package/lib/typescript/components/textInput/TextInputBase.d.ts.map +1 -1
- package/lib/typescript/components/toast/ToastProvider.d.ts.map +1 -1
- package/lib/typescript/components/typography/H1.d.ts +1 -1
- package/lib/typescript/components/typography/H1.d.ts.map +1 -1
- package/lib/typescript/components/typography/H2.d.ts +1 -1
- package/lib/typescript/components/typography/H2.d.ts.map +1 -1
- package/lib/typescript/components/typography/H3.d.ts +1 -1
- package/lib/typescript/components/typography/H3.d.ts.map +1 -1
- package/lib/typescript/components/typography/H4.d.ts.map +1 -1
- package/lib/typescript/components/typography/H6.d.ts.map +1 -1
- package/lib/typescript/components/typography/Hero.d.ts +1 -1
- package/lib/typescript/components/typography/Hero.d.ts.map +1 -1
- package/lib/typescript/components/typography/LabelSmall.d.ts.map +1 -1
- package/lib/typescript/components/typography/LabelSmallAlt.d.ts +14 -0
- package/lib/typescript/components/typography/LabelSmallAlt.d.ts.map +1 -0
- package/lib/typescript/components/typography/index.d.ts +1 -0
- package/lib/typescript/components/typography/index.d.ts.map +1 -1
- package/lib/typescript/core/IOSpacing.d.ts +1 -1
- package/lib/typescript/core/IOSpacing.d.ts.map +1 -1
- package/package.json +9 -2
- package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +4 -4
- package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +4 -4
- package/src/components/checkbox/AnimatedCheckbox.tsx +6 -4
- package/src/components/codeInput/CodeInput.tsx +134 -0
- package/src/components/codeInput/index.tsx +1 -0
- package/src/components/icons/Icon.tsx +2 -0
- package/src/components/icons/README.md +79 -19
- package/src/components/icons/svg/IconSparkles.tsx +14 -0
- package/src/components/icons/svg/originals/IconSparkles.svg +3 -0
- package/src/components/index.tsx +5 -3
- package/src/components/layout/HeaderSecondLevel.tsx +6 -9
- package/src/components/listitems/ListItemAction.tsx +4 -3
- package/src/components/listitems/ListItemHeader.tsx +146 -0
- package/src/components/listitems/ListItemInfoCopy.tsx +14 -57
- package/src/components/listitems/ListItemNav.tsx +32 -44
- package/src/components/listitems/ListItemNavAlert.tsx +21 -42
- package/src/components/listitems/ListItemRadio.tsx +99 -12
- package/src/components/listitems/ListItemRadioWithAmount.tsx +69 -0
- package/src/components/listitems/ListItemTransaction.tsx +12 -7
- package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +684 -34
- package/src/components/listitems/__test__/listitem.test.tsx +21 -0
- package/src/components/listitems/index.tsx +2 -0
- package/src/components/modules/ModuleCheckout.tsx +105 -0
- package/src/components/modules/index.tsx +1 -0
- package/src/components/numberpad/NumberButton.tsx +2 -21
- package/src/components/numberpad/NumberPad.tsx +12 -10
- package/src/components/pictograms/Pictogram.tsx +23 -2
- package/src/components/pictograms/README.md +103 -14
- package/src/components/pictograms/svg/PictogramBiometric.tsx +78 -0
- package/src/components/pictograms/svg/PictogramBleedEnded.tsx +38 -0
- package/src/components/pictograms/svg/PictogramBleedLostConnection.tsx +66 -0
- package/src/components/pictograms/svg/PictogramBleedPending.tsx +17 -9
- package/src/components/pictograms/svg/PictogramBleedQrCode.tsx +86 -0
- package/src/components/pictograms/svg/PictogramEmailDotCheck.tsx +53 -0
- package/src/components/pictograms/svg/PictogramEmailDotNotif.tsx +51 -0
- package/src/components/pictograms/svg/PictogramEnded.tsx +34 -0
- package/src/components/pictograms/svg/PictogramLostConnection.tsx +58 -0
- package/src/components/pictograms/svg/PictogramPending.tsx +17 -9
- package/src/components/pictograms/svg/PictogramQrCode.tsx +102 -0
- package/src/components/pictograms/svg/originals/PictogramBiometric.svg +1 -0
- package/src/components/pictograms/svg/originals/PictogramBleedEnded.svg +1 -0
- package/src/components/pictograms/svg/originals/PictogramBleedLostConnection.svg +1 -0
- package/src/components/pictograms/svg/originals/PictogramBleedPending.svg +1 -1
- package/src/components/pictograms/svg/originals/PictogramBleedQrCode.svg +1 -0
- package/src/components/pictograms/svg/originals/PictogramEmailDotCheck.svg +41 -0
- package/src/components/pictograms/svg/originals/PictogramEmailDotNotif.svg +35 -0
- package/src/components/pictograms/svg/originals/PictogramEnded.svg +1 -0
- package/src/components/pictograms/svg/originals/PictogramLostConnection.svg +1 -0
- package/src/components/pictograms/svg/originals/PictogramPending.svg +1 -1
- package/src/components/pictograms/svg/originals/PictogramQrCode.svg +1 -0
- package/src/components/radio/RadioGroup.tsx +5 -4
- package/src/components/stepper/Stepper.tsx +62 -0
- package/src/components/stepper/index.tsx +1 -0
- package/src/components/textInput/TextInputBase.tsx +1 -0
- package/src/components/toast/ToastProvider.tsx +12 -17
- package/src/components/typography/H1.tsx +8 -3
- package/src/components/typography/H2.tsx +8 -3
- package/src/components/typography/H3.tsx +8 -3
- package/src/components/typography/H4.tsx +5 -1
- package/src/components/typography/H6.tsx +6 -1
- package/src/components/typography/Hero.tsx +10 -3
- package/src/components/typography/LabelSmall.tsx +8 -1
- package/src/components/typography/LabelSmallAlt.tsx +51 -0
- package/src/components/typography/README.md +23 -0
- package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +84 -74
- package/src/components/typography/index.tsx +1 -0
- package/src/core/IOSpacing.ts +4 -2
- package/lib/commonjs/components/icons/generateNewIcons.js +0 -165
- package/lib/commonjs/components/icons/generateNewIcons.js.map +0 -1
- package/lib/commonjs/components/icons/generateNewTimestamp.js +0 -8
- package/lib/commonjs/components/icons/generateNewTimestamp.js.map +0 -1
- package/lib/commonjs/components/icons/timestamp.txt +0 -1
- package/lib/commonjs/components/pictograms/generateNewPictograms.js +0 -163
- package/lib/commonjs/components/pictograms/generateNewPictograms.js.map +0 -1
- package/lib/commonjs/components/pictograms/timestamp.txt +0 -1
- package/lib/commonjs/stories/ButtonDS.stories.js +0 -34
- package/lib/commonjs/stories/ButtonDS.stories.js.map +0 -1
- package/lib/commonjs/stories/H1.stories.js +0 -33
- package/lib/commonjs/stories/H1.stories.js.map +0 -1
- package/lib/commonjs/stories/H2.stories.js +0 -33
- package/lib/commonjs/stories/H2.stories.js.map +0 -1
- package/lib/commonjs/stories/H3.stories.js +0 -33
- package/lib/commonjs/stories/H3.stories.js.map +0 -1
- package/lib/commonjs/stories/H4.stories.js +0 -33
- package/lib/commonjs/stories/H4.stories.js.map +0 -1
- package/lib/commonjs/stories/H5.stories.js +0 -33
- package/lib/commonjs/stories/H5.stories.js.map +0 -1
- package/lib/commonjs/stories/H6.stories.js +0 -33
- package/lib/commonjs/stories/H6.stories.js.map +0 -1
- package/lib/commonjs/stories/Label.stories.js +0 -33
- package/lib/commonjs/stories/Label.stories.js.map +0 -1
- package/lib/commonjs/stories/LabelSmall.stories.js +0 -33
- package/lib/commonjs/stories/LabelSmall.stories.js.map +0 -1
- package/lib/commonjs/stories/Link.stories.js +0 -33
- package/lib/commonjs/stories/Link.stories.js.map +0 -1
- package/lib/commonjs/stories/ModuleIDP.stories.js +0 -45
- package/lib/commonjs/stories/ModuleIDP.stories.js.map +0 -1
- package/lib/commonjs/stories/Monospace.stories.js +0 -33
- package/lib/commonjs/stories/Monospace.stories.js.map +0 -1
- package/lib/module/components/icons/generateNewIcons.js +0 -163
- package/lib/module/components/icons/generateNewIcons.js.map +0 -1
- package/lib/module/components/icons/generateNewTimestamp.js +0 -6
- package/lib/module/components/icons/generateNewTimestamp.js.map +0 -1
- package/lib/module/components/icons/timestamp.txt +0 -1
- package/lib/module/components/pictograms/generateNewPictograms.js +0 -161
- package/lib/module/components/pictograms/generateNewPictograms.js.map +0 -1
- package/lib/module/components/pictograms/timestamp.txt +0 -1
- package/lib/module/stories/ButtonDS.stories.js +0 -27
- package/lib/module/stories/ButtonDS.stories.js.map +0 -1
- package/lib/module/stories/H1.stories.js +0 -26
- package/lib/module/stories/H1.stories.js.map +0 -1
- package/lib/module/stories/H2.stories.js +0 -26
- package/lib/module/stories/H2.stories.js.map +0 -1
- package/lib/module/stories/H3.stories.js +0 -26
- package/lib/module/stories/H3.stories.js.map +0 -1
- package/lib/module/stories/H4.stories.js +0 -26
- package/lib/module/stories/H4.stories.js.map +0 -1
- package/lib/module/stories/H5.stories.js +0 -26
- package/lib/module/stories/H5.stories.js.map +0 -1
- package/lib/module/stories/H6.stories.js +0 -26
- package/lib/module/stories/H6.stories.js.map +0 -1
- package/lib/module/stories/Label.stories.js +0 -26
- package/lib/module/stories/Label.stories.js.map +0 -1
- package/lib/module/stories/LabelSmall.stories.js +0 -26
- package/lib/module/stories/LabelSmall.stories.js.map +0 -1
- package/lib/module/stories/Link.stories.js +0 -26
- package/lib/module/stories/Link.stories.js.map +0 -1
- package/lib/module/stories/ModuleIDP.stories.js +0 -37
- package/lib/module/stories/ModuleIDP.stories.js.map +0 -1
- package/lib/module/stories/Monospace.stories.js +0 -26
- package/lib/module/stories/Monospace.stories.js.map +0 -1
- package/lib/typescript/stories/ButtonDS.stories.d.ts +0 -14
- package/lib/typescript/stories/ButtonDS.stories.d.ts.map +0 -1
- package/lib/typescript/stories/H1.stories.d.ts +0 -19
- package/lib/typescript/stories/H1.stories.d.ts.map +0 -1
- package/lib/typescript/stories/H2.stories.d.ts +0 -19
- package/lib/typescript/stories/H2.stories.d.ts.map +0 -1
- package/lib/typescript/stories/H3.stories.d.ts +0 -19
- package/lib/typescript/stories/H3.stories.d.ts.map +0 -1
- package/lib/typescript/stories/H4.stories.d.ts +0 -19
- package/lib/typescript/stories/H4.stories.d.ts.map +0 -1
- package/lib/typescript/stories/H5.stories.d.ts +0 -19
- package/lib/typescript/stories/H5.stories.d.ts.map +0 -1
- package/lib/typescript/stories/H6.stories.d.ts +0 -19
- package/lib/typescript/stories/H6.stories.d.ts.map +0 -1
- package/lib/typescript/stories/Label.stories.d.ts +0 -21
- package/lib/typescript/stories/Label.stories.d.ts.map +0 -1
- package/lib/typescript/stories/LabelSmall.stories.d.ts +0 -21
- package/lib/typescript/stories/LabelSmall.stories.d.ts.map +0 -1
- package/lib/typescript/stories/Link.stories.d.ts +0 -21
- package/lib/typescript/stories/Link.stories.d.ts.map +0 -1
- package/lib/typescript/stories/ModuleIDP.stories.d.ts +0 -24
- package/lib/typescript/stories/ModuleIDP.stories.d.ts.map +0 -1
- package/lib/typescript/stories/Monospace.stories.d.ts +0 -19
- package/lib/typescript/stories/Monospace.stories.d.ts.map +0 -1
- package/src/components/icons/generateNewIcons.js +0 -186
- package/src/components/icons/generateNewTimestamp.js +0 -7
- package/src/components/icons/timestamp.txt +0 -1
- package/src/components/pictograms/generateNewPictograms.js +0 -181
- package/src/components/pictograms/timestamp.txt +0 -1
- package/src/stories/ButtonDS.stories.ts +0 -31
- package/src/stories/H1.stories.ts +0 -28
- package/src/stories/H2.stories.ts +0 -28
- package/src/stories/H3.stories.ts +0 -28
- package/src/stories/H4.stories.ts +0 -28
- package/src/stories/H5.stories.ts +0 -28
- package/src/stories/H6.stories.ts +0 -28
- package/src/stories/Label.stories.ts +0 -28
- package/src/stories/LabelSmall.stories.ts +0 -28
- package/src/stories/Link.stories.ts +0 -28
- package/src/stories/ModuleIDP.stories.tsx +0 -44
- package/src/stories/Monospace.stories.ts +0 -28
|
@@ -102,29 +102,29 @@ exports[`Test Typography Components H1 Snapshot 1`] = `
|
|
|
102
102
|
allowFontScaling={false}
|
|
103
103
|
color="black"
|
|
104
104
|
defaultColor="black"
|
|
105
|
-
defaultWeight="
|
|
105
|
+
defaultWeight="SemiBold"
|
|
106
106
|
font="TitilliumWeb"
|
|
107
107
|
fontStyle={
|
|
108
108
|
{
|
|
109
|
-
"fontSize":
|
|
110
|
-
"lineHeight":
|
|
109
|
+
"fontSize": 31,
|
|
110
|
+
"lineHeight": 43,
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
style={
|
|
114
114
|
[
|
|
115
115
|
{
|
|
116
|
-
"fontSize":
|
|
117
|
-
"lineHeight":
|
|
116
|
+
"fontSize": 31,
|
|
117
|
+
"lineHeight": 43,
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"color": "#0E0F13",
|
|
121
121
|
"fontFamily": "Titillium Web",
|
|
122
122
|
"fontStyle": "normal",
|
|
123
|
-
"fontWeight": "
|
|
123
|
+
"fontWeight": "600",
|
|
124
124
|
},
|
|
125
125
|
]
|
|
126
126
|
}
|
|
127
|
-
weight="
|
|
127
|
+
weight="SemiBold"
|
|
128
128
|
>
|
|
129
129
|
Text
|
|
130
130
|
</Text>
|
|
@@ -135,29 +135,29 @@ exports[`Test Typography Components H1 Snapshot 2`] = `
|
|
|
135
135
|
allowFontScaling={false}
|
|
136
136
|
color="white"
|
|
137
137
|
defaultColor="black"
|
|
138
|
-
defaultWeight="
|
|
138
|
+
defaultWeight="SemiBold"
|
|
139
139
|
font="TitilliumWeb"
|
|
140
140
|
fontStyle={
|
|
141
141
|
{
|
|
142
|
-
"fontSize":
|
|
143
|
-
"lineHeight":
|
|
142
|
+
"fontSize": 31,
|
|
143
|
+
"lineHeight": 43,
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
style={
|
|
147
147
|
[
|
|
148
148
|
{
|
|
149
|
-
"fontSize":
|
|
150
|
-
"lineHeight":
|
|
149
|
+
"fontSize": 31,
|
|
150
|
+
"lineHeight": 43,
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
"color": "#FFFFFF",
|
|
154
154
|
"fontFamily": "Titillium Web",
|
|
155
155
|
"fontStyle": "normal",
|
|
156
|
-
"fontWeight": "
|
|
156
|
+
"fontWeight": "600",
|
|
157
157
|
},
|
|
158
158
|
]
|
|
159
159
|
}
|
|
160
|
-
weight="
|
|
160
|
+
weight="SemiBold"
|
|
161
161
|
>
|
|
162
162
|
Text
|
|
163
163
|
</Text>
|
|
@@ -168,29 +168,29 @@ exports[`Test Typography Components H2 Snapshot 1`] = `
|
|
|
168
168
|
allowFontScaling={false}
|
|
169
169
|
color="black"
|
|
170
170
|
defaultColor="black"
|
|
171
|
-
defaultWeight="
|
|
171
|
+
defaultWeight="SemiBold"
|
|
172
172
|
font="TitilliumWeb"
|
|
173
173
|
fontStyle={
|
|
174
174
|
{
|
|
175
|
-
"fontSize":
|
|
176
|
-
"lineHeight":
|
|
175
|
+
"fontSize": 28,
|
|
176
|
+
"lineHeight": 40,
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
style={
|
|
180
180
|
[
|
|
181
181
|
{
|
|
182
|
-
"fontSize":
|
|
183
|
-
"lineHeight":
|
|
182
|
+
"fontSize": 28,
|
|
183
|
+
"lineHeight": 40,
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
"color": "#0E0F13",
|
|
187
187
|
"fontFamily": "Titillium Web",
|
|
188
188
|
"fontStyle": "normal",
|
|
189
|
-
"fontWeight": "
|
|
189
|
+
"fontWeight": "600",
|
|
190
190
|
},
|
|
191
191
|
]
|
|
192
192
|
}
|
|
193
|
-
weight="
|
|
193
|
+
weight="SemiBold"
|
|
194
194
|
>
|
|
195
195
|
Text
|
|
196
196
|
</Text>
|
|
@@ -201,29 +201,29 @@ exports[`Test Typography Components H3 Snapshot 1`] = `
|
|
|
201
201
|
allowFontScaling={false}
|
|
202
202
|
color="bluegreyDark"
|
|
203
203
|
defaultColor="bluegreyDark"
|
|
204
|
-
defaultWeight="
|
|
204
|
+
defaultWeight="SemiBold"
|
|
205
205
|
font="TitilliumWeb"
|
|
206
206
|
fontStyle={
|
|
207
207
|
{
|
|
208
|
-
"fontSize":
|
|
209
|
-
"lineHeight":
|
|
208
|
+
"fontSize": 24,
|
|
209
|
+
"lineHeight": 34,
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
style={
|
|
213
213
|
[
|
|
214
214
|
{
|
|
215
|
-
"fontSize":
|
|
216
|
-
"lineHeight":
|
|
215
|
+
"fontSize": 24,
|
|
216
|
+
"lineHeight": 34,
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
219
|
"color": "#17324D",
|
|
220
220
|
"fontFamily": "Titillium Web",
|
|
221
221
|
"fontStyle": "normal",
|
|
222
|
-
"fontWeight": "
|
|
222
|
+
"fontWeight": "600",
|
|
223
223
|
},
|
|
224
224
|
]
|
|
225
225
|
}
|
|
226
|
-
weight="
|
|
226
|
+
weight="SemiBold"
|
|
227
227
|
>
|
|
228
228
|
Text
|
|
229
229
|
</Text>
|
|
@@ -234,29 +234,29 @@ exports[`Test Typography Components H3 Snapshot 2`] = `
|
|
|
234
234
|
allowFontScaling={false}
|
|
235
235
|
color="bluegreyLight"
|
|
236
236
|
defaultColor="bluegreyDark"
|
|
237
|
-
defaultWeight="
|
|
237
|
+
defaultWeight="SemiBold"
|
|
238
238
|
font="TitilliumWeb"
|
|
239
239
|
fontStyle={
|
|
240
240
|
{
|
|
241
|
-
"fontSize":
|
|
242
|
-
"lineHeight":
|
|
241
|
+
"fontSize": 24,
|
|
242
|
+
"lineHeight": 34,
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
style={
|
|
246
246
|
[
|
|
247
247
|
{
|
|
248
|
-
"fontSize":
|
|
249
|
-
"lineHeight":
|
|
248
|
+
"fontSize": 24,
|
|
249
|
+
"lineHeight": 34,
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
252
|
"color": "#CCD4DC",
|
|
253
253
|
"fontFamily": "Titillium Web",
|
|
254
254
|
"fontStyle": "normal",
|
|
255
|
-
"fontWeight": "
|
|
255
|
+
"fontWeight": "600",
|
|
256
256
|
},
|
|
257
257
|
]
|
|
258
258
|
}
|
|
259
|
-
weight="
|
|
259
|
+
weight="SemiBold"
|
|
260
260
|
>
|
|
261
261
|
Text
|
|
262
262
|
</Text>
|
|
@@ -267,29 +267,29 @@ exports[`Test Typography Components H3 Snapshot 3`] = `
|
|
|
267
267
|
allowFontScaling={false}
|
|
268
268
|
color="white"
|
|
269
269
|
defaultColor="bluegreyDark"
|
|
270
|
-
defaultWeight="
|
|
270
|
+
defaultWeight="SemiBold"
|
|
271
271
|
font="TitilliumWeb"
|
|
272
272
|
fontStyle={
|
|
273
273
|
{
|
|
274
|
-
"fontSize":
|
|
275
|
-
"lineHeight":
|
|
274
|
+
"fontSize": 24,
|
|
275
|
+
"lineHeight": 34,
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
style={
|
|
279
279
|
[
|
|
280
280
|
{
|
|
281
|
-
"fontSize":
|
|
282
|
-
"lineHeight":
|
|
281
|
+
"fontSize": 24,
|
|
282
|
+
"lineHeight": 34,
|
|
283
283
|
},
|
|
284
284
|
{
|
|
285
285
|
"color": "#FFFFFF",
|
|
286
286
|
"fontFamily": "Titillium Web",
|
|
287
287
|
"fontStyle": "normal",
|
|
288
|
-
"fontWeight": "
|
|
288
|
+
"fontWeight": "600",
|
|
289
289
|
},
|
|
290
290
|
]
|
|
291
291
|
}
|
|
292
|
-
weight="
|
|
292
|
+
weight="SemiBold"
|
|
293
293
|
>
|
|
294
294
|
Text
|
|
295
295
|
</Text>
|
|
@@ -300,29 +300,29 @@ exports[`Test Typography Components H3 Snapshot 4`] = `
|
|
|
300
300
|
allowFontScaling={false}
|
|
301
301
|
color="white"
|
|
302
302
|
defaultColor="bluegreyDark"
|
|
303
|
-
defaultWeight="
|
|
303
|
+
defaultWeight="SemiBold"
|
|
304
304
|
font="TitilliumWeb"
|
|
305
305
|
fontStyle={
|
|
306
306
|
{
|
|
307
|
-
"fontSize":
|
|
308
|
-
"lineHeight":
|
|
307
|
+
"fontSize": 24,
|
|
308
|
+
"lineHeight": 34,
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
style={
|
|
312
312
|
[
|
|
313
313
|
{
|
|
314
|
-
"fontSize":
|
|
315
|
-
"lineHeight":
|
|
314
|
+
"fontSize": 24,
|
|
315
|
+
"lineHeight": 34,
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
318
|
"color": "#FFFFFF",
|
|
319
319
|
"fontFamily": "Titillium Web",
|
|
320
320
|
"fontStyle": "normal",
|
|
321
|
-
"fontWeight": "
|
|
321
|
+
"fontWeight": "600",
|
|
322
322
|
},
|
|
323
323
|
]
|
|
324
324
|
}
|
|
325
|
-
weight="
|
|
325
|
+
weight="SemiBold"
|
|
326
326
|
>
|
|
327
327
|
Text
|
|
328
328
|
</Text>
|
|
@@ -333,29 +333,29 @@ exports[`Test Typography Components H3 Snapshot 5`] = `
|
|
|
333
333
|
allowFontScaling={false}
|
|
334
334
|
color="bluegreyDark"
|
|
335
335
|
defaultColor="bluegreyDark"
|
|
336
|
-
defaultWeight="
|
|
336
|
+
defaultWeight="SemiBold"
|
|
337
337
|
font="TitilliumWeb"
|
|
338
338
|
fontStyle={
|
|
339
339
|
{
|
|
340
|
-
"fontSize":
|
|
341
|
-
"lineHeight":
|
|
340
|
+
"fontSize": 24,
|
|
341
|
+
"lineHeight": 34,
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
style={
|
|
345
345
|
[
|
|
346
346
|
{
|
|
347
|
-
"fontSize":
|
|
348
|
-
"lineHeight":
|
|
347
|
+
"fontSize": 24,
|
|
348
|
+
"lineHeight": 34,
|
|
349
349
|
},
|
|
350
350
|
{
|
|
351
351
|
"color": "#17324D",
|
|
352
352
|
"fontFamily": "Titillium Web",
|
|
353
353
|
"fontStyle": "normal",
|
|
354
|
-
"fontWeight": "
|
|
354
|
+
"fontWeight": "600",
|
|
355
355
|
},
|
|
356
356
|
]
|
|
357
357
|
}
|
|
358
|
-
weight="
|
|
358
|
+
weight="SemiBold"
|
|
359
359
|
>
|
|
360
360
|
Text
|
|
361
361
|
</Text>
|
|
@@ -370,14 +370,14 @@ exports[`Test Typography Components H4 Snapshot 1`] = `
|
|
|
370
370
|
font="TitilliumWeb"
|
|
371
371
|
fontStyle={
|
|
372
372
|
{
|
|
373
|
-
"fontSize":
|
|
373
|
+
"fontSize": 22,
|
|
374
374
|
"lineHeight": 30,
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
style={
|
|
378
378
|
[
|
|
379
379
|
{
|
|
380
|
-
"fontSize":
|
|
380
|
+
"fontSize": 22,
|
|
381
381
|
"lineHeight": 30,
|
|
382
382
|
},
|
|
383
383
|
{
|
|
@@ -403,14 +403,14 @@ exports[`Test Typography Components H4 Snapshot 2`] = `
|
|
|
403
403
|
font="TitilliumWeb"
|
|
404
404
|
fontStyle={
|
|
405
405
|
{
|
|
406
|
-
"fontSize":
|
|
406
|
+
"fontSize": 22,
|
|
407
407
|
"lineHeight": 30,
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
style={
|
|
411
411
|
[
|
|
412
412
|
{
|
|
413
|
-
"fontSize":
|
|
413
|
+
"fontSize": 22,
|
|
414
414
|
"lineHeight": 30,
|
|
415
415
|
},
|
|
416
416
|
{
|
|
@@ -436,14 +436,14 @@ exports[`Test Typography Components H4 Snapshot 3`] = `
|
|
|
436
436
|
font="TitilliumWeb"
|
|
437
437
|
fontStyle={
|
|
438
438
|
{
|
|
439
|
-
"fontSize":
|
|
439
|
+
"fontSize": 22,
|
|
440
440
|
"lineHeight": 30,
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
style={
|
|
444
444
|
[
|
|
445
445
|
{
|
|
446
|
-
"fontSize":
|
|
446
|
+
"fontSize": 22,
|
|
447
447
|
"lineHeight": 30,
|
|
448
448
|
},
|
|
449
449
|
{
|
|
@@ -469,14 +469,14 @@ exports[`Test Typography Components H4 Snapshot 4`] = `
|
|
|
469
469
|
font="TitilliumWeb"
|
|
470
470
|
fontStyle={
|
|
471
471
|
{
|
|
472
|
-
"fontSize":
|
|
472
|
+
"fontSize": 22,
|
|
473
473
|
"lineHeight": 30,
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
style={
|
|
477
477
|
[
|
|
478
478
|
{
|
|
479
|
-
"fontSize":
|
|
479
|
+
"fontSize": 22,
|
|
480
480
|
"lineHeight": 30,
|
|
481
481
|
},
|
|
482
482
|
{
|
|
@@ -502,14 +502,14 @@ exports[`Test Typography Components H4 Snapshot 5`] = `
|
|
|
502
502
|
font="TitilliumWeb"
|
|
503
503
|
fontStyle={
|
|
504
504
|
{
|
|
505
|
-
"fontSize":
|
|
505
|
+
"fontSize": 22,
|
|
506
506
|
"lineHeight": 30,
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
style={
|
|
510
510
|
[
|
|
511
511
|
{
|
|
512
|
-
"fontSize":
|
|
512
|
+
"fontSize": 22,
|
|
513
513
|
"lineHeight": 30,
|
|
514
514
|
},
|
|
515
515
|
{
|
|
@@ -535,14 +535,14 @@ exports[`Test Typography Components H4 Snapshot 6`] = `
|
|
|
535
535
|
font="TitilliumWeb"
|
|
536
536
|
fontStyle={
|
|
537
537
|
{
|
|
538
|
-
"fontSize":
|
|
538
|
+
"fontSize": 22,
|
|
539
539
|
"lineHeight": 30,
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
style={
|
|
543
543
|
[
|
|
544
544
|
{
|
|
545
|
-
"fontSize":
|
|
545
|
+
"fontSize": 22,
|
|
546
546
|
"lineHeight": 30,
|
|
547
547
|
},
|
|
548
548
|
{
|
|
@@ -568,14 +568,14 @@ exports[`Test Typography Components H4 Snapshot 7`] = `
|
|
|
568
568
|
font="TitilliumWeb"
|
|
569
569
|
fontStyle={
|
|
570
570
|
{
|
|
571
|
-
"fontSize":
|
|
571
|
+
"fontSize": 22,
|
|
572
572
|
"lineHeight": 30,
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
style={
|
|
576
576
|
[
|
|
577
577
|
{
|
|
578
|
-
"fontSize":
|
|
578
|
+
"fontSize": 22,
|
|
579
579
|
"lineHeight": 30,
|
|
580
580
|
},
|
|
581
581
|
{
|
|
@@ -749,15 +749,15 @@ exports[`Test Typography Components H6 Snapshot 1`] = `
|
|
|
749
749
|
font="TitilliumWeb"
|
|
750
750
|
fontStyle={
|
|
751
751
|
{
|
|
752
|
-
"fontSize":
|
|
753
|
-
"lineHeight":
|
|
752
|
+
"fontSize": 18,
|
|
753
|
+
"lineHeight": 25,
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
756
|
style={
|
|
757
757
|
[
|
|
758
758
|
{
|
|
759
|
-
"fontSize":
|
|
760
|
-
"lineHeight":
|
|
759
|
+
"fontSize": 18,
|
|
760
|
+
"lineHeight": 25,
|
|
761
761
|
},
|
|
762
762
|
{
|
|
763
763
|
"color": "#0E0F13",
|
|
@@ -849,12 +849,14 @@ exports[`Test Typography Components LabelSmall Snapshot 1`] = `
|
|
|
849
849
|
fontStyle={
|
|
850
850
|
{
|
|
851
851
|
"fontSize": 14,
|
|
852
|
+
"lineHeight": 21,
|
|
852
853
|
}
|
|
853
854
|
}
|
|
854
855
|
style={
|
|
855
856
|
[
|
|
856
857
|
{
|
|
857
858
|
"fontSize": 14,
|
|
859
|
+
"lineHeight": 21,
|
|
858
860
|
},
|
|
859
861
|
{
|
|
860
862
|
"color": "#0073E6",
|
|
@@ -880,12 +882,14 @@ exports[`Test Typography Components LabelSmall Snapshot 2`] = `
|
|
|
880
882
|
fontStyle={
|
|
881
883
|
{
|
|
882
884
|
"fontSize": 14,
|
|
885
|
+
"lineHeight": 21,
|
|
883
886
|
}
|
|
884
887
|
}
|
|
885
888
|
style={
|
|
886
889
|
[
|
|
887
890
|
{
|
|
888
891
|
"fontSize": 14,
|
|
892
|
+
"lineHeight": 21,
|
|
889
893
|
},
|
|
890
894
|
{
|
|
891
895
|
"color": "#0073E6",
|
|
@@ -911,12 +915,14 @@ exports[`Test Typography Components LabelSmall Snapshot 3`] = `
|
|
|
911
915
|
fontStyle={
|
|
912
916
|
{
|
|
913
917
|
"fontSize": 14,
|
|
918
|
+
"lineHeight": 21,
|
|
914
919
|
}
|
|
915
920
|
}
|
|
916
921
|
style={
|
|
917
922
|
[
|
|
918
923
|
{
|
|
919
924
|
"fontSize": 14,
|
|
925
|
+
"lineHeight": 21,
|
|
920
926
|
},
|
|
921
927
|
{
|
|
922
928
|
"color": "#475A6D",
|
|
@@ -942,12 +948,14 @@ exports[`Test Typography Components LabelSmall Snapshot 4`] = `
|
|
|
942
948
|
fontStyle={
|
|
943
949
|
{
|
|
944
950
|
"fontSize": 14,
|
|
951
|
+
"lineHeight": 21,
|
|
945
952
|
}
|
|
946
953
|
}
|
|
947
954
|
style={
|
|
948
955
|
[
|
|
949
956
|
{
|
|
950
957
|
"fontSize": 14,
|
|
958
|
+
"lineHeight": 21,
|
|
951
959
|
},
|
|
952
960
|
{
|
|
953
961
|
"color": "#C02927",
|
|
@@ -973,12 +981,14 @@ exports[`Test Typography Components LabelSmall Snapshot 5`] = `
|
|
|
973
981
|
fontStyle={
|
|
974
982
|
{
|
|
975
983
|
"fontSize": 14,
|
|
984
|
+
"lineHeight": 21,
|
|
976
985
|
}
|
|
977
986
|
}
|
|
978
987
|
style={
|
|
979
988
|
[
|
|
980
989
|
{
|
|
981
990
|
"fontSize": 14,
|
|
991
|
+
"lineHeight": 21,
|
|
982
992
|
},
|
|
983
993
|
{
|
|
984
994
|
"color": "#FFFFFF",
|
package/src/core/IOSpacing.ts
CHANGED
|
@@ -28,8 +28,10 @@ export const IOSpacer: ReadonlyArray<IOSpacer> = [
|
|
|
28
28
|
] as const;
|
|
29
29
|
|
|
30
30
|
// Margin values used in the new `<ContentWrapper>` component
|
|
31
|
-
export type IOAppMargin = Extract<IOSpacingScale, 8 | 16 | 24 | 32>;
|
|
32
|
-
export const IOAppMargin: ReadonlyArray<IOAppMargin> = [
|
|
31
|
+
export type IOAppMargin = Extract<IOSpacingScale, 8 | 16 | 24 | 32 | 48>;
|
|
32
|
+
export const IOAppMargin: ReadonlyArray<IOAppMargin> = [
|
|
33
|
+
8, 16, 24, 32, 48
|
|
34
|
+
] as const;
|
|
33
35
|
|
|
34
36
|
// Values used in the `<Alert>` component
|
|
35
37
|
export type IOAlertSpacing = Extract<IOSpacingScale, 16 | 24>;
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
4
|
-
/* eslint-disable no-console */
|
|
5
|
-
/* eslint-disable @typescript-eslint/restrict-plus-operands */
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
DRAFT for an AUTOMATIC process to generate new icon components
|
|
9
|
-
(`Icon....tsx`) from the SVG files exported from Figma.
|
|
10
|
-
|
|
11
|
-
Prerequisites:
|
|
12
|
-
- The icon must be exported from the 24 × 24 frame
|
|
13
|
-
- The icon must be saved with the final name
|
|
14
|
-
- To learn more about naming conventions, please read the local README
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
// STEPS:
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* 1. Only process the newly added files
|
|
21
|
-
*
|
|
22
|
-
* Suggested path:
|
|
23
|
-
* 1. Files that need to be processed must be in the `svg/originals` folder.
|
|
24
|
-
* 2. Add a new file with the timestamp of the last process run.
|
|
25
|
-
* The file must be committed along with others.
|
|
26
|
-
* 3. Only files added after that timestamp value will be processed.
|
|
27
|
-
* 4. After the process run, update the new file with the current timestamp.
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* 2. Optimize SVG files with SVGO package (https://github.com/svg/svgo)
|
|
32
|
-
*
|
|
33
|
-
* Suggested path:
|
|
34
|
-
* 1. Add `svgo` to the `package.json` to use it as an executable
|
|
35
|
-
* 2. Configure it with the following parameters:
|
|
36
|
-
* - removeDimensions
|
|
37
|
-
* - removeRasterImages
|
|
38
|
-
* - removeScriptElement
|
|
39
|
-
* - removeViewBox (disabled)
|
|
40
|
-
* 3. Overwrite the original files
|
|
41
|
-
* 4. Optionally save the old ones in a `tmp` folder, which may be useful
|
|
42
|
-
* for debugging purposes.
|
|
43
|
-
* - Consider adding a `--debug' flag to the
|
|
44
|
-
* command to enable this behavior.
|
|
45
|
-
* - Add the `tmp` folder to `.gitignore` to keep the folder clean
|
|
46
|
-
* 5. Check the files after the optimizations
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* 3. Create the relative React component (with .tsx)
|
|
51
|
-
*
|
|
52
|
-
* Suggested path:
|
|
53
|
-
* - For every new SVG file:
|
|
54
|
-
* 1. Copy all the code contained in the `<svg>` tag
|
|
55
|
-
* 2. Use the file `_IconTemplate.tsx` as component template
|
|
56
|
-
* - Replace `IconTemplate` with the original SVG name
|
|
57
|
-
* - Remove all the comments inserted in the component file
|
|
58
|
-
* 3. Replace the `{SVGContent}` placeholder with the code copied
|
|
59
|
-
* in the step 1, replacing all the tags with the appropriate
|
|
60
|
-
* React ones. E.g: `path` becomes `Path` and so on…
|
|
61
|
-
* 4. Replace all the color values, set in hexadecimal format, with the
|
|
62
|
-
* `currentColor` attribute.
|
|
63
|
-
* E.g: fill="#CCCCCC" -> fill="currentColor"
|
|
64
|
-
* 5. Save a new file in the `svg` folder with the same filename
|
|
65
|
-
* of the relative SVG file and extension `.tsx`.
|
|
66
|
-
* E.g: svg/originals/IconProfile.svg -> svg/IconProfile.tsx
|
|
67
|
-
* 6. Save the list of processed SVG files and corresponding generated
|
|
68
|
-
* React components to a separate file. Add it to the `.gitignore`
|
|
69
|
-
* to keep the folder clean.
|
|
70
|
-
*/
|
|
71
|
-
|
|
72
|
-
const path = require("path");
|
|
73
|
-
const join = path.join;
|
|
74
|
-
const {
|
|
75
|
-
optimize
|
|
76
|
-
} = require("svgo");
|
|
77
|
-
const prettier = require("prettier");
|
|
78
|
-
const fs = require("fs-extra");
|
|
79
|
-
const {
|
|
80
|
-
transform
|
|
81
|
-
} = require("@svgr/core");
|
|
82
|
-
const svgDir = join(__dirname, "svg/originals");
|
|
83
|
-
const tsxDir = join(__dirname, "svg");
|
|
84
|
-
const templateFilePath = join(__dirname, "svg/_IconTemplate.tsx");
|
|
85
|
-
const timestampFilePath = join(__dirname, "timestamp.txt");
|
|
86
|
-
const convertTimestampToReadableFormat = timestamp => new Date(timestamp).toLocaleString("it-IT", {
|
|
87
|
-
timeZone: "Europe/Rome"
|
|
88
|
-
});
|
|
89
|
-
fs.readFile(timestampFilePath, "utf8", (err, timestamp) => {
|
|
90
|
-
if (err) {
|
|
91
|
-
console.log("Timestamp file not found.");
|
|
92
|
-
throw err;
|
|
93
|
-
}
|
|
94
|
-
console.log("Last processed timestamp:", convertTimestampToReadableFormat(timestamp));
|
|
95
|
-
console.log(`————————————————`);
|
|
96
|
-
fs.readdir(svgDir, (err, files) => {
|
|
97
|
-
if (err) {
|
|
98
|
-
throw err;
|
|
99
|
-
}
|
|
100
|
-
files.forEach(file => {
|
|
101
|
-
const filePath = join(svgDir, file);
|
|
102
|
-
const fileStats = fs.statSync(filePath);
|
|
103
|
-
|
|
104
|
-
/* Only process files with a more recent creation
|
|
105
|
-
date later than the timestamp value */
|
|
106
|
-
if (fileStats.mtime > new Date(timestamp)) {
|
|
107
|
-
const data = fs.readFileSync(filePath, "utf8");
|
|
108
|
-
|
|
109
|
-
// Check if the file is an SVG
|
|
110
|
-
if (!file.endsWith(".svg")) {
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
// Using SVGO to optimize the SVG
|
|
115
|
-
const result = optimize(data, {
|
|
116
|
-
path: filePath,
|
|
117
|
-
plugins: ["removeDimensions", "removeRasterImages", "removeScriptElement", "removeViewBox"]
|
|
118
|
-
});
|
|
119
|
-
// Overwrite original SVG file with optimized code
|
|
120
|
-
fs.writeFileSync(filePath, result.data);
|
|
121
|
-
|
|
122
|
-
// Convert SVG to JSX using `svgr`
|
|
123
|
-
const jsxCode = transform.sync(result.data, {
|
|
124
|
-
// Optimize SVG code using SVGO
|
|
125
|
-
svgo: true,
|
|
126
|
-
svgoConfig: {
|
|
127
|
-
removeRasterImages: true,
|
|
128
|
-
removeScriptElement: true,
|
|
129
|
-
removeUselessDefs: true
|
|
130
|
-
},
|
|
131
|
-
// Transform tags in Capital Case for React Native
|
|
132
|
-
native: true,
|
|
133
|
-
// Remove `width` and `height` attrs
|
|
134
|
-
dimensions: false,
|
|
135
|
-
/* Prettify the result */
|
|
136
|
-
plugins: ["@svgr/plugin-jsx"]
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
/* Replace hardcoded color value with `currentColor` */
|
|
140
|
-
const jsxCodeWithoutHardcodedColors = jsxCode.replace(/fill="[^"]*"/g, 'fill="currentColor"');
|
|
141
|
-
|
|
142
|
-
// Extract only the Path tags from the JSX code
|
|
143
|
-
const pathTagRegex = /<Path[^>]*\/>/g;
|
|
144
|
-
const pathTags = jsxCodeWithoutHardcodedColors.match(pathTagRegex);
|
|
145
|
-
const jsxCodeWithPathOnly = pathTags.join("");
|
|
146
|
-
const template = fs.readFileSync(templateFilePath, "utf8");
|
|
147
|
-
const componentData = template.replace(/IconTemplate/g, file.replace(".svg", "")).replace(/\/\/.*\n/g, "") // Remove lines starting with //
|
|
148
|
-
.replace(`{/* SVGContent */}`, jsxCodeWithPathOnly);
|
|
149
|
-
const fileWithTsxExtension = file.replace(".svg", ".tsx");
|
|
150
|
-
const tsxFilePath = join(tsxDir, fileWithTsxExtension);
|
|
151
|
-
fs.writeFileSync(tsxFilePath, prettier.format(componentData, {
|
|
152
|
-
parser: "typescript"
|
|
153
|
-
}));
|
|
154
|
-
console.log(`${file} → ${fileWithTsxExtension}`);
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
const newTimestamp = new Date();
|
|
158
|
-
const convertedISOTimestamp = newTimestamp.toISOString();
|
|
159
|
-
fs.writeFileSync(timestampFilePath, convertedISOTimestamp);
|
|
160
|
-
const readableUpdatedTimestamp = convertTimestampToReadableFormat(newTimestamp);
|
|
161
|
-
console.log(`————————————————`);
|
|
162
|
-
console.log("Updated timestamp:", readableUpdatedTimestamp);
|
|
163
|
-
});
|
|
164
|
-
});
|
|
165
|
-
//# sourceMappingURL=generateNewIcons.js.map
|