@hero-design/rn 8.33.1 → 8.33.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/es/index.js +187 -208
  3. package/lib/index.js +187 -208
  4. package/package.json +7 -7
  5. package/src/components/Accordion/AccordionItem.tsx +1 -3
  6. package/src/components/Accordion/__tests__/AccordionItem.spec.tsx +5 -5
  7. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +26 -34
  8. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +36 -48
  9. package/src/components/Accordion/__tests__/index.spec.tsx +2 -2
  10. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +26 -39
  11. package/src/components/Alert/__tests__/index.spec.tsx +8 -2
  12. package/src/components/Alert/index.tsx +2 -2
  13. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
  14. package/src/components/Attachment/index.tsx +3 -1
  15. package/src/components/Badge/StyledBadge.tsx +1 -4
  16. package/src/components/Badge/__tests__/Status.spec.tsx +1 -1
  17. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +18 -48
  18. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -3
  19. package/src/components/BottomNavigation/StyledBottomNavigation.tsx +1 -1
  20. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +4 -12
  21. package/src/components/BottomNavigation/index.tsx +0 -1
  22. package/src/components/BottomSheet/Header.tsx +1 -3
  23. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
  24. package/src/components/Button/Button.tsx +34 -11
  25. package/src/components/Button/StyledButton.tsx +45 -38
  26. package/src/components/Button/UtilityButton/StyledUtilityButton.tsx +2 -4
  27. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +8 -14
  28. package/src/components/Button/__tests__/StyledButton.spec.tsx +12 -6
  29. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +66 -90
  30. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +56 -86
  31. package/src/components/Calendar/CalendarRowItem.tsx +5 -2
  32. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +10 -15
  33. package/src/components/Calendar/index.tsx +1 -1
  34. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +12 -18
  35. package/src/components/Card/__tests__/index.spec.tsx +1 -1
  36. package/src/components/Carousel/CarouselItem.tsx +4 -4
  37. package/src/components/Carousel/StyledCarousel.tsx +1 -4
  38. package/src/components/Carousel/__tests__/CardCarousel.spec.tsx +18 -18
  39. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +24 -20
  40. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +99 -165
  41. package/src/components/Checkbox/StyledCheckbox.tsx +1 -1
  42. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +8 -12
  43. package/src/components/Checkbox/index.tsx +1 -1
  44. package/src/components/ContentNavigator/StyledContentNavigator.tsx +1 -6
  45. package/src/components/ContentNavigator/__tests__/StyledContentNavigator.spec.tsx +1 -9
  46. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +0 -29
  47. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +124 -17
  48. package/src/components/ContentNavigator/__tests__/index.spec.tsx +16 -0
  49. package/src/components/ContentNavigator/index.tsx +30 -9
  50. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +12 -18
  51. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +4 -6
  52. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +4 -6
  53. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +13 -18
  54. package/src/components/Empty/StyledEmpty.tsx +2 -6
  55. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +22 -36
  56. package/src/components/Empty/index.tsx +4 -2
  57. package/src/components/Error/StyledError.tsx +2 -8
  58. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +44 -76
  59. package/src/components/Error/index.tsx +6 -2
  60. package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -4
  61. package/src/components/FAB/ActionGroup/StyledActionItem.tsx +1 -5
  62. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +54 -116
  63. package/src/components/FAB/ActionGroup/index.tsx +1 -1
  64. package/src/components/FAB/StyledFAB.tsx +1 -4
  65. package/src/components/FAB/__tests__/StyledFAB.spec.tsx +1 -1
  66. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +2 -3
  67. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +4 -8
  68. package/src/components/List/BasicListItem.tsx +2 -6
  69. package/src/components/List/ListItem.tsx +3 -5
  70. package/src/components/List/__tests__/ListItem.spec.tsx +4 -4
  71. package/src/components/List/__tests__/StyledBasicListItem.spec.tsx +3 -1
  72. package/src/components/List/__tests__/StyledListItem.spec.tsx +3 -1
  73. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +4 -10
  74. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +23 -37
  75. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +8 -12
  76. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +8 -12
  77. package/src/components/PageControl/index.tsx +0 -1
  78. package/src/components/PinInput/PinCell.tsx +3 -1
  79. package/src/components/PinInput/StyledPinInput.tsx +2 -7
  80. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +25 -45
  81. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +18 -34
  82. package/src/components/Progress/ProgressCircle.tsx +1 -3
  83. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +3 -6
  84. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -4
  85. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +3 -6
  86. package/src/components/RichTextEditor/RichTextEditor.tsx +2 -9
  87. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +16 -24
  88. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
  89. package/src/components/SectionHeading/__tests__/index.spec.tsx +3 -1
  90. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
  91. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -24
  92. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +86 -130
  93. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +6 -10
  94. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
  95. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -24
  96. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +49 -79
  97. package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +5 -9
  98. package/src/components/Success/StyledSuccess.tsx +2 -6
  99. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +40 -64
  100. package/src/components/Success/index.tsx +3 -1
  101. package/src/components/Swipeable/__tests__/SwipeableAction.spec.tsx +2 -2
  102. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +6 -9
  103. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
  104. package/src/components/Swipeable/__tests__/index.spec.tsx +6 -4
  105. package/src/components/Switch/SelectorSwitch/Option.tsx +1 -1
  106. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
  107. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -2
  108. package/src/components/Tabs/ScrollableTabsHeader.tsx +3 -3
  109. package/src/components/Tabs/__tests__/SceneView.spec.tsx +4 -4
  110. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +6 -9
  111. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +33 -60
  112. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +7 -13
  113. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +3 -8
  114. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +45 -81
  115. package/src/components/Tabs/index.tsx +3 -3
  116. package/src/components/Tag/StyledTag.tsx +1 -4
  117. package/src/components/Tag/__tests__/Tag.spec.tsx +5 -1
  118. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +47 -93
  119. package/src/components/Tag/index.tsx +5 -1
  120. package/src/components/TextInput/StyledTextInput.tsx +8 -16
  121. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +72 -134
  122. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +145 -257
  123. package/src/components/TextInput/index.tsx +2 -3
  124. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +12 -23
  125. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +21 -35
  126. package/src/components/Toast/Toast.tsx +6 -5
  127. package/src/components/Toast/__tests__/Toast.spec.tsx +5 -1
  128. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +26 -39
  129. package/src/components/Toolbar/StyledToolbar.tsx +1 -1
  130. package/src/components/Toolbar/ToolbarItem.tsx +4 -6
  131. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -18
  132. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +14 -21
  133. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -0
  134. package/src/theme/components/badge.ts +15 -0
  135. package/src/theme/components/button.ts +16 -0
  136. package/src/theme/components/carousel.ts +15 -0
  137. package/src/theme/components/empty.ts +12 -0
  138. package/src/theme/components/error.ts +16 -0
  139. package/src/theme/components/fab.ts +11 -0
  140. package/src/theme/components/pinInput.ts +15 -0
  141. package/src/theme/components/success.ts +12 -0
  142. package/src/theme/components/tag.ts +16 -0
  143. package/src/theme/components/textInput.ts +1 -0
  144. package/src/theme/getTheme.ts +18 -18
  145. package/types/components/Badge/StyledBadge.d.ts +1 -1
  146. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +1 -1
  147. package/types/components/Button/StyledButton.d.ts +12 -5
  148. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +1 -1
  149. package/types/components/Carousel/StyledCarousel.d.ts +1 -1
  150. package/types/components/Checkbox/StyledCheckbox.d.ts +1 -1
  151. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +1 -5
  152. package/types/components/Empty/StyledEmpty.d.ts +2 -2
  153. package/types/components/Error/StyledError.d.ts +2 -2
  154. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +2 -2
  155. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +1 -1
  156. package/types/components/FAB/StyledFAB.d.ts +1 -1
  157. package/types/components/PinInput/StyledPinInput.d.ts +2 -2
  158. package/types/components/Success/StyledSuccess.d.ts +2 -2
  159. package/types/components/Tag/StyledTag.d.ts +1 -1
  160. package/types/components/TextInput/StyledTextInput.d.ts +7 -10
  161. package/types/components/Toolbar/StyledToolbar.d.ts +1 -1
  162. package/types/theme/components/badge.d.ts +15 -0
  163. package/types/theme/components/button.d.ts +14 -0
  164. package/types/theme/components/carousel.d.ts +15 -0
  165. package/types/theme/components/empty.d.ts +11 -0
  166. package/types/theme/components/error.d.ts +15 -0
  167. package/types/theme/components/fab.d.ts +11 -0
  168. package/types/theme/components/pinInput.d.ts +15 -0
  169. package/types/theme/components/success.d.ts +11 -0
  170. package/types/theme/components/tag.d.ts +15 -0
  171. package/types/theme/components/textInput.d.ts +1 -0
  172. package/types/theme/getTheme.d.ts +18 -18
