@pagopa/io-app-design-system 1.17.1 → 1.18.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/buttons/ButtonLink.js +14 -0
- package/lib/commonjs/components/buttons/ButtonLink.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/common/ScaleInOutAnimation.js +69 -0
- package/lib/commonjs/components/common/ScaleInOutAnimation.js.map +1 -0
- package/lib/commonjs/components/icons/Icon.js +52 -48
- package/lib/commonjs/components/icons/Icon.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/index.js +11 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/layout/ForceScrollDownView.js +161 -0
- package/lib/commonjs/components/layout/ForceScrollDownView.js.map +1 -0
- package/lib/commonjs/components/layout/HeaderFirstLevel.js +4 -4
- package/lib/commonjs/components/layout/HeaderFirstLevel.js.map +1 -1
- package/lib/commonjs/components/layout/__test__/ForceScrollDownView.test.js +94 -0
- package/lib/commonjs/components/layout/__test__/ForceScrollDownView.test.js.map +1 -0
- package/lib/commonjs/components/layout/__test__/__snapshots__/ForceScrollDownView.test.tsx.snap +23 -0
- package/lib/commonjs/components/layout/index.js +11 -0
- package/lib/commonjs/components/layout/index.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemTransaction.js +6 -3
- package/lib/commonjs/components/listitems/ListItemTransaction.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/index.js +11 -0
- package/lib/commonjs/components/radio/index.js.map +1 -1
- package/lib/commonjs/core/IOStyles.js +3 -1
- package/lib/commonjs/core/IOStyles.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/module/components/buttons/ButtonLink.js +15 -1
- package/lib/module/components/buttons/ButtonLink.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/common/ScaleInOutAnimation.js +59 -0
- package/lib/module/components/common/ScaleInOutAnimation.js.map +1 -0
- package/lib/module/components/icons/Icon.js +52 -48
- package/lib/module/components/icons/Icon.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/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/ForceScrollDownView.js +153 -0
- package/lib/module/components/layout/ForceScrollDownView.js.map +1 -0
- package/lib/module/components/layout/HeaderFirstLevel.js +4 -4
- package/lib/module/components/layout/HeaderFirstLevel.js.map +1 -1
- package/lib/module/components/layout/__test__/ForceScrollDownView.test.js +90 -0
- package/lib/module/components/layout/__test__/ForceScrollDownView.test.js.map +1 -0
- package/lib/module/components/layout/__test__/__snapshots__/ForceScrollDownView.test.tsx.snap +23 -0
- package/lib/module/components/layout/index.js +1 -0
- package/lib/module/components/layout/index.js.map +1 -1
- package/lib/module/components/listitems/ListItemTransaction.js +6 -3
- package/lib/module/components/listitems/ListItemTransaction.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/index.js +1 -0
- package/lib/module/components/radio/index.js.map +1 -1
- package/lib/module/core/IOStyles.js +3 -1
- package/lib/module/core/IOStyles.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/typescript/components/buttons/ButtonLink.d.ts +1 -1
- package/lib/typescript/components/buttons/ButtonLink.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/common/ScaleInOutAnimation.d.ts +14 -0
- package/lib/typescript/components/common/ScaleInOutAnimation.d.ts.map +1 -0
- package/lib/typescript/components/icons/Icon.d.ts +2 -0
- package/lib/typescript/components/icons/Icon.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/index.d.ts +1 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/layout/ForceScrollDownView.d.ts +27 -0
- package/lib/typescript/components/layout/ForceScrollDownView.d.ts.map +1 -0
- package/lib/typescript/components/layout/__test__/ForceScrollDownView.test.d.ts +2 -0
- package/lib/typescript/components/layout/__test__/ForceScrollDownView.test.d.ts.map +1 -0
- package/lib/typescript/components/layout/index.d.ts +1 -0
- package/lib/typescript/components/layout/index.d.ts.map +1 -1
- package/lib/typescript/components/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/index.d.ts +1 -0
- package/lib/typescript/components/radio/index.d.ts.map +1 -1
- package/lib/typescript/core/IOStyles.d.ts +2 -0
- package/lib/typescript/core/IOStyles.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/package.json +5 -2
- package/src/components/buttons/ButtonLink.tsx +17 -1
- package/src/components/checkbox/CheckboxLabel.tsx +4 -31
- package/src/components/codeInput/CodeInput.tsx +5 -33
- package/src/components/common/ScaleInOutAnimation.tsx +68 -0
- package/src/components/icons/Icon.tsx +52 -48
- package/src/components/icons/svg/IconSystemPermissionsAndroid.tsx +19 -0
- package/src/components/index.tsx +1 -0
- package/src/components/layout/ForceScrollDownView.tsx +210 -0
- package/src/components/layout/HeaderFirstLevel.tsx +4 -4
- package/src/components/layout/__test__/ForceScrollDownView.test.tsx +106 -0
- package/src/components/layout/__test__/__snapshots__/ForceScrollDownView.test.tsx.snap +23 -0
- package/src/components/layout/index.tsx +1 -0
- package/src/components/listitems/ListItemTransaction.tsx +12 -1
- 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/index.tsx +1 -0
- package/src/core/IOStyles.ts +5 -1
- package/src/utils/hooks/useErrorShakeAnimation.ts +43 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* eslint-disable functional/immutable-data */
|
|
2
|
+
import { fireEvent, render } from "@testing-library/react-native";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { Text } from "react-native";
|
|
5
|
+
import { ForceScrollDownView } from "../ForceScrollDownView";
|
|
6
|
+
const tContent = "Some content";
|
|
7
|
+
describe("ForceScrollDownView", () => {
|
|
8
|
+
jest.useFakeTimers();
|
|
9
|
+
it("should match snapshot", () => {
|
|
10
|
+
const tChildren = /*#__PURE__*/React.createElement(Text, null, tContent);
|
|
11
|
+
const component = render( /*#__PURE__*/React.createElement(ForceScrollDownView, null, tChildren));
|
|
12
|
+
expect(component).toMatchSnapshot();
|
|
13
|
+
});
|
|
14
|
+
it("renders the content correctly", () => {
|
|
15
|
+
const tChildren = /*#__PURE__*/React.createElement(Text, null, tContent);
|
|
16
|
+
const {
|
|
17
|
+
getByText
|
|
18
|
+
} = render( /*#__PURE__*/React.createElement(ForceScrollDownView, null, tChildren));
|
|
19
|
+
expect(getByText(tContent)).toBeDefined();
|
|
20
|
+
});
|
|
21
|
+
it("displays the scroll down button when necessary", async () => {
|
|
22
|
+
const tChildren = /*#__PURE__*/React.createElement(Text, null, tContent);
|
|
23
|
+
const tScreenHeight = 1000;
|
|
24
|
+
const {
|
|
25
|
+
getByTestId,
|
|
26
|
+
queryByTestId
|
|
27
|
+
} = render( /*#__PURE__*/React.createElement(ForceScrollDownView, null, tChildren));
|
|
28
|
+
const scrollView = getByTestId("ScrollView");
|
|
29
|
+
|
|
30
|
+
// Update scroll view height
|
|
31
|
+
fireEvent(scrollView, "layout", {
|
|
32
|
+
nativeEvent: {
|
|
33
|
+
layout: {
|
|
34
|
+
height: tScreenHeight
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
// Update scroll view content height
|
|
40
|
+
fireEvent(scrollView, "contentSizeChange", null, tScreenHeight - 500);
|
|
41
|
+
|
|
42
|
+
// Button should not be visible because content does not need scrolling
|
|
43
|
+
const buttonBefore = queryByTestId("ScrollDownButton");
|
|
44
|
+
expect(buttonBefore).toBeNull();
|
|
45
|
+
|
|
46
|
+
// Increase content height to force button to be shown
|
|
47
|
+
fireEvent(scrollView, "contentSizeChange", null, tScreenHeight + 500);
|
|
48
|
+
jest.advanceTimersByTime(500);
|
|
49
|
+
|
|
50
|
+
// Button should be visible now beacuse content needs scrolling
|
|
51
|
+
const buttonAfter = queryByTestId("ScrollDownButton");
|
|
52
|
+
expect(buttonAfter).not.toBeNull();
|
|
53
|
+
});
|
|
54
|
+
it("scrolls to the bottom when the button is pressed", () => {
|
|
55
|
+
const tChildren = /*#__PURE__*/React.createElement(Text, null, tContent);
|
|
56
|
+
const tScreenHeight = 1000;
|
|
57
|
+
const {
|
|
58
|
+
getByTestId,
|
|
59
|
+
queryByTestId
|
|
60
|
+
} = render( /*#__PURE__*/React.createElement(ForceScrollDownView, null, tChildren));
|
|
61
|
+
const scrollView = getByTestId("ScrollView");
|
|
62
|
+
|
|
63
|
+
// Update scroll view height
|
|
64
|
+
fireEvent(scrollView, "layout", {
|
|
65
|
+
nativeEvent: {
|
|
66
|
+
layout: {
|
|
67
|
+
height: tScreenHeight
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
// Update scroll view content height
|
|
73
|
+
fireEvent(scrollView, "contentSizeChange", null, tScreenHeight + 500);
|
|
74
|
+
|
|
75
|
+
// Button should be visible
|
|
76
|
+
const buttonBefore = getByTestId("ScrollDownButton");
|
|
77
|
+
expect(buttonBefore).not.toBeNull();
|
|
78
|
+
|
|
79
|
+
// Fire button press event
|
|
80
|
+
fireEvent.press(buttonBefore);
|
|
81
|
+
|
|
82
|
+
// Wait for the scroll animation
|
|
83
|
+
jest.advanceTimersByTime(500);
|
|
84
|
+
|
|
85
|
+
// Button should not be visible after scrolling
|
|
86
|
+
const buttonAfter = queryByTestId("ScrollDownButton");
|
|
87
|
+
expect(buttonAfter).toBeNull();
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
//# sourceMappingURL=ForceScrollDownView.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["fireEvent","render","React","Text","ForceScrollDownView","tContent","describe","jest","useFakeTimers","it","tChildren","createElement","component","expect","toMatchSnapshot","getByText","toBeDefined","tScreenHeight","getByTestId","queryByTestId","scrollView","nativeEvent","layout","height","buttonBefore","toBeNull","advanceTimersByTime","buttonAfter","not","press"],"sourceRoot":"../../../../../src","sources":["components/layout/__test__/ForceScrollDownView.test.tsx"],"mappings":"AAAA;AACA,SAASA,SAAS,EAAEC,MAAM,QAAQ,+BAA+B;AACjE,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,mBAAmB,QAAQ,wBAAwB;AAE5D,MAAMC,QAAQ,GAAG,cAAc;AAE/BC,QAAQ,CAAC,qBAAqB,EAAE,MAAM;EACpCC,IAAI,CAACC,aA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AM,CAACc,WAAW,CAAC,CAACF,QAAQ,CAAC,CAAC;EAChC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`ForceScrollDownView should match snapshot 1`] = `
|
|
4
|
+
<RCTScrollView
|
|
5
|
+
onContentSizeChange={[Function]}
|
|
6
|
+
onLayout={[Function]}
|
|
7
|
+
onScroll={[Function]}
|
|
8
|
+
scrollEnabled={true}
|
|
9
|
+
scrollEventThrottle={400}
|
|
10
|
+
scrollIndicatorInsets={
|
|
11
|
+
{
|
|
12
|
+
"right": 1,
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
testID="ScrollView"
|
|
16
|
+
>
|
|
17
|
+
<View>
|
|
18
|
+
<Text>
|
|
19
|
+
Some content
|
|
20
|
+
</Text>
|
|
21
|
+
</View>
|
|
22
|
+
</RCTScrollView>
|
|
23
|
+
`;
|
|
@@ -3,6 +3,7 @@ export * from "./GradientScrollView";
|
|
|
3
3
|
export * from "./GradientBottomActions";
|
|
4
4
|
export * from "./HeaderFirstLevel";
|
|
5
5
|
export * from "./HeaderSecondLevel";
|
|
6
|
+
export * from "./ForceScrollDownView";
|
|
6
7
|
export * from "./FooterWithButtons";
|
|
7
8
|
export * from "./BlockButtons";
|
|
8
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/layout/index.tsx"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,sBAAsB;AACpC,cAAc,yBAAyB;AACvC,cAAc,oBAAoB;AAClC,cAAc,qBAAqB;AACnC,cAAc,qBAAqB;AACnC,cAAc,gBAAgB"}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/layout/index.tsx"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,sBAAsB;AACpC,cAAc,yBAAyB;AACvC,cAAc,oBAAoB;AAClC,cAAc,qBAAqB;AACnC,cAAc,uBAAuB;AACrC,cAAc,qBAAqB;AACnC,cAAc,gBAAgB"}
|
|
@@ -51,6 +51,7 @@ export const ListItemTransaction = _ref2 => {
|
|
|
51
51
|
transactionAmount,
|
|
52
52
|
badgeText,
|
|
53
53
|
transactionStatus = "success",
|
|
54
|
+
numberOfLines = 2,
|
|
54
55
|
accessible
|
|
55
56
|
} = _ref2;
|
|
56
57
|
const {
|
|
@@ -68,12 +69,14 @@ export const ListItemTransaction = _ref2 => {
|
|
|
68
69
|
case "success":
|
|
69
70
|
return /*#__PURE__*/React.createElement(H6, {
|
|
70
71
|
accessibilityLabel: getAccessibleAmountText(transactionAmount),
|
|
71
|
-
color: hasChevronRight ? interactiveColor : "black"
|
|
72
|
+
color: hasChevronRight ? interactiveColor : "black",
|
|
73
|
+
numberOfLines: numberOfLines
|
|
72
74
|
}, transactionAmount || "");
|
|
73
75
|
case "refunded":
|
|
74
76
|
return /*#__PURE__*/React.createElement(H6, {
|
|
75
77
|
accessibilityLabel: getAccessibleAmountText(transactionAmount),
|
|
76
|
-
color: hasChevronRight ? interactiveColor : "success-700"
|
|
78
|
+
color: hasChevronRight ? interactiveColor : "success-700",
|
|
79
|
+
numberOfLines: numberOfLines
|
|
77
80
|
}, transactionAmount || "");
|
|
78
81
|
case "failure":
|
|
79
82
|
case "cancelled":
|
|
@@ -104,7 +107,7 @@ export const ListItemTransaction = _ref2 => {
|
|
|
104
107
|
})), /*#__PURE__*/React.createElement(View, {
|
|
105
108
|
style: IOStyles.flex
|
|
106
109
|
}, /*#__PURE__*/React.createElement(LabelSmallAlt, {
|
|
107
|
-
numberOfLines:
|
|
110
|
+
numberOfLines: numberOfLines,
|
|
108
111
|
color: theme["textBody-default"]
|
|
109
112
|
}, title), /*#__PURE__*/React.createElement(LabelSmall, {
|
|
110
113
|
weight: "Regular",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["O","pipe","React","StyleSheet","View","Placeholder","IOListItemLogoMargin","IOListItemStyles","IOListItemVisualParams","IOStyles","IOVisualCostants","useIOExperimentalDesign","useIOTheme","getAccessibleAmountText","isImageUri","Avatar","Badge","LogoPaymentWithFallback","Icon","VSpacer","H6","LabelSmall","LabelSmallAlt","PressableListItemBase","CARD_LOGO_SIZE","MUNICIPALITY_LOGO_SIZE","LeftComponent","_ref","logoIcon","createElement","logoUri","size","shape","isValidElement","Fragment","brand","ListItemTransaction","_ref2","accessibilityLabel","hasChevronRight","isLoading","paymentLogoIcon","onPress","subtitle","testID","title","transactionAmount","badgeText","transactionStatus","accessible","isExperimental","theme","maybeBadgeText","fromNullable","getOrElse","SkeletonComponent","interactiveColor","ListItemTransactionContent","TransactionAmountOrBadgeComponent","color","variant","text","style","marginRight","width","alignItems","flex","
|
|
1
|
+
{"version":3,"names":["O","pipe","React","StyleSheet","View","Placeholder","IOListItemLogoMargin","IOListItemStyles","IOListItemVisualParams","IOStyles","IOVisualCostants","useIOExperimentalDesign","useIOTheme","getAccessibleAmountText","isImageUri","Avatar","Badge","LogoPaymentWithFallback","Icon","VSpacer","H6","LabelSmall","LabelSmallAlt","PressableListItemBase","CARD_LOGO_SIZE","MUNICIPALITY_LOGO_SIZE","LeftComponent","_ref","logoIcon","createElement","logoUri","size","shape","isValidElement","Fragment","brand","ListItemTransaction","_ref2","accessibilityLabel","hasChevronRight","isLoading","paymentLogoIcon","onPress","subtitle","testID","title","transactionAmount","badgeText","transactionStatus","numberOfLines","accessible","isExperimental","theme","maybeBadgeText","fromNullable","getOrElse","SkeletonComponent","interactiveColor","ListItemTransactionContent","TransactionAmountOrBadgeComponent","color","variant","text","style","marginRight","width","alignItems","flex","weight","Styles","rightSection","name","chevronSize","fold","listItem","listItemInner","iconMargin","Box","animate","height","avatarSizeSmall","radius","marginLeft","create","flexDirection"],"sourceRoot":"../../../../src","sources":["components/listitems/ListItemTransaction.tsx"],"mappings":"AAAA,OAAO,KAAKA,C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AM,EAAE;EACV;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { View, StyleSheet } from "react-native";
|
|
4
|
+
import { IOColors } from "../../core";
|
|
5
|
+
import { BaseTypography, H6 } from "../typography";
|
|
6
|
+
const styles = StyleSheet.create({
|
|
7
|
+
baseBox: {
|
|
8
|
+
alignItems: "center",
|
|
9
|
+
justifyContent: "center",
|
|
10
|
+
width: 35,
|
|
11
|
+
height: 60,
|
|
12
|
+
borderRadius: 8
|
|
13
|
+
},
|
|
14
|
+
defaultBox: {
|
|
15
|
+
borderWidth: 1,
|
|
16
|
+
borderColor: IOColors["grey-200"]
|
|
17
|
+
},
|
|
18
|
+
focusedBox: {
|
|
19
|
+
borderWidth: 2,
|
|
20
|
+
borderColor: IOColors["blueIO-500"]
|
|
21
|
+
},
|
|
22
|
+
errorBox: {
|
|
23
|
+
borderWidth: 1,
|
|
24
|
+
borderColor: IOColors["error-850"],
|
|
25
|
+
backgroundColor: IOColors["error-100"]
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
// FIXME Replace this component with H3 once the legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
30
|
+
const SecretValue = () => /*#__PURE__*/React.createElement(BaseTypography, {
|
|
31
|
+
font: "DMMono",
|
|
32
|
+
weight: "SemiBold",
|
|
33
|
+
color: "bluegreyDark",
|
|
34
|
+
fontStyle: {
|
|
35
|
+
fontSize: 22,
|
|
36
|
+
lineHeight: 33
|
|
37
|
+
},
|
|
38
|
+
accessible: false
|
|
39
|
+
}, "•");
|
|
40
|
+
export const BoxedInput = _ref => {
|
|
41
|
+
let {
|
|
42
|
+
status,
|
|
43
|
+
value,
|
|
44
|
+
secret
|
|
45
|
+
} = _ref;
|
|
46
|
+
const derivedStyle = useMemo(() => {
|
|
47
|
+
switch (status) {
|
|
48
|
+
case "error":
|
|
49
|
+
return styles.errorBox;
|
|
50
|
+
case "focus":
|
|
51
|
+
return styles.focusedBox;
|
|
52
|
+
case "default":
|
|
53
|
+
default:
|
|
54
|
+
return styles.defaultBox;
|
|
55
|
+
}
|
|
56
|
+
}, [status]);
|
|
57
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
58
|
+
style: [styles.baseBox, derivedStyle],
|
|
59
|
+
accessible: false
|
|
60
|
+
}, value && (secret ? /*#__PURE__*/React.createElement(SecretValue, null) : /*#__PURE__*/React.createElement(H6, {
|
|
61
|
+
accessible: false
|
|
62
|
+
}, value)));
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=BoxedInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useMemo","View","StyleSheet","IOColors","BaseTypography","H6","styles","create","baseBox","alignItems","justifyContent","width","height","borderRadius","defaultBox","borderWidth","borderColor","focusedBox","errorBox","backgroundColor","SecretValue","createElement","font","weight","color","fontStyle","fontSize","lineHeight","accessible","BoxedInput","_ref","status","value","secret","derivedStyle","style"],"sourceRoot":"../../../../src","sources":["components/otpInput/BoxedInput.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,OAAO,QAAQ,OAAO;AAC/B,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAASC,cAAc,EAAEC,EAAE,QAAQ,eAAe;AAQlD,MAAMC,MAAM,GAAGJ,UAAU,CAACK,MAAM,CAAC;EAC/BC,OAAO,EAAE;IACPC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE;EAChB,CAAC;EACDC,UAAU,EAAE;IACVC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAEb,QAAQ,CAAC,UAAU;EAClC,CAAC;EACDc,UAAU,EAAE;IACVF,WAAW,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+1,121 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Pressable, TextInput } from "react-native";
|
|
3
|
+
import Animated from "react-native-reanimated";
|
|
4
|
+
import { IOStyles } from "../../core/IOStyles";
|
|
5
|
+
import { LabelSmall } from "../typography";
|
|
6
|
+
import { triggerHaptic } from "../../functions";
|
|
7
|
+
import { VSpacer } from "../spacer";
|
|
8
|
+
import { useErrorShakeAnimation } from "../../utils/hooks/useErrorShakeAnimation";
|
|
9
|
+
import { BoxedInput } from "./BoxedInput";
|
|
10
|
+
/**
|
|
11
|
+
* `OTPInput` is a component that allows the user to enter a one-time password.
|
|
12
|
+
* It has an hidden `TextInput` that is used to handle the keyboard and the focus.
|
|
13
|
+
* The input handles the autocompletion of the OTP code.
|
|
14
|
+
* @param value - The value of the OTP code
|
|
15
|
+
* @param onValueChange - The function to call when the value changes
|
|
16
|
+
* @param length - The length of the OTP code
|
|
17
|
+
* @param secret - If the OTP code should be hidden
|
|
18
|
+
* @param autocomplete - If the OTP code should be autocompleted
|
|
19
|
+
* @param onValidate - The function to call when the OTP code is validated
|
|
20
|
+
* @param errorMessage - The error message to display
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
export const OTPInput = _ref => {
|
|
24
|
+
let {
|
|
25
|
+
value,
|
|
26
|
+
onValueChange,
|
|
27
|
+
length,
|
|
28
|
+
onValidate,
|
|
29
|
+
errorMessage = "",
|
|
30
|
+
secret = false,
|
|
31
|
+
autocomplete = false
|
|
32
|
+
} = _ref;
|
|
33
|
+
const [hasFocus, setHasFocus] = React.useState(false);
|
|
34
|
+
const [hasError, setHasError] = React.useState(false);
|
|
35
|
+
const [inputValue, setInputValue] = React.useState(value);
|
|
36
|
+
const {
|
|
37
|
+
translate,
|
|
38
|
+
animatedStyle,
|
|
39
|
+
shakeAnimation
|
|
40
|
+
} = useErrorShakeAnimation();
|
|
41
|
+
const inputRef = /*#__PURE__*/React.createRef();
|
|
42
|
+
const timerRef = React.useRef();
|
|
43
|
+
const handleValidate = val => {
|
|
44
|
+
if (!onValidate || val.length < length) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const isValid = onValidate(val);
|
|
48
|
+
if (!isValid) {
|
|
49
|
+
setHasError(true);
|
|
50
|
+
triggerHaptic("notificationError");
|
|
51
|
+
// eslint-disable-next-line functional/immutable-data
|
|
52
|
+
translate.value = shakeAnimation();
|
|
53
|
+
if (timerRef.current) {
|
|
54
|
+
clearTimeout(timerRef.current);
|
|
55
|
+
}
|
|
56
|
+
// eslint-disable-next-line functional/immutable-data
|
|
57
|
+
timerRef.current = setTimeout(() => {
|
|
58
|
+
setHasError(false);
|
|
59
|
+
setInputValue("");
|
|
60
|
+
onValueChange("");
|
|
61
|
+
}, 500);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
React.useEffect(() => () => clearTimeout(timerRef.current), []);
|
|
65
|
+
const handleChange = value => {
|
|
66
|
+
if (value.length > length) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
setInputValue(value);
|
|
70
|
+
onValueChange(value);
|
|
71
|
+
handleValidate(value);
|
|
72
|
+
};
|
|
73
|
+
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
74
|
+
style: [{
|
|
75
|
+
flexGrow: 1
|
|
76
|
+
}, animatedStyle]
|
|
77
|
+
}, /*#__PURE__*/React.createElement(Pressable, {
|
|
78
|
+
onPress: () => {
|
|
79
|
+
var _inputRef$current;
|
|
80
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
|
|
81
|
+
setHasFocus(true);
|
|
82
|
+
},
|
|
83
|
+
style: [IOStyles.row, {
|
|
84
|
+
justifyContent: "space-around"
|
|
85
|
+
}],
|
|
86
|
+
accessible: true,
|
|
87
|
+
accessibilityLabel: "OTP Input",
|
|
88
|
+
accessibilityValue: {
|
|
89
|
+
text: inputValue
|
|
90
|
+
}
|
|
91
|
+
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
92
|
+
value: inputValue,
|
|
93
|
+
onChangeText: handleChange,
|
|
94
|
+
style: {
|
|
95
|
+
position: "absolute",
|
|
96
|
+
opacity: 0
|
|
97
|
+
},
|
|
98
|
+
maxLength: length,
|
|
99
|
+
ref: inputRef,
|
|
100
|
+
onBlur: () => setHasFocus(false),
|
|
101
|
+
keyboardType: "numeric",
|
|
102
|
+
inputMode: "numeric",
|
|
103
|
+
returnKeyType: "done",
|
|
104
|
+
textContentType: "oneTimeCode",
|
|
105
|
+
autoComplete: autocomplete ? "sms-otp" : undefined,
|
|
106
|
+
accessible: true
|
|
107
|
+
}), [...Array(length)].map((_, i) => /*#__PURE__*/React.createElement(BoxedInput, {
|
|
108
|
+
key: i,
|
|
109
|
+
status: hasError ? "error" : hasFocus && inputValue.length === i ? "focus" : "default",
|
|
110
|
+
secret: secret,
|
|
111
|
+
value: inputValue[i]
|
|
112
|
+
}))), /*#__PURE__*/React.createElement(VSpacer, {
|
|
113
|
+
size: 4
|
|
114
|
+
}), hasError && errorMessage && /*#__PURE__*/React.createElement(LabelSmall, {
|
|
115
|
+
color: "error-850",
|
|
116
|
+
style: {
|
|
117
|
+
textAlign: "center"
|
|
118
|
+
}
|
|
119
|
+
}, errorMessage));
|
|
120
|
+
};
|
|
121
|
+
//# sourceMappingURL=OTPInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Pressable","TextInput","Animated","IOStyles","LabelSmall","triggerHaptic","VSpacer","useErrorShakeAnimation","BoxedInput","OTPInput","_ref","value","onValueChange","length","onValidate","errorMessage","secret","autocomplete","hasFocus","setHasFocus","useState","hasError","setHasError","inputValue","setInputValue","translate","animatedStyle","shakeAnimation","inputRef","createRef","timerRef","useRef","handleValidate","val","isValid","current","clearTimeout","setTimeout","useEffect","handleChange","createElement","View","style","flexGrow","onPress","_inputRef$current","focus","row","justifyContent","accessible","accessibilityLabel","accessibilityValue","text","onChangeText","position","opacity","maxLength","ref","onBlur","keyboardType","inputMode","returnKeyType","textContentType","autoComplete","undefined","Array","map","_","i","key","status","size","color","textAlign"],"sourceRoot":"../../../../src","sources":["components/otpInput/OTPInput.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,SAAS,EAAEC,SAAS,QAAQ,cAAc;AACnD,OAAOC,QAAQ,MAAM,yBAAyB;AAC9C,SAASC,QAAQ,QAAQ,qBAAqB;AAC9C,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,OAAO,QAAQ,WAAW;AACnC,SAASC,sBAAsB,QAAQ,0CAA0C;AACjF,SAASC,UAAU,QAAQ,cAAc;AAYzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,QAAQ,GAAGC,IAAA,IAQX;EAAA,IARY;IACvBC,KAAK;IACLC,aAAa;IACbC,MAAM;IACNC,UAAU;IACVC,YAAY,GAAG,EAAE;IACjBC,MAAM,GAAG,KAAK;IACdC,YAAY,GAAG;EACV,CAAC,GAAAP,IAAA;EACN,MAAM,CAACQ,QAAQ,EAAEC,WAAW,CAAC,GAAGpB,KAAK,CAACqB,QAAQ,CAAC,KAAK,CAAC;EACrD,MAAM,CAACC,QAAQ,EAAEC,WAAW,CAAC,GAAGvB,KAAK,CAACqB,QAAQ,CAAC,KAAK,CAAC;EACrD,MAAM,CAACG,UAAU,EAAEC,aAAa,CAAC,GAAGzB,KAAK,CAACqB,QAAQ,CAACT,KAAK,CAAC;EAEzD,MAAM;IAAEc,SAAS;IAAEC,aAAa;IAAEC;EAAe,CAAC,GAAGpB,sBAAsB,CAAC,CAAC;EAE7E,MAAMqB,QAAQ,gBAAG7B,KAAK,CAAC8B,SAAS,CAAY,CAAC;EAC7C,MAAMC,QAAQ,GAAG/B,KAAK,CAACgC,MAAM,CAAiB,CAAC;EAE/C,MAAMC,cAAc,GAAIC,GAAW,IAAK;IACtC,IAAI,CAAC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;IAACoE,KAAK,EAAC,WAAW;IAAC9B,KAAK,EAAE;MAAE+B,SAAS,EAAE;IAAS;EAAE,GAC1D1D,YACS,CAED,CAAC;AAEpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/otpInput/index.tsx"],"mappings":"AAAA,cAAc,YAAY"}
|
|
@@ -1,27 +1,50 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
import React, { useMemo } from "react";
|
|
3
3
|
import { IOColors, IOThemeDark, IOThemeLight, useIOTheme } from "../../core/IOColors";
|
|
4
|
-
import PictogramMessages from "./svg/PictogramMessages";
|
|
5
4
|
import PictogramAbacus from "./svg/PictogramAbacus";
|
|
5
|
+
import PictogramAccessDenied from "./svg/PictogramAccessDenied";
|
|
6
6
|
import PictogramAirBaloon from "./svg/PictogramAirBaloon";
|
|
7
7
|
import PictogramAirship from "./svg/PictogramAirship";
|
|
8
8
|
import PictogramAttention from "./svg/PictogramAttention";
|
|
9
9
|
import PictogramBaloons from "./svg/PictogramBaloons";
|
|
10
10
|
import PictogramBeerMug from "./svg/PictogramBeerMug";
|
|
11
|
-
import PictogramCameraRequest from "./svg/PictogramCameraRequest";
|
|
12
11
|
import PictogramCameraDenied from "./svg/PictogramCameraDenied";
|
|
12
|
+
import PictogramCameraRequest from "./svg/PictogramCameraRequest";
|
|
13
|
+
import PictogramCharity from "./svg/PictogramCharity";
|
|
14
|
+
import PictogramCie from "./svg/PictogramCie";
|
|
13
15
|
import PictogramCompleted from "./svg/PictogramCompleted";
|
|
16
|
+
import PictogramComunicationProblem from "./svg/PictogramComunicationProblem";
|
|
14
17
|
import PictogramEmailToValidate from "./svg/PictogramEmailToValidate";
|
|
15
18
|
import PictogramEmailValidation from "./svg/PictogramEmailValidation";
|
|
19
|
+
import PictogramEmpty from "./svg/PictogramEmpty";
|
|
16
20
|
import PictogramEmptyArchive from "./svg/PictogramEmptyArchive";
|
|
17
21
|
import PictogramError from "./svg/PictogramError";
|
|
22
|
+
import PictogramFatalError from "./svg/PictogramFatalError";
|
|
23
|
+
import PictogramFeature from "./svg/PictogramFeature";
|
|
18
24
|
import PictogramFeedback from "./svg/PictogramFeedback";
|
|
19
25
|
import PictogramFireworks from "./svg/PictogramFireworks";
|
|
20
26
|
import PictogramHeart from "./svg/PictogramHeart";
|
|
27
|
+
import PictogramHello from "./svg/PictogramHello";
|
|
28
|
+
import PictogramHelp from "./svg/PictogramHelp";
|
|
21
29
|
import PictogramHourglass from "./svg/PictogramHourglass";
|
|
30
|
+
import PictogramITWallet from "./svg/PictogramITWallet";
|
|
31
|
+
import PictogramIdentity from "./svg/PictogramIdentity";
|
|
32
|
+
import PictogramIdentityAdd from "./svg/PictogramIdentityAdd";
|
|
33
|
+
import PictogramIdentityCheck from "./svg/PictogramIdentityCheck";
|
|
34
|
+
import PictogramIdentityRefresh from "./svg/PictogramIdentityRefresh";
|
|
22
35
|
import PictogramInProgress from "./svg/PictogramInProgress";
|
|
23
36
|
import PictogramInbox from "./svg/PictogramInbox";
|
|
37
|
+
import PictogramMessages from "./svg/PictogramMessages";
|
|
24
38
|
import PictogramNotAvailable from "./svg/PictogramNotAvailable";
|
|
39
|
+
import PictogramNotification from "./svg/PictogramNotification";
|
|
40
|
+
import PictogramObjClock from "./svg/PictogramObjClock";
|
|
41
|
+
import PictogramObjFlyingMessage from "./svg/PictogramObjFlyingMessage";
|
|
42
|
+
import PictogramObjFollowMessage from "./svg/PictogramObjFollowMessage";
|
|
43
|
+
import PictogramObjIbanCard from "./svg/PictogramObjIbanCard";
|
|
44
|
+
import PictogramObjKey from "./svg/PictogramObjKey";
|
|
45
|
+
import PictogramObjManual from "./svg/PictogramObjManual";
|
|
46
|
+
import PictogramObjTrash from "./svg/PictogramObjTrash";
|
|
47
|
+
import PictogramPasscode from "./svg/PictogramPasscode";
|
|
25
48
|
import PictogramPiggyBank from "./svg/PictogramPiggyBank";
|
|
26
49
|
import PictogramPin from "./svg/PictogramPin";
|
|
27
50
|
import PictogramPlaces from "./svg/PictogramPlaces";
|
|
@@ -29,99 +52,79 @@ import PictogramProcessing from "./svg/PictogramProcessing";
|
|
|
29
52
|
import PictogramPuzzle from "./svg/PictogramPuzzle";
|
|
30
53
|
import PictogramQuestion from "./svg/PictogramQuestion";
|
|
31
54
|
import PictogramSearch from "./svg/PictogramSearch";
|
|
55
|
+
import PictogramSecurity from "./svg/PictogramSecurity";
|
|
32
56
|
import PictogramSms from "./svg/PictogramSms";
|
|
57
|
+
import PictogramStopSecurity from "./svg/PictogramStopSecurity";
|
|
58
|
+
import PictogramSuccess from "./svg/PictogramSuccess";
|
|
33
59
|
import PictogramTeaBreak from "./svg/PictogramTeaBreak";
|
|
60
|
+
import PictogramTime from "./svg/PictogramTime";
|
|
34
61
|
import PictogramTimeout from "./svg/PictogramTimeout";
|
|
35
62
|
import PictogramUmbrella from "./svg/PictogramUmbrella";
|
|
36
63
|
import PictogramUmbrellaNew from "./svg/PictogramUmbrellaNew";
|
|
37
64
|
import PictogramUnrecognized from "./svg/PictogramUnrecognized";
|
|
38
|
-
import PictogramUploadFile from "./svg/PictogramUploadFile";
|
|
39
|
-
import PictogramSuccess from "./svg/PictogramSuccess";
|
|
40
|
-
import PictogramHelp from "./svg/PictogramHelp";
|
|
41
|
-
import PictogramITWallet from "./svg/PictogramITWallet";
|
|
42
|
-
import PictogramFatalError from "./svg/PictogramFatalError";
|
|
43
65
|
import PictogramUpdateOS from "./svg/PictogramUpdateOS";
|
|
44
|
-
import
|
|
45
|
-
import PictogramIdentityRefresh from "./svg/PictogramIdentityRefresh";
|
|
46
|
-
import PictogramIdentity from "./svg/PictogramIdentity";
|
|
47
|
-
import PictogramAccessDenied from "./svg/PictogramAccessDenied";
|
|
48
|
-
import PictogramTime from "./svg/PictogramTime";
|
|
49
|
-
import PictogramStopSecurity from "./svg/PictogramStopSecurity";
|
|
50
|
-
import PictogramSecurity from "./svg/PictogramSecurity";
|
|
51
|
-
import PictogramPasscode from "./svg/PictogramPasscode";
|
|
52
|
-
import PictogramIdentityCheck from "./svg/PictogramIdentityCheck";
|
|
53
|
-
import PictogramCharity from "./svg/PictogramCharity";
|
|
54
|
-
import PictogramEmpty from "./svg/PictogramEmpty";
|
|
55
|
-
import PictogramCie from "./svg/PictogramCie";
|
|
56
|
-
import PictogramFeature from "./svg/PictogramFeature";
|
|
57
|
-
import PictogramNotification from "./svg/PictogramNotification";
|
|
58
|
-
import PictogramObjClock from "./svg/PictogramObjClock";
|
|
59
|
-
import PictogramObjIbanCard from "./svg/PictogramObjIbanCard";
|
|
60
|
-
import PictogramObjManual from "./svg/PictogramObjManual";
|
|
61
|
-
import PictogramObjTrash from "./svg/PictogramObjTrash";
|
|
62
|
-
import PictogramObjKey from "./svg/PictogramObjKey";
|
|
63
|
-
import PictogramObjFlyingMessage from "./svg/PictogramObjFlyingMessage";
|
|
64
|
-
import PictogramObjFollowMessage from "./svg/PictogramObjFollowMessage";
|
|
66
|
+
import PictogramUploadFile from "./svg/PictogramUploadFile";
|
|
65
67
|
/* Bleed Pictograms */
|
|
68
|
+
import PictogramActivate from "./svg/PictogramActivate";
|
|
69
|
+
import PictogramAttachment from "./svg/PictogramAttachment";
|
|
70
|
+
import PictogramBiometric from "./svg/PictogramBiometric";
|
|
71
|
+
import PictogramBleedAccessDenied from "./svg/PictogramBleedAccessDenied";
|
|
72
|
+
import PictogramBleedAttention from "./svg/PictogramBleedAttention";
|
|
73
|
+
import PictogramBleedCameraDenied from "./svg/PictogramBleedCameraDenied";
|
|
74
|
+
import PictogramBleedCameraRequest from "./svg/PictogramBleedCameraRequest";
|
|
75
|
+
import PictogramBleedCardAdd from "./svg/PictogramBleedCardAdd";
|
|
76
|
+
import PictogramBleedCardFavourite from "./svg/PictogramBleedCardFavourite";
|
|
77
|
+
import PictogramBleedCardIssue from "./svg/PictogramBleedCardIssue";
|
|
78
|
+
import PictogramBleedCardQuestion from "./svg/PictogramBleedCardQuestion";
|
|
66
79
|
import PictogramBleedCharity from "./svg/PictogramBleedCharity";
|
|
67
|
-
import PictogramBleedHelp from "./svg/PictogramBleedHelp";
|
|
68
|
-
import PictogramBleedITWallet from "./svg/PictogramBleedITWallet";
|
|
69
|
-
import PictogramBleedFeedback from "./svg/PictogramBleedFeedback";
|
|
70
|
-
import PictogramBleedSecurity from "./svg/PictogramBleedSecurity";
|
|
71
|
-
import PictogramBleedFeature from "./svg/PictogramBleedFeature";
|
|
72
80
|
import PictogramBleedCie from "./svg/PictogramBleedCie";
|
|
73
|
-
import
|
|
74
|
-
import PictogramBleedCameraDenied from "./svg/PictogramBleedCameraDenied";
|
|
75
|
-
import PictogramBleedNotification from "./svg/PictogramBleedNotification";
|
|
76
|
-
import PictogramStar from "./svg/PictogramStar";
|
|
77
|
-
import PictogramBleedStar from "./svg/PictogramBleedStar";
|
|
81
|
+
import PictogramBleedDoc from "./svg/PictogramBleedDoc";
|
|
78
82
|
import PictogramBleedEmpty from "./svg/PictogramBleedEmpty";
|
|
79
|
-
import
|
|
80
|
-
import PictogramBleedSuccess from "./svg/PictogramBleedSuccess";
|
|
83
|
+
import PictogramBleedEnded from "./svg/PictogramBleedEnded";
|
|
81
84
|
import PictogramBleedFatalError from "./svg/PictogramBleedFatalError";
|
|
85
|
+
import PictogramBleedFeature from "./svg/PictogramBleedFeature";
|
|
86
|
+
import PictogramBleedFeedback from "./svg/PictogramBleedFeedback";
|
|
87
|
+
import PictogramBleedHelp from "./svg/PictogramBleedHelp";
|
|
88
|
+
import PictogramBleedITWallet from "./svg/PictogramBleedITWallet";
|
|
89
|
+
import PictogramBleedIdea from "./svg/PictogramBleedIdea";
|
|
82
90
|
import PictogramBleedIdentity from "./svg/PictogramBleedIdentity";
|
|
83
91
|
import PictogramBleedIdentityAdd from "./svg/PictogramBleedIdentityAdd";
|
|
84
92
|
import PictogramBleedIdentityCheck from "./svg/PictogramBleedIdentityCheck";
|
|
85
93
|
import PictogramBleedIdentityRefresh from "./svg/PictogramBleedIdentityRefresh";
|
|
86
|
-
import
|
|
94
|
+
import PictogramBleedLostConnection from "./svg/PictogramBleedLostConnection";
|
|
95
|
+
import PictogramBleedMessage from "./svg/PictogramBleedMessage";
|
|
96
|
+
import PictogramBleedNotification from "./svg/PictogramBleedNotification";
|
|
97
|
+
import PictogramBleedPasscode from "./svg/PictogramBleedPasscode";
|
|
98
|
+
import PictogramBleedPending from "./svg/PictogramBleedPending";
|
|
99
|
+
import PictogramBleedQrCode from "./svg/PictogramBleedQrCode";
|
|
100
|
+
import PictogramBleedSearch from "./svg/PictogramBleedSearch";
|
|
101
|
+
import PictogramBleedSecurity from "./svg/PictogramBleedSecurity";
|
|
102
|
+
import PictogramBleedStar from "./svg/PictogramBleedStar";
|
|
87
103
|
import PictogramBleedStopSecurity from "./svg/PictogramBleedStopSecurity";
|
|
104
|
+
import PictogramBleedSuccess from "./svg/PictogramBleedSuccess";
|
|
88
105
|
import PictogramBleedTime from "./svg/PictogramBleedTime";
|
|
89
|
-
import PictogramBleedPasscode from "./svg/PictogramBleedPasscode";
|
|
90
|
-
import PictogramTiming from "./svg/PictogramTiming";
|
|
91
106
|
import PictogramBleedTiming from "./svg/PictogramBleedTiming";
|
|
107
|
+
import PictogramCardAdd from "./svg/PictogramCardAdd";
|
|
108
|
+
import PictogramCardFavourite from "./svg/PictogramCardFavourite";
|
|
92
109
|
import PictogramCardIssue from "./svg/PictogramCardIssue";
|
|
93
110
|
import PictogramCardQuestion from "./svg/PictogramCardQuestion";
|
|
94
|
-
import PictogramCardFavourite from "./svg/PictogramCardFavourite";
|
|
95
|
-
import PictogramCardAdd from "./svg/PictogramCardAdd";
|
|
96
|
-
import PictogramBleedCardAdd from "./svg/PictogramBleedCardAdd";
|
|
97
|
-
import PictogramBleedCardFavourite from "./svg/PictogramBleedCardFavourite";
|
|
98
|
-
import PictogramBleedCardQuestion from "./svg/PictogramBleedCardQuestion";
|
|
99
|
-
import PictogramBleedCardIssue from "./svg/PictogramBleedCardIssue";
|
|
100
|
-
import PictogramSearchLens from "./svg/PictogramSearchLens";
|
|
101
|
-
import PictogramBleedSearch from "./svg/PictogramBleedSearch";
|
|
102
|
-
import PictogramBleedDoc from "./svg/PictogramBleedDoc";
|
|
103
111
|
import PictogramDoc from "./svg/PictogramDoc";
|
|
104
|
-
import
|
|
105
|
-
import
|
|
106
|
-
import
|
|
107
|
-
import
|
|
112
|
+
import PictogramEmailDotCheck from "./svg/PictogramEmailDotCheck";
|
|
113
|
+
import PictogramEmailDotNotif from "./svg/PictogramEmailDotNotif";
|
|
114
|
+
import PictogramEnded from "./svg/PictogramEnded";
|
|
115
|
+
import PictogramEventClose from "./svg/PictogramEventClose";
|
|
108
116
|
import PictogramIdea from "./svg/PictogramIdea";
|
|
109
|
-
import
|
|
117
|
+
import PictogramLostConnection from "./svg/PictogramLostConnection";
|
|
118
|
+
import PictogramMessage from "./svg/PictogramMessage";
|
|
110
119
|
import PictogramMoneyCheck from "./svg/PictogramMoneyCheck";
|
|
111
|
-
import PictogramReactivate from "./svg/PictogramReactivate";
|
|
112
|
-
import PictogramActivate from "./svg/PictogramActivate";
|
|
113
120
|
import PictogramNFCScanAndroid from "./svg/PictogramNFCScanAndroid";
|
|
114
121
|
import PictogramNFCScaniOS from "./svg/PictogramNFCScaniOS";
|
|
115
|
-
import
|
|
116
|
-
import PictogramLostConnection from "./svg/PictogramLostConnection";
|
|
122
|
+
import PictogramPending from "./svg/PictogramPending";
|
|
117
123
|
import PictogramQrCode from "./svg/PictogramQrCode";
|
|
118
|
-
import
|
|
119
|
-
import
|
|
120
|
-
import
|
|
121
|
-
import
|
|
122
|
-
import PictogramBleedLostConnection from "./svg/PictogramBleedLostConnection";
|
|
123
|
-
import PictogramEnded from "./svg/PictogramEnded";
|
|
124
|
-
import PictogramBleedEnded from "./svg/PictogramBleedEnded";
|
|
124
|
+
import PictogramReactivate from "./svg/PictogramReactivate";
|
|
125
|
+
import PictogramSearchLens from "./svg/PictogramSearchLens";
|
|
126
|
+
import PictogramStar from "./svg/PictogramStar";
|
|
127
|
+
import PictogramTiming from "./svg/PictogramTiming";
|
|
125
128
|
export const IOPictograms = {
|
|
126
129
|
// Start legacy pictograms //
|
|
127
130
|
messages: PictogramMessages,
|
|
@@ -202,6 +205,9 @@ export const IOPictograms = {
|
|
|
202
205
|
emailDotNotif: PictogramEmailDotNotif,
|
|
203
206
|
emailDotCheck: PictogramEmailDotCheck,
|
|
204
207
|
biometric: PictogramBiometric,
|
|
208
|
+
eventClose: PictogramEventClose,
|
|
209
|
+
hello: PictogramHello,
|
|
210
|
+
comunicationProblem: PictogramComunicationProblem,
|
|
205
211
|
// Start Objects Pictogram
|
|
206
212
|
ibanCard: PictogramObjIbanCard,
|
|
207
213
|
followMessage: PictogramObjFollowMessage,
|