@hero-design/rn 8.43.1 → 8.44.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 (133) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +10 -0
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +366 -359
  5. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  6. package/lib/index.js +366 -359
  7. package/package.json +1 -1
  8. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +564 -452
  9. package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +76 -20
  10. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +790 -706
  11. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +848 -652
  12. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +170 -142
  13. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +138 -82
  14. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +745 -689
  15. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +157 -73
  16. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +273 -189
  17. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +391 -223
  18. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +119 -63
  19. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +306 -278
  20. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +317 -233
  21. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +1042 -454
  22. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +400 -120
  23. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +1090 -810
  24. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +196 -140
  25. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1666 -1218
  26. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +70 -42
  27. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +1623 -727
  28. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +555 -415
  29. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +265 -69
  30. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +205 -65
  31. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +36 -8
  32. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +292 -124
  33. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +486 -430
  34. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +196 -84
  35. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +41 -13
  36. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1720 -1636
  37. package/src/components/Carousel/__tests__/index.spec.tsx +7 -6
  38. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +400 -176
  39. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +574 -406
  40. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +1170 -834
  41. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +73 -17
  42. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +94 -38
  43. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +37 -9
  44. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +421 -337
  45. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +586 -502
  46. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +200 -172
  47. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +192 -164
  48. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +471 -443
  49. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +464 -128
  50. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +97 -69
  51. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +327 -243
  52. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +169 -113
  53. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +323 -213
  54. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +845 -789
  55. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +98 -42
  56. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +197 -113
  57. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +290 -206
  58. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +45 -17
  59. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  60. package/src/components/Icon/IconList.ts +2 -0
  61. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +158 -46
  62. package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +164 -52
  63. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +242 -186
  64. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +761 -649
  65. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +268 -156
  66. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +473 -221
  67. package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +60 -8
  68. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +83 -55
  69. package/src/components/PinInput/__tests__/StyledPinInput.spec.tsx +9 -4
  70. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +293 -153
  71. package/src/components/PinInput/__tests__/__snapshots__/StyledPinInput.spec.tsx.snap +15 -48
  72. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +809 -697
  73. package/src/components/Portal/__tests__/PortalHost.spec.tsx +12 -14
  74. package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +43 -15
  75. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +743 -603
  76. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +188 -132
  77. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +256 -228
  78. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +864 -780
  79. package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +128 -44
  80. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +5 -2
  81. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +3 -3
  82. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +406 -378
  83. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +64 -36
  84. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +371 -315
  85. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +158 -46
  86. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +394 -226
  87. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +93 -65
  88. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2402 -2290
  89. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +180 -24
  90. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -6
  91. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +73 -45
  92. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2309 -2197
  93. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +150 -20
  94. package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +490 -294
  95. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +117 -33
  96. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +105 -77
  97. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +1308 -636
  98. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +121 -93
  99. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +323 -213
  100. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +210 -126
  101. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +58 -30
  102. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +226 -114
  103. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +145 -117
  104. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +202 -62
  105. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +132 -76
  106. package/src/components/Tabs/__tests__/SceneView.spec.tsx +7 -7
  107. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +206 -94
  108. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +2214 -2130
  109. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +523 -495
  110. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +121 -65
  111. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1637 -1553
  112. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +554 -274
  113. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +1542 -646
  114. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +3177 -2701
  115. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +390 -334
  116. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +662 -606
  117. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +871 -675
  118. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +180 -68
  119. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +582 -498
  120. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +683 -459
  121. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +704 -256
  122. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +855 -323
  123. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +430 -150
  124. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +572 -208
  125. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +328 -104
  126. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +462 -154
  127. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +900 -340
  128. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +880 -320
  129. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +1035 -391
  130. package/src/testHelpers/renderWithTheme.tsx +2 -2
  131. package/types/components/Icon/IconList.d.ts +1 -1
  132. package/types/components/Icon/index.d.ts +1 -1
  133. package/types/components/Icon/utils.d.ts +1 -1
