@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
@@ -105,14 +105,13 @@ exports[`DatePickerIOS renders correctly 1`] = `
105
105
  Object {
106
106
  "color": "#001f23",
107
107
  "fontFamily": "BeVietnamPro-Regular",
108
- "fontSize": 14,
109
- "letterSpacing": 0.42,
110
- "lineHeight": 22,
108
+ "fontSize": 12,
109
+ "letterSpacing": 0.48,
110
+ "lineHeight": 16,
111
111
  },
112
112
  Array [
113
113
  Object {
114
114
  "color": "#001f23",
115
- "fontSize": 12,
116
115
  "lineHeight": 12,
117
116
  },
118
117
  Object {
@@ -122,11 +121,9 @@ exports[`DatePickerIOS renders correctly 1`] = `
122
121
  ]
123
122
  }
124
123
  testID="input-label"
125
- themeFontSize="medium"
126
124
  themeFontWeight="regular"
127
125
  themeIntent="body"
128
126
  themeState="filled"
129
- themeTypeface="neutral"
130
127
  >
131
128
  Start date
132
129
  </Text>
@@ -203,6 +200,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
203
200
  Object {
204
201
  "minHeight": 16,
205
202
  "paddingLeft": 16,
203
+ "paddingTop": 2,
206
204
  },
207
205
  undefined,
208
206
  ]
@@ -388,16 +386,15 @@ exports[`DatePickerIOS renders correctly 1`] = `
388
386
  "color": "#001f23",
389
387
  "fontFamily": "BeVietnamPro-SemiBold",
390
388
  "fontSize": 16,
391
- "letterSpacing": 0.48,
389
+ "letterSpacing": 0.24,
392
390
  "lineHeight": 24,
393
391
  },
394
392
  undefined,
395
393
  ]
396
394
  }
397
- themeFontSize="large"
398
- themeFontWeight="semi-bold"
399
395
  themeIntent="body"
400
396
  themeTypeface="neutral"
397
+ themeVariant="regular-bold"
401
398
  >
402
399
  Start date
403
400
  </Text>
@@ -529,28 +526,26 @@ exports[`DatePickerIOS renders correctly 1`] = `
529
526
  Array [
530
527
  Object {
531
528
  "color": "#001f23",
532
- "fontFamily": "BeVietnamPro-Regular",
533
- "fontSize": 14,
534
- "letterSpacing": 0.42,
535
- "lineHeight": 22,
529
+ "fontFamily": "BeVietnamPro-SemiBold",
530
+ "fontSize": 16,
531
+ "letterSpacing": 0.24,
532
+ "lineHeight": 24,
536
533
  },
537
534
  Array [
538
535
  Object {
539
536
  "color": "#401960",
540
537
  "flexShrink": 1,
541
- "fontFamily": "BeVietnamPro-SemiBold",
542
- "fontSize": 16,
538
+ "lineHeight": 22,
543
539
  "textAlign": "center",
544
540
  },
545
541
  undefined,
546
542
  ],
547
543
  ]
548
544
  }
549
- themeFontSize="medium"
550
- themeFontWeight="regular"
545
+ themeButtonVariant="text-primary"
551
546
  themeIntent="body"
552
547
  themeTypeface="neutral"
553
- themeVariant="text-primary"
548
+ themeVariant="regular-bold"
554
549
  >
555
550
  Confirm
556
551
  </Text>
@@ -13,10 +13,8 @@ const StyledWrapper = styled(View)(({ theme }) => ({
13
13
  padding: theme.__hd__.empty.space.wrapperPadding,
14
14
  }));
15
15
 
