@pagopa/io-app-design-system 1.17.2 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +110 -0
- package/lib/commonjs/components/Advice/__test__/advice.test.js +9 -0
- package/lib/commonjs/components/Advice/__test__/advice.test.js.map +1 -1
- package/lib/commonjs/components/accordion/AccordionItem.js +25 -9
- package/lib/commonjs/components/accordion/AccordionItem.js.map +1 -1
- package/lib/commonjs/components/avatar/__test__/__snapshots__/avatar.test.tsx.snap +37 -0
- package/lib/commonjs/components/avatar/__test__/avatar.test.js +13 -0
- package/lib/commonjs/components/avatar/__test__/avatar.test.js.map +1 -1
- package/lib/commonjs/components/badge/__test__/__snapshots__/badge.test.tsx.snap +46 -0
- package/lib/commonjs/components/badge/__test__/badge.test.js +10 -0
- package/lib/commonjs/components/badge/__test__/badge.test.js.map +1 -1
- package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +315 -0
- package/lib/commonjs/components/banner/__test__/banner.test.js +15 -0
- package/lib/commonjs/components/banner/__test__/banner.test.js.map +1 -1
- package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +862 -0
- package/lib/commonjs/components/buttons/__test__/button.test.js +57 -0
- package/lib/commonjs/components/buttons/__test__/button.test.js.map +1 -1
- package/lib/commonjs/components/checkbox/CheckboxLabel.js +6 -29
- package/lib/commonjs/components/checkbox/CheckboxLabel.js.map +1 -1
- package/lib/commonjs/components/codeInput/CodeInput.js +10 -25
- package/lib/commonjs/components/codeInput/CodeInput.js.map +1 -1
- package/lib/commonjs/components/endOfPage/EndOfPage.js +36 -0
- package/lib/commonjs/components/endOfPage/EndOfPage.js.map +1 -0
- package/lib/commonjs/components/endOfPage/index.js +17 -0
- package/lib/commonjs/components/endOfPage/index.js.map +1 -0
- package/lib/commonjs/components/icons/Icon.js +64 -48
- package/lib/commonjs/components/icons/Icon.js.map +1 -1
- package/lib/commonjs/components/icons/svg/IconSystemLocationiOS.js +34 -0
- package/lib/commonjs/components/icons/svg/IconSystemLocationiOS.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconSystemNotificationsInstructions.js +1 -0
- package/lib/commonjs/components/icons/svg/IconSystemNotificationsInstructions.js.map +1 -1
- package/lib/commonjs/components/icons/svg/IconSystemPermissionsAndroid.js +34 -0
- package/lib/commonjs/components/icons/svg/IconSystemPermissionsAndroid.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconSystemPhotosiOS.js +105 -0
- package/lib/commonjs/components/icons/svg/IconSystemPhotosiOS.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconSystemPrivacyiOS.js +34 -0
- package/lib/commonjs/components/icons/svg/IconSystemPrivacyiOS.js.map +1 -0
- package/lib/commonjs/components/icons/svg/originals/IconSystemLocationiOS.svg +7 -0
- package/lib/commonjs/components/icons/svg/originals/IconSystemNotificationsInstructions.svg +22 -0
- package/lib/commonjs/components/icons/svg/originals/IconSystemPhotosiOS.svg +99 -0
- package/lib/commonjs/components/icons/svg/originals/IconSystemPrivacyiOS.svg +14 -0
- package/lib/commonjs/components/image/Image.js +47 -0
- package/lib/commonjs/components/image/Image.js.map +1 -0
- package/lib/commonjs/components/image/index.js +17 -0
- package/lib/commonjs/components/image/index.js.map +1 -0
- package/lib/commonjs/components/index.js +33 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/layout/HeaderSecondLevel.js +9 -3
- package/lib/commonjs/components/layout/HeaderSecondLevel.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemHeader.js +4 -3
- package/lib/commonjs/components/listitems/ListItemHeader.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js +4 -1
- package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemTransaction.js +6 -3
- package/lib/commonjs/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +1729 -0
- package/lib/commonjs/components/listitems/__test__/listitem.test.js +83 -3
- package/lib/commonjs/components/listitems/__test__/listitem.test.js.map +1 -1
- package/lib/commonjs/components/otpInput/BoxedInput.js +72 -0
- package/lib/commonjs/components/otpInput/BoxedInput.js.map +1 -0
- package/lib/commonjs/components/otpInput/OTPInput.js +131 -0
- package/lib/commonjs/components/otpInput/OTPInput.js.map +1 -0
- package/lib/commonjs/components/otpInput/index.js +17 -0
- package/lib/commonjs/components/otpInput/index.js.map +1 -0
- package/lib/commonjs/components/pictograms/Pictogram.js +74 -68
- package/lib/commonjs/components/pictograms/Pictogram.js.map +1 -1
- package/lib/commonjs/components/pictograms/svg/PictogramComunicationProblem.js +85 -0
- package/lib/commonjs/components/pictograms/svg/PictogramComunicationProblem.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/PictogramEventClose.js +40 -0
- package/lib/commonjs/components/pictograms/svg/PictogramEventClose.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/PictogramHello.js +61 -0
- package/lib/commonjs/components/pictograms/svg/PictogramHello.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramComunicationProblem.svg +91 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramEventClose.svg +34 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramHello.svg +46 -0
- package/lib/commonjs/components/radio/RadioButtonLabel.js +70 -0
- package/lib/commonjs/components/radio/RadioButtonLabel.js.map +1 -0
- package/lib/commonjs/components/radio/RadioGroup.js +25 -21
- package/lib/commonjs/components/radio/RadioGroup.js.map +1 -1
- package/lib/commonjs/components/radio/index.js +11 -0
- package/lib/commonjs/components/radio/index.js.map +1 -1
- package/lib/commonjs/components/tabs/TabItem.js +13 -6
- package/lib/commonjs/components/tabs/TabItem.js.map +1 -1
- package/lib/commonjs/components/typography/LabelHeader.js +6 -4
- package/lib/commonjs/components/typography/LabelHeader.js.map +1 -1
- package/lib/commonjs/core/IODSExperimentalContextProvider.js +9 -9
- package/lib/commonjs/core/IODSExperimentalContextProvider.js.map +1 -1
- package/lib/commonjs/utils/hooks/useErrorShakeAnimation.js +44 -0
- package/lib/commonjs/utils/hooks/useErrorShakeAnimation.js.map +1 -0
- package/lib/commonjs/utils/testing.js +15 -0
- package/lib/commonjs/utils/testing.js.map +1 -0
- package/lib/module/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +110 -0
- package/lib/module/components/Advice/__test__/advice.test.js +9 -0
- package/lib/module/components/Advice/__test__/advice.test.js.map +1 -1
- package/lib/module/components/accordion/AccordionItem.js +27 -11
- package/lib/module/components/accordion/AccordionItem.js.map +1 -1
- package/lib/module/components/avatar/__test__/__snapshots__/avatar.test.tsx.snap +37 -0
- package/lib/module/components/avatar/__test__/avatar.test.js +13 -0
- package/lib/module/components/avatar/__test__/avatar.test.js.map +1 -1
- package/lib/module/components/badge/__test__/__snapshots__/badge.test.tsx.snap +46 -0
- package/lib/module/components/badge/__test__/badge.test.js +10 -0
- package/lib/module/components/badge/__test__/badge.test.js.map +1 -1
- package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +315 -0
- package/lib/module/components/banner/__test__/banner.test.js +15 -0
- package/lib/module/components/banner/__test__/banner.test.js.map +1 -1
- package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +862 -0
- package/lib/module/components/buttons/__test__/button.test.js +57 -0
- package/lib/module/components/buttons/__test__/button.test.js.map +1 -1
- package/lib/module/components/checkbox/CheckboxLabel.js +7 -30
- package/lib/module/components/checkbox/CheckboxLabel.js.map +1 -1
- package/lib/module/components/codeInput/CodeInput.js +9 -25
- package/lib/module/components/codeInput/CodeInput.js.map +1 -1
- package/lib/module/components/endOfPage/EndOfPage.js +28 -0
- package/lib/module/components/endOfPage/EndOfPage.js.map +1 -0
- package/lib/module/components/endOfPage/index.js +2 -0
- package/lib/module/components/endOfPage/index.js.map +1 -0
- package/lib/module/components/icons/Icon.js +64 -48
- package/lib/module/components/icons/Icon.js.map +1 -1
- package/lib/module/components/icons/svg/IconSystemLocationiOS.js +26 -0
- package/lib/module/components/icons/svg/IconSystemLocationiOS.js.map +1 -0
- package/lib/module/components/icons/svg/IconSystemNotificationsInstructions.js +2 -1
- package/lib/module/components/icons/svg/IconSystemNotificationsInstructions.js.map +1 -1
- package/lib/module/components/icons/svg/IconSystemPermissionsAndroid.js +26 -0
- package/lib/module/components/icons/svg/IconSystemPermissionsAndroid.js.map +1 -0
- package/lib/module/components/icons/svg/IconSystemPhotosiOS.js +97 -0
- package/lib/module/components/icons/svg/IconSystemPhotosiOS.js.map +1 -0
- package/lib/module/components/icons/svg/IconSystemPrivacyiOS.js +26 -0
- package/lib/module/components/icons/svg/IconSystemPrivacyiOS.js.map +1 -0
- package/lib/module/components/icons/svg/originals/IconSystemLocationiOS.svg +7 -0
- package/lib/module/components/icons/svg/originals/IconSystemNotificationsInstructions.svg +22 -0
- package/lib/module/components/icons/svg/originals/IconSystemPhotosiOS.svg +99 -0
- package/lib/module/components/icons/svg/originals/IconSystemPrivacyiOS.svg +14 -0
- package/lib/module/components/image/Image.js +39 -0
- package/lib/module/components/image/Image.js.map +1 -0
- package/lib/module/components/image/index.js +2 -0
- package/lib/module/components/image/index.js.map +1 -0
- package/lib/module/components/index.js +3 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/HeaderSecondLevel.js +9 -3
- package/lib/module/components/layout/HeaderSecondLevel.js.map +1 -1
- package/lib/module/components/listitems/ListItemHeader.js +4 -3
- package/lib/module/components/listitems/ListItemHeader.js.map +1 -1
- package/lib/module/components/listitems/ListItemRadioWithAmount.js +4 -1
- package/lib/module/components/listitems/ListItemRadioWithAmount.js.map +1 -1
- package/lib/module/components/listitems/ListItemTransaction.js +6 -3
- package/lib/module/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +1729 -0
- package/lib/module/components/listitems/__test__/listitem.test.js +83 -3
- package/lib/module/components/listitems/__test__/listitem.test.js.map +1 -1
- package/lib/module/components/otpInput/BoxedInput.js +64 -0
- package/lib/module/components/otpInput/BoxedInput.js.map +1 -0
- package/lib/module/components/otpInput/OTPInput.js +121 -0
- package/lib/module/components/otpInput/OTPInput.js.map +1 -0
- package/lib/module/components/otpInput/index.js +2 -0
- package/lib/module/components/otpInput/index.js.map +1 -0
- package/lib/module/components/pictograms/Pictogram.js +74 -68
- package/lib/module/components/pictograms/Pictogram.js.map +1 -1
- package/lib/module/components/pictograms/svg/PictogramComunicationProblem.js +77 -0
- package/lib/module/components/pictograms/svg/PictogramComunicationProblem.js.map +1 -0
- package/lib/module/components/pictograms/svg/PictogramEventClose.js +32 -0
- package/lib/module/components/pictograms/svg/PictogramEventClose.js.map +1 -0
- package/lib/module/components/pictograms/svg/PictogramHello.js +53 -0
- package/lib/module/components/pictograms/svg/PictogramHello.js.map +1 -0
- package/lib/module/components/pictograms/svg/originals/PictogramComunicationProblem.svg +91 -0
- package/lib/module/components/pictograms/svg/originals/PictogramEventClose.svg +34 -0
- package/lib/module/components/pictograms/svg/originals/PictogramHello.svg +46 -0
- package/lib/module/components/radio/RadioButtonLabel.js +62 -0
- package/lib/module/components/radio/RadioButtonLabel.js.map +1 -0
- package/lib/module/components/radio/RadioGroup.js +25 -21
- package/lib/module/components/radio/RadioGroup.js.map +1 -1
- package/lib/module/components/radio/index.js +1 -0
- package/lib/module/components/radio/index.js.map +1 -1
- package/lib/module/components/tabs/TabItem.js +13 -6
- package/lib/module/components/tabs/TabItem.js.map +1 -1
- package/lib/module/components/typography/LabelHeader.js +6 -4
- package/lib/module/components/typography/LabelHeader.js.map +1 -1
- package/lib/module/core/IODSExperimentalContextProvider.js +3 -3
- package/lib/module/core/IODSExperimentalContextProvider.js.map +1 -1
- package/lib/module/utils/hooks/useErrorShakeAnimation.js +37 -0
- package/lib/module/utils/hooks/useErrorShakeAnimation.js.map +1 -0
- package/lib/module/utils/testing.js +7 -0
- package/lib/module/utils/testing.js.map +1 -0
- package/lib/typescript/components/accordion/AccordionItem.d.ts +3 -1
- package/lib/typescript/components/accordion/AccordionItem.d.ts.map +1 -1
- package/lib/typescript/components/checkbox/CheckboxLabel.d.ts.map +1 -1
- package/lib/typescript/components/codeInput/CodeInput.d.ts.map +1 -1
- package/lib/typescript/components/endOfPage/EndOfPage.d.ts +23 -0
- package/lib/typescript/components/endOfPage/EndOfPage.d.ts.map +1 -0
- package/lib/typescript/components/endOfPage/index.d.ts +2 -0
- package/lib/typescript/components/endOfPage/index.d.ts.map +1 -0
- package/lib/typescript/components/icons/Icon.d.ts +8 -0
- package/lib/typescript/components/icons/Icon.d.ts.map +1 -1
- package/lib/typescript/components/icons/svg/IconSystemLocationiOS.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconSystemLocationiOS.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconSystemNotificationsInstructions.d.ts.map +1 -1
- package/lib/typescript/components/icons/svg/IconSystemPermissionsAndroid.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconSystemPermissionsAndroid.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconSystemPhotosiOS.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconSystemPhotosiOS.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconSystemPrivacyiOS.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconSystemPrivacyiOS.d.ts.map +1 -0
- package/lib/typescript/components/image/Image.d.ts +17 -0
- package/lib/typescript/components/image/Image.d.ts.map +1 -0
- package/lib/typescript/components/image/index.d.ts +2 -0
- package/lib/typescript/components/image/index.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +3 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/layout/HeaderSecondLevel.d.ts +10 -4
- package/lib/typescript/components/layout/HeaderSecondLevel.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemHeader.d.ts +2 -2
- package/lib/typescript/components/listitems/ListItemHeader.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemRadioWithAmount.d.ts +1 -0
- package/lib/typescript/components/listitems/ListItemRadioWithAmount.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemTransaction.d.ts +6 -1
- package/lib/typescript/components/listitems/ListItemTransaction.d.ts.map +1 -1
- package/lib/typescript/components/otpInput/BoxedInput.d.ts +9 -0
- package/lib/typescript/components/otpInput/BoxedInput.d.ts.map +1 -0
- package/lib/typescript/components/otpInput/OTPInput.d.ts +26 -0
- package/lib/typescript/components/otpInput/OTPInput.d.ts.map +1 -0
- package/lib/typescript/components/otpInput/index.d.ts +2 -0
- package/lib/typescript/components/otpInput/index.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/Pictogram.d.ts +3 -0
- package/lib/typescript/components/pictograms/Pictogram.d.ts.map +1 -1
- package/lib/typescript/components/pictograms/svg/PictogramComunicationProblem.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramComunicationProblem.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramEventClose.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramEventClose.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramHello.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramHello.d.ts.map +1 -0
- package/lib/typescript/components/radio/RadioButtonLabel.d.ts +18 -0
- package/lib/typescript/components/radio/RadioButtonLabel.d.ts.map +1 -0
- package/lib/typescript/components/radio/RadioGroup.d.ts +22 -9
- package/lib/typescript/components/radio/RadioGroup.d.ts.map +1 -1
- 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/tabs/TabItem.d.ts +2 -1
- package/lib/typescript/components/tabs/TabItem.d.ts.map +1 -1
- package/lib/typescript/components/typography/LabelHeader.d.ts +1 -1
- package/lib/typescript/components/typography/LabelHeader.d.ts.map +1 -1
- package/lib/typescript/core/IODSExperimentalContextProvider.d.ts +5 -1
- package/lib/typescript/core/IODSExperimentalContextProvider.d.ts.map +1 -1
- package/lib/typescript/utils/hooks/useErrorShakeAnimation.d.ts +11 -0
- package/lib/typescript/utils/hooks/useErrorShakeAnimation.d.ts.map +1 -0
- package/lib/typescript/utils/testing.d.ts +4 -0
- package/lib/typescript/utils/testing.d.ts.map +1 -0
- package/package.json +4 -2
- package/src/components/Advice/__test__/__snapshots__/advice.test.tsx.snap +110 -0
- package/src/components/Advice/__test__/advice.test.tsx +10 -0
- package/src/components/accordion/AccordionItem.tsx +33 -13
- package/src/components/avatar/__test__/__snapshots__/avatar.test.tsx.snap +37 -0
- package/src/components/avatar/__test__/avatar.test.tsx +10 -0
- package/src/components/badge/__test__/__snapshots__/badge.test.tsx.snap +46 -0
- package/src/components/badge/__test__/badge.test.tsx +10 -0
- package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +315 -0
- package/src/components/banner/__test__/banner.test.tsx +18 -0
- package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +862 -0
- package/src/components/buttons/__test__/button.test.tsx +77 -1
- package/src/components/checkbox/CheckboxLabel.tsx +4 -31
- package/src/components/codeInput/CodeInput.tsx +5 -33
- package/src/components/endOfPage/EndOfPage.tsx +55 -0
- package/src/components/endOfPage/index.tsx +1 -0
- package/src/components/icons/Icon.tsx +64 -48
- package/src/components/icons/svg/IconSystemLocationiOS.tsx +15 -0
- package/src/components/icons/svg/IconSystemNotificationsInstructions.tsx +2 -1
- package/src/components/icons/svg/IconSystemPermissionsAndroid.tsx +19 -0
- package/src/components/icons/svg/IconSystemPhotosiOS.tsx +114 -0
- package/src/components/icons/svg/IconSystemPrivacyiOS.tsx +15 -0
- package/src/components/icons/svg/originals/IconSystemLocationiOS.svg +7 -0
- package/src/components/icons/svg/originals/IconSystemNotificationsInstructions.svg +22 -0
- package/src/components/icons/svg/originals/IconSystemPhotosiOS.svg +99 -0
- package/src/components/icons/svg/originals/IconSystemPrivacyiOS.svg +14 -0
- package/src/components/image/Image.tsx +49 -0
- package/src/components/image/index.tsx +1 -0
- package/src/components/index.tsx +3 -0
- package/src/components/layout/HeaderSecondLevel.tsx +28 -10
- package/src/components/listitems/ListItemHeader.tsx +6 -3
- package/src/components/listitems/ListItemRadioWithAmount.tsx +5 -1
- package/src/components/listitems/ListItemTransaction.tsx +12 -1
- package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +1729 -0
- package/src/components/listitems/__test__/listitem.test.tsx +104 -3
- package/src/components/otpInput/BoxedInput.tsx +67 -0
- package/src/components/otpInput/OTPInput.tsx +135 -0
- package/src/components/otpInput/index.tsx +1 -0
- package/src/components/pictograms/Pictogram.tsx +74 -68
- package/src/components/pictograms/svg/PictogramComunicationProblem.tsx +94 -0
- package/src/components/pictograms/svg/PictogramEventClose.tsx +34 -0
- package/src/components/pictograms/svg/PictogramHello.tsx +54 -0
- package/src/components/pictograms/svg/originals/PictogramComunicationProblem.svg +91 -0
- package/src/components/pictograms/svg/originals/PictogramEventClose.svg +34 -0
- package/src/components/pictograms/svg/originals/PictogramHello.svg +46 -0
- package/src/components/radio/RadioButtonLabel.tsx +73 -0
- package/src/components/radio/RadioGroup.tsx +61 -11
- package/src/components/radio/index.tsx +1 -0
- package/src/components/tabs/TabItem.tsx +22 -6
- package/src/components/typography/LabelHeader.tsx +11 -6
- package/src/core/IODSExperimentalContextProvider.tsx +3 -3
- package/src/utils/hooks/useErrorShakeAnimation.ts +43 -0
- package/src/utils/testing.tsx +14 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Alert } from "react-native";
|
|
3
3
|
import * as TestRenderer from "react-test-renderer";
|
|
4
|
+
import { TestRendererWithExperimentalEnabledContextProvider } from "../../../utils/testing";
|
|
4
5
|
import ButtonExtendedOutline from "../ButtonExtendedOutline";
|
|
5
6
|
import ButtonLink from "../ButtonLink";
|
|
6
7
|
import ButtonOutline from "../ButtonOutline";
|
|
@@ -8,7 +9,6 @@ import ButtonSolid from "../ButtonSolid";
|
|
|
8
9
|
import IconButton from "../IconButton";
|
|
9
10
|
import IconButtonContained from "../IconButtonContained";
|
|
10
11
|
import IconButtonSolid from "../IconButtonSolid";
|
|
11
|
-
|
|
12
12
|
const onButtonPress = () => {
|
|
13
13
|
Alert.alert("Alert", "Action triggered");
|
|
14
14
|
};
|
|
@@ -86,3 +86,79 @@ describe("Test Buttons Components", () => {
|
|
|
86
86
|
expect(iconButtonContained).toMatchSnapshot();
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
|
+
|
|
90
|
+
describe("Test Buttons Components - Experimental Enabled", () => {
|
|
91
|
+
it("ButtonSolid Snapshot", () => {
|
|
92
|
+
const buttonSolid = TestRendererWithExperimentalEnabledContextProvider(
|
|
93
|
+
<ButtonSolid
|
|
94
|
+
label={"label"}
|
|
95
|
+
accessibilityLabel={"accessibilityLabel"}
|
|
96
|
+
onPress={onButtonPress}
|
|
97
|
+
></ButtonSolid>
|
|
98
|
+
).toJSON();
|
|
99
|
+
expect(buttonSolid).toMatchSnapshot();
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
it("ButtonLink Snapshot", () => {
|
|
103
|
+
const buttonLink = TestRendererWithExperimentalEnabledContextProvider(
|
|
104
|
+
<ButtonLink label={"label"} onPress={onButtonPress}></ButtonLink>
|
|
105
|
+
).toJSON();
|
|
106
|
+
expect(buttonLink).toMatchSnapshot();
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
it("ButtonOutline Snapshot", () => {
|
|
110
|
+
const buttonOutline = TestRendererWithExperimentalEnabledContextProvider(
|
|
111
|
+
<ButtonOutline
|
|
112
|
+
label={"label"}
|
|
113
|
+
accessibilityLabel={"accessibilityLabel"}
|
|
114
|
+
onPress={onButtonPress}
|
|
115
|
+
></ButtonOutline>
|
|
116
|
+
).toJSON();
|
|
117
|
+
expect(buttonOutline).toMatchSnapshot();
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
it("ButtonExtendedOutline Snapshot", () => {
|
|
121
|
+
const buttonExtendedOutline =
|
|
122
|
+
TestRendererWithExperimentalEnabledContextProvider(
|
|
123
|
+
<ButtonExtendedOutline
|
|
124
|
+
label={"label"}
|
|
125
|
+
onPress={onButtonPress}
|
|
126
|
+
></ButtonExtendedOutline>
|
|
127
|
+
).toJSON();
|
|
128
|
+
expect(buttonExtendedOutline).toMatchSnapshot();
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
it("IconButtonSolid Snapshot", () => {
|
|
132
|
+
const iconButtonSolid = TestRendererWithExperimentalEnabledContextProvider(
|
|
133
|
+
<IconButtonSolid
|
|
134
|
+
onPress={onButtonPress}
|
|
135
|
+
icon={"spid"}
|
|
136
|
+
accessibilityLabel={"accessibilityLabel"}
|
|
137
|
+
></IconButtonSolid>
|
|
138
|
+
).toJSON();
|
|
139
|
+
expect(iconButtonSolid).toMatchSnapshot();
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
it("IconButton Snapshot", () => {
|
|
143
|
+
const iconButton = TestRendererWithExperimentalEnabledContextProvider(
|
|
144
|
+
<IconButton
|
|
145
|
+
onPress={onButtonPress}
|
|
146
|
+
icon={"spid"}
|
|
147
|
+
accessibilityLabel={"accessibilityLabel"}
|
|
148
|
+
></IconButton>
|
|
149
|
+
).toJSON();
|
|
150
|
+
expect(iconButton).toMatchSnapshot();
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
it("IconButtonContained Snapshot", () => {
|
|
154
|
+
const iconButtonContained =
|
|
155
|
+
TestRendererWithExperimentalEnabledContextProvider(
|
|
156
|
+
<IconButtonContained
|
|
157
|
+
onPress={onButtonPress}
|
|
158
|
+
icon={"spid"}
|
|
159
|
+
accessibilityLabel={"accessibilityLabel"}
|
|
160
|
+
></IconButtonContained>
|
|
161
|
+
).toJSON();
|
|
162
|
+
expect(iconButtonContained).toMatchSnapshot();
|
|
163
|
+
});
|
|
164
|
+
});
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { Pressable,
|
|
4
|
-
import { IOColors, useIOExperimentalDesign } from "../../core";
|
|
3
|
+
import { Pressable, View } from "react-native";
|
|
5
4
|
import { IOStyles } from "../../core/IOStyles";
|
|
6
5
|
import { triggerHaptic } from "../../functions/haptic-feedback/hapticFeedback";
|
|
7
|
-
import { makeFontStyleObject } from "../../utils/fonts";
|
|
8
6
|
import { HSpacer } from "../spacer/Spacer";
|
|
9
7
|
import { H6 } from "../typography/H6";
|
|
10
8
|
import { AnimatedCheckbox } from "./AnimatedCheckbox";
|
|
@@ -23,17 +21,6 @@ type OwnProps = Props &
|
|
|
23
21
|
Pick<React.ComponentProps<typeof AnimatedCheckbox>, "disabled" | "checked"> &
|
|
24
22
|
Pick<React.ComponentProps<typeof Pressable>, "onPress">;
|
|
25
23
|
|
|
26
|
-
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
27
|
-
const styles = StyleSheet.create({
|
|
28
|
-
legacyTextValue: {
|
|
29
|
-
fontSize: 16,
|
|
30
|
-
lineHeight: 24,
|
|
31
|
-
color: IOColors.bluegreyDark,
|
|
32
|
-
flexShrink: 1,
|
|
33
|
-
...makeFontStyleObject("SemiBold", undefined, "TitilliumWeb")
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
|
|
37
24
|
/**
|
|
38
25
|
* A checkbox with the automatic state management that uses a {@link AnimatedCheckBox}
|
|
39
26
|
* The toggleValue change when a `onPress` event is received and dispatch the `onValueChange`.
|
|
@@ -49,22 +36,6 @@ export const CheckboxLabel = ({
|
|
|
49
36
|
}: OwnProps) => {
|
|
50
37
|
const [toggleValue, setToggleValue] = useState(checked ?? false);
|
|
51
38
|
|
|
52
|
-
const { isExperimental } = useIOExperimentalDesign();
|
|
53
|
-
const checkboxLabelText = (
|
|
54
|
-
<H6 style={{ flexShrink: 1 }} color={"black"}>
|
|
55
|
-
{label}
|
|
56
|
-
</H6>
|
|
57
|
-
);
|
|
58
|
-
|
|
59
|
-
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
60
|
-
const legacyCheckboxlabelText = (
|
|
61
|
-
<Text style={styles.legacyTextValue}>{label}</Text>
|
|
62
|
-
);
|
|
63
|
-
|
|
64
|
-
const checkboxLabelTextComponent = isExperimental
|
|
65
|
-
? checkboxLabelText
|
|
66
|
-
: legacyCheckboxlabelText;
|
|
67
|
-
|
|
68
39
|
const toggleCheckbox = () => {
|
|
69
40
|
triggerHaptic("impactLight");
|
|
70
41
|
setToggleValue(!toggleValue);
|
|
@@ -96,7 +67,9 @@ export const CheckboxLabel = ({
|
|
|
96
67
|
<AnimatedCheckbox checked={checked ?? toggleValue} />
|
|
97
68
|
</View>
|
|
98
69
|
<HSpacer size={8} />
|
|
99
|
-
{
|
|
70
|
+
<H6 style={{ flexShrink: 1 }} color={"black"}>
|
|
71
|
+
{label}
|
|
72
|
+
</H6>
|
|
100
73
|
</View>
|
|
101
74
|
</Pressable>
|
|
102
75
|
);
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import React, { useEffect, useMemo } from "react";
|
|
2
2
|
import { StyleSheet, View } from "react-native";
|
|
3
|
-
import Animated
|
|
4
|
-
Easing,
|
|
5
|
-
useAnimatedStyle,
|
|
6
|
-
useSharedValue,
|
|
7
|
-
withSequence,
|
|
8
|
-
withTiming
|
|
9
|
-
} from "react-native-reanimated";
|
|
3
|
+
import Animated from "react-native-reanimated";
|
|
10
4
|
import { IOColors, IOStyles } from "../../core";
|
|
11
5
|
import { triggerHaptic } from "../../functions";
|
|
12
6
|
import { HSpacer } from "../spacer";
|
|
7
|
+
import { useErrorShakeAnimation } from "../../utils/hooks/useErrorShakeAnimation";
|
|
13
8
|
|
|
14
9
|
type CodeInputProps = {
|
|
15
10
|
value: string;
|
|
@@ -56,12 +51,7 @@ export const CodeInput = ({
|
|
|
56
51
|
}: CodeInputProps) => {
|
|
57
52
|
const [status, setStatus] = React.useState<"default" | "error">("default");
|
|
58
53
|
|
|
59
|
-
const translate =
|
|
60
|
-
const shakeOffset: number = 8;
|
|
61
|
-
|
|
62
|
-
const animatedStyle = useAnimatedStyle(() => ({
|
|
63
|
-
transform: [{ translateX: translate.value }]
|
|
64
|
-
}));
|
|
54
|
+
const { translate, animatedStyle, shakeAnimation } = useErrorShakeAnimation();
|
|
65
55
|
|
|
66
56
|
const fillColor = useMemo(
|
|
67
57
|
() =>
|
|
@@ -82,25 +72,7 @@ export const CodeInput = ({
|
|
|
82
72
|
triggerHaptic("notificationError");
|
|
83
73
|
|
|
84
74
|
// eslint-disable-next-line functional/immutable-data
|
|
85
|
-
translate.value =
|
|
86
|
-
withTiming(shakeOffset, {
|
|
87
|
-
duration: 75,
|
|
88
|
-
easing: Easing.inOut(Easing.cubic)
|
|
89
|
-
}),
|
|
90
|
-
withTiming(-shakeOffset, {
|
|
91
|
-
duration: 75,
|
|
92
|
-
easing: Easing.inOut(Easing.cubic)
|
|
93
|
-
}),
|
|
94
|
-
withTiming(shakeOffset / 2, {
|
|
95
|
-
duration: 75,
|
|
96
|
-
easing: Easing.inOut(Easing.cubic)
|
|
97
|
-
}),
|
|
98
|
-
withTiming(-shakeOffset / 2, {
|
|
99
|
-
duration: 75,
|
|
100
|
-
easing: Easing.inOut(Easing.cubic)
|
|
101
|
-
}),
|
|
102
|
-
withTiming(0, { duration: 75, easing: Easing.inOut(Easing.cubic) })
|
|
103
|
-
);
|
|
75
|
+
translate.value = shakeAnimation();
|
|
104
76
|
|
|
105
77
|
const timer = setTimeout(() => {
|
|
106
78
|
setStatus("default");
|
|
@@ -110,7 +82,7 @@ export const CodeInput = ({
|
|
|
110
82
|
}
|
|
111
83
|
}
|
|
112
84
|
return;
|
|
113
|
-
}, [value, onValidate, length, onValueChange, translate]);
|
|
85
|
+
}, [value, onValidate, length, onValueChange, translate, shakeAnimation]);
|
|
114
86
|
|
|
115
87
|
return (
|
|
116
88
|
<Animated.View style={[IOStyles.row, styles.wrapper, animatedStyle]}>
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { View } from "react-native";
|
|
3
|
+
import { VSpacer } from "../spacer";
|
|
4
|
+
import {
|
|
5
|
+
ButtonLink,
|
|
6
|
+
ButtonLinkProps,
|
|
7
|
+
ButtonSolid,
|
|
8
|
+
ButtonSolidProps
|
|
9
|
+
} from "../buttons";
|
|
10
|
+
|
|
11
|
+
type PrimaryActionProp = {
|
|
12
|
+
type: "Solid";
|
|
13
|
+
props: Omit<ButtonSolidProps, "fullWidth">;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
type SecondaryActionProp = {
|
|
17
|
+
type: "Link";
|
|
18
|
+
props: ButtonLinkProps;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
type Props =
|
|
22
|
+
| {
|
|
23
|
+
primaryAction?: never;
|
|
24
|
+
secondaryAction?: never;
|
|
25
|
+
}
|
|
26
|
+
| {
|
|
27
|
+
primaryAction: PrimaryActionProp;
|
|
28
|
+
secondaryAction?: never;
|
|
29
|
+
}
|
|
30
|
+
| {
|
|
31
|
+
primaryAction: PrimaryActionProp;
|
|
32
|
+
secondaryAction: SecondaryActionProp;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const EndOfPage = ({ primaryAction, secondaryAction }: Props) => (
|
|
36
|
+
<>
|
|
37
|
+
<VSpacer size={32} />
|
|
38
|
+
{primaryAction ? (
|
|
39
|
+
<>
|
|
40
|
+
<ButtonSolid {...primaryAction.props} fullWidth />
|
|
41
|
+
{secondaryAction && (
|
|
42
|
+
<>
|
|
43
|
+
<VSpacer size={16} />
|
|
44
|
+
<VSpacer size={4} />
|
|
45
|
+
<View style={{ justifyContent: "center", flexDirection: "row" }}>
|
|
46
|
+
<ButtonLink {...secondaryAction.props} />
|
|
47
|
+
</View>
|
|
48
|
+
</>
|
|
49
|
+
)}
|
|
50
|
+
</>
|
|
51
|
+
) : (
|
|
52
|
+
<VSpacer size={32} />
|
|
53
|
+
)}
|
|
54
|
+
</>
|
|
55
|
+
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./EndOfPage";
|
|
@@ -5,10 +5,12 @@ import { IOColors } from "../../core/IOColors";
|
|
|
5
5
|
/* Icons */
|
|
6
6
|
import IconAbacus from "./svg/IconAbacus";
|
|
7
7
|
import IconAdd from "./svg/IconAdd";
|
|
8
|
+
import IconAddSmall from "./svg/IconAddSmall";
|
|
8
9
|
import IconAgreement from "./svg/IconAgreement";
|
|
9
10
|
import IconAmount from "./svg/IconAmount";
|
|
10
11
|
import IconAnalytics from "./svg/IconAnalytics";
|
|
11
12
|
import IconArchive from "./svg/IconArchive";
|
|
13
|
+
import IconArchiveFilled from "./svg/IconArchiveFilled";
|
|
12
14
|
import IconArrowBottom from "./svg/IconArrowBottom";
|
|
13
15
|
import IconArrowLeft from "./svg/IconArrowLeft";
|
|
14
16
|
import IconArrowRight from "./svg/IconArrowRight";
|
|
@@ -37,6 +39,7 @@ import IconCategSustainability from "./svg/IconCategSustainability";
|
|
|
37
39
|
import IconCategTelco from "./svg/IconCategTelco";
|
|
38
40
|
import IconCategTravel from "./svg/IconCategTravel";
|
|
39
41
|
import IconCategWellness from "./svg/IconCategWellness";
|
|
42
|
+
import IconChange from "./svg/IconChange";
|
|
40
43
|
import IconChat from "./svg/IconChat";
|
|
41
44
|
import IconCheckTick from "./svg/IconCheckTick";
|
|
42
45
|
import IconCheckTickBig from "./svg/IconCheckTickBig";
|
|
@@ -49,35 +52,63 @@ import IconCie from "./svg/IconCie";
|
|
|
49
52
|
import IconCloseLarge from "./svg/IconCloseLarge";
|
|
50
53
|
import IconCloseMedium from "./svg/IconCloseMedium";
|
|
51
54
|
import IconCloseSmall from "./svg/IconCloseSmall";
|
|
55
|
+
import IconCode from "./svg/IconCode";
|
|
52
56
|
import IconCoggle from "./svg/IconCoggle";
|
|
57
|
+
import IconCompare from "./svg/IconCompare";
|
|
58
|
+
import IconContactless from "./svg/IconContactless";
|
|
53
59
|
import IconCopy from "./svg/IconCopy";
|
|
54
60
|
import IconCreditCard from "./svg/IconCreditCard";
|
|
61
|
+
import IconCreditCardOff from "./svg/IconCreditCardOff";
|
|
55
62
|
import IconDevice from "./svg/IconDevice";
|
|
63
|
+
import IconDeviceVibration from "./svg/IconDeviceVibration";
|
|
64
|
+
import IconDisabilityCard from "./svg/IconDisabilityCard";
|
|
65
|
+
import IconDocGiacenza from "./svg/IconDocGiacenza";
|
|
66
|
+
import IconDocPaymentCode from "./svg/IconDocPaymentCode";
|
|
67
|
+
import IconDocPaymentTitle from "./svg/IconDocPaymentTitle";
|
|
56
68
|
import IconDocument from "./svg/IconDocument";
|
|
57
69
|
import IconDocumentAttachment from "./svg/IconDocumentAttachment";
|
|
58
70
|
import IconDocumentAttachmentPDF from "./svg/IconDocumentAttachmentPDF";
|
|
59
71
|
import IconDocumentSign from "./svg/IconDocumentSign";
|
|
60
72
|
import IconDotMenu from "./svg/IconDotMenu";
|
|
73
|
+
import IconDriverLicense from "./svg/IconDriverLicense";
|
|
61
74
|
import IconEdit from "./svg/IconEdit";
|
|
62
75
|
import IconEmail from "./svg/IconEmail";
|
|
63
76
|
import IconEmailFill from "./svg/IconEmailFill";
|
|
64
77
|
import IconEmojiHappy from "./svg/IconEmojiHappy";
|
|
65
78
|
import IconEmojiSad from "./svg/IconEmojiSad";
|
|
79
|
+
import IconEntityCode from "./svg/IconEntityCode";
|
|
66
80
|
import IconErrorFilled from "./svg/IconErrorFilled";
|
|
67
81
|
import IconExternalLink from "./svg/IconExternalLink";
|
|
82
|
+
import IconExternalLinkSmall from "./svg/IconExternalLinkSmall";
|
|
68
83
|
import IconEyeHide from "./svg/IconEyeHide";
|
|
69
84
|
import IconEyeShow from "./svg/IconEyeShow";
|
|
85
|
+
import IconFamilySharing from "./svg/IconFamilySharing";
|
|
86
|
+
import IconFilterAndroid from "./svg/IconFilterAndroid";
|
|
87
|
+
import IconFilterOffiOS from "./svg/IconFilterOffiOS";
|
|
88
|
+
import IconFilterOniOS from "./svg/IconFilterOniOS";
|
|
89
|
+
import IconFingerprint from "./svg/IconFingerprint";
|
|
70
90
|
import IconFiscalCodeIndividual from "./svg/IconFiscalCodeIndividual";
|
|
91
|
+
import IconFolder from "./svg/IconFolder";
|
|
71
92
|
import IconFornitori from "./svg/IconFornitori";
|
|
93
|
+
import IconForward from "./svg/IconForward";
|
|
72
94
|
import IconGallery from "./svg/IconGallery";
|
|
95
|
+
import IconHealthCard from "./svg/IconHealthCard";
|
|
96
|
+
import IconHearthEmpty from "./svg/IconHearthEmpty";
|
|
97
|
+
import IconHearthFilled from "./svg/IconHearthFilled";
|
|
73
98
|
import IconHistory from "./svg/IconHistory";
|
|
74
99
|
import IconHome from "./svg/IconHome";
|
|
75
100
|
import IconHomeFill from "./svg/IconHomeFill";
|
|
76
101
|
import IconHourglass from "./svg/IconHourglass";
|
|
102
|
+
import IconInboxEmpty from "./svg/IconInboxEmpty";
|
|
103
|
+
import IconInboxFilled from "./svg/IconInboxFilled";
|
|
77
104
|
import IconInfo from "./svg/IconInfo";
|
|
78
105
|
import IconInfoFilled from "./svg/IconInfoFilled";
|
|
79
106
|
import IconInitiatives from "./svg/IconInitiatives";
|
|
80
107
|
import IconInstitution from "./svg/IconInstitution";
|
|
108
|
+
import IconInstruction from "./svg/IconInstruction";
|
|
109
|
+
import IconKey from "./svg/IconKey";
|
|
110
|
+
import IconKeyboard from "./svg/IconKeyboard";
|
|
111
|
+
import IconKeyboardDown from "./svg/IconKeyboardDown";
|
|
81
112
|
import IconLadybug from "./svg/IconLadybug";
|
|
82
113
|
import IconLegalValue from "./svg/IconLegalValue";
|
|
83
114
|
import IconLight from "./svg/IconLight";
|
|
@@ -91,6 +122,7 @@ import IconLockOn from "./svg/IconLockOn";
|
|
|
91
122
|
import IconLogin from "./svg/IconLogin";
|
|
92
123
|
import IconLogout from "./svg/IconLogout";
|
|
93
124
|
import IconMagicWand from "./svg/IconMagicWand";
|
|
125
|
+
import IconMapPin from "./svg/IconMapPin";
|
|
94
126
|
import IconMerchant from "./svg/IconMerchant";
|
|
95
127
|
import IconMessage from "./svg/IconMessage";
|
|
96
128
|
import IconMessageLegal from "./svg/IconMessageLegal";
|
|
@@ -103,14 +135,19 @@ import IconNavServices from "./svg/IconNavServices";
|
|
|
103
135
|
import IconNavServicesFocused from "./svg/IconNavServicesFocused";
|
|
104
136
|
import IconNavWallet from "./svg/IconNavWallet";
|
|
105
137
|
import IconNavWalletFocused from "./svg/IconNavWalletFocused";
|
|
138
|
+
import IconNotes from "./svg/IconNotes";
|
|
106
139
|
import IconNotice from "./svg/IconNotice";
|
|
107
140
|
import IconNoticeFilled from "./svg/IconNoticeFilled";
|
|
141
|
+
import IconNoticePlain from "./svg/IconNoticePlain";
|
|
142
|
+
import IconNotification from "./svg/IconNotification";
|
|
108
143
|
import IconOk from "./svg/IconOk";
|
|
144
|
+
import IconOption from "./svg/IconOption";
|
|
109
145
|
import IconPEC from "./svg/IconPEC";
|
|
110
146
|
import IconPSP from "./svg/IconPSP";
|
|
111
147
|
import IconPhone from "./svg/IconPhone";
|
|
112
148
|
import IconPinOff from "./svg/IconPinOff";
|
|
113
149
|
import IconPinOn from "./svg/IconPinOn";
|
|
150
|
+
import IconPrint from "./svg/IconPrint";
|
|
114
151
|
import IconProductIOApp from "./svg/IconProductIOApp";
|
|
115
152
|
import IconProductIOAppBlueBg from "./svg/IconProductIOAppBlueBg";
|
|
116
153
|
import IconProductPagoPA from "./svg/IconProductPagoPA";
|
|
@@ -119,6 +156,9 @@ import IconProfileAlt from "./svg/IconProfileAlt";
|
|
|
119
156
|
import IconProfileFilled from "./svg/IconProfileFilled";
|
|
120
157
|
import IconQrCode from "./svg/IconQrCode";
|
|
121
158
|
import IconQuestion from "./svg/IconQuestion";
|
|
159
|
+
import IconRead from "./svg/IconRead";
|
|
160
|
+
import IconReceiptOff from "./svg/IconReceiptOff";
|
|
161
|
+
import IconReceiptOn from "./svg/IconReceiptOn";
|
|
122
162
|
import IconRefund from "./svg/IconRefund";
|
|
123
163
|
import IconReload from "./svg/IconReload";
|
|
124
164
|
import IconSave from "./svg/IconSave";
|
|
@@ -127,70 +167,34 @@ import IconSecurity from "./svg/IconSecurity";
|
|
|
127
167
|
import IconSelfCertification from "./svg/IconSelfCertification";
|
|
128
168
|
import IconShareAndroid from "./svg/IconShareAndroid";
|
|
129
169
|
import IconShareiOs from "./svg/IconShareiOs";
|
|
170
|
+
import IconSignal from "./svg/IconSignal";
|
|
171
|
+
import IconSparkles from "./svg/IconSparkles";
|
|
130
172
|
import IconSpid from "./svg/IconSpid";
|
|
131
173
|
import IconStarEmpty from "./svg/IconStarEmpty";
|
|
132
174
|
import IconStarFilled from "./svg/IconStarFilled";
|
|
133
175
|
import IconSuccess from "./svg/IconSuccess";
|
|
134
176
|
import IconSwitchOff from "./svg/IconSwitchOff";
|
|
135
177
|
import IconSystemAppsAndroid from "./svg/IconSystemAppsAndroid";
|
|
178
|
+
import IconSystemLocationiOS from "./svg/IconSystemLocationiOS";
|
|
136
179
|
import IconSystemNotificationsInstructions from "./svg/IconSystemNotificationsInstructions";
|
|
180
|
+
import IconSystemPermissionsAndroid from "./svg/IconSystemPermissionsAndroid";
|
|
181
|
+
import IconSystemPhotosiOS from "./svg/IconSystemPhotosiOS";
|
|
182
|
+
import IconSystemPrivacyiOS from "./svg/IconSystemPrivacyiOS";
|
|
137
183
|
import IconSystemSettingsAndroid from "./svg/IconSystemSettingsAndroid";
|
|
138
184
|
import IconSystemSettingsiOS from "./svg/IconSystemSettingsiOS";
|
|
139
185
|
import IconSystemToggleInstructions from "./svg/IconSystemToggleInstructions";
|
|
140
186
|
import IconTag from "./svg/IconTag";
|
|
141
|
-
import
|
|
187
|
+
import IconTerms from "./svg/IconTerms";
|
|
188
|
+
import IconTouch from "./svg/IconTouch";
|
|
142
189
|
import IconTransactions from "./svg/IconTransactions";
|
|
190
|
+
import IconTransactionsBoxed from "./svg/IconTransactionsBoxed";
|
|
143
191
|
import IconTrashcan from "./svg/IconTrashcan";
|
|
144
192
|
import IconWarningFilled from "./svg/IconWarningFilled";
|
|
145
193
|
import IconWebsite from "./svg/IconWebsite";
|
|
146
|
-
import IconOption from "./svg/IconOption";
|
|
147
|
-
import IconKey from "./svg/IconKey";
|
|
148
|
-
import IconNotification from "./svg/IconNotification";
|
|
149
|
-
import IconChange from "./svg/IconChange";
|
|
150
194
|
import LegIconCheckOff from "./svg/LegIconCheckOff";
|
|
151
195
|
import LegIconCheckOn from "./svg/LegIconCheckOn";
|
|
152
196
|
import LegIconRadioOff from "./svg/LegIconRadioOff";
|
|
153
197
|
import LegIconRadioOn from "./svg/LegIconRadioOn";
|
|
154
|
-
import IconKeyboard from "./svg/IconKeyboard";
|
|
155
|
-
import IconContactless from "./svg/IconContactless";
|
|
156
|
-
import IconDisabilityCard from "./svg/IconDisabilityCard";
|
|
157
|
-
import IconDriverLicense from "./svg/IconDriverLicense";
|
|
158
|
-
import IconHealthCard from "./svg/IconHealthCard";
|
|
159
|
-
import IconDocPaymentCode from "./svg/IconDocPaymentCode";
|
|
160
|
-
import IconNotes from "./svg/IconNotes";
|
|
161
|
-
import IconEntityCode from "./svg/IconEntityCode";
|
|
162
|
-
import IconFolder from "./svg/IconFolder";
|
|
163
|
-
import IconReceiptOn from "./svg/IconReceiptOn";
|
|
164
|
-
import IconFingerprint from "./svg/IconFingerprint";
|
|
165
|
-
import IconAddSmall from "./svg/IconAddSmall";
|
|
166
|
-
import IconArchiveFilled from "./svg/IconArchiveFilled";
|
|
167
|
-
import IconCode from "./svg/IconCode";
|
|
168
|
-
import IconCompare from "./svg/IconCompare";
|
|
169
|
-
import IconCreditCardOff from "./svg/IconCreditCardOff";
|
|
170
|
-
import IconDeviceVibration from "./svg/IconDeviceVibration";
|
|
171
|
-
import IconDocPaymentTitle from "./svg/IconDocPaymentTitle";
|
|
172
|
-
import IconDocGiacenza from "./svg/IconDocGiacenza";
|
|
173
|
-
import IconExternalLinkSmall from "./svg/IconExternalLinkSmall";
|
|
174
|
-
import IconFamilySharing from "./svg/IconFamilySharing";
|
|
175
|
-
import IconFilterOniOS from "./svg/IconFilterOniOS";
|
|
176
|
-
import IconFilterOffiOS from "./svg/IconFilterOffiOS";
|
|
177
|
-
import IconFilterAndroid from "./svg/IconFilterAndroid";
|
|
178
|
-
import IconForward from "./svg/IconForward";
|
|
179
|
-
import IconHearthEmpty from "./svg/IconHearthEmpty";
|
|
180
|
-
import IconHearthFilled from "./svg/IconHearthFilled";
|
|
181
|
-
import IconInboxEmpty from "./svg/IconInboxEmpty";
|
|
182
|
-
import IconInboxFilled from "./svg/IconInboxFilled";
|
|
183
|
-
import IconInstruction from "./svg/IconInstruction";
|
|
184
|
-
import IconTerms from "./svg/IconTerms";
|
|
185
|
-
import IconKeyboardDown from "./svg/IconKeyboardDown";
|
|
186
|
-
import IconMapPin from "./svg/IconMapPin";
|
|
187
|
-
import IconNoticePlain from "./svg/IconNoticePlain";
|
|
188
|
-
import IconPrint from "./svg/IconPrint";
|
|
189
|
-
import IconRead from "./svg/IconRead";
|
|
190
|
-
import IconReceiptOff from "./svg/IconReceiptOff";
|
|
191
|
-
import IconSignal from "./svg/IconSignal";
|
|
192
|
-
import IconTouch from "./svg/IconTouch";
|
|
193
|
-
import IconSparkles from "./svg/IconSparkles";
|
|
194
198
|
|
|
195
199
|
export const IOIcons = {
|
|
196
200
|
spid: IconSpid,
|
|
@@ -381,7 +385,11 @@ export const IOIcons = {
|
|
|
381
385
|
systemSettingsiOS: IconSystemSettingsiOS,
|
|
382
386
|
systemToggleInstructions: IconSystemToggleInstructions,
|
|
383
387
|
systemAppsAndroid: IconSystemAppsAndroid,
|
|
384
|
-
systemNotificationsInstructions: IconSystemNotificationsInstructions
|
|
388
|
+
systemNotificationsInstructions: IconSystemNotificationsInstructions,
|
|
389
|
+
systemPermissionsAndroid: IconSystemPermissionsAndroid,
|
|
390
|
+
systemLocationiOS: IconSystemLocationiOS,
|
|
391
|
+
systemPhotosiOS: IconSystemPhotosiOS,
|
|
392
|
+
systemPrivacyiOS: IconSystemPrivacyiOS
|
|
385
393
|
} as const;
|
|
386
394
|
|
|
387
395
|
export type IOIcons = keyof typeof IOIcons;
|
|
@@ -649,7 +657,11 @@ const {
|
|
|
649
657
|
systemSettingsiOS,
|
|
650
658
|
systemToggleInstructions,
|
|
651
659
|
systemAppsAndroid,
|
|
652
|
-
systemNotificationsInstructions
|
|
660
|
+
systemNotificationsInstructions,
|
|
661
|
+
systemPermissionsAndroid,
|
|
662
|
+
systemLocationiOS,
|
|
663
|
+
systemPhotosiOS,
|
|
664
|
+
systemPrivacyiOS
|
|
653
665
|
} = IOIcons;
|
|
654
666
|
|
|
655
667
|
export const IOSystemIcons = {
|
|
@@ -657,7 +669,11 @@ export const IOSystemIcons = {
|
|
|
657
669
|
systemSettingsiOS,
|
|
658
670
|
systemToggleInstructions,
|
|
659
671
|
systemAppsAndroid,
|
|
660
|
-
systemNotificationsInstructions
|
|
672
|
+
systemNotificationsInstructions,
|
|
673
|
+
systemPermissionsAndroid,
|
|
674
|
+
systemLocationiOS,
|
|
675
|
+
systemPhotosiOS,
|
|
676
|
+
systemPrivacyiOS
|
|
661
677
|
} as const;
|
|
662
678
|
|
|
663
679
|
export type IOSystemIcons = keyof typeof IOSystemIcons;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Path, Rect, Svg } from "react-native-svg";
|
|
3
|
+
import { SVGIconProps } from "../Icon";
|
|
4
|
+
|
|
5
|
+
const IconSystemLocationiOS = ({ 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="#3478F6" rx="8" />
|
|
8
|
+
<Path
|
|
9
|
+
d="M11.6519 12.4068C11.4302 12.4068 11.28 12.4068 11.1297 12.4068C9.79024 12.4032 8.44894 12.4032 7.10947 12.3958C6.92806 12.3958 6.74483 12.3738 6.56892 12.3354C6.2739 12.2731 6.08517 12.0807 6.0302 11.7856C5.97339 11.4815 6.05585 11.2084 6.30689 11.0142C6.42599 10.9226 6.56525 10.8548 6.70268 10.7907C9.98447 9.27162 13.2663 7.75258 16.5499 6.23903C16.7551 6.14375 16.9732 6.06129 17.193 6.01915C17.7464 5.9147 18.1294 6.24636 18.0872 6.79791C18.0726 6.98848 18.0066 7.18271 17.9242 7.35862C16.6928 10.0119 15.456 12.6633 14.2209 15.3148C13.9204 15.9598 13.6236 16.6085 13.3176 17.2516C13.2461 17.4019 13.1655 17.5503 13.0629 17.6804C12.8393 17.9608 12.4692 18.0744 12.1613 17.9498C11.848 17.8233 11.6996 17.5705 11.6904 17.2351C11.6867 17.1142 11.6867 16.9933 11.6867 16.8705C11.6849 15.5658 11.6831 14.2612 11.6794 12.9565C11.6794 12.7934 11.6648 12.6304 11.6538 12.4086L11.6519 12.4068Z"
|
|
10
|
+
fill="#FFF"
|
|
11
|
+
/>
|
|
12
|
+
</Svg>
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
export default IconSystemLocationiOS;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Circle, Path, Rect, Svg } from "react-native-svg";
|
|
3
3
|
import { SVGIconProps } from "../Icon";
|
|
4
4
|
|
|
5
5
|
const IconSystemNotificationsInstructions = ({
|
|
@@ -10,6 +10,7 @@ const IconSystemNotificationsInstructions = ({
|
|
|
10
10
|
<Svg width={size} height={size} viewBox="0 0 24 24" style={style} {...props}>
|
|
11
11
|
<Rect width={size} height={size} fill="#EB4E3E" rx="4.364" />
|
|
12
12
|
<Path
|
|
13
|
+
fill="#EB4E3E"
|
|
13
14
|
stroke="#fff"
|
|
14
15
|
stroke-width="1.091"
|
|
15
16
|
d="M4.909 8.727c0-1.044 0-1.772.075-2.321.072-.534.203-.816.404-1.018.201-.2.484-.332 1.018-.404.549-.074 1.277-.075 2.32-.075h6.546c1.044 0 1.772.001 2.322.075.533.072.816.203 1.017.404.202.202.333.484.404 1.018.074.55.076 1.277.076 2.321v6.546c0 1.044-.002 1.772-.076 2.321-.071.534-.202.816-.404 1.018-.201.201-.484.332-1.017.404-.55.074-1.278.075-2.322.075H8.727c-1.044 0-1.772-.001-2.321-.075-.534-.072-.817-.203-1.018-.404-.201-.201-.332-.484-.404-1.018-.074-.55-.075-1.277-.075-2.321V8.727Z"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Path, Rect, Svg } from "react-native-svg";
|
|
3
|
+
import { SVGIconProps } from "../Icon";
|
|
4
|
+
|
|
5
|
+
const IconSystemPermissionsAndroid = ({
|
|
6
|
+
size,
|
|
7
|
+
style,
|
|
8
|
+
...props
|
|
9
|
+
}: SVGIconProps) => (
|
|
10
|
+
<Svg width={size} height={size} viewBox="0 0 24 24" style={style} {...props}>
|
|
11
|
+
<Rect width={size} height={size} fill="#636B82" rx="8" />
|
|
12
|
+
<Path
|
|
13
|
+
d="M12 15.75C12.825 15.75 13.5 15.075 13.5 14.25C13.5 13.425 12.825 12.75 12 12.75C11.175 12.75 10.5 13.425 10.5 14.25C10.5 15.075 11.175 15.75 12 15.75ZM16.5 9H15.75V7.5C15.75 5.43 14.07 3.75 12 3.75C9.93 3.75 8.25 5.43 8.25 7.5H9.675C9.675 6.2175 10.7175 5.175 12 5.175C13.2825 5.175 14.325 6.2175 14.325 7.5V9H7.5C6.675 9 6 9.675 6 10.5V18C6 18.825 6.675 19.5 7.5 19.5H16.5C17.325 19.5 18 18.825 18 18V10.5C18 9.675 17.325 9 16.5 9ZM16.5 18H7.5V10.5H16.5V18Z"
|
|
14
|
+
fill="#FFFFFF"
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export default IconSystemPermissionsAndroid;
|