@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
@@ -77,16 +77,15 @@ exports[`Alert Icon render custom icon correctly 1`] = `
77
77
  "color": "#001f23",
78
78
  "fontFamily": "BeVietnamPro-Regular",
79
79
  "fontSize": 14,
80
- "letterSpacing": 0.42,
80
+ "letterSpacing": 0.48,
81
81
  "lineHeight": 22,
82
82
  },
83
83
  undefined,
84
84
  ]
85
85
  }
86
- themeFontSize="medium"
87
- themeFontWeight="regular"
88
86
  themeIntent="body"
89
87
  themeTypeface="neutral"
88
+ themeVariant="small"
90
89
  >
91
90
  Content
92
91
  </Text>
@@ -172,16 +171,15 @@ exports[`Alert renders correctly when intent is error 1`] = `
172
171
  "color": "#001f23",
173
172
  "fontFamily": "BeVietnamPro-SemiBold",
174
173
  "fontSize": 14,
175
- "letterSpacing": 0.42,
174
+ "letterSpacing": 0.24,
176
175
  "lineHeight": 22,
177
176
  },
178
177
  undefined,
179
178
  ]
180
179
  }
181
- themeFontSize="medium"
182
- themeFontWeight="semi-bold"
183
180
  themeIntent="body"
184
181
  themeTypeface="neutral"
182
+ themeVariant="small-bold"
185
183
  >
186
184
  Title
187
185
  </Text>
@@ -193,16 +191,15 @@ exports[`Alert renders correctly when intent is error 1`] = `
193
191
  "color": "#001f23",
194
192
  "fontFamily": "BeVietnamPro-Regular",
195
193
  "fontSize": 14,
196
- "letterSpacing": 0.42,
194
+ "letterSpacing": 0.48,
197
195
  "lineHeight": 22,
198
196
  },
199
197
  undefined,
200
198
  ]
201
199
  }
202
- themeFontSize="medium"
203
- themeFontWeight="regular"
204
200
  themeIntent="body"
205
201
  themeTypeface="neutral"
202
+ themeVariant="small"
206
203
  >
207
204
  Content
208
205
  </Text>
@@ -323,16 +320,15 @@ exports[`Alert renders correctly when intent is info 1`] = `
323
320
  "color": "#001f23",
324
321
  "fontFamily": "BeVietnamPro-SemiBold",
325
322
  "fontSize": 14,
326
- "letterSpacing": 0.42,
323
+ "letterSpacing": 0.24,
327
324
  "lineHeight": 22,
328
325
  },
329
326
  undefined,
330
327
  ]
331
328
  }
332
- themeFontSize="medium"
333
- themeFontWeight="semi-bold"
334
329
  themeIntent="body"
335
330
  themeTypeface="neutral"
331
+ themeVariant="small-bold"
336
332
  >
337
333
  Title
338
334
  </Text>
@@ -344,16 +340,15 @@ exports[`Alert renders correctly when intent is info 1`] = `
344
340
  "color": "#001f23",
345
341
  "fontFamily": "BeVietnamPro-Regular",
346
342
  "fontSize": 14,
347
- "letterSpacing": 0.42,
343
+ "letterSpacing": 0.48,
348
344
  "lineHeight": 22,
349
345
  },
350
346
  undefined,
351
347
  ]
352
348
  }
353
- themeFontSize="medium"
354
- themeFontWeight="regular"
355
349
  themeIntent="body"
356
350
  themeTypeface="neutral"
351
+ themeVariant="small"
357
352
  >
358
353
  Content
359
354
  </Text>
@@ -447,16 +442,15 @@ exports[`Alert renders correctly when intent is notification 1`] = `
447
442
  "color": "#001f23",
448
443
  "fontFamily": "BeVietnamPro-SemiBold",
449
444
  "fontSize": 14,
450
- "letterSpacing": 0.42,
445
+ "letterSpacing": 0.24,
451
446
  "lineHeight": 22,
452
447
  },
453
448
  undefined,
454
449
  ]
455
450
  }
456
- themeFontSize="medium"
457
- themeFontWeight="semi-bold"
458
451
  themeIntent="body"
459
452
  themeTypeface="neutral"
453
+ themeVariant="small-bold"
460
454
  >
461
455
  Title
462
456
  </Text>