@@ -81,7 +81,7 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
81
81
  "color": "#401960",
82
82
  "fontFamily": "BeVietnamPro-SemiBold",
83
83
  "fontSize": 16,
84
- "letterSpacing": 0.48,
84
+ "letterSpacing": 0.24,
85
85
  "lineHeight": 24,
86
86
  },
87
87
  Array [
@@ -92,10 +92,9 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
92
92
  ],
93
93
  ]
94
94
  }
95
- themeFontSize="large"
96
- themeFontWeight="semi-bold"
97
95
  themeIntent="primary"
98
96
  themeTypeface="neutral"
97
+ themeVariant="regular-bold"
99
98
  >
100
99
  Discard
101
100
  </Text>
@@ -167,7 +166,7 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
167
166
  "color": "#401960",
168
167
  "fontFamily": "BeVietnamPro-SemiBold",
169
168
  "fontSize": 16,
170
- "letterSpacing": 0.48,
169
+ "letterSpacing": 0.24,
171
170
  "lineHeight": 24,
172
171
  },
173
172
  Array [
@@ -178,10 +177,9 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
178
177
  ],
179
178
  ]
180
179
  }
181
- themeFontSize="large"
182
- themeFontWeight="semi-bold"
183
180
  themeIntent="primary"
184
181
  themeTypeface="neutral"
