@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
|
@@ -65,17 +65,14 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
65
65
|
Array [
|
|
66
66
|
Object {
|
|
67
67
|
"color": "#001f23",
|
|
68
|
-
"fontFamily": "BeVietnamPro-
|
|
69
|
-
"fontSize":
|
|
70
|
-
"letterSpacing": 0
|
|
71
|
-
"lineHeight":
|
|
68
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
69
|
+
"fontSize": 24,
|
|
70
|
+
"letterSpacing": 0,
|
|
71
|
+
"lineHeight": 32,
|
|
72
72
|
},
|
|
73
73
|
Array [
|
|
74
74
|
Object {
|
|
75
75
|
"color": "#001f23",
|
|
76
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
77
|
-
"fontSize": 24,
|
|
78
|
-
"lineHeight": 32,
|
|
79
76
|
"marginBottom": 24,
|
|
80
77
|
"marginRight": 24,
|
|
81
78
|
"textAlign": "right",
|
|
@@ -85,9 +82,8 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
85
82
|
]
|
|
86
83
|
}
|
|
87
84
|
testID="header-text"
|
|
88
|
-
themeFontSize="medium"
|
|
89
|
-
themeFontWeight="regular"
|
|
90
85
|
themeIntent="body"
|
|
86
|
+
themeLevel="h4"
|
|
91
87
|
themeTypeface="neutral"
|
|
92
88
|
>
|
|
93
89
|
What would you like to create?
|
|
@@ -189,26 +185,21 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
189
185
|
Object {
|
|
190
186
|
"color": "#001f23",
|
|
191
187
|
"fontFamily": "BeVietnamPro-Regular",
|
|
192
|
-
"fontSize":
|
|
193
|
-
"letterSpacing": 0.
|
|
194
|
-
"lineHeight":
|
|
188
|
+
"fontSize": 16,
|
|
189
|
+
"letterSpacing": 0.48,
|
|
190
|
+
"lineHeight": 24,
|
|
195
191
|
},
|
|
196
192
|
Array [
|
|
197
193
|
Object {
|
|
198
194
|
"color": "#ffffff",
|
|
199
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
200
|
-
"fontSize": 16,
|
|
201
|
-
"lineHeight": 22,
|
|
202
|
-
"paddingLeft": 4,
|
|
203
195
|
},
|
|
204
196
|
undefined,
|
|
205
197
|
],
|
|
206
198
|
]
|
|
207
199
|
}
|
|
208
|
-
themeFontSize="medium"
|
|
209
|
-
themeFontWeight="regular"
|
|
210
200
|
themeIntent="body"
|
|
211
201
|
themeTypeface="neutral"
|
|
202
|
+
themeVariant="regular"
|
|
212
203
|
>
|
|
213
204
|
Give shout out
|
|
214
205
|
</Text>
|
|
@@ -297,26 +288,21 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
297
288
|
Object {
|
|
298
289
|
"color": "#001f23",
|
|
299
290
|
"fontFamily": "BeVietnamPro-Regular",
|
|
300
|
-
"fontSize":
|
|
301
|
-
"letterSpacing": 0.
|
|
302
|
-
"lineHeight":
|
|
291
|
+
"fontSize": 16,
|
|
292
|
+
"letterSpacing": 0.48,
|
|
293
|
+
"lineHeight": 24,
|
|
303
294
|
},
|
|
304
295
|
Array [
|
|
305
296
|
Object {
|
|
306
297
|
"color": "#ffffff",
|
|
307
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
308
|
-
"fontSize": 16,
|
|
309
|
-
"lineHeight": 22,
|
|
310
|
-
"paddingLeft": 4,
|
|
311
298
|
},
|
|
312
299
|
undefined,
|
|
313
300
|
],
|
|
314
301
|
]
|
|
315
302
|
}
|
|
316
|
-
themeFontSize="medium"
|
|
317
|
-
themeFontWeight="regular"
|
|
318
303
|
themeIntent="body"
|
|
319
304
|
themeTypeface="neutral"
|
|
305
|
+
themeVariant="regular"
|
|
320
306
|
>
|
|
321
307
|
Goal
|
|
322
308
|
</Text>
|
|
@@ -405,26 +391,21 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
405
391
|
Object {
|
|
406
392
|
"color": "#001f23",
|
|
407
393
|
"fontFamily": "BeVietnamPro-Regular",
|
|
408
|
-
"fontSize":
|
|
409
|
-
"letterSpacing": 0.
|
|
410
|
-
"lineHeight":
|
|
394
|
+
"fontSize": 16,
|
|
395
|
+
"letterSpacing": 0.48,
|
|
396
|
+
"lineHeight": 24,
|
|
411
397
|
},
|
|
412
398
|
Array [
|
|
413
399
|
Object {
|
|
414
400
|
"color": "#ffffff",
|
|
415
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
416
|
-
"fontSize": 16,
|
|
417
|
-
"lineHeight": 22,
|
|
418
|
-
"paddingLeft": 4,
|
|
419
401
|
},
|
|
420
402
|
undefined,
|
|
421
403
|
],
|
|
422
404
|
]
|
|
423
405
|
}
|
|
424
|
-
themeFontSize="medium"
|
|
425
|
-
themeFontWeight="regular"
|
|
426
406
|
themeIntent="body"
|
|
427
407
|
themeTypeface="neutral"
|
|
408
|
+
themeVariant="regular"
|
|
428
409
|
>
|
|
429
410
|
Leave request
|
|
430
411
|
</Text>
|
|
@@ -513,26 +494,21 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
513
494
|
Object {
|
|
514
495
|
"color": "#001f23",
|
|
515
496
|
"fontFamily": "BeVietnamPro-Regular",
|
|
516
|
-
"fontSize":
|
|
517
|
-
"letterSpacing": 0.
|
|
518
|
-
"lineHeight":
|
|
497
|
+
"fontSize": 16,
|
|
498
|
+
"letterSpacing": 0.48,
|
|
499
|
+
"lineHeight": 24,
|
|
519
500
|
},
|
|
520
501
|
Array [
|
|
521
502
|
Object {
|
|
522
503
|
"color": "#ffffff",
|
|
523
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
524
|
-
"fontSize": 16,
|
|
525
|
-
"lineHeight": 22,
|
|
526
|
-
"paddingLeft": 4,
|
|
527
504
|
},
|
|
528
505
|
undefined,
|
|
529
506
|
],
|
|
530
507
|
]
|
|
531
508
|
}
|
|
532
|
-
themeFontSize="medium"
|
|
533
|
-
themeFontWeight="regular"
|
|
534
509
|
themeIntent="body"
|
|
535
510
|
themeTypeface="neutral"
|
|
511
|
+
themeVariant="regular"
|
|
536
512
|
>
|
|
537
513
|
Safety incident
|
|
538
514
|
</Text>
|
|
@@ -621,26 +597,21 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
621
597
|
Object {
|
|
622
598
|
"color": "#001f23",
|
|
623
599
|
"fontFamily": "BeVietnamPro-Regular",
|
|
624
|
-
"fontSize":
|
|
625
|
-
"letterSpacing": 0.
|
|
626
|
-
"lineHeight":
|
|
600
|
+
"fontSize": 16,
|
|
601
|
+
"letterSpacing": 0.48,
|
|
602
|
+
"lineHeight": 24,
|
|
627
603
|
},
|
|
628
604
|
Array [
|
|
629
605
|
Object {
|
|
630
606
|
"color": "#ffffff",
|
|
631
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
632
|
-
"fontSize": 16,
|
|
633
|
-
"lineHeight": 22,
|
|
634
|
-
"paddingLeft": 4,
|
|
635
607
|
},
|
|
636
608
|
undefined,
|
|
637
609
|
],
|
|
638
610
|
]
|
|
639
611
|
}
|
|
640
|
-
themeFontSize="medium"
|
|
641
|
-
themeFontWeight="regular"
|
|
642
612
|
themeIntent="body"
|
|
643
613
|
themeTypeface="neutral"
|
|
614
|
+
themeVariant="regular"
|
|
644
615
|
>
|
|
645
616
|
Timesheets
|
|
646
617
|
</Text>
|
|
@@ -742,16 +713,13 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
742
713
|
Object {
|
|
743
714
|
"color": "#001f23",
|
|
744
715
|
"fontFamily": "BeVietnamPro-Regular",
|
|
745
|
-
"fontSize":
|
|
746
|
-
"letterSpacing": 0.
|
|
747
|
-
"lineHeight":
|
|
716
|
+
"fontSize": 16,
|
|
717
|
+
"letterSpacing": 0.48,
|
|
718
|
+
"lineHeight": 24,
|
|
748
719
|
},
|
|
749
720
|
Array [
|
|
750
721
|
Object {
|
|
751
722
|
"color": "#ffffff",
|
|
752
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
753
|
-
"fontSize": 16,
|
|
754
|
-
"lineHeight": 24,
|
|
755
723
|
"marginHorizontal": 8,
|
|
756
724
|
"textAlign": "center",
|
|
757
725
|
"textAlignVertical": "center",
|
|
@@ -760,10 +728,9 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
760
728
|
],
|
|
761
729
|
]
|
|
762
730
|
}
|
|
763
|
-
themeFontSize="medium"
|
|
764
|
-
themeFontWeight="regular"
|
|
765
731
|
themeIntent="body"
|
|
766
732
|
themeTypeface="neutral"
|
|
733
|
+
themeVariant="regular"
|
|
767
734
|
>
|
|
768
735
|
Shout out
|
|
769
736
|
</Text>
|
|
@@ -836,17 +803,14 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
836
803
|
Array [
|
|
837
804
|
Object {
|
|
838
805
|
"color": "#001f23",
|
|
839
|
-
"fontFamily": "BeVietnamPro-
|
|
840
|
-
"fontSize":
|
|
841
|
-
"letterSpacing": 0
|
|
842
|
-
"lineHeight":
|
|
806
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
807
|
+
"fontSize": 24,
|
|
808
|
+
"letterSpacing": 0,
|
|
809
|
+
"lineHeight": 32,
|
|
843
810
|
},
|
|
844
811
|
Array [
|
|
845
812
|
Object {
|
|
846
813
|
"color": "#001f23",
|
|
847
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
848
|
-
"fontSize": 24,
|
|
849
|
-
"lineHeight": 32,
|
|
850
814
|
"marginBottom": 24,
|
|
851
815
|
"marginRight": 24,
|
|
852
816
|
"textAlign": "right",
|
|
@@ -856,9 +820,8 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
856
820
|
]
|
|
857
821
|
}
|
|
858
822
|
testID="header-text"
|
|
859
|
-
themeFontSize="medium"
|
|
860
|
-
themeFontWeight="regular"
|
|
861
823
|
themeIntent="body"
|
|
824
|
+
themeLevel="h4"
|
|
862
825
|
themeTypeface="neutral"
|
|
863
826
|
>
|
|
864
827
|
What would you like to create?
|
|
@@ -960,26 +923,21 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
960
923
|
Object {
|
|
961
924
|
"color": "#001f23",
|
|
962
925
|
"fontFamily": "BeVietnamPro-Regular",
|
|
963
|
-
"fontSize":
|
|
964
|
-
"letterSpacing": 0.
|
|
965
|
-
"lineHeight":
|
|
926
|
+
"fontSize": 16,
|
|
927
|
+
"letterSpacing": 0.48,
|
|
928
|
+
"lineHeight": 24,
|
|
966
929
|
},
|
|
967
930
|
Array [
|
|
968
931
|
Object {
|
|
969
932
|
"color": "#ffffff",
|
|
970
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
971
|
-
"fontSize": 16,
|
|
972
|
-
"lineHeight": 22,
|
|
973
|
-
"paddingLeft": 4,
|
|
974
933
|
},
|
|
975
934
|
undefined,
|
|
976
935
|
],
|
|
977
936
|
]
|
|
978
937
|
}
|
|
979
|
-
themeFontSize="medium"
|
|
980
|
-
themeFontWeight="regular"
|
|
981
938
|
themeIntent="body"
|
|
982
939
|
themeTypeface="neutral"
|
|
940
|
+
themeVariant="regular"
|
|
983
941
|
>
|
|
984
942
|
Give shout out
|
|
985
943
|
</Text>
|
|
@@ -1068,26 +1026,21 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
1068
1026
|
Object {
|
|
1069
1027
|
"color": "#001f23",
|
|
1070
1028
|
"fontFamily": "BeVietnamPro-Regular",
|
|
1071
|
-
"fontSize":
|
|
1072
|
-
"letterSpacing": 0.
|
|
1073
|
-
"lineHeight":
|
|
1029
|
+
"fontSize": 16,
|
|
1030
|
+
"letterSpacing": 0.48,
|
|
1031
|
+
"lineHeight": 24,
|
|
1074
1032
|
},
|
|
1075
1033
|
Array [
|
|
1076
1034
|
Object {
|
|
1077
1035
|
"color": "#ffffff",
|
|
1078
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
1079
|
-
"fontSize": 16,
|
|
1080
|
-
"lineHeight": 22,
|
|
1081
|
-
"paddingLeft": 4,
|
|
1082
1036
|
},
|
|
1083
1037
|
undefined,
|
|
1084
1038
|
],
|
|
1085
1039
|
]
|
|
1086
1040
|
}
|
|
1087
|
-
themeFontSize="medium"
|
|
1088
|
-
themeFontWeight="regular"
|
|
1089
1041
|
themeIntent="body"
|
|
1090
1042
|
themeTypeface="neutral"
|
|
1043
|
+
themeVariant="regular"
|
|
1091
1044
|
>
|
|
1092
1045
|
Goal
|
|
1093
1046
|
</Text>
|
|
@@ -1176,26 +1129,21 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
1176
1129
|
Object {
|
|
1177
1130
|
"color": "#001f23",
|
|
1178
1131
|
"fontFamily": "BeVietnamPro-Regular",
|
|
1179
|
-
"fontSize":
|
|
1180
|
-
"letterSpacing": 0.
|
|
1181
|
-
"lineHeight":
|
|
1132
|
+
"fontSize": 16,
|
|
1133
|
+
"letterSpacing": 0.48,
|
|
1134
|
+
"lineHeight": 24,
|
|
1182
1135
|
},
|
|
1183
1136
|
Array [
|
|
1184
1137
|
Object {
|
|
1185
1138
|
"color": "#ffffff",
|
|
1186
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
1187
|
-
"fontSize": 16,
|
|
1188
|
-
"lineHeight": 22,
|
|
1189
|
-
"paddingLeft": 4,
|
|
1190
1139
|
},
|
|
1191
1140
|
undefined,
|
|
1192
1141
|
],
|
|
1193
1142
|
]
|
|
1194
1143
|
}
|
|
1195
|
-
themeFontSize="medium"
|
|
1196
|
-
themeFontWeight="regular"
|
|
1197
1144
|
themeIntent="body"
|
|
1198
1145
|
themeTypeface="neutral"
|
|
1146
|
+
themeVariant="regular"
|
|
1199
1147
|
>
|
|
1200
1148
|
Leave request
|
|
1201
1149
|
</Text>
|
|
@@ -1284,26 +1232,21 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
1284
1232
|
Object {
|
|
1285
1233
|
"color": "#001f23",
|
|
1286
1234
|
"fontFamily": "BeVietnamPro-Regular",
|
|
1287
|
-
"fontSize":
|
|
1288
|
-
"letterSpacing": 0.
|
|
1289
|
-
"lineHeight":
|
|
1235
|
+
"fontSize": 16,
|
|
1236
|
+
"letterSpacing": 0.48,
|
|
1237
|
+
"lineHeight": 24,
|
|
1290
1238
|
},
|
|
1291
1239
|
Array [
|
|
1292
1240
|
Object {
|
|
1293
1241
|
"color": "#ffffff",
|
|
1294
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
1295
|
-
"fontSize": 16,
|
|
1296
|
-
"lineHeight": 22,
|
|
1297
|
-
"paddingLeft": 4,
|
|
1298
1242
|
},
|
|
1299
1243
|
undefined,
|
|
1300
1244
|
],
|
|
1301
1245
|
]
|
|
1302
1246
|
}
|
|
1303
|
-
themeFontSize="medium"
|
|
1304
|
-
themeFontWeight="regular"
|
|
1305
1247
|
themeIntent="body"
|
|
1306
1248
|
themeTypeface="neutral"
|
|
1249
|
+
themeVariant="regular"
|
|
1307
1250
|
>
|
|
1308
1251
|
Safety incident
|
|
1309
1252
|
</Text>
|
|
@@ -1392,26 +1335,21 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
1392
1335
|
Object {
|
|
1393
1336
|
"color": "#001f23",
|
|
1394
1337
|
"fontFamily": "BeVietnamPro-Regular",
|
|
1395
|
-
"fontSize":
|
|
1396
|
-
"letterSpacing": 0.
|
|
1397
|
-
"lineHeight":
|
|
1338
|
+
"fontSize": 16,
|
|
1339
|
+
"letterSpacing": 0.48,
|
|
1340
|
+
"lineHeight": 24,
|
|
1398
1341
|
},
|
|
1399
1342
|
Array [
|
|
1400
1343
|
Object {
|
|
1401
1344
|
"color": "#ffffff",
|
|
1402
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
1403
|
-
"fontSize": 16,
|
|
1404
|
-
"lineHeight": 22,
|
|
1405
|
-
"paddingLeft": 4,
|
|
1406
1345
|
},
|
|
1407
1346
|
undefined,
|
|
1408
1347
|
],
|
|
1409
1348
|
]
|
|
1410
1349
|
}
|
|
1411
|
-
themeFontSize="medium"
|
|
1412
|
-
themeFontWeight="regular"
|
|
1413
1350
|
themeIntent="body"
|
|
1414
1351
|
themeTypeface="neutral"
|
|
1352
|
+
themeVariant="regular"
|
|
1415
1353
|
>
|
|
1416
1354
|
Timesheets
|
|
1417
1355
|
</Text>
|
|
@@ -141,7 +141,7 @@ const ActionGroup = forwardRef<ActionGroupHandles, ActionGroupProps>(
|
|
|
141
141
|
<Animated.View
|
|
142
142
|
style={{ transform: [{ translateY: titleTranslateY }] }}
|
|
143
143
|
>
|
|
144
|
-
<StyledHeaderText testID="header-text">
|
|
144
|
+
<StyledHeaderText testID="header-text" level="h4">
|
|
145
145
|
{headerTitle}
|
|
146
146
|
</StyledHeaderText>
|
|
147
147
|
</Animated.View>
|
|
@@ -30,10 +30,7 @@ const StyledFABIcon = styled(Icon)<IconProps>(({ theme }) => ({
|
|
|
30
30
|
textAlign: 'center',
|
|
31
31
|
}));
|
|
32
32
|
|
|
33
|
-
const StyledFABText = styled(Typography.
|
|
34
|
-
fontFamily: theme.__hd__.fab.fonts.title,
|
|
35
|
-
fontSize: theme.__hd__.fab.fontSizes.title,
|
|
36
|
-
lineHeight: theme.__hd__.fab.lineHeights.title,
|
|
33
|
+
const StyledFABText = styled(Typography.Body)<TextProps>(({ theme }) => ({
|
|
37
34
|
color: theme.__hd__.fab.colors.titleText,
|
|
38
35
|
textAlignVertical: 'center',
|
|
39
36
|
textAlign: 'center',
|
|
@@ -42,16 +42,15 @@ exports[`StyledFAB renders correctly 1`] = `
|
|
|
42
42
|
"color": "#001f23",
|
|
43
43
|
"fontFamily": "BeVietnamPro-Regular",
|
|
44
44
|
"fontSize": 14,
|
|
45
|
-
"letterSpacing": 0.
|
|
45
|
+
"letterSpacing": 0.48,
|
|
46
46
|
"lineHeight": 22,
|
|
47
47
|
},
|
|
48
48
|
undefined,
|
|
49
49
|
]
|
|
50
50
|
}
|
|
51
|
-
themeFontSize="medium"
|
|
52
|
-
themeFontWeight="regular"
|
|
53
51
|
themeIntent="body"
|
|
54
52
|
themeTypeface="neutral"
|
|
53
|
+
themeVariant="small"
|
|
55
54
|
>
|
|
56
55
|
button
|
|
57
56
|
</Text>
|
|
@@ -255,16 +255,13 @@ exports[`FAB when title has value renders correctly 1`] = `
|
|
|
255
255
|
Object {
|
|
256
256
|
"color": "#001f23",
|
|
257
257
|
"fontFamily": "BeVietnamPro-Regular",
|
|
258
|
-
"fontSize":
|
|
259
|
-
"letterSpacing": 0.
|
|
260
|
-
"lineHeight":
|
|
258
|
+
"fontSize": 16,
|
|
259
|
+
"letterSpacing": 0.48,
|
|
260
|
+
"lineHeight": 24,
|
|
261
261
|
},
|
|
262
262
|
Array [
|
|
263
263
|
Object {
|
|
264
264
|
"color": "#ffffff",
|
|
265
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
266
|
-
"fontSize": 16,
|
|
267
|
-
"lineHeight": 24,
|
|
268
265
|
"marginHorizontal": 8,
|
|
269
266
|
"textAlign": "center",
|
|
270
267
|
"textAlignVertical": "center",
|
|
@@ -273,10 +270,9 @@ exports[`FAB when title has value renders correctly 1`] = `
|
|
|
273
270
|
],
|
|
274
271
|
]
|
|
275
272
|
}
|
|
276
|
-
themeFontSize="medium"
|
|
277
|
-
themeFontWeight="regular"
|
|
278
273
|
themeIntent="body"
|
|
279
274
|
themeTypeface="neutral"
|
|
275
|
+
themeVariant="regular"
|
|
280
276
|
>
|
|
281
277
|
Shout out
|
|
282
278
|
</Text>
|
|
@@ -90,16 +90,12 @@ const BasicListItem = ({
|
|
|
90
90
|
)}
|
|
91
91
|
<StyledTitleContainer>
|
|
92
92
|
{typeof title === 'string' ? (
|
|
93
|
-
<Typography.
|
|
94
|
-
{title}
|
|
95
|
-
</Typography.Text>
|
|
93
|
+
<Typography.Body intent="body">{title}</Typography.Body>
|
|
96
94
|
) : (
|
|
97
95
|
title
|
|
98
96
|
)}
|
|
99
97
|
{subtitle && (
|
|
100
|
-
<Typography.
|
|
101
|
-
{subtitle}
|
|
102
|
-
</Typography.Text>
|
|
98
|
+
<Typography.Caption intent="subdued">{subtitle}</Typography.Caption>
|
|
103
99
|
)}
|
|
104
100
|
</StyledTitleContainer>
|
|
105
101
|
{suffix && (
|
|
@@ -124,16 +124,14 @@ const ListItem = ({
|
|
|
124
124
|
)}
|
|
125
125
|
<StyledTitleContainer>
|
|
126
126
|
{typeof title === 'string' ? (
|
|
127
|
-
<Typography.
|
|
128
|
-
{title}
|
|
129
|
-
</Typography.Text>
|
|
127
|
+
<Typography.Body intent="body">{title}</Typography.Body>
|
|
130
128
|
) : (
|
|
131
129
|
title
|
|
132
130
|
)}
|
|
133
131
|
{!!subtitle && (
|
|
134
|
-
<Typography.
|
|
132
|
+
<Typography.Caption intent="subdued">
|
|
135
133
|
{subtitle}
|
|
136
|
-
</Typography.
|
|
134
|
+
</Typography.Caption>
|
|
137
135
|
)}
|
|
138
136
|
</StyledTitleContainer>
|
|
139
137
|
{suffix && (
|
|
@@ -57,8 +57,8 @@ describe('ListItem', () => {
|
|
|
57
57
|
justifyContent: 'space-between',
|
|
58
58
|
}}
|
|
59
59
|
>
|
|
60
|
-
<Typography.
|
|
61
|
-
<Typography.
|
|
60
|
+
<Typography.Body>Gross pay</Typography.Body>
|
|
61
|
+
<Typography.Body>$1052.03</Typography.Body>
|
|
62
62
|
</View>
|
|
63
63
|
<View
|
|
64
64
|
style={{
|
|
@@ -67,8 +67,8 @@ describe('ListItem', () => {
|
|
|
67
67
|
justifyContent: 'space-between',
|
|
68
68
|
}}
|
|
69
69
|
>
|
|
70
|
-
<Typography.
|
|
71
|
-
<Typography.
|
|
70
|
+
<Typography.Body>Gross pay</Typography.Body>
|
|
71
|
+
<Typography.Body>$1052.03</Typography.Body>
|
|
72
72
|
</View>
|
|
73
73
|
</ListItem>
|
|
74
74
|
);
|
|
@@ -18,7 +18,9 @@ describe('StyledListItemContainer', () => {
|
|
|
18
18
|
themeSelected={themeSelected}
|
|
19
19
|
themeDisabled={themeDisabled}
|
|
20
20
|
>
|
|
21
|
-
<Typography.
|
|
21
|
+
<Typography.Body variant="small">
|
|
22
|
+
StyledListItemContainer
|
|
23
|
+
</Typography.Body>
|
|
22
24
|
</StyledListItemContainer>
|
|
23
25
|
);
|
|
24
26
|
expect(toJSON()).toMatchSnapshot();
|
|
@@ -21,7 +21,9 @@ describe('ListItemContainer', () => {
|
|
|
21
21
|
themeSelected={themeSelected}
|
|
22
22
|
themeVariant={themeVariant}
|
|
23
23
|
>
|
|
24
|
-
<Typography.
|
|
24
|
+
<Typography.Body variant="small">
|
|
25
|
+
StyledListItemContainer
|
|
26
|
+
</Typography.Body>
|
|
25
27
|
</StyledListItemContainer>
|
|
26
28
|
);
|
|
27
29
|
expect(toJSON()).toMatchSnapshot();
|
|
@@ -80,10 +80,9 @@ exports[`BasicListItem when suffix and prefix are icon name renders correctly 1`
|
|
|
80
80
|
undefined,
|
|
81
81
|
]
|
|
82
82
|
}
|
|
83
|
-
themeFontSize="large"
|
|
84
|
-
themeFontWeight="regular"
|
|
85
83
|
themeIntent="body"
|
|
86
84
|
themeTypeface="neutral"
|
|
85
|
+
themeVariant="regular"
|
|
87
86
|
>
|
|
88
87
|
List item
|
|
89
88
|
</Text>
|
|
@@ -95,16 +94,14 @@ exports[`BasicListItem when suffix and prefix are icon name renders correctly 1`
|
|
|
95
94
|
"color": "#4d6265",
|
|
96
95
|
"fontFamily": "BeVietnamPro-Regular",
|
|
97
96
|
"fontSize": 12,
|
|
98
|
-
"letterSpacing": 0.
|
|
97
|
+
"letterSpacing": 0.48,
|
|
99
98
|
"lineHeight": 16,
|
|
100
99
|
},
|
|
101
100
|
undefined,
|
|
102
101
|
]
|
|
103
102
|
}
|
|
104
|
-
themeFontSize="small"
|
|
105
103
|
themeFontWeight="regular"
|
|
106
104
|
themeIntent="subdued"
|
|
107
|
-
themeTypeface="neutral"
|
|
108
105
|
>
|
|
109
106
|
subtitle
|
|
110
107
|
</Text>
|
|
@@ -218,10 +215,9 @@ exports[`BasicListItem when suffix and prefix are react element renders correctl
|
|
|
218
215
|
undefined,
|
|
219
216
|
]
|
|
220
217
|
}
|
|
221
|
-
themeFontSize="large"
|
|
222
|
-
themeFontWeight="regular"
|
|
223
218
|
themeIntent="body"
|
|
224
219
|
themeTypeface="neutral"
|
|
220
|
+
themeVariant="regular"
|
|
225
221
|
>
|
|
226
222
|
List item
|
|
227
223
|
</Text>
|
|
@@ -233,16 +229,14 @@ exports[`BasicListItem when suffix and prefix are react element renders correctl
|
|
|
233
229
|
"color": "#4d6265",
|
|
234
230
|
"fontFamily": "BeVietnamPro-Regular",
|
|
235
231
|
"fontSize": 12,
|
|
236
|
-
"letterSpacing": 0.
|
|
232
|
+
"letterSpacing": 0.48,
|
|
237
233
|
"lineHeight": 16,
|
|
238
234
|
},
|
|
239
235
|
undefined,
|
|
240
236
|
]
|
|
241
237
|
}
|
|
242
|
-
themeFontSize="small"
|
|
243
238
|
themeFontWeight="regular"
|
|
244
239
|
themeIntent="subdued"
|
|
245
|
-
themeTypeface="neutral"
|
|
246
240
|
>
|
|
247
241
|
subtitle
|
|
248
242
|
</Text>
|