16
- const StyledTitle = styled(Typography.Text)<{ themeVariant: ThemeVariant }>(
16
+ const StyledTitle = styled(Typography.Title)<{ themeVariant: ThemeVariant }>(
17
17
  ({ theme, themeVariant }) => ({
18
- fontFamily: theme.__hd__.empty.fonts.title,
19
- fontSize: theme.__hd__.empty.fontSizes.title,
20
18
  textAlign: 'center',
21
19
  marginBottom: theme.__hd__.empty.space.titleMargin,
22
20
  color:
@@ -26,11 +24,9 @@ const StyledTitle = styled(Typography.Text)<{ themeVariant: ThemeVariant }>(
26
24
  })
27
25
  );
28
26
 
29
- const StyledDescription = styled(Typography.Text)<{
27
+ const StyledDescription = styled(Typography.Body)<{
30
28
  themeVariant: ThemeVariant;
31
29
  }>(({ theme, themeVariant }) => ({
32
- fontFamily: theme.__hd__.empty.fonts.description,
33
- fontSize: theme.__hd__.empty.fontSizes.description,
34
30
  textAlign: 'center',
35
31
  color:
36
32
  themeVariant === 'dark'
@@ -22,16 +22,14 @@ exports[`Empty renders empty state content correctly 1`] = `
22
22
  Array [
23
23
  Object {
24
24
  "color": "#001f23",
25
- "fontFamily": "BeVietnamPro-Regular",
26
- "fontSize": 14,
27
- "letterSpacing": 0.42,
28
- "lineHeight": 22,
25
+ "fontFamily": "RebondGrotesque-SemiBold",
26
+ "fontSize": 24,
27
+ "letterSpacing": 0.24,
28
+ "lineHeight": 32,
29
29
  },
30
30
  Array [
31
31
  Object {
32
32
  "color": "#001f23",
33
- "fontFamily": "RebondGrotesque-SemiBold",
34
- "fontSize": 24,
35
33
  "marginBottom": 8,
36
34
  "textAlign": "center",
37
35
  },
@@ -39,10 +37,9 @@ exports[`Empty renders empty state content correctly 1`] = `
39
37
  ],
40
38
  ]
41
39
  }
42
- themeFontSize="medium"
43
- themeFontWeight="regular"
44
40
  themeIntent="body"
45
- themeTypeface="neutral"
41
+ themeLevel="h4"
42
+ themeTypeface="playful"
46
43
  themeVariant="light"
47
44
  >
48
45
  You have no notification at this time
@@ -54,26 +51,22 @@ exports[`Empty renders empty state content correctly 1`] = `
54
51
  Object {
55
52
  "color": "#001f23",
56
53
  "fontFamily": "BeVietnamPro-Regular",
57
- "fontSize": 14,
58
- "letterSpacing": 0.42,
59
- "lineHeight": 22,
54
+ "fontSize": 18,
55
+ "letterSpacing": 0.54,
56
+ "lineHeight": 26,
60
57
  },
61
58
  Array [
62
59
  Object {
63
60
  "color": "#4d6265",
64
- "fontFamily": "RebondGrotesque",
65
- "fontSize": 18,
66
61
  "textAlign": "center",
67
62
  },
68
63
  undefined,
69
64
  ],
70
65
  ]
71
66
  }
72
- themeFontSize="medium"
73
- themeFontWeight="regular"
74
67
  themeIntent="body"
75
- themeTypeface="neutral"
76
- themeVariant="light"
68
+ themeTypeface="playful"
69
+ themeVariant="regular"
77
70
  >
78
71
  We'll notify you later.
79
72
  </Text>
@@ -117,16 +110,14 @@ exports[`Empty renders empty state with image correctly 1`] = `
117
110
  Array [
118
111
  Object {
119
112
  "color": "#001f23",
120
- "fontFamily": "BeVietnamPro-Regular",
121
- "fontSize": 14,
122
- "letterSpacing": 0.42,
123
- "lineHeight": 22,
113
+ "fontFamily": "RebondGrotesque-SemiBold",
114
+ "fontSize": 24,
115
+ "letterSpacing": 0.24,
116
+ "lineHeight": 32,
124
117
  },
125
118
  Array [
126
119
  Object {
127
120
  "color": "#001f23",
128
- "fontFamily": "RebondGrotesque-SemiBold",
129
- "fontSize": 24,
130
121
  "marginBottom": 8,
131
122
  "textAlign": "center",
132
123
  },
@@ -134,10 +125,9 @@ exports[`Empty renders empty state with image correctly 1`] = `
134
125
  ],
135
126
  ]
136
127
  }
137
- themeFontSize="medium"
138
- themeFontWeight="regular"
139
128
  themeIntent="body"
140
- themeTypeface="neutral"
129
+ themeLevel="h4"
130
+ themeTypeface="playful"
141
131
  themeVariant="light"
142
132
  >
143
133
  You have no notification at this time
@@ -149,26 +139,22 @@ exports[`Empty renders empty state with image correctly 1`] = `
149
139
  Object {
150
140
  "color": "#001f23",
151
141
  "fontFamily": "BeVietnamPro-Regular",
152
- "fontSize": 14,
153
- "letterSpacing": 0.42,
154
- "lineHeight": 22,
142
+ "fontSize": 18,
143
+ "letterSpacing": 0.54,
144
+ "lineHeight": 26,
155
145
  },
156
146
  Array [
157
147
  Object {
158
148
  "color": "#4d6265",
159
- "fontFamily": "RebondGrotesque",
160
- "fontSize": 18,
161
149
  "textAlign": "center",
162
150
  },
163
151
  undefined,
164
152
  ],
165
153
  ]
166
154
  }
167
- themeFontSize="medium"
168
- themeFontWeight="regular"
169
155
  themeIntent="body"
170
- themeTypeface="neutral"
171
- themeVariant="light"
156
+ themeTypeface="playful"
157
+ themeVariant="regular"
172
158
  >
173
159
  We'll notify you later.
174
160
  </Text>
@@ -58,9 +58,11 @@ const Empty = ({
58
58
  image.props.style,
59
59
  ],
60
60
  })}
61
- <StyledTitle themeVariant={variant}>{title}</StyledTitle>
61
+ <StyledTitle themeVariant={variant} level="h4" typeface="playful">
62
+ {title}
63
+ </StyledTitle>
62
64
  {!!description && (
63
- <StyledDescription themeVariant={variant}>
65
+ <StyledDescription themeVariant={variant} typeface="playful">
64
66
  {description}
65
67
  </StyledDescription>
66
68
  )}
@@ -62,21 +62,15 @@ const StyledErrorImage = styled(Image)(({ theme }) => ({
62
62
  resizeMode: 'contain',
63
63
  }));
64
64
 
65
- const StyledErrorTitle = styled(Typography.Text)(({ theme }) => ({
66
- fontFamily: theme.__hd__.error.fonts.title,
67
- fontSize: theme.__hd__.error.fontSizes.title,
65
+ const StyledErrorTitle = styled(Typography.Title)(({ theme }) => ({
68
66
  textAlign: 'center',
69
67
  marginBottom: theme.__hd__.error.space.titleMarginBottom,
70
68
  color: theme.__hd__.error.colors.title,
71
- lineHeight: theme.__hd__.error.lineHeight.title,
72
69
  }));
73
70
 
74
- const StyledErrorDescription = styled(Typography.Text)(({ theme }) => ({
75
- fontFamily: theme.__hd__.error.fonts.description,
76
- fontSize: theme.__hd__.error.fontSizes.description,
71
+ const StyledErrorDescription = styled(Typography.Body)(({ theme }) => ({
77
72
  textAlign: 'center',
78
73
  color: theme.__hd__.error.colors.description,
79
- lineHeight: theme.__hd__.error.lineHeight.description,
80
74
  }));
81
75
 
82
76
  export {
@@ -67,17 +67,14 @@ exports[`Error renders error screen with custom image element correctly 1`] = `
67
67
  Array [
68
68
  Object {
69
69
  "color": "#001f23",
70
- "fontFamily": "BeVietnamPro-Regular",
71
- "fontSize": 14,
72
- "letterSpacing": 0.42,
73
- "lineHeight": 22,
70
+ "fontFamily": "RebondGrotesque-SemiBold",
71
+ "fontSize": 24,
72
+ "letterSpacing": 0.24,
73
+ "lineHeight": 32,
74
74
  },
75
75
  Array [
76
76
  Object {
77
77
  "color": "#001f23",
78
- "fontFamily": "RebondGrotesque-SemiBold",
79
- "fontSize": 24,
80
- "lineHeight": 32,
81
78
  "marginBottom": 8,
82
79
  "textAlign": "center",
83
80
  },
@@ -85,10 +82,9 @@ exports[`Error renders error screen with custom image element correctly 1`] = `
85
82
  ],
86
83
  ]
87
84
  }
88
- themeFontSize="medium"
89
- themeFontWeight="regular"
90
85
  themeIntent="body"
91
- themeTypeface="neutral"
86
+ themeLevel="h4"
87
+ themeTypeface="playful"
92
88
  >
93
89
  We’re sorry, something went wrong
94
90
  </Text>
@@ -99,26 +95,22 @@ exports[`Error renders error screen with custom image element correctly 1`] = `
99
95
  Object {
100
96
  "color": "#001f23",
101
97
  "fontFamily": "BeVietnamPro-Regular",
102
- "fontSize": 14,
103
- "letterSpacing": 0.42,
104
- "lineHeight": 22,
98
+ "fontSize": 18,
99
+ "letterSpacing": 0.54,
100
+ "lineHeight": 26,
105
101
  },
106
102
  Array [
107
103
  Object {
108
104
  "color": "#4d6265",
109
- "fontFamily": "RebondGrotesque",
110
- "fontSize": 18,
111
- "lineHeight": 26,
112
105
  "textAlign": "center",
113
106
  },
114
107
  undefined,
115
108
  ],
116
109
  ]
117
110
  }
118
- themeFontSize="medium"
119
- themeFontWeight="regular"
120
111
  themeIntent="body"
121
- themeTypeface="neutral"
112
+ themeTypeface="playful"
113
+ themeVariant="regular"
122
114
  >
123
115
  Please try again later
124
116
  </Text>
@@ -201,17 +193,14 @@ exports[`Error renders error screen with image correctly 1`] = `
201
193
  Array [
202
194
  Object {
203
195
  "color": "#001f23",
204
- "fontFamily": "BeVietnamPro-Regular",
205
- "fontSize": 14,
206
- "letterSpacing": 0.42,
207
- "lineHeight": 22,
196
+ "fontFamily": "RebondGrotesque-SemiBold",
197
+ "fontSize": 24,
198
+ "letterSpacing": 0.24,
199
+ "lineHeight": 32,
208
200
  },
209
201
  Array [
210
202
  Object {
211
203
  "color": "#001f23",
212
- "fontFamily": "RebondGrotesque-SemiBold",
213
- "fontSize": 24,
214
- "lineHeight": 32,
215
204
  "marginBottom": 8,
216
205
  "textAlign": "center",
217
206
  },
@@ -219,10 +208,9 @@ exports[`Error renders error screen with image correctly 1`] = `
219
208
  ],
220
209
  ]
221
210
  }
222
- themeFontSize="medium"
223
- themeFontWeight="regular"
224
211
  themeIntent="body"
225
- themeTypeface="neutral"
212
+ themeLevel="h4"
213
+ themeTypeface="playful"
226
214
  >
227
215
  We’re sorry, something went wrong
228
216
  </Text>
@@ -233,26 +221,22 @@ exports[`Error renders error screen with image correctly 1`] = `
233
221
  Object {
234
222
  "color": "#001f23",
235
223
  "fontFamily": "BeVietnamPro-Regular",
236
- "fontSize": 14,
237
- "letterSpacing": 0.42,
238
- "lineHeight": 22,
224
+ "fontSize": 18,
225
+ "letterSpacing": 0.54,
226
+ "lineHeight": 26,
239
227
  },
240
228
  Array [
241
229
  Object {
242
230
  "color": "#4d6265",
243
- "fontFamily": "RebondGrotesque",
244
- "fontSize": 18,
245
- "lineHeight": 26,
246
231
  "textAlign": "center",
247
232
  },
248
233
  undefined,
249
234
  ],
250
235
  ]
251
236
  }
252
- themeFontSize="medium"
253
- themeFontWeight="regular"
254
237
  themeIntent="body"
255
- themeTypeface="neutral"
238
+ themeTypeface="playful"
239
+ themeVariant="regular"
256
240
  >
257
241
  Please try again later
258
242
  </Text>
@@ -351,17 +335,14 @@ exports[`Error renders full screen error page correctly 1`] = `
351
335
  Array [
352
336
  Object {
353
337
  "color": "#001f23",
354
- "fontFamily": "BeVietnamPro-Regular",
355
- "fontSize": 14,
356
- "letterSpacing": 0.42,
357
- "lineHeight": 22,
338
+ "fontFamily": "RebondGrotesque-SemiBold",
339
+ "fontSize": 24,
340
+ "letterSpacing": 0.24,
341
+ "lineHeight": 32,
358
342
  },
359
343
  Array [
360
344
  Object {
361
345
  "color": "#001f23",
362
- "fontFamily": "RebondGrotesque-SemiBold",
363
- "fontSize": 24,
364
- "lineHeight": 32,
365
346
  "marginBottom": 8,
366
347
  "textAlign": "center",
367
348
  },
@@ -369,10 +350,9 @@ exports[`Error renders full screen error page correctly 1`] = `
369
350
  ],
370
351
  ]
371
352
  }
372
- themeFontSize="medium"
373
- themeFontWeight="regular"
374
353
  themeIntent="body"
375
- themeTypeface="neutral"
354
+ themeLevel="h4"
355
+ themeTypeface="playful"
376
356
  >
377
357
  We’re sorry, something went wrong
378
358
  </Text>
@@ -383,26 +363,22 @@ exports[`Error renders full screen error page correctly 1`] = `
383
363
  Object {
384
364
  "color": "#001f23",
385
365
  "fontFamily": "BeVietnamPro-Regular",
386
- "fontSize": 14,
387
- "letterSpacing": 0.42,
388
- "lineHeight": 22,
366
+ "fontSize": 18,
367
+ "letterSpacing": 0.54,
368
+ "lineHeight": 26,
389
369
  },
390
370
  Array [
391
371
  Object {
392
372
  "color": "#4d6265",
393
- "fontFamily": "RebondGrotesque",
394
- "fontSize": 18,
395
- "lineHeight": 26,
396
373
  "textAlign": "center",
397
374
  },
398
375
  undefined,
399
376
  ],
400
377
  ]
401
378
  }
402
- themeFontSize="medium"
403
- themeFontWeight="regular"
404
379
  themeIntent="body"
405
- themeTypeface="neutral"
380
+ themeTypeface="playful"
381
+ themeVariant="regular"
406
382
  >
407
383
  Please try again later
408
384
  </Text>
@@ -447,17 +423,14 @@ exports[`Error renders title only correctly 1`] = `
447
423
  Array [
448
424
  Object {
449
425
  "color": "#001f23",
450
- "fontFamily": "BeVietnamPro-Regular",
451
- "fontSize": 14,
452
- "letterSpacing": 0.42,
453
- "lineHeight": 22,
426
+ "fontFamily": "RebondGrotesque-SemiBold",
427
+ "fontSize": 24,
428
+ "letterSpacing": 0.24,
429
+ "lineHeight": 32,
454
430
  },
455
431
  Array [
456
432
  Object {
457
433
  "color": "#001f23",
458
- "fontFamily": "RebondGrotesque-SemiBold",
459
- "fontSize": 24,
460
- "lineHeight": 32,
461
434
  "marginBottom": 8,
462
435
  "textAlign": "center",
463
436
  },
@@ -465,10 +438,9 @@ exports[`Error renders title only correctly 1`] = `
465
438
  ],
466
439
  ]
467
440
  }
468
- themeFontSize="medium"
469
- themeFontWeight="regular"
470
441
  themeIntent="body"
471
- themeTypeface="neutral"
442
+ themeLevel="h4"
443
+ themeTypeface="playful"
472
444
  >
473
445
  We’re sorry, something went wrong
474
446
  </Text>
@@ -479,26 +451,22 @@ exports[`Error renders title only correctly 1`] = `
479
451
  Object {
480
452
  "color": "#001f23",
481
453
  "fontFamily": "BeVietnamPro-Regular",
482
- "fontSize": 14,
483
- "letterSpacing": 0.42,
484
- "lineHeight": 22,
454
+ "fontSize": 18,
455
+ "letterSpacing": 0.54,
456
+ "lineHeight": 26,
485
457
  },
486
458
  Array [
487
459
  Object {
488
460
  "color": "#4d6265",
489
- "fontFamily": "RebondGrotesque",
490
- "fontSize": 18,
491
- "lineHeight": 26,
492
461
  "textAlign": "center",
493
462
  },
494
463
  undefined,
495
464
  ],
496
465
  ]
497
466
  }
498
- themeFontSize="medium"
499
- themeFontWeight="regular"
500
467
  themeIntent="body"
501
- themeTypeface="neutral"
468
+ themeTypeface="playful"
469
+ themeVariant="regular"
502
470
  >
503
471
  Please try again later
504
472
  </Text>
@@ -121,10 +121,14 @@ const ErrorPage = ({
121
121
  {renderImage(image)}
122
122
  </StyledErrorImageContainer>
123
123
  )}
124
- <StyledErrorTitle>{title}</StyledErrorTitle>
124
+ <StyledErrorTitle level="h4" typeface="playful">
125
+ {title}
126
+ </StyledErrorTitle>
125
127
 
126
128
  {description && (
127
- <StyledErrorDescription>{description}</StyledErrorDescription>
129
+ <StyledErrorDescription typeface="playful">
130
+ {description}
131
+ </StyledErrorDescription>
128
132
  )}
129
133
  </StyledErrorContent>
130
134
 
@@ -41,11 +41,8 @@ const StyledBackdrop = styled(Animated.View)<
41
41
  backgroundColor: theme.__hd__.fab.colors.backdropBackground,
42
42
  }));