182
+ themeVariant="regular-bold"
185
183
  >
186
184
  Print
187
185
  </Text>
@@ -271,7 +269,7 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
271
269
  "color": "#401960",
272
270
  "fontFamily": "BeVietnamPro-SemiBold",
273
271
  "fontSize": 16,
274
- "letterSpacing": 0.48,
272
+ "letterSpacing": 0.24,
275
273
  "lineHeight": 24,
276
274
  },
277
275
  Array [
@@ -282,10 +280,9 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
282
280
  ],
283
281
  ]
284
282
  }
285
- themeFontSize="large"
286
- themeFontWeight="semi-bold"
287
283
  themeIntent="primary"
288
284
  themeTypeface="neutral"
285
+ themeVariant="regular-bold"
289
286
  >
290
287
  Discard
291
288
  </Text>
@@ -357,7 +354,7 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
357
354
  "color": "#401960",
358
355
  "fontFamily": "BeVietnamPro-SemiBold",
359
356
  "fontSize": 16,
360
- "letterSpacing": 0.48,
357
+ "letterSpacing": 0.24,
361
358
  "lineHeight": 24,
362
359
  },
363
360
  Array [
@@ -368,10 +365,9 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
368
365
  ],
369
366
  ]
370
367
  }
371
- themeFontSize="large"
372
- themeFontWeight="semi-bold"
373
368
  themeIntent="primary"
374
369
  themeTypeface="neutral"
370
+ themeVariant="regular-bold"
375
371
  >
376
372
  Print
377
373
  </Text>
@@ -461,7 +457,7 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
461
457
  "color": "#401960",
462
458
  "fontFamily": "BeVietnamPro-SemiBold",
463
459
  "fontSize": 16,
464
- "letterSpacing": 0.48,
460
+ "letterSpacing": 0.24,
465
461
  "lineHeight": 24,
466
462
  },
467
463
  Array [
@@ -472,10 +468,9 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
472
468
  ],
473
469
  ]
474
470
  }
475
- themeFontSize="large"
476
- themeFontWeight="semi-bold"
477
471
  themeIntent="primary"
478
472
  themeTypeface="neutral"
473
+ themeVariant="regular-bold"
479
474
  >
480
475
  Discard
481
476
  </Text>
@@ -547,7 +542,7 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
547
542
  "color": "#401960",
548
543
  "fontFamily": "BeVietnamPro-SemiBold",
549
544
  "fontSize": 16,
550
- "letterSpacing": 0.48,
545
+ "letterSpacing": 0.24,
551
546
  "lineHeight": 24,
552
547
  },
553
548
  Array [
@@ -558,10 +553,9 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
558
553
  ],
559
554
  ]
560
555
  }
561
- themeFontSize="large"
562
- themeFontWeight="semi-bold"
563
556
  themeIntent="primary"
564
557
  themeTypeface="neutral"
558
+ themeVariant="regular-bold"
565
559
  >
566
560
  Print
567
561
  </Text>
@@ -67,7 +67,7 @@ exports[`ToolbarItems renders correctly when disabled 1`] = `
67
67
  "color": "#4d6265",
68
68
  "fontFamily": "BeVietnamPro-SemiBold",
69
69
  "fontSize": 16,
70
- "letterSpacing": 0.48,
70
+ "letterSpacing": 0.24,
71
71
  "lineHeight": 24,
72
72
  },
73
73
  Array [
@@ -78,10 +78,9 @@ exports[`ToolbarItems renders correctly when disabled 1`] = `
78
78
  ],
79
79
  ]
80
80
  }
81
- themeFontSize="large"
82
- themeFontWeight="semi-bold"
83
81
  themeIntent="subdued"
84
82
  themeTypeface="neutral"
83
+ themeVariant="regular-bold"
85
84
  >
86
85
  Action
