@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
@@ -157,10 +157,9 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
157
157
  undefined,
158
158
  ]
159
159
  }
160
- themeFontSize="large"
161
- themeFontWeight="regular"
162
160
  themeIntent="body"
163
161
  themeTypeface="neutral"
162
+ themeVariant="regular"
164
163
  >
165
164
  Menu List
166
165
  </Text>
@@ -172,16 +171,14 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
172
171
  "color": "#4d6265",
173
172
  "fontFamily": "BeVietnamPro-Regular",
174
173
  "fontSize": 12,
175
- "letterSpacing": 0.36,
174
+ "letterSpacing": 0.48,
176
175
  "lineHeight": 16,
177
176
  },
178
177
  undefined,
179
178
  ]
180
179
  }
181
- themeFontSize="small"
182
180
  themeFontWeight="regular"
183
181
  themeIntent="subdued"
184
- themeTypeface="neutral"
185
182
  >
186
183
  Got a common question?
187
184
  </Text>
@@ -240,17 +237,16 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
240
237
  Object {
241
238
  "color": "#001f23",
242
239
  "fontFamily": "BeVietnamPro-Regular",
243
- "fontSize": 14,
244
- "letterSpacing": 0.42,
245
- "lineHeight": 22,
240
+ "fontSize": 16,
241
+ "letterSpacing": 0.48,
242
+ "lineHeight": 24,
246
243
  },
247
244
  undefined,
248
245
  ]
249
246
  }
250
- themeFontSize="medium"
251
- themeFontWeight="regular"
252
247
  themeIntent="body"
253
248
  themeTypeface="neutral"
249
+ themeVariant="regular"
254
250
  >
255
251
  Gross pay
256
252
  </Text>
@@ -261,17 +257,16 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
261
257
  Object {
262
258
  "color": "#001f23",
263
259
  "fontFamily": "BeVietnamPro-Regular",
264
- "fontSize": 14,
265
- "letterSpacing": 0.42,
266
- "lineHeight": 22,
260
+ "fontSize": 16,
261
+ "letterSpacing": 0.48,
262
+ "lineHeight": 24,
267
263
  },
268
264
  undefined,
269
265
  ]
270
266
  }
271
- themeFontSize="medium"
272
- themeFontWeight="regular"
273
267
  themeIntent="body"
274
268
  themeTypeface="neutral"
269
+ themeVariant="regular"
275
270
  >
276
271
  $1052.03
277
272
  </Text>
@@ -292,17 +287,16 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
292
287
  Object {
293
288
  "color": "#001f23",
294
289
  "fontFamily": "BeVietnamPro-Regular",
295
- "fontSize": 14,
296
- "letterSpacing": 0.42,
297
- "lineHeight": 22,
290
+ "fontSize": 16,
291
+ "letterSpacing": 0.48,
292
+ "lineHeight": 24,
298
293
  },
299
294
  undefined,
300
295
  ]
301
296
  }
302
- themeFontSize="medium"
303
- themeFontWeight="regular"
304
297
  themeIntent="body"
305
298
  themeTypeface="neutral"
299
+ themeVariant="regular"
306
300
  >
307
301
  Gross pay
308
302
  </Text>
@@ -313,17 +307,16 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
313
307
  Object {
314
308
  "color": "#001f23",
315
309
  "fontFamily": "BeVietnamPro-Regular",
316
- "fontSize": 14,
317
- "letterSpacing": 0.42,
318
- "lineHeight": 22,
310
+ "fontSize": 16,
311
+ "letterSpacing": 0.48,
312
+ "lineHeight": 24,
319
313
  },
320
314
  undefined,
321
315
  ]
322
316
  }
323
- themeFontSize="medium"
324
- themeFontWeight="regular"
325
317
  themeIntent="body"
326
318
  themeTypeface="neutral"
319
+ themeVariant="regular"
327
320
  >
328
321
  $1052.03
329
322
  </Text>
@@ -405,10 +398,9 @@ exports[`ListItem renders correctly ListItem with icon 1`] = `
405
398
  undefined,
406
399
  ]
407
400
  }
408
- themeFontSize="large"
409
- themeFontWeight="regular"
410
401
  themeIntent="body"
411
402
  themeTypeface="neutral"
403
+ themeVariant="regular"
412
404
  >
413
405
  List item
414
406
  </Text>
@@ -420,16 +412,14 @@ exports[`ListItem renders correctly ListItem with icon 1`] = `
420
412
  "color": "#4d6265",
