@hero-design/rn 8.33.1 → 8.34.0

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 (202) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  3. package/es/index.js +868 -655
  4. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  5. package/lib/index.js +871 -656
  6. package/package.json +8 -7
  7. package/rollup.config.js +1 -0
  8. package/src/components/Accordion/AccordionItem.tsx +1 -3
  9. package/src/components/Accordion/__tests__/AccordionItem.spec.tsx +5 -5
  10. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +26 -34
  11. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +36 -48
  12. package/src/components/Accordion/__tests__/index.spec.tsx +2 -2
  13. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +26 -39
  14. package/src/components/Alert/__tests__/index.spec.tsx +8 -2
  15. package/src/components/Alert/index.tsx +2 -2
  16. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
  17. package/src/components/Attachment/index.tsx +3 -1
  18. package/src/components/Badge/StyledBadge.tsx +1 -4
  19. package/src/components/Badge/__tests__/Status.spec.tsx +1 -1
  20. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +18 -48
  21. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -3
  22. package/src/components/BottomNavigation/StyledBottomNavigation.tsx +1 -1
  23. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +4 -12
  24. package/src/components/BottomNavigation/index.tsx +0 -1
  25. package/src/components/BottomSheet/Header.tsx +1 -3
  26. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
  27. package/src/components/Button/Button.tsx +34 -11
  28. package/src/components/Button/StyledButton.tsx +45 -38
  29. package/src/components/Button/UtilityButton/StyledUtilityButton.tsx +2 -4
  30. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +8 -14
  31. package/src/components/Button/__tests__/StyledButton.spec.tsx +12 -6
  32. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +66 -90
  33. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +56 -86
  34. package/src/components/Calendar/CalendarRowItem.tsx +5 -2
  35. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +10 -15
  36. package/src/components/Calendar/index.tsx +1 -1
  37. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +12 -18
  38. package/src/components/Card/__tests__/index.spec.tsx +1 -1
  39. package/src/components/Carousel/CardCarousel.tsx +2 -0
  40. package/src/components/Carousel/CarouselItem.tsx +4 -4
  41. package/src/components/Carousel/StyledCarousel.tsx +1 -4
  42. package/src/components/Carousel/__tests__/CardCarousel.spec.tsx +18 -18
  43. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +24 -20
  44. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +99 -165
  45. package/src/components/Checkbox/StyledCheckbox.tsx +1 -1
  46. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +8 -12
  47. package/src/components/Checkbox/index.tsx +1 -1
  48. package/src/components/ContentNavigator/StyledContentNavigator.tsx +1 -6
  49. package/src/components/ContentNavigator/__tests__/StyledContentNavigator.spec.tsx +1 -9
  50. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +0 -29
  51. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +124 -17
  52. package/src/components/ContentNavigator/__tests__/index.spec.tsx +16 -0
  53. package/src/components/ContentNavigator/index.tsx +30 -9
  54. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +12 -18
  55. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +4 -6
  56. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +4 -6
  57. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +13 -18
  58. package/src/components/Empty/StyledEmpty.tsx +2 -6
  59. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +22 -36
  60. package/src/components/Empty/index.tsx +4 -2
  61. package/src/components/Error/StyledError.tsx +2 -8
  62. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +44 -76
  63. package/src/components/Error/index.tsx +6 -2
  64. package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -4
  65. package/src/components/FAB/ActionGroup/StyledActionItem.tsx +1 -5
  66. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +54 -116
  67. package/src/components/FAB/ActionGroup/index.tsx +1 -1
  68. package/src/components/FAB/StyledFAB.tsx +1 -4
  69. package/src/components/FAB/__tests__/StyledFAB.spec.tsx +1 -1
  70. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +2 -3
  71. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +4 -8
  72. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  73. package/src/components/Icon/IconList.ts +2 -0
  74. package/src/components/List/BasicListItem.tsx +2 -6
  75. package/src/components/List/ListItem.tsx +3 -5
  76. package/src/components/List/__tests__/ListItem.spec.tsx +4 -4
  77. package/src/components/List/__tests__/StyledBasicListItem.spec.tsx +3 -1
  78. package/src/components/List/__tests__/StyledListItem.spec.tsx +3 -1
  79. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +4 -10
  80. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +23 -37
  81. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +8 -12
  82. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +8 -12
  83. package/src/components/Modal/ModalContentWrapper.tsx +112 -0
  84. package/src/components/Modal/ModalPresenter/ModalPresenter.tsx +135 -0
  85. package/src/components/Modal/ModalPresenter/index.tsx +9 -0
  86. package/src/components/Modal/ModalProvider.tsx +8 -0
  87. package/src/components/Modal/__tests__/ModalContentWrapper.spec.tsx +25 -0
  88. package/src/components/Modal/__tests__/ModalPresenter.spec.tsx +57 -0
  89. package/src/components/Modal/__tests__/__snapshots__/ModalContentWrapper.spec.tsx.snap +35 -0
  90. package/src/components/Modal/__tests__/__snapshots__/ModalPresenter.spec.tsx.snap +55 -0
  91. package/src/components/Modal/__tests__/index.spec.tsx +50 -0
  92. package/src/components/Modal/index.tsx +121 -0
  93. package/src/components/PageControl/index.tsx +0 -1
  94. package/src/components/PinInput/PinCell.tsx +3 -1
  95. package/src/components/PinInput/StyledPinInput.tsx +2 -7
  96. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +25 -45
  97. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +18 -34
  98. package/src/components/PinInput/index.tsx +2 -0
  99. package/src/components/Progress/ProgressCircle.tsx +1 -3
  100. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +3 -6
  101. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -4
  102. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +3 -6
  103. package/src/components/RichTextEditor/RichTextEditor.tsx +7 -11
  104. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +16 -24
  105. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
  106. package/src/components/SectionHeading/__tests__/index.spec.tsx +3 -1
  107. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
  108. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -24
  109. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +86 -130
  110. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +6 -10
  111. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
  112. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -24
  113. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +49 -79
  114. package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +5 -9
  115. package/src/components/Success/StyledSuccess.tsx +2 -6
  116. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +40 -64
  117. package/src/components/Success/index.tsx +3 -1
  118. package/src/components/Swipeable/__tests__/SwipeableAction.spec.tsx +2 -2
  119. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +6 -9
  120. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
  121. package/src/components/Swipeable/__tests__/index.spec.tsx +6 -4
  122. package/src/components/Switch/SelectorSwitch/Option.tsx +1 -1
  123. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
  124. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -2
  125. package/src/components/Tabs/ScrollableTabsHeader.tsx +3 -3
  126. package/src/components/Tabs/__tests__/SceneView.spec.tsx +4 -4
  127. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +6 -9
  128. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +33 -60
  129. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +7 -13
  130. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +3 -8
  131. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +45 -81
  132. package/src/components/Tabs/index.tsx +3 -3
  133. package/src/components/Tag/StyledTag.tsx +1 -4
  134. package/src/components/Tag/__tests__/Tag.spec.tsx +5 -1
  135. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +47 -93
  136. package/src/components/Tag/index.tsx +5 -1
  137. package/src/components/TextInput/StyledTextInput.tsx +8 -16
  138. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +72 -134
  139. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +145 -257
  140. package/src/components/TextInput/index.tsx +2 -3
  141. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +12 -23
  142. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +21 -35
  143. package/src/components/Toast/Toast.tsx +6 -5
  144. package/src/components/Toast/ToastContainer.tsx +2 -0
  145. package/src/components/Toast/__tests__/Toast.spec.tsx +5 -1
  146. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +26 -39
  147. package/src/components/Toolbar/StyledToolbar.tsx +1 -1
  148. package/src/components/Toolbar/ToolbarItem.tsx +4 -6
  149. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -18
  150. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +14 -21
  151. package/src/index.ts +2 -0
  152. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -0
  153. package/src/theme/components/badge.ts +15 -0
  154. package/src/theme/components/button.ts +16 -0
  155. package/src/theme/components/carousel.ts +15 -0
  156. package/src/theme/components/empty.ts +12 -0
  157. package/src/theme/components/error.ts +16 -0
  158. package/src/theme/components/fab.ts +11 -0
  159. package/src/theme/components/pinInput.ts +15 -0
  160. package/src/theme/components/success.ts +12 -0
  161. package/src/theme/components/tag.ts +16 -0
  162. package/src/theme/components/textInput.ts +1 -0
  163. package/src/theme/getTheme.ts +18 -18
  164. package/testUtils/setup.tsx +24 -0
  165. package/types/components/Badge/StyledBadge.d.ts +1 -1
  166. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +1 -1
  167. package/types/components/Button/StyledButton.d.ts +12 -5
  168. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +1 -1
  169. package/types/components/Carousel/StyledCarousel.d.ts +1 -1
  170. package/types/components/Checkbox/StyledCheckbox.d.ts +1 -1
  171. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +1 -5
  172. package/types/components/Empty/StyledEmpty.d.ts +2 -2
  173. package/types/components/Error/StyledError.d.ts +2 -2
  174. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +2 -2
  175. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +1 -1
  176. package/types/components/FAB/StyledFAB.d.ts +1 -1
  177. package/types/components/Icon/IconList.d.ts +1 -1
  178. package/types/components/Icon/index.d.ts +1 -1
  179. package/types/components/Icon/utils.d.ts +1 -1
  180. package/types/components/Modal/ModalContentWrapper.d.ts +16 -0
  181. package/types/components/Modal/ModalPresenter/ModalPresenter.d.ts +34 -0
  182. package/types/components/Modal/ModalPresenter/index.d.ts +3 -0
  183. package/types/components/Modal/ModalProvider.d.ts +5 -0
  184. package/types/components/Modal/index.d.ts +33 -0
  185. package/types/components/PinInput/StyledPinInput.d.ts +2 -2
  186. package/types/components/RichTextEditor/RichTextEditor.d.ts +2 -2
  187. package/types/components/Success/StyledSuccess.d.ts +2 -2
  188. package/types/components/Tag/StyledTag.d.ts +1 -1
  189. package/types/components/TextInput/StyledTextInput.d.ts +7 -10
  190. package/types/components/Toolbar/StyledToolbar.d.ts +1 -1
  191. package/types/index.d.ts +2 -1
  192. package/types/theme/components/badge.d.ts +15 -0
  193. package/types/theme/components/button.d.ts +14 -0
  194. package/types/theme/components/carousel.d.ts +15 -0
  195. package/types/theme/components/empty.d.ts +11 -0
  196. package/types/theme/components/error.d.ts +15 -0
  197. package/types/theme/components/fab.d.ts +11 -0
  198. package/types/theme/components/pinInput.d.ts +15 -0
  199. package/types/theme/components/success.d.ts +11 -0
  200. package/types/theme/components/tag.d.ts +15 -0
  201. package/types/theme/components/textInput.d.ts +1 -0
  202. package/types/theme/getTheme.d.ts +18 -18
