@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
@@ -3,442 +3,722 @@
3
3
  exports[`Tag renders correctly when intent is danger 1`] = `
4
4
  <View
5
5
  style={
6
- [
7
- {
8
- "backgroundColor": "#fcebe7",
9
- "borderRadius": 4,
10
- "paddingHorizontal": 8,
11
- "paddingVertical": 4,
12
- },
13
- undefined,
14
- ]
6
+ {
7
+ "flex": 1,
8
+ }
15
9
  }
16
- themeIntent="danger"
17
10
  >
18
- <Text
19
- allowFontScaling={false}
11
+ <View
20
12
  style={
21
13
  [
22
14
  {
23
- "color": "#001f23",
24
- "fontFamily": "BeVietnamPro-SemiBold",
25
- "fontSize": 12,
26
- "letterSpacing": 0.24,
27
- "lineHeight": 16,
15
+ "backgroundColor": "#fcebe7",
16
+ "borderRadius": 4,
17
+ "paddingHorizontal": 8,
18
+ "paddingVertical": 4,
28
19
  },
20
+ undefined,
21
+ ]
22
+ }
23
+ themeIntent="danger"
24
+ >
25
+ <Text
26
+ allowFontScaling={false}
27
+ style={
29
28
  [
30
29
  {
31
- "color": "#cb300a",
32
- "includeFontPadding": false,
33
- "textAlign": "center",
34
- "textAlignVertical": "center",
30
+ "color": "#001f23",
31
+ "fontFamily": "BeVietnamPro-SemiBold",
32
+ "fontSize": 12,
33
+ "letterSpacing": 0.24,
34
+ "lineHeight": 16,
35
35
  },
36
- undefined,
37
- ],
36
+ [
37
+ {
38
+ "color": "#cb300a",
39
+ "includeFontPadding": false,
40
+ "textAlign": "center",
41
+ "textAlignVertical": "center",
42
+ },
43
+ undefined,
44
+ ],
45
+ ]
46
+ }
47
+ themeFontWeight="semi-bold"
48
+ themeIntent="body"
49
+ >
50
+ DANGER
51
+ </Text>
52
+ </View>
53
+ <View
54
+ pointerEvents="box-none"
55
+ position="bottom"
56
+ style={
57
+ [
58
+ {
59
+ "bottom": 0,
60
+ "elevation": 9999,
61
+ "flexDirection": "column-reverse",
62
+ "left": 0,
63
+ "paddingHorizontal": 24,
64
+ "paddingVertical": 16,
65
+ "position": "absolute",
66
+ "right": 0,
67
+ "top": 0,
68
+ },
69
+ undefined,
38
70
  ]
39
71
  }
40
- themeFontWeight="semi-bold"
41
- themeIntent="body"
42
- >
43
- DANGER
44
- </Text>
72
+ />
45
73
  </View>
46
74
  `;
47
75
 