87
86
  </Text>
@@ -126,16 +125,15 @@ exports[`ToolbarItems renders correctly when intent is danger, icon is undefined
126
125
  "color": "#f46363",
127
126
  "fontFamily": "BeVietnamPro-SemiBold",
128
127
  "fontSize": 16,
129
- "letterSpacing": 0.48,
128
+ "letterSpacing": 0.24,
130
129
  "lineHeight": 24,
131
130
  },
132
131
  undefined,
133
132
  ]
134
133
  }
135
- themeFontSize="large"
136
- themeFontWeight="semi-bold"
137
134
  themeIntent="danger"
138
135
  themeTypeface="neutral"
136
+ themeVariant="regular-bold"
139
137
  >
140
138
  Discard
141
139
  </Text>
@@ -179,16 +177,15 @@ exports[`ToolbarItems renders correctly when intent is info, icon is undefined,
179
177
  "color": "#4568fb",
180
178
  "fontFamily": "BeVietnamPro-SemiBold",
181
179
  "fontSize": 16,
182
- "letterSpacing": 0.48,
180
+ "letterSpacing": 0.24,
183
181
  "lineHeight": 24,
184
182
  },
185
183
  undefined,
186
184
  ]
187
185
  }
188
- themeFontSize="large"
189
- themeFontWeight="semi-bold"
190
186
  themeIntent="info"
191
187
  themeTypeface="neutral"
188
+ themeVariant="regular-bold"
192
189
  >
193
190
  Save
194
191
  </Text>
@@ -262,7 +259,7 @@ exports[`ToolbarItems renders correctly when intent is primary, icon is ai-outli
262
259
  "color": "#401960",
263
260
  "fontFamily": "BeVietnamPro-SemiBold",
264
261
  "fontSize": 16,
265
- "letterSpacing": 0.48,
262
+ "letterSpacing": 0.24,
266
263
  "lineHeight": 24,
267
264
  },
268
265
  Array [
@@ -273,10 +270,9 @@ exports[`ToolbarItems renders correctly when intent is primary, icon is ai-outli
273
270
  ],
274
271
  ]
275
272
  }
276
- themeFontSize="large"
277
- themeFontWeight="semi-bold"
278
273
  themeIntent="primary"
279
274
  themeTypeface="neutral"
275
+ themeVariant="regular-bold"
280
276
  >
281
277
  Try again
282
278
  </Text>
@@ -351,7 +347,7 @@ exports[`ToolbarItems renders correctly when intent is primary, icon is ai-outli
351
347
  "color": "#4d6265",
352
348
  "fontFamily": "BeVietnamPro-SemiBold",
353
349
  "fontSize": 16,
354
- "letterSpacing": 0.48,
350
+ "letterSpacing": 0.24,
355
351
  "lineHeight": 24,
356
352
  },
357
353
  Array [
@@ -362,10 +358,9 @@ exports[`ToolbarItems renders correctly when intent is primary, icon is ai-outli
362
358
  ],
363
359
  ]
364
360
  }
365
- themeFontSize="large"
366
- themeFontWeight="semi-bold"
367
361
  themeIntent="subdued"
368
362
  themeTypeface="neutral"
363
+ themeVariant="regular-bold"
369
364
  >
370
365
  Try again
371
366
  </Text>
@@ -472,16 +467,15 @@ exports[`ToolbarItems renders correctly when intent is success, icon is undefine
472
467
  "color": "#5ace7d",
473
468
  "fontFamily": "BeVietnamPro-SemiBold",
474
469
  "fontSize": 16,
475
- "letterSpacing": 0.48,
470
+ "letterSpacing": 0.24,
476
471
  "lineHeight": 24,
477
472
  },
478
473
  undefined,
479
474
  ]
480
475
  }
481
- themeFontSize="large"
482
- themeFontWeight="semi-bold"
483
476
  themeIntent="success"
484
477
  themeTypeface="neutral"
478
+ themeVariant="regular-bold"
485
479
  >
486
480
  Save
487
481
  </Text>
@@ -525,16 +519,15 @@ exports[`ToolbarItems renders correctly when intent is warning, icon is undefine
525
519
  "color": "#ffbe71",
526
520
  "fontFamily": "BeVietnamPro-SemiBold",
527
521
  "fontSize": 16,
528
- "letterSpacing": 0.48,
522
+ "letterSpacing": 0.24,
529
523
  "lineHeight": 24,
530
524
  },
531
525
  undefined,
532
526
  ]
533
527
  }
534
- themeFontSize="large"
535
- themeFontWeight="semi-bold"
536
528
  themeIntent="warning"
537
529
  themeTypeface="neutral"
530
+ themeVariant="regular-bold"
538
531
  >