@@ -180,16 +180,13 @@ exports[`Carousel renders correctly with pageControlPosition bottom 1`] = `
180
180
  Array [
181
181
  Object {
182
182
  "color": "#001f23",
183
- "fontFamily": "BeVietnamPro-Regular",
184
- "fontSize": 14,
185
- "letterSpacing": 0.42,
186
- "lineHeight": 22,
183
+ "fontFamily": "RebondGrotesque-SemiBold",
184
+ "fontSize": 36,
185
+ "letterSpacing": 1.5,
186
+ "lineHeight": 44,
187
187
  },
188
188
  Array [
189
189
  Object {
190
- "fontFamily": "RebondGrotesque-SemiBold",
191
- "fontSize": 32,
192
- "lineHeight": 44,
193
190
  "marginBottom": 16,
194
191
  "marginTop": 8,
195
192
  },
@@ -197,10 +194,9 @@ exports[`Carousel renders correctly with pageControlPosition bottom 1`] = `
197
194
  ],
198
195
  ]
199
196
  }
200
- themeFontSize="medium"
201
- themeFontWeight="regular"
202
197
  themeIntent="body"
203
- themeTypeface="neutral"
198
+ themeLevel="h1"
199
+ themeTypeface="playful"
204
200
  >
205
201
  Welcome to the new Employment Hero app