421
413
  "fontFamily": "BeVietnamPro-Regular",
422
414
  "fontSize": 12,
423
- "letterSpacing": 0.36,
415
+ "letterSpacing": 0.48,
424
416
  "lineHeight": 16,
425
417
  },
426
418
  undefined,
427
419
  ]
428
420
  }
429
- themeFontSize="small"
430
421
  themeFontWeight="regular"
431
422
  themeIntent="subdued"
432
- themeTypeface="neutral"
433
423
  >
434
424
  subtitle
435
425
  </Text>
@@ -550,10 +540,9 @@ exports[`ListItem renders correctly ListItem with leading status 1`] = `
550
540
  undefined,
551
541
  ]
552
542
  }
553
- themeFontSize="large"
554
- themeFontWeight="regular"
555
543
  themeIntent="body"
556
544
  themeTypeface="neutral"
545
+ themeVariant="regular"
557
546
  >
558
547
  03:00 PM - 9:00 PM
559
548
  </Text>
@@ -746,10 +735,9 @@ exports[`ListItem renders correctly ListItem with prefix suffix is React.Element
746
735
  undefined,
747
736
  ]
748
737
  }
749
- themeFontSize="large"
750
- themeFontWeight="regular"
751
738
  themeIntent="body"
752
739
  themeTypeface="neutral"
740
+ themeVariant="regular"
753
741
  >
754
742
  List item
755
743
  </Text>
@@ -761,16 +749,14 @@ exports[`ListItem renders correctly ListItem with prefix suffix is React.Element
761
749
  "color": "#4d6265",
762
750
  "fontFamily": "BeVietnamPro-Regular",
763
751
  "fontSize": 12,
764
- "letterSpacing": 0.36,
752
+ "letterSpacing": 0.48,
765
753
  "lineHeight": 16,
766
754
  },
767
755
  undefined,
768
756
  ]
769
757
  }
770
- themeFontSize="small"
771
758
  themeFontWeight="regular"
772
759
  themeIntent="subdued"
773
- themeTypeface="neutral"
774
760
  >
775
761
  subtitle
776
762
  </Text>
@@ -33,16 +33,15 @@ exports[`StyledListItemContainer renders correctly themeSelected false themeDisa
33
33
  "color": "#001f23",
34
34
  "fontFamily": "BeVietnamPro-Regular",
35
35
  "fontSize": 14,
36
- "letterSpacing": 0.42,
36
+ "letterSpacing": 0.48,
37
37
  "lineHeight": 22,
38
38
  },
39
39
  undefined,
40
40
  ]
41
41
  }
42
- themeFontSize="medium"
43
- themeFontWeight="regular"
44
42
  themeIntent="body"
45
43
  themeTypeface="neutral"
44
+ themeVariant="small"
46
45
  >
47
46
  StyledListItemContainer
48
47
  </Text>
@@ -82,16 +81,15 @@ exports[`StyledListItemContainer renders correctly themeSelected false themeDisa
82
81
  "color": "#001f23",
83
82
  "fontFamily": "BeVietnamPro-Regular",
84
83
  "fontSize": 14,
85
- "letterSpacing": 0.42,
84
+ "letterSpacing": 0.48,
86
85
  "lineHeight": 22,
87
86
  },
88
87
  undefined,
89
88
  ]
90
89
  }
91
- themeFontSize="medium"
92
- themeFontWeight="regular"
93
90
  themeIntent="body"
94
91
  themeTypeface="neutral"
92
+ themeVariant="small"
95
93
  >
96
94
  StyledListItemContainer
97
95
  </Text>
@@ -131,16 +129,15 @@ exports[`StyledListItemContainer renders correctly themeSelected true themeDisab
131
129
  "color": "#001f23",
132
130
  "fontFamily": "BeVietnamPro-Regular",
133
131
  "fontSize": 14,
134
- "letterSpacing": 0.42,
132
+ "letterSpacing": 0.48,
135
133
  "lineHeight": 22,
136
134
  },