@@ -2,319 +2,487 @@
2
2
 
3
3
  exports[`Badge has danger style when intent is danger 1`] = `
4
4
  <View
5
- collapsable={false}
6
5
  style={
7
6
  {
8
- "alignItems": "center",
9
- "backgroundColor": "#cb300a",
10
- "borderRadius": 999,
11
- "height": 20,
12
- "justifyContent": "center",
13
- "minWidth": 20,
14
- "opacity": 1,
15
- "paddingHorizontal": 8,
16
- "transform": [
17
- {
18
- "scale": 1,
19
- },
20
- ],
7
+ "flex": 1,
21
8
  }
22
9
  }
23
- themeIntent="danger"
24
- themePadding="wideContent"
25
10
  >
26
- <Text
27
- allowFontScaling={false}
11
+ <View
12
+ collapsable={false}
28
13
  style={
29
- [
30
- {
31
- "color": "#001f23",
32
- "fontFamily": "BeVietnamPro-Regular",
33
- "fontSize": 12,
34
- "letterSpacing": 0.48,
35
- "lineHeight": 16,
36
- },
37
- [
14
+ {
15
+ "alignItems": "center",
16
+ "backgroundColor": "#cb300a",
17
+ "borderRadius": 999,
18
+ "height": 20,
19
+ "justifyContent": "center",
20
+ "minWidth": 20,
21
+ "opacity": 1,
22
+ "paddingHorizontal": 8,
23
+ "transform": [
38
24
  {
39
- "color": "#ffffff",
40
- "includeFontPadding": false,
41
- "textAlign": "center",
42
- "textAlignVertical": "center",
25
+ "scale": 1,
43
26
  },
44
- undefined,
45
27
  ],
46
- ]
28
+ }
47
29
  }
48
- themeFontWeight="regular"
49
- themeIntent="body"
30
+ themeIntent="danger"
31
+ themePadding="wideContent"
50
32
  >
51
- DECLINED
52
- </Text>
33
+ <Text
34
+ allowFontScaling={false}
35
+ style={
36
+ [
37
+ {
38
+ "color": "#001f23",
39
+ "fontFamily": "BeVietnamPro-Regular",
40
+ "fontSize": 12,
41
+ "letterSpacing": 0.48,
42
+ "lineHeight": 16,
43
+ },
44
+ [
45
+ {
46
+ "color": "#ffffff",
47
+ "includeFontPadding": false,
48
+ "textAlign": "center",
49
+ "textAlignVertical": "center",
50
+ },
51
+ undefined,
52
+ ],
53
+ ]
54
+ }
55
+ themeFontWeight="regular"
56
+ themeIntent="body"
57
+ >
58
+ DECLINED
59
+ </Text>
60
+ </View>
61
+ <View
62
+ pointerEvents="box-none"
63
+ position="bottom"
64
+ style={
65
+ [
66
+ {
67
+ "bottom": 0,
68
+ "elevation": 9999,
69
+ "flexDirection": "column-reverse",
70
+ "left": 0,
71
+ "paddingHorizontal": 24,
72
+ "paddingVertical": 16,
73
+ "position": "absolute",
74
+ "right": 0,
75
+ "top": 0,
76
+ },
77
+ undefined,
78
+ ]
79
+ }
80
+ />
53
81
  </View>
54
82
  `;
55
83
 
