@hero-design/rn 8.52.2-rc2.0 → 8.53.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 (184) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +4 -16
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +997 -700
  5. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  6. package/lib/index.js +996 -698
  7. package/package.json +7 -7
  8. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +4 -0
  9. package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +2 -0
  10. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  11. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +7 -0
  12. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  13. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +2 -0
  14. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  15. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -0
  16. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  17. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +6 -0
  18. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -0
  19. package/src/components/BottomNavigation/StyledBottomNavigation.tsx +60 -0
  20. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +413 -0
  21. package/src/components/BottomNavigation/__tests__/index.spec.tsx +97 -0
  22. package/src/components/BottomNavigation/index.tsx +166 -0
  23. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +21 -32
  24. package/src/components/BottomSheet/index.tsx +1 -1
  25. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +21 -0
  26. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +10 -0
  27. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +10 -0
  28. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  29. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +16 -0
  30. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +1 -0
  31. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +32 -0
  32. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -0
  33. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +7 -0
  34. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
  35. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -0
  36. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
  37. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +2 -0
  38. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +4 -0
  39. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +1 -0
  40. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +803 -1
  41. package/src/components/Carousel/__tests__/index.spec.tsx +47 -37
  42. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +8 -0
  43. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
  44. package/src/components/Checkbox/index.tsx +13 -1
  45. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +12 -0
  46. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +2 -0
  47. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  48. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +1 -0
  49. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  50. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +15 -0
  51. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
  52. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +1 -0
  53. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +329 -309
  54. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +12 -0
  55. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  56. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  57. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  58. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  59. package/src/components/Error/index.tsx +20 -3
  60. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  61. package/src/components/FAB/ActionGroup/index.tsx +14 -1
  62. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -0
  63. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +3 -0
  64. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  65. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  66. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  67. package/src/components/Icon/IconList.ts +7 -0
  68. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  69. package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  70. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +2 -0
  71. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +4 -0
  72. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +4 -0
  73. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +9 -0
  74. package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  75. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  76. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +5 -0
  77. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  78. package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  79. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +5 -0
  80. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -0
  81. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +1 -0
  82. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  83. package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  84. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +1 -0
  85. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +1 -0
  86. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +2 -0
  87. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +4 -0
  88. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
  89. package/src/components/SectionHeading/__tests__/index.spec.tsx +1 -0
  90. package/src/components/SectionHeading/index.tsx +57 -32
  91. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  92. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +4 -0
  93. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +42 -128
  94. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  95. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +4 -0
  96. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +35 -96
  97. package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +7 -0
  98. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  99. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +1 -0
  100. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +24 -0
  101. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  102. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  103. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +3 -0
  104. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  105. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +4 -0
  106. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  107. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +5 -0
  108. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  109. package/src/components/Tabs/__tests__/SceneView.spec.tsx +1 -1
  110. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +4 -0
  111. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +3 -0
  112. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +1 -0
  113. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +2 -0
  114. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  115. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +10 -0
  116. package/src/components/Tag/index.tsx +12 -0
  117. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +21 -0
  118. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +17 -0
  119. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +2 -0
  120. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +330 -309
  121. package/src/components/Toast/StyledToast.tsx +9 -7
  122. package/src/components/Toast/Toast.tsx +4 -1
  123. package/src/components/Toast/ToastContainer.tsx +6 -2
  124. package/src/components/Toast/ToastContext.ts +5 -2
  125. package/src/components/Toast/ToastProvider.tsx +19 -2
  126. package/src/components/Toast/__tests__/ToastContainer.spec.tsx +15 -12
  127. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +7 -0
  128. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +14 -6
  129. package/src/components/Toast/types.ts +5 -1
  130. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +3 -0
  131. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +8 -0
  132. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +16 -0
  133. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +19 -0
  134. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +10 -0
  135. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +13 -0
  136. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +8 -0
  137. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +11 -0
  138. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +20 -0
  139. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +20 -0
  140. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +23 -0
  141. package/src/index.ts +2 -0
  142. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +102 -0
  143. package/src/theme/components/badge.ts +28 -1
  144. package/src/theme/components/bottomNavigation.ts +27 -0
  145. package/src/theme/components/button.ts +24 -0
  146. package/src/theme/components/carousel.ts +28 -1
  147. package/src/theme/components/empty.ts +23 -1
  148. package/src/theme/components/error.ts +32 -1
  149. package/src/theme/components/fab.ts +13 -2
  150. package/src/theme/components/pinInput.ts +32 -0
  151. package/src/theme/components/success.ts +23 -1
  152. package/src/theme/components/tag.ts +28 -1
  153. package/src/theme/components/textInput.ts +5 -0
  154. package/src/theme/getTheme.ts +21 -18
  155. package/src/types.ts +2 -0
  156. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +52 -0
  157. package/types/components/BottomNavigation/index.d.ts +45 -0
  158. package/types/components/Checkbox/index.d.ts +6 -1
  159. package/types/components/Error/index.d.ts +9 -3
  160. package/types/components/FAB/ActionGroup/index.d.ts +5 -0
  161. package/types/components/Icon/IconList.d.ts +1 -1
  162. package/types/components/Icon/index.d.ts +1 -1
  163. package/types/components/Icon/utils.d.ts +1 -1
  164. package/types/components/SectionHeading/index.d.ts +11 -1
  165. package/types/components/Tag/index.d.ts +6 -1
  166. package/types/components/Toast/StyledToast.d.ts +2 -0
  167. package/types/components/Toast/ToastContext.d.ts +2 -2
  168. package/types/components/Toast/ToastProvider.d.ts +1 -1
  169. package/types/components/Toast/index.d.ts +1 -1
  170. package/types/components/Toast/types.d.ts +5 -1
  171. package/types/index.d.ts +2 -1
  172. package/types/theme/components/badge.d.ts +24 -0
  173. package/types/theme/components/bottomNavigation.d.ts +23 -0
  174. package/types/theme/components/button.d.ts +20 -0
  175. package/types/theme/components/carousel.d.ts +24 -0
  176. package/types/theme/components/empty.d.ts +19 -0
  177. package/types/theme/components/error.d.ts +27 -0
  178. package/types/theme/components/fab.d.ts +19 -8
  179. package/types/theme/components/pinInput.d.ts +27 -0
  180. package/types/theme/components/success.d.ts +19 -0
  181. package/types/theme/components/tag.d.ts +24 -0
  182. package/types/theme/components/textInput.d.ts +5 -0
  183. package/types/theme/getTheme.d.ts +20 -18
  184. package/types/types.d.ts +2 -1