48
76
  exports[`Tag renders correctly when intent is danger 2`] = `
49
77
  <View
50
78
  style={
51
- [
52
- {
53
- "backgroundColor": "#fcebe7",
54
- "borderRadius": 4,
55
- "paddingHorizontal": 8,
56
- "paddingVertical": 4,
57
- },
58
- undefined,
59
- ]
79
+ {
80
+ "flex": 1,
81
+ }
60
82
  }
61
- themeIntent="danger"
62
83
  >
63
- <Text
64
- allowFontScaling={false}
84
+ <View
65
85
  style={
66
86
  [
67
87
  {
68
- "color": "#001f23",
69
- "fontFamily": "BeVietnamPro-SemiBold",
70
- "fontSize": 12,
71
- "letterSpacing": 0.24,
72
- "lineHeight": 16,
88
+ "backgroundColor": "#fcebe7",
89
+ "borderRadius": 4,
90
+ "paddingHorizontal": 8,
91
+ "paddingVertical": 4,
73
92
  },
93
+ undefined,
94
+ ]
95
+ }
96
+ themeIntent="danger"
97
+ >
98
+ <Text
99
+ allowFontScaling={false}
100
+ style={
74
101
  [
75
102
  {
76
- "color": "#cb300a",
77
- "includeFontPadding": false,
78
- "textAlign": "center",
79
- "textAlignVertical": "center",
103
+ "color": "#001f23",
104
+ "fontFamily": "BeVietnamPro-SemiBold",
105
+ "fontSize": 12,
106
+ "letterSpacing": 0.24,
107
+ "lineHeight": 16,
80
108
  },
81
- undefined,
82
- ],
109
+ [
110
+ {
111
+ "color": "#cb300a",
112
+ "includeFontPadding": false,
113
+ "textAlign": "center",
114
+ "textAlignVertical": "center",
115
+ },
116
+ undefined,
117
+ ],
118
+ ]
119
+ }
120
+ themeFontWeight="semi-bold"
121
+ themeIntent="body"
122
+ >
123
+ DANGER
124
+ </Text>
125
+ </View>
126
+ <View
127
+ pointerEvents="box-none"
128
+ position="bottom"
129
+ style={
130
+ [
131
+ {
132
+ "bottom": 0,
133
+ "elevation": 9999,
134
+ "flexDirection": "column-reverse",
135
+ "left": 0,
136
+ "paddingHorizontal": 24,
137
+ "paddingVertical": 16,
138
+ "position": "absolute",
139
+ "right": 0,
140
+ "top": 0,
141
+ },
142
+ undefined,
83
143
  ]
84
144
  }
85
- themeFontWeight="semi-bold"
86
- themeIntent="body"
87
- >
88
- DANGER
89
- </Text>
145
+ />
90
146
  </View>
91
147
  `;
92
148
 
93
149
  exports[`Tag renders correctly when intent is info 1`] = `
94
150
  <View
95
151
  style={
96
- [
97
- {
98
- "backgroundColor": "#ecf0ff",
99
- "borderRadius": 4,
100
- "paddingHorizontal": 8,
101
- "paddingVertical": 4,
102
- },
103
- undefined,
104
- ]
152
+ {
153
+ "flex": 1,
154
+ }
105
155
  }
106
- themeIntent="info"
107
156
  >
108
- <Text
109
- allowFontScaling={false}
157
+ <View
110
158
  style={
111
159
  [
112
160
  {
113
- "color": "#001f23",
114
- "fontFamily": "BeVietnamPro-SemiBold",
115
- "fontSize": 12,
116
- "letterSpacing": 0.24,
117
- "lineHeight": 16,
161
+ "backgroundColor": "#ecf0ff",
162
+ "borderRadius": 4,
163
+ "paddingHorizontal": 8,
164
+ "paddingVertical": 4,
118
165
  },
166
+ undefined,
167
+ ]
168
+ }
169
+ themeIntent="info"
170
+ >
171
+ <Text
172
+ allowFontScaling={false}
173
+ style={
119
174
  [
120
175
  {
121
- "color": "#355bfb",
122
- "includeFontPadding": false,
123
- "textAlign": "center",
124
- "textAlignVertical": "center",
176
+ "color": "#001f23",
177
+ "fontFamily": "BeVietnamPro-SemiBold",
178
+ "fontSize": 12,
179
+ "letterSpacing": 0.24,
180
+ "lineHeight": 16,
125
181
  },
126
- undefined,
127
- ],
182
+ [
183
+ {
184
+ "color": "#355bfb",
185
+ "includeFontPadding": false,
186
+ "textAlign": "center",
187
+ "textAlignVertical": "center",
188
+ },
189
+ undefined,
190
+ ],
191
+ ]
192
+ }
193
+ themeFontWeight="semi-bold"
194
+ themeIntent="body"
195
+ >
196
+ INFO
197
+ </Text>
198
+ </View>
199
+ <View
200
+ pointerEvents="box-none"
201
+ position="bottom"
202
+ style={
203
+ [
204
+ {
205
+ "bottom": 0,
206
+ "elevation": 9999,
207
+ "flexDirection": "column-reverse",
208
+ "left": 0,
209
+ "paddingHorizontal": 24,
210
+ "paddingVertical": 16,
211
+ "position": "absolute",
212
+ "right": 0,
213
+ "top": 0,
214
+ },
215
+ undefined,
128
216
  ]
129
217
  }
130
- themeFontWeight="semi-bold"
131
- themeIntent="body"
132
- >
133
- INFO
134
- </Text>
218
+ />
135
219
  </View>
136
220
  `;