206
202
  </Text>
@@ -218,10 +214,9 @@ exports[`Carousel renders correctly with pageControlPosition bottom 1`] = `
218
214
  undefined,
219
215
  ]
220
216
  }
221
- themeFontSize="large"
222
- themeFontWeight="regular"
223
217
  themeIntent="body"
224
218
  themeTypeface="neutral"
219
+ themeVariant="regular"
225
220
  >
226
221
  Access your Work, Money and Benefits in the palm of your hand.
227
222
  </Text>
@@ -316,16 +311,13 @@ exports[`Carousel renders correctly with pageControlPosition bottom 1`] = `
316
311
  Array [
317
312
  Object {
318
313
  "color": "#001f23",
319
- "fontFamily": "BeVietnamPro-Regular",
320
- "fontSize": 14,
321
- "letterSpacing": 0.42,
322
- "lineHeight": 22,
314
+ "fontFamily": "RebondGrotesque-SemiBold",
315
+ "fontSize": 36,
316
+ "letterSpacing": 1.5,
317
+ "lineHeight": 44,
323
318
  },
324
319
  Array [
325
320
  Object {
326
- "fontFamily": "RebondGrotesque-SemiBold",
327
- "fontSize": 32,
328
- "lineHeight": 44,
329
321
  "marginBottom": 16,
330
322
  "marginTop": 8,
331
323
  },
@@ -333,10 +325,9 @@ exports[`Carousel renders correctly with pageControlPosition bottom 1`] = `
333
325
  ],
334
326
  ]
335
327
  }
336
- themeFontSize="medium"
337
- themeFontWeight="regular"
338
328
  themeIntent="body"
339
- themeTypeface="neutral"
329
+ themeLevel="h1"
330
+ themeTypeface="playful"
340
331
  >
341
332
  Same app with a new look!
342
333
  </Text>
@@ -354,10 +345,9 @@ exports[`Carousel renders correctly with pageControlPosition bottom 1`] = `
354
345
  undefined,
355
346
  ]
356
347
  }
