@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Platform","StyleSheet","IOColors","IOModuleIDPHSpacing","IOModuleIDPVSpacing","IOModuleIDPRadius","IOVisualCostants","appMarginDefault","headerHeight","avatarSizeSmall","avatarSizeMedium","iconContainedSizeDefault","IOStyles","create","flex","selfCenter","alignSelf","alignCenter","alignItems","horizontalContentPadding","paddingHorizontal","row","flexDirection","column","rowSpaceBetween","justifyContent","centerJustified","footer","backgroundColor","white","paddingBottom","paddingTop","shadowColor","black","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","bgWhite","topListBorderBelowTabsStyle","borderTopWidth","OS","undefined","btnLegacySizeDefault","btnSizeLarge","btnBorderRadius","btnSizeDefault","buttonSolidHeight","iconBtnSizeSmall","numberPadBtnSize","IOButtonLegacyStyles","button","textAlignVertical","borderRadius","buttonInner","label","labelSizeDefault","fontSize","buttonSizeDefault","IOButtonStyles","buttonLink","labelSizeSmall","buttonSizeSmall","dimensionsDefault","IOIconButtonStyles","buttonSizeLarge","IONumberPadButtonStyles","circularShape","buttonSize","IOListItemVisualParams","paddingVertical","iconMargin","actionMargin","iconSize","chevronSize","IOListItemStyles","listItem","marginHorizontal","listItemInner","IOModuleStyles","borderWidth","borderColor","IOSelectionTickVisualParams","size","borderColorOffState","bgColorOnState","tickColor","IOSwitchVisualParams","bgColorOffState","bgCircle","padding","IOSelectionTickLegacyVisualParams","IOSelectionListItemVisualParams","descriptionMargin","IOSelectionListItemStyles"],"sourceRoot":"../../../src","sources":["core/IOStyles.ts"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AAEnD,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAEEC,mBAAmB,EACnBC,mBAAmB,QAGd,aAAa;AACpB,SAASC,iBAAiB,QAAQ,YAAY;;AAE9C;AACA;AACA;;
|
|
1
|
+
{"version":3,"names":["Platform","StyleSheet","IOColors","IOModuleIDPHSpacing","IOModuleIDPVSpacing","IOModuleIDPRadius","IOVisualCostants","appMarginDefault","headerHeight","avatarSizeSmall","avatarSizeMedium","iconContainedSizeDefault","scrollDownButtonRight","scrollDownButtonBottom","IOStyles","create","flex","selfCenter","alignSelf","alignCenter","alignItems","horizontalContentPadding","paddingHorizontal","row","flexDirection","column","rowSpaceBetween","justifyContent","centerJustified","footer","backgroundColor","white","paddingBottom","paddingTop","shadowColor","black","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","bgWhite","topListBorderBelowTabsStyle","borderTopWidth","OS","undefined","btnLegacySizeDefault","btnSizeLarge","btnBorderRadius","btnSizeDefault","buttonSolidHeight","iconBtnSizeSmall","numberPadBtnSize","IOButtonLegacyStyles","button","textAlignVertical","borderRadius","buttonInner","label","labelSizeDefault","fontSize","buttonSizeDefault","IOButtonStyles","buttonLink","labelSizeSmall","buttonSizeSmall","dimensionsDefault","IOIconButtonStyles","buttonSizeLarge","IONumberPadButtonStyles","circularShape","buttonSize","IOListItemVisualParams","paddingVertical","iconMargin","actionMargin","iconSize","chevronSize","IOListItemStyles","listItem","marginHorizontal","listItemInner","IOModuleStyles","borderWidth","borderColor","IOSelectionTickVisualParams","size","borderColorOffState","bgColorOnState","tickColor","IOSwitchVisualParams","bgColorOffState","bgCircle","padding","IOSelectionTickLegacyVisualParams","IOSelectionListItemVisualParams","descriptionMargin","IOSelectionListItemStyles"],"sourceRoot":"../../../src","sources":["core/IOStyles.ts"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AAEnD,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAEEC,mBAAmB,EACnBC,mBAAmB,QAGd,aAAa;AACpB,SAASC,iBAAiB,QAAQ,YAAY;;AAE9C;AACA;AACA;;AAcA,OAAO,MAAMC,gBAAkC,GAAG;EAChDC,gBAAgB,EAAE,EAAE;EACpBC,YAAY,EAAE,EAAE;EAChBC,eAAe,EAAE,EAAE;EACnBC,gBAAgB,EAAE,EAAE;EACpBC,wBAAwB,EAAE,EAAE;EAC5BC,qBAAqB,EAAE,EAAE;EACzBC,sBAAsB,EAAE;AAC1B,CAAC;AAED,OAAO,MAAMC,QAAQ,GAAGb,UAAU,CAACc,MAAM,CAAC;EACxCC,IAAI,EAAE;IACJA,IAAI,EAAE;EACR,CAAC;EACDC,UAAU,EAAE;IACVC,SAAS,EAAE;EACb,CAAC;EACDC,WAAW,EAAE;IACXC,UAAU,EAAE;EACd,CAAC;EACDC,wBAAwB,EAAE;IACxBC,iBAAiB,EAAEhB,gBAAgB,CAACC;EACtC,CAAC;EACDgB,GAAG,EAAE;IACHC,aAAa,EAAE;EACjB,CAAC;EACDC,MAAM,EAAE;IACND,aAAa,EAAE;EACjB,CAAC;EACDE,eAAe,EAAE;IACfF,aAAa,EAAE,KAAK;IACpBG,cAAc,EAAE;EAClB,CAAC;EACDC,eAAe,EAAE;IACfD,cAAc,EAAE;EAClB,CAAC;EACD;EACA;EACA;EACAE,MAAM,EAAE;IACNC,eAAe,EAAE5B,QAAQ,CAAC6B,KAAK;IAC/BC,aAAa,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,eAAe,EAAED,sBAAsB,CAACC,eAAe;IACvDpD,iBAAiB,EAAEmD,sBAAsB,CAACnD,iBAAiB;IAC3D2D,gBAAgB,EAAE,CAACR,sBAAsB,CAACnD;EAC5C,CAAC;EACD4D,aAAa,EAAE;IACb1D,aAAa,EAAE,KAAK;IACpBJ,UAAU,EAAE,YAAY;IACxBO,cAAc,EAAE;EAClB;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Easing, useAnimatedStyle, useSharedValue, withSequence, withTiming } from "react-native-reanimated";
|
|
2
|
+
import { useCallback } from "react";
|
|
3
|
+
import { triggerHaptic } from "../../functions";
|
|
4
|
+
const SHAKE_OFFSET = 8;
|
|
5
|
+
export const useErrorShakeAnimation = () => {
|
|
6
|
+
const translate = useSharedValue(0);
|
|
7
|
+
const animatedStyle = useAnimatedStyle(() => ({
|
|
8
|
+
transform: [{
|
|
9
|
+
translateX: translate.value
|
|
10
|
+
}]
|
|
11
|
+
}));
|
|
12
|
+
const shakeAnimation = useCallback(() => {
|
|
13
|
+
triggerHaptic("notificationError");
|
|
14
|
+
return withSequence(withTiming(SHAKE_OFFSET, {
|
|
15
|
+
duration: 75,
|
|
16
|
+
easing: Easing.inOut(Easing.cubic)
|
|
17
|
+
}), withTiming(-SHAKE_OFFSET, {
|
|
18
|
+
duration: 75,
|
|
19
|
+
easing: Easing.inOut(Easing.cubic)
|
|
20
|
+
}), withTiming(SHAKE_OFFSET / 2, {
|
|
21
|
+
duration: 75,
|
|
22
|
+
easing: Easing.inOut(Easing.cubic)
|
|
23
|
+
}), withTiming(-SHAKE_OFFSET / 2, {
|
|
24
|
+
duration: 75,
|
|
25
|
+
easing: Easing.inOut(Easing.cubic)
|
|
26
|
+
}), withTiming(0, {
|
|
27
|
+
duration: 75,
|
|
28
|
+
easing: Easing.inOut(Easing.cubic)
|
|
29
|
+
}));
|
|
30
|
+
}, []);
|
|
31
|
+
return {
|
|
32
|
+
translate,
|
|
33
|
+
animatedStyle,
|
|
34
|
+
shakeAnimation
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=useErrorShakeAnimation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Easing","useAnimatedStyle","useSharedValue","withSequence","withTiming","useCallback","triggerHaptic","SHAKE_OFFSET","useErrorShakeAnimation","translate","animatedStyle","transform","translateX","value","shakeAnimation","duration","easing","inOut","cubic"],"sourceRoot":"../../../../src","sources":["utils/hooks/useErrorShakeAnimation.ts"],"mappings":"AAAA,SACEA,MAAM,EACNC,gBAAgB,EAChBC,cAAc,EACdC,YAAY,EACZC,UAAU,QACL,yBAAyB;AAChC,SAASC,WAAW,QAAQ,OAAO;AACnC,SAASC,aAAa,QAAQ,iBAAiB;AAE/C,MAAMC,YAAoB,GAAG,CAAC;AAE9B,OAAO,MAAMC,sBAAsB,GAAGA,CAAA,KAAM;EAC1C,MAAMC,SAAS,GAAGP,cAAc,CAAC,CAAC,CAAC;EACnC,MAAMQ,aAAa,GAAGT,gBAAgB,CAAC,OAAO;IAC5CU,SAAS,EAAE,CAAC;MAAEC,UAAU,EAAEH,SAAS,CAACI;IAAM,CAAC;EAC7C,CAAC,CAAC,CAAC;EAEH,MAAMC,cAAc,GAAGT,WAAW,CAAC,MAAM;IACvCC,aAAa,CAAC,mBAAmB,CAAC;IAClC,OAAOH,YAAY,CACjBC,UAAU,CAACG,YAAY,EAAE;MACvBQ,QAAQ,EAAE,EAAE;MACZC,MAAM,EAAEhB,MAAM,CAACiB,KAAK,CAACjB,MAAM,CAACkB,KAAK;IACnC,CAAC,CAAC,EACFd,UAAU,CAAC,CAACG,YAAY,EAAE;MACxBQ,QAAQ,EAAE,EAAE;MACZC,MAAM,EAAEhB,MAAM,CAACiB,KAAK,CAACjB,MAAM,CAACkB,KAAK;IACnC,CAAC,CAAC,EACFd,UAAU,CAACG,YAAY,GAAG,CAAC,EAAE;MAC3BQ,QAAQ,EAAE,EAAE;MACZC,MAAM,EAAEhB,MAAM,CAACiB,KAAK,CAACjB,MAAM,CAACkB,KAAK;IACnC,CAAC,CAAC,EACFd,UAAU,CAAC,CAACG,YAAY,GAAG,CAAC,EAAE;MAC5BQ,QAAQ,EAAE,EAAE;MACZC,MAAM,EAAEhB,MAAM,CAACiB,KAAK,CAACjB,MAAM,CAACkB,KAAK;IACnC,CAAC,CAAC,EACFd,UAAU,CAAC,CAAC,EAAE;MAAEW,QAAQ,EAAE,EAAE;MAAEC,MAAM,EAAEhB,MAAM,CAACiB,KAAK,CAACjB,MAAM,CAACkB,KAAK;IAAE,CAAC,CACpE,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO;IAAET,SAAS;IAAEC,aAAa;IAAEI;EAAe,CAAC;AACrD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { GestureResponderEvent } from "react-native";
|
|
3
3
|
import { WithTestID } from "../../utils/types";
|
|
4
4
|
import { IOIcons } from "../icons";
|
|
5
|
-
export type ColorButtonLink = "primary";
|
|
5
|
+
export type ColorButtonLink = "primary" | "contrast";
|
|
6
6
|
export type ButtonLinkProps = WithTestID<{
|
|
7
7
|
color?: ColorButtonLink;
|
|
8
8
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonLink.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/ButtonLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAyB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"ButtonLink.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/ButtonLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAyB,MAAM,cAAc,CAAC;AAoB5E,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAGL,OAAO,EAER,MAAM,UAAU,CAAC;AAIlB,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,UAAU,CAAC;AAErD,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC;IACvC,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IAE/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,OAAO,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACjD,CAAC,CAAC;AAqEH,eAAO,MAAM,UAAU,qIAWlB,eAAe,uBA6InB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/checkbox/CheckboxLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"CheckboxLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/checkbox/CheckboxLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAQ,MAAM,cAAc,CAAC;AAK/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IAEd,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7C,CAAC;AAMF,KAAK,QAAQ,GAAG,KAAK,GACnB,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,GAC3E,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC;AAE1D;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,gDAKvB,QAAQ,sBAwCV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeInput.d.ts","sourceRoot":"","sources":["../../../../src/components/codeInput/CodeInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CodeInput.d.ts","sourceRoot":"","sources":["../../../../src/components/codeInput/CodeInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAQlD,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACvC,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC5B,CAAC;AA8BF,eAAO,MAAM,SAAS,0DAMnB,cAAc,sBAuDhB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ViewStyle } from "react-native";
|
|
3
|
+
import { WithSpringConfig } from "react-native-reanimated";
|
|
4
|
+
type Props = {
|
|
5
|
+
visible?: boolean;
|
|
6
|
+
springConfig?: WithSpringConfig;
|
|
7
|
+
delayOut?: number;
|
|
8
|
+
delayIn?: number;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
style?: ViewStyle;
|
|
11
|
+
};
|
|
12
|
+
declare const ScaleInOutAnimation: ({ visible, springConfig, delayOut, delayIn, children, style }: Props) => React.JSX.Element | null;
|
|
13
|
+
export { ScaleInOutAnimation };
|
|
14
|
+
//# sourceMappingURL=ScaleInOutAnimation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScaleInOutAnimation.d.ts","sourceRoot":"","sources":["../../../../src/components/common/ScaleInOutAnimation.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAiB,EAEf,gBAAgB,EAIjB,MAAM,yBAAyB,CAAC;AAEjC,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF,QAAA,MAAM,mBAAmB,kEAOtB,KAAK,6BAsCP,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -191,6 +191,7 @@ export declare const IOIcons: {
|
|
|
191
191
|
readonly systemToggleInstructions: ({ size, style, ...props }: SVGIconProps) => React.JSX.Element;
|
|
192
192
|
readonly systemAppsAndroid: ({ size, style, ...props }: SVGIconProps) => React.JSX.Element;
|
|
193
193
|
readonly systemNotificationsInstructions: ({ size, style, ...props }: SVGIconProps) => React.JSX.Element;
|
|
194
|
+
readonly systemPermissionsAndroid: ({ size, style, ...props }: SVGIconProps) => React.JSX.Element;
|
|
194
195
|
};
|
|
195
196
|
export type IOIcons = keyof typeof IOIcons;
|
|
196
197
|
export type IOIconSizeScale = 12 | 16 | 20 | 24 | 30 | 32 | 48 | 96;
|
|
@@ -301,6 +302,7 @@ export declare const IOSystemIcons: {
|
|
|
301
302
|
readonly systemToggleInstructions: ({ size, style, ...props }: SVGIconProps) => React.JSX.Element;
|
|
302
303
|
readonly systemAppsAndroid: ({ size, style, ...props }: SVGIconProps) => React.JSX.Element;
|
|
303
304
|
readonly systemNotificationsInstructions: ({ size, style, ...props }: SVGIconProps) => React.JSX.Element;
|
|
305
|
+
readonly systemPermissionsAndroid: ({ size, style, ...props }: SVGIconProps) => React.JSX.Element;
|
|
304
306
|
};
|
|
305
307
|
export type IOSystemIcons = keyof typeof IOSystemIcons;
|
|
306
308
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAiM/C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+LV,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG,MAAM,OAAO,OAAO,CAAC;AAK3C,MAAM,MAAM,eAAe,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAEpE,MAAM,MAAM,uBAAuB,GAAG,EAAE,GAAG,EAAE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AAEX,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAkB7D,eAAO,MAAM,eAAe;;;;;;;;;;;;;CAalB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,eAAe,CAAC;AAK3D,eAAO,MAAM,cAAc;;;;CAIjB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,cAAc,CAAC;AAYzD,eAAO,MAAM,aAAa;;;;;;;CAOhB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,aAAa,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SVGIconProps } from "../Icon";
|
|
3
|
+
declare const IconSystemPermissionsAndroid: ({ size, style, ...props }: SVGIconProps) => React.JSX.Element;
|
|
4
|
+
export default IconSystemPermissionsAndroid;
|
|
5
|
+
//# sourceMappingURL=IconSystemPermissionsAndroid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconSystemPermissionsAndroid.d.ts","sourceRoot":"","sources":["../../../../../src/components/icons/svg/IconSystemPermissionsAndroid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,QAAA,MAAM,4BAA4B,8BAI/B,YAAY,sBAQd,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.tsx"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,C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,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ScrollViewProps } from "react-native";
|
|
3
|
+
type ForceScrollDownViewProps = {
|
|
4
|
+
/**
|
|
5
|
+
* The content to display inside the scroll view.
|
|
6
|
+
*/
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* The distance from the bottom of the scrollable content at which the "scroll to bottom" button
|
|
10
|
+
* should become hidden. Defaults to 100.
|
|
11
|
+
*/
|
|
12
|
+
threshold?: number;
|
|
13
|
+
/**
|
|
14
|
+
* A callback that will be called whenever the scroll view crosses the threshold. The callback
|
|
15
|
+
* is passed a boolean indicating whether the threshold has been crossed (`true`) or not (`false`).
|
|
16
|
+
*/
|
|
17
|
+
onThresholdCrossed?: (crossed: boolean) => void;
|
|
18
|
+
} & Pick<ScrollViewProps, "style" | "contentContainerStyle" | "scrollEnabled" | "testID">;
|
|
19
|
+
/**
|
|
20
|
+
* A React Native component that displays a scroll view with a button that scrolls to the bottom of the content
|
|
21
|
+
* when pressed. The button is hidden when the scroll view reaches a certain threshold from the bottom, which is
|
|
22
|
+
* configurable by the `threshold` prop. The button, and the scrolling, can also be disabled by setting the
|
|
23
|
+
* `scrollEnabled` prop to `false`.
|
|
24
|
+
*/
|
|
25
|
+
declare const ForceScrollDownView: ({ children, threshold, style, contentContainerStyle, scrollEnabled, onThresholdCrossed }: ForceScrollDownViewProps) => React.JSX.Element;
|
|
26
|
+
export { ForceScrollDownView };
|
|
27
|
+
//# sourceMappingURL=ForceScrollDownView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ForceScrollDownView.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/ForceScrollDownView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,EAKL,eAAe,EAEhB,MAAM,cAAc,CAAC;AAKtB,KAAK,wBAAwB,GAAG;IAC9B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACjD,GAAG,IAAI,CACN,eAAe,EACf,OAAO,GAAG,uBAAuB,GAAG,eAAe,GAAG,QAAQ,CAC/D,CAAC;AAEF;;;;;GAKG;AACH,QAAA,MAAM,mBAAmB,6FAOtB,wBAAwB,sBAkJ1B,CAAC;AAWF,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ForceScrollDownView.test.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/__test__/ForceScrollDownView.test.tsx"],"names":[],"mappings":""}
|
|
@@ -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.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/index.tsx"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/index.tsx"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC"}
|
|
@@ -18,6 +18,11 @@ export type ListItemTransaction = WithTestID<PressableBaseProps & {
|
|
|
18
18
|
paymentLogoIcon?: ListItemTransactionLogo;
|
|
19
19
|
subtitle: string;
|
|
20
20
|
title: string;
|
|
21
|
+
/**
|
|
22
|
+
* The maximum number of lines to display for the title.
|
|
23
|
+
* @default 2
|
|
24
|
+
*/
|
|
25
|
+
numberOfLines?: number;
|
|
21
26
|
accessible?: boolean;
|
|
22
27
|
} & ({
|
|
23
28
|
transactionStatus: ListItemTransactionStatusWithoutBadge;
|
|
@@ -28,5 +33,5 @@ export type ListItemTransaction = WithTestID<PressableBaseProps & {
|
|
|
28
33
|
badgeText: string;
|
|
29
34
|
transactionAmount?: string;
|
|
30
35
|
})>;
|
|
31
|
-
export declare const ListItemTransaction: ({ accessibilityLabel, hasChevronRight, isLoading, paymentLogoIcon, onPress, subtitle, testID, title, transactionAmount, badgeText, transactionStatus, accessible }: ListItemTransaction) => React.JSX.Element;
|
|
36
|
+
export declare const ListItemTransaction: ({ accessibilityLabel, hasChevronRight, isLoading, paymentLogoIcon, onPress, subtitle, testID, title, transactionAmount, badgeText, transactionStatus, numberOfLines, accessible }: ListItemTransaction) => React.JSX.Element;
|
|
32
37
|
//# sourceMappingURL=ListItemTransaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemTransaction.d.ts","sourceRoot":"","sources":["../../../../src/components/listitems/ListItemTransaction.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAoB,MAAM,cAAc,CAAC;AAehE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAM/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAG7C,OAAO,EACL,kBAAkB,EAEnB,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,yBAAyB,GACjC,SAAS,GACT,SAAS,GACT,SAAS,GACT,WAAW,GACX,UAAU,GACV,UAAU,CAAC;AAEf,MAAM,MAAM,qCAAqC,GAAG,OAAO,CACzD,yBAAyB,EACzB,SAAS,GAAG,UAAU,CACvB,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG,OAAO,CACtD,yBAAyB,EACzB,SAAS,GAAG,UAAU,CACvB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAC/B,iBAAiB,GACjB,cAAc,GACd,KAAK,CAAC,SAAS,CAAC;AAEpB,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAC1C,kBAAkB,GAAG;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,eAAe,CAAC,EAAE,uBAAuB,CAAC;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,CACE;IACE,iBAAiB,EAAE,qCAAqC,CAAC;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,GACD;IACE,iBAAiB,EAAE,kCAAkC,CAAC;IACtD,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CACJ,CACJ,CAAC;AA2BF,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ListItemTransaction.d.ts","sourceRoot":"","sources":["../../../../src/components/listitems/ListItemTransaction.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAoB,MAAM,cAAc,CAAC;AAehE,OAAO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|
3
|
+
status: "default" | "focus" | "error";
|
|
4
|
+
secret?: boolean;
|
|
5
|
+
value?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const BoxedInput: ({ status, value, secret }: Props) => React.JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=BoxedInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoxedInput.d.ts","sourceRoot":"","sources":["../../../../src/components/otpInput/BoxedInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;IACtC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAsCF,eAAO,MAAM,UAAU,8BAA+B,KAAK,sBAkB1D,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
value: string;
|
|
4
|
+
onValueChange: (value: string) => void;
|
|
5
|
+
length: number;
|
|
6
|
+
secret?: boolean;
|
|
7
|
+
autocomplete?: boolean;
|
|
8
|
+
onValidate?: (value: string) => boolean;
|
|
9
|
+
errorMessage?: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* `OTPInput` is a component that allows the user to enter a one-time password.
|
|
13
|
+
* It has an hidden `TextInput` that is used to handle the keyboard and the focus.
|
|
14
|
+
* The input handles the autocompletion of the OTP code.
|
|
15
|
+
* @param value - The value of the OTP code
|
|
16
|
+
* @param onValueChange - The function to call when the value changes
|
|
17
|
+
* @param length - The length of the OTP code
|
|
18
|
+
* @param secret - If the OTP code should be hidden
|
|
19
|
+
* @param autocomplete - If the OTP code should be autocompleted
|
|
20
|
+
* @param onValidate - The function to call when the OTP code is validated
|
|
21
|
+
* @param errorMessage - The error message to display
|
|
22
|
+
* @returns
|
|
23
|
+
*/
|
|
24
|
+
export declare const OTPInput: ({ value, onValueChange, length, onValidate, errorMessage, secret, autocomplete }: Props) => React.JSX.Element;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=OTPInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OTPInput.d.ts","sourceRoot":"","sources":["../../../../src/components/otpInput/OTPInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACxC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,QAAQ,qFAQlB,KAAK,sBA6FP,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/otpInput/index.tsx"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -79,6 +79,9 @@ export declare const IOPictograms: {
|
|
|
79
79
|
emailDotNotif: ({ size, colorValues, ...props }: SVGPictogramProps) => React.JSX.Element;
|
|
80
80
|
emailDotCheck: ({ size, colorValues, ...props }: SVGPictogramProps) => React.JSX.Element;
|
|
81
81
|
biometric: ({ size, colorValues, ...props }: SVGPictogramProps) => React.JSX.Element;
|
|
82
|
+
eventClose: ({ size, colorValues, ...props }: SVGPictogramProps) => React.JSX.Element;
|
|
83
|
+
hello: ({ size, colorValues, ...props }: SVGPictogramProps) => React.JSX.Element;
|
|
84
|
+
comunicationProblem: ({ size, colorValues, ...props }: SVGPictogramProps) => React.JSX.Element;
|
|
82
85
|
ibanCard: ({ size, colorValues, ...props }: SVGPictogramProps) => React.JSX.Element;
|
|
83
86
|
followMessage: ({ size, colorValues, ...props }: SVGPictogramProps) => React.JSX.Element;
|
|
84
87
|
manual: ({ size, colorValues, ...props }: SVGPictogramProps) => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pictogram.d.ts","sourceRoot":"","sources":["../../../../src/components/pictograms/Pictogram.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EACL,QAAQ,EAIT,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Pictogram.d.ts","sourceRoot":"","sources":["../../../../src/components/pictograms/Pictogram.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EACL,QAAQ,EAIT,MAAM,qBAAqB,CAAC;AA+H7B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4FxB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,YAAY,CAAC;AACrD,MAAM,MAAM,oBAAoB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,CAAC;AAEjE,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,CAAC,EAAE,QAAQ,CAAC;IAIjB,cAAc,CAAC,EAAE,SAAS,GAAG,eAAe,GAAG,cAAc,CAAC;IAC9D,IAAI,CAAC,EAAE,oBAAoB,GAAG,MAAM,CAAC;CAC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|
+
import { SVGPictogramProps } from "../Pictogram";
|
|
3
|
+
declare const PictogramComunicationProblem: ({ size, colorValues, ...props }: SVGPictogramProps) => React.JSX.Element;
|
|
4
|
+
export default PictogramComunicationProblem;
|
|
5
|
+
//# sourceMappingURL=PictogramComunicationProblem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PictogramComunicationProblem.d.ts","sourceRoot":"","sources":["../../../../../src/components/pictograms/svg/PictogramComunicationProblem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,QAAA,MAAM,4BAA4B,oCAI/B,iBAAiB,sBAmFnB,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SVGPictogramProps } from "../Pictogram";
|
|
3
|
+
declare const PictogramEventClose: ({ size, colorValues, ...props }: SVGPictogramProps) => React.JSX.Element;
|
|
4
|
+
export default PictogramEventClose;
|
|
5
|
+
//# sourceMappingURL=PictogramEventClose.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PictogramEventClose.d.ts","sourceRoot":"","sources":["../../../../../src/components/pictograms/svg/PictogramEventClose.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,QAAA,MAAM,mBAAmB,oCAItB,iBAAiB,sBAuBnB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PictogramHello.d.ts","sourceRoot":"","sources":["../../../../../src/components/pictograms/svg/PictogramHello.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,QAAA,MAAM,cAAc,oCAAqC,iBAAiB,sBA+CzE,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Pressable } from "react-native";
|
|
3
|
+
import { AnimatedRadio } from "./AnimatedRadio";
|
|
4
|
+
type Props = {
|
|
5
|
+
label: string;
|
|
6
|
+
onValueChange?: (newValue: boolean) => void;
|
|
7
|
+
};
|
|
8
|
+
type OwnProps = Props & Pick<React.ComponentProps<typeof AnimatedRadio>, "disabled" | "checked"> & Pick<React.ComponentProps<typeof Pressable>, "onPress">;
|
|
9
|
+
/**
|
|
10
|
+
* A radio button with the automatic state management that uses a {@link AnimatedRadio}
|
|
11
|
+
* The toggleValue change when a `onPress` event is received and dispatch the `onValueChange`.
|
|
12
|
+
*
|
|
13
|
+
* @param props
|
|
14
|
+
* @constructor
|
|
15
|
+
*/
|
|
16
|
+
export declare const RadioButtonLabel: ({ label, checked, disabled, onValueChange }: OwnProps) => React.JSX.Element;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=RadioButtonLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioButtonLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/radio/RadioButtonLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAQ,MAAM,cAAc,CAAC;AAK/C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IAEd,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7C,CAAC;AAMF,KAAK,QAAQ,GAAG,KAAK,GACnB,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,GACxE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC;AAE1D;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,gDAK1B,QAAQ,sBAqCV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/radio/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/radio/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC"}
|
|
@@ -10,6 +10,8 @@ interface IOVisualCostants {
|
|
|
10
10
|
avatarSizeSmall: number;
|
|
11
11
|
avatarSizeMedium: number;
|
|
12
12
|
iconContainedSizeDefault: number;
|
|
13
|
+
scrollDownButtonRight: number;
|
|
14
|
+
scrollDownButtonBottom: number;
|
|
13
15
|
}
|
|
14
16
|
export declare const IOVisualCostants: IOVisualCostants;
|
|
15
17
|
export declare const IOStyles: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOStyles.d.ts","sourceRoot":"","sources":["../../../src/core/IOStyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EACL,WAAW,EAGX,QAAQ,EACR,cAAc,EACf,MAAM,aAAa,CAAC;AAGrB;;GAEG;AAEH,UAAU,gBAAgB;IACxB,gBAAgB,EAAE,WAAW,CAAC;IAE9B,YAAY,EAAE,MAAM,CAAC;IAErB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,wBAAwB,EAAE,MAAM,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 +1,11 @@
|
|
|
1
|
+
/// <reference types="react-native-reanimated" />
|
|
2
|
+
export declare const useErrorShakeAnimation: () => {
|
|
3
|
+
translate: import("react-native-reanimated").SharedValue<number>;
|
|
4
|
+
animatedStyle: {
|
|
5
|
+
transform: {
|
|
6
|
+
translateX: number;
|
|
7
|
+
}[];
|
|
8
|
+
};
|
|
9
|
+
shakeAnimation: () => number;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useErrorShakeAnimation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useErrorShakeAnimation.d.ts","sourceRoot":"","sources":["../../../../src/utils/hooks/useErrorShakeAnimation.ts"],"names":[],"mappings":";AAYA,eAAO,MAAM,sBAAsB;;;;;;;;CA8BlC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pagopa/io-app-design-system",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.0",
|
|
4
4
|
"description": "The library defining the core components of the design system of @pagopa/io-app",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -37,6 +37,8 @@
|
|
|
37
37
|
"bootstrap": "yarn example && yarn install",
|
|
38
38
|
"storybook": "storybook dev -p 6006",
|
|
39
39
|
"build-storybook": "storybook build",
|
|
40
|
+
"predeploy": "yarn build-storybook",
|
|
41
|
+
"deploy-storybook": "gh-pages -d storybook-static",
|
|
40
42
|
"generate:icons": "node scripts/generateNewIcons.js",
|
|
41
43
|
"generate:pictograms": "node scripts/generateNewPictograms.js",
|
|
42
44
|
"generate": "npm-run-all generate:*"
|
|
@@ -52,7 +54,7 @@
|
|
|
52
54
|
"bugs": {
|
|
53
55
|
"url": "https://github.com/pagopa/io-app-design-system/issues"
|
|
54
56
|
},
|
|
55
|
-
"homepage": "https://github.
|
|
57
|
+
"homepage": "https://pagopa.github.io/io-app-design-system",
|
|
56
58
|
"devDependencies": {
|
|
57
59
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
58
60
|
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
|
|
@@ -72,6 +74,7 @@
|
|
|
72
74
|
"@svgr/core": "^8.1.0",
|
|
73
75
|
"@svgr/plugin-jsx": "^8.1.0",
|
|
74
76
|
"@svgr/plugin-svgo": "^8.1.0",
|
|
77
|
+
"@testing-library/react-native": "^12.4.0",
|
|
75
78
|
"@types/jest": "^28.1.2",
|
|
76
79
|
"@types/lodash": "^4.14.157",
|
|
77
80
|
"@types/react": "~17.0.38",
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
IOColors,
|
|
16
16
|
IOScaleValues,
|
|
17
17
|
IOSpringValues,
|
|
18
|
+
hexToRgba,
|
|
18
19
|
useIOExperimentalDesign
|
|
19
20
|
} from "../../core";
|
|
20
21
|
import { makeFontStyleObject } from "../../utils/fonts";
|
|
@@ -28,7 +29,8 @@ import {
|
|
|
28
29
|
import { HSpacer } from "../spacer/Spacer";
|
|
29
30
|
import { buttonTextFontSize } from "../typography";
|
|
30
31
|
|
|
31
|
-
export type ColorButtonLink = "primary";
|
|
32
|
+
export type ColorButtonLink = "primary" | "contrast";
|
|
33
|
+
|
|
32
34
|
export type ButtonLinkProps = WithTestID<{
|
|
33
35
|
color?: ColorButtonLink;
|
|
34
36
|
label: string;
|
|
@@ -62,6 +64,13 @@ const mapColorStates: Record<
|
|
|
62
64
|
pressed: IOColors["blueIO-600"],
|
|
63
65
|
disabled: IOColors["grey-700"]
|
|
64
66
|
}
|
|
67
|
+
},
|
|
68
|
+
contrast: {
|
|
69
|
+
label: {
|
|
70
|
+
default: IOColors.white,
|
|
71
|
+
pressed: hexToRgba(IOColors.white, 0.85),
|
|
72
|
+
disabled: hexToRgba(IOColors.white, 0.5)
|
|
73
|
+
}
|
|
65
74
|
}
|
|
66
75
|
};
|
|
67
76
|
|
|
@@ -77,6 +86,13 @@ const mapLegacyColorStates: Record<
|
|
|
77
86
|
pressed: IOColors["blue-600"],
|
|
78
87
|
disabled: IOColors["grey-700"]
|
|
79
88
|
}
|
|
89
|
+
},
|
|
90
|
+
contrast: {
|
|
91
|
+
label: {
|
|
92
|
+
default: IOColors.white,
|
|
93
|
+
pressed: hexToRgba(IOColors.white, 0.85),
|
|
94
|
+
disabled: hexToRgba(IOColors.white, 0.5)
|
|
95
|
+
}
|
|
80
96
|
}
|
|
81
97
|
};
|
|
82
98
|
|
|
@@ -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
|
);
|