539
532
  Warning
540
533
  </Text>
@@ -223,6 +223,9 @@ Object {
223
223
  "default": "BeVietnamPro-SemiBold",
224
224
  "utility": "BeVietnamPro-Regular",
225
225
  },
226
+ "lineHeights": Object {
227
+ "titleOfTextVariant": 22,
228
+ },
226
229
  "radii": Object {
227
230
  "default": 32,
228
231
  "text": 4,
@@ -1015,6 +1018,7 @@ Object {
1015
1018
  "containerMarginTop": 8,
1016
1019
  "containerPadding": 16,
1017
1020
  "errorAndHelpTextContainerPaddingLeft": 16,
1021
+ "errorAndHelpTextContainerPaddingTop": 2,
1018
1022
  "errorContainerMarginRight": 4,
1019
1023
  "errorMarginLeft": 4,
1020
1024
  "inputHorizontalMargin": 8,
@@ -39,4 +39,19 @@ const getBadgeTheme = (theme: GlobalTheme) => {
39
39
  return { colors, fonts, fontSizes, sizes, space, lineHeights };
40
40
  };
41
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
+ }
42
57
  export default getBadgeTheme;
@@ -58,7 +58,12 @@ const getButtonTheme = (theme: GlobalTheme) => {
58
58
  },
59
59
  };
60
60
 
61
+ const lineHeights = {
62
+ titleOfTextVariant: theme.lineHeights.medium,
63
+ };
64
+
61
65
  return {
66
+ lineHeights,
62
67
  borderWidth,
63
68
  fonts,
64
69
  fontSize,
@@ -69,4 +74,15 @@ const getButtonTheme = (theme: GlobalTheme) => {
69
74
  };
70
75
  };
71
76
 
77
+ type GetButtonThemeReturnType = ReturnType<typeof getButtonTheme>;
78
+ export interface ButtonThemeType extends GetButtonThemeReturnType {
79
+ /**
80
+ * @deprecated will be removed in v9
81
+ * */
82
+ fonts: GetButtonThemeReturnType['fonts'];
83
+ /**
84
+ * @deprecated will be removed in v9
85
+ * */
86
+ fontSize: GetButtonThemeReturnType['fontSize'];
87
+ }
72
88
  export default getButtonTheme;
@@ -27,4 +27,19 @@ const getCarouselTheme = (theme: GlobalTheme) => {
27
27
  return { space, fonts, fontSizes, lineHeights };
28
28
  };
29
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
+ }
30
45
  export default getCarouselTheme;
@@ -31,4 +31,16 @@ const getEmptyTheme = (theme: GlobalTheme) => {
31
31
  return { fontSizes, colors, sizes, space, fonts };
32
32
  };
33
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
+
34
46
  export default getEmptyTheme;
@@ -42,4 +42,20 @@ const getErrorTheme = (theme: GlobalTheme) => {
42
42
  return { fontSizes, colors, sizes, space, fonts, lineHeight };
43
43
  };
44
44
 
45
+ type GetErrorThemeReturnType = ReturnType<typeof getErrorTheme>;
46
+ export interface ErrorThemeType extends GetErrorThemeReturnType {
47
+ /**
48
+ * @deprecated will be removed in v9
49
+ * */
50
+ fonts: GetErrorThemeReturnType['fonts'];
51
+ /**
52
+ * @deprecated will be removed in v9
53
+ * */
54
+ fontSizes: GetErrorThemeReturnType['fontSizes'];
55
+ /**
56
+ * @deprecated will be removed in v9
57
+ * */
58
+ lineHeight: GetErrorThemeReturnType['lineHeight'];
59
+ }
60
+
45
61
  export default getErrorTheme;
@@ -75,5 +75,16 @@ const getFABTheme = (theme: GlobalTheme) => {
75
75
  space,
76
76
  };
77
77
  };
78
+ type GetFABThemeReturnType = ReturnType<typeof getFABTheme>;
79
+ export interface FABThemeType extends GetFABThemeReturnType {
80
+ /**
81
+ * @deprecated will be removed in v9
82
+ * */
83
+ fonts: GetFABThemeReturnType['fonts'];
84
+ /**
85
+ * @deprecated will be removed in v9
86
+ * */
87
+ fontSizes: GetFABThemeReturnType['fontSizes'];
88
+ }
78
89
 
79
90
  export default getFABTheme;
@@ -54,5 +54,20 @@ const getPinInputTheme = (theme: GlobalTheme) => {
54
54
  radii,
55
55
  };
56
56
  };
