@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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { IOColors, IOTheme } from "../../core/IOColors";
|
|
3
|
+
import { IOFontWeight } from "../../utils/fonts";
|
|
4
|
+
import { ExternalTypographyProps, TypographyProps } from "./common";
|
|
5
|
+
type PartialAllowedColors = Extract<IOColors, "blue" | "bluegrey" | "red" | "white" | "bluegreyDark" | "grey-700" | "grey-200">;
|
|
6
|
+
type AllowedColors = PartialAllowedColors | IOTheme["textBody-tertiary"];
|
|
7
|
+
type AllowedWeight = Extract<IOFontWeight, "Bold" | "Regular" | "SemiBold">;
|
|
8
|
+
type LabelSmallAltProps = ExternalTypographyProps<TypographyProps<AllowedWeight, AllowedColors>>;
|
|
9
|
+
/**
|
|
10
|
+
* `LabelSmallAlt` typographic style. It's referenced as `LabelSmallReadex` in the design projects.
|
|
11
|
+
*/
|
|
12
|
+
export declare const LabelSmallAlt: (props: LabelSmallAltProps) => import("react").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=LabelSmallAlt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LabelSmallAlt.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/LabelSmallAlt.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEpE,KAAK,oBAAoB,GAAG,OAAO,CACjC,QAAQ,EACN,MAAM,GACN,UAAU,GACV,KAAK,GACL,OAAO,GACP,cAAc,GACd,UAAU,GACV,UAAU,CACb,CAAC;AACF,KAAK,aAAa,GAAG,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AACzE,KAAK,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC;AAE5E,KAAK,kBAAkB,GAAG,uBAAuB,CAC/C,eAAe,CAAC,aAAa,EAAE,aAAa,CAAC,CAC9C,CAAC;AAaF;;GAEG;AACH,eAAO,MAAM,aAAa,UAAW,kBAAkB,gCAatD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/index.tsx"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/index.tsx"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type IOSpacingScale = 4 | 6 | 8 | 12 | 16 | 20 | 24 | 28 | 32 | 40 | 48 | 56 | 64 | 72 | 80;
|
|
2
2
|
export type IOSpacer = Extract<IOSpacingScale, 4 | 8 | 16 | 24 | 32 | 40 | 48>;
|
|
3
3
|
export declare const IOSpacer: ReadonlyArray<IOSpacer>;
|
|
4
|
-
export type IOAppMargin = Extract<IOSpacingScale, 8 | 16 | 24 | 32>;
|
|
4
|
+
export type IOAppMargin = Extract<IOSpacingScale, 8 | 16 | 24 | 32 | 48>;
|
|
5
5
|
export declare const IOAppMargin: ReadonlyArray<IOAppMargin>;
|
|
6
6
|
export type IOAlertSpacing = Extract<IOSpacingScale, 16 | 24>;
|
|
7
7
|
export declare const IOAlertSpacing: ReadonlyArray<IOAlertSpacing>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOSpacing.d.ts","sourceRoot":"","sources":["../../../src/core/IOSpacing.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,cAAc,GACtB,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,CAAC;AAGP,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;AAC/E,eAAO,MAAM,QAAQ,EAAE,aAAa,CAAC,QAAQ,CAEnC,CAAC;AAGX,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"IOSpacing.d.ts","sourceRoot":"","sources":["../../../src/core/IOSpacing.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,cAAc,GACtB,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,CAAC;AAGP,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;AAC/E,eAAO,MAAM,QAAQ,EAAE,aAAa,CAAC,QAAQ,CAEnC,CAAC;AAGX,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;AACzE,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,WAAW,CAEzC,CAAC;AAGX,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;AAC9D,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC,cAAc,CAAqB,CAAC;AAG/E,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,cAAc,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;AAC/D,eAAO,MAAM,kBAAkB,EAAE,eAA6B,CAAC;AAC/D,eAAO,MAAM,qBAAqB,EAAE,eAA6B,CAAC;AAClE,eAAO,MAAM,qBAAqB,EAAE,eAA6B,CAAC;AAGlE,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1D,eAAO,MAAM,aAAa,EAAE,YAAyB,CAAC;AACtD,eAAO,MAAM,aAAa,EAAE,YAAyB,CAAC;AAGtD,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;AAC5D,eAAO,MAAM,eAAe,EAAE,cAA2B,CAAC;AAC1D,eAAO,MAAM,eAAe,EAAE,cAA2B,CAAC;AAG1D,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;AACtE,eAAO,MAAM,mBAAmB,EAAE,kBAAgC,CAAC;AACnE,eAAO,MAAM,mBAAmB,EAAE,kBAAgC,CAAC;AACnE,eAAO,MAAM,wBAAwB,EAAE,kBAAgC,CAAC;AACxE,eAAO,MAAM,oBAAoB,EAAE,kBAA+B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pagopa/io-app-design-system",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.1",
|
|
4
4
|
"description": "The library defining the core components of the design system of @pagopa/io-app",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -36,7 +36,10 @@
|
|
|
36
36
|
"example": "yarn --cwd example",
|
|
37
37
|
"bootstrap": "yarn example && yarn install",
|
|
38
38
|
"storybook": "storybook dev -p 6006",
|
|
39
|
-
"build-storybook": "storybook build"
|
|
39
|
+
"build-storybook": "storybook build",
|
|
40
|
+
"generate:icons": "node scripts/generateNewIcons.js",
|
|
41
|
+
"generate:pictograms": "node scripts/generateNewPictograms.js",
|
|
42
|
+
"generate": "npm-run-all generate:*"
|
|
40
43
|
},
|
|
41
44
|
"keywords": [
|
|
42
45
|
"react-native",
|
|
@@ -98,6 +101,7 @@
|
|
|
98
101
|
"react-test-renderer": "^18.2.0",
|
|
99
102
|
"release-it": "^15.0.0",
|
|
100
103
|
"storybook": "^7.4.0",
|
|
104
|
+
"storybook-react-context": "^0.6.0",
|
|
101
105
|
"svgo": "^3.0.2",
|
|
102
106
|
"typescript": "^4.9.5"
|
|
103
107
|
},
|
|
@@ -163,6 +167,9 @@
|
|
|
163
167
|
"react-native-builder-bob": {
|
|
164
168
|
"source": "src",
|
|
165
169
|
"output": "lib",
|
|
170
|
+
"exclude": [
|
|
171
|
+
"example"
|
|
172
|
+
],
|
|
166
173
|
"targets": [
|
|
167
174
|
"commonjs",
|
|
168
175
|
"module",
|
|
@@ -78,15 +78,15 @@ exports[`Test Banner Components Banner Snapshot 1`] = `
|
|
|
78
78
|
font="TitilliumWeb"
|
|
79
79
|
fontStyle={
|
|
80
80
|
{
|
|
81
|
-
"fontSize":
|
|
82
|
-
"lineHeight":
|
|
81
|
+
"fontSize": 18,
|
|
82
|
+
"lineHeight": 25,
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
style={
|
|
86
86
|
[
|
|
87
87
|
{
|
|
88
|
-
"fontSize":
|
|
89
|
-
"lineHeight":
|
|
88
|
+
"fontSize": 18,
|
|
89
|
+
"lineHeight": 25,
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
"color": "#031344",
|
|
@@ -74,15 +74,15 @@ exports[`Test Buttons Components ButtonExtendedOutline Snapshot 1`] = `
|
|
|
74
74
|
font="TitilliumWeb"
|
|
75
75
|
fontStyle={
|
|
76
76
|
{
|
|
77
|
-
"fontSize":
|
|
78
|
-
"lineHeight":
|
|
77
|
+
"fontSize": 18,
|
|
78
|
+
"lineHeight": 25,
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
style={
|
|
82
82
|
[
|
|
83
83
|
{
|
|
84
|
-
"fontSize":
|
|
85
|
-
"lineHeight":
|
|
84
|
+
"fontSize": 18,
|
|
85
|
+
"lineHeight": 25,
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"color": "#0E0F13",
|
|
@@ -126,10 +126,12 @@ export const AnimatedCheckbox = ({ checked, onPress, disabled }: OwnProps) => {
|
|
|
126
126
|
]}
|
|
127
127
|
/>
|
|
128
128
|
{isChecked && (
|
|
129
|
-
<
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
<View style={{ zIndex: 1 }}>
|
|
130
|
+
<AnimatedTick
|
|
131
|
+
progress={tickAnimationProgress}
|
|
132
|
+
stroke={IOColors[IOSelectionTickVisualParams.tickColor]}
|
|
133
|
+
/>
|
|
134
|
+
</View>
|
|
133
135
|
)}
|
|
134
136
|
</Pressable>
|
|
135
137
|
);
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import React, { useEffect, useMemo } from "react";
|
|
2
|
+
import { StyleSheet, View } from "react-native";
|
|
3
|
+
import Animated, {
|
|
4
|
+
Easing,
|
|
5
|
+
useAnimatedStyle,
|
|
6
|
+
useSharedValue,
|
|
7
|
+
withSequence,
|
|
8
|
+
withTiming
|
|
9
|
+
} from "react-native-reanimated";
|
|
10
|
+
import { IOColors, IOStyles } from "../../core";
|
|
11
|
+
import { triggerHaptic } from "../../functions";
|
|
12
|
+
import { HSpacer } from "../spacer";
|
|
13
|
+
|
|
14
|
+
type CodeInputProps = {
|
|
15
|
+
value: string;
|
|
16
|
+
onValueChange: (value: string) => void;
|
|
17
|
+
length: number;
|
|
18
|
+
onValidate: (value: string) => boolean;
|
|
19
|
+
variant?: "light" | "dark";
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const DOT_SIZE = 16;
|
|
23
|
+
|
|
24
|
+
const styles = StyleSheet.create({
|
|
25
|
+
dotShape: {
|
|
26
|
+
width: DOT_SIZE,
|
|
27
|
+
height: DOT_SIZE,
|
|
28
|
+
borderRadius: 8,
|
|
29
|
+
borderWidth: 2
|
|
30
|
+
},
|
|
31
|
+
dotEmpty: {
|
|
32
|
+
borderColor: IOColors["grey-200"]
|
|
33
|
+
},
|
|
34
|
+
wrapper: {
|
|
35
|
+
justifyContent: "center"
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
const EmptyDot = () => <View style={[styles.dotShape, styles.dotEmpty]} />;
|
|
40
|
+
|
|
41
|
+
const FilletDot = ({ color }: { color: IOColors }) => (
|
|
42
|
+
<View
|
|
43
|
+
style={[
|
|
44
|
+
styles.dotShape,
|
|
45
|
+
{ backgroundColor: IOColors[color], borderColor: IOColors[color] }
|
|
46
|
+
]}
|
|
47
|
+
/>
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
export const CodeInput = ({
|
|
51
|
+
length,
|
|
52
|
+
value,
|
|
53
|
+
onValueChange,
|
|
54
|
+
variant = "light",
|
|
55
|
+
onValidate
|
|
56
|
+
}: CodeInputProps) => {
|
|
57
|
+
const [status, setStatus] = React.useState<"default" | "error">("default");
|
|
58
|
+
|
|
59
|
+
const translate = useSharedValue(0);
|
|
60
|
+
const shakeOffset: number = 8;
|
|
61
|
+
|
|
62
|
+
const animatedStyle = useAnimatedStyle(() => ({
|
|
63
|
+
transform: [{ translateX: translate.value }]
|
|
64
|
+
}));
|
|
65
|
+
|
|
66
|
+
const fillColor = useMemo(
|
|
67
|
+
() =>
|
|
68
|
+
status === "error"
|
|
69
|
+
? "error-600"
|
|
70
|
+
: variant === "light"
|
|
71
|
+
? "white"
|
|
72
|
+
: "black",
|
|
73
|
+
[variant, status]
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
useEffect(() => {
|
|
77
|
+
if (onValidate && value.length === length) {
|
|
78
|
+
const isValid = onValidate(value);
|
|
79
|
+
|
|
80
|
+
if (!isValid) {
|
|
81
|
+
setStatus("error");
|
|
82
|
+
triggerHaptic("notificationError");
|
|
83
|
+
|
|
84
|
+
// eslint-disable-next-line functional/immutable-data
|
|
85
|
+
translate.value = withSequence(
|
|
86
|
+
withTiming(shakeOffset, {
|
|
87
|
+
duration: 75,
|
|
88
|
+
easing: Easing.inOut(Easing.cubic)
|
|
89
|
+
}),
|
|
90
|
+
withTiming(-shakeOffset, {
|
|
91
|
+
duration: 75,
|
|
92
|
+
easing: Easing.inOut(Easing.cubic)
|
|
93
|
+
}),
|
|
94
|
+
withTiming(shakeOffset / 2, {
|
|
95
|
+
duration: 75,
|
|
96
|
+
easing: Easing.inOut(Easing.cubic)
|
|
97
|
+
}),
|
|
98
|
+
withTiming(-shakeOffset / 2, {
|
|
99
|
+
duration: 75,
|
|
100
|
+
easing: Easing.inOut(Easing.cubic)
|
|
101
|
+
}),
|
|
102
|
+
withTiming(0, { duration: 75, easing: Easing.inOut(Easing.cubic) })
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
const timer = setTimeout(() => {
|
|
106
|
+
setStatus("default");
|
|
107
|
+
onValueChange("");
|
|
108
|
+
}, 500);
|
|
109
|
+
return () => clearTimeout(timer);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return;
|
|
113
|
+
}, [value, onValidate, length, onValueChange, translate]);
|
|
114
|
+
|
|
115
|
+
return (
|
|
116
|
+
<Animated.View style={[IOStyles.row, styles.wrapper, animatedStyle]}>
|
|
117
|
+
{[...Array(length)].map((_, i, arr) => (
|
|
118
|
+
<React.Fragment key={i}>
|
|
119
|
+
{value[i] ? (
|
|
120
|
+
<>
|
|
121
|
+
<FilletDot color={fillColor} />
|
|
122
|
+
{i !== arr.length - 1 && <HSpacer size={DOT_SIZE} />}
|
|
123
|
+
</>
|
|
124
|
+
) : (
|
|
125
|
+
<>
|
|
126
|
+
<EmptyDot />
|
|
127
|
+
{i !== arr.length - 1 && <HSpacer size={DOT_SIZE} />}
|
|
128
|
+
</>
|
|
129
|
+
)}
|
|
130
|
+
</React.Fragment>
|
|
131
|
+
))}
|
|
132
|
+
</Animated.View>
|
|
133
|
+
);
|
|
134
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CodeInput";
|
|
@@ -190,6 +190,7 @@ import IconRead from "./svg/IconRead";
|
|
|
190
190
|
import IconReceiptOff from "./svg/IconReceiptOff";
|
|
191
191
|
import IconSignal from "./svg/IconSignal";
|
|
192
192
|
import IconTouch from "./svg/IconTouch";
|
|
193
|
+
import IconSparkles from "./svg/IconSparkles";
|
|
193
194
|
|
|
194
195
|
export const IOIcons = {
|
|
195
196
|
spid: IconSpid,
|
|
@@ -289,6 +290,7 @@ export const IOIcons = {
|
|
|
289
290
|
familySharing: IconFamilySharing,
|
|
290
291
|
lightbulb: IconLightbulb,
|
|
291
292
|
magicWand: IconMagicWand,
|
|
293
|
+
sparkles: IconSparkles,
|
|
292
294
|
starFilled: IconStarFilled,
|
|
293
295
|
starEmpty: IconStarEmpty,
|
|
294
296
|
hearthEmpty: IconHearthEmpty,
|
|
@@ -4,33 +4,91 @@ There are different sets:
|
|
|
4
4
|
* **Navigation**: Icons used in the main Tab bar
|
|
5
5
|
* **Biometric**: Icons used for the biometric identification
|
|
6
6
|
* **Categories**: Icons used for the different sectors available in the Carta Giovani Nazionale
|
|
7
|
-
* **Product**: PagoPA products' icons
|
|
8
|
-
|
|
9
|
-
## Prefixes
|
|
10
|
-
- **General**: `Icon…`
|
|
11
|
-
- **Navigation**: `IconNav…`
|
|
12
|
-
- **Biometric**: `IconBiometric…`
|
|
13
|
-
- **Categories**: `IconCateg…`
|
|
14
|
-
- **Product**: `IconProduct…`
|
|
7
|
+
* **Product**: PagoPA products' icons
|
|
8
|
+
* **System**: OS-specific icons (iOS/Android)
|
|
15
9
|
|
|
16
10
|
## Add a new icon
|
|
17
|
-
First of all, follow the instructions stated in the main README (`Vector graphics` section).
|
|
18
11
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
12
|
+
### Prerequisites
|
|
13
|
+
|
|
14
|
+
In your user interface design app (Figma/Sketch) export your SVG with `1×` preset. The name usually consists of a specific prefix followed by the associated key:
|
|
15
|
+
- **General**: `Icon…`
|
|
16
|
+
- **Navigation**: `IconNav…`
|
|
17
|
+
- **Biometric**: `IconBiometric…`
|
|
18
|
+
- **Categories**: `IconCateg…`
|
|
19
|
+
- **Product**: `IconProduct…`
|
|
20
|
+
- **System**: `IconSystem…`
|
|
21
|
+
|
|
22
|
+
> [!important]
|
|
23
|
+
> The icon must be contained within a `24×24` frame.
|
|
24
|
+
|
|
25
|
+
> [!tip]
|
|
26
|
+
> If you want to add a new `Wallet` icon to be used in the main tab bar, your icon will have a `IconNavWallet` filename. If it doesn't belong to a specific set, you just put the name after the prefix `Icon…`, so `IconWallet`
|
|
27
|
+
|
|
28
|
+
> [!caution]
|
|
29
|
+
> This filename will be the same as the React component, so make sure you don't already have a component with that filename
|
|
30
|
+
|
|
31
|
+
### Create the corresponding React component
|
|
32
|
+
|
|
33
|
+
#### Using `scripts/generateNewIcons.js`
|
|
34
|
+
1. Move the exported file to the `icons/svg/originals` folder
|
|
35
|
+
2. In your terminal, in the same folder, run the command: `yarn generate:icons`
|
|
36
|
+
3. The script will process `scripts/icons_timestamp.txt`, generate the new React components (with `*.tsx` extension) following exactly the steps listed in the manual process (see below), and process **only the files added after this timestamp value**
|
|
37
|
+
4. If the `generateNewIcons` script accidentally overwrites older React components, remember to discard the changes before committing
|
|
38
|
+
|
|
39
|
+
> [!caution]
|
|
40
|
+
> If your icon **is not** monochromatic, you should use the manual process because the script doesn't support this specific case yet
|
|
41
|
+
|
|
42
|
+
#### Manual process (alternative)
|
|
43
|
+
|
|
44
|
+
1. Move the exported file to the `icons/svg/originals` folder
|
|
45
|
+
2. In your original SVG file, delete `width` and `height` attributes and leave the original `viewBox` attribute. You could easily process the image using online editors like [SVGOmg](https://jakearchibald.github.io/svgomg/) (enable `Prefer viewBox to width/height`)
|
|
46
|
+
3. In the `icons/svg` folder, create a new React component (with a `.tsx` extension) of the same name
|
|
47
|
+
4. Copy all the `<path>` elements into the new React component and replace the original `<path>` with the element `<Path>` (capital P) from the `react-native-svg` package. Replace all the harcoded fill values with the generic `currentColor` value, so that the icon inherits the color from the parent `Svg` container
|
|
48
|
+
|
|
49
|
+
5. Add the dynamic size and colour (if required), replacing the hardcoded values with the corresponding props. The final result should be similar to the following:
|
|
50
|
+
```tsx
|
|
51
|
+
import { Svg, Path } from "react-native-svg";
|
|
52
|
+
// [...]
|
|
53
|
+
|
|
54
|
+
const IconSpid = ({ size, style }: SVGIconProps) => (
|
|
55
|
+
<Svg width={size} height={size} viewBox="0 0 24 24" style={style}>
|
|
56
|
+
<Path
|
|
57
|
+
d="M13.615 …"
|
|
58
|
+
fill="currentColor"
|
|
59
|
+
/>
|
|
60
|
+
</Svg>
|
|
61
|
+
);
|
|
62
|
+
```
|
|
63
|
+
6. Repeat the previous steps for each icon
|
|
64
|
+
7. Once you have finished processing all the new icons, run `node generateNewTimestamp` to avoid overwriting these files with the `generateNewIcons` process.
|
|
65
|
+
|
|
66
|
+
> [!caution]
|
|
67
|
+
> The `currentColor` value should only be added for monochromatic icons. For example, if you export an `IconSystem...` with specific color values, don't add it at all.
|
|
68
|
+
|
|
69
|
+
#### Wrong icon rendering?
|
|
70
|
+
Before exporting the SVG file:
|
|
71
|
+
1. Detach the symbol instance to avoid destructive actions to the original source component. Use a draft or disposable project document. **Don't detach it** if you are in the original Design System project file
|
|
72
|
+
2. Outline all the present strokes (unless required for dynamic stroke width, but we don't manage this case at the moment)
|
|
73
|
+
3. Select all the different paths and flatten into one. Now you should have a single vector layer.
|
|
74
|
+
4. Make sure your vector path is centered (both vertically and horizontally) in a square
|
|
75
|
+
|
|
76
|
+
### Add the corresponding key to the `Icon` component
|
|
77
|
+
|
|
25
78
|
Add the desired key to the `IOIcons` object with the corresponding component reference:
|
|
26
|
-
```
|
|
79
|
+
```tsx
|
|
27
80
|
export const IOIcons = {
|
|
28
81
|
spid: IconSpid,
|
|
29
82
|
…
|
|
30
83
|
}
|
|
31
84
|
```
|
|
32
|
-
|
|
33
|
-
|
|
85
|
+
There's no need to add the new icon in the specific Design System page because it happens automatically.
|
|
86
|
+
|
|
87
|
+
> [!important]
|
|
88
|
+
> To keep the icons grouped by sets, remember to put the key above the icons with a specific prefix
|
|
89
|
+
|
|
90
|
+
If the icon belongs to a specific set, add the key to the relative icon set as well:
|
|
91
|
+
```tsx
|
|
34
92
|
export const IONavIcons = {
|
|
35
93
|
navMessages,
|
|
36
94
|
navWallet,
|
|
@@ -42,6 +100,8 @@ export const IONavIcons = {
|
|
|
42
100
|
} as const;
|
|
43
101
|
```
|
|
44
102
|
|
|
103
|
+
### Use the new icon in a different component
|
|
104
|
+
|
|
45
105
|
You can add the recently added icon with the following declaration:
|
|
46
106
|
```jsx
|
|
47
107
|
// Default size: 24×24px
|
|
@@ -51,5 +111,5 @@ You can add the recently added icon with the following declaration:
|
|
|
51
111
|
|
|
52
112
|
## View all the available icons
|
|
53
113
|
There are two ways:
|
|
54
|
-
- In the app, go to the `Profile → Design System → Icons` (you must enable `Debug Mode`)
|
|
114
|
+
- In the main app, go to the `Profile → Design System → Icons` (you must enable `Debug Mode`)
|
|
55
115
|
- In the repository, go to the `svg/originals` subfolder
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Path, Svg } from "react-native-svg";
|
|
3
|
+
import { SVGIconProps } from "../Icon";
|
|
4
|
+
|
|
5
|
+
const IconSparkles = ({ size, style, ...props }: SVGIconProps) => (
|
|
6
|
+
<Svg width={size} height={size} viewBox="0 0 16 17" style={style} {...props}>
|
|
7
|
+
<Path
|
|
8
|
+
fill="currentColor"
|
|
9
|
+
d="M5.64418.97979c.23675-.63972 1.14156-.63972 1.37831 0l1.27772 3.45256a.73476.73476 0 0 0 .43411.43411l3.45258 1.27772c.6397.23675.6397 1.14156 0 1.37831L8.73432 8.80021a.73476.73476 0 0 0-.43411.43411L7.02249 12.6869c-.23675.6397-1.14156.6397-1.37831 0L4.36646 9.23432a.73476.73476 0 0 0-.43411-.43411L.47979 7.52249c-.63972-.23675-.63972-1.14156 0-1.37831l3.45256-1.27772a.73476.73476 0 0 0 .43411-.43411L5.64418.97979Zm6.65942 9.10601c.1246-.33665.6008-.33665.7255 0l.6724 1.8172a.38723.38723 0 0 0 .2285.2285l1.8172.6725c.3366.1246.3366.6008 0 .7254l-1.8172.6725a.3868.3868 0 0 0-.2285.2284l-.6724 1.8172c-.1247.3367-.6009.3367-.7255 0l-.6725-1.8172a.38638.38638 0 0 0-.2284-.2284l-1.81717-.6725c-.3367-.1246-.3367-.6008 0-.7254l1.81717-.6725a.3868.3868 0 0 0 .2284-.2285l.6725-1.8172Z"
|
|
10
|
+
/>
|
|
11
|
+
</Svg>
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
export default IconSparkles;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 17">
|
|
2
|
+
<path fill="#5517E3" d="M5.64418.97979c.23675-.63972 1.14156-.63972 1.37831 0l1.27772 3.45256a.73476.73476 0 0 0 .43411.43411l3.45258 1.27772c.6397.23675.6397 1.14156 0 1.37831L8.73432 8.80021a.73476.73476 0 0 0-.43411.43411L7.02249 12.6869c-.23675.6397-1.14156.6397-1.37831 0L4.36646 9.23432a.73476.73476 0 0 0-.43411-.43411L.47979 7.52249c-.63972-.23675-.63972-1.14156 0-1.37831l3.45256-1.27772a.73476.73476 0 0 0 .43411-.43411L5.64418.97979Zm6.65942 9.10601c.1246-.33665.6008-.33665.7255 0l.6724 1.8172a.38723.38723 0 0 0 .2285.2285l1.8172.6725c.3366.1246.3366.6008 0 .7254l-1.8172.6725a.3868.3868 0 0 0-.2285.2284l-.6724 1.8172c-.1247.3367-.6009.3367-.7255 0l-.6725-1.8172a.38638.38638 0 0 0-.2284-.2284l-1.81717-.6725c-.3367-.1246-.3367-.6008 0-.7254l1.81717-.6725a.3868.3868 0 0 0 .2284-.2285l.6725-1.8172Z"/>
|
|
3
|
+
</svg>
|
package/src/components/index.tsx
CHANGED
|
@@ -2,25 +2,27 @@ export * from "./accordion";
|
|
|
2
2
|
export * from "./alert";
|
|
3
3
|
export * from "./avatar";
|
|
4
4
|
export * from "./badge";
|
|
5
|
+
export * from "./banner";
|
|
5
6
|
export * from "./buttons";
|
|
6
7
|
export * from "./checkbox";
|
|
7
8
|
export * from "./contentWrapper";
|
|
9
|
+
export * from "./codeInput";
|
|
8
10
|
export * from "./divider";
|
|
9
11
|
export * from "./featureInfo";
|
|
10
12
|
export * from "./icons";
|
|
13
|
+
export * from "./layout";
|
|
11
14
|
export * from "./listitems";
|
|
12
15
|
export * from "./logos";
|
|
13
16
|
export * from "./loadingSpinner";
|
|
14
17
|
export * from "./modules";
|
|
15
|
-
export * from "./
|
|
18
|
+
export * from "./numberpad";
|
|
16
19
|
export * from "./pictograms";
|
|
17
20
|
export * from "./radio";
|
|
18
21
|
export * from "./spacer";
|
|
22
|
+
export * from "./stepper";
|
|
19
23
|
export * from "./switch";
|
|
20
24
|
export * from "./tag";
|
|
21
25
|
export * from "./tabs";
|
|
22
26
|
export * from "./toast";
|
|
23
27
|
export * from "./typography";
|
|
24
28
|
export * from "./textInput";
|
|
25
|
-
export * from "./layout";
|
|
26
|
-
export * from "./numberpad";
|
|
@@ -74,7 +74,6 @@ const styles = StyleSheet.create({
|
|
|
74
74
|
headerInner: {
|
|
75
75
|
paddingHorizontal: IOVisualCostants.appMarginDefault,
|
|
76
76
|
height: IOVisualCostants.headerHeight,
|
|
77
|
-
borderBottomWidth: 1,
|
|
78
77
|
flexGrow: 1,
|
|
79
78
|
flexDirection: "row",
|
|
80
79
|
alignItems: "center",
|
|
@@ -146,19 +145,17 @@ export const HeaderSecondLevel = ({
|
|
|
146
145
|
return (
|
|
147
146
|
<Animated.View
|
|
148
147
|
accessibilityRole="header"
|
|
149
|
-
style={
|
|
148
|
+
style={[
|
|
150
149
|
transparent
|
|
151
150
|
? { borderBottomWidth: 0 }
|
|
152
|
-
: { backgroundColor: IOColors[HEADER_BG_COLOR] }
|
|
153
|
-
|
|
151
|
+
: { backgroundColor: IOColors[HEADER_BG_COLOR] },
|
|
152
|
+
{ borderBottomWidth: 1 },
|
|
153
|
+
headerWrapperAnimatedStyle
|
|
154
|
+
]}
|
|
154
155
|
>
|
|
155
156
|
<Animated.View
|
|
156
157
|
testID={testID}
|
|
157
|
-
style={[
|
|
158
|
-
{ marginTop: insets.top },
|
|
159
|
-
styles.headerInner,
|
|
160
|
-
headerWrapperAnimatedStyle
|
|
161
|
-
]}
|
|
158
|
+
style={[{ marginTop: insets.top }, styles.headerInner]}
|
|
162
159
|
>
|
|
163
160
|
<IconButton
|
|
164
161
|
icon={Platform.OS === "ios" ? "backiOS" : "backAndroid"}
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
import { makeFontStyleObject } from "../../utils/fonts";
|
|
30
30
|
import { WithTestID } from "../../utils/types";
|
|
31
31
|
import { AnimatedIcon, IOIcons, Icon } from "../icons";
|
|
32
|
+
import { buttonTextFontSize } from "../typography/ButtonText";
|
|
32
33
|
|
|
33
34
|
export type ListItemAction = WithTestID<{
|
|
34
35
|
label: string;
|
|
@@ -41,7 +42,7 @@ export type ListItemAction = WithTestID<{
|
|
|
41
42
|
|
|
42
43
|
const styles = StyleSheet.create({
|
|
43
44
|
label: {
|
|
44
|
-
fontSize:
|
|
45
|
+
fontSize: buttonTextFontSize,
|
|
45
46
|
lineHeight: 20,
|
|
46
47
|
...makeFontStyleObject("Regular", false, "ReadexPro")
|
|
47
48
|
}
|
|
@@ -50,8 +51,8 @@ const styles = StyleSheet.create({
|
|
|
50
51
|
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
51
52
|
const legacyStyles = StyleSheet.create({
|
|
52
53
|
labelLegacy: {
|
|
53
|
-
fontSize:
|
|
54
|
-
lineHeight:
|
|
54
|
+
fontSize: buttonTextFontSize,
|
|
55
|
+
lineHeight: 20,
|
|
55
56
|
...makeFontStyleObject("SemiBold", false, "TitilliumWeb")
|
|
56
57
|
}
|
|
57
58
|
});
|