137
135
  undefined,
138
136
  ]
139
137
  }
140
- themeFontSize="medium"
141
- themeFontWeight="regular"
142
138
  themeIntent="body"
143
139
  themeTypeface="neutral"
140
+ themeVariant="small"
144
141
  >
145
142
  StyledListItemContainer
146
143
  </Text>
@@ -180,16 +177,15 @@ exports[`StyledListItemContainer renders correctly themeSelected true themeDisab
180
177
  "color": "#001f23",
181
178
  "fontFamily": "BeVietnamPro-Regular",
182
179
  "fontSize": 14,
183
- "letterSpacing": 0.42,
180
+ "letterSpacing": 0.48,
184
181
  "lineHeight": 22,
185
182
  },
186
183
  undefined,
187
184
  ]
188
185
  }
189
- themeFontSize="medium"
190
- themeFontWeight="regular"
191
186
  themeIntent="body"
192
187
  themeTypeface="neutral"
188
+ themeVariant="small"
193
189
  >
194
190
  StyledListItemContainer
195
191
  </Text>
@@ -125,16 +125,15 @@ exports[`ListItemContainer renders correctly themeSelected false themeVariant ca
125
125
  "color": "#001f23",
126
126
  "fontFamily": "BeVietnamPro-Regular",
127
127
  "fontSize": 14,
128
- "letterSpacing": 0.42,
128
+ "letterSpacing": 0.48,
129
129
  "lineHeight": 22,
130
130
  },
131
131
  undefined,
132
132
  ]
133
133
  }
134
- themeFontSize="medium"
135
- themeFontWeight="regular"
136
134
  themeIntent="body"
137
135
  themeTypeface="neutral"
136
+ themeVariant="small"
138
137
  >
139
138
  StyledListItemContainer
140
139
  </Text>
@@ -171,16 +170,15 @@ exports[`ListItemContainer renders correctly themeSelected false themeVariant fu
171
170
  "color": "#001f23",
172
171
  "fontFamily": "BeVietnamPro-Regular",
173
172
  "fontSize": 14,
174
- "letterSpacing": 0.42,
173
+ "letterSpacing": 0.48,
175
174
  "lineHeight": 22,
176
175
  },
177
176
  undefined,
178
177
  ]
179
178
  }
180
- themeFontSize="medium"
181
- themeFontWeight="regular"
182
179
  themeIntent="body"
183
180
  themeTypeface="neutral"
181
+ themeVariant="small"
184
182
  >
185
183
  StyledListItemContainer
186
184
  </Text>
@@ -227,16 +225,15 @@ exports[`ListItemContainer renders correctly themeSelected true themeVariant car
227
225
  "color": "#001f23",
228
226
  "fontFamily": "BeVietnamPro-Regular",
229
227
  "fontSize": 14,
230
- "letterSpacing": 0.42,
228
+ "letterSpacing": 0.48,
231
229
  "lineHeight": 22,
232
230
  },
233
231
  undefined,
234
232
  ]
235
233
  }
236
- themeFontSize="medium"
237
- themeFontWeight="regular"
238
234
  themeIntent="body"
239
235
  themeTypeface="neutral"
236
+ themeVariant="small"
240
237
  >
241
238
  StyledListItemContainer
242
239
  </Text>