137
221
 
138
222
  exports[`Tag renders correctly when intent is info 2`] = `
139
223
  <View
140
224
  style={
141
- [
142
- {
143
- "backgroundColor": "#ecf0ff",
144
- "borderRadius": 4,
145
- "paddingHorizontal": 8,
146
- "paddingVertical": 4,
147
- },
148
- undefined,
149
- ]
225
+ {
226
+ "flex": 1,
227
+ }
150
228
  }
151
- themeIntent="info"
152
229
  >
153
- <Text
154
- allowFontScaling={false}
230
+ <View
155
231
  style={
156
232
  [
157
233
  {
158
- "color": "#001f23",
159
- "fontFamily": "BeVietnamPro-SemiBold",
160
- "fontSize": 12,
161
- "letterSpacing": 0.24,
162
- "lineHeight": 16,
234
+ "backgroundColor": "#ecf0ff",
235
+ "borderRadius": 4,
236
+ "paddingHorizontal": 8,
237
+ "paddingVertical": 4,
163
238
  },
239
+ undefined,
240
+ ]
241
+ }
242
+ themeIntent="info"
243
+ >
244
+ <Text
245
+ allowFontScaling={false}
246
+ style={
164
247
  [
165
248
  {
166
- "color": "#355bfb",
167
- "includeFontPadding": false,
168
- "textAlign": "center",
169
- "textAlignVertical": "center",
249
+ "color": "#001f23",
250
+ "fontFamily": "BeVietnamPro-SemiBold",
251
+ "fontSize": 12,
252
+ "letterSpacing": 0.24,
253
+ "lineHeight": 16,
170
254
  },
171
- undefined,
172
- ],
255
+ [
256
+ {
257
+ "color": "#355bfb",
258
+ "includeFontPadding": false,
259
+ "textAlign": "center",
260
+ "textAlignVertical": "center",
261
+ },
262
+ undefined,
263
+ ],
264
+ ]
265
+ }
266
+ themeFontWeight="semi-bold"
267
+ themeIntent="body"
268
+ >
269
+ INFO
270
+ </Text>
271
+ </View>
272
+ <View
273
+ pointerEvents="box-none"
274
+ position="bottom"
275
+ style={
276
+ [
277
+ {
278
+ "bottom": 0,
279
+ "elevation": 9999,
280
+ "flexDirection": "column-reverse",
281
+ "left": 0,
282
+ "paddingHorizontal": 24,
283
+ "paddingVertical": 16,
284
+ "position": "absolute",
285
+ "right": 0,
286
+ "top": 0,
287
+ },
288
+ undefined,
173
289
  ]
174
290
  }
175
- themeFontWeight="semi-bold"
176
- themeIntent="body"
177
- >
178
- INFO
179
- </Text>
291
+ />
180
292
  </View>
181
293
  `;
182
294
 
