@pagopa/io-app-design-system 1.4.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/lib/commonjs/components/alert/Alert.js +1 -1
- package/lib/commonjs/components/alert/Alert.js.map +1 -1
- package/lib/commonjs/components/banner/Banner.js +1 -1
- package/lib/commonjs/components/banner/Banner.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonExtendedOutline.js +1 -1
- package/lib/commonjs/components/buttons/ButtonExtendedOutline.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonLink.js +6 -6
- package/lib/commonjs/components/buttons/ButtonLink.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonOutline.js +10 -10
- package/lib/commonjs/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonSolid.js +5 -5
- package/lib/commonjs/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButton.js +4 -4
- package/lib/commonjs/components/buttons/IconButton.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButtonContained.js +4 -4
- package/lib/commonjs/components/buttons/IconButtonContained.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButtonSolid.js +5 -5
- package/lib/commonjs/components/buttons/IconButtonSolid.js.map +1 -1
- package/lib/commonjs/components/index.js +11 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/layout/BlockButtons.js +82 -0
- package/lib/commonjs/components/layout/BlockButtons.js.map +1 -0
- package/lib/commonjs/components/layout/FooterWithButtons.js +41 -0
- package/lib/commonjs/components/layout/FooterWithButtons.js.map +1 -0
- package/lib/commonjs/components/layout/index.js +11 -0
- package/lib/commonjs/components/layout/index.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemAction.js +1 -1
- package/lib/commonjs/components/listitems/ListItemAction.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemCheckbox.js +1 -1
- package/lib/commonjs/components/listitems/ListItemCheckbox.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemIDP.js +1 -1
- package/lib/commonjs/components/listitems/ListItemIDP.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js +1 -1
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNav.js +1 -1
- package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNavAlert.js +1 -1
- package/lib/commonjs/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemRadio.js +1 -1
- package/lib/commonjs/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/commonjs/components/listitems/hooks/useListItemSpringAnimation.js +1 -1
- package/lib/commonjs/components/listitems/hooks/useListItemSpringAnimation.js.map +1 -1
- package/lib/commonjs/components/logos/LogoPayment.js +0 -2
- package/lib/commonjs/components/logos/LogoPayment.js.map +1 -1
- package/lib/commonjs/components/logos/LogoPaymentExt.js +0 -2
- package/lib/commonjs/components/logos/LogoPaymentExt.js.map +1 -1
- package/lib/commonjs/components/pictograms/Pictogram.js +6 -4
- package/lib/commonjs/components/pictograms/Pictogram.js.map +1 -1
- package/lib/commonjs/components/pictograms/README.md +4 -11
- package/lib/commonjs/components/pictograms/index.js +1 -22
- package/lib/commonjs/components/pictograms/index.js.map +1 -1
- package/lib/commonjs/components/pictograms/svg/{PictogramSectionMessages.js → PictogramMessages.js} +3 -3
- package/lib/commonjs/components/pictograms/svg/PictogramMessages.js.map +1 -0
- package/lib/commonjs/components/tabs/TabItem.js +1 -1
- package/lib/commonjs/components/tabs/TabItem.js.map +1 -1
- package/lib/commonjs/components/tabs/TabNavigation.js +2 -2
- package/lib/commonjs/components/tabs/TabNavigation.js.map +1 -1
- package/lib/commonjs/components/textInput/TextInputBase.js +5 -5
- package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
- package/lib/commonjs/components/textInput/TextInputPassword.js +1 -1
- package/lib/commonjs/components/textInput/TextInputPassword.js.map +1 -1
- package/lib/commonjs/components/textInput/TextInputValidation.js +2 -2
- package/lib/commonjs/components/textInput/TextInputValidation.js.map +1 -1
- package/lib/commonjs/stories/ButtonDS.stories.js +34 -0
- package/lib/commonjs/stories/ButtonDS.stories.js.map +1 -0
- package/lib/commonjs/stories/H1.stories.js +33 -0
- package/lib/commonjs/stories/H1.stories.js.map +1 -0
- package/lib/commonjs/stories/H2.stories.js +33 -0
- package/lib/commonjs/stories/H2.stories.js.map +1 -0
- package/lib/commonjs/stories/H3.stories.js +33 -0
- package/lib/commonjs/stories/H3.stories.js.map +1 -0
- package/lib/commonjs/stories/H4.stories.js +33 -0
- package/lib/commonjs/stories/H4.stories.js.map +1 -0
- package/lib/commonjs/stories/H5.stories.js +33 -0
- package/lib/commonjs/stories/H5.stories.js.map +1 -0
- package/lib/commonjs/stories/H6.stories.js +33 -0
- package/lib/commonjs/stories/H6.stories.js.map +1 -0
- package/lib/commonjs/stories/Label.stories.js +33 -0
- package/lib/commonjs/stories/Label.stories.js.map +1 -0
- package/lib/commonjs/stories/LabelSmall.stories.js +33 -0
- package/lib/commonjs/stories/LabelSmall.stories.js.map +1 -0
- package/lib/commonjs/stories/Link.stories.js +33 -0
- package/lib/commonjs/stories/Link.stories.js.map +1 -0
- package/lib/commonjs/stories/Monospace.stories.js +33 -0
- package/lib/commonjs/stories/Monospace.stories.js.map +1 -0
- package/lib/commonjs/utils/fonts.js +13 -4
- package/lib/commonjs/utils/fonts.js.map +1 -1
- package/lib/module/components/alert/Alert.js +1 -1
- package/lib/module/components/alert/Alert.js.map +1 -1
- package/lib/module/components/banner/Banner.js +1 -1
- package/lib/module/components/banner/Banner.js.map +1 -1
- package/lib/module/components/buttons/ButtonExtendedOutline.js +1 -1
- package/lib/module/components/buttons/ButtonExtendedOutline.js.map +1 -1
- package/lib/module/components/buttons/ButtonLink.js +6 -6
- package/lib/module/components/buttons/ButtonLink.js.map +1 -1
- package/lib/module/components/buttons/ButtonOutline.js +10 -10
- package/lib/module/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/module/components/buttons/ButtonSolid.js +5 -5
- package/lib/module/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/module/components/buttons/IconButton.js +4 -4
- package/lib/module/components/buttons/IconButton.js.map +1 -1
- package/lib/module/components/buttons/IconButtonContained.js +4 -4
- package/lib/module/components/buttons/IconButtonContained.js.map +1 -1
- package/lib/module/components/buttons/IconButtonSolid.js +5 -5
- package/lib/module/components/buttons/IconButtonSolid.js.map +1 -1
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/BlockButtons.js +73 -0
- package/lib/module/components/layout/BlockButtons.js.map +1 -0
- package/lib/module/components/layout/FooterWithButtons.js +32 -0
- package/lib/module/components/layout/FooterWithButtons.js.map +1 -0
- package/lib/module/components/layout/index.js +1 -0
- package/lib/module/components/layout/index.js.map +1 -1
- package/lib/module/components/listitems/ListItemAction.js +1 -1
- package/lib/module/components/listitems/ListItemAction.js.map +1 -1
- package/lib/module/components/listitems/ListItemCheckbox.js +1 -1
- package/lib/module/components/listitems/ListItemCheckbox.js.map +1 -1
- package/lib/module/components/listitems/ListItemIDP.js +1 -1
- package/lib/module/components/listitems/ListItemIDP.js.map +1 -1
- package/lib/module/components/listitems/ListItemInfoCopy.js +1 -1
- package/lib/module/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/module/components/listitems/ListItemNav.js +1 -1
- package/lib/module/components/listitems/ListItemNav.js.map +1 -1
- package/lib/module/components/listitems/ListItemNavAlert.js +1 -1
- package/lib/module/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/module/components/listitems/ListItemRadio.js +1 -1
- package/lib/module/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/module/components/listitems/hooks/useListItemSpringAnimation.js +1 -1
- package/lib/module/components/listitems/hooks/useListItemSpringAnimation.js.map +1 -1
- package/lib/module/components/logos/LogoPayment.js +0 -2
- package/lib/module/components/logos/LogoPayment.js.map +1 -1
- package/lib/module/components/logos/LogoPaymentExt.js +0 -2
- package/lib/module/components/logos/LogoPaymentExt.js.map +1 -1
- package/lib/module/components/pictograms/Pictogram.js +6 -4
- package/lib/module/components/pictograms/Pictogram.js.map +1 -1
- package/lib/module/components/pictograms/README.md +4 -11
- package/lib/module/components/pictograms/index.js +0 -2
- package/lib/module/components/pictograms/index.js.map +1 -1
- package/lib/module/components/pictograms/svg/{PictogramSectionMessages.js → PictogramMessages.js} +3 -3
- package/lib/module/components/pictograms/svg/PictogramMessages.js.map +1 -0
- package/lib/module/components/tabs/TabItem.js +1 -1
- package/lib/module/components/tabs/TabItem.js.map +1 -1
- package/lib/module/components/tabs/TabNavigation.js +2 -2
- package/lib/module/components/tabs/TabNavigation.js.map +1 -1
- package/lib/module/components/textInput/TextInputBase.js +5 -5
- package/lib/module/components/textInput/TextInputBase.js.map +1 -1
- package/lib/module/components/textInput/TextInputPassword.js +1 -1
- package/lib/module/components/textInput/TextInputPassword.js.map +1 -1
- package/lib/module/components/textInput/TextInputValidation.js +2 -2
- package/lib/module/components/textInput/TextInputValidation.js.map +1 -1
- package/lib/module/stories/ButtonDS.stories.js +27 -0
- package/lib/module/stories/ButtonDS.stories.js.map +1 -0
- package/lib/module/stories/H1.stories.js +26 -0
- package/lib/module/stories/H1.stories.js.map +1 -0
- package/lib/module/stories/H2.stories.js +26 -0
- package/lib/module/stories/H2.stories.js.map +1 -0
- package/lib/module/stories/H3.stories.js +26 -0
- package/lib/module/stories/H3.stories.js.map +1 -0
- package/lib/module/stories/H4.stories.js +26 -0
- package/lib/module/stories/H4.stories.js.map +1 -0
- package/lib/module/stories/H5.stories.js +26 -0
- package/lib/module/stories/H5.stories.js.map +1 -0
- package/lib/module/stories/H6.stories.js +26 -0
- package/lib/module/stories/H6.stories.js.map +1 -0
- package/lib/module/stories/Label.stories.js +26 -0
- package/lib/module/stories/Label.stories.js.map +1 -0
- package/lib/module/stories/LabelSmall.stories.js +26 -0
- package/lib/module/stories/LabelSmall.stories.js.map +1 -0
- package/lib/module/stories/Link.stories.js +26 -0
- package/lib/module/stories/Link.stories.js.map +1 -0
- package/lib/module/stories/Monospace.stories.js +26 -0
- package/lib/module/stories/Monospace.stories.js.map +1 -0
- package/lib/module/utils/fonts.js +13 -4
- package/lib/module/utils/fonts.js.map +1 -1
- package/lib/typescript/components/buttons/ButtonSolid.d.ts +16 -0
- package/lib/typescript/components/buttons/ButtonSolid.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +1 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/layout/BlockButtons.d.ts +53 -0
- package/lib/typescript/components/layout/BlockButtons.d.ts.map +1 -0
- package/lib/typescript/components/layout/FooterWithButtons.d.ts +9 -0
- package/lib/typescript/components/layout/FooterWithButtons.d.ts.map +1 -0
- package/lib/typescript/components/layout/index.d.ts +1 -0
- package/lib/typescript/components/layout/index.d.ts.map +1 -1
- package/lib/typescript/components/logos/LogoPayment.d.ts +0 -1
- package/lib/typescript/components/logos/LogoPayment.d.ts.map +1 -1
- package/lib/typescript/components/logos/LogoPaymentExt.d.ts +0 -1
- package/lib/typescript/components/logos/LogoPaymentExt.d.ts.map +1 -1
- package/lib/typescript/components/pictograms/Pictogram.d.ts +1 -0
- package/lib/typescript/components/pictograms/Pictogram.d.ts.map +1 -1
- package/lib/typescript/components/pictograms/index.d.ts +0 -2
- package/lib/typescript/components/pictograms/index.d.ts.map +1 -1
- package/lib/typescript/components/pictograms/svg/PictogramMessages.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramMessages.d.ts.map +1 -0
- package/lib/typescript/components/textInput/TextInputBase.d.ts.map +1 -1
- package/lib/typescript/stories/ButtonDS.stories.d.ts +14 -0
- package/lib/typescript/stories/ButtonDS.stories.d.ts.map +1 -0
- package/lib/typescript/stories/H1.stories.d.ts +19 -0
- package/lib/typescript/stories/H1.stories.d.ts.map +1 -0
- package/lib/typescript/stories/H2.stories.d.ts +19 -0
- package/lib/typescript/stories/H2.stories.d.ts.map +1 -0
- package/lib/typescript/stories/H3.stories.d.ts +19 -0
- package/lib/typescript/stories/H3.stories.d.ts.map +1 -0
- package/lib/typescript/stories/H4.stories.d.ts +19 -0
- package/lib/typescript/stories/H4.stories.d.ts.map +1 -0
- package/lib/typescript/stories/H5.stories.d.ts +27 -0
- package/lib/typescript/stories/H5.stories.d.ts.map +1 -0
- package/lib/typescript/stories/H6.stories.d.ts +19 -0
- package/lib/typescript/stories/H6.stories.d.ts.map +1 -0
- package/lib/typescript/stories/Label.stories.d.ts +19 -0
- package/lib/typescript/stories/Label.stories.d.ts.map +1 -0
- package/lib/typescript/stories/LabelSmall.stories.d.ts +21 -0
- package/lib/typescript/stories/LabelSmall.stories.d.ts.map +1 -0
- package/lib/typescript/stories/Link.stories.d.ts +21 -0
- package/lib/typescript/stories/Link.stories.d.ts.map +1 -0
- package/lib/typescript/stories/Monospace.stories.d.ts +19 -0
- package/lib/typescript/stories/Monospace.stories.d.ts.map +1 -0
- package/lib/typescript/utils/fonts.d.ts.map +1 -1
- package/package.json +25 -4
- package/src/components/buttons/ButtonSolid.tsx +16 -0
- package/src/components/index.tsx +1 -0
- package/src/components/layout/BlockButtons.tsx +142 -0
- package/src/components/layout/FooterWithButtons.tsx +37 -0
- package/src/components/layout/index.tsx +1 -0
- package/src/components/logos/LogoPayment.tsx +0 -2
- package/src/components/logos/LogoPaymentExt.tsx +0 -2
- package/src/components/pictograms/Pictogram.tsx +6 -4
- package/src/components/pictograms/README.md +4 -11
- package/src/components/pictograms/index.tsx +0 -2
- package/src/components/pictograms/svg/{PictogramSectionMessages.tsx → PictogramMessages.tsx} +2 -6
- package/src/components/textInput/TextInputBase.tsx +2 -2
- package/src/stories/ButtonDS.stories.ts +31 -0
- package/src/stories/H1.stories.ts +28 -0
- package/src/stories/H2.stories.ts +28 -0
- package/src/stories/H3.stories.ts +28 -0
- package/src/stories/H4.stories.ts +28 -0
- package/src/stories/H5.stories.ts +28 -0
- package/src/stories/H6.stories.ts +28 -0
- package/src/stories/Label.stories.ts +28 -0
- package/src/stories/LabelSmall.stories.ts +28 -0
- package/src/stories/Link.stories.ts +28 -0
- package/src/stories/Monospace.stories.ts +28 -0
- package/src/utils/fonts.ts +12 -5
- package/lib/commonjs/components/logos/svg/LogoPaymentExtSatispay.js +0 -38
- package/lib/commonjs/components/logos/svg/LogoPaymentExtSatispay.js.map +0 -1
- package/lib/commonjs/components/logos/svg/LogoPaymentSatispay.js +0 -33
- package/lib/commonjs/components/logos/svg/LogoPaymentSatispay.js.map +0 -1
- package/lib/commonjs/components/logos/svg/originals/LogoPaymentExtSatispay.svg +0 -22
- package/lib/commonjs/components/logos/svg/originals/LogoPaymentSatispay.svg +0 -11
- package/lib/commonjs/components/pictograms/PictogramSection.js +0 -42
- package/lib/commonjs/components/pictograms/PictogramSection.js.map +0 -1
- package/lib/commonjs/components/pictograms/SectionPictogram.js +0 -44
- package/lib/commonjs/components/pictograms/SectionPictogram.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramSectionDocuments.js +0 -41
- package/lib/commonjs/components/pictograms/svg/PictogramSectionDocuments.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramSectionMessages.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramSectionPayments.js +0 -42
- package/lib/commonjs/components/pictograms/svg/PictogramSectionPayments.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramSectionProfile.js +0 -39
- package/lib/commonjs/components/pictograms/svg/PictogramSectionProfile.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramSectionServices.js +0 -45
- package/lib/commonjs/components/pictograms/svg/PictogramSectionServices.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/PictogramSectionSettings.js +0 -31
- package/lib/commonjs/components/pictograms/svg/PictogramSectionSettings.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/SectionPictogramDocuments.js +0 -41
- package/lib/commonjs/components/pictograms/svg/SectionPictogramDocuments.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/SectionPictogramMessages.js +0 -31
- package/lib/commonjs/components/pictograms/svg/SectionPictogramMessages.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/SectionPictogramPayments.js +0 -42
- package/lib/commonjs/components/pictograms/svg/SectionPictogramPayments.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/SectionPictogramProfile.js +0 -39
- package/lib/commonjs/components/pictograms/svg/SectionPictogramProfile.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/SectionPictogramServices.js +0 -45
- package/lib/commonjs/components/pictograms/svg/SectionPictogramServices.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/SectionPictogramSettings.js +0 -31
- package/lib/commonjs/components/pictograms/svg/SectionPictogramSettings.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/SectionPictogramSmile.js +0 -29
- package/lib/commonjs/components/pictograms/svg/SectionPictogramSmile.js.map +0 -1
- package/lib/commonjs/components/pictograms/svg/originals/SearchPictogram.svg +0 -22
- package/lib/commonjs/components/pictograms/svg/originals/SectionPictogramDocuments.svg +0 -20
- package/lib/commonjs/components/pictograms/svg/originals/SectionPictogramPayments.svg +0 -19
- package/lib/commonjs/components/pictograms/svg/originals/SectionPictogramProfile.svg +0 -18
- package/lib/commonjs/components/pictograms/svg/originals/SectionPictogramServices.svg +0 -26
- package/lib/commonjs/components/pictograms/svg/originals/SectionPictogramSettings.svg +0 -8
- package/lib/module/components/logos/svg/LogoPaymentExtSatispay.js +0 -30
- package/lib/module/components/logos/svg/LogoPaymentExtSatispay.js.map +0 -1
- package/lib/module/components/logos/svg/LogoPaymentSatispay.js +0 -25
- package/lib/module/components/logos/svg/LogoPaymentSatispay.js.map +0 -1
- package/lib/module/components/logos/svg/originals/LogoPaymentExtSatispay.svg +0 -22
- package/lib/module/components/logos/svg/originals/LogoPaymentSatispay.svg +0 -11
- package/lib/module/components/pictograms/PictogramSection.js +0 -34
- package/lib/module/components/pictograms/PictogramSection.js.map +0 -1
- package/lib/module/components/pictograms/SectionPictogram.js +0 -36
- package/lib/module/components/pictograms/SectionPictogram.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramSectionDocuments.js +0 -33
- package/lib/module/components/pictograms/svg/PictogramSectionDocuments.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramSectionMessages.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramSectionPayments.js +0 -34
- package/lib/module/components/pictograms/svg/PictogramSectionPayments.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramSectionProfile.js +0 -31
- package/lib/module/components/pictograms/svg/PictogramSectionProfile.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramSectionServices.js +0 -37
- package/lib/module/components/pictograms/svg/PictogramSectionServices.js.map +0 -1
- package/lib/module/components/pictograms/svg/PictogramSectionSettings.js +0 -23
- package/lib/module/components/pictograms/svg/PictogramSectionSettings.js.map +0 -1
- package/lib/module/components/pictograms/svg/SectionPictogramDocuments.js +0 -33
- package/lib/module/components/pictograms/svg/SectionPictogramDocuments.js.map +0 -1
- package/lib/module/components/pictograms/svg/SectionPictogramMessages.js +0 -23
- package/lib/module/components/pictograms/svg/SectionPictogramMessages.js.map +0 -1
- package/lib/module/components/pictograms/svg/SectionPictogramPayments.js +0 -34
- package/lib/module/components/pictograms/svg/SectionPictogramPayments.js.map +0 -1
- package/lib/module/components/pictograms/svg/SectionPictogramProfile.js +0 -31
- package/lib/module/components/pictograms/svg/SectionPictogramProfile.js.map +0 -1
- package/lib/module/components/pictograms/svg/SectionPictogramServices.js +0 -37
- package/lib/module/components/pictograms/svg/SectionPictogramServices.js.map +0 -1
- package/lib/module/components/pictograms/svg/SectionPictogramSettings.js +0 -23
- package/lib/module/components/pictograms/svg/SectionPictogramSettings.js.map +0 -1
- package/lib/module/components/pictograms/svg/SectionPictogramSmile.js +0 -21
- package/lib/module/components/pictograms/svg/SectionPictogramSmile.js.map +0 -1
- package/lib/module/components/pictograms/svg/originals/SearchPictogram.svg +0 -22
- package/lib/module/components/pictograms/svg/originals/SectionPictogramDocuments.svg +0 -20
- package/lib/module/components/pictograms/svg/originals/SectionPictogramPayments.svg +0 -19
- package/lib/module/components/pictograms/svg/originals/SectionPictogramProfile.svg +0 -18
- package/lib/module/components/pictograms/svg/originals/SectionPictogramServices.svg +0 -26
- package/lib/module/components/pictograms/svg/originals/SectionPictogramSettings.svg +0 -8
- package/lib/typescript/components/logos/svg/LogoPaymentExtSatispay.d.ts +0 -5
- package/lib/typescript/components/logos/svg/LogoPaymentExtSatispay.d.ts.map +0 -1
- package/lib/typescript/components/logos/svg/LogoPaymentSatispay.d.ts +0 -5
- package/lib/typescript/components/logos/svg/LogoPaymentSatispay.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/PictogramSection.d.ts +0 -20
- package/lib/typescript/components/pictograms/PictogramSection.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/SectionPictogram.d.ts +0 -21
- package/lib/typescript/components/pictograms/SectionPictogram.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramSectionDocuments.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramSectionDocuments.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramSectionMessages.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramSectionMessages.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramSectionPayments.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramSectionPayments.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramSectionProfile.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramSectionProfile.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramSectionServices.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramSectionServices.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/PictogramSectionSettings.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/PictogramSectionSettings.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/SectionPictogramDocuments.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/SectionPictogramDocuments.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/SectionPictogramMessages.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/SectionPictogramMessages.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/SectionPictogramPayments.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/SectionPictogramPayments.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/SectionPictogramProfile.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/SectionPictogramProfile.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/SectionPictogramServices.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/SectionPictogramServices.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/SectionPictogramSettings.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/SectionPictogramSettings.d.ts.map +0 -1
- package/lib/typescript/components/pictograms/svg/SectionPictogramSmile.d.ts +0 -5
- package/lib/typescript/components/pictograms/svg/SectionPictogramSmile.d.ts.map +0 -1
- package/src/components/logos/svg/LogoPaymentExtSatispay.tsx +0 -30
- package/src/components/logos/svg/LogoPaymentSatispay.tsx +0 -19
- package/src/components/logos/svg/originals/LogoPaymentExtSatispay.svg +0 -22
- package/src/components/logos/svg/originals/LogoPaymentSatispay.svg +0 -11
- package/src/components/pictograms/PictogramSection.tsx +0 -42
- package/src/components/pictograms/SectionPictogram.tsx +0 -48
- package/src/components/pictograms/svg/PictogramSectionDocuments.tsx +0 -32
- package/src/components/pictograms/svg/PictogramSectionPayments.tsx +0 -31
- package/src/components/pictograms/svg/PictogramSectionProfile.tsx +0 -30
- package/src/components/pictograms/svg/PictogramSectionServices.tsx +0 -38
- package/src/components/pictograms/svg/PictogramSectionSettings.tsx +0 -20
- package/src/components/pictograms/svg/SectionPictogramDocuments.tsx +0 -32
- package/src/components/pictograms/svg/SectionPictogramMessages.tsx +0 -20
- package/src/components/pictograms/svg/SectionPictogramPayments.tsx +0 -31
- package/src/components/pictograms/svg/SectionPictogramProfile.tsx +0 -30
- package/src/components/pictograms/svg/SectionPictogramServices.tsx +0 -38
- package/src/components/pictograms/svg/SectionPictogramSettings.tsx +0 -20
- package/src/components/pictograms/svg/SectionPictogramSmile.tsx +0 -18
- package/src/components/pictograms/svg/originals/SearchPictogram.svg +0 -22
- package/src/components/pictograms/svg/originals/SectionPictogramDocuments.svg +0 -20
- package/src/components/pictograms/svg/originals/SectionPictogramPayments.svg +0 -19
- package/src/components/pictograms/svg/originals/SectionPictogramProfile.svg +0 -18
- package/src/components/pictograms/svg/originals/SectionPictogramServices.svg +0 -26
- package/src/components/pictograms/svg/originals/SectionPictogramSettings.svg +0 -8
- /package/lib/commonjs/components/pictograms/svg/originals/{SectionPictogramMessages.svg → PictogramMessages.svg} +0 -0
- /package/lib/module/components/pictograms/svg/originals/{SectionPictogramMessages.svg → PictogramMessages.svg} +0 -0
- /package/src/components/pictograms/svg/originals/{SectionPictogramMessages.svg → PictogramMessages.svg} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../src/utils/fonts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,KAAK,CAAC;AAE9C,QAAA,MAAM,OAAO,mDAAoD,CAAC;AAClE,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpD,QAAA,MAAM,YAAY,uCAAwC,CAAC;AAC3D,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D;;GAEG;AACH,QAAA,MAAM,KAAK;;;;
|
|
1
|
+
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../src/utils/fonts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,KAAK,CAAC;AAE9C,QAAA,MAAM,OAAO,mDAAoD,CAAC;AAClE,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpD,QAAA,MAAM,YAAY,uCAAwC,CAAC;AAC3D,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D;;GAEG;AACH,QAAA,MAAM,KAAK;;;;CAgBV,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,YAAY,EAAE,eAAe,CAK7D,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,KAAK,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,WAAW,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,YAAY,EAAE,eAAe,CAKhE,CAAC;AAEF,oBAAY,SAAS;IACnB,QAAQ,WAAW;IACnB,QAAQ,WAAW;CACpB;AAED,KAAK,eAAe,GAAG;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,SACvB,UAAU,WACP,YAAY,aACX,OAAO,KAChB,MAMC,CAAC;AAEL;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,YACtB,YAAY,GAAG,SAAS,aACtB,OAAO,GAAG,SAAS,SACvB,UAAU,GAAG,SAAS,KAC3B,eAgBC,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.6.0",
|
|
4
4
|
"description": "test",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -34,7 +34,9 @@
|
|
|
34
34
|
"prepack": "bob build",
|
|
35
35
|
"release": "release-it",
|
|
36
36
|
"example": "yarn --cwd example",
|
|
37
|
-
"bootstrap": "yarn example && yarn install"
|
|
37
|
+
"bootstrap": "yarn example && yarn install",
|
|
38
|
+
"storybook": "storybook dev -p 6006",
|
|
39
|
+
"build-storybook": "storybook build"
|
|
38
40
|
},
|
|
39
41
|
"keywords": [
|
|
40
42
|
"react-native",
|
|
@@ -49,13 +51,25 @@
|
|
|
49
51
|
},
|
|
50
52
|
"homepage": "https://github.com/pagopa/io-app-design-system#readme",
|
|
51
53
|
"devDependencies": {
|
|
54
|
+
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
|
|
52
55
|
"@commitlint/config-conventional": "^17.0.2",
|
|
53
56
|
"@evilmartians/lefthook": "^1.2.2",
|
|
54
57
|
"@react-native-community/eslint-config": "^3.0.2",
|
|
55
58
|
"@release-it/conventional-changelog": "^5.0.0",
|
|
59
|
+
"@storybook/addon-essentials": "^7.4.0",
|
|
60
|
+
"@storybook/addon-interactions": "^7.4.0",
|
|
61
|
+
"@storybook/addon-links": "^7.4.0",
|
|
62
|
+
"@storybook/addon-onboarding": "^1.0.8",
|
|
63
|
+
"@storybook/addon-react-native-web": "^0.0.21",
|
|
64
|
+
"@storybook/blocks": "^7.4.0",
|
|
65
|
+
"@storybook/react": "^7.4.0",
|
|
66
|
+
"@storybook/react-webpack5": "^7.4.0",
|
|
67
|
+
"@storybook/testing-library": "^0.2.0",
|
|
56
68
|
"@types/jest": "^28.1.2",
|
|
57
69
|
"@types/react": "~17.0.38",
|
|
58
70
|
"@types/react-native": "0.70.0",
|
|
71
|
+
"babel-loader": "^9.1.3",
|
|
72
|
+
"babel-plugin-react-native-web": "^0.19.8",
|
|
59
73
|
"commitlint": "^17.0.2",
|
|
60
74
|
"del-cli": "^5.0.0",
|
|
61
75
|
"eslint": "^8.4.1",
|
|
@@ -63,15 +77,21 @@
|
|
|
63
77
|
"eslint-plugin-functional": "^5.0.8",
|
|
64
78
|
"eslint-plugin-import": "^2.27.5",
|
|
65
79
|
"eslint-plugin-prettier": "^4.0.0",
|
|
80
|
+
"eslint-plugin-storybook": "^0.6.13",
|
|
66
81
|
"jest": "^29.5.0",
|
|
82
|
+
"metro-react-native-babel-preset": "^0.77.0",
|
|
67
83
|
"pod-install": "^0.1.0",
|
|
68
84
|
"prettier": "^2.0.5",
|
|
69
85
|
"react": "18.2.0",
|
|
86
|
+
"react-dom": "^18.2.0",
|
|
70
87
|
"react-native": "0.71.8",
|
|
71
88
|
"react-native-builder-bob": "^0.20.0",
|
|
72
89
|
"react-native-i18n": "^2.0.15",
|
|
90
|
+
"react-native-web": "^0.18.12",
|
|
91
|
+
"react-native-web-linear-gradient": "^1.1.2",
|
|
73
92
|
"react-test-renderer": "^18.2.0",
|
|
74
93
|
"release-it": "^15.0.0",
|
|
94
|
+
"storybook": "^7.4.0",
|
|
75
95
|
"typescript": "^4.9.5"
|
|
76
96
|
},
|
|
77
97
|
"resolutions": {
|
|
@@ -80,12 +100,12 @@
|
|
|
80
100
|
"peerDependencies": {
|
|
81
101
|
"react": "*",
|
|
82
102
|
"react-native": "*",
|
|
103
|
+
"react-native-gesture-handler": "*",
|
|
83
104
|
"react-native-haptic-feedback": "*",
|
|
84
105
|
"react-native-linear-gradient": "*",
|
|
85
106
|
"react-native-reanimated": "*",
|
|
86
|
-
"react-native-svg": "*",
|
|
87
107
|
"react-native-safe-area-context": "*",
|
|
88
|
-
"react-native-
|
|
108
|
+
"react-native-svg": "*"
|
|
89
109
|
},
|
|
90
110
|
"engines": {
|
|
91
111
|
"node": ">= 16.0.0"
|
|
@@ -149,6 +169,7 @@
|
|
|
149
169
|
]
|
|
150
170
|
},
|
|
151
171
|
"dependencies": {
|
|
172
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
152
173
|
"@expo/vector-icons": "^13.0.0",
|
|
153
174
|
"@pagopa/ts-commons": "^12.0.0",
|
|
154
175
|
"@testing-library/jest-native": "^5.4.2",
|
|
@@ -39,12 +39,28 @@ const styles = StyleSheet.create({
|
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
export type ButtonSolidProps = WithTestID<{
|
|
42
|
+
/**
|
|
43
|
+
* @default primary
|
|
44
|
+
*/
|
|
42
45
|
color?: ButtonSolidColor;
|
|
43
46
|
label: string;
|
|
47
|
+
/**
|
|
48
|
+
* Renders a small variant of the button. This property applies to the legacy look only
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
44
51
|
small?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
45
55
|
fullWidth?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
46
59
|
disabled?: boolean;
|
|
47
60
|
icon?: IOIcons;
|
|
61
|
+
/**
|
|
62
|
+
* @default start
|
|
63
|
+
*/
|
|
48
64
|
iconPosition?: "start" | "end";
|
|
49
65
|
accessibilityLabel: string;
|
|
50
66
|
accessibilityHint?: string;
|
package/src/components/index.tsx
CHANGED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { View, StyleSheet } from "react-native";
|
|
3
|
+
import { HSpacer } from "../spacer/Spacer";
|
|
4
|
+
import { ButtonOutline, ButtonSolid, ButtonSolidProps } from "../buttons";
|
|
5
|
+
import { IOStyles } from "../../core";
|
|
6
|
+
|
|
7
|
+
const styles = StyleSheet.create({
|
|
8
|
+
button: {
|
|
9
|
+
alignContent: "center",
|
|
10
|
+
justifyContent: "center",
|
|
11
|
+
flex: 1
|
|
12
|
+
},
|
|
13
|
+
buttonTwoThirds: {
|
|
14
|
+
alignContent: "center",
|
|
15
|
+
flex: 2
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
type CommonProps = Readonly<{
|
|
20
|
+
primary: BlockButtonProps;
|
|
21
|
+
accessible?: boolean;
|
|
22
|
+
}>;
|
|
23
|
+
|
|
24
|
+
export type BlockButtonProps = {
|
|
25
|
+
type: "Solid" | "Outline";
|
|
26
|
+
buttonProps: ButtonSolidProps;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* | single button |
|
|
31
|
+
*/
|
|
32
|
+
export interface SingleButton extends CommonProps {
|
|
33
|
+
type: "SingleButton";
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* | left | right |
|
|
38
|
+
*/
|
|
39
|
+
export interface TwoButtonsInlineHalf extends CommonProps {
|
|
40
|
+
type: "TwoButtonsInlineHalf";
|
|
41
|
+
secondary: BlockButtonProps;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* | left | right |
|
|
46
|
+
*/
|
|
47
|
+
interface TwoButtonsInlineThird extends CommonProps {
|
|
48
|
+
type: "TwoButtonsInlineThird";
|
|
49
|
+
secondary: BlockButtonProps;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* | left | right |
|
|
54
|
+
*/
|
|
55
|
+
interface TwoButtonsInlineThirdInverted extends CommonProps {
|
|
56
|
+
type: "TwoButtonsInlineThirdInverted";
|
|
57
|
+
secondary: BlockButtonProps;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* | left | mid | right |
|
|
62
|
+
*/
|
|
63
|
+
interface ThreeButtonsInLine extends CommonProps {
|
|
64
|
+
type: "ThreeButtonsInLine";
|
|
65
|
+
secondary: BlockButtonProps;
|
|
66
|
+
third: BlockButtonProps;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
type Props =
|
|
70
|
+
| SingleButton
|
|
71
|
+
| TwoButtonsInlineHalf
|
|
72
|
+
| TwoButtonsInlineThird
|
|
73
|
+
| TwoButtonsInlineThirdInverted
|
|
74
|
+
| ThreeButtonsInLine;
|
|
75
|
+
|
|
76
|
+
export type BlockButtonsProps = Props;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Implements a component that show buttons on a line on 1, 2 or 3 buttons
|
|
80
|
+
*/
|
|
81
|
+
export const BlockButtons = (props: Props) => {
|
|
82
|
+
const renderRightButton = () => {
|
|
83
|
+
if (props.type === "SingleButton") {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const secondaryButtonStyle =
|
|
88
|
+
props.type === "TwoButtonsInlineThird"
|
|
89
|
+
? styles.buttonTwoThirds
|
|
90
|
+
: styles.button;
|
|
91
|
+
|
|
92
|
+
return (
|
|
93
|
+
<React.Fragment>
|
|
94
|
+
<HSpacer size={16} />
|
|
95
|
+
{renderButton(props.secondary, secondaryButtonStyle)}
|
|
96
|
+
</React.Fragment>
|
|
97
|
+
);
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const renderMidButton = () => {
|
|
101
|
+
if (props.type !== "ThreeButtonsInLine") {
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return (
|
|
106
|
+
<React.Fragment>
|
|
107
|
+
<HSpacer size={16} />
|
|
108
|
+
{renderButton(props.third, styles.button)}
|
|
109
|
+
</React.Fragment>
|
|
110
|
+
);
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
const renderLeftButton = () => {
|
|
114
|
+
const primaryButtonStyle =
|
|
115
|
+
props.type === "TwoButtonsInlineThirdInverted"
|
|
116
|
+
? styles.buttonTwoThirds
|
|
117
|
+
: styles.button;
|
|
118
|
+
|
|
119
|
+
return renderButton(props.primary, primaryButtonStyle);
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
const renderButton = (
|
|
123
|
+
props: BlockButtonProps,
|
|
124
|
+
style: React.ComponentProps<typeof View>["style"]
|
|
125
|
+
) => (
|
|
126
|
+
<View style={style}>
|
|
127
|
+
{props.type === "Solid" ? (
|
|
128
|
+
<ButtonSolid {...props.buttonProps} />
|
|
129
|
+
) : (
|
|
130
|
+
<ButtonOutline {...props.buttonProps} />
|
|
131
|
+
)}
|
|
132
|
+
</View>
|
|
133
|
+
);
|
|
134
|
+
|
|
135
|
+
return (
|
|
136
|
+
<View style={{ ...IOStyles.flex, ...IOStyles.row }}>
|
|
137
|
+
{renderLeftButton()}
|
|
138
|
+
{renderMidButton()}
|
|
139
|
+
{renderRightButton()}
|
|
140
|
+
</View>
|
|
141
|
+
);
|
|
142
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet, View } from "react-native";
|
|
4
|
+
import { IOStyles } from "../../core";
|
|
5
|
+
import { BlockButtons, BlockButtonsProps } from "./BlockButtons";
|
|
6
|
+
|
|
7
|
+
// TODO: Refactor with an unique component like `FooterTopShadow` after bonus vacanze
|
|
8
|
+
const styles = StyleSheet.create({
|
|
9
|
+
container: {
|
|
10
|
+
overflow: "hidden",
|
|
11
|
+
width: "100%",
|
|
12
|
+
// This Magic number is an heritage of the app code-base, this component should be removed in favor of `GradientBottomAction`
|
|
13
|
+
marginTop: -50,
|
|
14
|
+
paddingTop: 50,
|
|
15
|
+
position: "absolute",
|
|
16
|
+
bottom: 0
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Implements a component that show buttons as sticky footer
|
|
22
|
+
* It can include 1, 2 or 3 buttons. If they are 2, they can have the inlineHalf or the inlineOneThird style
|
|
23
|
+
*/
|
|
24
|
+
export const FooterWithButtons = (props: BlockButtonsProps) => (
|
|
25
|
+
<View
|
|
26
|
+
style={styles.container}
|
|
27
|
+
accessible={props.accessible}
|
|
28
|
+
pointerEvents={"box-none"}
|
|
29
|
+
testID="FooterWithButtons"
|
|
30
|
+
>
|
|
31
|
+
<View style={IOStyles.footer}>
|
|
32
|
+
<BlockButtons {...props} />
|
|
33
|
+
</View>
|
|
34
|
+
</View>
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
export default FooterWithButtons;
|
|
@@ -13,7 +13,6 @@ import LogoPaymentPayPal from "./svg/LogoPaymentPayPal";
|
|
|
13
13
|
import LogoPaymentBancomatPay from "./svg/LogoPaymentBancomatPay";
|
|
14
14
|
import LogoPaymentVPay from "./svg/LogoPaymentVPay";
|
|
15
15
|
import LogoPaymentPagoBancomat from "./svg/LogoPaymentPagoBancomat";
|
|
16
|
-
import LogoPaymentSatispay from "./svg/LogoPaymentSatispay";
|
|
17
16
|
import LogoPaymentPostepay from "./svg/LogoPaymentPostepay";
|
|
18
17
|
import LogoPaymentMyBank from "./svg/LogoPaymentMyBank";
|
|
19
18
|
import LogoPaymentApplePay from "./svg/LogoPaymentApplePay";
|
|
@@ -31,7 +30,6 @@ export const IOPaymentLogos = {
|
|
|
31
30
|
bancomatPay: LogoPaymentBancomatPay,
|
|
32
31
|
vPay: LogoPaymentVPay,
|
|
33
32
|
pagoBancomat: LogoPaymentPagoBancomat,
|
|
34
|
-
satispay: LogoPaymentSatispay,
|
|
35
33
|
postepay: LogoPaymentPostepay,
|
|
36
34
|
myBank: LogoPaymentMyBank,
|
|
37
35
|
applePay: LogoPaymentApplePay
|
|
@@ -13,7 +13,6 @@ import LogoPaymentExtUnionPay from "./svg/LogoPaymentExtUnionPay";
|
|
|
13
13
|
import LogoPaymentExtPayPal from "./svg/LogoPaymentExtPayPal";
|
|
14
14
|
import LogoPaymentExtBancomatPay from "./svg/LogoPaymentExtBancomatPay";
|
|
15
15
|
import LogoPaymentExtPostepay from "./svg/LogoPaymentExtPostepay";
|
|
16
|
-
import LogoPaymentExtSatispay from "./svg/LogoPaymentExtSatispay";
|
|
17
16
|
import LogoPaymentExtPagoBancomat from "./svg/LogoPaymentExtPagoBancomat";
|
|
18
17
|
import LogoPaymentExtApplePay from "./svg/LogoPaymentExtApplePay";
|
|
19
18
|
|
|
@@ -30,7 +29,6 @@ export const IOPaymentExtLogos = {
|
|
|
30
29
|
payPal: LogoPaymentExtPayPal,
|
|
31
30
|
bancomatPay: LogoPaymentExtBancomatPay,
|
|
32
31
|
postepay: LogoPaymentExtPostepay,
|
|
33
|
-
satispay: LogoPaymentExtSatispay,
|
|
34
32
|
pagoBancomat: LogoPaymentExtPagoBancomat,
|
|
35
33
|
applePay: LogoPaymentExtApplePay
|
|
36
34
|
} as const;
|
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { ColorValue } from "react-native";
|
|
3
3
|
import { IOColors } from "../../core/IOColors";
|
|
4
4
|
|
|
5
|
+
import PictogramMessages from "./svg/PictogramMessages";
|
|
5
6
|
import PictogramAbacus from "./svg/PictogramAbacus";
|
|
6
7
|
import PictogramAirBaloon from "./svg/PictogramAirBaloon";
|
|
7
8
|
import PictogramAirship from "./svg/PictogramAirship";
|
|
@@ -44,10 +45,11 @@ import PictogramSuccess from "./svg/PictogramSuccess";
|
|
|
44
45
|
import PictogramFocusOn from "./svg/PictogramFocusOn";
|
|
45
46
|
|
|
46
47
|
export const IOPictograms = {
|
|
48
|
+
messages: PictogramMessages,
|
|
47
49
|
airBaloon: PictogramAirBaloon,
|
|
48
50
|
abacus: PictogramAbacus,
|
|
49
|
-
emailValidation: PictogramEmailValidation
|
|
50
|
-
emailToValidate: PictogramEmailToValidate
|
|
51
|
+
emailValidation: PictogramEmailValidation,
|
|
52
|
+
emailToValidate: PictogramEmailToValidate,
|
|
51
53
|
inbox: PictogramInbox,
|
|
52
54
|
piggyBank: PictogramPiggyBank,
|
|
53
55
|
processing: PictogramProcessing,
|
|
@@ -60,7 +62,7 @@ export const IOPictograms = {
|
|
|
60
62
|
error: PictogramError,
|
|
61
63
|
umbrella: PictogramUmbrella,
|
|
62
64
|
inProgress: PictogramInProgress,
|
|
63
|
-
fireworks: PictogramFireworks
|
|
65
|
+
fireworks: PictogramFireworks,
|
|
64
66
|
puzzle: PictogramPuzzle,
|
|
65
67
|
question: PictogramQuestion,
|
|
66
68
|
pin: PictogramPin,
|
|
@@ -70,7 +72,7 @@ export const IOPictograms = {
|
|
|
70
72
|
teaBreak: PictogramTeaBreak,
|
|
71
73
|
beerMug: PictogramBeerMug,
|
|
72
74
|
sms: PictogramSms,
|
|
73
|
-
heart: PictogramHeart
|
|
75
|
+
heart: PictogramHeart,
|
|
74
76
|
completed: PictogramCompleted,
|
|
75
77
|
ibanCard: PictogramIBANCard,
|
|
76
78
|
followMessage: PictogramFollowMessage,
|
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
# Pictograms
|
|
2
|
-
There are different sets:
|
|
3
|
-
* **General:** Pictograms used to enrich the following states:
|
|
4
|
-
* Empty
|
|
5
|
-
* Success
|
|
6
|
-
* Error
|
|
7
|
-
* **Sections:** Pictograms used in the `Header` component as companion of the title.
|
|
8
2
|
|
|
9
|
-
##
|
|
10
|
-
|
|
11
|
-
- **Sections**: `PictogramSection…`
|
|
3
|
+
## Prefix
|
|
4
|
+
To avoid confusion with other components referenced in the codebase, just use the prefix `Pictogram…`
|
|
12
5
|
|
|
13
6
|
## Add a new pictogram
|
|
14
7
|
First of all, follow the instructions stated in the main README (`Vector graphics` section).
|
|
15
8
|
|
|
16
|
-
If you want to add a new pictogram
|
|
9
|
+
If you want to add a new pictogram, open the `Pictogram.tsx` file and import the React component:
|
|
17
10
|
```jsx
|
|
18
11
|
[…]
|
|
19
12
|
import PictogramAirBaloon from "./svg/PictogramAirBaloon";
|
|
@@ -29,7 +22,7 @@ export const IOPictograms = {
|
|
|
29
22
|
You can add the recently added pictogram with the following declaration:
|
|
30
23
|
```jsx
|
|
31
24
|
// Default size: 120×120px
|
|
32
|
-
// Default color:
|
|
25
|
+
// Default color: Turquoise
|
|
33
26
|
<Pictogram name="airBaloon">
|
|
34
27
|
```
|
|
35
28
|
|
package/src/components/pictograms/svg/{PictogramSectionMessages.tsx → PictogramMessages.tsx}
RENAMED
|
@@ -2,11 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { Svg, Path } from "react-native-svg";
|
|
3
3
|
import { SVGPictogramProps } from "../Pictogram";
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
size,
|
|
7
|
-
color,
|
|
8
|
-
...props
|
|
9
|
-
}: SVGPictogramProps) => (
|
|
5
|
+
const PictogramMessages = ({ size, color, ...props }: SVGPictogramProps) => (
|
|
10
6
|
<Svg fill="none" width={size} height={size} viewBox="0 0 48 48" {...props}>
|
|
11
7
|
<Path
|
|
12
8
|
fillRule="evenodd"
|
|
@@ -17,4 +13,4 @@ const PictogramSectionMessages = ({
|
|
|
17
13
|
</Svg>
|
|
18
14
|
);
|
|
19
15
|
|
|
20
|
-
export default
|
|
16
|
+
export default PictogramMessages;
|
|
@@ -19,6 +19,7 @@ import { HSpacer } from "../spacer";
|
|
|
19
19
|
import { LabelSmall } from "../typography";
|
|
20
20
|
import { InputType } from "../../utils/types";
|
|
21
21
|
import { getInputPropsByType } from "../../utils/textInput";
|
|
22
|
+
import { makeFontStyleObject } from "../../utils/fonts";
|
|
22
23
|
|
|
23
24
|
type InputStatus = "initial" | "focused" | "disabled" | "error";
|
|
24
25
|
|
|
@@ -57,11 +58,10 @@ const styles = StyleSheet.create({
|
|
|
57
58
|
},
|
|
58
59
|
textInputStyle: {
|
|
59
60
|
...IOStyles.flex,
|
|
61
|
+
...makeFontStyleObject("Regular", false, "ReadexPro"),
|
|
60
62
|
fontSize: 16,
|
|
61
63
|
marginTop: IOSpacingScale[2],
|
|
62
|
-
fontWeight: "400",
|
|
63
64
|
lineHeight: 24,
|
|
64
|
-
fontFamily: "Readex Pro",
|
|
65
65
|
height: "100%"
|
|
66
66
|
},
|
|
67
67
|
textInputLabelWrapper: {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { action } from "@storybook/addon-actions";
|
|
3
|
+
|
|
4
|
+
import { ButtonSolid } from "../components";
|
|
5
|
+
|
|
6
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
7
|
+
const meta = {
|
|
8
|
+
title: "Example/ButtonSolid",
|
|
9
|
+
component: ButtonSolid,
|
|
10
|
+
parameters: {
|
|
11
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
12
|
+
layout: "centered"
|
|
13
|
+
},
|
|
14
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
15
|
+
tags: ["autodocs"]
|
|
16
|
+
} satisfies Meta<typeof ButtonSolid>;
|
|
17
|
+
|
|
18
|
+
export default meta;
|
|
19
|
+
type Story = StoryObj<typeof meta>;
|
|
20
|
+
|
|
21
|
+
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
22
|
+
export const Primary: Story = {
|
|
23
|
+
args: {
|
|
24
|
+
color: "primary",
|
|
25
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
26
|
+
label: "Primary button",
|
|
27
|
+
onPress: e => {
|
|
28
|
+
action("clicked")(e);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
|
|
3
|
+
import { Alert } from "react-native";
|
|
4
|
+
import { H1 } from "../components";
|
|
5
|
+
|
|
6
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
7
|
+
const meta = {
|
|
8
|
+
title: "Example/H1",
|
|
9
|
+
component: H1,
|
|
10
|
+
parameters: {
|
|
11
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
12
|
+
layout: "centered",
|
|
13
|
+
actions: { argTypesRegex: "^on.*" }
|
|
14
|
+
},
|
|
15
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
16
|
+
tags: ["autodocs"],
|
|
17
|
+
} satisfies Meta<typeof H1>;
|
|
18
|
+
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof meta>;
|
|
21
|
+
|
|
22
|
+
export const Primary: Story = {
|
|
23
|
+
args: {
|
|
24
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
25
|
+
onPress: () => Alert.alert("Alert", "Action triggered"),
|
|
26
|
+
children: "Hello World"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
|
|
3
|
+
import { Alert } from "react-native";
|
|
4
|
+
import { H2 } from "../components";
|
|
5
|
+
|
|
6
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
7
|
+
const meta = {
|
|
8
|
+
title: "Example/H2",
|
|
9
|
+
component: H2,
|
|
10
|
+
parameters: {
|
|
11
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
12
|
+
layout: "centered",
|
|
13
|
+
actions: { argTypesRegex: "^on.*" }
|
|
14
|
+
},
|
|
15
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
16
|
+
tags: ["autodocs"],
|
|
17
|
+
} satisfies Meta<typeof H2>;
|
|
18
|
+
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof meta>;
|
|
21
|
+
|
|
22
|
+
export const Primary: Story = {
|
|
23
|
+
args: {
|
|
24
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
25
|
+
onPress: () => Alert.alert("Alert", "Action triggered"),
|
|
26
|
+
children: "Hello World"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
|
|
3
|
+
import { Alert } from "react-native";
|
|
4
|
+
import { H3 } from "../components";
|
|
5
|
+
|
|
6
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
7
|
+
const meta = {
|
|
8
|
+
title: "Example/H3",
|
|
9
|
+
component: H3,
|
|
10
|
+
parameters: {
|
|
11
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
12
|
+
layout: "centered",
|
|
13
|
+
actions: { argTypesRegex: "^on.*" }
|
|
14
|
+
},
|
|
15
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
16
|
+
tags: ["autodocs"],
|
|
17
|
+
} satisfies Meta<typeof H3>;
|
|
18
|
+
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof meta>;
|
|
21
|
+
|
|
22
|
+
export const Primary: Story = {
|
|
23
|
+
args: {
|
|
24
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
25
|
+
onPress: () => Alert.alert("Alert", "Action triggered"),
|
|
26
|
+
children: "Hello World"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
|
|
3
|
+
import { Alert } from "react-native";
|
|
4
|
+
import { H4 } from "../components";
|
|
5
|
+
|
|
6
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
7
|
+
const meta = {
|
|
8
|
+
title: "Example/H4",
|
|
9
|
+
component: H4,
|
|
10
|
+
parameters: {
|
|
11
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
12
|
+
layout: "centered",
|
|
13
|
+
actions: { argTypesRegex: "^on.*" }
|
|
14
|
+
},
|
|
15
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
16
|
+
tags: ["autodocs"],
|
|
17
|
+
} satisfies Meta<typeof H4>;
|
|
18
|
+
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof meta>;
|
|
21
|
+
|
|
22
|
+
export const Primary: Story = {
|
|
23
|
+
args: {
|
|
24
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
25
|
+
onPress: () => Alert.alert("Alert", "Action triggered"),
|
|
26
|
+
children: "Hello World"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
|
|
3
|
+
import { Alert } from "react-native";
|
|
4
|
+
import { H5 } from "../components";
|
|
5
|
+
|
|
6
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
7
|
+
const meta = {
|
|
8
|
+
title: "Example/H5",
|
|
9
|
+
component: H5,
|
|
10
|
+
parameters: {
|
|
11
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
12
|
+
layout: "centered",
|
|
13
|
+
actions: { argTypesRegex: "^on.*" }
|
|
14
|
+
},
|
|
15
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
16
|
+
tags: ["autodocs"],
|
|
17
|
+
} satisfies Meta<typeof H5>;
|
|
18
|
+
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof meta>;
|
|
21
|
+
|
|
22
|
+
export const Primary: Story = {
|
|
23
|
+
args: {
|
|
24
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
25
|
+
onPress: () => Alert.alert("Alert", "Action triggered"),
|
|
26
|
+
children: "Hello World"
|
|
27
|
+
}
|
|
28
|
+
};
|