@hero-design/rn 8.8.1 → 8.9.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/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +400 -618
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +399 -618
- package/package.json +9 -9
- package/src/components/Carousel/CarouselItem.tsx +4 -2
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +288 -22
- package/src/components/Carousel/__tests__/index.spec.tsx +17 -8
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +2 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +2 -1
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +2 -0
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +9 -9
- package/src/components/RichTextEditor/RichTextEditor.tsx +3 -2
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +10 -5
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +10 -5
- package/src/components/TextInput/StyledTextInput.tsx +2 -1
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +126 -110
- package/src/components/TextInput/index.tsx +3 -2
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +28 -25
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +28 -25
- package/src/index.ts +0 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +8 -5
- package/src/theme/components/progress.ts +4 -4
- package/src/theme/components/textInput.ts +6 -2
- package/types/components/Accordion/StyledAccordion.d.ts +1 -0
- package/types/components/Alert/StyledAlert.d.ts +1 -0
- package/types/components/Attachment/StyledAttachment.d.ts +1 -0
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +1 -0
- package/types/components/Avatar/StyledAvatar.d.ts +1 -0
- package/types/components/Badge/StyledBadge.d.ts +1 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +1 -0
- package/types/components/BottomSheet/BottomSheetContext.d.ts +1 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +1 -0
- package/types/components/Box/StyledBox.d.ts +1 -0
- package/types/components/Box/types.d.ts +1 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +1 -0
- package/types/components/Button/StyledButton.d.ts +1 -0
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +1 -0
- package/types/components/Calendar/StyledCalendar.d.ts +1 -0
- package/types/components/Card/DataCard/StyledDataCard.d.ts +1 -0
- package/types/components/Card/StyledCard.d.ts +1 -0
- package/types/components/Carousel/StyledCarousel.d.ts +1 -0
- package/types/components/Checkbox/StyledCheckbox.d.ts +1 -0
- package/types/components/Collapse/StyledCollapse.d.ts +1 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +1 -0
- package/types/components/DatePicker/StyledDatePicker.d.ts +1 -0
- package/types/components/Divider/StyledDivider.d.ts +1 -0
- package/types/components/Drawer/StyledDrawer.d.ts +1 -0
- package/types/components/Empty/StyledEmpty.d.ts +1 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +1 -0
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +1 -0
- package/types/components/FAB/StyledFAB.d.ts +1 -0
- package/types/components/Icon/HeroIcon/index.d.ts +1 -0
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/List/StyledBasicListItem.d.ts +1 -0
- package/types/components/List/StyledListItem.d.ts +1 -0
- package/types/components/PageControl/StyledPageControl.d.ts +1 -0
- package/types/components/PinInput/StyledPinInput.d.ts +1 -0
- package/types/components/Progress/StyledProgressBar.d.ts +1 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +1 -0
- package/types/components/Radio/StyledRadio.d.ts +1 -0
- package/types/components/Radio/index.d.ts +1 -0
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +1 -0
- package/types/components/RichTextEditor/StyledToolbar.d.ts +1 -0
- package/types/components/RichTextEditor/index.d.ts +1 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +1 -0
- package/types/components/Select/StyledSelect.d.ts +1 -0
- package/types/components/Select/helpers.d.ts +1 -0
- package/types/components/Spinner/StyledSpinner.d.ts +1 -0
- package/types/components/Swipeable/StyledSwipeable.d.ts +1 -0
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +1 -0
- package/types/components/Switch/StyledSwitch.d.ts +1 -0
- package/types/components/Tabs/StyledScrollableTabs.d.ts +1 -0
- package/types/components/Tabs/StyledTabs.d.ts +1 -0
- package/types/components/Tag/StyledTag.d.ts +1 -0
- package/types/components/TextInput/StyledTextInput.d.ts +1 -0
- package/types/components/TextInput/index.d.ts +1 -1
- package/types/components/TimePicker/StyledTimePicker.d.ts +1 -0
- package/types/components/Toast/StyledToast.d.ts +1 -0
- package/types/components/Toast/ToastContext.d.ts +1 -0
- package/types/components/Toast/index.d.ts +1 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +1 -0
- package/types/components/Typography/Text/StyledText.d.ts +1 -0
- package/types/index.d.ts +1 -2
- package/types/theme/ThemeProvider.d.ts +1 -0
- package/types/theme/components/textInput.d.ts +4 -1
- package/src/components/SwipeableV2/StyledSwipeable.tsx +0 -14
- package/src/components/SwipeableV2/__tests__/__snapshots__/index.spec.tsx.snap +0 -161
- package/src/components/SwipeableV2/__tests__/index.spec.tsx +0 -48
- package/src/components/SwipeableV2/index.tsx +0 -364
- package/types/components/SwipeableV2/StyledSwipeable.d.ts +0 -15
- package/types/components/SwipeableV2/index.d.ts +0 -46
|
@@ -6,7 +6,7 @@ exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
|
|
|
6
6
|
style={
|
|
7
7
|
Array [
|
|
8
8
|
Object {
|
|
9
|
-
"
|
|
9
|
+
"marginTop": 8,
|
|
10
10
|
"width": "100%",
|
|
11
11
|
},
|
|
12
12
|
undefined,
|
|
@@ -181,6 +181,7 @@ exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
|
|
|
181
181
|
style={
|
|
182
182
|
Array [
|
|
183
183
|
Object {
|
|
184
|
+
"minHeight": 16,
|
|
184
185
|
"paddingLeft": 16,
|
|
185
186
|
},
|
|
186
187
|
undefined,
|
|
@@ -198,6 +199,31 @@ exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
|
|
|
198
199
|
]
|
|
199
200
|
}
|
|
200
201
|
>
|
|
202
|
+
<Text
|
|
203
|
+
style={
|
|
204
|
+
Array [
|
|
205
|
+
Object {
|
|
206
|
+
"color": "#001f23",
|
|
207
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
208
|
+
"fontSize": 14,
|
|
209
|
+
"letterSpacing": 0.42,
|
|
210
|
+
"lineHeight": 22,
|
|
211
|
+
},
|
|
212
|
+
Array [
|
|
213
|
+
Object {
|
|
214
|
+
"fontSize": 12,
|
|
215
|
+
},
|
|
216
|
+
undefined,
|
|
217
|
+
],
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
themeFontSize="medium"
|
|
221
|
+
themeFontWeight="regular"
|
|
222
|
+
themeIntent="body"
|
|
223
|
+
themeTypeface="neutral"
|
|
224
|
+
>
|
|
225
|
+
This is helper text
|
|
226
|
+
</Text>
|
|
201
227
|
<Text
|
|
202
228
|
style={
|
|
203
229
|
Array [
|
|
@@ -233,31 +259,6 @@ exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
|
|
|
233
259
|
255
|
|
234
260
|
</Text>
|
|
235
261
|
</View>
|
|
236
|
-
<Text
|
|
237
|
-
style={
|
|
238
|
-
Array [
|
|
239
|
-
Object {
|
|
240
|
-
"color": "#001f23",
|
|
241
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
242
|
-
"fontSize": 14,
|
|
243
|
-
"letterSpacing": 0.42,
|
|
244
|
-
"lineHeight": 22,
|
|
245
|
-
},
|
|
246
|
-
Array [
|
|
247
|
-
Object {
|
|
248
|
-
"fontSize": 12,
|
|
249
|
-
},
|
|
250
|
-
undefined,
|
|
251
|
-
],
|
|
252
|
-
]
|
|
253
|
-
}
|
|
254
|
-
themeFontSize="medium"
|
|
255
|
-
themeFontWeight="regular"
|
|
256
|
-
themeIntent="body"
|
|
257
|
-
themeTypeface="neutral"
|
|
258
|
-
>
|
|
259
|
-
This is helper text
|
|
260
|
-
</Text>
|
|
261
262
|
</View>
|
|
262
263
|
</View>
|
|
263
264
|
`;
|
|
@@ -268,7 +269,7 @@ exports[`TextInput defaultValue default Value and Value renders correctly with 2
|
|
|
268
269
|
style={
|
|
269
270
|
Array [
|
|
270
271
|
Object {
|
|
271
|
-
"
|
|
272
|
+
"marginTop": 8,
|
|
272
273
|
"width": "100%",
|
|
273
274
|
},
|
|
274
275
|
undefined,
|
|
@@ -444,6 +445,7 @@ exports[`TextInput defaultValue default Value and Value renders correctly with 2
|
|
|
444
445
|
style={
|
|
445
446
|
Array [
|
|
446
447
|
Object {
|
|
448
|
+
"minHeight": 16,
|
|
447
449
|
"paddingLeft": 16,
|
|
448
450
|
},
|
|
449
451
|
undefined,
|
|
@@ -461,6 +463,31 @@ exports[`TextInput defaultValue default Value and Value renders correctly with 2
|
|
|
461
463
|
]
|
|
462
464
|
}
|
|
463
465
|
>
|
|
466
|
+
<Text
|
|
467
|
+
style={
|
|
468
|
+
Array [
|
|
469
|
+
Object {
|
|
470
|
+
"color": "#001f23",
|
|
471
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
472
|
+
"fontSize": 14,
|
|
473
|
+
"letterSpacing": 0.42,
|
|
474
|
+
"lineHeight": 22,
|
|
475
|
+
},
|
|
476
|
+
Array [
|
|
477
|
+
Object {
|
|
478
|
+
"fontSize": 12,
|
|
479
|
+
},
|
|
480
|
+
undefined,
|
|
481
|
+
],
|
|
482
|
+
]
|
|
483
|
+
}
|
|
484
|
+
themeFontSize="medium"
|
|
485
|
+
themeFontWeight="regular"
|
|
486
|
+
themeIntent="body"
|
|
487
|
+
themeTypeface="neutral"
|
|
488
|
+
>
|
|
489
|
+
This is helper text
|
|
490
|
+
</Text>
|
|
464
491
|
<Text
|
|
465
492
|
style={
|
|
466
493
|
Array [
|
|
@@ -496,31 +523,6 @@ exports[`TextInput defaultValue default Value and Value renders correctly with 2
|
|
|
496
523
|
255
|
|
497
524
|
</Text>
|
|
498
525
|
</View>
|
|
499
|
-
<Text
|
|
500
|
-
style={
|
|
501
|
-
Array [
|
|
502
|
-
Object {
|
|
503
|
-
"color": "#001f23",
|
|
504
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
505
|
-
"fontSize": 14,
|
|
506
|
-
"letterSpacing": 0.42,
|
|
507
|
-
"lineHeight": 22,
|
|
508
|
-
},
|
|
509
|
-
Array [
|
|
510
|
-
Object {
|
|
511
|
-
"fontSize": 12,
|
|
512
|
-
},
|
|
513
|
-
undefined,
|
|
514
|
-
],
|
|
515
|
-
]
|
|
516
|
-
}
|
|
517
|
-
themeFontSize="medium"
|
|
518
|
-
themeFontWeight="regular"
|
|
519
|
-
themeIntent="body"
|
|
520
|
-
themeTypeface="neutral"
|
|
521
|
-
>
|
|
522
|
-
This is helper text
|
|
523
|
-
</Text>
|
|
524
526
|
</View>
|
|
525
527
|
</View>
|
|
526
528
|
`;
|
|
@@ -531,7 +533,7 @@ exports[`TextInput disabled renders correctly 1`] = `
|
|
|
531
533
|
style={
|
|
532
534
|
Array [
|
|
533
535
|
Object {
|
|
534
|
-
"
|
|
536
|
+
"marginTop": 8,
|
|
535
537
|
"width": "100%",
|
|
536
538
|
},
|
|
537
539
|
undefined,
|
|
@@ -691,6 +693,7 @@ exports[`TextInput disabled renders correctly 1`] = `
|
|
|
691
693
|
style={
|
|
692
694
|
Array [
|
|
693
695
|
Object {
|
|
696
|
+
"minHeight": 16,
|
|
694
697
|
"paddingLeft": 16,
|
|
695
698
|
},
|
|
696
699
|
undefined,
|
|
@@ -718,7 +721,7 @@ exports[`TextInput error renders correctly 1`] = `
|
|
|
718
721
|
style={
|
|
719
722
|
Array [
|
|
720
723
|
Object {
|
|
721
|
-
"
|
|
724
|
+
"marginTop": 8,
|
|
722
725
|
"width": "100%",
|
|
723
726
|
},
|
|
724
727
|
undefined,
|
|
@@ -898,6 +901,7 @@ exports[`TextInput error renders correctly 1`] = `
|
|
|
898
901
|
style={
|
|
899
902
|
Array [
|
|
900
903
|
Object {
|
|
904
|
+
"minHeight": 16,
|
|
901
905
|
"paddingLeft": 16,
|
|
902
906
|
},
|
|
903
907
|
undefined,
|
|
@@ -984,7 +988,7 @@ exports[`TextInput filled renders correctly 1`] = `
|
|
|
984
988
|
style={
|
|
985
989
|
Array [
|
|
986
990
|
Object {
|
|
987
|
-
"
|
|
991
|
+
"marginTop": 8,
|
|
988
992
|
"width": "100%",
|
|
989
993
|
},
|
|
990
994
|
undefined,
|
|
@@ -1147,6 +1151,7 @@ exports[`TextInput filled renders correctly 1`] = `
|
|
|
1147
1151
|
style={
|
|
1148
1152
|
Array [
|
|
1149
1153
|
Object {
|
|
1154
|
+
"minHeight": 16,
|
|
1150
1155
|
"paddingLeft": 16,
|
|
1151
1156
|
},
|
|
1152
1157
|
undefined,
|
|
@@ -1174,7 +1179,7 @@ exports[`TextInput helper text renders correctly 1`] = `
|
|
|
1174
1179
|
style={
|
|
1175
1180
|
Array [
|
|
1176
1181
|
Object {
|
|
1177
|
-
"
|
|
1182
|
+
"marginTop": 8,
|
|
1178
1183
|
"width": "100%",
|
|
1179
1184
|
},
|
|
1180
1185
|
undefined,
|
|
@@ -1354,6 +1359,7 @@ exports[`TextInput helper text renders correctly 1`] = `
|
|
|
1354
1359
|
style={
|
|
1355
1360
|
Array [
|
|
1356
1361
|
Object {
|
|
1362
|
+
"minHeight": 16,
|
|
1357
1363
|
"paddingLeft": 16,
|
|
1358
1364
|
},
|
|
1359
1365
|
undefined,
|
|
@@ -1370,32 +1376,33 @@ exports[`TextInput helper text renders correctly 1`] = `
|
|
|
1370
1376
|
undefined,
|
|
1371
1377
|
]
|
|
1372
1378
|
}
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
Array [
|
|
1377
|
-
Object {
|
|
1378
|
-
"color": "#001f23",
|
|
1379
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
1380
|
-
"fontSize": 14,
|
|
1381
|
-
"letterSpacing": 0.42,
|
|
1382
|
-
"lineHeight": 22,
|
|
1383
|
-
},
|
|
1379
|
+
>
|
|
1380
|
+
<Text
|
|
1381
|
+
style={
|
|
1384
1382
|
Array [
|
|
1385
1383
|
Object {
|
|
1386
|
-
"
|
|
1384
|
+
"color": "#001f23",
|
|
1385
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
1386
|
+
"fontSize": 14,
|
|
1387
|
+
"letterSpacing": 0.42,
|
|
1388
|
+
"lineHeight": 22,
|
|
1387
1389
|
},
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1390
|
+
Array [
|
|
1391
|
+
Object {
|
|
1392
|
+
"fontSize": 12,
|
|
1393
|
+
},
|
|
1394
|
+
undefined,
|
|
1395
|
+
],
|
|
1396
|
+
]
|
|
1397
|
+
}
|
|
1398
|
+
themeFontSize="medium"
|
|
1399
|
+
themeFontWeight="regular"
|
|
1400
|
+
themeIntent="body"
|
|
1401
|
+
themeTypeface="neutral"
|
|
1402
|
+
>
|
|
1403
|
+
This is helper text
|
|
1404
|
+
</Text>
|
|
1405
|
+
</View>
|
|
1399
1406
|
</View>
|
|
1400
1407
|
</View>
|
|
1401
1408
|
`;
|
|
@@ -1406,7 +1413,7 @@ exports[`TextInput idle renders correctly 1`] = `
|
|
|
1406
1413
|
style={
|
|
1407
1414
|
Array [
|
|
1408
1415
|
Object {
|
|
1409
|
-
"
|
|
1416
|
+
"marginTop": 8,
|
|
1410
1417
|
"width": "100%",
|
|
1411
1418
|
},
|
|
1412
1419
|
Object {
|
|
@@ -1577,6 +1584,7 @@ exports[`TextInput idle renders correctly 1`] = `
|
|
|
1577
1584
|
style={
|
|
1578
1585
|
Array [
|
|
1579
1586
|
Object {
|
|
1587
|
+
"minHeight": 16,
|
|
1580
1588
|
"paddingLeft": 16,
|
|
1581
1589
|
},
|
|
1582
1590
|
undefined,
|
|
@@ -1604,7 +1612,7 @@ exports[`TextInput idle with suffix and prefix are React Element renders correct
|
|
|
1604
1612
|
style={
|
|
1605
1613
|
Array [
|
|
1606
1614
|
Object {
|
|
1607
|
-
"
|
|
1615
|
+
"marginTop": 8,
|
|
1608
1616
|
"width": "100%",
|
|
1609
1617
|
},
|
|
1610
1618
|
undefined,
|
|
@@ -1799,6 +1807,7 @@ exports[`TextInput idle with suffix and prefix are React Element renders correct
|
|
|
1799
1807
|
style={
|
|
1800
1808
|
Array [
|
|
1801
1809
|
Object {
|
|
1810
|
+
"minHeight": 16,
|
|
1802
1811
|
"paddingLeft": 16,
|
|
1803
1812
|
},
|
|
1804
1813
|
undefined,
|
|
@@ -1826,7 +1835,7 @@ exports[`TextInput loading renders correctly 1`] = `
|
|
|
1826
1835
|
style={
|
|
1827
1836
|
Array [
|
|
1828
1837
|
Object {
|
|
1829
|
-
"
|
|
1838
|
+
"marginTop": 8,
|
|
1830
1839
|
"width": "100%",
|
|
1831
1840
|
},
|
|
1832
1841
|
undefined,
|
|
@@ -1958,6 +1967,7 @@ exports[`TextInput loading renders correctly 1`] = `
|
|
|
1958
1967
|
style={
|
|
1959
1968
|
Array [
|
|
1960
1969
|
Object {
|
|
1970
|
+
"minHeight": 16,
|
|
1961
1971
|
"paddingLeft": 16,
|
|
1962
1972
|
},
|
|
1963
1973
|
undefined,
|
|
@@ -1985,7 +1995,7 @@ exports[`TextInput max length renders correctly 1`] = `
|
|
|
1985
1995
|
style={
|
|
1986
1996
|
Array [
|
|
1987
1997
|
Object {
|
|
1988
|
-
"
|
|
1998
|
+
"marginTop": 8,
|
|
1989
1999
|
"width": "100%",
|
|
1990
2000
|
},
|
|
1991
2001
|
undefined,
|
|
@@ -2146,6 +2156,7 @@ exports[`TextInput max length renders correctly 1`] = `
|
|
|
2146
2156
|
style={
|
|
2147
2157
|
Array [
|
|
2148
2158
|
Object {
|
|
2159
|
+
"minHeight": 16,
|
|
2149
2160
|
"paddingLeft": 16,
|
|
2150
2161
|
},
|
|
2151
2162
|
undefined,
|
|
@@ -2266,7 +2277,7 @@ exports[`TextInput placeholder TextInput is idle renders correctly 1`] = `
|
|
|
2266
2277
|
style={
|
|
2267
2278
|
Array [
|
|
2268
2279
|
Object {
|
|
2269
|
-
"
|
|
2280
|
+
"marginTop": 8,
|
|
2270
2281
|
"width": "100%",
|
|
2271
2282
|
},
|
|
2272
2283
|
undefined,
|
|
@@ -2446,6 +2457,7 @@ exports[`TextInput placeholder TextInput is idle renders correctly 1`] = `
|
|
|
2446
2457
|
style={
|
|
2447
2458
|
Array [
|
|
2448
2459
|
Object {
|
|
2460
|
+
"minHeight": 16,
|
|
2449
2461
|
"paddingLeft": 16,
|
|
2450
2462
|
},
|
|
2451
2463
|
undefined,
|
|
@@ -2462,32 +2474,33 @@ exports[`TextInput placeholder TextInput is idle renders correctly 1`] = `
|
|
|
2462
2474
|
undefined,
|
|
2463
2475
|
]
|
|
2464
2476
|
}
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
Array [
|
|
2469
|
-
Object {
|
|
2470
|
-
"color": "#001f23",
|
|
2471
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
2472
|
-
"fontSize": 14,
|
|
2473
|
-
"letterSpacing": 0.42,
|
|
2474
|
-
"lineHeight": 22,
|
|
2475
|
-
},
|
|
2477
|
+
>
|
|
2478
|
+
<Text
|
|
2479
|
+
style={
|
|
2476
2480
|
Array [
|
|
2477
2481
|
Object {
|
|
2478
|
-
"
|
|
2482
|
+
"color": "#001f23",
|
|
2483
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
2484
|
+
"fontSize": 14,
|
|
2485
|
+
"letterSpacing": 0.42,
|
|
2486
|
+
"lineHeight": 22,
|
|
2479
2487
|
},
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2488
|
+
Array [
|
|
2489
|
+
Object {
|
|
2490
|
+
"fontSize": 12,
|
|
2491
|
+
},
|
|
2492
|
+
undefined,
|
|
2493
|
+
],
|
|
2494
|
+
]
|
|
2495
|
+
}
|
|
2496
|
+
themeFontSize="medium"
|
|
2497
|
+
themeFontWeight="regular"
|
|
2498
|
+
themeIntent="body"
|
|
2499
|
+
themeTypeface="neutral"
|
|
2500
|
+
>
|
|
2501
|
+
This is helper text
|
|
2502
|
+
</Text>
|
|
2503
|
+
</View>
|
|
2491
2504
|
</View>
|
|
2492
2505
|
</View>
|
|
2493
2506
|
`;
|
|
@@ -2498,7 +2511,7 @@ exports[`TextInput readonly renders correctly 1`] = `
|
|
|
2498
2511
|
style={
|
|
2499
2512
|
Array [
|
|
2500
2513
|
Object {
|
|
2501
|
-
"
|
|
2514
|
+
"marginTop": 8,
|
|
2502
2515
|
"width": "100%",
|
|
2503
2516
|
},
|
|
2504
2517
|
undefined,
|
|
@@ -2687,6 +2700,7 @@ exports[`TextInput readonly renders correctly 1`] = `
|
|
|
2687
2700
|
style={
|
|
2688
2701
|
Array [
|
|
2689
2702
|
Object {
|
|
2703
|
+
"minHeight": 16,
|
|
2690
2704
|
"paddingLeft": 16,
|
|
2691
2705
|
},
|
|
2692
2706
|
undefined,
|
|
@@ -2714,7 +2728,7 @@ exports[`TextInput ref ref methods work correctly 1`] = `
|
|
|
2714
2728
|
style={
|
|
2715
2729
|
Array [
|
|
2716
2730
|
Object {
|
|
2717
|
-
"
|
|
2731
|
+
"marginTop": 8,
|
|
2718
2732
|
"width": "100%",
|
|
2719
2733
|
},
|
|
2720
2734
|
undefined,
|
|
@@ -2847,6 +2861,7 @@ exports[`TextInput ref ref methods work correctly 1`] = `
|
|
|
2847
2861
|
style={
|
|
2848
2862
|
Array [
|
|
2849
2863
|
Object {
|
|
2864
|
+
"minHeight": 16,
|
|
2850
2865
|
"paddingLeft": 16,
|
|
2851
2866
|
},
|
|
2852
2867
|
undefined,
|
|
@@ -2874,7 +2889,7 @@ exports[`TextInput required renders correctly 1`] = `
|
|
|
2874
2889
|
style={
|
|
2875
2890
|
Array [
|
|
2876
2891
|
Object {
|
|
2877
|
-
"
|
|
2892
|
+
"marginTop": 8,
|
|
2878
2893
|
"width": "100%",
|
|
2879
2894
|
},
|
|
2880
2895
|
undefined,
|
|
@@ -3069,6 +3084,7 @@ exports[`TextInput required renders correctly 1`] = `
|
|
|
3069
3084
|
style={
|
|
3070
3085
|
Array [
|
|
3071
3086
|
Object {
|
|
3087
|
+
"minHeight": 16,
|
|
3072
3088
|
"paddingLeft": 16,
|
|
3073
3089
|
},
|
|
3074
3090
|
undefined,
|
|
@@ -339,7 +339,7 @@ const TextInput = forwardRef<TextInputHandles, TextInputProps>(
|
|
|
339
339
|
</StyledTextInputContainer>
|
|
340
340
|
<StyledErrorAndHelpTextContainer>
|
|
341
341
|
<StyledErrorAndMaxLengthContainer>
|
|
342
|
-
{
|
|
342
|
+
{error ? (
|
|
343
343
|
<StyledErrorContainer>
|
|
344
344
|
<Icon
|
|
345
345
|
testID="input-error-icon"
|
|
@@ -350,6 +350,8 @@ const TextInput = forwardRef<TextInputHandles, TextInputProps>(
|
|
|
350
350
|
|
|
351
351
|
<StyledError testID="input-error-message">{error}</StyledError>
|
|
352
352
|
</StyledErrorContainer>
|
|
353
|
+
) : (
|
|
354
|
+
!!helpText && <StyledHelperText>{helpText}</StyledHelperText>
|
|
353
355
|
)}
|
|
354
356
|
{shouldShowMaxLength && (
|
|
355
357
|
<StyledMaxLengthMessage themeVariant={variant} fontSize="small">
|
|
@@ -357,7 +359,6 @@ const TextInput = forwardRef<TextInputHandles, TextInputProps>(
|
|
|
357
359
|
</StyledMaxLengthMessage>
|
|
358
360
|
)}
|
|
359
361
|
</StyledErrorAndMaxLengthContainer>
|
|
360
|
-
{!!helpText && <StyledHelperText>{helpText}</StyledHelperText>}
|
|
361
362
|
</StyledErrorAndHelpTextContainer>
|
|
362
363
|
</StyledContainer>
|
|
363
364
|
);
|
|
@@ -32,7 +32,7 @@ exports[`TimePickerAndroid renders correct with hide suffix 1`] = `
|
|
|
32
32
|
style={
|
|
33
33
|
Array [
|
|
34
34
|
Object {
|
|
35
|
-
"
|
|
35
|
+
"marginTop": 8,
|
|
36
36
|
"width": "100%",
|
|
37
37
|
},
|
|
38
38
|
undefined,
|
|
@@ -165,6 +165,7 @@ exports[`TimePickerAndroid renders correct with hide suffix 1`] = `
|
|
|
165
165
|
style={
|
|
166
166
|
Array [
|
|
167
167
|
Object {
|
|
168
|
+
"minHeight": 16,
|
|
168
169
|
"paddingLeft": 16,
|
|
169
170
|
},
|
|
170
171
|
undefined,
|
|
@@ -181,32 +182,33 @@ exports[`TimePickerAndroid renders correct with hide suffix 1`] = `
|
|
|
181
182
|
undefined,
|
|
182
183
|
]
|
|
183
184
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
Array [
|
|
188
|
-
Object {
|
|
189
|
-
"color": "#001f23",
|
|
190
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
191
|
-
"fontSize": 14,
|
|
192
|
-
"letterSpacing": 0.42,
|
|
193
|
-
"lineHeight": 22,
|
|
194
|
-
},
|
|
185
|
+
>
|
|
186
|
+
<Text
|
|
187
|
+
style={
|
|
195
188
|
Array [
|
|
196
189
|
Object {
|
|
197
|
-
"
|
|
190
|
+
"color": "#001f23",
|
|
191
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
192
|
+
"fontSize": 14,
|
|
193
|
+
"letterSpacing": 0.42,
|
|
194
|
+
"lineHeight": 22,
|
|
198
195
|
},
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
196
|
+
Array [
|
|
197
|
+
Object {
|
|
198
|
+
"fontSize": 12,
|
|
199
|
+
},
|
|
200
|
+
undefined,
|
|
201
|
+
],
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
themeFontSize="medium"
|
|
205
|
+
themeFontWeight="regular"
|
|
206
|
+
themeIntent="body"
|
|
207
|
+
themeTypeface="neutral"
|
|
208
|
+
>
|
|
209
|
+
This is help text
|
|
210
|
+
</Text>
|
|
211
|
+
</View>
|
|
210
212
|
</View>
|
|
211
213
|
</View>
|
|
212
214
|
</View>
|
|
@@ -245,7 +247,7 @@ exports[`TimePickerAndroid renders correctly 1`] = `
|
|
|
245
247
|
style={
|
|
246
248
|
Array [
|
|
247
249
|
Object {
|
|
248
|
-
"
|
|
250
|
+
"marginTop": 8,
|
|
249
251
|
"width": "100%",
|
|
250
252
|
},
|
|
251
253
|
undefined,
|
|
@@ -393,6 +395,7 @@ exports[`TimePickerAndroid renders correctly 1`] = `
|
|
|
393
395
|
style={
|
|
394
396
|
Array [
|
|
395
397
|
Object {
|
|
398
|
+
"minHeight": 16,
|
|
396
399
|
"paddingLeft": 16,
|
|
397
400
|
},
|
|
398
401
|
undefined,
|
|
@@ -32,7 +32,7 @@ exports[`TimePickerIOS renders correct with hide suffix 1`] = `
|
|
|
32
32
|
style={
|
|
33
33
|
Array [
|
|
34
34
|
Object {
|
|
35
|
-
"
|
|
35
|
+
"marginTop": 8,
|
|
36
36
|
"width": "100%",
|
|
37
37
|
},
|
|
38
38
|
undefined,
|
|
@@ -165,6 +165,7 @@ exports[`TimePickerIOS renders correct with hide suffix 1`] = `
|
|
|
165
165
|
style={
|
|
166
166
|
Array [
|
|
167
167
|
Object {
|
|
168
|
+
"minHeight": 16,
|
|
168
169
|
"paddingLeft": 16,
|
|
169
170
|
},
|
|
170
171
|
undefined,
|
|
@@ -181,32 +182,33 @@ exports[`TimePickerIOS renders correct with hide suffix 1`] = `
|
|
|
181
182
|
undefined,
|
|
182
183
|
]
|
|
183
184
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
Array [
|
|
188
|
-
Object {
|
|
189
|
-
"color": "#001f23",
|
|
190
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
191
|
-
"fontSize": 14,
|
|
192
|
-
"letterSpacing": 0.42,
|
|
193
|
-
"lineHeight": 22,
|
|
194
|
-
},
|
|
185
|
+
>
|
|
186
|
+
<Text
|
|
187
|
+
style={
|
|
195
188
|
Array [
|
|
196
189
|
Object {
|
|
197
|
-
"
|
|
190
|
+
"color": "#001f23",
|
|
191
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
192
|
+
"fontSize": 14,
|
|
193
|
+
"letterSpacing": 0.42,
|
|
194
|
+
"lineHeight": 22,
|
|
198
195
|
},
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
196
|
+
Array [
|
|
197
|
+
Object {
|
|
198
|
+
"fontSize": 12,
|
|
199
|
+
},
|
|
200
|
+
undefined,
|
|
201
|
+
],
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
themeFontSize="medium"
|
|
205
|
+
themeFontWeight="regular"
|
|
206
|
+
themeIntent="body"
|
|
207
|
+
themeTypeface="neutral"
|
|
208
|
+
>
|
|
209
|
+
This is help text
|
|
210
|
+
</Text>
|
|
211
|
+
</View>
|
|
210
212
|
</View>
|
|
211
213
|
</View>
|
|
212
214
|
</View>
|
|
@@ -245,7 +247,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
245
247
|
style={
|
|
246
248
|
Array [
|
|
247
249
|
Object {
|
|
248
|
-
"
|
|
250
|
+
"marginTop": 8,
|
|
249
251
|
"width": "100%",
|
|
250
252
|
},
|
|
251
253
|
undefined,
|
|
@@ -393,6 +395,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
393
395
|
style={
|
|
394
396
|
Array [
|
|
395
397
|
Object {
|
|
398
|
+
"minHeight": 16,
|
|
396
399
|
"paddingLeft": 16,
|
|
397
400
|
},
|
|
398
401
|
undefined,
|
package/src/index.ts
CHANGED
|
@@ -39,7 +39,6 @@ import Progress from './components/Progress';
|
|
|
39
39
|
import Slider from './components/Slider';
|
|
40
40
|
import Spinner from './components/Spinner';
|
|
41
41
|
import Swipeable from './components/Swipeable';
|
|
42
|
-
import SwipeableV2 from './components/SwipeableV2';
|
|
43
42
|
import Radio from './components/Radio';
|
|
44
43
|
import SectionHeading from './components/SectionHeading';
|
|
45
44
|
import Select from './components/Select';
|
|
@@ -97,7 +96,6 @@ export {
|
|
|
97
96
|
Slider,
|
|
98
97
|
Spinner,
|
|
99
98
|
Swipeable,
|
|
100
|
-
SwipeableV2,
|
|
101
99
|
Radio,
|
|
102
100
|
SectionHeading,
|
|
103
101
|
Select,
|