@@ -29,6 +29,7 @@ exports[`StyledTitle has body intent style 1`] = `
29
29
  </Text>
30
30
  <View
31
31
  pointerEvents="box-none"
32
+ position="bottom"
32
33
  style={
33
34
  [
34
35
  {
@@ -78,6 +79,7 @@ exports[`StyledTitle has danger intent style 1`] = `
78
79
  </Text>
79
80
  <View
80
81
  pointerEvents="box-none"
82
+ position="bottom"
81
83
  style={
82
84
  [
83
85
  {
@@ -127,6 +129,7 @@ exports[`StyledTitle has h1 level and neutral typeface style 1`] = `
127
129
  </Text>
128
130
  <View
129
131
  pointerEvents="box-none"
132
+ position="bottom"
130
133
  style={
131
134
  [
132
135
  {
@@ -176,6 +179,7 @@ exports[`StyledTitle has h1 level and playful typeface style 1`] = `
176
179
  </Text>
177
180
  <View
178
181
  pointerEvents="box-none"
182
+ position="bottom"
179
183
  style={
180
184
  [
181
185
  {
@@ -225,6 +229,7 @@ exports[`StyledTitle has h2 level and neutral typeface style 1`] = `
225
229
  </Text>
226
230
  <View
227
231
  pointerEvents="box-none"
232
+ position="bottom"
228
233
  style={
229
234
  [
230
235
  {
@@ -274,6 +279,7 @@ exports[`StyledTitle has h2 level and playful typeface style 1`] = `
274
279
  </Text>
275
280
  <View
276
281
  pointerEvents="box-none"
282
+ position="bottom"
277
283
  style={
278
284
  [
279
285
  {
@@ -323,6 +329,7 @@ exports[`StyledTitle has h3 level and neutral typeface style 1`] = `
323
329
  </Text>
324
330
  <View
325
331
  pointerEvents="box-none"
332
+ position="bottom"
326
333
  style={
327
334
  [
328
335
  {
@@ -372,6 +379,7 @@ exports[`StyledTitle has h3 level and playful typeface style 1`] = `
372
379
  </Text>
373
380
  <View
374
381
  pointerEvents="box-none"
382
+ position="bottom"
375
383
  style={
376
384
  [
377
385
  {
@@ -421,6 +429,7 @@ exports[`StyledTitle has h4 level and neutral typeface style 1`] = `
421
429
  </Text>
422
430
  <View
423
431
  pointerEvents="box-none"
432
+ position="bottom"
424
433
  style={
425
434
  [
426
435
  {
@@ -470,6 +479,7 @@ exports[`StyledTitle has h4 level and playful typeface style 1`] = `
470
479
  </Text>
471
480
  <View
472
481
  pointerEvents="box-none"
482
+ position="bottom"
473
483
  style={
474
484
  [
475
485
  {
@@ -519,6 +529,7 @@ exports[`StyledTitle has h5 level and neutral typeface style 1`] = `
519
529
  </Text>
520
530
  <View
521
531
  pointerEvents="box-none"
532
+ position="bottom"
522
533
  style={
523
534
  [
524
535
  {
@@ -568,6 +579,7 @@ exports[`StyledTitle has h5 level and playful typeface style 1`] = `
568
579
  </Text>
569
580
  <View
570
581
  pointerEvents="box-none"
582
+ position="bottom"
571
583
  style={
572
584
  [
573
585
  {
@@ -617,6 +629,7 @@ exports[`StyledTitle has h6 level and neutral typeface style 1`] = `
617
629
  </Text>
618
630
  <View
619
631
  pointerEvents="box-none"
632
+ position="bottom"
620
633
  style={
621
634
  [
622
635
  {
@@ -666,6 +679,7 @@ exports[`StyledTitle has h6 level and playful typeface style 1`] = `
666
679
  </Text>
667
680
  <View
668
681
  pointerEvents="box-none"
682
+ position="bottom"
669
683
  style={
670
684
  [
671
685
  {
@@ -715,6 +729,7 @@ exports[`StyledTitle has info intent style 1`] = `
715
729
  </Text>
716
730
  <View
717
731
  pointerEvents="box-none"
732
+ position="bottom"
718
733
  style={
719
734
  [
720
735
  {
@@ -764,6 +779,7 @@ exports[`StyledTitle has inverted intent style 1`] = `
764
779
  </Text>
765
780
  <View
766
781
  pointerEvents="box-none"
782
+ position="bottom"
767
783
  style={
768
784
  [
769
785
  {
@@ -813,6 +829,7 @@ exports[`StyledTitle has primary intent style 1`] = `
813
829
  </Text>
814
830
  <View
815
831
  pointerEvents="box-none"
832
+ position="bottom"
816
833
  style={
817
834
  [
818
835
  {
@@ -862,6 +879,7 @@ exports[`StyledTitle has subdued intent style 1`] = `
862
879
  </Text>
863
880
  <View
864
881
  pointerEvents="box-none"
882
+ position="bottom"
865
883
  style={
866
884
  [
867
885
  {
@@ -911,6 +929,7 @@ exports[`StyledTitle has success intent style 1`] = `
911
929
  </Text>
912
930
  <View
913
931
  pointerEvents="box-none"
932
+ position="bottom"
914
933
  style={
915
934
  [
916
935
  {
@@ -960,6 +979,7 @@ exports[`StyledTitle has warning intent style 1`] = `
960
979
  </Text>
961
980
  <View
962
981
  pointerEvents="box-none"
982
+ position="bottom"
963
983
  style={
964
984
  [
965
985
  {
@@ -30,6 +30,7 @@ exports[`Title has archived intent style 1`] = `
30
30
  </Text>
31
31
  <View
32
32
  pointerEvents="box-none"
33
+ position="bottom"
33
34
  style={
34
35
  [
35
36
  {
@@ -80,6 +81,7 @@ exports[`Title has body intent style 1`] = `
80
81
  </Text>
81
82
  <View
82
83
  pointerEvents="box-none"
84
+ position="bottom"
83
85
  style={
84
86
  [
85
87
  {
@@ -130,6 +132,7 @@ exports[`Title has danger intent style 1`] = `
130
132
  </Text>
131
133
  <View
132
134
  pointerEvents="box-none"
135
+ position="bottom"
133
136
  style={
134
137
  [
135
138
  {
@@ -180,6 +183,7 @@ exports[`Title has disabled intent style 1`] = `
180
183
  </Text>
181
184
  <View
182
185
  pointerEvents="box-none"
186
+ position="bottom"
183
187
  style={
184
188
  [
185
189
  {
@@ -230,6 +234,7 @@ exports[`Title has h1 level and neutral typeface style 1`] = `
230
234
  </Text>
231
235
  <View
232
236
  pointerEvents="box-none"
237
+ position="bottom"
233
238
  style={
234
239
  [
235
240
  {
@@ -280,6 +285,7 @@ exports[`Title has h1 level and playful typeface style 1`] = `
280
285
  </Text>
281
286
  <View
282
287
  pointerEvents="box-none"
288
+ position="bottom"
283
289
  style={
284
290
  [
285
291
  {
@@ -330,6 +336,7 @@ exports[`Title has h2 level and neutral typeface style 1`] = `
330
336
  </Text>
331
337
  <View
332
338
  pointerEvents="box-none"
339
+ position="bottom"
333
340
  style={
334
341
  [
335
342
  {
@@ -380,6 +387,7 @@ exports[`Title has h2 level and playful typeface style 1`] = `
380
387
  </Text>
381
388
  <View
382
389
  pointerEvents="box-none"
390
+ position="bottom"
383
391
  style={
384
392
  [
385
393
  {
@@ -430,6 +438,7 @@ exports[`Title has h3 level and neutral typeface style 1`] = `
430
438
  </Text>
431
439
  <View
432
440
  pointerEvents="box-none"
441
+ position="bottom"
433
442
  style={
434
443
  [
435
444
  {
@@ -480,6 +489,7 @@ exports[`Title has h3 level and playful typeface style 1`] = `
480
489
  </Text>
481
490
  <View
482
491
  pointerEvents="box-none"
492
+ position="bottom"
483
493
  style={
484
494
  [
485
495
  {
@@ -530,6 +540,7 @@ exports[`Title has h4 level and neutral typeface style 1`] = `
530
540
  </Text>
531
541
  <View
532
542
  pointerEvents="box-none"
543
+ position="bottom"
533
544
  style={
534
545
  [
535
546
  {
@@ -580,6 +591,7 @@ exports[`Title has h4 level and playful typeface style 1`] = `
580
591
  </Text>
581
592
  <View
582
593
  pointerEvents="box-none"
594
+ position="bottom"
583
595
  style={
584
596
  [
585
597
  {
@@ -630,6 +642,7 @@ exports[`Title has h5 level and neutral typeface style 1`] = `
630
642
  </Text>
631
643
  <View
632
644
  pointerEvents="box-none"
645
+ position="bottom"
633
646
  style={
634
647
  [
635
648
  {
@@ -680,6 +693,7 @@ exports[`Title has h5 level and playful typeface style 1`] = `
680
693
  </Text>
681
694
  <View
682
695
  pointerEvents="box-none"
696
+ position="bottom"
683
697
  style={
684
698
  [
685
699
  {
@@ -730,6 +744,7 @@ exports[`Title has h6 level and neutral typeface style 1`] = `
730
744
  </Text>
731
745
  <View
732
746
  pointerEvents="box-none"
747
+ position="bottom"
733
748
  style={
734
749
  [
735
750
  {
@@ -780,6 +795,7 @@ exports[`Title has h6 level and playful typeface style 1`] = `
780
795
  </Text>
781
796
  <View
782
797
  pointerEvents="box-none"
798
+ position="bottom"
783
799
  style={
784
800
  [
785
801
  {
@@ -830,6 +846,7 @@ exports[`Title has info intent style 1`] = `
830
846
  </Text>
831
847
  <View
832
848
  pointerEvents="box-none"
849
+ position="bottom"
833
850
  style={
834
851
  [
835
852
  {
@@ -880,6 +897,7 @@ exports[`Title has inverted intent style 1`] = `
880
897
  </Text>
881
898
  <View
882
899
  pointerEvents="box-none"
900
+ position="bottom"
883
901
  style={
884
902
  [
885
903
  {
@@ -930,6 +948,7 @@ exports[`Title has primary intent style 1`] = `
930
948
  </Text>
931
949
  <View
932
950
  pointerEvents="box-none"
951
+ position="bottom"
933
952
  style={
934
953
  [
935
954
  {
@@ -980,6 +999,7 @@ exports[`Title has secondary intent style 1`] = `
980
999
  </Text>
981
1000
  <View
982
1001
  pointerEvents="box-none"
1002
+ position="bottom"
983
1003
  style={
984
1004
  [
985
1005
  {
@@ -1030,6 +1050,7 @@ exports[`Title has subdued intent style 1`] = `
1030
1050
  </Text>
1031
1051
  <View
1032
1052
  pointerEvents="box-none"
1053
+ position="bottom"
1033
1054
  style={
1034
1055
  [
1035
1056
  {
@@ -1080,6 +1101,7 @@ exports[`Title has success intent style 1`] = `
1080
1101
  </Text>
1081
1102
  <View
1082
1103
  pointerEvents="box-none"
1104
+ position="bottom"
1083
1105
  style={
1084
1106
  [
1085
1107
  {
@@ -1130,6 +1152,7 @@ exports[`Title has warning intent style 1`] = `
1130
1152
  </Text>
1131
1153
  <View
1132
1154
  pointerEvents="box-none"
1155
+ position="bottom"
1133
1156
  style={
1134
1157
  [
1135
1158
  {
package/src/index.ts CHANGED
@@ -18,6 +18,7 @@ import Alert from './components/Alert';
18
18
  import Attachment from './components/Attachment';
19
19
  import Avatar, { useAvatarColors } from './components/Avatar';
20
20
  import Badge from './components/Badge';
21
+ import BottomNavigation from './components/BottomNavigation';
21
22
  import BottomSheet from './components/BottomSheet';
22
23
  import Box from './components/Box';
23
24
  import Button from './components/Button';
@@ -82,6 +83,7 @@ export {
82
83
  Avatar,
83
84
  useAvatarColors,
84
85
  Badge,
86
+ BottomNavigation,
85
87
  BottomSheet,
86
88
  Box,
87
89
  Button,
@@ -116,6 +116,15 @@ exports[`theme returns correct theme object 1`] = `
116
116
  "text": "#ffffff",
117
117
  "warning": "#ac5d00",
118
118
  },
119
+ "fontSizes": {
120
+ "default": 12,
121
+ },
122
+ "fonts": {
123
+ "default": "BeVietnamPro-SemiBold",
124
+ },
125
+ "lineHeights": {
126
+ "default": 16,
127
+ },
119
128
  "sizes": {
120
129
  "height": 20,
121
130
  "minWidth": 20,
@@ -128,6 +137,27 @@ exports[`theme returns correct theme object 1`] = `
128
137
  "statusPositionTop": -2,
129
138
  },
130
139
  },
140
+ "bottomNavigation": {
141
+ "colors": {
142
+ "background": "#ffffff",
143
+ "shadow": "#401960",
144
+ },
145
+ "shadows": {
146
+ "elevation": 10,
147
+ "offset": {
148
+ "height": 3,
149
+ "width": 0,
150
+ },
151
+ "opacity": 0.27,
152
+ "radius": 4.65,
153
+ },
154
+ "sizes": {
155
+ "height": 72,
156
+ },
157
+ "space": {
158
+ "titleMarginTop": 4,
159
+ },
160
+ },
131
161
  "bottomSheet": {
132
162
  "colors": {
133
163
  "backdrop": "#000000",
@@ -184,6 +214,15 @@ exports[`theme returns correct theme object 1`] = `
184
214
  "textLoadingBackground": "#ece8ef",
185
215
  "utilityBackground": "#ffffff",
186
216
  },
217
+ "fontSize": {
218
+ "default": 18,
219
+ "textVariant": 16,
220
+ "utility": 16,
221
+ },
222
+ "fonts": {
223
+ "default": "BeVietnamPro-SemiBold",
224
+ "utility": "BeVietnamPro-Regular",
225
+ },
187
226
  "lineHeights": {
188
227
  "titleOfTextVariant": 22,
189
228
  },
@@ -259,6 +298,15 @@ exports[`theme returns correct theme object 1`] = `
259
298
  },
260
299
  },
261
300
  "carousel": {
301
+ "fontSizes": {
302
+ "heading": 32,
303
+ },
304
+ "fonts": {
305
+ "heading": "RebondGrotesque-SemiBold",
306
+ },
307
+ "lineHeights": {
308
+ "heading": 44,
309
+ },
262
310
  "space": {
263
311
  "footerMarginBottom": 24,
264
312
  "footerPaddingHorizontal": 24,
@@ -392,6 +440,14 @@ exports[`theme returns correct theme object 1`] = `
392
440
  "subduedText": "#4d6265",
393
441
  "text": "#001f23",
394
442
  },
443
+ "fontSizes": {
444
+ "description": 18,
445
+ "title": 24,
446
+ },
447
+ "fonts": {
448
+ "description": "RebondGrotesque",
449
+ "title": "RebondGrotesque-SemiBold",
450
+ },
395
451
  "sizes": {
396
452
  "image": 168,
397
453
  },
@@ -408,6 +464,18 @@ exports[`theme returns correct theme object 1`] = `
408
464
  "inPageBackground": "#f6f6f7",
409
465
  "title": "#001f23",
410
466
  },
467
+ "fontSizes": {
468
+ "description": 18,
469
+ "title": 24,
470
+ },
471
+ "fonts": {
472
+ "description": "RebondGrotesque",
473
+ "title": "RebondGrotesque-SemiBold",
474
+ },
475
+ "lineHeight": {
476
+ "description": 26,
477
+ "title": 32,
478
+ },
411
479
  "sizes": {
412
480
  "image": 176,
413
481
  },
@@ -574,6 +642,18 @@ exports[`theme returns correct theme object 1`] = `
574
642
  "error": "#cb300a",
575
643
  "mask": "#001f23",
576
644
  },
645
+ "fontSizes": {
646
+ "cellText": 28,
647
+ "errorMessage": 12,
648
+ },
649
+ "fonts": {
650
+ "cellText": "BeVietnamPro-SemiBold",
651
+ "errorMessage": "BeVietnamPro-Regular",
652
+ },
653
+ "lineHeights": {
654
+ "cellText": 36,
655
+ "errorMessage": 12,
656
+ },
577
657
  "radii": {
578
658
  "cell": 8,
579
659
  "mask": 999,
@@ -766,6 +846,14 @@ exports[`theme returns correct theme object 1`] = `
766
846
  "inPageBackground": "#f6f6f7",
767
847
  "title": "#001f23",
768
848
  },
849
+ "fontSizes": {
850
+ "description": 18,
851
+ "title": 24,
852
+ },
853
+ "fonts": {
854
+ "description": "RebondGrotesque",
855
+ "title": "RebondGrotesque-SemiBold",
856
+ },
769
857
  "sizes": {
770
858
  "image": 176,
771
859
  },
@@ -877,6 +965,15 @@ exports[`theme returns correct theme object 1`] = `
877
965
  "warning": "#ac5d00",
878
966
  "warningBackground": "#fff6eb",
879
967
  },
968
+ "fontSizes": {
969
+ "default": 12,
970
+ },
971
+ "fonts": {
972
+ "default": "BeVietnamPro-SemiBold",
973
+ },
974
+ "lineHeights": {
975
+ "default": 16,
976
+ },
880
977
  "radii": {
881
978
  "default": 4,
882
979
  },
@@ -934,7 +1031,12 @@ exports[`theme returns correct theme object 1`] = `
934
1031
  "text": "#001f23",
935
1032
  },
936
1033
  "fontSizes": {
1034
+ "asteriskLabel": 16,
1035
+ "error": 12,
1036
+ "labelInsideTextInput": 16,
1037
+ "maxLength": 12,
937
1038
  "text": 16,
1039
+ "topLabel": 12,
938
1040
  },
939
1041
  "fonts": {
940
1042
  "text": "BeVietnamPro-Regular",
@@ -11,6 +11,18 @@ const getBadgeTheme = (theme: GlobalTheme) => {
11
11
  text: theme.colors.onDarkGlobalSurface,
12
12
  };
13
13
 
14
+ const fonts = {
15
+ default: theme.fonts.neutral.semiBold,
16
+ };
17
+
18
+ const fontSizes = {
19
+ default: theme.fontSizes.small,
20
+ };
21
+
22
+ const lineHeights = {
23
+ default: theme.lineHeights.small,
24
+ };
25
+
14
26
  const sizes = {
15
27
  height: theme.fontSizes.small + theme.sizes.small,
16
28
  minWidth: theme.fontSizes.small + theme.sizes.small,
@@ -24,7 +36,22 @@ const getBadgeTheme = (theme: GlobalTheme) => {
24
36
  statusPositionRight: -theme.space.xxsmall,
25
37
  };
26
38
 
27
- return { colors, sizes, space };
39
+ return { colors, fonts, fontSizes, sizes, space, lineHeights };
28
40
  };
29
41
 
42
+ type GetBadgeThemeReturnType = ReturnType<typeof getBadgeTheme>;
43
+ export interface BadgeThemeType extends GetBadgeThemeReturnType {
44
+ /**
45
+ * @deprecated will be removed in v9
46
+ * */
47
+ fonts: GetBadgeThemeReturnType['fonts'];
48
+ /**
49
+ * @deprecated will be removed in v9
50
+ * */
51
+ fontSizes: GetBadgeThemeReturnType['fontSizes'];
52
+ /**
53
+ * @deprecated will be removed in v9
54
+ * */
55
+ lineHeights: GetBadgeThemeReturnType['lineHeights'];
56
+ }
30
57
  export default getBadgeTheme;
@@ -0,0 +1,27 @@
1
+ import type { GlobalTheme } from '../global';
2
+
3
+ const getBottomNavigationTheme = (theme: GlobalTheme) => {
4
+ const colors = {
5
+ shadow: theme.colors.primary,
6
+ background: theme.colors.defaultGlobalSurface,
7
+ };
8
+
9
+ const sizes = {
10
+ height: theme.sizes['6xlarge'],
11
+ };
12
+
13
+ const shadows = {
14
+ offset: { width: 0, height: 3 },
15
+ opacity: 0.27,
16
+ radius: 4.65,
17
+ elevation: 10,
18
+ };
19
+
20
+ const space = {
21
+ titleMarginTop: theme.space.xsmall,
22
+ };
23
+
24
+ return { colors, shadows, sizes, space };
25
+ };
26
+
27
+ export default getBottomNavigationTheme;
@@ -1,6 +1,17 @@
1
1
  import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getButtonTheme = (theme: GlobalTheme) => {
4
+ const fonts = {
5
+ default: theme.fonts.neutral.semiBold,
6
+ utility: theme.fonts.neutral.regular,
7
+ };
8
+
9
+ const fontSize = {
10
+ default: theme.fontSizes.xlarge,
11
+ utility: theme.fontSizes.large,
12
+ textVariant: theme.fontSizes.large,
13
+ };
14
+
4
15
  const borderWidth = {
5
16
  default: theme.space.xxsmall,
6
17
  };
@@ -53,6 +64,8 @@ const getButtonTheme = (theme: GlobalTheme) => {
53
64
  return {
54
65
  lineHeights,
55
66
  borderWidth,
67
+ fonts,
68
+ fontSize,
56
69
  sizes,
57
70
  radii,
58
71
  colors,
@@ -60,4 +73,15 @@ const getButtonTheme = (theme: GlobalTheme) => {
60
73
  };
61
74
  };
62
75
 
76
+ type GetButtonThemeReturnType = ReturnType<typeof getButtonTheme>;
77
+ export interface ButtonThemeType extends GetButtonThemeReturnType {
78
+ /**
79
+ * @deprecated will be removed in v9
80
+ * */
81
+ fonts: GetButtonThemeReturnType['fonts'];
82
+ /**
83
+ * @deprecated will be removed in v9
84
+ * */
85
+ fontSize: GetButtonThemeReturnType['fontSize'];
86
+ }
63
87
  export default getButtonTheme;
@@ -12,7 +12,34 @@ const getCarouselTheme = (theme: GlobalTheme) => {
12
12
  pageControlWrapperHeight: scale(48),
13
13
  };
14
14
 
15
- return { space };
15
+ const fontSizes = {
16
+ heading: theme.fontSizes['xxxxxlarge'],
17
+ };
18
+
19
+ const fonts = {
20
+ heading: theme.fonts.playful.semiBold,
21
+ };
22
+
23
+ const lineHeights = {
24
+ heading: theme.lineHeights['6xlarge'],
25
+ };
26
+
27
+ return { space, fonts, fontSizes, lineHeights };
16
28
  };
17
29
 
30
+ type GetCarouselThemeReturnType = ReturnType<typeof getCarouselTheme>;
31
+ export interface CarouselThemeType extends GetCarouselThemeReturnType {
32
+ /**
33
+ * @deprecated will be removed in v9
34
+ * */
35
+ fonts: GetCarouselThemeReturnType['fonts'];
36
+ /**
37
+ * @deprecated will be removed in v9
38
+ * */
39
+ fontSizes: GetCarouselThemeReturnType['fontSizes'];
40
+ /**
41
+ * @deprecated will be removed in v9
42
+ * */
43
+ lineHeights: GetCarouselThemeReturnType['lineHeights'];
44
+ }
18
45
  export default getCarouselTheme;
@@ -18,7 +18,29 @@ const getEmptyTheme = (theme: GlobalTheme) => {
18
18
  invertedSubduedText: theme.colors.onDarkGlobalSurface,
19
19
  };
20
20
 
21
- return { colors, sizes, space };
21
+ const fontSizes = {
22
+ title: theme.fontSizes.xxxlarge,
23
+ description: theme.fontSizes.xlarge,
24
+ };
25
+
26
+ const fonts = {
27
+ title: theme.fonts.playful.semiBold,
28
+ description: theme.fonts.playful.regular,
29
+ };
30
+
31
+ return { fontSizes, colors, sizes, space, fonts };
22
32
  };
23
33
 
34
+ type GetEmptyThemeReturnType = ReturnType<typeof getEmptyTheme>;
35
+ export interface EmptyThemeType extends GetEmptyThemeReturnType {
36
+ /**
37
+ * @deprecated will be removed in v9
38
+ * */
39
+ fonts: GetEmptyThemeReturnType['fonts'];
40
+ /**
41
+ * @deprecated will be removed in v9
42
+ * */
43
+ fontSizes: GetEmptyThemeReturnType['fontSizes'];
44
+ }
45
+
24
46
  export default getEmptyTheme;