57
+ type GetPinInputThemeReturnType = ReturnType<typeof getPinInputTheme>;
58
+ export interface PinInputThemeType extends GetPinInputThemeReturnType {
59
+ /**
60
+ * @deprecated will be removed in v9
61
+ * */
62
+ fonts: GetPinInputThemeReturnType['fonts'];
63
+ /**
64
+ * @deprecated will be removed in v9
65
+ * */
66
+ fontSizes: GetPinInputThemeReturnType['fontSizes'];
67
+ /**
68
+ * @deprecated will be removed in v9
69
+ * */
70
+ lineHeights: GetPinInputThemeReturnType['lineHeights'];
71
+ }
57
72
 
58
73
  export default getPinInputTheme;
@@ -37,4 +37,16 @@ const getSuccessTheme = (theme: GlobalTheme) => {
37
37
  return { fontSizes, colors, sizes, space, fonts };
38
38
  };
39
39
 
40
+ type GetSuccessThemeReturnType = ReturnType<typeof getSuccessTheme>;
41
+ export interface SuccessThemeType extends GetSuccessThemeReturnType {
42
+ /**
43
+ * @deprecated will be removed in v9
44
+ * */
45
+ fonts: GetSuccessThemeReturnType['fonts'];
46
+ /**
47
+ * @deprecated will be removed in v9
48
+ * */
49
+ fontSizes: GetSuccessThemeReturnType['fontSizes'];
50
+ }
51
+
40
52
  export default getSuccessTheme;
@@ -44,4 +44,20 @@ const getTagTheme = (theme: GlobalTheme) => {
44
44
  return { borderWidths, colors, fonts, fontSizes, space, radii, lineHeights };
45
45
  };
46
46
 
47
+ type GetTagThemeReturnType = ReturnType<typeof getTagTheme>;
48
+ export interface TagThemeType extends GetTagThemeReturnType {
49
+ /**
50
+ * @deprecated will be removed in v9
51
+ * */
52
+ fonts: GetTagThemeReturnType['fonts'];
53
+ /**
54
+ * @deprecated will be removed in v9
55
+ * */
56
+ fontSizes: GetTagThemeReturnType['fontSizes'];
57
+ /**
58
+ * @deprecated will be removed in v9
59
+ * */
60
+ lineHeights: GetTagThemeReturnType['lineHeights'];
61
+ }
62
+
47
63
  export default getTagTheme;
@@ -56,6 +56,7 @@ const getTextInputTheme = (theme: GlobalTheme) => {
56
56
  errorAndHelpTextContainerPaddingLeft: theme.space.medium,
57
57
  containerMarginTop: theme.space.small,
58
58
  labelInsideTextInputMarginTop: -theme.space.xxsmall,
59
+ errorAndHelpTextContainerPaddingTop: theme.space.xxsmall,
59
60
  };
60
61
 
