@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.
Files changed (172) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/es/index.js +187 -208
  3. package/lib/index.js +187 -208
  4. package/package.json +7 -7
  5. package/src/components/Accordion/AccordionItem.tsx +1 -3
  6. package/src/components/Accordion/__tests__/AccordionItem.spec.tsx +5 -5
  7. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +26 -34
  8. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +36 -48
  9. package/src/components/Accordion/__tests__/index.spec.tsx +2 -2
  10. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +26 -39
  11. package/src/components/Alert/__tests__/index.spec.tsx +8 -2
  12. package/src/components/Alert/index.tsx +2 -2
  13. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
  14. package/src/components/Attachment/index.tsx +3 -1
  15. package/src/components/Badge/StyledBadge.tsx +1 -4
  16. package/src/components/Badge/__tests__/Status.spec.tsx +1 -1
  17. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +18 -48
  18. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -3
  19. package/src/components/BottomNavigation/StyledBottomNavigation.tsx +1 -1
  20. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +4 -12
  21. package/src/components/BottomNavigation/index.tsx +0 -1
  22. package/src/components/BottomSheet/Header.tsx +1 -3
  23. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
  24. package/src/components/Button/Button.tsx +34 -11
  25. package/src/components/Button/StyledButton.tsx +45 -38
  26. package/src/components/Button/UtilityButton/StyledUtilityButton.tsx +2 -4
  27. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +8 -14
  28. package/src/components/Button/__tests__/StyledButton.spec.tsx +12 -6
  29. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +66 -90
  30. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +56 -86
  31. package/src/components/Calendar/CalendarRowItem.tsx +5 -2
  32. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +10 -15
  33. package/src/components/Calendar/index.tsx +1 -1
  34. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +12 -18
  35. package/src/components/Card/__tests__/index.spec.tsx +1 -1
  36. package/src/components/Carousel/CarouselItem.tsx +4 -4
  37. package/src/components/Carousel/StyledCarousel.tsx +1 -4
  38. package/src/components/Carousel/__tests__/CardCarousel.spec.tsx +18 -18
  39. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +24 -20
  40. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +99 -165
  41. package/src/components/Checkbox/StyledCheckbox.tsx +1 -1
  42. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +8 -12
  43. package/src/components/Checkbox/index.tsx +1 -1
  44. package/src/components/ContentNavigator/StyledContentNavigator.tsx +1 -6
  45. package/src/components/ContentNavigator/__tests__/StyledContentNavigator.spec.tsx +1 -9
  46. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +0 -29
  47. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +124 -17
  48. package/src/components/ContentNavigator/__tests__/index.spec.tsx +16 -0
  49. package/src/components/ContentNavigator/index.tsx +30 -9
  50. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +12 -18
  51. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +4 -6
  52. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +4 -6
  53. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +13 -18
  54. package/src/components/Empty/StyledEmpty.tsx +2 -6
  55. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +22 -36
  56. package/src/components/Empty/index.tsx +4 -2
  57. package/src/components/Error/StyledError.tsx +2 -8
  58. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +44 -76
  59. package/src/components/Error/index.tsx +6 -2
  60. package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -4
  61. package/src/components/FAB/ActionGroup/StyledActionItem.tsx +1 -5
  62. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +54 -116
  63. package/src/components/FAB/ActionGroup/index.tsx +1 -1
  64. package/src/components/FAB/StyledFAB.tsx +1 -4
  65. package/src/components/FAB/__tests__/StyledFAB.spec.tsx +1 -1
  66. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +2 -3
  67. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +4 -8
  68. package/src/components/List/BasicListItem.tsx +2 -6
  69. package/src/components/List/ListItem.tsx +3 -5
  70. package/src/components/List/__tests__/ListItem.spec.tsx +4 -4
  71. package/src/components/List/__tests__/StyledBasicListItem.spec.tsx +3 -1
  72. package/src/components/List/__tests__/StyledListItem.spec.tsx +3 -1
  73. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +4 -10
  74. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +23 -37
  75. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +8 -12
  76. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +8 -12
  77. package/src/components/PageControl/index.tsx +0 -1
  78. package/src/components/PinInput/PinCell.tsx +3 -1
  79. package/src/components/PinInput/StyledPinInput.tsx +2 -7
  80. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +25 -45
  81. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +18 -34
  82. package/src/components/Progress/ProgressCircle.tsx +1 -3
  83. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +3 -6
  84. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -4
  85. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +3 -6
  86. package/src/components/RichTextEditor/RichTextEditor.tsx +2 -9
  87. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +16 -24
  88. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
  89. package/src/components/SectionHeading/__tests__/index.spec.tsx +3 -1
  90. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
  91. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -24
  92. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +86 -130
  93. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +6 -10
  94. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
  95. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -24
  96. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +49 -79
  97. package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +5 -9
  98. package/src/components/Success/StyledSuccess.tsx +2 -6
  99. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +40 -64
  100. package/src/components/Success/index.tsx +3 -1
  101. package/src/components/Swipeable/__tests__/SwipeableAction.spec.tsx +2 -2
  102. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +6 -9
  103. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
  104. package/src/components/Swipeable/__tests__/index.spec.tsx +6 -4
  105. package/src/components/Switch/SelectorSwitch/Option.tsx +1 -1
  106. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
  107. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -2
  108. package/src/components/Tabs/ScrollableTabsHeader.tsx +3 -3
  109. package/src/components/Tabs/__tests__/SceneView.spec.tsx +4 -4
  110. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +6 -9
  111. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +33 -60
  112. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +7 -13
  113. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +3 -8
  114. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +45 -81
  115. package/src/components/Tabs/index.tsx +3 -3
  116. package/src/components/Tag/StyledTag.tsx +1 -4
  117. package/src/components/Tag/__tests__/Tag.spec.tsx +5 -1
  118. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +47 -93
  119. package/src/components/Tag/index.tsx +5 -1
  120. package/src/components/TextInput/StyledTextInput.tsx +8 -16
  121. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +72 -134
  122. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +145 -257
  123. package/src/components/TextInput/index.tsx +2 -3
  124. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +12 -23
  125. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +21 -35
  126. package/src/components/Toast/Toast.tsx +6 -5
  127. package/src/components/Toast/__tests__/Toast.spec.tsx +5 -1
  128. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +26 -39
  129. package/src/components/Toolbar/StyledToolbar.tsx +1 -1
  130. package/src/components/Toolbar/ToolbarItem.tsx +4 -6
  131. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -18
  132. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +14 -21
  133. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -0
  134. package/src/theme/components/badge.ts +15 -0
  135. package/src/theme/components/button.ts +16 -0
  136. package/src/theme/components/carousel.ts +15 -0
  137. package/src/theme/components/empty.ts +12 -0
  138. package/src/theme/components/error.ts +16 -0
  139. package/src/theme/components/fab.ts +11 -0
  140. package/src/theme/components/pinInput.ts +15 -0
  141. package/src/theme/components/success.ts +12 -0
  142. package/src/theme/components/tag.ts +16 -0
  143. package/src/theme/components/textInput.ts +1 -0
  144. package/src/theme/getTheme.ts +18 -18
  145. package/types/components/Badge/StyledBadge.d.ts +1 -1
  146. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +1 -1
  147. package/types/components/Button/StyledButton.d.ts +12 -5
  148. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +1 -1
  149. package/types/components/Carousel/StyledCarousel.d.ts +1 -1
  150. package/types/components/Checkbox/StyledCheckbox.d.ts +1 -1
  151. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +1 -5
  152. package/types/components/Empty/StyledEmpty.d.ts +2 -2
  153. package/types/components/Error/StyledError.d.ts +2 -2
  154. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +2 -2
  155. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +1 -1
  156. package/types/components/FAB/StyledFAB.d.ts +1 -1
  157. package/types/components/PinInput/StyledPinInput.d.ts +2 -2
  158. package/types/components/Success/StyledSuccess.d.ts +2 -2
  159. package/types/components/Tag/StyledTag.d.ts +1 -1
  160. package/types/components/TextInput/StyledTextInput.d.ts +7 -10
  161. package/types/components/Toolbar/StyledToolbar.d.ts +1 -1
  162. package/types/theme/components/badge.d.ts +15 -0
  163. package/types/theme/components/button.d.ts +14 -0
  164. package/types/theme/components/carousel.d.ts +15 -0
  165. package/types/theme/components/empty.d.ts +11 -0
  166. package/types/theme/components/error.d.ts +15 -0
  167. package/types/theme/components/fab.d.ts +11 -0
  168. package/types/theme/components/pinInput.d.ts +15 -0
  169. package/types/theme/components/success.d.ts +11 -0
  170. package/types/theme/components/tag.d.ts +15 -0
  171. package/types/theme/components/textInput.d.ts +1 -0
  172. 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-Regular",