@@ -468,16 +462,15 @@ exports[`Alert renders correctly when intent is notification 1`] = `
468
462
  "color": "#001f23",
469
463
  "fontFamily": "BeVietnamPro-Regular",
470
464
  "fontSize": 14,
471
- "letterSpacing": 0.42,
465
+ "letterSpacing": 0.48,
472
466
  "lineHeight": 22,
473
467
  },
474
468
  undefined,
475
469
  ]
476
470
  }
477
- themeFontSize="medium"
478
- themeFontWeight="regular"
479
471
  themeIntent="body"
480
472
  themeTypeface="neutral"
473
+ themeVariant="small"
481
474
  >
482
475
  Content
483
476
  </Text>
@@ -598,16 +591,15 @@ exports[`Alert renders correctly when intent is success 1`] = `
598
591
  "color": "#001f23",
599
592
  "fontFamily": "BeVietnamPro-SemiBold",
600
593
  "fontSize": 14,
601
- "letterSpacing": 0.42,
594
+ "letterSpacing": 0.24,
602
595
  "lineHeight": 22,
603
596
  },
604
597
  undefined,
605
598
  ]
606
599
  }
607
- themeFontSize="medium"
608
- themeFontWeight="semi-bold"
609
600
  themeIntent="body"
610
601
  themeTypeface="neutral"
602
+ themeVariant="small-bold"
611
603
  >
612
604
  Title
613
605
  </Text>
@@ -619,16 +611,15 @@ exports[`Alert renders correctly when intent is success 1`] = `
619
611
  "color": "#001f23",
620
612
  "fontFamily": "BeVietnamPro-Regular",
621
613
  "fontSize": 14,
622
- "letterSpacing": 0.42,
614
+ "letterSpacing": 0.48,
623
615
  "lineHeight": 22,
624
616
  },
625
617
  undefined,
626
618
  ]
627
619
  }
628
- themeFontSize="medium"
629
- themeFontWeight="regular"
630
620
  themeIntent="body"
631
621
  themeTypeface="neutral"
622
+ themeVariant="small"
632
623
  >
633
624
  Content
634
625
  </Text>
@@ -749,16 +740,15 @@ exports[`Alert renders correctly when intent is warning 1`] = `
749
740
  "color": "#001f23",
750
741
  "fontFamily": "BeVietnamPro-SemiBold",
751
742
  "fontSize": 14,
752
- "letterSpacing": 0.42,
743
+ "letterSpacing": 0.24,
753
744
  "lineHeight": 22,
754
745
  },
755
746
  undefined,
756
747
  ]
757
748
  }
758
- themeFontSize="medium"
759
- themeFontWeight="semi-bold"
760
749
  themeIntent="body"
761
750
  themeTypeface="neutral"
751
+ themeVariant="small-bold"
762
752
  >
763
753
  Title
764
754
  </Text>
@@ -770,16 +760,15 @@ exports[`Alert renders correctly when intent is warning 1`] = `
770
760
  "color": "#001f23",
771
761
  "fontFamily": "BeVietnamPro-Regular",
772
762
  "fontSize": 14,
773
- "letterSpacing": 0.42,
763
+ "letterSpacing": 0.48,
774
764
  "lineHeight": 22,
775
765
  },
776
766
  undefined,
777
767
  ]
778
768
  }
779
- themeFontSize="medium"
780
- themeFontWeight="regular"
781
769
  themeIntent="body"
782
770
  themeTypeface="neutral"
771
+ themeVariant="small"
783
772
  >
784
773
  Content
785
774
  </Text>
@@ -900,16 +889,15 @@ exports[`Alert renders correctly without rounded 1`] = `
900
889
  "color": "#001f23",
901
890
  "fontFamily": "BeVietnamPro-SemiBold",
902
891
  "fontSize": 14,
903
- "letterSpacing": 0.42,
892
+ "letterSpacing": 0.24,
904
893
  "lineHeight": 22,
905
894
  },
906
895
  undefined,
907
896
  ]
908
897
  }
909
- themeFontSize="medium"
910
- themeFontWeight="semi-bold"
911
898
  themeIntent="body"
912
899
  themeTypeface="neutral"
900
+ themeVariant="small-bold"
913
901
  >
914
902
  Title
915
903
  </Text>