56
84
  exports[`Badge has info style when intent is info 1`] = `
57
85
  <View
58
- collapsable={false}
59
86
  style={
60
87
  {
61
- "alignItems": "center",
62
- "backgroundColor": "#355bfb",
63
- "borderRadius": 999,
64
- "height": 20,
65
- "justifyContent": "center",
66
- "minWidth": 20,
67
- "opacity": 1,
68
- "paddingHorizontal": 8,
69
- "transform": [
70
- {
71
- "scale": 1,
72
- },
73
- ],
88
+ "flex": 1,
74
89
  }
75
90
  }
76
- themeIntent="info"
77
- themePadding="wideContent"
78
91
  >
79
- <Text
80
- allowFontScaling={false}
92
+ <View
93
+ collapsable={false}
81
94
  style={
82
- [
83
- {
84
- "color": "#001f23",
85
- "fontFamily": "BeVietnamPro-Regular",
86
- "fontSize": 12,
87
- "letterSpacing": 0.48,
88
- "lineHeight": 16,
89
- },
90
- [
95
+ {
96
+ "alignItems": "center",
97
+ "backgroundColor": "#355bfb",
98
+ "borderRadius": 999,
99
+ "height": 20,
100
+ "justifyContent": "center",
101
+ "minWidth": 20,
102
+ "opacity": 1,
103
+ "paddingHorizontal": 8,
104
+ "transform": [
91
105
  {
92
- "color": "#ffffff",
93
- "includeFontPadding": false,
94
- "textAlign": "center",
95
- "textAlignVertical": "center",
106
+ "scale": 1,
96
107
  },
97
- undefined,
98
108
  ],
99
- ]
109
+ }
100
110
  }
101
- themeFontWeight="regular"
102
- themeIntent="body"
111
+ themeIntent="info"
112
+ themePadding="wideContent"
103
113
  >
104
- SUBMITTED
105
- </Text>
114
+ <Text
115
+ allowFontScaling={false}
116
+ style={
117
+ [
118
+ {
119
+ "color": "#001f23",
120
+ "fontFamily": "BeVietnamPro-Regular",
121
+ "fontSize": 12,
122
+ "letterSpacing": 0.48,
123
+ "lineHeight": 16,
124
+ },
125
+ [
126
+ {
127
+ "color": "#ffffff",
128
+ "includeFontPadding": false,
129
+ "textAlign": "center",
130
+ "textAlignVertical": "center",
131
+ },
132
+ undefined,
133
+ ],
134
+ ]
135
+ }
136
+ themeFontWeight="regular"
137
+ themeIntent="body"
138
+ >
139
+ SUBMITTED
140
+ </Text>
141
+ </View>
142
+ <View
143
+ pointerEvents="box-none"
144
+ position="bottom"
145
+ style={
146
+ [
147
+ {
148
+ "bottom": 0,
149
+ "elevation": 9999,
150
+ "flexDirection": "column-reverse",
151
+ "left": 0,
152
+ "paddingHorizontal": 24,
153
+ "paddingVertical": 16,
154
+ "position": "absolute",
155
+ "right": 0,
156
+ "top": 0,
157
+ },
158
+ undefined,
159
+ ]
160
+ }
161
+ />
106
162
  </View>
107
163
  `;
108
164
 