357
- themeFontSize="large"
358
- themeFontWeight="regular"
359
348
  themeIntent="body"
360
349
  themeTypeface="neutral"
350
+ themeVariant="regular"
361
351
  >
362
352
  Our app now has a new bright clean modern look and feel with the same great features.
363
353
  </Text>
@@ -441,16 +431,13 @@ exports[`Carousel renders correctly with pageControlPosition bottom 1`] = `
441
431
  Array [
442
432
  Object {
443
433
  "color": "#001f23",
444
- "fontFamily": "BeVietnamPro-Regular",
445
- "fontSize": 14,
446
- "letterSpacing": 0.42,
447
- "lineHeight": 22,
434
+ "fontFamily": "RebondGrotesque-SemiBold",
435
+ "fontSize": 36,
436
+ "letterSpacing": 1.5,
437
+ "lineHeight": 44,
448
438
  },
449
439
  Array [
450
440
  Object {
451
- "fontFamily": "RebondGrotesque-SemiBold",
452
- "fontSize": 32,
453
- "lineHeight": 44,
454
441
  "marginBottom": 16,
455
442
  "marginTop": 8,
456
443
  },
@@ -458,10 +445,9 @@ exports[`Carousel renders correctly with pageControlPosition bottom 1`] = `
458
445
  ],
459
446
  ]
460
447
  }
461
- themeFontSize="medium"
462
- themeFontWeight="regular"
463
448
  themeIntent="body"
464
- themeTypeface="neutral"
449
+ themeLevel="h1"
450
+ themeTypeface="playful"
465
451
  >
466
452
  Easier to get around
467
453
  </Text>
@@ -479,10 +465,9 @@ exports[`Carousel renders correctly with pageControlPosition bottom 1`] = `
479
465
  undefined,
480
466
  ]
481
467
  }
482
- themeFontSize="large"
483
- themeFontWeight="regular"
484
468
  themeIntent="body"
485
469
  themeTypeface="neutral"
470
+ themeVariant="regular"
486
471
  >
487
472
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus vitae pulvinar quam, ac facilisis massa. Aliquam facilisis nisi eu justo dignissim, vel tempus justo iaculis.
488
473
  </Text>
@@ -564,16 +549,13 @@ exports[`Carousel renders correctly with pageControlPosition bottom 1`] = `
564
549
  Array [
565
550
  Object {
566
551
  "color": "#001f23",
567
- "fontFamily": "BeVietnamPro-Regular",
568
- "fontSize": 14,
569
- "letterSpacing": 0.42,
570
- "lineHeight": 22,
552
+ "fontFamily": "RebondGrotesque-SemiBold",
553
+ "fontSize": 36,
554
+ "letterSpacing": 1.5,
555
+ "lineHeight": 44,
571
556
  },
572
557
  Array [
573
558
  Object {
574
- "fontFamily": "RebondGrotesque-SemiBold",
575
- "fontSize": 32,
576
- "lineHeight": 44,
577
559
  "marginBottom": 16,
578
560
  "marginTop": 8,
579
561
  },
@@ -581,10 +563,9 @@ exports[`Carousel renders correctly with pageControlPosition bottom 1`] = `
581
563
  ],
582
564
  ]
583
565
  }
584
- themeFontSize="medium"
585
- themeFontWeight="regular"
586
566
  themeIntent="body"
587
- themeTypeface="neutral"
567
+ themeLevel="h1"
568
+ themeTypeface="playful"
588
569
  >
589
570
  Test slide 4
590
571
  </Text>
@@ -646,28 +627,25 @@ exports[`Carousel renders correctly with pageControlPosition bottom 1`] = `
646
627
  Array [
647
628
  Object {
648
629
  "color": "#001f23",
649
- "fontFamily": "BeVietnamPro-Regular",
650
- "fontSize": 14,
651
- "letterSpacing": 0.42,
652
- "lineHeight": 22,
630
+ "fontFamily": "BeVietnamPro-SemiBold",
631
+ "fontSize": 18,
632
+ "letterSpacing": 0.24,
633
+ "lineHeight": 28,
653
634
  },
654
635
  Array [
655
636
  Object {
656
637
  "color": "#ffffff",
657
638
  "flexShrink": 1,
658
- "fontFamily": "BeVietnamPro-SemiBold",
659
- "fontSize": 18,
660
639
  "textAlign": "center",
661
640
  },
662
641
  undefined,
663
642
  ],
664
643
  ]
665
644
  }
666
- themeFontSize="medium"
667
- themeFontWeight="regular"
645
+ themeButtonVariant="filled-primary"
668
646
  themeIntent="body"
647
+ themeLevel="h5"
669
648
  themeTypeface="neutral"
670
- themeVariant="filled-primary"
671
649
  >
672
650
  Skip
673
651
  </Text>
@@ -1004,16 +982,13 @@ exports[`Carousel renders correctly with pageControlPosition top 1`] = `
1004
982
  Array [
1005
983
  Object {
1006
984
  "color": "#001f23",
1007
- "fontFamily": "BeVietnamPro-Regular",
1008
- "fontSize": 14,
1009
- "letterSpacing": 0.42,
1010
- "lineHeight": 22,
985
+ "fontFamily": "RebondGrotesque-SemiBold",
986
+ "fontSize": 36,
987
+ "letterSpacing": 1.5,
988
+ "lineHeight": 44,
1011
989
  },
1012
990
  Array [
1013
991
  Object {
1014
- "fontFamily": "RebondGrotesque-SemiBold",
1015
- "fontSize": 32,
1016
- "lineHeight": 44,
1017
992
  "marginBottom": 16,
1018
993
  "marginTop": 8,
1019
994
  },
@@ -1021,10 +996,9 @@ exports[`Carousel renders correctly with pageControlPosition top 1`] = `
1021
996
  ],