43
43
 
44
- const StyledHeaderText = styled(Typography.Text)<TextProps>(({ theme }) => ({
45
- fontSize: theme.__hd__.fab.fontSizes.header,
46
- lineHeight: theme.__hd__.fab.lineHeights.header,
44
+ const StyledHeaderText = styled(Typography.Title)<TextProps>(({ theme }) => ({
47
45
  color: theme.__hd__.fab.colors.headerText,
48
- fontFamily: theme.__hd__.fab.fonts.header,
49
46
  marginRight: theme.__hd__.fab.space.headerTextMarginRight,
50
47
  marginBottom: theme.__hd__.fab.space.headerTextMarginBottom,
51
48
  textAlign: 'right',
@@ -17,12 +17,8 @@ const StyledActionItem = styled(TouchableHighlight)(({ theme }) => ({
17
17
  overflow: 'hidden',
18
18
  }));
19
19
 
20
- const StyledActionItemText = styled(Typography.Text)<TouchableOpacityProps>(
20
+ const StyledActionItemText = styled(Typography.Body)<TouchableOpacityProps>(
21
21
  ({ theme }) => ({
22
- paddingLeft: theme.__hd__.fab.space.actionItemTextPaddingLeft,
23
- fontSize: theme.__hd__.fab.fontSizes.actionItemText,
24
- lineHeight: theme.__hd__.fab.lineHeights.actionItemText,
25
- fontFamily: theme.__hd__.fab.fonts.actionItemText,
26
22
  color: theme.__hd__.fab.colors.actionItemText,
27
23
  })
28
24
  );