61
62
  const fonts = {
@@ -4,27 +4,27 @@ import getAccordionTheme from './components/accordion';
4
4
  import getAlertTheme from './components/alert';
5
5
  import getAttachmentTheme from './components/attachment';
6
6
  import getAvatarTheme from './components/avatar';
7
- import getBadgeTheme from './components/badge';
7
+ import getBadgeTheme, { BadgeThemeType } from './components/badge';
8
8
  import getBottomNavigationTheme from './components/bottomNavigation';
9
9
  import getBottomSheetTheme from './components/bottomSheet';
10
- import getButtonTheme from './components/button';
10
+ import getButtonTheme, { ButtonThemeType } from './components/button';
11
11
  import getCalendarTheme from './components/calendar';
12
12
  import getCardTheme from './components/card';
13
- import getCarouselTheme from './components/carousel';
13
+ import getCarouselTheme, { CarouselThemeType } from './components/carousel';
14
14
  import getCardCarouselTheme from './components/cardCarousel';
15
15
  import getCheckboxTheme from './components/checkbox';
16
16
  import getContentNavigatorTheme from './components/contentNavigator';
17
17
  import getDatePickerTheme from './components/datePicker';
18
18
  import getDividerTheme from './components/divider';
19
19
  import getDrawerTheme from './components/drawer';
20
- import getEmptyTheme from './components/empty';
21
- import getErrorTheme from './components/error';
22
- import getFABTheme from './components/fab';
20
+ import getEmptyTheme, { EmptyThemeType } from './components/empty';
21
+ import getErrorTheme, { ErrorThemeType } from './components/error';
22
+ import getFABTheme, { FABThemeType } from './components/fab';
23
23
  import getIconTheme from './components/icon';
24
24
  import getImageTheme from './components/image';
25
25
  import getListTheme from './components/list';
26
26
  import getPageControlTheme from './components/pageControl';
27
- import getPinInputTheme from './components/pinInput';
27
+ import getPinInputTheme, { PinInputThemeType } from './components/pinInput';
28
28
  import getProgressTheme from './components/progress';
29
29
  import getRadioTheme from './components/radio';
30
30
  import getRateTheme from './components/rate';
@@ -35,11 +35,11 @@ import getSelectTheme from './components/select';
35
35
  import getSkeletonTheme from './components/skeleton';
36
36
  import getSliderTheme from './components/slider';
37
37
  import getSpinnerTheme from './components/spinner';
38
- import getSuccessTheme from './components/success';
38
+ import getSuccessTheme, { SuccessThemeType } from './components/success';
39
39
  import getSwipeableTheme from './components/swipeable';
40
40
  import getSwitchTheme from './components/switch';
41
41
  import getTabsTheme from './components/tabs';
42
- import getTagTheme from './components/tag';
42
+ import getTagTheme, { TagThemeType } from './components/tag';
43
43
  import getTextInputTheme from './components/textInput';
44
44
  import getTimePickerTheme from './components/timePicker';
45
45
  import getToastTheme from './components/toast';
@@ -54,27 +54,27 @@ type Theme = GlobalTheme & {
54
54
  alert: ReturnType<typeof getAlertTheme>;
55
55
  attachment: ReturnType<typeof getAttachmentTheme>;
56
56
  avatar: ReturnType<typeof getAvatarTheme>;
57
- badge: ReturnType<typeof getBadgeTheme>;
57
+ badge: BadgeThemeType;
58
58
  bottomNavigation: ReturnType<typeof getBottomNavigationTheme>;
59
59
  bottomSheet: ReturnType<typeof getBottomSheetTheme>;
60
- button: ReturnType<typeof getButtonTheme>;
60
+ button: ButtonThemeType;
61
61
  calendar: ReturnType<typeof getCalendarTheme>;
62
62
  card: ReturnType<typeof getCardTheme>;
63
- carousel: ReturnType<typeof getCarouselTheme>;
63
+ carousel: CarouselThemeType;
64
64
  cardCarousel: ReturnType<typeof getCardCarouselTheme>;
65
65
  checkbox: ReturnType<typeof getCheckboxTheme>;
66
66
  contentNavigator: ReturnType<typeof getContentNavigatorTheme>;
67
67
  datePicker: ReturnType<typeof getDatePickerTheme>;
68
68
  divider: ReturnType<typeof getDividerTheme>;
69
69
  drawer: ReturnType<typeof getDrawerTheme>;
70
- empty: ReturnType<typeof getEmptyTheme>;
71
- error: ReturnType<typeof getErrorTheme>;
72
- fab: ReturnType<typeof getFABTheme>;
70
+ empty: EmptyThemeType;
71
+ error: ErrorThemeType;
72
+ fab: FABThemeType;
73
73
  icon: ReturnType<typeof getIconTheme>;
74
74
  image: ReturnType<typeof getImageTheme>;
75
75
  list: ReturnType<typeof getListTheme>;
76
76
  pageControl: ReturnType<typeof getPageControlTheme>;
77
- pinInput: ReturnType<typeof getPinInputTheme>;
77
+ pinInput: PinInputThemeType;
78
78
  progress: ReturnType<typeof getProgressTheme>;
79
79
  radio: ReturnType<typeof getRadioTheme>;
80
80
  rate: ReturnType<typeof getRateTheme>;
@@ -85,11 +85,11 @@ type Theme = GlobalTheme & {
85
85
  skeleton: ReturnType<typeof getSkeletonTheme>;
86
86
  slider: ReturnType<typeof getSliderTheme>;
87
87
  spinner: ReturnType<typeof getSpinnerTheme>;
88
- success: ReturnType<typeof getSuccessTheme>;
88
+ success: SuccessThemeType;
89
89
  swipeable: ReturnType<typeof getSwipeableTheme>;
90
90
  switch: ReturnType<typeof getSwitchTheme>;
91
91
  tabs: ReturnType<typeof getTabsTheme>;
92
- tag: ReturnType<typeof getTagTheme>;
92
+ tag: TagThemeType;
93
93
  textInput: ReturnType<typeof getTextInputTheme>;
94
94
  timePicker: ReturnType<typeof getTimePickerTheme>;
95
95
  toast: ReturnType<typeof getToastTheme>;
@@ -11,7 +11,7 @@ declare const StyledView: import("@emotion/native").StyledComponent<Animated.Ani
11
11
  themeIntent: ThemeIntent;
12
12
  themePadding: ThemePadding;
13
13
  }, {}, {}>;
14
- declare const StyledText: import("@emotion/native").StyledComponent<import("../..").TextProps & {
14
+ declare const StyledText: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
15
15
  theme?: import("@emotion/react").Theme | undefined;
16
16
  as?: import("react").ElementType<any> | undefined;
17
17
  }, {}, {}>;
@@ -45,7 +45,7 @@ declare const BottomBarItem: import("@emotion/native").StyledComponent<import("r
45
45
  }, {}, {
46
46
  ref?: import("react").Ref<View> | undefined;
47
47
  }>;
48
- declare const StyledBottomBarText: import("@emotion/native").StyledComponent<import("../..").TextProps & {
48
+ declare const StyledBottomBarText: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
49
49
  theme?: import("@emotion/react").Theme | undefined;
50
50
  as?: import("react").ElementType<any> | undefined;
51
51
  }, {}, {}>;
@@ -8,17 +8,24 @@ declare const StyledButtonContainer: import("@emotion/native").StyledComponent<i
8
8
  as?: import("react").ElementType<any> | undefined;
9
9
  } & {
10
10
  disabled?: boolean | undefined;
11
- themeVariant: ThemeVariant;
11
+ themeButtonVariant: ThemeVariant;
12
12
  loading?: boolean | undefined;
13
13
  }, {}, {
14
14
  ref?: import("react").Ref<TouchableHighlight> | undefined;
15
15
  }>;
16
- declare const StyledButtonText: import("@emotion/native").StyledComponent<import("../..").TextProps & {
16
+ declare const StyledButtonText: import("@emotion/native").StyledComponent<import("../Typography/Title").TitleProps & {
17
17
  theme?: Theme | undefined;
18
18
  as?: import("react").ElementType<any> | undefined;
19
19
  } & {
20
20
  disabled?: boolean | undefined;
21
- themeVariant: ThemeVariant;
21
+ themeButtonVariant: ThemeVariant;
22
+ }, {}, {}>;
23
+ declare const StyledButtonTitleOfVariantText: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
24
+ theme?: Theme | undefined;
25
+ as?: import("react").ElementType<any> | undefined;
26
+ } & {
27
+ disabled?: boolean | undefined;
28
+ themeButtonVariant: 'text-primary' | 'text-secondary' | 'text-danger';
22
29
  }, {}, {}>;
23
30
  declare const StyledButtonIconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
24
31
  theme?: Theme | undefined;
@@ -33,7 +40,7 @@ declare const StyledButtonIcon: import("@emotion/native").StyledComponent<import
33
40
  as?: import("react").ElementType<any> | undefined;
34
41
  } & {
35
42
  disabled?: boolean | undefined;
36
- themeVariant: ThemeVariant;
43
+ themeButtonVariant: ThemeVariant;
37
44
  }, {}, {}>;