@@ -273,16 +270,15 @@ exports[`ListItemContainer renders correctly themeSelected true themeVariant ful
273
270
  "color": "#001f23",
274
271
  "fontFamily": "BeVietnamPro-Regular",
275
272
  "fontSize": 14,
276
- "letterSpacing": 0.42,
273
+ "letterSpacing": 0.48,
277
274
  "lineHeight": 22,
278
275
  },
279
276
  undefined,
280
277
  ]
281
278
  }
282
- themeFontSize="medium"
283
- themeFontWeight="regular"
284
279
  themeIntent="body"
285
280
  themeTypeface="neutral"
281
+ themeVariant="small"
286
282
  >
287
283
  StyledListItemContainer
288
284
  </Text>
@@ -32,7 +32,6 @@ const PageControl = ({
32
32
  style,
33
33
  }: PageControlProps) => {
34
34
  const theme = useTheme();
35
-
36
35
  const animatedValue = React.useRef(new Animated.Value(currentPage)).current;
37
36
 
38
37
  React.useEffect(() => {
@@ -25,7 +25,9 @@ function PinCell({
25
25
  <StyledFilledMask themeState={state} testID="pin-cell-filled-mask" />
26
26
  )}
27
27
  {value !== '' && !secure && (
28
- <StyledCellText themeState={state}>{value}</StyledCellText>
28
+ <StyledCellText themeState={state} level="h3">
29
+ {value}
30
+ </StyledCellText>
29
31
  )}
30
32
  </StyledCell>
31
33
  );
@@ -27,12 +27,9 @@ export const StyledCell = styled(View)<{
27
27
  borderColor: theme.__hd__.pinInput.colors[themeState],
28
28
  }));
29
29
 
30
- export const StyledCellText = styled(Typography.Text)<{
30
+ export const StyledCellText = styled(Typography.Title)<{
31
31
  themeState: State;
32
32
  }>(({ theme, themeState }) => ({
33
- fontFamily: theme.__hd__.pinInput.fonts.cellText,
34
- fontSize: theme.__hd__.pinInput.fontSizes.cellText,
35
- lineHeight: theme.__hd__.pinInput.lineHeights.cellText,
36
33
  color: theme.__hd__.pinInput.colors[themeState],
37
34
  }));
38
35
 
@@ -83,9 +80,7 @@ export const StyledErrorContainer = styled(View)(({ theme }) => ({
83
80
  alignItems: 'center',
84
81
  }));
85
82
 
86
- export const StyledErrorMessage = styled(Typography.Text)(({ theme }) => ({
87
- fontFamily: theme.__hd__.pinInput.fonts.errorMessage,
88
- fontSize: theme.__hd__.pinInput.fontSizes.errorMessage,
83
+ export const StyledErrorMessage = styled(Typography.Caption)(({ theme }) => ({
89
84
  color: theme.__hd__.pinInput.colors.error,
90
85
  paddingLeft: theme.__hd__.pinInput.space.errorMessagePadding,
91
86
  }));
@@ -25,25 +25,21 @@ exports[`PinCell renders correctly when focused is false, state is default 1`] =
25
25
  Array [
26
26
  Object {
27
27
  "color": "#001f23",
28
- "fontFamily": "BeVietnamPro-Regular",
29
- "fontSize": 14,
30
- "letterSpacing": 0.42,
31
- "lineHeight": 22,
28
+ "fontFamily": "BeVietnamPro-SemiBold",
29
+ "fontSize": 28,
30
+ "letterSpacing": 0.24,
31
+ "lineHeight": 36,
32
32
  },
33
33
  Array [
34
34
  Object {
35
35
  "color": "#001f23",
36
- "fontFamily": "BeVietnamPro-SemiBold",
37
- "fontSize": 28,
38
- "lineHeight": 36,
39
36
  },
40
37
  undefined,
41
38
  ],
42
39
  ]
43
40
  }
44
- themeFontSize="medium"
45
- themeFontWeight="regular"
46
41
  themeIntent="body"
42
+ themeLevel="h3"
47
43
  themeState="default"
48
44
  themeTypeface="neutral"
49
45
  >
@@ -77,25 +73,21 @@ exports[`PinCell renders correctly when focused is false, state is disabled 1`]
77
73
  Array [
78
74
  Object {
79
75
  "color": "#001f23",
80
- "fontFamily": "BeVietnamPro-Regular",
81
- "fontSize": 14,
82
- "letterSpacing": 0.42,
83
- "lineHeight": 22,
76
+ "fontFamily": "BeVietnamPro-SemiBold",
77
+ "fontSize": 28,
78
+ "letterSpacing": 0.24,
79
+ "lineHeight": 36,
84
80
  },
85
81
  Array [
86
82
  Object {
87
83
  "color": "#bfc1c5",
88
- "fontFamily": "BeVietnamPro-SemiBold",
89
- "fontSize": 28,
90
- "lineHeight": 36,
91
84
  },
92
85
  undefined,
93
86
  ],
94
87
  ]
95
88
  }
96
- themeFontSize="medium"
97
- themeFontWeight="regular"
98
89
  themeIntent="body"
90
+ themeLevel="h3"
99
91
  themeState="disabled"
100
92
  themeTypeface="neutral"
101
93
  >
@@ -129,25 +121,21 @@ exports[`PinCell renders correctly when focused is false, state is error 1`] = `
129
121
  Array [
130
122
  Object {
131
123
  "color": "#001f23",
132
- "fontFamily": "BeVietnamPro-Regular",
133
- "fontSize": 14,
134
- "letterSpacing": 0.42,
135
- "lineHeight": 22,
124
+ "fontFamily": "BeVietnamPro-SemiBold",
125
+ "fontSize": 28,
126
+ "letterSpacing": 0.24,
127
+ "lineHeight": 36,
136
128
  },
137
129
  Array [
138
130
  Object {
139
131
  "color": "#de350b",
140
- "fontFamily": "BeVietnamPro-SemiBold",
141
- "fontSize": 28,
142
- "lineHeight": 36,
143
132
  },
144
133
  undefined,
145
134
  ],
146
135
  ]
147
136
  }