@@ -921,16 +909,15 @@ exports[`Alert renders correctly without rounded 1`] = `
921
909
  "color": "#001f23",
922
910
  "fontFamily": "BeVietnamPro-Regular",
923
911
  "fontSize": 14,
924
- "letterSpacing": 0.42,
912
+ "letterSpacing": 0.48,
925
913
  "lineHeight": 22,
926
914
  },
927
915
  undefined,
928
916
  ]
929
917
  }
930
- themeFontSize="medium"
931
- themeFontWeight="regular"
932
918
  themeIntent="body"
933
919
  themeTypeface="neutral"
920
+ themeVariant="small"
934
921
  >
935
922
  Content
936
923
  </Text>
@@ -90,7 +90,9 @@ describe('Alert', () => {
90
90
  it('renders custom title correctly', () => {
91
91
  const { getByText } = renderWithTheme(
92
92
  <Alert
93
- title={<Typography.Text>Custom Title</Typography.Text>}
93
+ title={
94
+ <Typography.Body variant="small">Custom Title</Typography.Body>
95
+ }
94
96
  content="Content"
95
97
  />
96
98
  );
@@ -101,7 +103,11 @@ describe('Alert', () => {
101
103
  describe('Content', () => {
102
104
  it('renders custom content correctly', () => {
103
105
  const { getByText } = renderWithTheme(
104
- <Alert content={<Typography.Text>Custom Content</Typography.Text>} />
106
+ <Alert
107
+ content={
108
+ <Typography.Body variant="small">Custom Content</Typography.Body>
109
+ }
110
+ />
105
111
  );
106
112
 
107
113
  expect(getByText('Custom Content')).toBeDefined();
@@ -103,12 +103,12 @@ const Alert = ({
103
103
  ) : null}
104
104
  <TextContainer>
105
105
  {typeof title === 'string' ? (
106
- <Typography.Text fontWeight="semi-bold">{title}</Typography.Text>
106
+ <Typography.Body variant="small-bold">{title}</Typography.Body>
107
107
  ) : (
108
108
  title
109
109
  )}
110
110
  {typeof content === 'string' ? (
111
- <Typography.Text>{content}</Typography.Text>
111
+ <Typography.Body variant="small">{content}</Typography.Body>
112
112
  ) : (
113
113
  content
114
114
  )}
@@ -69,16 +69,15 @@ exports[`Attachment renders correctly 1`] = `
69
69
  "color": "#001f23",
70
70
  "fontFamily": "BeVietnamPro-Regular",
71
71
  "fontSize": 14,
72
- "letterSpacing": 0.42,
72
+ "letterSpacing": 0.48,
73
73
  "lineHeight": 22,
74
74
  },
75
75
  undefined,
76
76
  ]
77
77
  }
78
- themeFontSize="medium"
79
- themeFontWeight="regular"
80
78
  themeIntent="body"
81
79
  themeTypeface="neutral"
80
+ themeVariant="small"
82
81
  >
83
82
  Screenshot.png
84
83
  </Text>
@@ -57,7 +57,9 @@ const Attachment = ({
57
57
  {previewElement}
58
58
  {filename ? (
59
59
  <StyledTextContainer testID="attachment-content">
60
- <Typography.Text numberOfLines={1}>{filename}</Typography.Text>
60
+ <Typography.Body variant="small" numberOfLines={1}>
61
+ {filename}
62
+ </Typography.Body>
61
63
  </StyledTextContainer>
62
64
  ) : null}
63
65
  </StyledContentContainer>
@@ -28,10 +28,7 @@ const StyledView = styled(Animated.View)<{
28
28
  : undefined,
29
29
  }));
30
30
 
