@hero-design/rn 8.12.0 → 8.12.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 +9 -9
- package/es/index.js +42 -9
- package/lib/index.js +42 -9
- package/package.json +5 -5
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +17 -3
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +17 -3
- package/src/components/List/BasicListItem.tsx +6 -0
- package/src/components/List/ListItem.tsx +6 -0
- package/src/components/List/StyledBasicListItem.tsx +2 -2
- package/src/components/List/StyledListItem.tsx +2 -2
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +22 -18
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +32 -28
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +44 -36
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +50 -46
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +22 -18
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +33 -27
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +11 -9
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +132 -108
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +232 -139
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +11 -9
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +132 -108
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +232 -139
- package/src/components/TextInput/StyledTextInput.tsx +3 -0
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +466 -28
- package/src/components/TextInput/__tests__/index.spec.tsx +32 -0
- package/src/components/TextInput/index.tsx +32 -4
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +34 -6
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +34 -6
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +1 -0
- package/src/theme/components/textInput.ts +1 -0
- package/types/components/List/StyledBasicListItem.d.ts +3 -3
- package/types/components/List/StyledListItem.d.ts +3 -3
- package/types/theme/components/textInput.d.ts +1 -0
|
@@ -8,7 +8,6 @@ exports[`Option renders correctly 1`] = `
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
accessible={true}
|
|
11
|
-
collapsable={false}
|
|
12
11
|
focusable={true}
|
|
13
12
|
onClick={[Function]}
|
|
14
13
|
onResponderGrant={[Function]}
|
|
@@ -18,14 +17,17 @@ exports[`Option renders correctly 1`] = `
|
|
|
18
17
|
onResponderTerminationRequest={[Function]}
|
|
19
18
|
onStartShouldSetResponder={[Function]}
|
|
20
19
|
style={
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
Array [
|
|
21
|
+
Object {
|
|
22
|
+
"alignItems": "center",
|
|
23
|
+
"backgroundColor": "#ece8ef",
|
|
24
|
+
"borderRadius": 4,
|
|
25
|
+
"flexDirection": "row",
|
|
26
|
+
"opacity": 1,
|
|
27
|
+
"padding": 16,
|
|
28
|
+
},
|
|
29
|
+
undefined,
|
|
30
|
+
]
|
|
29
31
|
}
|
|
30
32
|
>
|
|
31
33
|
<View
|
|
@@ -198,7 +198,6 @@ exports[`OptionList render isLoading correctly 1`] = `
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
accessible={true}
|
|
201
|
-
collapsable={false}
|
|
202
201
|
focusable={true}
|
|
203
202
|
onClick={[Function]}
|
|
204
203
|
onResponderGrant={[Function]}
|
|
@@ -208,14 +207,17 @@ exports[`OptionList render isLoading correctly 1`] = `
|
|
|
208
207
|
onResponderTerminationRequest={[Function]}
|
|
209
208
|
onStartShouldSetResponder={[Function]}
|
|
210
209
|
style={
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
210
|
+
Array [
|
|
211
|
+
Object {
|
|
212
|
+
"alignItems": "center",
|
|
213
|
+
"backgroundColor": "#ece8ef",
|
|
214
|
+
"borderRadius": 4,
|
|
215
|
+
"flexDirection": "row",
|
|
216
|
+
"opacity": 1,
|
|
217
|
+
"padding": 16,
|
|
218
|
+
},
|
|
219
|
+
undefined,
|
|
220
|
+
]
|
|
219
221
|
}
|
|
220
222
|
>
|
|
221
223
|
<View
|
|
@@ -421,7 +423,6 @@ exports[`OptionList render isLoading correctly 1`] = `
|
|
|
421
423
|
}
|
|
422
424
|
}
|
|
423
425
|
accessible={true}
|
|
424
|
-
collapsable={false}
|
|
425
426
|
focusable={true}
|
|
426
427
|
onClick={[Function]}
|
|
427
428
|
onResponderGrant={[Function]}
|
|
@@ -431,14 +432,17 @@ exports[`OptionList render isLoading correctly 1`] = `
|
|
|
431
432
|
onResponderTerminationRequest={[Function]}
|
|
432
433
|
onStartShouldSetResponder={[Function]}
|
|
433
434
|
style={
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
435
|
+
Array [
|
|
436
|
+
Object {
|
|
437
|
+
"alignItems": "center",
|
|
438
|
+
"backgroundColor": "#ffffff",
|
|
439
|
+
"borderRadius": 4,
|
|
440
|
+
"flexDirection": "row",
|
|
441
|
+
"opacity": 1,
|
|
442
|
+
"padding": 16,
|
|
443
|
+
},
|
|
444
|
+
undefined,
|
|
445
|
+
]
|
|
442
446
|
}
|
|
443
447
|
>
|
|
444
448
|
<View
|
|
@@ -536,7 +540,6 @@ exports[`OptionList render isLoading correctly 1`] = `
|
|
|
536
540
|
}
|
|
537
541
|
}
|
|
538
542
|
accessible={true}
|
|
539
|
-
collapsable={false}
|
|
540
543
|
focusable={true}
|
|
541
544
|
onClick={[Function]}
|
|
542
545
|
onResponderGrant={[Function]}
|
|
@@ -546,14 +549,17 @@ exports[`OptionList render isLoading correctly 1`] = `
|
|
|
546
549
|
onResponderTerminationRequest={[Function]}
|
|
547
550
|
onStartShouldSetResponder={[Function]}
|
|
548
551
|
style={
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
552
|
+
Array [
|
|
553
|
+
Object {
|
|
554
|
+
"alignItems": "center",
|
|
555
|
+
"backgroundColor": "#ffffff",
|
|
556
|
+
"borderRadius": 4,
|
|
557
|
+
"flexDirection": "row",
|
|
558
|
+
"opacity": 1,
|
|
559
|
+
"padding": 16,
|
|
560
|
+
},
|
|
561
|
+
undefined,
|
|
562
|
+
]
|
|
557
563
|
}
|
|
558
564
|
>
|
|
559
565
|
<View
|
|
@@ -980,7 +986,6 @@ exports[`OptionList renders correctly 1`] = `
|
|
|
980
986
|
}
|
|
981
987
|
}
|
|
982
988
|
accessible={true}
|
|
983
|
-
collapsable={false}
|
|
984
989
|
focusable={true}
|
|
985
990
|
onClick={[Function]}
|
|
986
991
|
onResponderGrant={[Function]}
|
|
@@ -990,14 +995,17 @@ exports[`OptionList renders correctly 1`] = `
|
|
|
990
995
|
onResponderTerminationRequest={[Function]}
|
|
991
996
|
onStartShouldSetResponder={[Function]}
|
|
992
997
|
style={
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
998
|
+
Array [
|
|
999
|
+
Object {
|
|
1000
|
+
"alignItems": "center",
|
|
1001
|
+
"backgroundColor": "#ece8ef",
|
|
1002
|
+
"borderRadius": 4,
|
|
1003
|
+
"flexDirection": "row",
|
|
1004
|
+
"opacity": 1,
|
|
1005
|
+
"padding": 16,
|
|
1006
|
+
},
|
|
1007
|
+
undefined,
|
|
1008
|
+
]
|
|
1001
1009
|
}
|
|
1002
1010
|
>
|
|
1003
1011
|
<View
|
|
@@ -1203,7 +1211,6 @@ exports[`OptionList renders correctly 1`] = `
|
|
|
1203
1211
|
}
|
|
1204
1212
|
}
|
|
1205
1213
|
accessible={true}
|
|
1206
|
-
collapsable={false}
|
|
1207
1214
|
focusable={true}
|
|
1208
1215
|
onClick={[Function]}
|
|
1209
1216
|
onResponderGrant={[Function]}
|
|
@@ -1213,14 +1220,17 @@ exports[`OptionList renders correctly 1`] = `
|
|
|
1213
1220
|
onResponderTerminationRequest={[Function]}
|
|
1214
1221
|
onStartShouldSetResponder={[Function]}
|
|
1215
1222
|
style={
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1223
|
+
Array [
|
|
1224
|
+
Object {
|
|
1225
|
+
"alignItems": "center",
|
|
1226
|
+
"backgroundColor": "#ffffff",
|
|
1227
|
+
"borderRadius": 4,
|
|
1228
|
+
"flexDirection": "row",
|
|
1229
|
+
"opacity": 1,
|
|
1230
|
+
"padding": 16,
|
|
1231
|
+
},
|
|
1232
|
+
undefined,
|
|
1233
|
+
]
|
|
1224
1234
|
}
|
|
1225
1235
|
>
|
|
1226
1236
|
<View
|
|
@@ -1318,7 +1328,6 @@ exports[`OptionList renders correctly 1`] = `
|
|
|
1318
1328
|
}
|
|
1319
1329
|
}
|
|
1320
1330
|
accessible={true}
|
|
1321
|
-
collapsable={false}
|
|
1322
1331
|
focusable={true}
|
|
1323
1332
|
onClick={[Function]}
|
|
1324
1333
|
onResponderGrant={[Function]}
|
|
@@ -1328,14 +1337,17 @@ exports[`OptionList renders correctly 1`] = `
|
|
|
1328
1337
|
onResponderTerminationRequest={[Function]}
|
|
1329
1338
|
onStartShouldSetResponder={[Function]}
|
|
1330
1339
|
style={
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1340
|
+
Array [
|
|
1341
|
+
Object {
|
|
1342
|
+
"alignItems": "center",
|
|
1343
|
+
"backgroundColor": "#ffffff",
|
|
1344
|
+
"borderRadius": 4,
|
|
1345
|
+
"flexDirection": "row",
|
|
1346
|
+
"opacity": 1,
|
|
1347
|
+
"padding": 16,
|
|
1348
|
+
},
|
|
1349
|
+
undefined,
|
|
1350
|
+
]
|
|
1339
1351
|
}
|
|
1340
1352
|
>
|
|
1341
1353
|
<View
|
|
@@ -1609,7 +1621,6 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
|
|
|
1609
1621
|
}
|
|
1610
1622
|
}
|
|
1611
1623
|
accessible={true}
|
|
1612
|
-
collapsable={false}
|
|
1613
1624
|
focusable={true}
|
|
1614
1625
|
onClick={[Function]}
|
|
1615
1626
|
onResponderGrant={[Function]}
|
|
@@ -1619,14 +1630,17 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
|
|
|
1619
1630
|
onResponderTerminationRequest={[Function]}
|
|
1620
1631
|
onStartShouldSetResponder={[Function]}
|
|
1621
1632
|
style={
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1633
|
+
Array [
|
|
1634
|
+
Object {
|
|
1635
|
+
"alignItems": "center",
|
|
1636
|
+
"backgroundColor": "#ece8ef",
|
|
1637
|
+
"borderRadius": 4,
|
|
1638
|
+
"flexDirection": "row",
|
|
1639
|
+
"opacity": 1,
|
|
1640
|
+
"padding": 16,
|
|
1641
|
+
},
|
|
1642
|
+
undefined,
|
|
1643
|
+
]
|
|
1630
1644
|
}
|
|
1631
1645
|
>
|
|
1632
1646
|
<View
|
|
@@ -1832,7 +1846,6 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
|
|
|
1832
1846
|
}
|
|
1833
1847
|
}
|
|
1834
1848
|
accessible={true}
|
|
1835
|
-
collapsable={false}
|
|
1836
1849
|
focusable={true}
|
|
1837
1850
|
onClick={[Function]}
|
|
1838
1851
|
onResponderGrant={[Function]}
|
|
@@ -1842,14 +1855,17 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
|
|
|
1842
1855
|
onResponderTerminationRequest={[Function]}
|
|
1843
1856
|
onStartShouldSetResponder={[Function]}
|
|
1844
1857
|
style={
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1858
|
+
Array [
|
|
1859
|
+
Object {
|
|
1860
|
+
"alignItems": "center",
|
|
1861
|
+
"backgroundColor": "#ffffff",
|
|
1862
|
+
"borderRadius": 4,
|
|
1863
|
+
"flexDirection": "row",
|
|
1864
|
+
"opacity": 1,
|
|
1865
|
+
"padding": 16,
|
|
1866
|
+
},
|
|
1867
|
+
undefined,
|
|
1868
|
+
]
|
|
1853
1869
|
}
|
|
1854
1870
|
>
|
|
1855
1871
|
<View
|
|
@@ -1947,7 +1963,6 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
|
|
|
1947
1963
|
}
|
|
1948
1964
|
}
|
|
1949
1965
|
accessible={true}
|
|
1950
|
-
collapsable={false}
|
|
1951
1966
|
focusable={true}
|
|
1952
1967
|
onClick={[Function]}
|
|
1953
1968
|
onResponderGrant={[Function]}
|
|
@@ -1957,14 +1972,17 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
|
|
|
1957
1972
|
onResponderTerminationRequest={[Function]}
|
|
1958
1973
|
onStartShouldSetResponder={[Function]}
|
|
1959
1974
|
style={
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1975
|
+
Array [
|
|
1976
|
+
Object {
|
|
1977
|
+
"alignItems": "center",
|
|
1978
|
+
"backgroundColor": "#ffffff",
|
|
1979
|
+
"borderRadius": 4,
|
|
1980
|
+
"flexDirection": "row",
|
|
1981
|
+
"opacity": 1,
|
|
1982
|
+
"padding": 16,
|
|
1983
|
+
},
|
|
1984
|
+
undefined,
|
|
1985
|
+
]
|
|
1968
1986
|
}
|
|
1969
1987
|
>
|
|
1970
1988
|
<View
|
|
@@ -2238,7 +2256,6 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
|
|
|
2238
2256
|
}
|
|
2239
2257
|
}
|
|
2240
2258
|
accessible={true}
|
|
2241
|
-
collapsable={false}
|
|
2242
2259
|
focusable={true}
|
|
2243
2260
|
onClick={[Function]}
|
|
2244
2261
|
onResponderGrant={[Function]}
|
|
@@ -2248,14 +2265,17 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
|
|
|
2248
2265
|
onResponderTerminationRequest={[Function]}
|
|
2249
2266
|
onStartShouldSetResponder={[Function]}
|
|
2250
2267
|
style={
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2268
|
+
Array [
|
|
2269
|
+
Object {
|
|
2270
|
+
"alignItems": "center",
|
|
2271
|
+
"backgroundColor": "#ece8ef",
|
|
2272
|
+
"borderRadius": 4,
|
|
2273
|
+
"flexDirection": "row",
|
|
2274
|
+
"opacity": 1,
|
|
2275
|
+
"padding": 16,
|
|
2276
|
+
},
|
|
2277
|
+
undefined,
|
|
2278
|
+
]
|
|
2259
2279
|
}
|
|
2260
2280
|
>
|
|
2261
2281
|
<View
|
|
@@ -2461,7 +2481,6 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
|
|
|
2461
2481
|
}
|
|
2462
2482
|
}
|
|
2463
2483
|
accessible={true}
|
|
2464
|
-
collapsable={false}
|
|
2465
2484
|
focusable={true}
|
|
2466
2485
|
onClick={[Function]}
|
|
2467
2486
|
onResponderGrant={[Function]}
|
|
@@ -2471,14 +2490,17 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
|
|
|
2471
2490
|
onResponderTerminationRequest={[Function]}
|
|
2472
2491
|
onStartShouldSetResponder={[Function]}
|
|
2473
2492
|
style={
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2493
|
+
Array [
|
|
2494
|
+
Object {
|
|
2495
|
+
"alignItems": "center",
|
|
2496
|
+
"backgroundColor": "#ffffff",
|
|
2497
|
+
"borderRadius": 4,
|
|
2498
|
+
"flexDirection": "row",
|
|
2499
|
+
"opacity": 1,
|
|
2500
|
+
"padding": 16,
|
|
2501
|
+
},
|
|
2502
|
+
undefined,
|
|
2503
|
+
]
|
|
2482
2504
|
}
|
|
2483
2505
|
>
|
|
2484
2506
|
<View
|
|
@@ -2576,7 +2598,6 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
|
|
|
2576
2598
|
}
|
|
2577
2599
|
}
|
|
2578
2600
|
accessible={true}
|
|
2579
|
-
collapsable={false}
|
|
2580
2601
|
focusable={true}
|
|
2581
2602
|
onClick={[Function]}
|
|
2582
2603
|
onResponderGrant={[Function]}
|
|
@@ -2586,14 +2607,17 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
|
|
|
2586
2607
|
onResponderTerminationRequest={[Function]}
|
|
2587
2608
|
onStartShouldSetResponder={[Function]}
|
|
2588
2609
|
style={
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2610
|
+
Array [
|
|
2611
|
+
Object {
|
|
2612
|
+
"alignItems": "center",
|
|
2613
|
+
"backgroundColor": "#ffffff",
|
|
2614
|
+
"borderRadius": 4,
|
|
2615
|
+
"flexDirection": "row",
|
|
2616
|
+
"opacity": 1,
|
|
2617
|
+
"padding": 16,
|
|
2618
|
+
},
|
|
2619
|
+
undefined,
|
|
2620
|
+
]
|
|
2597
2621
|
}
|
|
2598
2622
|
>
|
|
2599
2623
|
<View
|