@hero-design/rn 8.110.0 → 8.110.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +6 -0
- package/es/index.js +27 -13
- package/lib/index.js +27 -13
- package/package.json +7 -7
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +40 -24
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +60 -36
- package/src/components/Accordion/index.tsx +6 -1
- package/src/components/AppCue/__tests__/__snapshots__/StyledAppCue.tsx.snap +121 -97
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +6 -3
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +18 -18
- package/src/components/Chip/index.tsx +6 -0
- package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +8 -5
- package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +20 -12
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +13 -9
- package/src/components/PinInput/index.tsx +6 -1
- package/src/components/Radio/RadioGroup.tsx +6 -1
- package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +84 -48
- package/src/components/Search/SearchOneLine.tsx +6 -0
- package/src/components/Search/SearchTwoLine.tsx +6 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +6 -3
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +6 -3
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +9 -6
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +210 -138
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +98 -62
- package/src/components/Toolbar/ToolbarGroup.tsx +10 -2
- package/src/components/Toolbar/__tests__/ToolbarGroup.spec.tsx +34 -1
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +3 -0
- package/stats/8.110.1/rn-stats.html +4844 -0
- package/types/components/Accordion/index.d.ts +5 -1
- package/types/components/Chip/index.d.ts +5 -1
- package/types/components/PinInput/index.d.ts +4 -0
- package/types/components/Radio/RadioGroup.d.ts +5 -1
- package/types/components/Radio/index.d.ts +1 -1
- package/types/components/Search/SearchOneLine.d.ts +4 -0
- package/types/components/Search/SearchTwoLine.d.ts +4 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +5 -1
- package/types/components/Toolbar/index.d.ts +1 -1
|
@@ -11,20 +11,23 @@ exports[`AppCue renders icon bottom correctly 1`] = `
|
|
|
11
11
|
<View
|
|
12
12
|
collapsable={false}
|
|
13
13
|
style={
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
[
|
|
15
|
+
{
|
|
16
|
+
"alignItems": "center",
|
|
17
|
+
"color": "#001f23",
|
|
18
|
+
"display": "flex",
|
|
19
|
+
"justifyContent": "center",
|
|
20
|
+
"position": "absolute",
|
|
21
|
+
"top": -12,
|
|
22
|
+
"transform": [
|
|
23
|
+
{
|
|
24
|
+
"rotate": "180deg",
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
"width": "100%",
|
|
28
|
+
},
|
|
29
|
+
undefined,
|
|
30
|
+
]
|
|
28
31
|
}
|
|
29
32
|
themePlacement="bottom"
|
|
30
33
|
/>
|
|
@@ -62,20 +65,23 @@ exports[`AppCue renders icon bottom-left correctly 1`] = `
|
|
|
62
65
|
<View
|
|
63
66
|
collapsable={false}
|
|
64
67
|
style={
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
68
|
+
[
|
|
69
|
+
{
|
|
70
|
+
"alignItems": "center",
|
|
71
|
+
"color": "#001f23",
|
|
72
|
+
"display": "flex",
|
|
73
|
+
"justifyContent": "center",
|
|
74
|
+
"position": "absolute",
|
|
75
|
+
"right": 12,
|
|
76
|
+
"top": -12,
|
|
77
|
+
"transform": [
|
|
78
|
+
{
|
|
79
|
+
"rotate": "180deg",
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
undefined,
|
|
84
|
+
]
|
|
79
85
|
}
|
|
80
86
|
themePlacement="bottom-left"
|
|
81
87
|
/>
|
|
@@ -113,20 +119,23 @@ exports[`AppCue renders icon bottom-right correctly 1`] = `
|
|
|
113
119
|
<View
|
|
114
120
|
collapsable={false}
|
|
115
121
|
style={
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
122
|
+
[
|
|
123
|
+
{
|
|
124
|
+
"alignItems": "center",
|
|
125
|
+
"color": "#001f23",
|
|
126
|
+
"display": "flex",
|
|
127
|
+
"justifyContent": "center",
|
|
128
|
+
"left": 12,
|
|
129
|
+
"position": "absolute",
|
|
130
|
+
"top": -12,
|
|
131
|
+
"transform": [
|
|
132
|
+
{
|
|
133
|
+
"rotate": "180deg",
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
},
|
|
137
|
+
undefined,
|
|
138
|
+
]
|
|
130
139
|
}
|
|
131
140
|
themePlacement="bottom-right"
|
|
132
141
|
/>
|
|
@@ -164,20 +173,23 @@ exports[`AppCue renders icon left correctly 1`] = `
|
|
|
164
173
|
<View
|
|
165
174
|
collapsable={false}
|
|
166
175
|
style={
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
176
|
+
[
|
|
177
|
+
{
|
|
178
|
+
"alignItems": "center",
|
|
179
|
+
"color": "#001f23",
|
|
180
|
+
"display": "flex",
|
|
181
|
+
"height": "100%",
|
|
182
|
+
"justifyContent": "center",
|
|
183
|
+
"position": "absolute",
|
|
184
|
+
"right": -12,
|
|
185
|
+
"transform": [
|
|
186
|
+
{
|
|
187
|
+
"rotate": "-90deg",
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
},
|
|
191
|
+
undefined,
|
|
192
|
+
]
|
|
181
193
|
}
|
|
182
194
|
themePlacement="left"
|
|
183
195
|
/>
|
|
@@ -215,20 +227,23 @@ exports[`AppCue renders icon right correctly 1`] = `
|
|
|
215
227
|
<View
|
|
216
228
|
collapsable={false}
|
|
217
229
|
style={
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
[
|
|
231
|
+
{
|
|
232
|
+
"alignItems": "center",
|
|
233
|
+
"color": "#001f23",
|
|
234
|
+
"display": "flex",
|
|
235
|
+
"height": "100%",
|
|
236
|
+
"justifyContent": "center",
|
|
237
|
+
"left": -12,
|
|
238
|
+
"position": "absolute",
|
|
239
|
+
"transform": [
|
|
240
|
+
{
|
|
241
|
+
"rotate": "90deg",
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
},
|
|
245
|
+
undefined,
|
|
246
|
+
]
|
|
232
247
|
}
|
|
233
248
|
themePlacement="right"
|
|
234
249
|
/>
|
|
@@ -266,15 +281,18 @@ exports[`AppCue renders icon top correctly 1`] = `
|
|
|
266
281
|
<View
|
|
267
282
|
collapsable={false}
|
|
268
283
|
style={
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
284
|
+
[
|
|
285
|
+
{
|
|
286
|
+
"alignItems": "center",
|
|
287
|
+
"bottom": -12,
|
|
288
|
+
"color": "#001f23",
|
|
289
|
+
"display": "flex",
|
|
290
|
+
"justifyContent": "center",
|
|
291
|
+
"position": "absolute",
|
|
292
|
+
"width": "100%",
|
|
293
|
+
},
|
|
294
|
+
undefined,
|
|
295
|
+
]
|
|
278
296
|
}
|
|
279
297
|
themePlacement="top"
|
|
280
298
|
/>
|
|
@@ -312,15 +330,18 @@ exports[`AppCue renders icon top-left correctly 1`] = `
|
|
|
312
330
|
<View
|
|
313
331
|
collapsable={false}
|
|
314
332
|
style={
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
333
|
+
[
|
|
334
|
+
{
|
|
335
|
+
"alignItems": "center",
|
|
336
|
+
"bottom": -12,
|
|
337
|
+
"color": "#001f23",
|
|
338
|
+
"display": "flex",
|
|
339
|
+
"justifyContent": "center",
|
|
340
|
+
"position": "absolute",
|
|
341
|
+
"right": 12,
|
|
342
|
+
},
|
|
343
|
+
undefined,
|
|
344
|
+
]
|
|
324
345
|
}
|
|
325
346
|
themePlacement="top-left"
|
|
326
347
|
/>
|
|
@@ -358,15 +379,18 @@ exports[`AppCue renders icon top-right correctly 1`] = `
|
|
|
358
379
|
<View
|
|
359
380
|
collapsable={false}
|
|
360
381
|
style={
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
382
|
+
[
|
|
383
|
+
{
|
|
384
|
+
"alignItems": "center",
|
|
385
|
+
"bottom": -12,
|
|
386
|
+
"color": "#001f23",
|
|
387
|
+
"display": "flex",
|
|
388
|
+
"justifyContent": "center",
|
|
389
|
+
"left": 12,
|
|
390
|
+
"position": "absolute",
|
|
391
|
+
},
|
|
392
|
+
undefined,
|
|
393
|
+
]
|
|
370
394
|
}
|
|
371
395
|
themePlacement="top-right"
|
|
372
396
|
/>
|
|
@@ -321,7 +321,7 @@ exports[`Button renders correctly 2`] = `
|
|
|
321
321
|
"flexDirection": "row",
|
|
322
322
|
"justifyContent": "center",
|
|
323
323
|
},
|
|
324
|
-
|
|
324
|
+
undefined,
|
|
325
325
|
]
|
|
326
326
|
}
|
|
327
327
|
testID="undefined-loading-indicator"
|
|
@@ -706,7 +706,7 @@ exports[`Button renders correctly 5`] = `
|
|
|
706
706
|
"flexDirection": "row",
|
|
707
707
|
"justifyContent": "center",
|
|
708
708
|
},
|
|
709
|
-
|
|
709
|
+
undefined,
|
|
710
710
|
]
|
|
711
711
|
}
|
|
712
712
|
testID="undefined-loading-indicator"
|
|
@@ -1095,7 +1095,7 @@ exports[`Button renders correctly 8`] = `
|
|
|
1095
1095
|
"flexDirection": "row",
|
|
1096
1096
|
"justifyContent": "center",
|
|
1097
1097
|
},
|
|
1098
|
-
|
|
1098
|
+
undefined,
|
|
1099
1099
|
]
|
|
1100
1100
|
}
|
|
1101
1101
|
testID="undefined-loading-indicator"
|
|
@@ -1486,7 +1486,7 @@ exports[`Button renders correctly 11`] = `
|
|
|
1486
1486
|
"flexDirection": "row",
|
|
1487
1487
|
"justifyContent": "center",
|
|
1488
1488
|
},
|
|
1489
|
-
|
|
1489
|
+
undefined,
|
|
1490
1490
|
]
|
|
1491
1491
|
}
|
|
1492
1492
|
testID="undefined-loading-indicator"
|
|
@@ -1875,7 +1875,7 @@ exports[`Button renders correctly 14`] = `
|
|
|
1875
1875
|
"flexDirection": "row",
|
|
1876
1876
|
"justifyContent": "center",
|
|
1877
1877
|
},
|
|
1878
|
-
|
|
1878
|
+
undefined,
|
|
1879
1879
|
]
|
|
1880
1880
|
}
|
|
1881
1881
|
testID="undefined-loading-indicator"
|
|
@@ -2264,7 +2264,7 @@ exports[`Button renders correctly 17`] = `
|
|
|
2264
2264
|
"flexDirection": "row",
|
|
2265
2265
|
"justifyContent": "center",
|
|
2266
2266
|
},
|
|
2267
|
-
|
|
2267
|
+
undefined,
|
|
2268
2268
|
]
|
|
2269
2269
|
}
|
|
2270
2270
|
testID="undefined-loading-indicator"
|
|
@@ -2653,7 +2653,7 @@ exports[`Button renders correctly 20`] = `
|
|
|
2653
2653
|
"flexDirection": "row",
|
|
2654
2654
|
"justifyContent": "center",
|
|
2655
2655
|
},
|
|
2656
|
-
|
|
2656
|
+
undefined,
|
|
2657
2657
|
]
|
|
2658
2658
|
}
|
|
2659
2659
|
testID="undefined-loading-indicator"
|
|
@@ -3042,7 +3042,7 @@ exports[`Button renders correctly 23`] = `
|
|
|
3042
3042
|
"flexDirection": "row",
|
|
3043
3043
|
"justifyContent": "center",
|
|
3044
3044
|
},
|
|
3045
|
-
|
|
3045
|
+
undefined,
|
|
3046
3046
|
]
|
|
3047
3047
|
}
|
|
3048
3048
|
testID="undefined-loading-indicator"
|
|
@@ -3431,7 +3431,7 @@ exports[`Button renders correctly 26`] = `
|
|
|
3431
3431
|
"flexDirection": "row",
|
|
3432
3432
|
"justifyContent": "center",
|
|
3433
3433
|
},
|
|
3434
|
-
|
|
3434
|
+
undefined,
|
|
3435
3435
|
]
|
|
3436
3436
|
}
|
|
3437
3437
|
testID="undefined-loading-indicator"
|
|
@@ -3713,7 +3713,7 @@ exports[`Button renders correctly 28`] = `
|
|
|
3713
3713
|
"flexDirection": "row",
|
|
3714
3714
|
"justifyContent": "center",
|
|
3715
3715
|
},
|
|
3716
|
-
|
|
3716
|
+
undefined,
|
|
3717
3717
|
]
|
|
3718
3718
|
}
|
|
3719
3719
|
testID="undefined-loading-indicator"
|
|
@@ -4107,7 +4107,7 @@ exports[`Button renders correctly 31`] = `
|
|
|
4107
4107
|
"flexDirection": "row",
|
|
4108
4108
|
"justifyContent": "center",
|
|
4109
4109
|
},
|
|
4110
|
-
|
|
4110
|
+
undefined,
|
|
4111
4111
|
]
|
|
4112
4112
|
}
|
|
4113
4113
|
testID="undefined-loading-indicator"
|
|
@@ -4509,7 +4509,7 @@ exports[`Button renders correctly 34`] = `
|
|
|
4509
4509
|
"flexDirection": "row",
|
|
4510
4510
|
"justifyContent": "center",
|
|
4511
4511
|
},
|
|
4512
|
-
|
|
4512
|
+
undefined,
|
|
4513
4513
|
]
|
|
4514
4514
|
}
|
|
4515
4515
|
testID="undefined-loading-indicator"
|
|
@@ -4908,7 +4908,7 @@ exports[`Button renders correctly 37`] = `
|
|
|
4908
4908
|
"flexDirection": "row",
|
|
4909
4909
|
"justifyContent": "center",
|
|
4910
4910
|
},
|
|
4911
|
-
|
|
4911
|
+
undefined,
|
|
4912
4912
|
]
|
|
4913
4913
|
}
|
|
4914
4914
|
testID="undefined-loading-indicator"
|
|
@@ -5303,7 +5303,7 @@ exports[`Button renders correctly 40`] = `
|
|
|
5303
5303
|
"flexDirection": "row",
|
|
5304
5304
|
"justifyContent": "center",
|
|
5305
5305
|
},
|
|
5306
|
-
|
|
5306
|
+
undefined,
|
|
5307
5307
|
]
|
|
5308
5308
|
}
|
|
5309
5309
|
testID="undefined-loading-indicator"
|
|
@@ -5698,7 +5698,7 @@ exports[`Button renders correctly 43`] = `
|
|
|
5698
5698
|
"flexDirection": "row",
|
|
5699
5699
|
"justifyContent": "center",
|
|
5700
5700
|
},
|
|
5701
|
-
|
|
5701
|
+
undefined,
|
|
5702
5702
|
]
|
|
5703
5703
|
}
|
|
5704
5704
|
testID="undefined-loading-indicator"
|
|
@@ -6093,7 +6093,7 @@ exports[`Button renders correctly 46`] = `
|
|
|
6093
6093
|
"flexDirection": "row",
|
|
6094
6094
|
"justifyContent": "center",
|
|
6095
6095
|
},
|
|
6096
|
-
|
|
6096
|
+
undefined,
|
|
6097
6097
|
]
|
|
6098
6098
|
}
|
|
6099
6099
|
testID="undefined-loading-indicator"
|
|
@@ -6379,7 +6379,7 @@ exports[`Button renders correctly 48`] = `
|
|
|
6379
6379
|
"flexDirection": "row",
|
|
6380
6380
|
"justifyContent": "center",
|
|
6381
6381
|
},
|
|
6382
|
-
|
|
6382
|
+
undefined,
|
|
6383
6383
|
]
|
|
6384
6384
|
}
|
|
6385
6385
|
testID="undefined-loading-indicator"
|
|
@@ -6665,7 +6665,7 @@ exports[`Button renders loading icon 1`] = `
|
|
|
6665
6665
|
"flexDirection": "row",
|
|
6666
6666
|
"justifyContent": "center",
|
|
6667
6667
|
},
|
|
6668
|
-
|
|
6668
|
+
undefined,
|
|
6669
6669
|
]
|
|
6670
6670
|
}
|
|
6671
6671
|
testID="button-loading-indicator"
|
|
@@ -40,6 +40,10 @@ export interface ChipProps extends ViewProps {
|
|
|
40
40
|
* Whether to show the selected icon when using outlined variant.
|
|
41
41
|
*/
|
|
42
42
|
showSelectedIcon?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* If true, indicates that the Chip is accessible to screen readers.
|
|
45
|
+
*/
|
|
46
|
+
accessible?: boolean;
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
const getChipLabel = (label: string | ReactNode) => {
|
|
@@ -71,6 +75,7 @@ const Chip = ({
|
|
|
71
75
|
icon,
|
|
72
76
|
onPress,
|
|
73
77
|
showSelectedIcon = true,
|
|
78
|
+
accessible,
|
|
74
79
|
...otherProps
|
|
75
80
|
}: ChipProps) => {
|
|
76
81
|
useDeprecation(
|
|
@@ -91,6 +96,7 @@ const Chip = ({
|
|
|
91
96
|
onPress={onPress}
|
|
92
97
|
themeVariant={renamedVariant}
|
|
93
98
|
themeSelected={selected}
|
|
99
|
+
accessible={accessible}
|
|
94
100
|
{...otherProps}
|
|
95
101
|
>
|
|
96
102
|
{icon && (
|
|
@@ -57,11 +57,14 @@ exports[`StyledWrapper renders correct style 1`] = `
|
|
|
57
57
|
<View
|
|
58
58
|
collapsable={false}
|
|
59
59
|
style={
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
[
|
|
61
|
+
{
|
|
62
|
+
"margin": 0,
|
|
63
|
+
"overflow": "hidden",
|
|
64
|
+
"padding": 0,
|
|
65
|
+
},
|
|
66
|
+
undefined,
|
|
67
|
+
]
|
|
65
68
|
}
|
|
66
69
|
>
|
|
67
70
|
<Text>
|
|
@@ -12,12 +12,16 @@ exports[`Collapse renders correctly 1`] = `
|
|
|
12
12
|
collapsable={false}
|
|
13
13
|
onLayout={[Function]}
|
|
14
14
|
style={
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
[
|
|
16
|
+
{
|
|
17
|
+
"margin": 0,
|
|
18
|
+
"overflow": "hidden",
|
|
19
|
+
"padding": 0,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"height": 0,
|
|
23
|
+
},
|
|
24
|
+
]
|
|
21
25
|
}
|
|
22
26
|
testID="collapse"
|
|
23
27
|
>
|
|
@@ -84,12 +88,16 @@ exports[`Collapse should render Sample Text but not visible 1`] = `
|
|
|
84
88
|
collapsable={false}
|
|
85
89
|
onLayout={[Function]}
|
|
86
90
|
style={
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
[
|
|
92
|
+
{
|
|
93
|
+
"margin": 0,
|
|
94
|
+
"overflow": "hidden",
|
|
95
|
+
"padding": 0,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"height": 0,
|
|
99
|
+
},
|
|
100
|
+
]
|
|
93
101
|
}
|
|
94
102
|
testID="collapse"
|
|
95
103
|
>
|
|
@@ -316,15 +316,19 @@ exports[`Drawer renders correctly with no backdrop 1`] = `
|
|
|
316
316
|
onStartShouldSetResponder={[Function]}
|
|
317
317
|
pointerEvents="box-none"
|
|
318
318
|
style={
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
319
|
+
[
|
|
320
|
+
{
|
|
321
|
+
"backgroundColor": "#000000",
|
|
322
|
+
"bottom": 0,
|
|
323
|
+
"left": 0,
|
|
324
|
+
"position": "absolute",
|
|
325
|
+
"right": 0,
|
|
326
|
+
"top": 0,
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"opacity": 0,
|
|
330
|
+
},
|
|
331
|
+
]
|
|
328
332
|
}
|
|
329
333
|
testID="undefined-backdrop"
|
|
330
334
|
/>
|
|
@@ -72,6 +72,10 @@ interface PinInputProps {
|
|
|
72
72
|
* The autofill type of the input.
|
|
73
73
|
*/
|
|
74
74
|
autoComplete?: ComponentProps<typeof TextInput>['autoComplete'];
|
|
75
|
+
/**
|
|
76
|
+
* If true, indicates that the PinInput is accessible to screen readers.
|
|
77
|
+
*/
|
|
78
|
+
accessible?: boolean;
|
|
75
79
|
}
|
|
76
80
|
|
|
77
81
|
export function getState({
|
|
@@ -120,6 +124,7 @@ const PinInput = forwardRef<PinInputHandler, PinInputProps>(
|
|
|
120
124
|
testID,
|
|
121
125
|
textContentType,
|
|
122
126
|
autoComplete,
|
|
127
|
+
accessible,
|
|
123
128
|
},
|
|
124
129
|
ref
|
|
125
130
|
) => {
|
|
@@ -191,7 +196,7 @@ const PinInput = forwardRef<PinInputHandler, PinInputProps>(
|
|
|
191
196
|
);
|
|
192
197
|
|
|
193
198
|
return (
|
|
194
|
-
<StyledWrapper style={style} testID={testID}>
|
|
199
|
+
<StyledWrapper style={style} testID={testID} accessible={accessible}>
|
|
195
200
|
<StyledPinWrapper
|
|
196
201
|
onPress={focus}
|
|
197
202
|
disabled={disabled}
|
|
@@ -32,6 +32,10 @@ export interface RadioGroupProps<T> {
|
|
|
32
32
|
* Testing id of the component.
|
|
33
33
|
*/
|
|
34
34
|
testID?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Overrides the text that's read by the screen reader when the user interacts with the element.
|
|
37
|
+
*/
|
|
38
|
+
accessible?: boolean;
|
|
35
39
|
/**
|
|
36
40
|
* Idle background color of the Radio.
|
|
37
41
|
*/
|
|
@@ -62,9 +66,10 @@ const RadioGroup = <T,>({
|
|
|
62
66
|
keyExtractor,
|
|
63
67
|
style,
|
|
64
68
|
testID,
|
|
69
|
+
accessible,
|
|
65
70
|
inactiveIntent = 'light',
|
|
66
71
|
}: RadioGroupProps<T>): ReactElement => (
|
|
67
|
-
<View style={style} testID={testID}>
|
|
72
|
+
<View style={style} testID={testID} accessible={accessible}>
|
|
68
73
|
{options.map((option, index) => (
|
|
69
74
|
<React.Fragment key={getKey(option, index, keyExtractor)}>
|
|
70
75
|
{index !== 0 && <Spacer themeIntent={inactiveIntent} />}
|