109
165
  exports[`Badge has info style when intent is primary 1`] = `
110
166
  <View
111
- collapsable={false}
112
167
  style={
113
168
  {
114
- "alignItems": "center",
115
- "backgroundColor": "#401960",
116
- "borderRadius": 999,
117
- "height": 20,
118
- "justifyContent": "center",
119
- "minWidth": 20,
120
- "opacity": 1,
121
- "paddingHorizontal": 8,
122
- "transform": [
123
- {
124
- "scale": 1,
125
- },
126
- ],
169
+ "flex": 1,
127
170
  }
128
171
  }
129
- themeIntent="primary"
130
- themePadding="wideContent"
131
172
  >
132
- <Text
133
- allowFontScaling={false}
173
+ <View
174
+ collapsable={false}
134
175
  style={
135
- [
136
- {
137
- "color": "#001f23",
138
- "fontFamily": "BeVietnamPro-Regular",
139
- "fontSize": 12,
140
- "letterSpacing": 0.48,
141
- "lineHeight": 16,
142
- },
143
- [
176
+ {
177
+ "alignItems": "center",
178
+ "backgroundColor": "#401960",
179
+ "borderRadius": 999,
180
+ "height": 20,
181
+ "justifyContent": "center",
182
+ "minWidth": 20,
183
+ "opacity": 1,
184
+ "paddingHorizontal": 8,
185
+ "transform": [
144
186
  {
145
- "color": "#ffffff",
146
- "includeFontPadding": false,
147
- "textAlign": "center",
148
- "textAlignVertical": "center",
187
+ "scale": 1,
149
188
  },
150
- undefined,
151
189
  ],
152
- ]
190
+ }
153
191
  }
154
- themeFontWeight="regular"
155
- themeIntent="body"
192
+ themeIntent="primary"
193
+ themePadding="wideContent"
156
194
  >
157
- PRIMARY
158
- </Text>
195
+ <Text
196
+ allowFontScaling={false}
197
+ style={
198
+ [
199
+ {
200
+ "color": "#001f23",
201
+ "fontFamily": "BeVietnamPro-Regular",
202
+ "fontSize": 12,
203
+ "letterSpacing": 0.48,
204
+ "lineHeight": 16,
205
+ },
206
+ [
207
+ {
208
+ "color": "#ffffff",
209
+ "includeFontPadding": false,
210
+ "textAlign": "center",
211
+ "textAlignVertical": "center",
212
+ },
213
+ undefined,
214
+ ],
215
+ ]
216
+ }
217
+ themeFontWeight="regular"
218
+ themeIntent="body"
219
+ >
220
+ PRIMARY
221
+ </Text>
222
+ </View>
223
+ <View
224
+ pointerEvents="box-none"
225
+ position="bottom"
226
+ style={
227
+ [
228
+ {
229
+ "bottom": 0,
230
+ "elevation": 9999,
231
+ "flexDirection": "column-reverse",
232
+ "left": 0,
233
+ "paddingHorizontal": 24,
234
+ "paddingVertical": 16,
235
+ "position": "absolute",
236
+ "right": 0,
237
+ "top": 0,
238
+ },
239
+ undefined,
240
+ ]
241
+ }
242
+ />
159
243
  </View>
160
244
  `;
161
245
 
162
246
  exports[`Badge has success style when intent is success 1`] = `
163
247
  <View
164
- collapsable={false}
165
248
  style={
166
249
  {
167
- "alignItems": "center",
168
- "backgroundColor": "#017d6d",
169
- "borderRadius": 999,
170
- "height": 20,
171
- "justifyContent": "center",
172
- "minWidth": 20,
173
- "opacity": 1,
174
- "paddingHorizontal": 8,
175
- "transform": [
176
- {
177
- "scale": 1,
178
- },
179
- ],
250
+ "flex": 1,
180
251
  }
181
252
  }
182
- themeIntent="success"
183
- themePadding="wideContent"
184
253
  >
185
- <Text
186
- allowFontScaling={false}
254
+ <View
255
+ collapsable={false}
187
256
  style={
188
- [
189
- {
190
- "color": "#001f23",
191
- "fontFamily": "BeVietnamPro-Regular",
192
- "fontSize": 12,
193
- "letterSpacing": 0.48,
194
- "lineHeight": 16,
195
- },
196
- [
257
+ {
258
+ "alignItems": "center",
259
+ "backgroundColor": "#017d6d",
260
+ "borderRadius": 999,
261
+ "height": 20,
262
+ "justifyContent": "center",
263
+ "minWidth": 20,
264
+ "opacity": 1,
265
+ "paddingHorizontal": 8,
266
+ "transform": [
197
267
  {
198
- "color": "#ffffff",
199
- "includeFontPadding": false,
200
- "textAlign": "center",
201
- "textAlignVertical": "center",
268
+ "scale": 1,
202
269
  },
203
- undefined,
204
270
  ],
205
- ]
271
+ }
206
272
  }
207
- themeFontWeight="regular"
208
- themeIntent="body"
273
+ themeIntent="success"
274
+ themePadding="wideContent"
209
275
  >
210
- APPROVED
211
- </Text>
276
+ <Text
277
+ allowFontScaling={false}
278
+ style={
279
+ [
280
+ {
281
+ "color": "#001f23",
282
+ "fontFamily": "BeVietnamPro-Regular",
283
+ "fontSize": 12,
284
+ "letterSpacing": 0.48,
285
+ "lineHeight": 16,
286
+ },
287
+ [
288
+ {
289
+ "color": "#ffffff",
290
+ "includeFontPadding": false,
291
+ "textAlign": "center",
292
+ "textAlignVertical": "center",
293
+ },
294
+ undefined,
295
+ ],
296
+ ]
297
+ }
298
+ themeFontWeight="regular"
299
+ themeIntent="body"
300
+ >
301
+ APPROVED
302
+ </Text>
303
+ </View>
304
+ <View
305
+ pointerEvents="box-none"
306
+ position="bottom"
307
+ style={
308
+ [
309
+ {
310
+ "bottom": 0,
311
+ "elevation": 9999,
312
+ "flexDirection": "column-reverse",
313
+ "left": 0,
314
+ "paddingHorizontal": 24,
315
+ "paddingVertical": 16,
316
+ "position": "absolute",
317
+ "right": 0,
318
+ "top": 0,
319
+ },
320
+ undefined,
321
+ ]
322
+ }
323
+ />
212
324
  </View>
213
325
  `;