183
295
  exports[`Tag renders correctly when intent is primary 1`] = `
184
296
  <View
185
297
  style={
186
- [
187
- {
188
- "backgroundColor": "#ece8ef",
189
- "borderRadius": 4,
190
- "paddingHorizontal": 8,
191
- "paddingVertical": 4,
192
- },
193
- undefined,
194
- ]
298
+ {
299
+ "flex": 1,
300
+ }
195
301
  }
196
- themeIntent="primary"
197
302
  >
198
- <Text
199
- allowFontScaling={false}
303
+ <View
200
304
  style={
201
305
  [
202
306
  {
203
- "color": "#001f23",
204
- "fontFamily": "BeVietnamPro-SemiBold",
205
- "fontSize": 12,
206
- "letterSpacing": 0.24,
207
- "lineHeight": 16,
307
+ "backgroundColor": "#ece8ef",
308
+ "borderRadius": 4,
309
+ "paddingHorizontal": 8,
310
+ "paddingVertical": 4,
208
311
  },
312
+ undefined,
313
+ ]
314
+ }
315
+ themeIntent="primary"
316
+ >
317
+ <Text
318
+ allowFontScaling={false}
319
+ style={
209
320
  [
210
321
  {
211
- "color": "#401960",
212
- "includeFontPadding": false,
213
- "textAlign": "center",
214
- "textAlignVertical": "center",
322
+ "color": "#001f23",
323
+ "fontFamily": "BeVietnamPro-SemiBold",
324
+ "fontSize": 12,
325
+ "letterSpacing": 0.24,
326
+ "lineHeight": 16,
215
327
  },
216
- undefined,
217
- ],
328
+ [
329
+ {
330
+ "color": "#401960",
331
+ "includeFontPadding": false,
332
+ "textAlign": "center",
333
+ "textAlignVertical": "center",
334
+ },
335
+ undefined,
336
+ ],
337
+ ]
338
+ }
339
+ themeFontWeight="semi-bold"
340
+ themeIntent="body"
341
+ >
342
+ PRIMARY
343
+ </Text>
344
+ </View>
345
+ <View
346
+ pointerEvents="box-none"
347
+ position="bottom"
348
+ style={
349
+ [
350
+ {
351
+ "bottom": 0,
352
+ "elevation": 9999,
353
+ "flexDirection": "column-reverse",
354
+ "left": 0,
355
+ "paddingHorizontal": 24,
356
+ "paddingVertical": 16,
357
+ "position": "absolute",
358
+ "right": 0,
359
+ "top": 0,
360
+ },
361
+ undefined,
218
362
  ]
219
363
  }
220
- themeFontWeight="semi-bold"
221
- themeIntent="body"
222
- >
223
- PRIMARY
224
- </Text>
364
+ />
225
365
  </View>
226
366
  `;
227
367
 
228
368
  exports[`Tag renders correctly when intent is primary 2`] = `
229
369
  <View
230
370
  style={
231
- [
232
- {
233
- "backgroundColor": "#ece8ef",
234
- "borderRadius": 4,
235
- "paddingHorizontal": 8,
236
- "paddingVertical": 4,
237
- },
238
- undefined,
239
- ]
371
+ {
372
+ "flex": 1,
373
+ }
240
374
  }
241
- themeIntent="primary"
242
375
  >
243
- <Text
244
- allowFontScaling={false}
376
+ <View
245
377
  style={
246
378
  [
247
379
  {
248
- "color": "#001f23",
249
- "fontFamily": "BeVietnamPro-SemiBold",
250
- "fontSize": 12,
251
- "letterSpacing": 0.24,
252
- "lineHeight": 16,
380
+ "backgroundColor": "#ece8ef",
381
+ "borderRadius": 4,
382
+ "paddingHorizontal": 8,
383
+ "paddingVertical": 4,
253
384
  },
385
+ undefined,
386
+ ]
387
+ }
388
+ themeIntent="primary"
389
+ >
390
+ <Text
391
+ allowFontScaling={false}
392
+ style={
254
393
  [
255
394
  {
256
- "color": "#401960",
257
- "includeFontPadding": false,
258
- "textAlign": "center",
259
- "textAlignVertical": "center",
395
+ "color": "#001f23",
396
+ "fontFamily": "BeVietnamPro-SemiBold",
397
+ "fontSize": 12,
398
+ "letterSpacing": 0.24,
399
+ "lineHeight": 16,
260
400
  },
261
- undefined,
262
- ],
401
+ [
402
+ {
403
+ "color": "#401960",
404
+ "includeFontPadding": false,
405
+ "textAlign": "center",
406
+ "textAlignVertical": "center",
407
+ },
408
+ undefined,
409
+ ],
410
+ ]
411
+ }
412
+ themeFontWeight="semi-bold"
413
+ themeIntent="body"
414
+ >
415
+ PRIMARY
416
+ </Text>
417
+ </View>
418
+ <View
419
+ pointerEvents="box-none"
420
+ position="bottom"
421
+ style={
422
+ [
423
+ {
424
+ "bottom": 0,
425
+ "elevation": 9999,
426
+ "flexDirection": "column-reverse",
427
+ "left": 0,
428
+ "paddingHorizontal": 24,
429
+ "paddingVertical": 16,
430
+ "position": "absolute",
431
+ "right": 0,
432
+ "top": 0,
433
+ },
434
+ undefined,
263
435
  ]
264
436
  }
265
- themeFontWeight="semi-bold"
266
- themeIntent="body"
267
- >
268
- PRIMARY
269
- </Text>
437
+ />
270
438
  </View>
271
439
  `;