31
- const StyledText = styled(Typography.Text)(({ theme }) => ({
32
- fontFamily: theme.__hd__.badge.fonts.default,
33
- fontSize: theme.__hd__.badge.fontSizes.default,
34
- lineHeight: theme.__hd__.badge.lineHeights.default,
31
+ const StyledText = styled(Typography.Caption)(({ theme }) => ({
35
32
  color: theme.__hd__.badge.colors.text,
36
33
  includeFontPadding: false,
37
34
  textAlignVertical: 'center',
@@ -18,7 +18,7 @@ describe('Status Badge', () => {
18
18
  it('renders correctly with intent', () => {
19
19
  const { getByText, toJSON } = renderWithTheme(
20
20
  <Badge.Status intent="success">
21
- <Typography.Text>Activity</Typography.Text>
21
+ <Typography.Body variant="small">Activity</Typography.Body>
22
22
  </Badge.Status>
23
23
  );
24
24
  expect(toJSON()).toMatchSnapshot();
@@ -30,17 +30,14 @@ exports[`Badge has danger style when intent is danger 1`] = `
30
30
  Object {
31
31
  "color": "#001f23",
32
32
  "fontFamily": "BeVietnamPro-Regular",
33
- "fontSize": 14,
34
- "letterSpacing": 0.42,
35
- "lineHeight": 22,
33
+ "fontSize": 12,
34
+ "letterSpacing": 0.48,
35
+ "lineHeight": 16,
36
36
  },
37
37
  Array [
38
38
  Object {
39
39
  "color": "#ffffff",
40
- "fontFamily": "BeVietnamPro-SemiBold",
41
- "fontSize": 12,
42
40
  "includeFontPadding": false,
43
- "lineHeight": 16,
44
41
  "textAlign": "center",
45
42
  "textAlignVertical": "center",
46
43
  },
@@ -48,10 +45,8 @@ exports[`Badge has danger style when intent is danger 1`] = `
48
45
  ],
49
46
  ]
50
47
  }
51
- themeFontSize="medium"
52
48
  themeFontWeight="regular"
53
49
  themeIntent="body"
54
- themeTypeface="neutral"
55
50
  >
56
51
  DECLINED
57
52
  </Text>
@@ -88,17 +83,14 @@ exports[`Badge has info style when intent is info 1`] = `
88
83
  Object {
89
84
  "color": "#001f23",
90
85
  "fontFamily": "BeVietnamPro-Regular",
91
- "fontSize": 14,
92
- "letterSpacing": 0.42,
93
- "lineHeight": 22,
86
+ "fontSize": 12,
87
+ "letterSpacing": 0.48,
88
+ "lineHeight": 16,
94
89
  },
95
90
  Array [
96
91
  Object {
97
92
  "color": "#ffffff",
98
- "fontFamily": "BeVietnamPro-SemiBold",
99
- "fontSize": 12,
100
93
  "includeFontPadding": false,
101
- "lineHeight": 16,
102
94
  "textAlign": "center",
103
95
  "textAlignVertical": "center",
104
96
  },
@@ -106,10 +98,8 @@ exports[`Badge has info style when intent is info 1`] = `
106
98
  ],
107
99
  ]
108
100
  }
109
- themeFontSize="medium"
110
101
  themeFontWeight="regular"
111
102
  themeIntent="body"
112
- themeTypeface="neutral"
113
103
  >
114
104
  SUBMITTED
115
105
  </Text>
@@ -146,17 +136,14 @@ exports[`Badge has info style when intent is primary 1`] = `
146
136
  Object {
147
137
  "color": "#001f23",
148
138
  "fontFamily": "BeVietnamPro-Regular",
149
- "fontSize": 14,
150
- "letterSpacing": 0.42,
151
- "lineHeight": 22,
139
+ "fontSize": 12,
140
+ "letterSpacing": 0.48,
141
+ "lineHeight": 16,
152
142
  },
153
143
  Array [
154
144
  Object {
155
145
  "color": "#ffffff",
156
- "fontFamily": "BeVietnamPro-SemiBold",
157
- "fontSize": 12,
158
146
  "includeFontPadding": false,
159
- "lineHeight": 16,
160
147
  "textAlign": "center",
161
148
  "textAlignVertical": "center",
162
149
  },
@@ -164,10 +151,8 @@ exports[`Badge has info style when intent is primary 1`] = `
164
151
  ],
165
152
  ]
166
153
  }
167
- themeFontSize="medium"
168
154
  themeFontWeight="regular"
169
155
  themeIntent="body"
170
- themeTypeface="neutral"
171
156
  >
172
157
  PRIMARY
173
158
  </Text>
@@ -204,17 +189,14 @@ exports[`Badge has success style when intent is success 1`] = `
204
189
  Object {
205
190
  "color": "#001f23",
206
191
  "fontFamily": "BeVietnamPro-Regular",
207
- "fontSize": 14,
208
- "letterSpacing": 0.42,
209
- "lineHeight": 22,
192
+ "fontSize": 12,
193
+ "letterSpacing": 0.48,
194
+ "lineHeight": 16,
210
195
  },
211
196
  Array [
212
197
  Object {
213
198
  "color": "#ffffff",
214
- "fontFamily": "BeVietnamPro-SemiBold",
215
- "fontSize": 12,
216
199
  "includeFontPadding": false,
217
- "lineHeight": 16,
218
200
  "textAlign": "center",
219
201
  "textAlignVertical": "center",
220
202
  },
@@ -222,10 +204,8 @@ exports[`Badge has success style when intent is success 1`] = `
222
204
  ],
