@pagopa/io-app-design-system 5.12.1 → 5.12.3
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/claimsSelector/ClaimsSelector.js +41 -23
- package/lib/commonjs/components/claimsSelector/ClaimsSelector.js.map +1 -1
- package/lib/commonjs/components/claimsSelector/__test__/__snapshots__/ClaimsSelector.test.tsx.snap +68 -152
- package/lib/commonjs/components/icons/Icon.js +4 -0
- package/lib/commonjs/components/icons/Icon.js.map +1 -1
- package/lib/commonjs/components/icons/svg/IconPause.js +30 -0
- package/lib/commonjs/components/icons/svg/IconPause.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconPlay.js +27 -0
- package/lib/commonjs/components/icons/svg/IconPlay.js.map +1 -0
- package/lib/commonjs/components/icons/svg/originals/IconPause.svg +4 -0
- package/lib/commonjs/components/icons/svg/originals/IconPlay.svg +3 -0
- package/lib/commonjs/components/loadingSpinner/LoadingSpinner.js +14 -18
- package/lib/commonjs/components/loadingSpinner/LoadingSpinner.js.map +1 -1
- package/lib/commonjs/components/toast/ToastProvider.js +1 -4
- package/lib/commonjs/components/toast/ToastProvider.js.map +1 -1
- package/lib/commonjs/hooks/useAccordionAnimation.js +9 -1
- package/lib/commonjs/hooks/useAccordionAnimation.js.map +1 -1
- package/lib/module/components/claimsSelector/ClaimsSelector.js +42 -24
- package/lib/module/components/claimsSelector/ClaimsSelector.js.map +1 -1
- package/lib/module/components/claimsSelector/__test__/__snapshots__/ClaimsSelector.test.tsx.snap +68 -152
- package/lib/module/components/icons/Icon.js +4 -0
- package/lib/module/components/icons/Icon.js.map +1 -1
- package/lib/module/components/icons/svg/IconPause.js +25 -0
- package/lib/module/components/icons/svg/IconPause.js.map +1 -0
- package/lib/module/components/icons/svg/IconPlay.js +22 -0
- package/lib/module/components/icons/svg/IconPlay.js.map +1 -0
- package/lib/module/components/icons/svg/originals/IconPause.svg +4 -0
- package/lib/module/components/icons/svg/originals/IconPlay.svg +3 -0
- package/lib/module/components/loadingSpinner/LoadingSpinner.js +15 -19
- package/lib/module/components/loadingSpinner/LoadingSpinner.js.map +1 -1
- package/lib/module/components/toast/ToastProvider.js +3 -6
- package/lib/module/components/toast/ToastProvider.js.map +1 -1
- package/lib/module/hooks/useAccordionAnimation.js +10 -2
- package/lib/module/hooks/useAccordionAnimation.js.map +1 -1
- package/lib/typescript/components/claimsSelector/ClaimsSelector.d.ts +7 -1
- package/lib/typescript/components/claimsSelector/ClaimsSelector.d.ts.map +1 -1
- 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/IconPause.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconPause.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconPlay.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconPlay.d.ts.map +1 -0
- package/lib/typescript/components/loadingSpinner/LoadingSpinner.d.ts.map +1 -1
- package/lib/typescript/components/toast/ToastProvider.d.ts.map +1 -1
- package/lib/typescript/hooks/useAccordionAnimation.d.ts +4 -0
- package/lib/typescript/hooks/useAccordionAnimation.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/claimsSelector/ClaimsSelector.tsx +56 -37
- package/src/components/claimsSelector/__test__/__snapshots__/ClaimsSelector.test.tsx.snap +68 -152
- package/src/components/icons/Icon.tsx +4 -0
- package/src/components/icons/svg/IconPause.tsx +18 -0
- package/src/components/icons/svg/IconPlay.tsx +14 -0
- package/src/components/icons/svg/originals/IconPause.svg +4 -0
- package/src/components/icons/svg/originals/IconPlay.svg +3 -0
- package/src/components/loadingSpinner/LoadingSpinner.tsx +20 -24
- package/src/components/toast/ToastProvider.tsx +3 -16
- package/src/hooks/useAccordionAnimation.tsx +13 -1
|
@@ -8,7 +8,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _reactNativeGestureHandler = require("react-native-gesture-handler");
|
|
10
10
|
var _reactNativeLinearGradient = _interopRequireDefault(require("react-native-linear-gradient"));
|
|
11
|
-
var _reactNativeReanimated =
|
|
11
|
+
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
12
12
|
var _context = require("../../context");
|
|
13
13
|
var _core = require("../../core");
|
|
14
14
|
var _useAccordionAnimation = require("../../hooks/useAccordionAnimation");
|
|
@@ -20,6 +20,12 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
20
20
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
21
21
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
22
22
|
const accordionBodySpacing = 16;
|
|
23
|
+
|
|
24
|
+
// Threshold to determine when the accordion is considered fully collapsed
|
|
25
|
+
const COLLAPSED_RADIUS_THRESHOLD = 0.001;
|
|
26
|
+
|
|
27
|
+
// Border width offset to ensure gradient fits within the border curves
|
|
28
|
+
const COLLAPSIBLE_BORDER = 1;
|
|
23
29
|
const ClaimsSelector = ({
|
|
24
30
|
title,
|
|
25
31
|
items,
|
|
@@ -28,7 +34,8 @@ const ClaimsSelector = ({
|
|
|
28
34
|
onToggle,
|
|
29
35
|
accessibilityLabel,
|
|
30
36
|
selectedItemIds,
|
|
31
|
-
selectionEnabled = true
|
|
37
|
+
selectionEnabled = true,
|
|
38
|
+
headerGradientColors
|
|
32
39
|
}) => {
|
|
33
40
|
const theme = (0, _context.useIOTheme)();
|
|
34
41
|
const {
|
|
@@ -37,22 +44,41 @@ const ClaimsSelector = ({
|
|
|
37
44
|
onBodyLayout,
|
|
38
45
|
iconAnimatedStyle,
|
|
39
46
|
bodyAnimatedStyle,
|
|
40
|
-
bodyInnerStyle
|
|
47
|
+
bodyInnerStyle,
|
|
48
|
+
progress
|
|
41
49
|
} = (0, _useAccordionAnimation.useAccordionAnimation)({
|
|
42
50
|
defaultExpanded
|
|
43
51
|
});
|
|
44
|
-
const accordionBackground = theme["appBackground-
|
|
52
|
+
const accordionBackground = theme["appBackground-primary"];
|
|
45
53
|
const accordionBorder = theme["cardBorder-default"];
|
|
46
54
|
const onItemPress = () => {
|
|
47
55
|
toggleAccordion();
|
|
48
56
|
onToggle?.(!expanded);
|
|
49
57
|
};
|
|
58
|
+
const hasHeaderGradient = headerGradientColors && headerGradientColors.length >= 2;
|
|
59
|
+
const headerForegroundColor = hasHeaderGradient ? "black" : theme["textBody-default"];
|
|
60
|
+
const headerRadiusAnimatedStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
61
|
+
/**
|
|
62
|
+
* Dynamically adjust bottom corner radius based on the expansion progress.
|
|
63
|
+
* Bottom corners are rounded only when the accordion is fully collapsed to
|
|
64
|
+
* ensure visual consistency with the outer container.
|
|
65
|
+
*/
|
|
66
|
+
const bottomRadius = progress.value < COLLAPSED_RADIUS_THRESHOLD ? _core.IOAccordionRadius : 0;
|
|
67
|
+
return {
|
|
68
|
+
borderTopLeftRadius: _core.IOAccordionRadius - COLLAPSIBLE_BORDER,
|
|
69
|
+
borderTopRightRadius: _core.IOAccordionRadius - COLLAPSIBLE_BORDER,
|
|
70
|
+
borderBottomLeftRadius: bottomRadius - COLLAPSIBLE_BORDER,
|
|
71
|
+
borderBottomRightRadius: bottomRadius - COLLAPSIBLE_BORDER,
|
|
72
|
+
overflow: "hidden"
|
|
73
|
+
};
|
|
74
|
+
});
|
|
50
75
|
const renderClaimItem = (item, index) => {
|
|
51
76
|
const {
|
|
52
77
|
id,
|
|
53
78
|
value,
|
|
54
79
|
description,
|
|
55
|
-
type = "text"
|
|
80
|
+
type = "text",
|
|
81
|
+
endElement
|
|
56
82
|
} = item;
|
|
57
83
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
58
84
|
children: [index !== 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_layout.Divider, {}),
|
|
@@ -73,7 +99,8 @@ const ClaimsSelector = ({
|
|
|
73
99
|
}) : value,
|
|
74
100
|
label: description,
|
|
75
101
|
accessibilityRole: type,
|
|
76
|
-
reversed: true
|
|
102
|
+
reversed: true,
|
|
103
|
+
endElement: endElement
|
|
77
104
|
})]
|
|
78
105
|
}, id);
|
|
79
106
|
};
|
|
@@ -90,16 +117,19 @@ const ClaimsSelector = ({
|
|
|
90
117
|
},
|
|
91
118
|
accessibilityLabel: accessibilityLabel ?? title,
|
|
92
119
|
onPress: onItemPress,
|
|
93
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
94
|
-
style: styles.textContainer,
|
|
95
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
96
|
-
|
|
120
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
|
|
121
|
+
style: [styles.textContainer, headerRadiusAnimatedStyle],
|
|
122
|
+
children: [hasHeaderGradient && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeLinearGradient.default, {
|
|
123
|
+
colors: headerGradientColors,
|
|
124
|
+
style: _reactNative.StyleSheet.absoluteFill
|
|
125
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.H6, {
|
|
126
|
+
color: headerForegroundColor,
|
|
97
127
|
children: title
|
|
98
128
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
99
129
|
style: iconAnimatedStyle,
|
|
100
130
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.Icon, {
|
|
101
131
|
name: "chevronBottom",
|
|
102
|
-
color:
|
|
132
|
+
color: headerForegroundColor
|
|
103
133
|
})
|
|
104
134
|
})]
|
|
105
135
|
})
|
|
@@ -110,9 +140,6 @@ const ClaimsSelector = ({
|
|
|
110
140
|
onLayout: onBodyLayout,
|
|
111
141
|
children: items.map(renderClaimItem)
|
|
112
142
|
})
|
|
113
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeLinearGradient.default, {
|
|
114
|
-
style: styles.linearGradient,
|
|
115
|
-
colors: [(0, _core.hexToRgba)(_core.IOColors[accordionBackground], 0), _core.IOColors[accordionBackground]]
|
|
116
143
|
})]
|
|
117
144
|
});
|
|
118
145
|
};
|
|
@@ -132,15 +159,6 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
132
159
|
bodyInnerContainer: {
|
|
133
160
|
width: "100%"
|
|
134
161
|
},
|
|
135
|
-
linearGradient: {
|
|
136
|
-
height: accordionBodySpacing,
|
|
137
|
-
position: "absolute",
|
|
138
|
-
// Place at the bottom
|
|
139
|
-
bottom: 0,
|
|
140
|
-
// Avoid gradient overlaps with border radius
|
|
141
|
-
left: accordionBodySpacing,
|
|
142
|
-
right: accordionBodySpacing
|
|
143
|
-
},
|
|
144
162
|
imageClaim: {
|
|
145
163
|
width: 160,
|
|
146
164
|
aspectRatio: 3 / 4
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeGestureHandler","_reactNativeLinearGradient","_interopRequireDefault","_reactNativeReanimated","_context","_core","_useAccordionAnimation","_icons","_layout","_listitems","_typography","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","accordionBodySpacing","ClaimsSelector","title","items","defaultExpanded","onItemSelected","onToggle","accessibilityLabel","selectedItemIds","selectionEnabled","theme","useIOTheme","expanded","toggleAccordion","onBodyLayout","iconAnimatedStyle","bodyAnimatedStyle","bodyInnerStyle","useAccordionAnimation","accordionBackground","accordionBorder","onItemPress","renderClaimItem","item","index","id","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeGestureHandler","_reactNativeLinearGradient","_interopRequireDefault","_reactNativeReanimated","_context","_core","_useAccordionAnimation","_icons","_layout","_listitems","_typography","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","accordionBodySpacing","COLLAPSED_RADIUS_THRESHOLD","COLLAPSIBLE_BORDER","ClaimsSelector","title","items","defaultExpanded","onItemSelected","onToggle","accessibilityLabel","selectedItemIds","selectionEnabled","headerGradientColors","theme","useIOTheme","expanded","toggleAccordion","onBodyLayout","iconAnimatedStyle","bodyAnimatedStyle","bodyInnerStyle","progress","useAccordionAnimation","accordionBackground","accordionBorder","onItemPress","hasHeaderGradient","length","headerForegroundColor","headerRadiusAnimatedStyle","useAnimatedStyle","bottomRadius","value","IOAccordionRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","overflow","renderClaimItem","item","index","id","description","type","endElement","jsxs","Fragment","children","jsx","Divider","ListItemCheckbox","selected","includes","onValueChange","undefined","ListItemInfo","Image","source","uri","style","styles","imageClaim","resizeMode","accessibilityIgnoresInvertColors","label","accessibilityRole","reversed","View","accordionWrapper","backgroundColor","IOColors","borderColor","TouchableWithoutFeedback","accessible","accessibilityState","onPress","textContainer","colors","StyleSheet","absoluteFill","H6","color","Icon","name","bodyInnerContainer","onLayout","map","exports","create","borderWidth","borderRadius","borderCurve","padding","flexDirection","alignItems","justifyContent","width","aspectRatio"],"sourceRoot":"../../../../src","sources":["components/claimsSelector/ClaimsSelector.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,0BAAA,GA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,CAACqF,IAAI;UAACR,KAAK,EAAE1C,iBAAkB;UAAA8B,QAAA,eACtC,IAAApE,WAAA,CAAAqE,GAAA,EAACzE,MAAA,CAAA2G,IAAI;YAACC,IAAI,EAAC,eAAe;YAACF,KAAK,EAAEtD;UAAsB,CAAE;QAAC,CAC9C,CAAC;MAAA,CACH;IAAC,CACQ,CAAC,eAE3B,IAAAhD,WAAA,CAAAqE,GAAA,EAAC7E,sBAAA,CAAAW,OAAQ,CAACqF,IAAI;MAACR,KAAK,EAAEzC,iBAAkB;MAAA6B,QAAA,eACtC,IAAApE,WAAA,CAAAqE,GAAA,EAACjF,YAAA,CAAAoG,IAAI;QACHR,KAAK,EAAE,CAACxC,cAAc,EAAEyC,MAAM,CAACwB,kBAAkB,CAAE;QACnDC,QAAQ,EAAErE,YAAa;QAAA+B,QAAA,EAEtB3C,KAAK,CAACkF,GAAG,CAAChD,eAAe;MAAC,CACvB;IAAC,CACM,CAAC;EAAA,CACZ,CAAC;AAEX,CAAC;AAACiD,OAAA,CAAArF,cAAA,GAAAA,cAAA;AAEF,MAAM0D,MAAM,GAAGkB,uBAAU,CAACU,MAAM,CAAC;EAC/BpB,gBAAgB,EAAE;IAChBqB,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE1D,uBAAiB;IAC/B2D,WAAW,EAAE;EACf,CAAC;EACDf,aAAa,EAAE;IACbgB,OAAO,EAAE7F,oBAAoB;IAC7B8F,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDX,kBAAkB,EAAE;IAClBY,KAAK,EAAE;EACT,CAAC;EACDnC,UAAU,EAAE;IACVmC,KAAK,EAAE,GAAG;IACVC,WAAW,EAAE,CAAC,GAAG;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
|
package/lib/commonjs/components/claimsSelector/__test__/__snapshots__/ClaimsSelector.test.tsx.snap
CHANGED
|
@@ -10,7 +10,7 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (controlled) 1`] = `
|
|
|
10
10
|
"borderWidth": 1,
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
|
-
"backgroundColor": "#
|
|
13
|
+
"backgroundColor": "#FFFFFF",
|
|
14
14
|
"borderColor": "#E8EBF1",
|
|
15
15
|
},
|
|
16
16
|
]
|
|
@@ -50,12 +50,21 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (controlled) 1`] = `
|
|
|
50
50
|
>
|
|
51
51
|
<View
|
|
52
52
|
style={
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
[
|
|
54
|
+
{
|
|
55
|
+
"alignItems": "center",
|
|
56
|
+
"flexDirection": "row",
|
|
57
|
+
"justifyContent": "space-between",
|
|
58
|
+
"padding": 16,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"borderBottomLeftRadius": 7,
|
|
62
|
+
"borderBottomRightRadius": 7,
|
|
63
|
+
"borderTopLeftRadius": 7,
|
|
64
|
+
"borderTopRightRadius": 7,
|
|
65
|
+
"overflow": "hidden",
|
|
66
|
+
},
|
|
67
|
+
]
|
|
59
68
|
}
|
|
60
69
|
>
|
|
61
70
|
<Text
|
|
@@ -96,7 +105,7 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (controlled) 1`] = `
|
|
|
96
105
|
align="xMidYMid"
|
|
97
106
|
bbHeight={24}
|
|
98
107
|
bbWidth={24}
|
|
99
|
-
color="#
|
|
108
|
+
color="#0E0F13"
|
|
100
109
|
focusable={false}
|
|
101
110
|
height={24}
|
|
102
111
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -489,36 +498,6 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (controlled) 1`] = `
|
|
|
489
498
|
</View>
|
|
490
499
|
</View>
|
|
491
500
|
</View>
|
|
492
|
-
<BVLinearGradient
|
|
493
|
-
colors={
|
|
494
|
-
[
|
|
495
|
-
16053752,
|
|
496
|
-
4294243832,
|
|
497
|
-
]
|
|
498
|
-
}
|
|
499
|
-
endPoint={
|
|
500
|
-
{
|
|
501
|
-
"x": 0.5,
|
|
502
|
-
"y": 1,
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
locations={null}
|
|
506
|
-
startPoint={
|
|
507
|
-
{
|
|
508
|
-
"x": 0.5,
|
|
509
|
-
"y": 0,
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
style={
|
|
513
|
-
{
|
|
514
|
-
"bottom": 0,
|
|
515
|
-
"height": 16,
|
|
516
|
-
"left": 16,
|
|
517
|
-
"position": "absolute",
|
|
518
|
-
"right": 16,
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
/>
|
|
522
501
|
</View>
|
|
523
502
|
`;
|
|
524
503
|
|
|
@@ -532,7 +511,7 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (custom component) 1`] = `
|
|
|
532
511
|
"borderWidth": 1,
|
|
533
512
|
},
|
|
534
513
|
{
|
|
535
|
-
"backgroundColor": "#
|
|
514
|
+
"backgroundColor": "#FFFFFF",
|
|
536
515
|
"borderColor": "#E8EBF1",
|
|
537
516
|
},
|
|
538
517
|
]
|
|
@@ -572,12 +551,21 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (custom component) 1`] = `
|
|
|
572
551
|
>
|
|
573
552
|
<View
|
|
574
553
|
style={
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
554
|
+
[
|
|
555
|
+
{
|
|
556
|
+
"alignItems": "center",
|
|
557
|
+
"flexDirection": "row",
|
|
558
|
+
"justifyContent": "space-between",
|
|
559
|
+
"padding": 16,
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"borderBottomLeftRadius": 7,
|
|
563
|
+
"borderBottomRightRadius": 7,
|
|
564
|
+
"borderTopLeftRadius": 7,
|
|
565
|
+
"borderTopRightRadius": 7,
|
|
566
|
+
"overflow": "hidden",
|
|
567
|
+
},
|
|
568
|
+
]
|
|
581
569
|
}
|
|
582
570
|
>
|
|
583
571
|
<Text
|
|
@@ -618,7 +606,7 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (custom component) 1`] = `
|
|
|
618
606
|
align="xMidYMid"
|
|
619
607
|
bbHeight={24}
|
|
620
608
|
bbWidth={24}
|
|
621
|
-
color="#
|
|
609
|
+
color="#0E0F13"
|
|
622
610
|
focusable={false}
|
|
623
611
|
height={24}
|
|
624
612
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -782,36 +770,6 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (custom component) 1`] = `
|
|
|
782
770
|
</View>
|
|
783
771
|
</View>
|
|
784
772
|
</View>
|
|
785
|
-
<BVLinearGradient
|
|
786
|
-
colors={
|
|
787
|
-
[
|
|
788
|
-
16053752,
|
|
789
|
-
4294243832,
|
|
790
|
-
]
|
|
791
|
-
}
|
|
792
|
-
endPoint={
|
|
793
|
-
{
|
|
794
|
-
"x": 0.5,
|
|
795
|
-
"y": 1,
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
locations={null}
|
|
799
|
-
startPoint={
|
|
800
|
-
{
|
|
801
|
-
"x": 0.5,
|
|
802
|
-
"y": 0,
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
style={
|
|
806
|
-
{
|
|
807
|
-
"bottom": 0,
|
|
808
|
-
"height": 16,
|
|
809
|
-
"left": 16,
|
|
810
|
-
"position": "absolute",
|
|
811
|
-
"right": 16,
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
/>
|
|
815
773
|
</View>
|
|
816
774
|
`;
|
|
817
775
|
|
|
@@ -825,7 +783,7 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (uncontrolled) 1`] = `
|
|
|
825
783
|
"borderWidth": 1,
|
|
826
784
|
},
|
|
827
785
|
{
|
|
828
|
-
"backgroundColor": "#
|
|
786
|
+
"backgroundColor": "#FFFFFF",
|
|
829
787
|
"borderColor": "#E8EBF1",
|
|
830
788
|
},
|
|
831
789
|
]
|
|
@@ -865,12 +823,21 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (uncontrolled) 1`] = `
|
|
|
865
823
|
>
|
|
866
824
|
<View
|
|
867
825
|
style={
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
826
|
+
[
|
|
827
|
+
{
|
|
828
|
+
"alignItems": "center",
|
|
829
|
+
"flexDirection": "row",
|
|
830
|
+
"justifyContent": "space-between",
|
|
831
|
+
"padding": 16,
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"borderBottomLeftRadius": 7,
|
|
835
|
+
"borderBottomRightRadius": 7,
|
|
836
|
+
"borderTopLeftRadius": 7,
|
|
837
|
+
"borderTopRightRadius": 7,
|
|
838
|
+
"overflow": "hidden",
|
|
839
|
+
},
|
|
840
|
+
]
|
|
874
841
|
}
|
|
875
842
|
>
|
|
876
843
|
<Text
|
|
@@ -911,7 +878,7 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (uncontrolled) 1`] = `
|
|
|
911
878
|
align="xMidYMid"
|
|
912
879
|
bbHeight={24}
|
|
913
880
|
bbWidth={24}
|
|
914
|
-
color="#
|
|
881
|
+
color="#0E0F13"
|
|
915
882
|
focusable={false}
|
|
916
883
|
height={24}
|
|
917
884
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -1235,36 +1202,6 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (uncontrolled) 1`] = `
|
|
|
1235
1202
|
</View>
|
|
1236
1203
|
</View>
|
|
1237
1204
|
</View>
|
|
1238
|
-
<BVLinearGradient
|
|
1239
|
-
colors={
|
|
1240
|
-
[
|
|
1241
|
-
16053752,
|
|
1242
|
-
4294243832,
|
|
1243
|
-
]
|
|
1244
|
-
}
|
|
1245
|
-
endPoint={
|
|
1246
|
-
{
|
|
1247
|
-
"x": 0.5,
|
|
1248
|
-
"y": 1,
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
|
-
locations={null}
|
|
1252
|
-
startPoint={
|
|
1253
|
-
{
|
|
1254
|
-
"x": 0.5,
|
|
1255
|
-
"y": 0,
|
|
1256
|
-
}
|
|
1257
|
-
}
|
|
1258
|
-
style={
|
|
1259
|
-
{
|
|
1260
|
-
"bottom": 0,
|
|
1261
|
-
"height": 16,
|
|
1262
|
-
"left": 16,
|
|
1263
|
-
"position": "absolute",
|
|
1264
|
-
"right": 16,
|
|
1265
|
-
}
|
|
1266
|
-
}
|
|
1267
|
-
/>
|
|
1268
1205
|
</View>
|
|
1269
1206
|
`;
|
|
1270
1207
|
|
|
@@ -1278,7 +1215,7 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (unselectable items) 1`] = `
|
|
|
1278
1215
|
"borderWidth": 1,
|
|
1279
1216
|
},
|
|
1280
1217
|
{
|
|
1281
|
-
"backgroundColor": "#
|
|
1218
|
+
"backgroundColor": "#FFFFFF",
|
|
1282
1219
|
"borderColor": "#E8EBF1",
|
|
1283
1220
|
},
|
|
1284
1221
|
]
|
|
@@ -1318,12 +1255,21 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (unselectable items) 1`] = `
|
|
|
1318
1255
|
>
|
|
1319
1256
|
<View
|
|
1320
1257
|
style={
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1258
|
+
[
|
|
1259
|
+
{
|
|
1260
|
+
"alignItems": "center",
|
|
1261
|
+
"flexDirection": "row",
|
|
1262
|
+
"justifyContent": "space-between",
|
|
1263
|
+
"padding": 16,
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
"borderBottomLeftRadius": 7,
|
|
1267
|
+
"borderBottomRightRadius": 7,
|
|
1268
|
+
"borderTopLeftRadius": 7,
|
|
1269
|
+
"borderTopRightRadius": 7,
|
|
1270
|
+
"overflow": "hidden",
|
|
1271
|
+
},
|
|
1272
|
+
]
|
|
1327
1273
|
}
|
|
1328
1274
|
>
|
|
1329
1275
|
<Text
|
|
@@ -1364,7 +1310,7 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (unselectable items) 1`] = `
|
|
|
1364
1310
|
align="xMidYMid"
|
|
1365
1311
|
bbHeight={24}
|
|
1366
1312
|
bbWidth={24}
|
|
1367
|
-
color="#
|
|
1313
|
+
color="#0E0F13"
|
|
1368
1314
|
focusable={false}
|
|
1369
1315
|
height={24}
|
|
1370
1316
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -1534,35 +1480,5 @@ exports[`ClaimsSelector ClaimsSelector Snapshot (unselectable items) 1`] = `
|
|
|
1534
1480
|
</View>
|
|
1535
1481
|
</View>
|
|
1536
1482
|
</View>
|
|
1537
|
-
<BVLinearGradient
|
|
1538
|
-
colors={
|
|
1539
|
-
[
|
|
1540
|
-
16053752,
|
|
1541
|
-
4294243832,
|
|
1542
|
-
]
|
|
1543
|
-
}
|
|
1544
|
-
endPoint={
|
|
1545
|
-
{
|
|
1546
|
-
"x": 0.5,
|
|
1547
|
-
"y": 1,
|
|
1548
|
-
}
|
|
1549
|
-
}
|
|
1550
|
-
locations={null}
|
|
1551
|
-
startPoint={
|
|
1552
|
-
{
|
|
1553
|
-
"x": 0.5,
|
|
1554
|
-
"y": 0,
|
|
1555
|
-
}
|
|
1556
|
-
}
|
|
1557
|
-
style={
|
|
1558
|
-
{
|
|
1559
|
-
"bottom": 0,
|
|
1560
|
-
"height": 16,
|
|
1561
|
-
"left": 16,
|
|
1562
|
-
"position": "absolute",
|
|
1563
|
-
"right": 16,
|
|
1564
|
-
}
|
|
1565
|
-
}
|
|
1566
|
-
/>
|
|
1567
1483
|
</View>
|
|
1568
1484
|
`;
|
|
@@ -153,11 +153,13 @@ var _IconNoticePlain = _interopRequireDefault(require("./svg/IconNoticePlain"));
|
|
|
153
153
|
var _IconNotification = _interopRequireDefault(require("./svg/IconNotification"));
|
|
154
154
|
var _IconOk = _interopRequireDefault(require("./svg/IconOk"));
|
|
155
155
|
var _IconOption = _interopRequireDefault(require("./svg/IconOption"));
|
|
156
|
+
var _IconPause = _interopRequireDefault(require("./svg/IconPause"));
|
|
156
157
|
var _IconPEC = _interopRequireDefault(require("./svg/IconPEC"));
|
|
157
158
|
var _IconPSP = _interopRequireDefault(require("./svg/IconPSP"));
|
|
158
159
|
var _IconPhone = _interopRequireDefault(require("./svg/IconPhone"));
|
|
159
160
|
var _IconPinOff = _interopRequireDefault(require("./svg/IconPinOff"));
|
|
160
161
|
var _IconPinOn = _interopRequireDefault(require("./svg/IconPinOn"));
|
|
162
|
+
var _IconPlay = _interopRequireDefault(require("./svg/IconPlay"));
|
|
161
163
|
var _IconPrint = _interopRequireDefault(require("./svg/IconPrint"));
|
|
162
164
|
var _IconProductIOApp = _interopRequireDefault(require("./svg/IconProductIOApp"));
|
|
163
165
|
var _IconProductIOAppBlueBg = _interopRequireDefault(require("./svg/IconProductIOAppBlueBg"));
|
|
@@ -245,6 +247,8 @@ const IOIcons = exports.IOIcons = {
|
|
|
245
247
|
eyeHide: _IconEyeHide.default,
|
|
246
248
|
pinOff: _IconPinOff.default,
|
|
247
249
|
pinOn: _IconPinOn.default,
|
|
250
|
+
play: _IconPlay.default,
|
|
251
|
+
pause: _IconPause.default,
|
|
248
252
|
emojiSad: _IconEmojiSad.default,
|
|
249
253
|
emojiHappy: _IconEmojiHappy.default,
|
|
250
254
|
phone: _IconPhone.default,
|