272
440
 
273
441
  exports[`Tag renders correctly when intent is success 1`] = `
274
442
  <View
275
443
  style={
276
- [
277
- {
278
- "backgroundColor": "#f0fef4",
279
- "borderRadius": 4,
280
- "paddingHorizontal": 8,
281
- "paddingVertical": 4,
282
- },
283
- undefined,
284
- ]
444
+ {
445
+ "flex": 1,
446
+ }
285
447
  }
286
- themeIntent="success"
287
448
  >
288
- <Text
289
- allowFontScaling={false}
449
+ <View
290
450
  style={
291
451
  [
292
452
  {
293
- "color": "#001f23",
294
- "fontFamily": "BeVietnamPro-SemiBold",
295
- "fontSize": 12,
296
- "letterSpacing": 0.24,
297
- "lineHeight": 16,
453
+ "backgroundColor": "#f0fef4",
454
+ "borderRadius": 4,
455
+ "paddingHorizontal": 8,
456
+ "paddingVertical": 4,
298
457
  },
458
+ undefined,
459
+ ]
460
+ }
461
+ themeIntent="success"
462
+ >
463
+ <Text
464
+ allowFontScaling={false}
465
+ style={
299
466
  [
300
467
  {
301
- "color": "#017d6d",
302
- "includeFontPadding": false,
303
- "textAlign": "center",
304
- "textAlignVertical": "center",
468
+ "color": "#001f23",
469
+ "fontFamily": "BeVietnamPro-SemiBold",
470
+ "fontSize": 12,
471
+ "letterSpacing": 0.24,
472
+ "lineHeight": 16,
305
473
  },
306
- undefined,
307
- ],
474
+ [
475
+ {
476
+ "color": "#017d6d",
477
+ "includeFontPadding": false,
478
+ "textAlign": "center",
479
+ "textAlignVertical": "center",
480
+ },
481
+ undefined,
482
+ ],
483
+ ]
484
+ }
485
+ themeFontWeight="semi-bold"
486
+ themeIntent="body"
487
+ >
488
+ SUCCESS
489
+ </Text>
490
+ </View>
491
+ <View
492
+ pointerEvents="box-none"
493
+ position="bottom"
494
+ style={
495
+ [
496
+ {
497
+ "bottom": 0,
498
+ "elevation": 9999,
499
+ "flexDirection": "column-reverse",
500
+ "left": 0,
501
+ "paddingHorizontal": 24,
502
+ "paddingVertical": 16,
503
+ "position": "absolute",
504
+ "right": 0,
505
+ "top": 0,
506
+ },
507
+ undefined,
308
508
  ]
309
509
  }
310
- themeFontWeight="semi-bold"
311
- themeIntent="body"
312
- >
313
- SUCCESS
314
- </Text>
510
+ />
315
511
  </View>
316
512
  `;
317
513
 