148
- themeFontSize="medium"
149
- themeFontWeight="regular"
150
137
  themeIntent="body"
138
+ themeLevel="h3"
151
139
  themeState="error"
152
140
  themeTypeface="neutral"
153
141
  >
@@ -181,25 +169,21 @@ exports[`PinCell renders correctly when focused is true, state is default 1`] =
181
169
  Array [
182
170
  Object {
183
171
  "color": "#001f23",
184
- "fontFamily": "BeVietnamPro-Regular",
185
- "fontSize": 14,
186
- "letterSpacing": 0.42,
187
- "lineHeight": 22,
172
+ "fontFamily": "BeVietnamPro-SemiBold",
173
+ "fontSize": 28,
174
+ "letterSpacing": 0.24,
175
+ "lineHeight": 36,
188
176
  },
189
177
  Array [
190
178
  Object {
191
179
  "color": "#001f23",
192
- "fontFamily": "BeVietnamPro-SemiBold",
193
- "fontSize": 28,
194
- "lineHeight": 36,
195
180
  },
196
181
  undefined,
197
182
  ],
198
183
  ]
199
184
  }
200
- themeFontSize="medium"
201
- themeFontWeight="regular"
202
185
  themeIntent="body"
186
+ themeLevel="h3"
203
187
  themeState="default"
204
188
  themeTypeface="neutral"
205
189
  >
