@pagopa/io-app-design-system 1.0.0-9 → 1.1.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 +39 -4
- package/lib/commonjs/components/Advice/Advice.js +5 -7
- package/lib/commonjs/components/Advice/Advice.js.map +1 -1
- package/lib/commonjs/components/Advice/__test__/advice.test.js +2 -2
- package/lib/commonjs/components/Advice/__test__/advice.test.js.map +1 -1
- package/lib/commonjs/components/accordion/RawAccordion.js.map +1 -1
- package/lib/commonjs/components/badge/__test__/badge.test.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonLink.js +4 -5
- package/lib/commonjs/components/buttons/ButtonLink.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButton.js +0 -2
- package/lib/commonjs/components/buttons/IconButton.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButtonContained.js +131 -0
- package/lib/commonjs/components/buttons/IconButtonContained.js.map +1 -0
- package/lib/commonjs/components/buttons/IconButtonSolid.js +109 -0
- package/lib/commonjs/components/buttons/IconButtonSolid.js.map +1 -0
- package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +370 -0
- package/lib/commonjs/components/buttons/__test__/button.test.js +27 -0
- package/lib/commonjs/components/buttons/__test__/button.test.js.map +1 -1
- package/lib/commonjs/components/buttons/index.js +30 -8
- package/lib/commonjs/components/buttons/index.js.map +1 -1
- package/lib/commonjs/components/checkbox/AnimatedCheckbox.js +1 -1
- package/lib/commonjs/components/checkbox/AnimatedCheckbox.js.map +1 -1
- package/lib/commonjs/components/icons/Icon.js +35 -9
- package/lib/commonjs/components/icons/Icon.js.map +1 -1
- package/lib/commonjs/components/icons/index.js +0 -18
- package/lib/commonjs/components/icons/index.js.map +1 -1
- package/lib/commonjs/components/icons/svg/{LegIconSearch.js → IconCheckTick.js} +4 -9
- package/lib/commonjs/components/icons/svg/{IconCompleted.js.map → IconCheckTick.js.map} +1 -1
- package/lib/commonjs/components/icons/svg/{IconCompleted.js → IconCheckTickBig.js} +3 -3
- package/lib/commonjs/components/icons/svg/IconCheckTickBig.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconMerchant.js +31 -0
- package/lib/commonjs/components/icons/svg/IconMerchant.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconSystemAppsAndroid.js +49 -0
- package/lib/commonjs/components/icons/svg/IconSystemAppsAndroid.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconSystemNotificationsInstructions.js +42 -0
- package/lib/commonjs/components/icons/svg/IconSystemNotificationsInstructions.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconSystemSettingsAndroid.js +34 -0
- package/lib/commonjs/components/icons/svg/IconSystemSettingsAndroid.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconSystemSettingsiOS.js +68 -0
- package/lib/commonjs/components/icons/svg/IconSystemSettingsiOS.js.map +1 -0
- package/lib/commonjs/components/icons/svg/{LegIconChevronLeft.js → IconSystemToggleInstructions.js} +5 -5
- package/lib/commonjs/components/icons/svg/IconSystemToggleInstructions.js.map +1 -0
- package/lib/commonjs/components/index.js +72 -72
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/layout/GradientBottomActions.js +90 -0
- package/lib/commonjs/components/layout/GradientBottomActions.js.map +1 -0
- package/lib/commonjs/components/layout/GradientScrollView.js +111 -0
- package/lib/commonjs/components/layout/GradientScrollView.js.map +1 -0
- package/lib/commonjs/components/layout/HeaderFirstLevel.js +62 -0
- package/lib/commonjs/components/layout/HeaderFirstLevel.js.map +1 -0
- package/lib/commonjs/components/layout/index.js +17 -0
- package/lib/commonjs/components/layout/index.js.map +1 -0
- package/lib/commonjs/components/listitems/ListItemCheckbox.js +135 -0
- package/lib/commonjs/components/listitems/ListItemCheckbox.js.map +1 -0
- package/lib/commonjs/components/listitems/ListItemInfo.js +3 -6
- package/lib/commonjs/components/listitems/ListItemInfo.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js +1 -4
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemRadio.js +136 -0
- package/lib/commonjs/components/listitems/ListItemRadio.js.map +1 -0
- package/lib/commonjs/components/listitems/ListItemSwitch.js +82 -0
- package/lib/commonjs/components/listitems/ListItemSwitch.js.map +1 -0
- package/lib/commonjs/components/listitems/ListItemTransaction.js +2 -3
- package/lib/commonjs/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +0 -14
- package/lib/commonjs/components/listitems/index.js +33 -0
- package/lib/commonjs/components/listitems/index.js.map +1 -1
- package/lib/commonjs/components/logos/svg/LogoPaymentExtMaestro.js +3 -19
- package/lib/commonjs/components/logos/svg/LogoPaymentExtMaestro.js.map +1 -1
- package/lib/commonjs/components/logos/svg/LogoPaymentExtMastercard.js +5 -21
- package/lib/commonjs/components/logos/svg/LogoPaymentExtMastercard.js.map +1 -1
- package/lib/commonjs/components/logos/svg/LogoPaymentExtPayPal.js +9 -28
- package/lib/commonjs/components/logos/svg/LogoPaymentExtPayPal.js.map +1 -1
- package/lib/commonjs/components/logos/svg/LogoPaymentMaestro.js +8 -18
- package/lib/commonjs/components/logos/svg/LogoPaymentMaestro.js.map +1 -1
- package/lib/commonjs/components/logos/svg/LogoPaymentMastercard.js +7 -17
- package/lib/commonjs/components/logos/svg/LogoPaymentMastercard.js.map +1 -1
- package/lib/commonjs/components/logos/svg/LogoPaymentPayPal.js +5 -5
- package/lib/commonjs/components/logos/svg/LogoPaymentPayPal.js.map +1 -1
- package/lib/commonjs/components/radio/AnimatedRadio.js +1 -1
- package/lib/commonjs/components/radio/AnimatedRadio.js.map +1 -1
- package/lib/commonjs/components/radio/RadioGroup.js +36 -0
- package/lib/commonjs/components/radio/RadioGroup.js.map +1 -0
- package/lib/commonjs/components/radio/index.js +11 -0
- package/lib/commonjs/components/radio/index.js.map +1 -1
- package/lib/commonjs/components/typography/H3.js +20 -49
- package/lib/commonjs/components/typography/H3.js.map +1 -1
- package/lib/commonjs/components/typography/Link.js +17 -23
- package/lib/commonjs/components/typography/Link.js.map +1 -1
- package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +50 -45
- package/lib/commonjs/core/IOColors.js +1 -1
- package/lib/commonjs/core/IOColors.js.map +1 -1
- package/lib/commonjs/core/IOSpacing.js +1 -1
- package/lib/commonjs/core/IOSpacing.js.map +1 -1
- package/lib/commonjs/core/IOStyles.js +7 -1
- package/lib/commonjs/core/IOStyles.js.map +1 -1
- package/lib/commonjs/index.js +30 -8
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/json-import.d.js +2 -0
- package/lib/commonjs/json-import.d.js.map +1 -0
- package/lib/module/components/Advice/Advice.js +4 -6
- package/lib/module/components/Advice/Advice.js.map +1 -1
- package/lib/module/components/Advice/__test__/advice.test.js +1 -1
- package/lib/module/components/Advice/__test__/advice.test.js.map +1 -1
- package/lib/module/components/accordion/RawAccordion.js +1 -1
- package/lib/module/components/accordion/RawAccordion.js.map +1 -1
- package/lib/module/components/badge/__test__/badge.test.js.map +1 -1
- package/lib/module/components/buttons/ButtonLink.js +4 -5
- package/lib/module/components/buttons/ButtonLink.js.map +1 -1
- package/lib/module/components/buttons/IconButton.js +0 -2
- package/lib/module/components/buttons/IconButton.js.map +1 -1
- package/lib/module/components/buttons/IconButtonContained.js +122 -0
- package/lib/module/components/buttons/IconButtonContained.js.map +1 -0
- package/lib/module/components/buttons/IconButtonSolid.js +100 -0
- package/lib/module/components/buttons/IconButtonSolid.js.map +1 -0
- package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +370 -0
- package/lib/module/components/buttons/__test__/button.test.js +27 -0
- package/lib/module/components/buttons/__test__/button.test.js.map +1 -1
- package/lib/module/components/buttons/index.js +4 -2
- package/lib/module/components/buttons/index.js.map +1 -1
- package/lib/module/components/checkbox/AnimatedCheckbox.js +3 -3
- package/lib/module/components/checkbox/AnimatedCheckbox.js.map +1 -1
- package/lib/module/components/icons/Icon.js +33 -8
- package/lib/module/components/icons/Icon.js.map +1 -1
- package/lib/module/components/icons/index.js +0 -1
- package/lib/module/components/icons/index.js.map +1 -1
- package/lib/module/components/icons/svg/{LegIconSearch.js → IconCheckTick.js} +4 -9
- package/lib/module/components/icons/svg/{IconCompleted.js.map → IconCheckTick.js.map} +1 -1
- package/lib/module/components/icons/svg/{IconCompleted.js → IconCheckTickBig.js} +3 -3
- package/lib/module/components/icons/svg/IconCheckTickBig.js.map +1 -0
- package/lib/module/components/icons/svg/IconMerchant.js +23 -0
- package/lib/module/components/icons/svg/IconMerchant.js.map +1 -0
- package/lib/module/components/icons/svg/IconSystemAppsAndroid.js +41 -0
- package/lib/module/components/icons/svg/IconSystemAppsAndroid.js.map +1 -0
- package/lib/module/components/icons/svg/IconSystemNotificationsInstructions.js +34 -0
- package/lib/module/components/icons/svg/IconSystemNotificationsInstructions.js.map +1 -0
- package/lib/module/components/icons/svg/IconSystemSettingsAndroid.js +26 -0
- package/lib/module/components/icons/svg/IconSystemSettingsAndroid.js.map +1 -0
- package/lib/module/components/icons/svg/IconSystemSettingsiOS.js +60 -0
- package/lib/module/components/icons/svg/IconSystemSettingsiOS.js.map +1 -0
- package/lib/module/components/icons/svg/{LegIconChevronLeft.js → IconSystemToggleInstructions.js} +5 -5
- package/lib/module/components/icons/svg/IconSystemToggleInstructions.js.map +1 -0
- package/lib/module/components/index.js +13 -13
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/GradientBottomActions.js +79 -0
- package/lib/module/components/layout/GradientBottomActions.js.map +1 -0
- package/lib/module/components/layout/GradientScrollView.js +100 -0
- package/lib/module/components/layout/GradientScrollView.js.map +1 -0
- package/lib/module/components/layout/HeaderFirstLevel.js +52 -0
- package/lib/module/components/layout/HeaderFirstLevel.js.map +1 -0
- package/lib/module/components/layout/index.js +2 -0
- package/lib/module/components/layout/index.js.map +1 -0
- package/lib/module/components/listitems/ListItemCheckbox.js +126 -0
- package/lib/module/components/listitems/ListItemCheckbox.js.map +1 -0
- package/lib/module/components/listitems/ListItemInfo.js +3 -6
- package/lib/module/components/listitems/ListItemInfo.js.map +1 -1
- package/lib/module/components/listitems/ListItemInfoCopy.js +1 -4
- package/lib/module/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/module/components/listitems/ListItemRadio.js +127 -0
- package/lib/module/components/listitems/ListItemRadio.js.map +1 -0
- package/lib/module/components/listitems/ListItemSwitch.js +74 -0
- package/lib/module/components/listitems/ListItemSwitch.js.map +1 -0
- package/lib/module/components/listitems/ListItemTransaction.js +2 -3
- package/lib/module/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +0 -14
- package/lib/module/components/listitems/index.js +3 -0
- package/lib/module/components/listitems/index.js.map +1 -1
- package/lib/module/components/logos/svg/LogoPaymentExtMaestro.js +3 -19
- package/lib/module/components/logos/svg/LogoPaymentExtMaestro.js.map +1 -1
- package/lib/module/components/logos/svg/LogoPaymentExtMastercard.js +5 -21
- package/lib/module/components/logos/svg/LogoPaymentExtMastercard.js.map +1 -1
- package/lib/module/components/logos/svg/LogoPaymentExtPayPal.js +10 -29
- package/lib/module/components/logos/svg/LogoPaymentExtPayPal.js.map +1 -1
- package/lib/module/components/logos/svg/LogoPaymentMaestro.js +9 -19
- package/lib/module/components/logos/svg/LogoPaymentMaestro.js.map +1 -1
- package/lib/module/components/logos/svg/LogoPaymentMastercard.js +8 -18
- package/lib/module/components/logos/svg/LogoPaymentMastercard.js.map +1 -1
- package/lib/module/components/logos/svg/LogoPaymentPayPal.js +5 -5
- package/lib/module/components/logos/svg/LogoPaymentPayPal.js.map +1 -1
- package/lib/module/components/radio/AnimatedRadio.js +3 -3
- package/lib/module/components/radio/AnimatedRadio.js.map +1 -1
- package/lib/module/components/radio/RadioGroup.js +28 -0
- package/lib/module/components/radio/RadioGroup.js.map +1 -0
- package/lib/module/components/radio/index.js +1 -0
- package/lib/module/components/radio/index.js.map +1 -1
- package/lib/module/components/typography/H3.js +19 -47
- package/lib/module/components/typography/H3.js.map +1 -1
- package/lib/module/components/typography/Link.js +17 -23
- package/lib/module/components/typography/Link.js.map +1 -1
- package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +50 -45
- package/lib/module/core/IOColors.js +1 -1
- package/lib/module/core/IOColors.js.map +1 -1
- package/lib/module/core/IOSpacing.js +1 -1
- package/lib/module/core/IOSpacing.js.map +1 -1
- package/lib/module/core/IOStyles.js +5 -0
- package/lib/module/core/IOStyles.js.map +1 -1
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/json-import.d.js +2 -0
- package/lib/module/json-import.d.js.map +1 -0
- package/lib/typescript/components/Advice/Advice.d.ts +7 -3
- package/lib/typescript/components/Advice/Advice.d.ts.map +1 -1
- package/lib/typescript/components/accordion/RawAccordion.d.ts +2 -2
- package/lib/typescript/components/accordion/RawAccordion.d.ts.map +1 -1
- package/lib/typescript/components/buttons/ButtonLink.d.ts.map +1 -1
- package/lib/typescript/components/buttons/IconButton.d.ts.map +1 -1
- package/lib/typescript/components/buttons/IconButtonContained.d.ts +15 -0
- package/lib/typescript/components/buttons/IconButtonContained.d.ts.map +1 -0
- package/lib/typescript/components/buttons/IconButtonSolid.d.ts +15 -0
- package/lib/typescript/components/buttons/IconButtonSolid.d.ts.map +1 -0
- package/lib/typescript/components/buttons/index.d.ts +4 -2
- package/lib/typescript/components/buttons/index.d.ts.map +1 -1
- package/lib/typescript/components/checkbox/AnimatedCheckbox.d.ts.map +1 -1
- package/lib/typescript/components/icons/Icon.d.ts +16 -3
- package/lib/typescript/components/icons/Icon.d.ts.map +1 -1
- package/lib/typescript/components/icons/index.d.ts +0 -1
- package/lib/typescript/components/icons/index.d.ts.map +1 -1
- package/lib/typescript/components/icons/svg/IconCheckTick.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconCheckTick.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconCheckTickBig.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconCheckTickBig.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconMerchant.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconMerchant.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconSystemAppsAndroid.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconSystemAppsAndroid.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconSystemNotificationsInstructions.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconSystemNotificationsInstructions.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconSystemSettingsAndroid.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconSystemSettingsAndroid.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconSystemSettingsiOS.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconSystemSettingsiOS.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconSystemToggleInstructions.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconSystemToggleInstructions.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +13 -13
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/layout/GradientBottomActions.d.ts +22 -0
- package/lib/typescript/components/layout/GradientBottomActions.d.ts.map +1 -0
- package/lib/typescript/components/layout/GradientScrollView.d.ts +14 -0
- package/lib/typescript/components/layout/GradientScrollView.d.ts.map +1 -0
- package/lib/typescript/components/layout/HeaderFirstLevel.d.ts +11 -0
- package/lib/typescript/components/layout/HeaderFirstLevel.d.ts.map +1 -0
- package/lib/typescript/components/layout/index.d.ts +2 -0
- package/lib/typescript/components/layout/index.d.ts.map +1 -0
- package/lib/typescript/components/listitems/ListItemCheckbox.d.ts +21 -0
- package/lib/typescript/components/listitems/ListItemCheckbox.d.ts.map +1 -0
- package/lib/typescript/components/listitems/ListItemInfo.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemInfoCopy.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemRadio.d.ts +22 -0
- package/lib/typescript/components/listitems/ListItemRadio.d.ts.map +1 -0
- package/lib/typescript/components/listitems/ListItemSwitch.d.ts +18 -0
- package/lib/typescript/components/listitems/ListItemSwitch.d.ts.map +1 -0
- package/lib/typescript/components/listitems/ListItemTransaction.d.ts.map +1 -1
- package/lib/typescript/components/listitems/index.d.ts +3 -0
- package/lib/typescript/components/listitems/index.d.ts.map +1 -1
- package/lib/typescript/components/logos/svg/LogoPaymentExtMaestro.d.ts.map +1 -1
- package/lib/typescript/components/logos/svg/LogoPaymentExtMastercard.d.ts +2 -2
- package/lib/typescript/components/logos/svg/LogoPaymentExtMastercard.d.ts.map +1 -1
- package/lib/typescript/components/logos/svg/LogoPaymentExtPayPal.d.ts.map +1 -1
- package/lib/typescript/components/logos/svg/LogoPaymentMaestro.d.ts.map +1 -1
- package/lib/typescript/components/logos/svg/LogoPaymentMastercard.d.ts.map +1 -1
- package/lib/typescript/components/radio/AnimatedRadio.d.ts.map +1 -1
- package/lib/typescript/components/radio/RadioGroup.d.ts +22 -0
- package/lib/typescript/components/radio/RadioGroup.d.ts.map +1 -0
- package/lib/typescript/components/radio/index.d.ts +1 -0
- package/lib/typescript/components/radio/index.d.ts.map +1 -1
- package/lib/typescript/components/typography/H3.d.ts +11 -30
- package/lib/typescript/components/typography/H3.d.ts.map +1 -1
- package/lib/typescript/components/typography/Link.d.ts +4 -4
- package/lib/typescript/components/typography/Link.d.ts.map +1 -1
- package/lib/typescript/core/IOColors.d.ts +2 -1
- package/lib/typescript/core/IOColors.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/lib/typescript/core/IOStyles.d.ts +6 -2
- package/lib/typescript/core/IOStyles.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +3 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/package.json +12 -8
- package/src/components/Advice/Advice.tsx +19 -23
- package/src/components/Advice/__test__/advice.test.tsx +4 -2
- package/src/components/accordion/RawAccordion.tsx +6 -6
- package/src/components/badge/__test__/badge.test.tsx +4 -2
- package/src/components/buttons/ButtonLink.tsx +177 -177
- package/src/components/buttons/IconButton.tsx +9 -6
- package/src/components/buttons/IconButtonContained.tsx +201 -0
- package/src/components/buttons/IconButtonSolid.tsx +168 -0
- package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +370 -0
- package/src/components/buttons/__test__/button.test.tsx +59 -4
- package/src/components/buttons/index.tsx +5 -3
- package/src/components/checkbox/AnimatedCheckbox.tsx +6 -8
- package/src/components/icons/Icon.tsx +37 -8
- package/src/components/icons/index.tsx +1 -2
- package/src/components/icons/svg/IconCheckTick.tsx +16 -0
- package/src/components/icons/svg/{IconCompleted.tsx → IconCheckTickBig.tsx} +2 -2
- package/src/components/icons/svg/IconMerchant.tsx +16 -0
- package/src/components/icons/svg/IconSystemAppsAndroid.tsx +17 -0
- package/src/components/icons/svg/IconSystemNotificationsInstructions.tsx +28 -0
- package/src/components/icons/svg/IconSystemSettingsAndroid.tsx +15 -0
- package/src/components/icons/svg/IconSystemSettingsiOS.tsx +58 -0
- package/src/components/icons/svg/IconSystemToggleInstructions.tsx +18 -0
- package/src/components/index.tsx +13 -13
- package/src/components/layout/GradientBottomActions.tsx +119 -0
- package/src/components/layout/GradientScrollView.tsx +167 -0
- package/src/components/layout/HeaderFirstLevel.tsx +76 -0
- package/src/components/layout/index.tsx +1 -0
- package/src/components/listitems/ListItemCheckbox.tsx +182 -0
- package/src/components/listitems/ListItemInfo.tsx +53 -58
- package/src/components/listitems/ListItemInfoCopy.tsx +122 -127
- package/src/components/listitems/ListItemRadio.tsx +185 -0
- package/src/components/listitems/ListItemSwitch.tsx +109 -0
- package/src/components/listitems/ListItemTransaction.tsx +154 -151
- package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +0 -14
- package/src/components/listitems/index.tsx +3 -0
- package/src/components/logos/svg/LogoPaymentExtMaestro.tsx +3 -20
- package/src/components/logos/svg/LogoPaymentExtMastercard.tsx +5 -22
- package/src/components/logos/svg/LogoPaymentExtPayPal.tsx +9 -31
- package/src/components/logos/svg/LogoPaymentMaestro.tsx +8 -6
- package/src/components/logos/svg/LogoPaymentMastercard.tsx +8 -6
- package/src/components/logos/svg/LogoPaymentPayPal.tsx +5 -5
- package/src/components/radio/AnimatedRadio.tsx +6 -8
- package/src/components/radio/RadioGroup.tsx +43 -0
- package/src/components/radio/index.tsx +1 -0
- package/src/components/typography/H3.tsx +25 -91
- package/src/components/typography/Link.tsx +23 -30
- package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +50 -45
- package/src/core/IOColors.ts +2 -2
- package/src/core/IOSpacing.ts +2 -2
- package/src/core/IOStyles.ts +9 -0
- package/src/index.tsx +4 -1
- package/src/json-import.d.ts +13 -0
- package/lib/commonjs/components/icons/svg/LegIconChevronLeft.js.map +0 -1
- package/lib/commonjs/components/icons/svg/LegIconSearch.js.map +0 -1
- package/lib/module/components/icons/svg/LegIconChevronLeft.js.map +0 -1
- package/lib/module/components/icons/svg/LegIconSearch.js.map +0 -1
- package/lib/typescript/components/icons/svg/IconCompleted.d.ts +0 -5
- package/lib/typescript/components/icons/svg/IconCompleted.d.ts.map +0 -1
- package/lib/typescript/components/icons/svg/LegIconChevronLeft.d.ts +0 -5
- package/lib/typescript/components/icons/svg/LegIconChevronLeft.d.ts.map +0 -1
- package/lib/typescript/components/icons/svg/LegIconSearch.d.ts +0 -5
- package/lib/typescript/components/icons/svg/LegIconSearch.d.ts.map +0 -1
- package/src/components/icons/svg/LegIconChevronLeft.tsx +0 -14
- package/src/components/icons/svg/LegIconSearch.tsx +0 -22
|
@@ -461,3 +461,373 @@ exports[`Test Buttons Components ButtonSolid Snapshot 1`] = `
|
|
|
461
461
|
</View>
|
|
462
462
|
</View>
|
|
463
463
|
`;
|
|
464
|
+
|
|
465
|
+
exports[`Test Buttons Components IconButton Snapshot 1`] = `
|
|
466
|
+
<View
|
|
467
|
+
accessibilityLabel="accessibilityLabel"
|
|
468
|
+
accessibilityRole="button"
|
|
469
|
+
accessibilityState={
|
|
470
|
+
{
|
|
471
|
+
"busy": undefined,
|
|
472
|
+
"checked": undefined,
|
|
473
|
+
"disabled": false,
|
|
474
|
+
"expanded": undefined,
|
|
475
|
+
"selected": undefined,
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
accessibilityValue={
|
|
479
|
+
{
|
|
480
|
+
"max": undefined,
|
|
481
|
+
"min": undefined,
|
|
482
|
+
"now": undefined,
|
|
483
|
+
"text": undefined,
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
accessible={true}
|
|
487
|
+
collapsable={false}
|
|
488
|
+
focusable={true}
|
|
489
|
+
hitSlop={8}
|
|
490
|
+
onBlur={[Function]}
|
|
491
|
+
onClick={[Function]}
|
|
492
|
+
onFocus={[Function]}
|
|
493
|
+
onResponderGrant={[Function]}
|
|
494
|
+
onResponderMove={[Function]}
|
|
495
|
+
onResponderRelease={[Function]}
|
|
496
|
+
onResponderTerminate={[Function]}
|
|
497
|
+
onResponderTerminationRequest={[Function]}
|
|
498
|
+
onStartShouldSetResponder={[Function]}
|
|
499
|
+
style={
|
|
500
|
+
{
|
|
501
|
+
"alignSelf": "flex-start",
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
>
|
|
505
|
+
<View
|
|
506
|
+
style={
|
|
507
|
+
[
|
|
508
|
+
{
|
|
509
|
+
"height": 24,
|
|
510
|
+
"width": 24,
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"transform": [
|
|
514
|
+
{
|
|
515
|
+
"scale": undefined,
|
|
516
|
+
},
|
|
517
|
+
],
|
|
518
|
+
},
|
|
519
|
+
]
|
|
520
|
+
}
|
|
521
|
+
>
|
|
522
|
+
<RNSVGSvgView
|
|
523
|
+
accessibilityElementsHidden={true}
|
|
524
|
+
accessibilityLabel=""
|
|
525
|
+
accessible={false}
|
|
526
|
+
align="xMidYMid"
|
|
527
|
+
animatedProps={
|
|
528
|
+
{
|
|
529
|
+
"color": undefined,
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
bbHeight={24}
|
|
533
|
+
bbWidth={24}
|
|
534
|
+
color={4278927075}
|
|
535
|
+
focusable={false}
|
|
536
|
+
height={24}
|
|
537
|
+
importantForAccessibility="no-hide-descendants"
|
|
538
|
+
meetOrSlice={0}
|
|
539
|
+
minX={0}
|
|
540
|
+
minY={0}
|
|
541
|
+
style={
|
|
542
|
+
[
|
|
543
|
+
{
|
|
544
|
+
"backgroundColor": "transparent",
|
|
545
|
+
"borderWidth": 0,
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"color": "#0B3EE3",
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"flex": 0,
|
|
552
|
+
"height": 24,
|
|
553
|
+
"width": 24,
|
|
554
|
+
},
|
|
555
|
+
]
|
|
556
|
+
}
|
|
557
|
+
tintColor={4278927075}
|
|
558
|
+
vbHeight={24}
|
|
559
|
+
vbWidth={24}
|
|
560
|
+
width={24}
|
|
561
|
+
>
|
|
562
|
+
<RNSVGGroup>
|
|
563
|
+
<RNSVGPath
|
|
564
|
+
clipRule={0}
|
|
565
|
+
d="M12 24c6.629 0 12-5.371 12-12S18.629 0 12 0C5.375 0 0 5.371 0 12s5.375 12 12 12Zm.033-10.97c-.997 0-1.818-.336-2.463-1.014-.646-.674-.968-1.51-.968-2.507 0-1.001.322-1.83.964-2.492.64-.662 1.458-.992 2.458-.992.997 0 1.81.334 2.435 1.017.625.678.94 1.51.94 2.511 0 .993-.315 1.822-.94 2.484-.625.657-1.43.992-2.426.992Zm-3.431 4.905c0-1.001.322-1.83.96-2.492.64-.662 1.458-.992 2.467-.992.996 0 1.809.335 2.43 1.017.625.682.94 1.515.94 2.512l-6.797-.045Z"
|
|
566
|
+
fill={
|
|
567
|
+
[
|
|
568
|
+
2,
|
|
569
|
+
]
|
|
570
|
+
}
|
|
571
|
+
fillRule={0}
|
|
572
|
+
propList={
|
|
573
|
+
[
|
|
574
|
+
"fill",
|
|
575
|
+
"fillRule",
|
|
576
|
+
]
|
|
577
|
+
}
|
|
578
|
+
/>
|
|
579
|
+
</RNSVGGroup>
|
|
580
|
+
</RNSVGSvgView>
|
|
581
|
+
</View>
|
|
582
|
+
</View>
|
|
583
|
+
`;
|
|
584
|
+
|
|
585
|
+
exports[`Test Buttons Components IconButtonContained Snapshot 1`] = `
|
|
586
|
+
<View
|
|
587
|
+
accessibilityLabel="accessibilityLabel"
|
|
588
|
+
accessibilityRole="button"
|
|
589
|
+
accessibilityState={
|
|
590
|
+
{
|
|
591
|
+
"busy": undefined,
|
|
592
|
+
"checked": undefined,
|
|
593
|
+
"disabled": false,
|
|
594
|
+
"expanded": undefined,
|
|
595
|
+
"selected": undefined,
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
accessibilityValue={
|
|
599
|
+
{
|
|
600
|
+
"max": undefined,
|
|
601
|
+
"min": undefined,
|
|
602
|
+
"now": undefined,
|
|
603
|
+
"text": undefined,
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
accessible={true}
|
|
607
|
+
collapsable={false}
|
|
608
|
+
focusable={true}
|
|
609
|
+
onBlur={[Function]}
|
|
610
|
+
onClick={[Function]}
|
|
611
|
+
onFocus={[Function]}
|
|
612
|
+
onResponderGrant={[Function]}
|
|
613
|
+
onResponderMove={[Function]}
|
|
614
|
+
onResponderRelease={[Function]}
|
|
615
|
+
onResponderTerminate={[Function]}
|
|
616
|
+
onResponderTerminationRequest={[Function]}
|
|
617
|
+
onStartShouldSetResponder={[Function]}
|
|
618
|
+
style={
|
|
619
|
+
{
|
|
620
|
+
"alignSelf": "flex-start",
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
>
|
|
624
|
+
<View
|
|
625
|
+
style={
|
|
626
|
+
[
|
|
627
|
+
{
|
|
628
|
+
"alignItems": "center",
|
|
629
|
+
"elevation": 0,
|
|
630
|
+
"justifyContent": "center",
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"borderRadius": 48,
|
|
634
|
+
"height": 48,
|
|
635
|
+
"width": 48,
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"backgroundColor": undefined,
|
|
639
|
+
"transform": [
|
|
640
|
+
{
|
|
641
|
+
"scale": undefined,
|
|
642
|
+
},
|
|
643
|
+
],
|
|
644
|
+
},
|
|
645
|
+
]
|
|
646
|
+
}
|
|
647
|
+
>
|
|
648
|
+
<RNSVGSvgView
|
|
649
|
+
accessibilityElementsHidden={true}
|
|
650
|
+
accessibilityLabel=""
|
|
651
|
+
accessible={false}
|
|
652
|
+
align="xMidYMid"
|
|
653
|
+
animatedProps={
|
|
654
|
+
{
|
|
655
|
+
"color": undefined,
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
bbHeight={24}
|
|
659
|
+
bbWidth={24}
|
|
660
|
+
color={4278927075}
|
|
661
|
+
focusable={false}
|
|
662
|
+
height={24}
|
|
663
|
+
importantForAccessibility="no-hide-descendants"
|
|
664
|
+
meetOrSlice={0}
|
|
665
|
+
minX={0}
|
|
666
|
+
minY={0}
|
|
667
|
+
style={
|
|
668
|
+
[
|
|
669
|
+
{
|
|
670
|
+
"backgroundColor": "transparent",
|
|
671
|
+
"borderWidth": 0,
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"color": "#0B3EE3",
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"flex": 0,
|
|
678
|
+
"height": 24,
|
|
679
|
+
"width": 24,
|
|
680
|
+
},
|
|
681
|
+
]
|
|
682
|
+
}
|
|
683
|
+
tintColor={4278927075}
|
|
684
|
+
vbHeight={24}
|
|
685
|
+
vbWidth={24}
|
|
686
|
+
width={24}
|
|
687
|
+
>
|
|
688
|
+
<RNSVGGroup>
|
|
689
|
+
<RNSVGPath
|
|
690
|
+
clipRule={0}
|
|
691
|
+
d="M12 24c6.629 0 12-5.371 12-12S18.629 0 12 0C5.375 0 0 5.371 0 12s5.375 12 12 12Zm.033-10.97c-.997 0-1.818-.336-2.463-1.014-.646-.674-.968-1.51-.968-2.507 0-1.001.322-1.83.964-2.492.64-.662 1.458-.992 2.458-.992.997 0 1.81.334 2.435 1.017.625.678.94 1.51.94 2.511 0 .993-.315 1.822-.94 2.484-.625.657-1.43.992-2.426.992Zm-3.431 4.905c0-1.001.322-1.83.96-2.492.64-.662 1.458-.992 2.467-.992.996 0 1.809.335 2.43 1.017.625.682.94 1.515.94 2.512l-6.797-.045Z"
|
|
692
|
+
fill={
|
|
693
|
+
[
|
|
694
|
+
2,
|
|
695
|
+
]
|
|
696
|
+
}
|
|
697
|
+
fillRule={0}
|
|
698
|
+
propList={
|
|
699
|
+
[
|
|
700
|
+
"fill",
|
|
701
|
+
"fillRule",
|
|
702
|
+
]
|
|
703
|
+
}
|
|
704
|
+
/>
|
|
705
|
+
</RNSVGGroup>
|
|
706
|
+
</RNSVGSvgView>
|
|
707
|
+
</View>
|
|
708
|
+
</View>
|
|
709
|
+
`;
|
|
710
|
+
|
|
711
|
+
exports[`Test Buttons Components IconButtonSolid Snapshot 1`] = `
|
|
712
|
+
<View
|
|
713
|
+
accessibilityLabel="accessibilityLabel"
|
|
714
|
+
accessibilityRole="button"
|
|
715
|
+
accessibilityState={
|
|
716
|
+
{
|
|
717
|
+
"busy": undefined,
|
|
718
|
+
"checked": undefined,
|
|
719
|
+
"disabled": false,
|
|
720
|
+
"expanded": undefined,
|
|
721
|
+
"selected": undefined,
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
accessibilityValue={
|
|
725
|
+
{
|
|
726
|
+
"max": undefined,
|
|
727
|
+
"min": undefined,
|
|
728
|
+
"now": undefined,
|
|
729
|
+
"text": undefined,
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
accessible={true}
|
|
733
|
+
collapsable={false}
|
|
734
|
+
focusable={true}
|
|
735
|
+
onBlur={[Function]}
|
|
736
|
+
onClick={[Function]}
|
|
737
|
+
onFocus={[Function]}
|
|
738
|
+
onResponderGrant={[Function]}
|
|
739
|
+
onResponderMove={[Function]}
|
|
740
|
+
onResponderRelease={[Function]}
|
|
741
|
+
onResponderTerminate={[Function]}
|
|
742
|
+
onResponderTerminationRequest={[Function]}
|
|
743
|
+
onStartShouldSetResponder={[Function]}
|
|
744
|
+
style={
|
|
745
|
+
{
|
|
746
|
+
"alignSelf": "flex-start",
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
>
|
|
750
|
+
<View
|
|
751
|
+
style={
|
|
752
|
+
[
|
|
753
|
+
{
|
|
754
|
+
"alignItems": "center",
|
|
755
|
+
"elevation": 0,
|
|
756
|
+
"justifyContent": "center",
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"borderRadius": 56,
|
|
760
|
+
"height": 56,
|
|
761
|
+
"width": 56,
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"backgroundColor": undefined,
|
|
765
|
+
"transform": [
|
|
766
|
+
{
|
|
767
|
+
"scale": undefined,
|
|
768
|
+
},
|
|
769
|
+
],
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"backgroundColor": "#0B3EE3",
|
|
773
|
+
},
|
|
774
|
+
]
|
|
775
|
+
}
|
|
776
|
+
>
|
|
777
|
+
<RNSVGSvgView
|
|
778
|
+
accessibilityElementsHidden={true}
|
|
779
|
+
accessibilityLabel=""
|
|
780
|
+
accessible={false}
|
|
781
|
+
align="xMidYMid"
|
|
782
|
+
bbHeight={24}
|
|
783
|
+
bbWidth={24}
|
|
784
|
+
color={4294967295}
|
|
785
|
+
focusable={false}
|
|
786
|
+
height={24}
|
|
787
|
+
importantForAccessibility="no-hide-descendants"
|
|
788
|
+
meetOrSlice={0}
|
|
789
|
+
minX={0}
|
|
790
|
+
minY={0}
|
|
791
|
+
style={
|
|
792
|
+
[
|
|
793
|
+
{
|
|
794
|
+
"backgroundColor": "transparent",
|
|
795
|
+
"borderWidth": 0,
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"color": "#FFFFFF",
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
"flex": 0,
|
|
802
|
+
"height": 24,
|
|
803
|
+
"width": 24,
|
|
804
|
+
},
|
|
805
|
+
]
|
|
806
|
+
}
|
|
807
|
+
tintColor={4294967295}
|
|
808
|
+
vbHeight={24}
|
|
809
|
+
vbWidth={24}
|
|
810
|
+
width={24}
|
|
811
|
+
>
|
|
812
|
+
<RNSVGGroup>
|
|
813
|
+
<RNSVGPath
|
|
814
|
+
clipRule={0}
|
|
815
|
+
d="M12 24c6.629 0 12-5.371 12-12S18.629 0 12 0C5.375 0 0 5.371 0 12s5.375 12 12 12Zm.033-10.97c-.997 0-1.818-.336-2.463-1.014-.646-.674-.968-1.51-.968-2.507 0-1.001.322-1.83.964-2.492.64-.662 1.458-.992 2.458-.992.997 0 1.81.334 2.435 1.017.625.678.94 1.51.94 2.511 0 .993-.315 1.822-.94 2.484-.625.657-1.43.992-2.426.992Zm-3.431 4.905c0-1.001.322-1.83.96-2.492.64-.662 1.458-.992 2.467-.992.996 0 1.809.335 2.43 1.017.625.682.94 1.515.94 2.512l-6.797-.045Z"
|
|
816
|
+
fill={
|
|
817
|
+
[
|
|
818
|
+
2,
|
|
819
|
+
]
|
|
820
|
+
}
|
|
821
|
+
fillRule={0}
|
|
822
|
+
propList={
|
|
823
|
+
[
|
|
824
|
+
"fill",
|
|
825
|
+
"fillRule",
|
|
826
|
+
]
|
|
827
|
+
}
|
|
828
|
+
/>
|
|
829
|
+
</RNSVGGroup>
|
|
830
|
+
</RNSVGSvgView>
|
|
831
|
+
</View>
|
|
832
|
+
</View>
|
|
833
|
+
`;
|
|
@@ -5,6 +5,9 @@ import ButtonExtendedOutline from "../ButtonExtendedOutline";
|
|
|
5
5
|
import ButtonLink from "../ButtonLink";
|
|
6
6
|
import ButtonOutline from "../ButtonOutline";
|
|
7
7
|
import ButtonSolid from "../ButtonSolid";
|
|
8
|
+
import IconButton from "../IconButton";
|
|
9
|
+
import IconButtonContained from "../IconButtonContained";
|
|
10
|
+
import IconButtonSolid from "../IconButtonSolid";
|
|
8
11
|
|
|
9
12
|
const onButtonPress = () => {
|
|
10
13
|
Alert.alert("Alert", "Action triggered");
|
|
@@ -12,22 +15,74 @@ const onButtonPress = () => {
|
|
|
12
15
|
|
|
13
16
|
describe("Test Buttons Components", () => {
|
|
14
17
|
it("ButtonSolid Snapshot", () => {
|
|
15
|
-
const buttonSolid = TestRenderer.create(
|
|
18
|
+
const buttonSolid = TestRenderer.create(
|
|
19
|
+
<ButtonSolid
|
|
20
|
+
label={"label"}
|
|
21
|
+
accessibilityLabel={"accessibilityLabel"}
|
|
22
|
+
onPress={onButtonPress}
|
|
23
|
+
></ButtonSolid>
|
|
24
|
+
).toJSON();
|
|
16
25
|
expect(buttonSolid).toMatchSnapshot();
|
|
17
26
|
});
|
|
18
27
|
|
|
19
28
|
it("ButtonLink Snapshot", () => {
|
|
20
|
-
const buttonLink = TestRenderer.create(
|
|
29
|
+
const buttonLink = TestRenderer.create(
|
|
30
|
+
<ButtonLink label={"label"} onPress={onButtonPress}></ButtonLink>
|
|
31
|
+
).toJSON();
|
|
21
32
|
expect(buttonLink).toMatchSnapshot();
|
|
22
33
|
});
|
|
23
34
|
|
|
24
35
|
it("ButtonOutline Snapshot", () => {
|
|
25
|
-
const buttonOutline = TestRenderer.create(
|
|
36
|
+
const buttonOutline = TestRenderer.create(
|
|
37
|
+
<ButtonOutline
|
|
38
|
+
label={"label"}
|
|
39
|
+
accessibilityLabel={"accessibilityLabel"}
|
|
40
|
+
onPress={onButtonPress}
|
|
41
|
+
></ButtonOutline>
|
|
42
|
+
).toJSON();
|
|
26
43
|
expect(buttonOutline).toMatchSnapshot();
|
|
27
44
|
});
|
|
28
45
|
|
|
29
46
|
it("ButtonExtendedOutline Snapshot", () => {
|
|
30
|
-
const buttonExtendedOutline = TestRenderer.create(
|
|
47
|
+
const buttonExtendedOutline = TestRenderer.create(
|
|
48
|
+
<ButtonExtendedOutline
|
|
49
|
+
label={"label"}
|
|
50
|
+
onPress={onButtonPress}
|
|
51
|
+
></ButtonExtendedOutline>
|
|
52
|
+
).toJSON();
|
|
31
53
|
expect(buttonExtendedOutline).toMatchSnapshot();
|
|
32
54
|
});
|
|
55
|
+
|
|
56
|
+
it("IconButtonSolid Snapshot", () => {
|
|
57
|
+
const iconButtonSolid = TestRenderer.create(
|
|
58
|
+
<IconButtonSolid
|
|
59
|
+
onPress={onButtonPress}
|
|
60
|
+
icon={"spid"}
|
|
61
|
+
accessibilityLabel={"accessibilityLabel"}
|
|
62
|
+
></IconButtonSolid>
|
|
63
|
+
).toJSON();
|
|
64
|
+
expect(iconButtonSolid).toMatchSnapshot();
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
it("IconButton Snapshot", () => {
|
|
68
|
+
const iconButton = TestRenderer.create(
|
|
69
|
+
<IconButton
|
|
70
|
+
onPress={onButtonPress}
|
|
71
|
+
icon={"spid"}
|
|
72
|
+
accessibilityLabel={"accessibilityLabel"}
|
|
73
|
+
></IconButton>
|
|
74
|
+
).toJSON();
|
|
75
|
+
expect(iconButton).toMatchSnapshot();
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
it("IconButtonContained Snapshot", () => {
|
|
79
|
+
const iconButtonContained = TestRenderer.create(
|
|
80
|
+
<IconButtonContained
|
|
81
|
+
onPress={onButtonPress}
|
|
82
|
+
icon={"spid"}
|
|
83
|
+
accessibilityLabel={"accessibilityLabel"}
|
|
84
|
+
></IconButtonContained>
|
|
85
|
+
).toJSON();
|
|
86
|
+
expect(iconButtonContained).toMatchSnapshot();
|
|
87
|
+
});
|
|
33
88
|
});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./ButtonExtendedOutline";
|
|
2
2
|
export * from "./ButtonLink";
|
|
3
3
|
export * from "./ButtonOutline";
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
4
|
+
export * from "./ButtonSolid";
|
|
5
|
+
export * from "./IconButtonContained";
|
|
6
|
+
export * from "./IconButtonSolid";
|
|
7
|
+
export * from "./IconButton";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React, { useEffect } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Pressable, PressableProps, StyleSheet, View } from "react-native";
|
|
3
3
|
import Animated, {
|
|
4
|
-
|
|
5
|
-
useAnimatedStyle,
|
|
4
|
+
Easing,
|
|
6
5
|
interpolate,
|
|
6
|
+
useAnimatedStyle,
|
|
7
|
+
useSharedValue,
|
|
7
8
|
withSpring,
|
|
8
|
-
withTiming
|
|
9
|
-
Easing
|
|
9
|
+
withTiming
|
|
10
10
|
} from "react-native-reanimated";
|
|
11
|
-
import { IOSelectionTickVisualParams } from "../../core/IOStyles";
|
|
12
11
|
import { IOSpringValues } from "../../core/IOAnimations";
|
|
13
12
|
import { IOColors } from "../../core/IOColors";
|
|
13
|
+
import { IOSelectionTickVisualParams } from "../../core/IOStyles";
|
|
14
14
|
import { AnimatedTick } from "../common/AnimatedTick";
|
|
15
15
|
|
|
16
16
|
type Props = {
|
|
@@ -85,7 +85,6 @@ export const AnimatedCheckbox = ({ checked, onPress, disabled }: OwnProps) => {
|
|
|
85
85
|
onPress={onPress}
|
|
86
86
|
style={styles.checkBoxWrapper}
|
|
87
87
|
>
|
|
88
|
-
{/* ◀ REMOVE_LEGACY_COMPONENT: Remove the following conditions */}
|
|
89
88
|
<View
|
|
90
89
|
style={[
|
|
91
90
|
styles.checkboxBorder,
|
|
@@ -105,7 +104,6 @@ export const AnimatedCheckbox = ({ checked, onPress, disabled }: OwnProps) => {
|
|
|
105
104
|
animatedCheckboxSquare
|
|
106
105
|
]}
|
|
107
106
|
/>
|
|
108
|
-
{/* REMOVE_LEGACY_COMPONENT: End ▶ */}
|
|
109
107
|
{isChecked && (
|
|
110
108
|
<AnimatedTick
|
|
111
109
|
progress={tickAnimationProgress}
|
|
@@ -38,7 +38,6 @@ import IconGiacenza from "./svg/IconGiacenza";
|
|
|
38
38
|
import IconChat from "./svg/IconChat";
|
|
39
39
|
import IconAgreement from "./svg/IconAgreement";
|
|
40
40
|
import IconSave from "./svg/IconSave";
|
|
41
|
-
import IconCompleted from "./svg/IconCompleted";
|
|
42
41
|
import IconSuccess from "./svg/IconSuccess";
|
|
43
42
|
import IconOk from "./svg/IconOk";
|
|
44
43
|
import IconFiscalCodeIndividual from "./svg/IconFiscalCodeIndividual";
|
|
@@ -132,13 +131,19 @@ import IconProductIOAppBlueBg from "./svg/IconProductIOAppBlueBg";
|
|
|
132
131
|
import IconProductPagoPA from "./svg/IconProductPagoPA";
|
|
133
132
|
import IconWebsite from "./svg/IconWebsite";
|
|
134
133
|
import IconSecurity from "./svg/IconSecurity";
|
|
135
|
-
import LegIconSearch from "./svg/LegIconSearch";
|
|
136
|
-
import LegIconChevronLeft from "./svg/LegIconChevronLeft";
|
|
137
134
|
import LegIconRadioOn from "./svg/LegIconRadioOn";
|
|
138
135
|
import LegIconRadioOff from "./svg/LegIconRadioOff";
|
|
139
136
|
import LegIconCheckOn from "./svg/LegIconCheckOn";
|
|
140
137
|
import LegIconCheckOff from "./svg/LegIconCheckOff";
|
|
141
138
|
import IconCloseMedium from "./svg/IconCloseMedium";
|
|
139
|
+
import IconCheckTick from "./svg/IconCheckTick";
|
|
140
|
+
import IconCheckTickBig from "./svg/IconCheckTickBig";
|
|
141
|
+
import IconMerchant from "./svg/IconMerchant";
|
|
142
|
+
import IconSystemSettingsAndroid from "./svg/IconSystemSettingsAndroid";
|
|
143
|
+
import IconSystemSettingsiOS from "./svg/IconSystemSettingsiOS";
|
|
144
|
+
import IconSystemToggleInstructions from "./svg/IconSystemToggleInstructions";
|
|
145
|
+
import IconSystemAppsAndroid from "./svg/IconSystemAppsAndroid";
|
|
146
|
+
import IconSystemNotificationsInstructions from "./svg/IconSystemNotificationsInstructions";
|
|
142
147
|
|
|
143
148
|
export const IOIcons = {
|
|
144
149
|
spid: IconSpid,
|
|
@@ -182,7 +187,6 @@ export const IOIcons = {
|
|
|
182
187
|
docAttachPDF: IconDocumentAttachmentPDF,
|
|
183
188
|
attachment: IconAttachment,
|
|
184
189
|
add: IconAdd,
|
|
185
|
-
completed: IconCompleted,
|
|
186
190
|
success: IconSuccess,
|
|
187
191
|
ok: IconOk,
|
|
188
192
|
fiscalCodeIndividual: IconFiscalCodeIndividual,
|
|
@@ -229,15 +233,13 @@ export const IOIcons = {
|
|
|
229
233
|
gallery: IconGallery,
|
|
230
234
|
externalLink: IconExternalLink,
|
|
231
235
|
cancel: IconCancel,
|
|
232
|
-
help: IconQuestion
|
|
236
|
+
help: IconQuestion,
|
|
233
237
|
search: IconSearch /* io-search */,
|
|
234
|
-
legSearch: LegIconSearch,
|
|
235
238
|
chevronRight: IconChevronRight,
|
|
236
239
|
chevronLeft: IconChevronLeft,
|
|
237
240
|
chevronBottom: IconChevronBottom,
|
|
238
241
|
chevronTop: IconChevronTop,
|
|
239
242
|
chevronRightListItem: IconChevronRightListItem,
|
|
240
|
-
legChevronLeft: LegIconChevronLeft,
|
|
241
243
|
closeLarge: IconCloseLarge /* io-close */,
|
|
242
244
|
closeMedium: IconCloseMedium,
|
|
243
245
|
closeSmall: IconCloseSmall,
|
|
@@ -276,7 +278,15 @@ export const IOIcons = {
|
|
|
276
278
|
categSustainability: IconCategSustainability,
|
|
277
279
|
productIOApp: IconProductIOApp,
|
|
278
280
|
productPagoPA: IconProductPagoPA /* io-pagopa */,
|
|
279
|
-
productIOAppBlueBg: IconProductIOAppBlueBg
|
|
281
|
+
productIOAppBlueBg: IconProductIOAppBlueBg,
|
|
282
|
+
checkTick: IconCheckTick,
|
|
283
|
+
checkTickBig: IconCheckTickBig,
|
|
284
|
+
merchant: IconMerchant,
|
|
285
|
+
systemSettingsAndroid: IconSystemSettingsAndroid,
|
|
286
|
+
systemSettingsiOS: IconSystemSettingsiOS,
|
|
287
|
+
systemToggleInstructions: IconSystemToggleInstructions,
|
|
288
|
+
systemAppsAndroid: IconSystemAppsAndroid,
|
|
289
|
+
systemNotificationsInstructions: IconSystemNotificationsInstructions
|
|
280
290
|
} as const;
|
|
281
291
|
|
|
282
292
|
export type IOIcons = keyof typeof IOIcons;
|
|
@@ -471,3 +481,22 @@ export const IOProductIcons = {
|
|
|
471
481
|
} as const;
|
|
472
482
|
|
|
473
483
|
export type IOProductIcons = keyof typeof IOProductIcons;
|
|
484
|
+
|
|
485
|
+
/* System */
|
|
486
|
+
const {
|
|
487
|
+
systemSettingsAndroid,
|
|
488
|
+
systemSettingsiOS,
|
|
489
|
+
systemToggleInstructions,
|
|
490
|
+
systemAppsAndroid,
|
|
491
|
+
systemNotificationsInstructions
|
|
492
|
+
} = IOIcons;
|
|
493
|
+
|
|
494
|
+
export const IOSystemIcons = {
|
|
495
|
+
systemSettingsAndroid,
|
|
496
|
+
systemSettingsiOS,
|
|
497
|
+
systemToggleInstructions,
|
|
498
|
+
systemAppsAndroid,
|
|
499
|
+
systemNotificationsInstructions
|
|
500
|
+
} as const;
|
|
501
|
+
|
|
502
|
+
export type IOSystemIcons = keyof typeof IOSystemIcons;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./Icon";
|
|
2
|
-
export { Icon, AnimatedIcon } from "../icons/Icon";
|
|
1
|
+
export * from "./Icon";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Svg, Path } from "react-native-svg";
|
|
3
|
+
import { SVGIconProps } from "../Icon";
|
|
4
|
+
|
|
5
|
+
const IconCheckTick = ({ size, style, ...props }: SVGIconProps) => (
|
|
6
|
+
<Svg width={size} height={size} viewBox="0 0 24 24" style={style} {...props}>
|
|
7
|
+
<Path
|
|
8
|
+
fillRule="evenodd"
|
|
9
|
+
clipRule="evenodd"
|
|
10
|
+
d="M17.7071 9.29289C18.0976 9.68342 18.0976 10.3166 17.7071 10.7071L11.4142 17C10.6332 17.781 9.36684 17.7811 8.58579 17L5.29289 13.7071C4.90237 13.3166 4.90237 12.6834 5.29289 12.2929C5.68342 11.9024 6.31658 11.9024 6.70711 12.2929L10 15.5858L16.2929 9.29289C16.6834 8.90237 17.3166 8.90237 17.7071 9.29289Z"
|
|
11
|
+
fill="currentColor"
|
|
12
|
+
/>
|
|
13
|
+
</Svg>
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
export default IconCheckTick;
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { Svg, Path } from "react-native-svg";
|
|
3
3
|
import { SVGIconProps } from "../Icon";
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const IconCheckTickBig = ({ size, style, ...props }: SVGIconProps) => (
|
|
6
6
|
<Svg width={size} height={size} viewBox="0 0 24 24" style={style} {...props}>
|
|
7
7
|
<Path
|
|
8
8
|
fillRule="evenodd"
|
|
@@ -13,4 +13,4 @@ const IconCompleted = ({ size, style, ...props }: SVGIconProps) => (
|
|
|
13
13
|
</Svg>
|
|
14
14
|
);
|
|
15
15
|
|
|
16
|
-
export default
|
|
16
|
+
export default IconCheckTickBig;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Svg, Path } from "react-native-svg";
|
|
3
|
+
import { SVGIconProps } from "../Icon";
|
|
4
|
+
|
|
5
|
+
const IconMerchant = ({ size, style, ...props }: SVGIconProps) => (
|
|
6
|
+
<Svg width={size} height={size} viewBox="0 0 24 24" style={style} {...props}>
|
|
7
|
+
<Path
|
|
8
|
+
fillRule="evenodd"
|
|
9
|
+
clipRule="evenodd"
|
|
10
|
+
d="M0 5V9C0 10.6602 0.776973 12.1764 2 13.0935V22H1C0.447715 22 0 22.4477 0 23C0 23.5523 0.447716 24 1 24H2V24H22V24H23C23.5523 24 24 23.5523 24 23C24 22.4477 23.5523 22 23 22H22V13.0935C23.223 12.1764 24 10.6602 24 9V5C24 2.23858 21.7614 0 19 0H5C2.23858 0 0 2.23858 0 5ZM20 13.9446C19.7697 13.9811 19.5332 14 19.2916 14C17.9025 14 16.6807 13.3699 15.8304 12.3893C15.7456 12.2914 15.5914 12.2909 15.5059 12.3883C14.6426 13.3716 13.4024 14 11.9996 14C10.597 14 9.35702 13.3718 8.49367 12.3887C8.40819 12.2914 8.25406 12.2919 8.1692 12.3897C7.31896 13.3701 6.09726 14 4.70842 14C4.46675 14 4.23027 13.9811 4 13.9446V22H8V18C8 16.8954 8.89543 16 10 16H14C15.1046 16 16 16.8954 16 18V22H20V13.9446ZM4.70842 12C3.28253 12 2 10.7295 2 9V5C2 3.34315 3.34315 2 5 2H7.30078V9.87156C6.95182 11.148 5.88415 12 4.70842 12ZM9.30078 9.69118C9.30852 9.71511 9.31542 9.7395 9.32144 9.76433C9.64273 11.0892 10.7528 12 11.9996 12C13.2464 12 14.3565 11.0892 14.6778 9.76433C14.684 9.73866 14.6912 9.71347 14.6992 9.68878V2H9.30078V9.69118ZM19.2916 12C18.1159 12 17.0482 11.148 16.6992 9.87156V2H19C20.6569 2 22 3.34315 22 5V9C22 10.7295 20.7175 12 19.2916 12ZM14 18V22H10V18H14Z"
|
|
11
|
+
fill="currentColor"
|
|
12
|
+
/>
|
|
13
|
+
</Svg>
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
export default IconMerchant;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Svg, Rect, G, Circle } from "react-native-svg";
|
|
3
|
+
import { SVGIconProps } from "../Icon";
|
|
4
|
+
|
|
5
|
+
const IconSystemAppsAndroid = ({ size, style, ...props }: SVGIconProps) => (
|
|
6
|
+
<Svg width={size} height={size} viewBox="0 0 24 24" style={style} {...props}>
|
|
7
|
+
<Rect width={size} height={size} fill="#F79E1B" rx="8" />
|
|
8
|
+
<G fill="#fff">
|
|
9
|
+
<Circle cx="8" cy="8" r="3" />
|
|
10
|
+
<Circle cx="8" cy="16" r="3" />
|
|
11
|
+
<Circle cx="16" cy="16" r="3" />
|
|
12
|
+
<Circle cx="16" cy="8" r="3" />
|
|
13
|
+
</G>
|
|
14
|
+
</Svg>
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
export default IconSystemAppsAndroid;
|