1022
997
  ]
1023
998
  }
1024
- themeFontSize="medium"
1025
- themeFontWeight="regular"
1026
999
  themeIntent="body"
1027
- themeTypeface="neutral"
1000
+ themeLevel="h1"
1001
+ themeTypeface="playful"
1028
1002
  >
1029
1003
  Welcome to the new Employment Hero app
1030
1004
  </Text>
@@ -1042,10 +1016,9 @@ exports[`Carousel renders correctly with pageControlPosition top 1`] = `
1042
1016
  undefined,
1043
1017
  ]
1044
1018
  }
1045
- themeFontSize="large"
1046
- themeFontWeight="regular"
1047
1019
  themeIntent="body"
1048
1020
  themeTypeface="neutral"
1021
+ themeVariant="regular"
1049
1022
  >
1050
1023
  Access your Work, Money and Benefits in the palm of your hand.
1051
1024
  </Text>
@@ -1140,16 +1113,13 @@ exports[`Carousel renders correctly with pageControlPosition top 1`] = `
1140
1113
  Array [
1141
1114
  Object {
1142
1115
  "color": "#001f23",
1143
- "fontFamily": "BeVietnamPro-Regular",
1144
- "fontSize": 14,
1145
- "letterSpacing": 0.42,
1146
- "lineHeight": 22,
1116
+ "fontFamily": "RebondGrotesque-SemiBold",
1117
+ "fontSize": 36,
1118
+ "letterSpacing": 1.5,
1119
+ "lineHeight": 44,
1147
1120
  },
1148
1121
  Array [
1149
1122
  Object {
1150
- "fontFamily": "RebondGrotesque-SemiBold",
1151
- "fontSize": 32,
1152
- "lineHeight": 44,
1153
1123
  "marginBottom": 16,
1154
1124
  "marginTop": 8,
1155
1125
  },
@@ -1157,10 +1127,9 @@ exports[`Carousel renders correctly with pageControlPosition top 1`] = `
1157
1127
  ],
1158
1128
  ]
1159
1129
  }
1160
- themeFontSize="medium"
1161
- themeFontWeight="regular"
1162
1130
  themeIntent="body"
1163
- themeTypeface="neutral"
1131
+ themeLevel="h1"
1132
+ themeTypeface="playful"
1164
1133
  >
1165
1134
  Same app with a new look!
1166
1135
  </Text>
@@ -1178,10 +1147,9 @@ exports[`Carousel renders correctly with pageControlPosition top 1`] = `
1178
1147
  undefined,
1179
1148
  ]
1180
1149
  }
1181
- themeFontSize="large"
1182
- themeFontWeight="regular"
1183
1150
  themeIntent="body"
1184
1151
  themeTypeface="neutral"
1152
+ themeVariant="regular"
1185
1153
  >
1186
1154
  Our app now has a new bright clean modern look and feel with the same great features.
1187
1155
  </Text>