@@ -233,25 +217,21 @@ exports[`PinCell renders correctly when focused is true, state is error 1`] = `
233
217
  Array [
234
218
  Object {
235
219
  "color": "#001f23",
236
- "fontFamily": "BeVietnamPro-Regular",
237
- "fontSize": 14,
238
- "letterSpacing": 0.42,
239
- "lineHeight": 22,
220
+ "fontFamily": "BeVietnamPro-SemiBold",
221
+ "fontSize": 28,
222
+ "letterSpacing": 0.24,
223
+ "lineHeight": 36,
240
224
  },
241
225
  Array [
242
226
  Object {
243
227
  "color": "#de350b",
244
- "fontFamily": "BeVietnamPro-SemiBold",
245
- "fontSize": 28,
246
- "lineHeight": 36,
247
228
  },
248
229
  undefined,
249
230
  ],
250
231
  ]
251
232
  }
252
- themeFontSize="medium"
253
- themeFontWeight="regular"
254
233
  themeIntent="body"
234
+ themeLevel="h3"
255
235
  themeState="error"
256
236
  themeTypeface="neutral"
257
237
  >
@@ -497,25 +497,21 @@ exports[`rendering renders correctly when length is 6 and secure is false 1`] =
497
497
  Array [
498
498
  Object {
499
499
  "color": "#001f23",
500
- "fontFamily": "BeVietnamPro-Regular",
501
- "fontSize": 14,
502
- "letterSpacing": 0.42,
503
- "lineHeight": 22,
500
+ "fontFamily": "BeVietnamPro-SemiBold",
501
+ "fontSize": 28,
502
+ "letterSpacing": 0.24,
503
+ "lineHeight": 36,
504
504
  },
505
505
  Array [
506
506
  Object {
507
507
  "color": "#001f23",
508
- "fontFamily": "BeVietnamPro-SemiBold",
509
- "fontSize": 28,
510
- "lineHeight": 36,
511
508
  },
512
509
  undefined,
513
510
  ],
514
511
  ]
515
512
  }
516
- themeFontSize="medium"
517
- themeFontWeight="regular"
518
513
  themeIntent="body"
514
+ themeLevel="h3"
519
515
  themeState="default"
520
516
  themeTypeface="neutral"
521
517
  >
@@ -556,25 +552,21 @@ exports[`rendering renders correctly when length is 6 and secure is false 1`] =
556
552
  Array [
557
553
  Object {
558
554
  "color": "#001f23",
559
- "fontFamily": "BeVietnamPro-Regular",
560
- "fontSize": 14,
561
- "letterSpacing": 0.42,
562
- "lineHeight": 22,
555
+ "fontFamily": "BeVietnamPro-SemiBold",
556
+ "fontSize": 28,
557
+ "letterSpacing": 0.24,
558
+ "lineHeight": 36,
563
559
  },
564
560
  Array [
565
561
  Object {
566
562
  "color": "#001f23",
567
- "fontFamily": "BeVietnamPro-SemiBold",
568
- "fontSize": 28,
569
- "lineHeight": 36,
570
563
  },
571
564
  undefined,
572
565
  ],
573
566
  ]
574
567
  }
575
- themeFontSize="medium"
576
- themeFontWeight="regular"
577
568
  themeIntent="body"
569
+ themeLevel="h3"
578
570
  themeState="default"
579
571
  themeTypeface="neutral"
580
572
  >
@@ -615,25 +607,21 @@ exports[`rendering renders correctly when length is 6 and secure is false 1`] =
615
607
  Array [
616
608
  Object {
617
609
  "color": "#001f23",
618
- "fontFamily": "BeVietnamPro-Regular",
619
- "fontSize": 14,
620
- "letterSpacing": 0.42,
621
- "lineHeight": 22,
610
+ "fontFamily": "BeVietnamPro-SemiBold",
611
+ "fontSize": 28,
612
+ "letterSpacing": 0.24,
613
+ "lineHeight": 36,
622
614
  },
623
615
  Array [
624
616
  Object {
625
617
  "color": "#001f23",
626
- "fontFamily": "BeVietnamPro-SemiBold",
627
- "fontSize": 28,
628
- "lineHeight": 36,
629
618
  },
630
619
  undefined,
631
620
  ],
632
621
  ]
633
622
  }
634
- themeFontSize="medium"
635
- themeFontWeight="regular"
636
623
  themeIntent="body"
624
+ themeLevel="h3"
637
625
  themeState="default"
638
626
  themeTypeface="neutral"
639
627
  >
@@ -1036,25 +1024,21 @@ exports[`rendering renders correctly when there is error 1`] = `
1036
1024
  Object {
1037
1025
  "color": "#001f23",
1038
1026
  "fontFamily": "BeVietnamPro-Regular",
1039
- "fontSize": 14,
1040
- "letterSpacing": 0.42,
1041
- "lineHeight": 22,
1027
+ "fontSize": 12,
1028
+ "letterSpacing": 0.48,
1029
+ "lineHeight": 16,
1042
1030
  },
1043
1031
  Array [
1044
1032
  Object {
1045
1033
  "color": "#de350b",
1046
- "fontFamily": "BeVietnamPro-Regular",
1047
- "fontSize": 12,
1048
1034
  "paddingLeft": 4,
1049
1035
  },
1050
1036
  undefined,
1051
1037
  ],
1052
1038
  ]
1053
1039
  }
1054
- themeFontSize="medium"
1055
1040
  themeFontWeight="regular"
1056
1041
  themeIntent="body"
1057
- themeTypeface="neutral"
1058
1042
  >
1059
1043
  PIN is not correct
1060
1044
  </Text>
@@ -171,9 +171,7 @@ const ProgressCircle = ({
171
171
  <StyledStrokeEnd themeIntent={intent} />
172
172
  </Animated.View>
173
173
  <StyledDonutCircle>
174
- <Typography.Text fontSize="large">
175
- {renderValue(value)}
176
- </Typography.Text>
174
+ <Typography.Body>{renderValue(value)}</Typography.Body>
177
175
  </StyledDonutCircle>
178
176
  </StyledContainer>
179
177
  </View>