223
205
  ]
224
206
  }
225
- themeFontSize="medium"
226
207
  themeFontWeight="regular"
227
208
  themeIntent="body"
228
- themeTypeface="neutral"
229
209
  >
230
210
  APPROVED
231
211
  </Text>
@@ -262,17 +242,14 @@ exports[`Badge has warning style when intent is warning 1`] = `
262
242
  Object {
263
243
  "color": "#001f23",
264
244
  "fontFamily": "BeVietnamPro-Regular",
265
- "fontSize": 14,
266
- "letterSpacing": 0.42,
267
- "lineHeight": 22,
245
+ "fontSize": 12,
246
+ "letterSpacing": 0.48,
247
+ "lineHeight": 16,
268
248
  },
269
249
  Array [
270
250
  Object {
271
251
  "color": "#ffffff",
272
- "fontFamily": "BeVietnamPro-SemiBold",
273
- "fontSize": 12,
274
252
  "includeFontPadding": false,
275
- "lineHeight": 16,
276
253
  "textAlign": "center",
277
254
  "textAlignVertical": "center",
278
255
  },
@@ -280,10 +257,8 @@ exports[`Badge has warning style when intent is warning 1`] = `
280
257
  ],
281
258
  ]
282
259
  }
283
- themeFontSize="medium"
284
260
  themeFontWeight="regular"
285
261
  themeIntent="body"
286
- themeTypeface="neutral"
287
262
  >
288
263
  PENDING
289
264
  </Text>
@@ -321,17 +296,14 @@ exports[`Badge renders correctly with custom props 1`] = `
321
296
  Object {
322
297
  "color": "#001f23",
323
298
  "fontFamily": "BeVietnamPro-Regular",
324
- "fontSize": 14,
325
- "letterSpacing": 0.42,
326
- "lineHeight": 22,
299
+ "fontSize": 12,
300
+ "letterSpacing": 0.48,
301
+ "lineHeight": 16,
327
302
  },
328
303
  Array [
329
304
  Object {
330
305
  "color": "#ffffff",
331
- "fontFamily": "BeVietnamPro-SemiBold",
332
- "fontSize": 12,
333
306
  "includeFontPadding": false,
334
- "lineHeight": 16,
335
307
  "textAlign": "center",
336
308
  "textAlignVertical": "center",
337
309
  },
@@ -339,10 +311,8 @@ exports[`Badge renders correctly with custom props 1`] = `
339
311
  ],
340
312
  ]
341
313
  }
342
- themeFontSize="medium"
343
314
  themeFontWeight="regular"
344
315
  themeIntent="body"
345
- themeTypeface="neutral"
346
316
  >
347
317
  50+
348
318
  </Text>
@@ -51,16 +51,15 @@ exports[`Status Badge renders correctly with intent 1`] = `
51
51
  "color": "#001f23",
52
52
  "fontFamily": "BeVietnamPro-Regular",
53
53
  "fontSize": 14,
54
- "letterSpacing": 0.42,
54
+ "letterSpacing": 0.48,
55
55
  "lineHeight": 22,
56
56
  },
57
57
  undefined,
58
58
  ]
59
59
  }
60
- themeFontSize="medium"
61
- themeFontWeight="regular"
62
60
  themeIntent="body"
63
61
  themeTypeface="neutral"
62
+ themeVariant="small"
64
63
  >
65
64
  Activity
66
65
  </Text>
@@ -45,7 +45,7 @@ const BottomBarItem = styled(View)({
45
45
  alignItems: 'center',
46
46
  });
47
47
 
48
- const StyledBottomBarText = styled(Typography.Text)(({ theme }) => ({
48
+ const StyledBottomBarText = styled(Typography.Caption)(({ theme }) => ({
49
49
  marginTop: theme.__hd__.bottomNavigation.space.titleMarginTop,
50
50
  }));
51
51
 
@@ -142,7 +142,7 @@ exports[`BottomNavigation renders correctly 1`] = `
142
142
  "color": "#401960",
143
143
  "fontFamily": "BeVietnamPro-SemiBold",
144
144
  "fontSize": 12,
145
- "letterSpacing": 0.36,
145
+ "letterSpacing": 0.24,
146
146
  "lineHeight": 16,