@@ -1265,16 +1233,13 @@ exports[`Carousel renders correctly with pageControlPosition top 1`] = `
1265
1233
  Array [
1266
1234
  Object {
1267
1235
  "color": "#001f23",
1268
- "fontFamily": "BeVietnamPro-Regular",
1269
- "fontSize": 14,
1270
- "letterSpacing": 0.42,
1271
- "lineHeight": 22,
1236
+ "fontFamily": "RebondGrotesque-SemiBold",
1237
+ "fontSize": 36,
1238
+ "letterSpacing": 1.5,
1239
+ "lineHeight": 44,
1272
1240
  },
1273
1241
  Array [
1274
1242
  Object {
1275
- "fontFamily": "RebondGrotesque-SemiBold",
1276
- "fontSize": 32,
1277
- "lineHeight": 44,
1278
1243
  "marginBottom": 16,
1279
1244
  "marginTop": 8,
1280
1245
  },
@@ -1282,10 +1247,9 @@ exports[`Carousel renders correctly with pageControlPosition top 1`] = `
1282
1247
  ],
1283
1248
  ]
1284
1249
  }
1285
- themeFontSize="medium"
1286
- themeFontWeight="regular"
1287
1250
  themeIntent="body"
1288
- themeTypeface="neutral"
1251
+ themeLevel="h1"
1252
+ themeTypeface="playful"
1289
1253
  >
1290
1254
  Easier to get around
1291
1255
  </Text>
@@ -1303,10 +1267,9 @@ exports[`Carousel renders correctly with pageControlPosition top 1`] = `
1303
1267
  undefined,
1304
1268
  ]
1305
1269
  }
1306
- themeFontSize="large"
1307
- themeFontWeight="regular"
1308
1270
  themeIntent="body"
1309
1271
  themeTypeface="neutral"
1272
+ themeVariant="regular"
1310
1273
  >
1311
1274
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus vitae pulvinar quam, ac facilisis massa. Aliquam facilisis nisi eu justo dignissim, vel tempus justo iaculis.
1312
1275
  </Text>
@@ -1388,16 +1351,13 @@ exports[`Carousel renders correctly with pageControlPosition top 1`] = `
1388
1351
  Array [
1389
1352
  Object {
1390
1353
  "color": "#001f23",
1391
- "fontFamily": "BeVietnamPro-Regular",
1392
- "fontSize": 14,
1393
- "letterSpacing": 0.42,
1394
- "lineHeight": 22,
1354
+ "fontFamily": "RebondGrotesque-SemiBold",
1355
+ "fontSize": 36,
1356
+ "letterSpacing": 1.5,
1357
+ "lineHeight": 44,
1395
1358
  },
1396
1359
  Array [
1397
1360
  Object {
1398
- "fontFamily": "RebondGrotesque-SemiBold",
1399
- "fontSize": 32,
1400
- "lineHeight": 44,
1401
1361
  "marginBottom": 16,
1402
1362
  "marginTop": 8,
1403
1363
  },
@@ -1405,10 +1365,9 @@ exports[`Carousel renders correctly with pageControlPosition top 1`] = `
1405
1365
  ],
1406
1366
  ]
1407
1367
  }
1408
- themeFontSize="medium"
1409
- themeFontWeight="regular"
1410
1368
  themeIntent="body"
1411
- themeTypeface="neutral"
1369
+ themeLevel="h1"
1370
+ themeTypeface="playful"
1412
1371
  >
1413
1372
  Test slide 4
1414
1373
  </Text>
@@ -1470,28 +1429,25 @@ exports[`Carousel renders correctly with pageControlPosition top 1`] = `
1470
1429
  Array [
1471
1430
  Object {
1472
1431
  "color": "#001f23",
1473
- "fontFamily": "BeVietnamPro-Regular",
1474
- "fontSize": 14,
1475
- "letterSpacing": 0.42,
1476
- "lineHeight": 22,
1432
+ "fontFamily": "BeVietnamPro-SemiBold",
1433
+ "fontSize": 18,
1434
+ "letterSpacing": 0.24,
1435
+ "lineHeight": 28,
1477
1436
  },
1478
1437
  Array [
1479
1438
  Object {
1480
1439
  "color": "#ffffff",
1481
1440
  "flexShrink": 1,
1482
- "fontFamily": "BeVietnamPro-SemiBold",
1483
- "fontSize": 18,
1484
1441
  "textAlign": "center",
1485
1442
  },
1486
1443
  undefined,
1487
1444
  ],
1488
1445
  ]
1489
1446
  }
1490
- themeFontSize="medium"
1491
- themeFontWeight="regular"
1447
+ themeButtonVariant="filled-primary"
1492
1448
  themeIntent="body"
1449
+ themeLevel="h5"
1493
1450
  themeTypeface="neutral"
1494
- themeVariant="filled-primary"
1495
1451
  >
1496
1452
  Skip
1497
1453
  </Text>
@@ -1681,16 +1637,13 @@ exports[`Carousel should call skip call back when press skip 1`] = `
1681
1637
  Array [
1682
1638
  Object {
1683
1639
  "color": "#001f23",
1684
- "fontFamily": "BeVietnamPro-Regular",
1685
- "fontSize": 14,
1686
- "letterSpacing": 0.42,
1687
- "lineHeight": 22,
1640
+ "fontFamily": "RebondGrotesque-SemiBold",
1641
+ "fontSize": 36,
1642
+ "letterSpacing": 1.5,
1643
+ "lineHeight": 44,
1688
1644
  },
1689
1645
  Array [
1690
1646
  Object {
1691
- "fontFamily": "RebondGrotesque-SemiBold",
1692
- "fontSize": 32,
1693
- "lineHeight": 44,
1694
1647
  "marginBottom": 16,
1695
1648
  "marginTop": 8,
1696
1649
  },
@@ -1698,10 +1651,9 @@ exports[`Carousel should call skip call back when press skip 1`] = `
1698
1651
  ],
