@hero-design/rn 8.33.1 → 8.33.2
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 +1 -1
- package/es/index.js +187 -208
- package/lib/index.js +187 -208
- package/package.json +7 -7
- package/src/components/Accordion/AccordionItem.tsx +1 -3
- package/src/components/Accordion/__tests__/AccordionItem.spec.tsx +5 -5
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +26 -34
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +36 -48
- package/src/components/Accordion/__tests__/index.spec.tsx +2 -2
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +26 -39
- package/src/components/Alert/__tests__/index.spec.tsx +8 -2
- package/src/components/Alert/index.tsx +2 -2
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/Attachment/index.tsx +3 -1
- package/src/components/Badge/StyledBadge.tsx +1 -4
- package/src/components/Badge/__tests__/Status.spec.tsx +1 -1
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +18 -48
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -3
- package/src/components/BottomNavigation/StyledBottomNavigation.tsx +1 -1
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +4 -12
- package/src/components/BottomNavigation/index.tsx +0 -1
- package/src/components/BottomSheet/Header.tsx +1 -3
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/Button/Button.tsx +34 -11
- package/src/components/Button/StyledButton.tsx +45 -38
- package/src/components/Button/UtilityButton/StyledUtilityButton.tsx +2 -4
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +8 -14
- package/src/components/Button/__tests__/StyledButton.spec.tsx +12 -6
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +66 -90
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +56 -86
- package/src/components/Calendar/CalendarRowItem.tsx +5 -2
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +10 -15
- package/src/components/Calendar/index.tsx +1 -1
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +12 -18
- package/src/components/Card/__tests__/index.spec.tsx +1 -1
- package/src/components/Carousel/CarouselItem.tsx +4 -4
- package/src/components/Carousel/StyledCarousel.tsx +1 -4
- package/src/components/Carousel/__tests__/CardCarousel.spec.tsx +18 -18
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +24 -20
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +99 -165
- package/src/components/Checkbox/StyledCheckbox.tsx +1 -1
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +8 -12
- package/src/components/Checkbox/index.tsx +1 -1
- package/src/components/ContentNavigator/StyledContentNavigator.tsx +1 -6
- package/src/components/ContentNavigator/__tests__/StyledContentNavigator.spec.tsx +1 -9
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +0 -29
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +124 -17
- package/src/components/ContentNavigator/__tests__/index.spec.tsx +16 -0
- package/src/components/ContentNavigator/index.tsx +30 -9
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +12 -18
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +4 -6
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +4 -6
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +13 -18
- package/src/components/Empty/StyledEmpty.tsx +2 -6
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +22 -36
- package/src/components/Empty/index.tsx +4 -2
- package/src/components/Error/StyledError.tsx +2 -8
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +44 -76
- package/src/components/Error/index.tsx +6 -2
- package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -4
- package/src/components/FAB/ActionGroup/StyledActionItem.tsx +1 -5
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +54 -116
- package/src/components/FAB/ActionGroup/index.tsx +1 -1
- package/src/components/FAB/StyledFAB.tsx +1 -4
- package/src/components/FAB/__tests__/StyledFAB.spec.tsx +1 -1
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +2 -3
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +4 -8
- package/src/components/List/BasicListItem.tsx +2 -6
- package/src/components/List/ListItem.tsx +3 -5
- package/src/components/List/__tests__/ListItem.spec.tsx +4 -4
- package/src/components/List/__tests__/StyledBasicListItem.spec.tsx +3 -1
- package/src/components/List/__tests__/StyledListItem.spec.tsx +3 -1
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +4 -10
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +23 -37
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +8 -12
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +8 -12
- package/src/components/PageControl/index.tsx +0 -1
- package/src/components/PinInput/PinCell.tsx +3 -1
- package/src/components/PinInput/StyledPinInput.tsx +2 -7
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +25 -45
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +18 -34
- package/src/components/Progress/ProgressCircle.tsx +1 -3
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +3 -6
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -4
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +3 -6
- package/src/components/RichTextEditor/RichTextEditor.tsx +2 -9
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +16 -24
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/SectionHeading/__tests__/index.spec.tsx +3 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -24
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +86 -130
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +6 -10
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -24
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +49 -79
- package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +5 -9
- package/src/components/Success/StyledSuccess.tsx +2 -6
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +40 -64
- package/src/components/Success/index.tsx +3 -1
- package/src/components/Swipeable/__tests__/SwipeableAction.spec.tsx +2 -2
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +6 -9
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/Swipeable/__tests__/index.spec.tsx +6 -4
- package/src/components/Switch/SelectorSwitch/Option.tsx +1 -1
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -2
- package/src/components/Tabs/ScrollableTabsHeader.tsx +3 -3
- package/src/components/Tabs/__tests__/SceneView.spec.tsx +4 -4
- package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +6 -9
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +33 -60
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +7 -13
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +3 -8
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +45 -81
- package/src/components/Tabs/index.tsx +3 -3
- package/src/components/Tag/StyledTag.tsx +1 -4
- package/src/components/Tag/__tests__/Tag.spec.tsx +5 -1
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +47 -93
- package/src/components/Tag/index.tsx +5 -1
- package/src/components/TextInput/StyledTextInput.tsx +8 -16
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +72 -134
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +145 -257
- package/src/components/TextInput/index.tsx +2 -3
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +12 -23
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +21 -35
- package/src/components/Toast/Toast.tsx +6 -5
- package/src/components/Toast/__tests__/Toast.spec.tsx +5 -1
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +26 -39
- package/src/components/Toolbar/StyledToolbar.tsx +1 -1
- package/src/components/Toolbar/ToolbarItem.tsx +4 -6
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -18
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +14 -21
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -0
- package/src/theme/components/badge.ts +15 -0
- package/src/theme/components/button.ts +16 -0
- package/src/theme/components/carousel.ts +15 -0
- package/src/theme/components/empty.ts +12 -0
- package/src/theme/components/error.ts +16 -0
- package/src/theme/components/fab.ts +11 -0
- package/src/theme/components/pinInput.ts +15 -0
- package/src/theme/components/success.ts +12 -0
- package/src/theme/components/tag.ts +16 -0
- package/src/theme/components/textInput.ts +1 -0
- package/src/theme/getTheme.ts +18 -18
- package/types/components/Badge/StyledBadge.d.ts +1 -1
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +12 -5
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +1 -1
- package/types/components/Carousel/StyledCarousel.d.ts +1 -1
- package/types/components/Checkbox/StyledCheckbox.d.ts +1 -1
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +1 -5
- package/types/components/Empty/StyledEmpty.d.ts +2 -2
- package/types/components/Error/StyledError.d.ts +2 -2
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +2 -2
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +1 -1
- package/types/components/FAB/StyledFAB.d.ts +1 -1
- package/types/components/PinInput/StyledPinInput.d.ts +2 -2
- package/types/components/Success/StyledSuccess.d.ts +2 -2
- package/types/components/Tag/StyledTag.d.ts +1 -1
- package/types/components/TextInput/StyledTextInput.d.ts +7 -10
- package/types/components/Toolbar/StyledToolbar.d.ts +1 -1
- package/types/theme/components/badge.d.ts +15 -0
- package/types/theme/components/button.d.ts +14 -0
- package/types/theme/components/carousel.d.ts +15 -0
- package/types/theme/components/empty.d.ts +11 -0
- package/types/theme/components/error.d.ts +15 -0
- package/types/theme/components/fab.d.ts +11 -0
- package/types/theme/components/pinInput.d.ts +15 -0
- package/types/theme/components/success.d.ts +11 -0
- package/types/theme/components/tag.d.ts +15 -0
- package/types/theme/components/textInput.d.ts +1 -0
- package/types/theme/getTheme.d.ts +18 -18
|
@@ -157,10 +157,9 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
|
|
|
157
157
|
undefined,
|
|
158
158
|
]
|
|
159
159
|
}
|
|
160
|
-
themeFontSize="large"
|
|
161
|
-
themeFontWeight="regular"
|
|
162
160
|
themeIntent="body"
|
|
163
161
|
themeTypeface="neutral"
|
|
162
|
+
themeVariant="regular"
|
|
164
163
|
>
|
|
165
164
|
Menu List
|
|
166
165
|
</Text>
|
|
@@ -172,16 +171,14 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
|
|
|
172
171
|
"color": "#4d6265",
|
|
173
172
|
"fontFamily": "BeVietnamPro-Regular",
|
|
174
173
|
"fontSize": 12,
|
|
175
|
-
"letterSpacing": 0.
|
|
174
|
+
"letterSpacing": 0.48,
|
|
176
175
|
"lineHeight": 16,
|
|
177
176
|
},
|
|
178
177
|
undefined,
|
|
179
178
|
]
|
|
180
179
|
}
|
|
181
|
-
themeFontSize="small"
|
|
182
180
|
themeFontWeight="regular"
|
|
183
181
|
themeIntent="subdued"
|
|
184
|
-
themeTypeface="neutral"
|
|
185
182
|
>
|
|
186
183
|
Got a common question?
|
|
187
184
|
</Text>
|
|
@@ -240,17 +237,16 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
|
|
|
240
237
|
Object {
|
|
241
238
|
"color": "#001f23",
|
|
242
239
|
"fontFamily": "BeVietnamPro-Regular",
|
|
243
|
-
"fontSize":
|
|
244
|
-
"letterSpacing": 0.
|
|
245
|
-
"lineHeight":
|
|
240
|
+
"fontSize": 16,
|
|
241
|
+
"letterSpacing": 0.48,
|
|
242
|
+
"lineHeight": 24,
|
|
246
243
|
},
|
|
247
244
|
undefined,
|
|
248
245
|
]
|
|
249
246
|
}
|
|
250
|
-
themeFontSize="medium"
|
|
251
|
-
themeFontWeight="regular"
|
|
252
247
|
themeIntent="body"
|
|
253
248
|
themeTypeface="neutral"
|
|
249
|
+
themeVariant="regular"
|
|
254
250
|
>
|
|
255
251
|
Gross pay
|
|
256
252
|
</Text>
|
|
@@ -261,17 +257,16 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
|
|
|
261
257
|
Object {
|
|
262
258
|
"color": "#001f23",
|
|
263
259
|
"fontFamily": "BeVietnamPro-Regular",
|
|
264
|
-
"fontSize":
|
|
265
|
-
"letterSpacing": 0.
|
|
266
|
-
"lineHeight":
|
|
260
|
+
"fontSize": 16,
|
|
261
|
+
"letterSpacing": 0.48,
|
|
262
|
+
"lineHeight": 24,
|
|
267
263
|
},
|
|
268
264
|
undefined,
|
|
269
265
|
]
|
|
270
266
|
}
|
|
271
|
-
themeFontSize="medium"
|
|
272
|
-
themeFontWeight="regular"
|
|
273
267
|
themeIntent="body"
|
|
274
268
|
themeTypeface="neutral"
|
|
269
|
+
themeVariant="regular"
|
|
275
270
|
>
|
|
276
271
|
$1052.03
|
|
277
272
|
</Text>
|
|
@@ -292,17 +287,16 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
|
|
|
292
287
|
Object {
|
|
293
288
|
"color": "#001f23",
|
|
294
289
|
"fontFamily": "BeVietnamPro-Regular",
|
|
295
|
-
"fontSize":
|
|
296
|
-
"letterSpacing": 0.
|
|
297
|
-
"lineHeight":
|
|
290
|
+
"fontSize": 16,
|
|
291
|
+
"letterSpacing": 0.48,
|
|
292
|
+
"lineHeight": 24,
|
|
298
293
|
},
|
|
299
294
|
undefined,
|
|
300
295
|
]
|
|
301
296
|
}
|
|
302
|
-
themeFontSize="medium"
|
|
303
|
-
themeFontWeight="regular"
|
|
304
297
|
themeIntent="body"
|
|
305
298
|
themeTypeface="neutral"
|
|
299
|
+
themeVariant="regular"
|
|
306
300
|
>
|
|
307
301
|
Gross pay
|
|
308
302
|
</Text>
|
|
@@ -313,17 +307,16 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
|
|
|
313
307
|
Object {
|
|
314
308
|
"color": "#001f23",
|
|
315
309
|
"fontFamily": "BeVietnamPro-Regular",
|
|
316
|
-
"fontSize":
|
|
317
|
-
"letterSpacing": 0.
|
|
318
|
-
"lineHeight":
|
|
310
|
+
"fontSize": 16,
|
|
311
|
+
"letterSpacing": 0.48,
|
|
312
|
+
"lineHeight": 24,
|
|
319
313
|
},
|
|
320
314
|
undefined,
|
|
321
315
|
]
|
|
322
316
|
}
|
|
323
|
-
themeFontSize="medium"
|
|
324
|
-
themeFontWeight="regular"
|
|
325
317
|
themeIntent="body"
|
|
326
318
|
themeTypeface="neutral"
|
|
319
|
+
themeVariant="regular"
|
|
327
320
|
>
|
|
328
321
|
$1052.03
|
|
329
322
|
</Text>
|
|
@@ -405,10 +398,9 @@ exports[`ListItem renders correctly ListItem with icon 1`] = `
|
|
|
405
398
|
undefined,
|
|
406
399
|
]
|
|
407
400
|
}
|
|
408
|
-
themeFontSize="large"
|
|
409
|
-
themeFontWeight="regular"
|
|
410
401
|
themeIntent="body"
|
|
411
402
|
themeTypeface="neutral"
|
|
403
|
+
themeVariant="regular"
|
|
412
404
|
>
|
|
413
405
|
List item
|
|
414
406
|
</Text>
|
|
@@ -420,16 +412,14 @@ exports[`ListItem renders correctly ListItem with icon 1`] = `
|
|
|
420
412
|
"color": "#4d6265",
|
|
421
413
|
"fontFamily": "BeVietnamPro-Regular",
|
|
422
414
|
"fontSize": 12,
|
|
423
|
-
"letterSpacing": 0.
|
|
415
|
+
"letterSpacing": 0.48,
|
|
424
416
|
"lineHeight": 16,
|
|
425
417
|
},
|
|
426
418
|
undefined,
|
|
427
419
|
]
|
|
428
420
|
}
|
|
429
|
-
themeFontSize="small"
|
|
430
421
|
themeFontWeight="regular"
|
|
431
422
|
themeIntent="subdued"
|
|
432
|
-
themeTypeface="neutral"
|
|
433
423
|
>
|
|
434
424
|
subtitle
|
|
435
425
|
</Text>
|
|
@@ -550,10 +540,9 @@ exports[`ListItem renders correctly ListItem with leading status 1`] = `
|
|
|
550
540
|
undefined,
|
|
551
541
|
]
|
|
552
542
|
}
|
|
553
|
-
themeFontSize="large"
|
|
554
|
-
themeFontWeight="regular"
|
|
555
543
|
themeIntent="body"
|
|
556
544
|
themeTypeface="neutral"
|
|
545
|
+
themeVariant="regular"
|
|
557
546
|
>
|
|
558
547
|
03:00 PM - 9:00 PM
|
|
559
548
|
</Text>
|
|
@@ -746,10 +735,9 @@ exports[`ListItem renders correctly ListItem with prefix suffix is React.Element
|
|
|
746
735
|
undefined,
|
|
747
736
|
]
|
|
748
737
|
}
|
|
749
|
-
themeFontSize="large"
|
|
750
|
-
themeFontWeight="regular"
|
|
751
738
|
themeIntent="body"
|
|
752
739
|
themeTypeface="neutral"
|
|
740
|
+
themeVariant="regular"
|
|
753
741
|
>
|
|
754
742
|
List item
|
|
755
743
|
</Text>
|
|
@@ -761,16 +749,14 @@ exports[`ListItem renders correctly ListItem with prefix suffix is React.Element
|
|
|
761
749
|
"color": "#4d6265",
|
|
762
750
|
"fontFamily": "BeVietnamPro-Regular",
|
|
763
751
|
"fontSize": 12,
|
|
764
|
-
"letterSpacing": 0.
|
|
752
|
+
"letterSpacing": 0.48,
|
|
765
753
|
"lineHeight": 16,
|
|
766
754
|
},
|
|
767
755
|
undefined,
|
|
768
756
|
]
|
|
769
757
|
}
|
|
770
|
-
themeFontSize="small"
|
|
771
758
|
themeFontWeight="regular"
|
|
772
759
|
themeIntent="subdued"
|
|
773
|
-
themeTypeface="neutral"
|
|
774
760
|
>
|
|
775
761
|
subtitle
|
|
776
762
|
</Text>
|
|
@@ -33,16 +33,15 @@ exports[`StyledListItemContainer renders correctly themeSelected false themeDisa
|
|
|
33
33
|
"color": "#001f23",
|
|
34
34
|
"fontFamily": "BeVietnamPro-Regular",
|
|
35
35
|
"fontSize": 14,
|
|
36
|
-
"letterSpacing": 0.
|
|
36
|
+
"letterSpacing": 0.48,
|
|
37
37
|
"lineHeight": 22,
|
|
38
38
|
},
|
|
39
39
|
undefined,
|
|
40
40
|
]
|
|
41
41
|
}
|
|
42
|
-
themeFontSize="medium"
|
|
43
|
-
themeFontWeight="regular"
|
|
44
42
|
themeIntent="body"
|
|
45
43
|
themeTypeface="neutral"
|
|
44
|
+
themeVariant="small"
|
|
46
45
|
>
|
|
47
46
|
StyledListItemContainer
|
|
48
47
|
</Text>
|
|
@@ -82,16 +81,15 @@ exports[`StyledListItemContainer renders correctly themeSelected false themeDisa
|
|
|
82
81
|
"color": "#001f23",
|
|
83
82
|
"fontFamily": "BeVietnamPro-Regular",
|
|
84
83
|
"fontSize": 14,
|
|
85
|
-
"letterSpacing": 0.
|
|
84
|
+
"letterSpacing": 0.48,
|
|
86
85
|
"lineHeight": 22,
|
|
87
86
|
},
|
|
88
87
|
undefined,
|
|
89
88
|
]
|
|
90
89
|
}
|
|
91
|
-
themeFontSize="medium"
|
|
92
|
-
themeFontWeight="regular"
|
|
93
90
|
themeIntent="body"
|
|
94
91
|
themeTypeface="neutral"
|
|
92
|
+
themeVariant="small"
|
|
95
93
|
>
|
|
96
94
|
StyledListItemContainer
|
|
97
95
|
</Text>
|
|
@@ -131,16 +129,15 @@ exports[`StyledListItemContainer renders correctly themeSelected true themeDisab
|
|
|
131
129
|
"color": "#001f23",
|
|
132
130
|
"fontFamily": "BeVietnamPro-Regular",
|
|
133
131
|
"fontSize": 14,
|
|
134
|
-
"letterSpacing": 0.
|
|
132
|
+
"letterSpacing": 0.48,
|
|
135
133
|
"lineHeight": 22,
|
|
136
134
|
},
|
|
137
135
|
undefined,
|
|
138
136
|
]
|
|
139
137
|
}
|
|
140
|
-
themeFontSize="medium"
|
|
141
|
-
themeFontWeight="regular"
|
|
142
138
|
themeIntent="body"
|
|
143
139
|
themeTypeface="neutral"
|
|
140
|
+
themeVariant="small"
|
|
144
141
|
>
|
|
145
142
|
StyledListItemContainer
|
|
146
143
|
</Text>
|
|
@@ -180,16 +177,15 @@ exports[`StyledListItemContainer renders correctly themeSelected true themeDisab
|
|
|
180
177
|
"color": "#001f23",
|
|
181
178
|
"fontFamily": "BeVietnamPro-Regular",
|
|
182
179
|
"fontSize": 14,
|
|
183
|
-
"letterSpacing": 0.
|
|
180
|
+
"letterSpacing": 0.48,
|
|
184
181
|
"lineHeight": 22,
|
|
185
182
|
},
|
|
186
183
|
undefined,
|
|
187
184
|
]
|
|
188
185
|
}
|
|
189
|
-
themeFontSize="medium"
|
|
190
|
-
themeFontWeight="regular"
|
|
191
186
|
themeIntent="body"
|
|
192
187
|
themeTypeface="neutral"
|
|
188
|
+
themeVariant="small"
|
|
193
189
|
>
|
|
194
190
|
StyledListItemContainer
|
|
195
191
|
</Text>
|
|
@@ -125,16 +125,15 @@ exports[`ListItemContainer renders correctly themeSelected false themeVariant ca
|
|
|
125
125
|
"color": "#001f23",
|
|
126
126
|
"fontFamily": "BeVietnamPro-Regular",
|
|
127
127
|
"fontSize": 14,
|
|
128
|
-
"letterSpacing": 0.
|
|
128
|
+
"letterSpacing": 0.48,
|
|
129
129
|
"lineHeight": 22,
|
|
130
130
|
},
|
|
131
131
|
undefined,
|
|
132
132
|
]
|
|
133
133
|
}
|
|
134
|
-
themeFontSize="medium"
|
|
135
|
-
themeFontWeight="regular"
|
|
136
134
|
themeIntent="body"
|
|
137
135
|
themeTypeface="neutral"
|
|
136
|
+
themeVariant="small"
|
|
138
137
|
>
|
|
139
138
|
StyledListItemContainer
|
|
140
139
|
</Text>
|
|
@@ -171,16 +170,15 @@ exports[`ListItemContainer renders correctly themeSelected false themeVariant fu
|
|
|
171
170
|
"color": "#001f23",
|
|
172
171
|
"fontFamily": "BeVietnamPro-Regular",
|
|
173
172
|
"fontSize": 14,
|
|
174
|
-
"letterSpacing": 0.
|
|
173
|
+
"letterSpacing": 0.48,
|
|
175
174
|
"lineHeight": 22,
|
|
176
175
|
},
|
|
177
176
|
undefined,
|
|
178
177
|
]
|
|
179
178
|
}
|
|
180
|
-
themeFontSize="medium"
|
|
181
|
-
themeFontWeight="regular"
|
|
182
179
|
themeIntent="body"
|
|
183
180
|
themeTypeface="neutral"
|
|
181
|
+
themeVariant="small"
|
|
184
182
|
>
|
|
185
183
|
StyledListItemContainer
|
|
186
184
|
</Text>
|
|
@@ -227,16 +225,15 @@ exports[`ListItemContainer renders correctly themeSelected true themeVariant car
|
|
|
227
225
|
"color": "#001f23",
|
|
228
226
|
"fontFamily": "BeVietnamPro-Regular",
|
|
229
227
|
"fontSize": 14,
|
|
230
|
-
"letterSpacing": 0.
|
|
228
|
+
"letterSpacing": 0.48,
|
|
231
229
|
"lineHeight": 22,
|
|
232
230
|
},
|
|
233
231
|
undefined,
|
|
234
232
|
]
|
|
235
233
|
}
|
|
236
|
-
themeFontSize="medium"
|
|
237
|
-
themeFontWeight="regular"
|
|
238
234
|
themeIntent="body"
|
|
239
235
|
themeTypeface="neutral"
|
|
236
|
+
themeVariant="small"
|
|
240
237
|
>
|
|
241
238
|
StyledListItemContainer
|
|
242
239
|
</Text>
|
|
@@ -273,16 +270,15 @@ exports[`ListItemContainer renders correctly themeSelected true themeVariant ful
|
|
|
273
270
|
"color": "#001f23",
|
|
274
271
|
"fontFamily": "BeVietnamPro-Regular",
|
|
275
272
|
"fontSize": 14,
|
|
276
|
-
"letterSpacing": 0.
|
|
273
|
+
"letterSpacing": 0.48,
|
|
277
274
|
"lineHeight": 22,
|
|
278
275
|
},
|
|
279
276
|
undefined,
|
|
280
277
|
]
|
|
281
278
|
}
|
|
282
|
-
themeFontSize="medium"
|
|
283
|
-
themeFontWeight="regular"
|
|
284
279
|
themeIntent="body"
|
|
285
280
|
themeTypeface="neutral"
|
|
281
|
+
themeVariant="small"
|
|
286
282
|
>
|
|
287
283
|
StyledListItemContainer
|
|
288
284
|
</Text>
|
|
@@ -25,7 +25,9 @@ function PinCell({
|
|
|
25
25
|
<StyledFilledMask themeState={state} testID="pin-cell-filled-mask" />
|
|
26
26
|
)}
|
|
27
27
|
{value !== '' && !secure && (
|
|
28
|
-
<StyledCellText themeState={state}>
|
|
28
|
+
<StyledCellText themeState={state} level="h3">
|
|
29
|
+
{value}
|
|
30
|
+
</StyledCellText>
|
|
29
31
|
)}
|
|
30
32
|
</StyledCell>
|
|
31
33
|
);
|
|
@@ -27,12 +27,9 @@ export const StyledCell = styled(View)<{
|
|
|
27
27
|
borderColor: theme.__hd__.pinInput.colors[themeState],
|
|
28
28
|
}));
|
|
29
29
|
|
|
30
|
-
export const StyledCellText = styled(Typography.
|
|
30
|
+
export const StyledCellText = styled(Typography.Title)<{
|
|
31
31
|
themeState: State;
|
|
32
32
|
}>(({ theme, themeState }) => ({
|
|
33
|
-
fontFamily: theme.__hd__.pinInput.fonts.cellText,
|
|
34
|
-
fontSize: theme.__hd__.pinInput.fontSizes.cellText,
|
|
35
|
-
lineHeight: theme.__hd__.pinInput.lineHeights.cellText,
|
|
36
33
|
color: theme.__hd__.pinInput.colors[themeState],
|
|
37
34
|
}));
|
|
38
35
|
|
|
@@ -83,9 +80,7 @@ export const StyledErrorContainer = styled(View)(({ theme }) => ({
|
|
|
83
80
|
alignItems: 'center',
|
|
84
81
|
}));
|
|
85
82
|
|
|
86
|
-
export const StyledErrorMessage = styled(Typography.
|
|
87
|
-
fontFamily: theme.__hd__.pinInput.fonts.errorMessage,
|
|
88
|
-
fontSize: theme.__hd__.pinInput.fontSizes.errorMessage,
|
|
83
|
+
export const StyledErrorMessage = styled(Typography.Caption)(({ theme }) => ({
|
|
89
84
|
color: theme.__hd__.pinInput.colors.error,
|
|
90
85
|
paddingLeft: theme.__hd__.pinInput.space.errorMessagePadding,
|
|
91
86
|
}));
|
|
@@ -25,25 +25,21 @@ exports[`PinCell renders correctly when focused is false, state is default 1`] =
|
|
|
25
25
|
Array [
|
|
26
26
|
Object {
|
|
27
27
|
"color": "#001f23",
|
|
28
|
-
"fontFamily": "BeVietnamPro-
|
|
29
|
-
"fontSize":
|
|
30
|
-
"letterSpacing": 0.
|
|
31
|
-
"lineHeight":
|
|
28
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
29
|
+
"fontSize": 28,
|
|
30
|
+
"letterSpacing": 0.24,
|
|
31
|
+
"lineHeight": 36,
|
|
32
32
|
},
|
|
33
33
|
Array [
|
|
34
34
|
Object {
|
|
35
35
|
"color": "#001f23",
|
|
36
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
37
|
-
"fontSize": 28,
|
|
38
|
-
"lineHeight": 36,
|
|
39
36
|
},
|
|
40
37
|
undefined,
|
|
41
38
|
],
|
|
42
39
|
]
|
|
43
40
|
}
|
|
44
|
-
themeFontSize="medium"
|
|
45
|
-
themeFontWeight="regular"
|
|
46
41
|
themeIntent="body"
|
|
42
|
+
themeLevel="h3"
|
|
47
43
|
themeState="default"
|
|
48
44
|
themeTypeface="neutral"
|
|
49
45
|
>
|
|
@@ -77,25 +73,21 @@ exports[`PinCell renders correctly when focused is false, state is disabled 1`]
|
|
|
77
73
|
Array [
|
|
78
74
|
Object {
|
|
79
75
|
"color": "#001f23",
|
|
80
|
-
"fontFamily": "BeVietnamPro-
|
|
81
|
-
"fontSize":
|
|
82
|
-
"letterSpacing": 0.
|
|
83
|
-
"lineHeight":
|
|
76
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
77
|
+
"fontSize": 28,
|
|
78
|
+
"letterSpacing": 0.24,
|
|
79
|
+
"lineHeight": 36,
|
|
84
80
|
},
|
|
85
81
|
Array [
|
|
86
82
|
Object {
|
|
87
83
|
"color": "#bfc1c5",
|
|
88
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
89
|
-
"fontSize": 28,
|
|
90
|
-
"lineHeight": 36,
|
|
91
84
|
},
|
|
92
85
|
undefined,
|
|
93
86
|
],
|
|
94
87
|
]
|
|
95
88
|
}
|
|
96
|
-
themeFontSize="medium"
|
|
97
|
-
themeFontWeight="regular"
|
|
98
89
|
themeIntent="body"
|
|
90
|
+
themeLevel="h3"
|
|
99
91
|
themeState="disabled"
|
|
100
92
|
themeTypeface="neutral"
|
|
101
93
|
>
|
|
@@ -129,25 +121,21 @@ exports[`PinCell renders correctly when focused is false, state is error 1`] = `
|
|
|
129
121
|
Array [
|
|
130
122
|
Object {
|
|
131
123
|
"color": "#001f23",
|
|
132
|
-
"fontFamily": "BeVietnamPro-
|
|
133
|
-
"fontSize":
|
|
134
|
-
"letterSpacing": 0.
|
|
135
|
-
"lineHeight":
|
|
124
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
125
|
+
"fontSize": 28,
|
|
126
|
+
"letterSpacing": 0.24,
|
|
127
|
+
"lineHeight": 36,
|
|
136
128
|
},
|
|
137
129
|
Array [
|
|
138
130
|
Object {
|
|
139
131
|
"color": "#de350b",
|
|
140
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
141
|
-
"fontSize": 28,
|
|
142
|
-
"lineHeight": 36,
|
|
143
132
|
},
|
|
144
133
|
undefined,
|
|
145
134
|
],
|
|
146
135
|
]
|
|
147
136
|
}
|
|
148
|
-
themeFontSize="medium"
|
|
149
|
-
themeFontWeight="regular"
|
|
150
137
|
themeIntent="body"
|
|
138
|
+
themeLevel="h3"
|
|
151
139
|
themeState="error"
|
|
152
140
|
themeTypeface="neutral"
|
|
153
141
|
>
|
|
@@ -181,25 +169,21 @@ exports[`PinCell renders correctly when focused is true, state is default 1`] =
|
|
|
181
169
|
Array [
|
|
182
170
|
Object {
|
|
183
171
|
"color": "#001f23",
|
|
184
|
-
"fontFamily": "BeVietnamPro-
|
|
185
|
-
"fontSize":
|
|
186
|
-
"letterSpacing": 0.
|
|
187
|
-
"lineHeight":
|
|
172
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
173
|
+
"fontSize": 28,
|
|
174
|
+
"letterSpacing": 0.24,
|
|
175
|
+
"lineHeight": 36,
|
|
188
176
|
},
|
|
189
177
|
Array [
|
|
190
178
|
Object {
|
|
191
179
|
"color": "#001f23",
|
|
192
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
193
|
-
"fontSize": 28,
|
|
194
|
-
"lineHeight": 36,
|
|
195
180
|
},
|
|
196
181
|
undefined,
|
|
197
182
|
],
|
|
198
183
|
]
|
|
199
184
|
}
|
|
200
|
-
themeFontSize="medium"
|
|
201
|
-
themeFontWeight="regular"
|
|
202
185
|
themeIntent="body"
|
|
186
|
+
themeLevel="h3"
|
|
203
187
|
themeState="default"
|
|
204
188
|
themeTypeface="neutral"
|
|
205
189
|
>
|
|
@@ -233,25 +217,21 @@ exports[`PinCell renders correctly when focused is true, state is error 1`] = `
|
|
|
233
217
|
Array [
|
|
234
218
|
Object {
|
|
235
219
|
"color": "#001f23",
|
|
236
|
-
"fontFamily": "BeVietnamPro-
|
|
237
|
-
"fontSize":
|
|
238
|
-
"letterSpacing": 0.
|
|
239
|
-
"lineHeight":
|
|
220
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
221
|
+
"fontSize": 28,
|
|
222
|
+
"letterSpacing": 0.24,
|
|
223
|
+
"lineHeight": 36,
|
|
240
224
|
},
|
|
241
225
|
Array [
|
|
242
226
|
Object {
|
|
243
227
|
"color": "#de350b",
|
|
244
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
245
|
-
"fontSize": 28,
|
|
246
|
-
"lineHeight": 36,
|
|
247
228
|
},
|
|
248
229
|
undefined,
|
|
249
230
|
],
|
|
250
231
|
]
|
|
251
232
|
}
|
|
252
|
-
themeFontSize="medium"
|
|
253
|
-
themeFontWeight="regular"
|
|
254
233
|
themeIntent="body"
|
|
234
|
+
themeLevel="h3"
|
|
255
235
|
themeState="error"
|
|
256
236
|
themeTypeface="neutral"
|
|
257
237
|
>
|
|
@@ -497,25 +497,21 @@ exports[`rendering renders correctly when length is 6 and secure is false 1`] =
|
|
|
497
497
|
Array [
|
|
498
498
|
Object {
|
|
499
499
|
"color": "#001f23",
|
|
500
|
-
"fontFamily": "BeVietnamPro-
|
|
501
|
-
"fontSize":
|
|
502
|
-
"letterSpacing": 0.
|
|
503
|
-
"lineHeight":
|
|
500
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
501
|
+
"fontSize": 28,
|
|
502
|
+
"letterSpacing": 0.24,
|
|
503
|
+
"lineHeight": 36,
|
|
504
504
|
},
|
|
505
505
|
Array [
|
|
506
506
|
Object {
|
|
507
507
|
"color": "#001f23",
|
|
508
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
509
|
-
"fontSize": 28,
|
|
510
|
-
"lineHeight": 36,
|
|
511
508
|
},
|
|
512
509
|
undefined,
|
|
513
510
|
],
|
|
514
511
|
]
|
|
515
512
|
}
|
|
516
|
-
themeFontSize="medium"
|
|
517
|
-
themeFontWeight="regular"
|
|
518
513
|
themeIntent="body"
|
|
514
|
+
themeLevel="h3"
|
|
519
515
|
themeState="default"
|
|
520
516
|
themeTypeface="neutral"
|
|
521
517
|
>
|
|
@@ -556,25 +552,21 @@ exports[`rendering renders correctly when length is 6 and secure is false 1`] =
|
|
|
556
552
|
Array [
|
|
557
553
|
Object {
|
|
558
554
|
"color": "#001f23",
|
|
559
|
-
"fontFamily": "BeVietnamPro-
|
|
560
|
-
"fontSize":
|
|
561
|
-
"letterSpacing": 0.
|
|
562
|
-
"lineHeight":
|
|
555
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
556
|
+
"fontSize": 28,
|
|
557
|
+
"letterSpacing": 0.24,
|
|
558
|
+
"lineHeight": 36,
|
|
563
559
|
},
|
|
564
560
|
Array [
|
|
565
561
|
Object {
|
|
566
562
|
"color": "#001f23",
|
|
567
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
568
|
-
"fontSize": 28,
|
|
569
|
-
"lineHeight": 36,
|
|
570
563
|
},
|
|
571
564
|
undefined,
|
|
572
565
|
],
|
|
573
566
|
]
|
|
574
567
|
}
|
|
575
|
-
themeFontSize="medium"
|
|
576
|
-
themeFontWeight="regular"
|
|
577
568
|
themeIntent="body"
|
|
569
|
+
themeLevel="h3"
|
|
578
570
|
themeState="default"
|
|
579
571
|
themeTypeface="neutral"
|
|
580
572
|
>
|
|
@@ -615,25 +607,21 @@ exports[`rendering renders correctly when length is 6 and secure is false 1`] =
|
|
|
615
607
|
Array [
|
|
616
608
|
Object {
|
|
617
609
|
"color": "#001f23",
|
|
618
|
-
"fontFamily": "BeVietnamPro-
|
|
619
|
-
"fontSize":
|
|
620
|
-
"letterSpacing": 0.
|
|
621
|
-
"lineHeight":
|
|
610
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
611
|
+
"fontSize": 28,
|
|
612
|
+
"letterSpacing": 0.24,
|
|
613
|
+
"lineHeight": 36,
|
|
622
614
|
},
|
|
623
615
|
Array [
|
|
624
616
|
Object {
|
|
625
617
|
"color": "#001f23",
|
|
626
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
627
|
-
"fontSize": 28,
|
|
628
|
-
"lineHeight": 36,
|
|
629
618
|
},
|
|
630
619
|
undefined,
|
|
631
620
|
],
|
|
632
621
|
]
|
|
633
622
|
}
|
|
634
|
-
themeFontSize="medium"
|
|
635
|
-
themeFontWeight="regular"
|
|
636
623
|
themeIntent="body"
|
|
624
|
+
themeLevel="h3"
|
|
637
625
|
themeState="default"
|
|
638
626
|
themeTypeface="neutral"
|
|
639
627
|
>
|
|
@@ -1036,25 +1024,21 @@ exports[`rendering renders correctly when there is error 1`] = `
|
|
|
1036
1024
|
Object {
|
|
1037
1025
|
"color": "#001f23",
|
|
1038
1026
|
"fontFamily": "BeVietnamPro-Regular",
|
|
1039
|
-
"fontSize":
|
|
1040
|
-
"letterSpacing": 0.
|
|
1041
|
-
"lineHeight":
|
|
1027
|
+
"fontSize": 12,
|
|
1028
|
+
"letterSpacing": 0.48,
|
|
1029
|
+
"lineHeight": 16,
|
|
1042
1030
|
},
|
|
1043
1031
|
Array [
|
|
1044
1032
|
Object {
|
|
1045
1033
|
"color": "#de350b",
|
|
1046
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
1047
|
-
"fontSize": 12,
|
|
1048
1034
|
"paddingLeft": 4,
|
|
1049
1035
|
},
|
|
1050
1036
|
undefined,
|
|
1051
1037
|
],
|
|
1052
1038
|
]
|
|
1053
1039
|
}
|
|
1054
|
-
themeFontSize="medium"
|
|
1055
1040
|
themeFontWeight="regular"
|
|
1056
1041
|
themeIntent="body"
|
|
1057
|
-
themeTypeface="neutral"
|
|
1058
1042
|
>
|
|
1059
1043
|
PIN is not correct
|
|
1060
1044
|
</Text>
|
|
@@ -171,9 +171,7 @@ const ProgressCircle = ({
|
|
|
171
171
|
<StyledStrokeEnd themeIntent={intent} />
|
|
172
172
|
</Animated.View>
|
|
173
173
|
<StyledDonutCircle>
|
|
174
|
-
<Typography.
|
|
175
|
-
{renderValue(value)}
|
|
176
|
-
</Typography.Text>
|
|
174
|
+
<Typography.Body>{renderValue(value)}</Typography.Body>
|
|
177
175
|
</StyledDonutCircle>
|
|
178
176
|
</StyledContainer>
|
|
179
177
|
</View>
|