318
514
  exports[`Tag renders correctly when intent is warning 1`] = `
319
515
  <View
320
516
  style={
321
- [
322
- {
323
- "backgroundColor": "#fff6eb",
324
- "borderRadius": 4,
325
- "paddingHorizontal": 8,
326
- "paddingVertical": 4,
327
- },
328
- undefined,
329
- ]
517
+ {
518
+ "flex": 1,
519
+ }
330
520
  }
331
- themeIntent="warning"
332
521
  >
333
- <Text
334
- allowFontScaling={false}
522
+ <View
335
523
  style={
336
524
  [
337
525
  {
338
- "color": "#001f23",
339
- "fontFamily": "BeVietnamPro-SemiBold",
340
- "fontSize": 12,
341
- "letterSpacing": 0.24,
342
- "lineHeight": 16,
526
+ "backgroundColor": "#fff6eb",
527
+ "borderRadius": 4,
528
+ "paddingHorizontal": 8,
529
+ "paddingVertical": 4,
343
530
  },
531
+ undefined,
532
+ ]
533
+ }
534
+ themeIntent="warning"
535
+ >
536
+ <Text
537
+ allowFontScaling={false}
538
+ style={
344
539
  [
345
540
  {
346
- "color": "#ac5d00",
347
- "includeFontPadding": false,
348
- "textAlign": "center",
349
- "textAlignVertical": "center",
541
+ "color": "#001f23",
542
+ "fontFamily": "BeVietnamPro-SemiBold",
543
+ "fontSize": 12,
544
+ "letterSpacing": 0.24,
545
+ "lineHeight": 16,
350
546
  },
351
- undefined,
352
- ],
547
+ [
548
+ {
549
+ "color": "#ac5d00",
550
+ "includeFontPadding": false,
551
+ "textAlign": "center",
552
+ "textAlignVertical": "center",
553
+ },
554
+ undefined,
555
+ ],
556
+ ]
557
+ }
558
+ themeFontWeight="semi-bold"
559
+ themeIntent="body"
560
+ >
561
+ WARNING
562
+ </Text>
563
+ </View>
564
+ <View
565
+ pointerEvents="box-none"
566
+ position="bottom"
567
+ style={
568
+ [
569
+ {
570
+ "bottom": 0,
571
+ "elevation": 9999,
572
+ "flexDirection": "column-reverse",
573
+ "left": 0,
574
+ "paddingHorizontal": 24,
575
+ "paddingVertical": 16,
576
+ "position": "absolute",
577
+ "right": 0,
578
+ "top": 0,
579
+ },
580
+ undefined,
353
581
  ]
354
582
  }
355
- themeFontWeight="semi-bold"
356
- themeIntent="body"
357
- >
358
- WARNING
359
- </Text>
583
+ />
360
584
  </View>
361
585
  `;
362
586
 