1699
1652
  ]
1700
1653
  }
1701
- themeFontSize="medium"
1702
- themeFontWeight="regular"
1703
1654
  themeIntent="body"
1704
- themeTypeface="neutral"
1655
+ themeLevel="h1"
1656
+ themeTypeface="playful"
1705
1657
  >
1706
1658
  Welcome to the new Employment Hero app
1707
1659
  </Text>
@@ -1719,10 +1671,9 @@ exports[`Carousel should call skip call back when press skip 1`] = `
1719
1671
  undefined,
1720
1672
  ]
1721
1673
  }
1722
- themeFontSize="large"
1723
- themeFontWeight="regular"
1724
1674
  themeIntent="body"
1725
1675
  themeTypeface="neutral"
1676
+ themeVariant="regular"
1726
1677
  >
1727
1678
  Access your Work, Money and Benefits in the palm of your hand.
1728
1679
  </Text>
@@ -1817,16 +1768,13 @@ exports[`Carousel should call skip call back when press skip 1`] = `
1817
1768
  Array [
1818
1769
  Object {
1819
1770
  "color": "#001f23",
1820
- "fontFamily": "BeVietnamPro-Regular",
1821
- "fontSize": 14,
1822
- "letterSpacing": 0.42,
1823
- "lineHeight": 22,
1771
+ "fontFamily": "RebondGrotesque-SemiBold",
1772
+ "fontSize": 36,
1773
+ "letterSpacing": 1.5,
1774
+ "lineHeight": 44,
1824
1775
  },
1825
1776
  Array [
1826
1777
  Object {
1827
- "fontFamily": "RebondGrotesque-SemiBold",
1828
- "fontSize": 32,
1829
- "lineHeight": 44,
1830
1778
  "marginBottom": 16,
1831
1779
  "marginTop": 8,
1832
1780
  },
@@ -1834,10 +1782,9 @@ exports[`Carousel should call skip call back when press skip 1`] = `
1834
1782
  ],
1835
1783
  ]
1836
1784
  }
1837
- themeFontSize="medium"
1838
- themeFontWeight="regular"
1839
1785
  themeIntent="body"
1840
- themeTypeface="neutral"
1786
+ themeLevel="h1"
1787
+ themeTypeface="playful"
1841
1788
  >
1842
1789
  Same app with a new look!
1843
1790
  </Text>
@@ -1855,10 +1802,9 @@ exports[`Carousel should call skip call back when press skip 1`] = `
1855
1802
  undefined,
1856
1803
  ]
1857
1804
  }
1858
- themeFontSize="large"
1859
- themeFontWeight="regular"
1860
1805
  themeIntent="body"
1861
1806
  themeTypeface="neutral"
1807
+ themeVariant="regular"
1862
1808
  >
1863
1809
  Our app now has a new bright clean modern look and feel with the same great features.
1864
1810
  </Text>
@@ -1942,16 +1888,13 @@ exports[`Carousel should call skip call back when press skip 1`] = `
1942
1888
  Array [
1943
1889
  Object {
1944
1890
  "color": "#001f23",
1945
- "fontFamily": "BeVietnamPro-Regular",
1946
- "fontSize": 14,
1947
- "letterSpacing": 0.42,
1948
- "lineHeight": 22,
1891
+ "fontFamily": "RebondGrotesque-SemiBold",
1892
+ "fontSize": 36,
1893
+ "letterSpacing": 1.5,
1894
+ "lineHeight": 44,
1949
1895
  },
1950
1896
  Array [
1951
1897
  Object {
1952
- "fontFamily": "RebondGrotesque-SemiBold",
1953
- "fontSize": 32,
1954
- "lineHeight": 44,
1955
1898
  "marginBottom": 16,
1956
1899
  "marginTop": 8,
1957
1900
  },
@@ -1959,10 +1902,9 @@ exports[`Carousel should call skip call back when press skip 1`] = `
1959
1902
  ],