214
326
 
215
327
  exports[`Badge has warning style when intent is warning 1`] = `
216
328
  <View
217
- collapsable={false}
218
329
  style={
219
330
  {
220
- "alignItems": "center",
221
- "backgroundColor": "#ac5d00",
222
- "borderRadius": 999,
223
- "height": 20,
224
- "justifyContent": "center",
225
- "minWidth": 20,
226
- "opacity": 1,
227
- "paddingHorizontal": 8,
228
- "transform": [
229
- {
230
- "scale": 1,
231
- },
232
- ],
331
+ "flex": 1,
233
332
  }
234
333
  }
235
- themeIntent="warning"
236
- themePadding="wideContent"
237
334
  >
238
- <Text
239
- allowFontScaling={false}
335
+ <View
336
+ collapsable={false}
240
337
  style={
241
- [
242
- {
243
- "color": "#001f23",
244
- "fontFamily": "BeVietnamPro-Regular",
245
- "fontSize": 12,
246
- "letterSpacing": 0.48,
247
- "lineHeight": 16,
248
- },
249
- [
338
+ {
339
+ "alignItems": "center",
340
+ "backgroundColor": "#ac5d00",
341
+ "borderRadius": 999,
342
+ "height": 20,
343
+ "justifyContent": "center",
344
+ "minWidth": 20,
345
+ "opacity": 1,
346
+ "paddingHorizontal": 8,
347
+ "transform": [
250
348
  {
251
- "color": "#ffffff",
252
- "includeFontPadding": false,
253
- "textAlign": "center",
254
- "textAlignVertical": "center",
349
+ "scale": 1,
255
350
  },
256
- undefined,
257
351
  ],
258
- ]
352
+ }
259
353
  }
260
- themeFontWeight="regular"
261
- themeIntent="body"
354
+ themeIntent="warning"
355
+ themePadding="wideContent"
262
356
  >
263
- PENDING
264
- </Text>
357
+ <Text
358
+ allowFontScaling={false}
359
+ style={
360
+ [
361
+ {
362
+ "color": "#001f23",
363
+ "fontFamily": "BeVietnamPro-Regular",
364
+ "fontSize": 12,
365
+ "letterSpacing": 0.48,
366
+ "lineHeight": 16,
367
+ },
368
+ [
369
+ {
370
+ "color": "#ffffff",
371
+ "includeFontPadding": false,
372
+ "textAlign": "center",
373
+ "textAlignVertical": "center",
374
+ },
375
+ undefined,
376
+ ],
377
+ ]
378
+ }
379
+ themeFontWeight="regular"
380
+ themeIntent="body"
381
+ >
382
+ PENDING
383
+ </Text>
384
+ </View>
385
+ <View
386
+ pointerEvents="box-none"
387
+ position="bottom"
388
+ style={
389
+ [
390
+ {
391
+ "bottom": 0,
392
+ "elevation": 9999,
393
+ "flexDirection": "column-reverse",
394
+ "left": 0,
395
+ "paddingHorizontal": 24,
396
+ "paddingVertical": 16,
397
+ "position": "absolute",
398
+ "right": 0,
399
+ "top": 0,
400
+ },
401
+ undefined,
402
+ ]
403
+ }
404
+ />
265
405
  </View>
266
406
  `;