38
- export { StyledButtonContainer, StyledButtonText, StyledButtonIconWrapper, StyledButtonIcon, };
45
+ export { StyledButtonContainer, StyledButtonText, StyledButtonIconWrapper, StyledButtonIcon, StyledButtonTitleOfVariantText, };
39
46
  export type { Intent, ThemeVariant };
@@ -12,7 +12,7 @@ export declare const IconWrapper: import("@emotion/native").StyledComponent<impo
12
12
  }, {}, {
13
13
  ref?: import("react").Ref<View> | undefined;
14
14
  }>;
15
- export declare const ButtonText: import("@emotion/native").StyledComponent<import("../../..").TextProps & {
15
+ export declare const ButtonText: import("@emotion/native").StyledComponent<import("../../Typography/Body").BodyProps & {
16
16
  theme?: import("@emotion/react").Theme | undefined;
17
17
  as?: import("react").ElementType<any> | undefined;
18
18
  }, {}, {}>;
@@ -14,7 +14,7 @@ declare const StyledCarouselView: import("@emotion/native").StyledComponent<impo
14
14
  }, {}, {
15
15
  ref?: import("react").Ref<View> | undefined;
16
16
  }>;
17
- declare const StyledCarouselHeading: import("@emotion/native").StyledComponent<import("../..").TextProps & {
17
+ declare const StyledCarouselHeading: import("@emotion/native").StyledComponent<import("../Typography/Title").TitleProps & {
18
18
  theme?: import("@emotion/react").Theme | undefined;
19
19
  as?: import("react").ElementType<any> | undefined;
20
20
  }, {}, {}>;
@@ -9,7 +9,7 @@ export declare const StyledWrapper: import("@emotion/native").StyledComponent<im
9
9
  }, {}, {
10
10
  ref?: import("react").Ref<TouchableOpacity> | undefined;
11
11
  }>;
12
- export declare const StyledDescription: import("@emotion/native").StyledComponent<import("../..").TextProps & {
12
+ export declare const StyledDescription: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
13
13
  theme?: import("@emotion/react").Theme | undefined;
14
14
  as?: import("react").ElementType<any> | undefined;
15
15
  }, {}, {}>;