1960
1903
  ]
1961
1904
  }
1962
- themeFontSize="medium"
1963
- themeFontWeight="regular"
1964
1905
  themeIntent="body"
1965
- themeTypeface="neutral"
1906
+ themeLevel="h1"
1907
+ themeTypeface="playful"
1966
1908
  >
1967
1909
  Easier to get around
1968
1910
  </Text>
@@ -1980,10 +1922,9 @@ exports[`Carousel should call skip call back when press skip 1`] = `
1980
1922
  undefined,
1981
1923
  ]
1982
1924
  }
1983
- themeFontSize="large"
1984
- themeFontWeight="regular"
1985
1925
  themeIntent="body"
1986
1926
  themeTypeface="neutral"
1927
+ themeVariant="regular"
1987
1928
  >
1988
1929
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus vitae pulvinar quam, ac facilisis massa. Aliquam facilisis nisi eu justo dignissim, vel tempus justo iaculis.
1989
1930
  </Text>
@@ -2065,16 +2006,13 @@ exports[`Carousel should call skip call back when press skip 1`] = `
2065
2006
  Array [
2066
2007
  Object {
2067
2008
  "color": "#001f23",
2068
- "fontFamily": "BeVietnamPro-Regular",
2069
- "fontSize": 14,
2070
- "letterSpacing": 0.42,
2071
- "lineHeight": 22,
2009
+ "fontFamily": "RebondGrotesque-SemiBold",
2010
+ "fontSize": 36,
2011
+ "letterSpacing": 1.5,
2012
+ "lineHeight": 44,
2072
2013
  },
2073
2014
  Array [
2074
2015
  Object {
2075
- "fontFamily": "RebondGrotesque-SemiBold",
2076
- "fontSize": 32,
2077
- "lineHeight": 44,
2078
2016
  "marginBottom": 16,
2079
2017
  "marginTop": 8,
2080
2018
  },
@@ -2082,10 +2020,9 @@ exports[`Carousel should call skip call back when press skip 1`] = `
2082
2020
  ],
2083
2021
  ]
2084
2022
  }
2085
- themeFontSize="medium"
2086
- themeFontWeight="regular"
2087
2023
  themeIntent="body"
2088
- themeTypeface="neutral"
2024
+ themeLevel="h1"
2025
+ themeTypeface="playful"
2089
2026
  >
2090
2027
  Test slide 4
2091
2028
  </Text>
@@ -2147,28 +2084,25 @@ exports[`Carousel should call skip call back when press skip 1`] = `
2147
2084
  Array [
2148
2085
  Object {
2149
2086
  "color": "#001f23",
2150
- "fontFamily": "BeVietnamPro-Regular",
2151
- "fontSize": 14,
2152
- "letterSpacing": 0.42,
2153
- "lineHeight": 22,
2087
+ "fontFamily": "BeVietnamPro-SemiBold",
2088
+ "fontSize": 18,
2089
+ "letterSpacing": 0.24,
2090
+ "lineHeight": 28,
2154
2091
  },
2155
2092
  Array [
2156
2093
  Object {
2157
2094
  "color": "#ffffff",
2158
2095
  "flexShrink": 1,
2159
- "fontFamily": "BeVietnamPro-SemiBold",
2160
- "fontSize": 18,
2161
2096
  "textAlign": "center",
2162
2097
  },
2163
2098
  undefined,
2164
2099
  ],
2165
2100
  ]
2166
2101
  }
2167
- themeFontSize="medium"
2168
- themeFontWeight="regular"
2102
+ themeButtonVariant="filled-primary"
2169
2103
  themeIntent="body"
2104
+ themeLevel="h5"
2170
2105
  themeTypeface="neutral"
2171
- themeVariant="filled-primary"
2172
2106
  >
2173
2107
  Skip
2174
2108
  </Text>
@@ -22,7 +22,7 @@ export const StyledWrapper = styled(TouchableOpacity)<{
22
22
  };
23
23
  });
24
24
 
25
- export const StyledDescription = styled(Typography.Text)(({ theme }) => ({
25
+ export const StyledDescription = styled(Typography.Body)(({ theme }) => ({
26
26
  paddingRight: theme.__hd__.checkbox.space.iconDescriptionPadding,
27
27
  flex: 1,
28
28
  }));