69
- "fontSize": 14,
70
- "letterSpacing": 0.42,
71
- "lineHeight": 22,
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": 14,
193
- "letterSpacing": 0.42,
194
- "lineHeight": 22,
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": 14,
301
- "letterSpacing": 0.42,
302
- "lineHeight": 22,
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": 14,
409
- "letterSpacing": 0.42,
410
- "lineHeight": 22,
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": 14,
517
- "letterSpacing": 0.42,
518
- "lineHeight": 22,
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": 14,
625
- "letterSpacing": 0.42,
626
- "lineHeight": 22,
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": 14,
746
- "letterSpacing": 0.42,
747
- "lineHeight": 22,
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-Regular",
840
- "fontSize": 14,
841
- "letterSpacing": 0.42,
842
- "lineHeight": 22,
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": 14,
964
- "letterSpacing": 0.42,
965
- "lineHeight": 22,
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": 14,
1072
- "letterSpacing": 0.42,
1073
- "lineHeight": 22,
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": 14,
1180
- "letterSpacing": 0.42,
1181
- "lineHeight": 22,
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": 14,
1288
- "letterSpacing": 0.42,
1289
- "lineHeight": 22,
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": 14,
1396
- "letterSpacing": 0.42,
1397
- "lineHeight": 22,
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.Text)<TextProps>(({ theme }) => ({
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',
@@ -7,7 +7,7 @@ describe('StyledFAB', () => {
7
7
  it('renders correctly', () => {
8
8
  const { toJSON } = renderWithTheme(
9
9
  <StyledFAB>
10
- <Typography.Text> button </Typography.Text>
10
+ <Typography.Body variant="small"> button </Typography.Body>
11
11
  </StyledFAB>
12
12
  );
13
13
 
@@ -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.42,
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": 14,
259
- "letterSpacing": 0.42,
260
- "lineHeight": 22,
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.Text intent="body" fontSize="large">
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.Text intent="subdued" fontSize="small">
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.Text intent="body" fontSize="large">
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.Text intent="subdued" fontSize="small">
132
+ <Typography.Caption intent="subdued">
135
133
  {subtitle}
136
- </Typography.Text>
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.Text>Gross pay</Typography.Text>
61
- <Typography.Text>$1052.03</Typography.Text>
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.Text>Gross pay</Typography.Text>
71
- <Typography.Text>$1052.03</Typography.Text>
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.Text>StyledListItemContainer</Typography.Text>
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.Text>StyledListItemContainer</Typography.Text>
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.36,
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.36,
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>