363
587
  exports[`Tag renders correctly when intent is warning 2`] = `
364
588
  <View
365
589
  style={
366
- [
367
- {
368
- "backgroundColor": "#fff6eb",
369
- "borderRadius": 4,
370
- "paddingHorizontal": 8,
371
- "paddingVertical": 4,
372
- },
373
- undefined,
374
- ]
590
+ {
591
+ "flex": 1,
592
+ }
375
593
  }
376
- themeIntent="warning"
377
594
  >
378
- <Text
379
- allowFontScaling={false}
595
+ <View
380
596
  style={
381
597
  [
382
598
  {
383
- "color": "#001f23",
384
- "fontFamily": "BeVietnamPro-SemiBold",
385
- "fontSize": 12,
386
- "letterSpacing": 0.24,
387
- "lineHeight": 16,
599
+ "backgroundColor": "#fff6eb",
600
+ "borderRadius": 4,
601
+ "paddingHorizontal": 8,
602
+ "paddingVertical": 4,
388
603
  },
604
+ undefined,
605
+ ]
606
+ }
607
+ themeIntent="warning"
608
+ >
609
+ <Text
610
+ allowFontScaling={false}
611
+ style={
389
612
  [
390
613
  {
391
- "color": "#ac5d00",
392
- "includeFontPadding": false,
393
- "textAlign": "center",
394
- "textAlignVertical": "center",
614
+ "color": "#001f23",
615
+ "fontFamily": "BeVietnamPro-SemiBold",
616
+ "fontSize": 12,
617
+ "letterSpacing": 0.24,
618
+ "lineHeight": 16,
395
619
  },
396
- undefined,
397
- ],
620
+ [
621
+ {
622
+ "color": "#ac5d00",
623
+ "includeFontPadding": false,
624
+ "textAlign": "center",
625
+ "textAlignVertical": "center",
626
+ },
627
+ undefined,
628
+ ],
629
+ ]
630
+ }
631
+ themeFontWeight="semi-bold"
632
+ themeIntent="body"
633
+ >
634
+ WARNING
635
+ </Text>
636
+ </View>
637
+ <View
638
+ pointerEvents="box-none"
639
+ position="bottom"
640
+ style={
641
+ [
642
+ {
643
+ "bottom": 0,
644
+ "elevation": 9999,
645
+ "flexDirection": "column-reverse",
646
+ "left": 0,
647
+ "paddingHorizontal": 24,
648
+ "paddingVertical": 16,
649
+ "position": "absolute",
650
+ "right": 0,
651
+ "top": 0,
652
+ },
653
+ undefined,
398
654
  ]
399
655
  }
400
- themeFontWeight="semi-bold"
401
- themeIntent="body"
402
- >
403
- WARNING
404
- </Text>
656
+ />
405
657
  </View>
406
658
  `;
407
659
 
408
660
  exports[`Tag renders correctly with custom content 1`] = `
409
661
  <View
410
662
  style={
411
- [
412
- {
413
- "backgroundColor": "#ece8ef",
414
- "borderRadius": 4,
415
- "paddingHorizontal": 8,
416
- "paddingVertical": 4,
417
- },
418
- undefined,
419
- ]
663
+ {
664
+ "flex": 1,
665
+ }
420
666
  }
421
- themeIntent="primary"
422
667
  >
423
- <Text
424
- allowFontScaling={false}
668
+ <View
425
669
  style={
426
670
  [
427
671
  {
428
- "color": "#001f23",
429
- "fontFamily": "BeVietnamPro-Regular",
430
- "fontSize": 14,
431
- "letterSpacing": 0.48,
432
- "lineHeight": 22,
672
+ "backgroundColor": "#ece8ef",
673
+ "borderRadius": 4,
674
+ "paddingHorizontal": 8,
675
+ "paddingVertical": 4,
433
676
  },
434
677
  undefined,
435
678
  ]
436
679
  }
437
- themeIntent="body"
438
- themeTypeface="neutral"
439
- themeVariant="small"
680
+ themeIntent="primary"
440
681
  >
441
- Custom Content
442
- </Text>
682
+ <Text
683
+ allowFontScaling={false}
684
+ style={
685
+ [
686
+ {
687
+ "color": "#001f23",
688
+ "fontFamily": "BeVietnamPro-Regular",
689
+ "fontSize": 14,
690
+ "letterSpacing": 0.48,
691
+ "lineHeight": 22,
692
+ },
693
+ undefined,
694
+ ]
695
+ }
696
+ themeIntent="body"
697
+ themeTypeface="neutral"
698
+ themeVariant="small"
699
+ >
700
+ Custom Content
701
+ </Text>
702
+ </View>
703
+ <View
704
+ pointerEvents="box-none"
705
+ position="bottom"
706
+ style={
707
+ [
708
+ {
709
+ "bottom": 0,
710
+ "elevation": 9999,
711
+ "flexDirection": "column-reverse",
712
+ "left": 0,
713
+ "paddingHorizontal": 24,
714
+ "paddingVertical": 16,
715
+ "position": "absolute",
716
+ "right": 0,
717
+ "top": 0,
718
+ },
719
+ undefined,
720
+ ]
721
+ }
722
+ />
443
723
  </View>
444
724
  `;