147
147
  },
148
148
  Array [
@@ -153,10 +153,8 @@ exports[`BottomNavigation renders correctly 1`] = `
153
153
  ],
154
154
  ]
155
155
  }
156
- themeFontSize="small"
157
156
  themeFontWeight="semi-bold"
158
157
  themeIntent="primary"
159
- themeTypeface="neutral"
160
158
  >
161
159
  Home
162
160
  </Text>
@@ -205,7 +203,7 @@ exports[`BottomNavigation renders correctly 1`] = `
205
203
  "color": "#001f23",
206
204
  "fontFamily": "BeVietnamPro-SemiBold",
207
205
  "fontSize": 12,
208
- "letterSpacing": 0.36,
206
+ "letterSpacing": 0.24,
209
207
  "lineHeight": 16,
210
208
  },
211
209
  Array [
@@ -216,10 +214,8 @@ exports[`BottomNavigation renders correctly 1`] = `
216
214
  ],
217
215
  ]
218
216
  }
219
- themeFontSize="small"
220
217
  themeFontWeight="semi-bold"
221
218
  themeIntent="body"
222
- themeTypeface="neutral"
223
219
  >
224
220
  Feed
225
221
  </Text>
@@ -268,7 +264,7 @@ exports[`BottomNavigation renders correctly 1`] = `
268
264
  "color": "#001f23",
269
265
  "fontFamily": "BeVietnamPro-SemiBold",
270
266
  "fontSize": 12,
271
- "letterSpacing": 0.36,
267
+ "letterSpacing": 0.24,
272
268
  "lineHeight": 16,
273
269
  },
274
270
  Array [
@@ -279,10 +275,8 @@ exports[`BottomNavigation renders correctly 1`] = `
279
275
  ],
280
276
  ]
281
277
  }
282
- themeFontSize="small"
283
278
  themeFontWeight="semi-bold"
284
279
  themeIntent="body"
285
- themeTypeface="neutral"
286
280
  >
287
281
  Alerts
288
282
  </Text>
@@ -331,7 +325,7 @@ exports[`BottomNavigation renders correctly 1`] = `
331
325
  "color": "#001f23",
332
326
  "fontFamily": "BeVietnamPro-SemiBold",
333
327
  "fontSize": 12,
334
- "letterSpacing": 0.36,
328
+ "letterSpacing": 0.24,
335
329
  "lineHeight": 16,
336
330
  },
337
331
  Array [
@@ -342,10 +336,8 @@ exports[`BottomNavigation renders correctly 1`] = `
342
336
  ],
343
337
  ]
344
338
  }
345
- themeFontSize="small"
346
339
  themeFontWeight="semi-bold"
347
340
  themeIntent="body"
348
- themeTypeface="neutral"
349
341
  >
350
342
  Profile
351
343
  </Text>
@@ -142,7 +142,6 @@ const BottomNavigation = ({
142
142
  />
143
143
  {!!title && (
144
144
  <StyledBottomBarText
145
- fontSize="small"
146
145
  fontWeight="semi-bold"
147
146
  intent={active ? 'primary' : 'body'}
148
147
  numberOfLines={1}
@@ -26,9 +26,7 @@ const Header = ({
26
26
  <StyledHeaderWrapper>
27
27
  {typeof content === 'string' ? (
28
28
  <StyledHeader>
29
- <Typography.Text fontSize="large" fontWeight="semi-bold">
30
- {content}
31
- </Typography.Text>
29
+ <Typography.Body variant="regular-bold">{content}</Typography.Body>
32
30
  </StyledHeader>
33
31
  ) : (
34
32
  <View style={{ flex: 1 }}>{content}</View>
@@ -143,16 +143,15 @@ exports[`BottomSheet renders correctly with open state 1`] = `
143
143
  "color": "#001f23",
144
144
  "fontFamily": "BeVietnamPro-SemiBold",
145
145
  "fontSize": 16,
146
- "letterSpacing": 0.48,
146
+ "letterSpacing": 0.24,
147
147
  "lineHeight": 24,
148
148
  },
149
149
  undefined,
150
150
  ]
151
151
  }
152
- themeFontSize="large"
153
- themeFontWeight="semi-bold"
154
152
  themeIntent="body"
155
153
  themeTypeface="neutral"
154
+ themeVariant="regular-bold"
156
155
  >
157
156
  Title
158
157
  </Text>