267
407
 
268
408
  exports[`Badge renders correctly with custom props 1`] = `
269
409
  <View
270
- collapsable={false}
271
410
  style={
272
411
  {
273
- "alignItems": "center",
274
- "backgroundColor": "#017d6d",
275
- "borderRadius": 999,
276
- "height": 20,
277
- "justifyContent": "center",
278
- "minWidth": 20,
279
- "opacity": 1,
280
- "paddingHorizontal": 8,
281
- "transform": [
282
- {
283
- "scale": 1,
284
- },
285
- ],
412
+ "flex": 1,
286
413
  }
287
414
  }
288
- testID="number-badge"
289
- themeIntent="success"
290
- themePadding="wideContent"
291
415
  >
292
- <Text
293
- allowFontScaling={false}
416
+ <View
417
+ collapsable={false}
294
418
  style={
295
- [
296
- {
297
- "color": "#001f23",
298
- "fontFamily": "BeVietnamPro-Regular",
299
- "fontSize": 12,
300
- "letterSpacing": 0.48,
301
- "lineHeight": 16,
302
- },
303
- [
419
+ {
420
+ "alignItems": "center",
421
+ "backgroundColor": "#017d6d",
422
+ "borderRadius": 999,
423
+ "height": 20,
424
+ "justifyContent": "center",
425
+ "minWidth": 20,
426
+ "opacity": 1,
427
+ "paddingHorizontal": 8,
428
+ "transform": [
304
429
  {
305
- "color": "#ffffff",
306
- "includeFontPadding": false,
307
- "textAlign": "center",
308
- "textAlignVertical": "center",
430
+ "scale": 1,
309
431
  },
310
- undefined,
311
432
  ],
312
- ]
433
+ }
313
434
  }
314
- themeFontWeight="regular"
315
- themeIntent="body"
435
+ testID="number-badge"
436
+ themeIntent="success"
437
+ themePadding="wideContent"
316
438
  >
317
- 50+
318
- </Text>
439
+ <Text
440
+ allowFontScaling={false}
441
+ style={
442
+ [
443
+ {
444
+ "color": "#001f23",
445
+ "fontFamily": "BeVietnamPro-Regular",
446
+ "fontSize": 12,
447
+ "letterSpacing": 0.48,
448
+ "lineHeight": 16,
449
+ },
450
+ [
451
+ {
452
+ "color": "#ffffff",
453
+ "includeFontPadding": false,
454
+ "textAlign": "center",
455
+ "textAlignVertical": "center",
456
+ },
457
+ undefined,
458
+ ],
459
+ ]
460
+ }
461
+ themeFontWeight="regular"
462
+ themeIntent="body"
463
+ >
464
+ 50+
465
+ </Text>
466
+ </View>
467
+ <View
468
+ pointerEvents="box-none"
469
+ position="bottom"
470
+ style={
471
+ [
472
+ {
473
+ "bottom": 0,
474
+ "elevation": 9999,
475
+ "flexDirection": "column-reverse",
476
+ "left": 0,
477
+ "paddingHorizontal": 24,
478
+ "paddingVertical": 16,
479
+ "position": "absolute",
480
+ "right": 0,
481
+ "top": 0,
482
+ },
483
+ undefined,
484
+ ]
485
+ }
486
+ />
319
487
  </View>
320
488
  `;