@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,582 +2,1170 @@
2
2
 
3
3
  exports[`Box allows flex props 1`] = `
4
4
  <View
5
- alignContent="center"
6
- alignItems="flex-end"
7
- alignSelf="baseline"
8
- display="flex"
9
- flex={1}
10
- flexBasis={20}
11
- flexDirection="row"
12
- flexGrow={3}
13
- flexShrink={5}
14
- flexWrap="wrap"
15
- justifyContent="space-around"
16
5
  style={
17
- [
18
- {
19
- "alignContent": "center",
20
- "alignItems": "flex-end",
21
- "alignSelf": "baseline",
22
- "display": "flex",
23
- "flex": 1,
24
- "flexBasis": 20,
25
- "flexDirection": "row",
26
- "flexGrow": 3,
27
- "flexShrink": 5,
28
- "flexWrap": "wrap",
29
- "justifyContent": "space-around",
30
- },
31
- undefined,
32
- ]
6
+ {
7
+ "flex": 1,
8
+ }
33
9
  }
34
- />
10
+ >
11
+ <View
12
+ alignContent="center"
13
+ alignItems="flex-end"
14
+ alignSelf="baseline"
15
+ display="flex"
16
+ flex={1}
17
+ flexBasis={20}
18
+ flexDirection="row"
19
+ flexGrow={3}
20
+ flexShrink={5}
21
+ flexWrap="wrap"
22
+ justifyContent="space-around"
23
+ style={
24
+ [
25
+ {
26
+ "alignContent": "center",
27
+ "alignItems": "flex-end",
28
+ "alignSelf": "baseline",
29
+ "display": "flex",
30
+ "flex": 1,
31
+ "flexBasis": 20,
32
+ "flexDirection": "row",
33
+ "flexGrow": 3,
34
+ "flexShrink": 5,
35
+ "flexWrap": "wrap",
36
+ "justifyContent": "space-around",
37
+ },
38
+ undefined,
39
+ ]
40
+ }
41
+ />
42
+ <View
43
+ pointerEvents="box-none"
44
+ position="bottom"
45
+ style={
46
+ [
47
+ {
48
+ "bottom": 0,
49
+ "elevation": 9999,
50
+ "flexDirection": "column-reverse",
51
+ "left": 0,
52
+ "paddingHorizontal": 24,
53
+ "paddingVertical": 16,
54
+ "position": "absolute",
55
+ "right": 0,
56
+ "top": 0,
57
+ },
58
+ undefined,
59
+ ]
60
+ }
61
+ />
62
+ </View>
35
63
  `;
36
64
 
37
65
  exports[`Box map prop to valid property and correct color from theme 1`] = `
38
66
  <View
39
- backgroundColor="warning"
40
- borderBottomColor="warning"
41
- borderColor="warning"
42
- borderEndColor="warning"
43
- borderLeftColor="warning"
44
- borderRightColor="warning"
45
- borderStartColor="warning"
46
- borderTopColor="warning"
47
67
  style={
48
- [
49
- {
50
- "backgroundColor": "#ffbe71",
51
- "borderBottomColor": "#ffbe71",
52
- "borderColor": "#ffbe71",
53
- "borderEndColor": "#ffbe71",
54
- "borderLeftColor": "#ffbe71",
55
- "borderRightColor": "#ffbe71",
56
- "borderStartColor": "#ffbe71",
57
- "borderTopColor": "#ffbe71",
58
- },
59
- undefined,
60
- ]
68
+ {
69
+ "flex": 1,
70
+ }
61
71
  }
62
- />
72
+ >
73
+ <View
74
+ backgroundColor="warning"
75
+ borderBottomColor="warning"
76
+ borderColor="warning"
77
+ borderEndColor="warning"
78
+ borderLeftColor="warning"
79
+ borderRightColor="warning"
80
+ borderStartColor="warning"
81
+ borderTopColor="warning"
82
+ style={
83
+ [
84
+ {
85
+ "backgroundColor": "#ffbe71",
86
+ "borderBottomColor": "#ffbe71",
87
+ "borderColor": "#ffbe71",
88
+ "borderEndColor": "#ffbe71",
89
+ "borderLeftColor": "#ffbe71",
90
+ "borderRightColor": "#ffbe71",
91
+ "borderStartColor": "#ffbe71",
92
+ "borderTopColor": "#ffbe71",
93
+ },
94
+ undefined,
95
+ ]
96
+ }
97
+ />
98
+ <View
99
+ pointerEvents="box-none"
100
+ position="bottom"
101
+ style={
102
+ [
103
+ {
104
+ "bottom": 0,
105
+ "elevation": 9999,
106
+ "flexDirection": "column-reverse",
107
+ "left": 0,
108
+ "paddingHorizontal": 24,
109
+ "paddingVertical": 16,
110
+ "position": "absolute",
111
+ "right": 0,
112
+ "top": 0,
113
+ },
114
+ undefined,
115
+ ]
116
+ }
117
+ />
118
+ </View>
63
119
  `;
64
120
 
65
121
  exports[`Box map prop to valid property and correct color from theme 2`] = `
66
122
  <View
67
- backgroundColor="danger"
68
- borderBottomColor="danger"
69
- borderColor="danger"
70
- borderEndColor="danger"
71
- borderLeftColor="danger"
72
- borderRightColor="danger"
73
- borderStartColor="danger"
74
- borderTopColor="danger"
75
123
  style={
76
- [
77
- {},
78
- undefined,
79
- ]
124
+ {
125
+ "flex": 1,
126
+ }
80
127
  }
81
- />
128
+ >
129
+ <View
130
+ backgroundColor="danger"
131
+ borderBottomColor="danger"
132
+ borderColor="danger"
133
+ borderEndColor="danger"
134
+ borderLeftColor="danger"
135
+ borderRightColor="danger"
136
+ borderStartColor="danger"
137
+ borderTopColor="danger"
138
+ style={
139
+ [
140
+ {},
141
+ undefined,
142
+ ]
143
+ }
144
+ />
145
+ <View
146
+ pointerEvents="box-none"
147
+ position="bottom"
148
+ style={
149
+ [
150
+ {
151
+ "bottom": 0,
152
+ "elevation": 9999,
153
+ "flexDirection": "column-reverse",
154
+ "left": 0,
155
+ "paddingHorizontal": 24,
156
+ "paddingVertical": 16,
157
+ "position": "absolute",
158
+ "right": 0,
159
+ "top": 0,
160
+ },
161
+ undefined,
162
+ ]
163
+ }
164
+ />
165
+ </View>
82
166
  `;
83
167
 
84
168
  exports[`Box map prop to valid property and correct color from theme 3`] = `
85
169
  <View
86
- backgroundColor="success"
87
- borderBottomColor="success"
88
- borderColor="success"
89
- borderEndColor="success"
90
- borderLeftColor="success"
91
- borderRightColor="success"
92
- borderStartColor="success"
93
- borderTopColor="success"
94
170
  style={
95
- [
96
- {
97
- "backgroundColor": "#5ace7d",
98
- "borderBottomColor": "#5ace7d",
99
- "borderColor": "#5ace7d",
100
- "borderEndColor": "#5ace7d",
101
- "borderLeftColor": "#5ace7d",
102
- "borderRightColor": "#5ace7d",
103
- "borderStartColor": "#5ace7d",
104
- "borderTopColor": "#5ace7d",
105
- },
106
- undefined,
107
- ]
171
+ {
172
+ "flex": 1,
173
+ }
108
174
  }
109
- />
175
+ >
176
+ <View
177
+ backgroundColor="success"
178
+ borderBottomColor="success"
179
+ borderColor="success"
180
+ borderEndColor="success"
181
+ borderLeftColor="success"
182
+ borderRightColor="success"
183
+ borderStartColor="success"
184
+ borderTopColor="success"
185
+ style={
186
+ [
187
+ {
188
+ "backgroundColor": "#5ace7d",
189
+ "borderBottomColor": "#5ace7d",
190
+ "borderColor": "#5ace7d",
191
+ "borderEndColor": "#5ace7d",
192
+ "borderLeftColor": "#5ace7d",
193
+ "borderRightColor": "#5ace7d",
194
+ "borderStartColor": "#5ace7d",
195
+ "borderTopColor": "#5ace7d",
196
+ },
197
+ undefined,
198
+ ]
199
+ }
200
+ />
201
+ <View
202
+ pointerEvents="box-none"
203
+ position="bottom"
204
+ style={
205
+ [
206
+ {
207
+ "bottom": 0,
208
+ "elevation": 9999,
209
+ "flexDirection": "column-reverse",
210
+ "left": 0,
211
+ "paddingHorizontal": 24,
212
+ "paddingVertical": 16,
213
+ "position": "absolute",
214
+ "right": 0,
215
+ "top": 0,
216
+ },
217
+ undefined,
218
+ ]
219
+ }
220
+ />
221
+ </View>
110
222
  `;
111
223
 
112
224
  exports[`Box map prop to valid property and correct color from theme 4`] = `
113
225
  <View
114
- backgroundColor="backgroundDark"
115
- borderBottomColor="backgroundDark"
116
- borderColor="backgroundDark"
117
- borderEndColor="backgroundDark"
118
- borderLeftColor="backgroundDark"
119
- borderRightColor="backgroundDark"
120
- borderStartColor="backgroundDark"
121
- borderTopColor="backgroundDark"
122
226
  style={
123
- [
124
- {},
125
- undefined,
126
- ]
227
+ {
228
+ "flex": 1,
229
+ }
127
230
  }
128
- />
231
+ >
232
+ <View
233
+ backgroundColor="backgroundDark"
234
+ borderBottomColor="backgroundDark"
235
+ borderColor="backgroundDark"
236
+ borderEndColor="backgroundDark"
237
+ borderLeftColor="backgroundDark"
238
+ borderRightColor="backgroundDark"
239
+ borderStartColor="backgroundDark"
240
+ borderTopColor="backgroundDark"
241
+ style={
242
+ [
243
+ {},
244
+ undefined,
245
+ ]
246
+ }
247
+ />
248
+ <View
249
+ pointerEvents="box-none"
250
+ position="bottom"
251
+ style={
252
+ [
253
+ {
254
+ "bottom": 0,
255
+ "elevation": 9999,
256
+ "flexDirection": "column-reverse",
257
+ "left": 0,
258
+ "paddingHorizontal": 24,
259
+ "paddingVertical": 16,
260
+ "position": "absolute",
261
+ "right": 0,
262
+ "top": 0,
263
+ },
264
+ undefined,
265
+ ]
266
+ }
267
+ />
268
+ </View>
129
269
  `;
130
270
 
131
271
  exports[`Box map prop to valid property and correct radius from theme 1`] = `
132
272
  <View
133
- borderBottomEndRadius="base"
134
- borderBottomLeftRadius="base"
135
- borderBottomRightRadius="base"
136
- borderBottomStartRadius="base"
137
- borderRadius="base"
138
- borderTopEndRadius="base"
139
- borderTopLeftRadius="base"
140
- borderTopRightRadius="base"
141
- borderTopStartRadius="base"
142
273
  style={
143
- [
144
- {
145
- "borderBottomEndRadius": 4,
146
- "borderBottomLeftRadius": 4,
147
- "borderBottomRightRadius": 4,
148
- "borderBottomStartRadius": 4,
149
- "borderRadius": 4,
150
- "borderTopEndRadius": 4,
151
- "borderTopLeftRadius": 4,
152
- "borderTopRightRadius": 4,
153
- "borderTopStartRadius": 4,
154
- },
155
- undefined,
156
- ]
274
+ {
275
+ "flex": 1,
276
+ }
157
277
  }
158
- />
278
+ >
279
+ <View
280
+ borderBottomEndRadius="base"
281
+ borderBottomLeftRadius="base"
282
+ borderBottomRightRadius="base"
283
+ borderBottomStartRadius="base"
284
+ borderRadius="base"
285
+ borderTopEndRadius="base"
286
+ borderTopLeftRadius="base"
287
+ borderTopRightRadius="base"
288
+ borderTopStartRadius="base"
289
+ style={
290
+ [
291
+ {
292
+ "borderBottomEndRadius": 4,
293
+ "borderBottomLeftRadius": 4,
294
+ "borderBottomRightRadius": 4,
295
+ "borderBottomStartRadius": 4,
296
+ "borderRadius": 4,
297
+ "borderTopEndRadius": 4,
298
+ "borderTopLeftRadius": 4,
299
+ "borderTopRightRadius": 4,
300
+ "borderTopStartRadius": 4,
301
+ },
302
+ undefined,
303
+ ]
304
+ }
305
+ />
306
+ <View
307
+ pointerEvents="box-none"
308
+ position="bottom"
309
+ style={
310
+ [
311
+ {
312
+ "bottom": 0,
313
+ "elevation": 9999,
314
+ "flexDirection": "column-reverse",
315
+ "left": 0,
316
+ "paddingHorizontal": 24,
317
+ "paddingVertical": 16,
318
+ "position": "absolute",
319
+ "right": 0,
320
+ "top": 0,
321
+ },
322
+ undefined,
323
+ ]
324
+ }
325
+ />
326
+ </View>
159
327
  `;
160
328
 
161
329
  exports[`Box map prop to valid property and correct radius from theme 2`] = `
162
330
  <View
163
- borderBottomEndRadius="large"
164
- borderBottomLeftRadius="large"
165
- borderBottomRightRadius="large"
166
- borderBottomStartRadius="large"
167
- borderRadius="large"
168
- borderTopEndRadius="large"
169
- borderTopLeftRadius="large"
170
- borderTopRightRadius="large"
171
- borderTopStartRadius="large"
172
331
  style={
173
- [
174
- {
175
- "borderBottomEndRadius": 12,
176
- "borderBottomLeftRadius": 12,
177
- "borderBottomRightRadius": 12,
178
- "borderBottomStartRadius": 12,
179
- "borderRadius": 12,
180
- "borderTopEndRadius": 12,
181
- "borderTopLeftRadius": 12,
182
- "borderTopRightRadius": 12,
183
- "borderTopStartRadius": 12,
184
- },
185
- undefined,
186
- ]
332
+ {
333
+ "flex": 1,
334
+ }
187
335
  }
188
- />
336
+ >
337
+ <View
338
+ borderBottomEndRadius="large"
339
+ borderBottomLeftRadius="large"
340
+ borderBottomRightRadius="large"
341
+ borderBottomStartRadius="large"
342
+ borderRadius="large"
343
+ borderTopEndRadius="large"
344
+ borderTopLeftRadius="large"
345
+ borderTopRightRadius="large"
346
+ borderTopStartRadius="large"
347
+ style={
348
+ [
349
+ {
350
+ "borderBottomEndRadius": 12,
351
+ "borderBottomLeftRadius": 12,
352
+ "borderBottomRightRadius": 12,
353
+ "borderBottomStartRadius": 12,
354
+ "borderRadius": 12,
355
+ "borderTopEndRadius": 12,
356
+ "borderTopLeftRadius": 12,
357
+ "borderTopRightRadius": 12,
358
+ "borderTopStartRadius": 12,
359
+ },
360
+ undefined,
361
+ ]
362
+ }
363
+ />
364
+ <View
365
+ pointerEvents="box-none"
366
+ position="bottom"
367
+ style={
368
+ [
369
+ {
370
+ "bottom": 0,
371
+ "elevation": 9999,
372
+ "flexDirection": "column-reverse",
373
+ "left": 0,
374
+ "paddingHorizontal": 24,
375
+ "paddingVertical": 16,
376
+ "position": "absolute",
377
+ "right": 0,
378
+ "top": 0,
379
+ },
380
+ undefined,
381
+ ]
382
+ }
383
+ />
384
+ </View>
189
385
  `;
190
386
 
191
387
  exports[`Box map prop to valid property and correct radius from theme 3`] = `
192
388
  <View
193
- borderBottomEndRadius="medium"
194
- borderBottomLeftRadius="medium"
195
- borderBottomRightRadius="medium"
196
- borderBottomStartRadius="medium"
197
- borderRadius="medium"
198
- borderTopEndRadius="medium"
199
- borderTopLeftRadius="medium"
200
- borderTopRightRadius="medium"
201
- borderTopStartRadius="medium"
202
389
  style={
203
- [
204
- {
205
- "borderBottomEndRadius": 8,
206
- "borderBottomLeftRadius": 8,
207
- "borderBottomRightRadius": 8,
208
- "borderBottomStartRadius": 8,
209
- "borderRadius": 8,
210
- "borderTopEndRadius": 8,
211
- "borderTopLeftRadius": 8,
212
- "borderTopRightRadius": 8,
213
- "borderTopStartRadius": 8,
214
- },
215
- undefined,
216
- ]
390
+ {
391
+ "flex": 1,
392
+ }
217
393
  }
218
- />
394
+ >
395
+ <View
396
+ borderBottomEndRadius="medium"
397
+ borderBottomLeftRadius="medium"
398
+ borderBottomRightRadius="medium"
399
+ borderBottomStartRadius="medium"
400
+ borderRadius="medium"
401
+ borderTopEndRadius="medium"
402
+ borderTopLeftRadius="medium"
403
+ borderTopRightRadius="medium"
404
+ borderTopStartRadius="medium"
405
+ style={
406
+ [
407
+ {
408
+ "borderBottomEndRadius": 8,
409
+ "borderBottomLeftRadius": 8,
410
+ "borderBottomRightRadius": 8,
411
+ "borderBottomStartRadius": 8,
412
+ "borderRadius": 8,
413
+ "borderTopEndRadius": 8,
414
+ "borderTopLeftRadius": 8,
415
+ "borderTopRightRadius": 8,
416
+ "borderTopStartRadius": 8,
417
+ },
418
+ undefined,
419
+ ]
420
+ }
421
+ />
422
+ <View
423
+ pointerEvents="box-none"
424
+ position="bottom"
425
+ style={
426
+ [
427
+ {
428
+ "bottom": 0,
429
+ "elevation": 9999,
430
+ "flexDirection": "column-reverse",
431
+ "left": 0,
432
+ "paddingHorizontal": 24,
433
+ "paddingVertical": 16,
434
+ "position": "absolute",
435
+ "right": 0,
436
+ "top": 0,
437
+ },
438
+ undefined,
439
+ ]
440
+ }
441
+ />
442
+ </View>
219
443
  `;
220
444
 
221
445
  exports[`Box map prop to valid property and correct radius from theme 4`] = `
222
446
  <View
223
- borderBottomEndRadius="xlarge"
224
- borderBottomLeftRadius="xlarge"
225
- borderBottomRightRadius="xlarge"
226
- borderBottomStartRadius="xlarge"
227
- borderRadius="xlarge"
228
- borderTopEndRadius="xlarge"
229
- borderTopLeftRadius="xlarge"
230
- borderTopRightRadius="xlarge"
231
- borderTopStartRadius="xlarge"
232
447
  style={
233
- [
234
- {
235
- "borderBottomEndRadius": 16,
236
- "borderBottomLeftRadius": 16,
237
- "borderBottomRightRadius": 16,
238
- "borderBottomStartRadius": 16,
239
- "borderRadius": 16,
240
- "borderTopEndRadius": 16,
241
- "borderTopLeftRadius": 16,
242
- "borderTopRightRadius": 16,
243
- "borderTopStartRadius": 16,
244
- },
245
- undefined,
246
- ]
448
+ {
449
+ "flex": 1,
450
+ }
247
451
  }
248
- />
452
+ >
453
+ <View
454
+ borderBottomEndRadius="xlarge"
455
+ borderBottomLeftRadius="xlarge"
456
+ borderBottomRightRadius="xlarge"
457
+ borderBottomStartRadius="xlarge"
458
+ borderRadius="xlarge"
459
+ borderTopEndRadius="xlarge"
460
+ borderTopLeftRadius="xlarge"
461
+ borderTopRightRadius="xlarge"
462
+ borderTopStartRadius="xlarge"
463
+ style={
464
+ [
465
+ {
466
+ "borderBottomEndRadius": 16,
467
+ "borderBottomLeftRadius": 16,
468
+ "borderBottomRightRadius": 16,
469
+ "borderBottomStartRadius": 16,
470
+ "borderRadius": 16,
471
+ "borderTopEndRadius": 16,
472
+ "borderTopLeftRadius": 16,
473
+ "borderTopRightRadius": 16,
474
+ "borderTopStartRadius": 16,
475
+ },
476
+ undefined,
477
+ ]
478
+ }
479
+ />
480
+ <View
481
+ pointerEvents="box-none"
482
+ position="bottom"
483
+ style={
484
+ [
485
+ {
486
+ "bottom": 0,
487
+ "elevation": 9999,
488
+ "flexDirection": "column-reverse",
489
+ "left": 0,
490
+ "paddingHorizontal": 24,
491
+ "paddingVertical": 16,
492
+ "position": "absolute",
493
+ "right": 0,
494
+ "top": 0,
495
+ },
496
+ undefined,
497
+ ]
498
+ }
499
+ />
500
+ </View>
249
501
  `;
250
502
 
251
503
  exports[`Box map prop to valid property and correct radius from theme 5`] = `
252
504
  <View
253
- borderBottomEndRadius="rounded"
254
- borderBottomLeftRadius="rounded"
255
- borderBottomRightRadius="rounded"
256
- borderBottomStartRadius="rounded"
257
- borderRadius="rounded"
258
- borderTopEndRadius="rounded"
259
- borderTopLeftRadius="rounded"
260
- borderTopRightRadius="rounded"
261
- borderTopStartRadius="rounded"
262
505
  style={
263
- [
264
- {
265
- "borderBottomEndRadius": 999,
266
- "borderBottomLeftRadius": 999,
267
- "borderBottomRightRadius": 999,
268
- "borderBottomStartRadius": 999,
269
- "borderRadius": 999,
270
- "borderTopEndRadius": 999,
271
- "borderTopLeftRadius": 999,
272
- "borderTopRightRadius": 999,
273
- "borderTopStartRadius": 999,
274
- },
275
- undefined,
276
- ]
506
+ {
507
+ "flex": 1,
508
+ }
277
509
  }
278
- />
510
+ >
511
+ <View
512
+ borderBottomEndRadius="rounded"
513
+ borderBottomLeftRadius="rounded"
514
+ borderBottomRightRadius="rounded"
515
+ borderBottomStartRadius="rounded"
516
+ borderRadius="rounded"
517
+ borderTopEndRadius="rounded"
518
+ borderTopLeftRadius="rounded"
519
+ borderTopRightRadius="rounded"
520
+ borderTopStartRadius="rounded"
521
+ style={
522
+ [
523
+ {
524
+ "borderBottomEndRadius": 999,
525
+ "borderBottomLeftRadius": 999,
526
+ "borderBottomRightRadius": 999,
527
+ "borderBottomStartRadius": 999,
528
+ "borderRadius": 999,
529
+ "borderTopEndRadius": 999,
530
+ "borderTopLeftRadius": 999,
531
+ "borderTopRightRadius": 999,
532
+ "borderTopStartRadius": 999,
533
+ },
534
+ undefined,
535
+ ]
536
+ }
537
+ />
538
+ <View
539
+ pointerEvents="box-none"
540
+ position="bottom"
541
+ style={
542
+ [
543
+ {
544
+ "bottom": 0,
545
+ "elevation": 9999,
546
+ "flexDirection": "column-reverse",
547
+ "left": 0,
548
+ "paddingHorizontal": 24,
549
+ "paddingVertical": 16,
550
+ "position": "absolute",
551
+ "right": 0,
552
+ "top": 0,
553
+ },
554
+ undefined,
555
+ ]
556
+ }
557
+ />
558
+ </View>
279
559
  `;
280
560
 
281
561
  exports[`Box map prop to valid property and correct space from theme 1`] = `
282
562
  <View
283
- margin="large"
284
- marginBottom="large"
285
- marginEnd="large"
286
- marginHorizontal="large"
287
- marginLeft="large"
288
- marginRight="large"
289
- marginStart="large"
290
- marginTop="large"
291
- marginVertical="large"
292
- padding="large"
293
- paddingBottom="large"
294
- paddingEnd="large"
295
- paddingHorizontal="large"
296
- paddingLeft="large"
297
- paddingRight="large"
298
- paddingStart="large"
299
- paddingTop="large"
300
- paddingVertical="large"
301
563
  style={
302
- [
303
- {
304
- "margin": 24,
305
- "marginBottom": 24,
306
- "marginEnd": 24,
307
- "marginHorizontal": 24,
308
- "marginLeft": 24,
309
- "marginRight": 24,
310
- "marginStart": 24,
311
- "marginTop": 24,
312
- "marginVertical": 24,
313
- "padding": 24,
314
- "paddingBottom": 24,
315
- "paddingEnd": 24,
316
- "paddingHorizontal": 24,
317
- "paddingLeft": 24,
318
- "paddingRight": 24,
319
- "paddingStart": 24,
320
- "paddingTop": 24,
321
- "paddingVertical": 24,
322
- },
323
- undefined,
324
- ]
564
+ {
565
+ "flex": 1,
566
+ }
325
567
  }
326
- />
568
+ >
569
+ <View
570
+ margin="large"
571
+ marginBottom="large"
572
+ marginEnd="large"
573
+ marginHorizontal="large"
574
+ marginLeft="large"
575
+ marginRight="large"
576
+ marginStart="large"
577
+ marginTop="large"
578
+ marginVertical="large"
579
+ padding="large"
580
+ paddingBottom="large"
581
+ paddingEnd="large"
582
+ paddingHorizontal="large"
583
+ paddingLeft="large"
584
+ paddingRight="large"
585
+ paddingStart="large"
586
+ paddingTop="large"
587
+ paddingVertical="large"
588
+ style={
589
+ [
590
+ {
591
+ "margin": 24,
592
+ "marginBottom": 24,
593
+ "marginEnd": 24,
594
+ "marginHorizontal": 24,
595
+ "marginLeft": 24,
596
+ "marginRight": 24,
597
+ "marginStart": 24,
598
+ "marginTop": 24,
599
+ "marginVertical": 24,
600
+ "padding": 24,
601
+ "paddingBottom": 24,
602
+ "paddingEnd": 24,
603
+ "paddingHorizontal": 24,
604
+ "paddingLeft": 24,
605
+ "paddingRight": 24,
606
+ "paddingStart": 24,
607
+ "paddingTop": 24,
608
+ "paddingVertical": 24,
609
+ },
610
+ undefined,
611
+ ]
612
+ }
613
+ />
614
+ <View
615
+ pointerEvents="box-none"
616
+ position="bottom"
617
+ style={
618
+ [
619
+ {
620
+ "bottom": 0,
621
+ "elevation": 9999,
622
+ "flexDirection": "column-reverse",
623
+ "left": 0,
624
+ "paddingHorizontal": 24,
625
+ "paddingVertical": 16,
626
+ "position": "absolute",
627
+ "right": 0,
628
+ "top": 0,
629
+ },
630
+ undefined,
631
+ ]
632
+ }
633
+ />
634
+ </View>
327
635
  `;
328
636
 
329
637
  exports[`Box map prop to valid property and correct space from theme 2`] = `
330
638
  <View
331
- margin="medium"
332
- marginBottom="medium"
333
- marginEnd="medium"
334
- marginHorizontal="medium"
335
- marginLeft="medium"
336
- marginRight="medium"
337
- marginStart="medium"
338
- marginTop="medium"
339
- marginVertical="medium"
340
- padding="medium"
341
- paddingBottom="medium"
342
- paddingEnd="medium"
343
- paddingHorizontal="medium"
344
- paddingLeft="medium"
345
- paddingRight="medium"
346
- paddingStart="medium"
347
- paddingTop="medium"
348
- paddingVertical="medium"
349
639
  style={
350
- [
351
- {
352
- "margin": 16,
353
- "marginBottom": 16,
354
- "marginEnd": 16,
355
- "marginHorizontal": 16,
356
- "marginLeft": 16,
357
- "marginRight": 16,
358
- "marginStart": 16,
359
- "marginTop": 16,
360
- "marginVertical": 16,
361
- "padding": 16,
362
- "paddingBottom": 16,
363
- "paddingEnd": 16,
364
- "paddingHorizontal": 16,
365
- "paddingLeft": 16,
366
- "paddingRight": 16,
367
- "paddingStart": 16,
368
- "paddingTop": 16,
369
- "paddingVertical": 16,
370
- },
371
- undefined,
372
- ]
640
+ {
641
+ "flex": 1,
642
+ }
373
643
  }
374
- />
644
+ >
645
+ <View
646
+ margin="medium"
647
+ marginBottom="medium"
648
+ marginEnd="medium"
649
+ marginHorizontal="medium"
650
+ marginLeft="medium"
651
+ marginRight="medium"
652
+ marginStart="medium"
653
+ marginTop="medium"
654
+ marginVertical="medium"
655
+ padding="medium"
656
+ paddingBottom="medium"
657
+ paddingEnd="medium"
658
+ paddingHorizontal="medium"
659
+ paddingLeft="medium"
660
+ paddingRight="medium"
661
+ paddingStart="medium"
662
+ paddingTop="medium"
663
+ paddingVertical="medium"
664
+ style={
665
+ [
666
+ {
667
+ "margin": 16,
668
+ "marginBottom": 16,
669
+ "marginEnd": 16,
670
+ "marginHorizontal": 16,
671
+ "marginLeft": 16,
672
+ "marginRight": 16,
673
+ "marginStart": 16,
674
+ "marginTop": 16,
675
+ "marginVertical": 16,
676
+ "padding": 16,
677
+ "paddingBottom": 16,
678
+ "paddingEnd": 16,
679
+ "paddingHorizontal": 16,
680
+ "paddingLeft": 16,
681
+ "paddingRight": 16,
682
+ "paddingStart": 16,
683
+ "paddingTop": 16,
684
+ "paddingVertical": 16,
685
+ },
686
+ undefined,
687
+ ]
688
+ }
689
+ />
690
+ <View
691
+ pointerEvents="box-none"
692
+ position="bottom"
693
+ style={
694
+ [
695
+ {
696
+ "bottom": 0,
697
+ "elevation": 9999,
698
+ "flexDirection": "column-reverse",
699
+ "left": 0,
700
+ "paddingHorizontal": 24,
701
+ "paddingVertical": 16,
702
+ "position": "absolute",
703
+ "right": 0,
704
+ "top": 0,
705
+ },
706
+ undefined,
707
+ ]
708
+ }
709
+ />
710
+ </View>
375
711
  `;
376
712
 
377
713
  exports[`Box map prop to valid property and correct space from theme 3`] = `
378
714
  <View
379
- margin="small"
380
- marginBottom="small"
381
- marginEnd="small"
382
- marginHorizontal="small"
383
- marginLeft="small"
384
- marginRight="small"
385
- marginStart="small"
386
- marginTop="small"
387
- marginVertical="small"
388
- padding="small"
389
- paddingBottom="small"
390
- paddingEnd="small"
391
- paddingHorizontal="small"
392
- paddingLeft="small"
393
- paddingRight="small"
394
- paddingStart="small"
395
- paddingTop="small"
396
- paddingVertical="small"
397
715
  style={
398
- [
399
- {
400
- "margin": 8,
401
- "marginBottom": 8,
402
- "marginEnd": 8,
403
- "marginHorizontal": 8,
404
- "marginLeft": 8,
405
- "marginRight": 8,
406
- "marginStart": 8,
407
- "marginTop": 8,
408
- "marginVertical": 8,
409
- "padding": 8,
410
- "paddingBottom": 8,
411
- "paddingEnd": 8,
412
- "paddingHorizontal": 8,
413
- "paddingLeft": 8,
414
- "paddingRight": 8,
415
- "paddingStart": 8,
416
- "paddingTop": 8,
417
- "paddingVertical": 8,
418
- },
419
- undefined,
420
- ]
716
+ {
717
+ "flex": 1,
718
+ }
421
719
  }
422
- />
720
+ >
721
+ <View
722
+ margin="small"
723
+ marginBottom="small"
724
+ marginEnd="small"
725
+ marginHorizontal="small"
726
+ marginLeft="small"
727
+ marginRight="small"
728
+ marginStart="small"
729
+ marginTop="small"
730
+ marginVertical="small"
731
+ padding="small"
732
+ paddingBottom="small"
733
+ paddingEnd="small"
734
+ paddingHorizontal="small"
735
+ paddingLeft="small"
736
+ paddingRight="small"
737
+ paddingStart="small"
738
+ paddingTop="small"
739
+ paddingVertical="small"
740
+ style={
741
+ [
742
+ {
743
+ "margin": 8,
744
+ "marginBottom": 8,
745
+ "marginEnd": 8,
746
+ "marginHorizontal": 8,
747
+ "marginLeft": 8,
748
+ "marginRight": 8,
749
+ "marginStart": 8,
750
+ "marginTop": 8,
751
+ "marginVertical": 8,
752
+ "padding": 8,
753
+ "paddingBottom": 8,
754
+ "paddingEnd": 8,
755
+ "paddingHorizontal": 8,
756
+ "paddingLeft": 8,
757
+ "paddingRight": 8,
758
+ "paddingStart": 8,
759
+ "paddingTop": 8,
760
+ "paddingVertical": 8,
761
+ },
762
+ undefined,
763
+ ]
764
+ }
765
+ />
766
+ <View
767
+ pointerEvents="box-none"
768
+ position="bottom"
769
+ style={
770
+ [
771
+ {
772
+ "bottom": 0,
773
+ "elevation": 9999,
774
+ "flexDirection": "column-reverse",
775
+ "left": 0,
776
+ "paddingHorizontal": 24,
777
+ "paddingVertical": 16,
778
+ "position": "absolute",
779
+ "right": 0,
780
+ "top": 0,
781
+ },
782
+ undefined,
783
+ ]
784
+ }
785
+ />
786
+ </View>
423
787
  `;
424
788
 
425
789
  exports[`Box map prop to valid property and correct space from theme 4`] = `
426
790
  <View
427
- margin="xlarge"
428
- marginBottom="xlarge"
429
- marginEnd="xlarge"
430
- marginHorizontal="xlarge"
431
- marginLeft="xlarge"
432
- marginRight="xlarge"
433
- marginStart="xlarge"
434
- marginTop="xlarge"
435
- marginVertical="xlarge"
436
- padding="xlarge"
437
- paddingBottom="xlarge"
438
- paddingEnd="xlarge"
439
- paddingHorizontal="xlarge"
440
- paddingLeft="xlarge"
441
- paddingRight="xlarge"
442
- paddingStart="xlarge"
443
- paddingTop="xlarge"
444
- paddingVertical="xlarge"
445
791
  style={
446
- [
447
- {
448
- "margin": 32,
449
- "marginBottom": 32,
450
- "marginEnd": 32,
451
- "marginHorizontal": 32,
452
- "marginLeft": 32,
453
- "marginRight": 32,
454
- "marginStart": 32,
455
- "marginTop": 32,
456
- "marginVertical": 32,
457
- "padding": 32,
458
- "paddingBottom": 32,
459
- "paddingEnd": 32,
460
- "paddingHorizontal": 32,
461
- "paddingLeft": 32,
462
- "paddingRight": 32,
463
- "paddingStart": 32,
464
- "paddingTop": 32,
465
- "paddingVertical": 32,
466
- },
467
- undefined,
468
- ]
792
+ {
793
+ "flex": 1,
794
+ }
469
795
  }
470
- />
796
+ >
797
+ <View
798
+ margin="xlarge"
799
+ marginBottom="xlarge"
800
+ marginEnd="xlarge"
801
+ marginHorizontal="xlarge"
802
+ marginLeft="xlarge"
803
+ marginRight="xlarge"
804
+ marginStart="xlarge"
805
+ marginTop="xlarge"
806
+ marginVertical="xlarge"
807
+ padding="xlarge"
808
+ paddingBottom="xlarge"
809
+ paddingEnd="xlarge"
810
+ paddingHorizontal="xlarge"
811
+ paddingLeft="xlarge"
812
+ paddingRight="xlarge"
813
+ paddingStart="xlarge"
814
+ paddingTop="xlarge"
815
+ paddingVertical="xlarge"
816
+ style={
817
+ [
818
+ {
819
+ "margin": 32,
820
+ "marginBottom": 32,
821
+ "marginEnd": 32,
822
+ "marginHorizontal": 32,
823
+ "marginLeft": 32,
824
+ "marginRight": 32,
825
+ "marginStart": 32,
826
+ "marginTop": 32,
827
+ "marginVertical": 32,
828
+ "padding": 32,
829
+ "paddingBottom": 32,
830
+ "paddingEnd": 32,
831
+ "paddingHorizontal": 32,
832
+ "paddingLeft": 32,
833
+ "paddingRight": 32,
834
+ "paddingStart": 32,
835
+ "paddingTop": 32,
836
+ "paddingVertical": 32,
837
+ },
838
+ undefined,
839
+ ]
840
+ }
841
+ />
842
+ <View
843
+ pointerEvents="box-none"
844
+ position="bottom"
845
+ style={
846
+ [
847
+ {
848
+ "bottom": 0,
849
+ "elevation": 9999,
850
+ "flexDirection": "column-reverse",
851
+ "left": 0,
852
+ "paddingHorizontal": 24,
853
+ "paddingVertical": 16,
854
+ "position": "absolute",
855
+ "right": 0,
856
+ "top": 0,
857
+ },
858
+ undefined,
859
+ ]
860
+ }
861
+ />
862
+ </View>
471
863
  `;
472
864
 
473
865
  exports[`Box map prop to valid property and correctborderWidth from theme 1`] = `
474
866
  <View
475
- borderBottomWidth="base"
476
- borderLeftWidth="base"
477
- borderRightWidth="base"
478
- borderTopWidth="base"
479
- borderWidth="base"
480
867
  style={
481
- [
482
- {
483
- "borderBottomWidth": 1,
484
- "borderLeftWidth": 1,
485
- "borderRightWidth": 1,
486
- "borderTopWidth": 1,
487
- "borderWidth": 1,
488
- },
489
- undefined,
490
- ]
868
+ {
869
+ "flex": 1,
870
+ }
491
871
  }
492
- />
872
+ >
873
+ <View
874
+ borderBottomWidth="base"
875
+ borderLeftWidth="base"
876
+ borderRightWidth="base"
877
+ borderTopWidth="base"
878
+ borderWidth="base"
879
+ style={
880
+ [
881
+ {
882
+ "borderBottomWidth": 1,
883
+ "borderLeftWidth": 1,
884
+ "borderRightWidth": 1,
885
+ "borderTopWidth": 1,
886
+ "borderWidth": 1,
887
+ },
888
+ undefined,
889
+ ]
890
+ }
891
+ />
892
+ <View
893
+ pointerEvents="box-none"
894
+ position="bottom"
895
+ style={
896
+ [
897
+ {
898
+ "bottom": 0,
899
+ "elevation": 9999,
900
+ "flexDirection": "column-reverse",
901
+ "left": 0,
902
+ "paddingHorizontal": 24,
903
+ "paddingVertical": 16,
904
+ "position": "absolute",
905
+ "right": 0,
906
+ "top": 0,
907
+ },
908
+ undefined,
909
+ ]
910
+ }
911
+ />
912
+ </View>
493
913
  `;
494
914
 
495
915
  exports[`Box map prop to valid property and correctborderWidth from theme 2`] = `
496
916
  <View
497
- borderBottomWidth="medium"
498
- borderLeftWidth="medium"
499
- borderRightWidth="medium"
500
- borderTopWidth="medium"
501
- borderWidth="medium"
502
917
  style={
503
- [
504
- {
505
- "borderBottomWidth": 2,
506
- "borderLeftWidth": 2,
507
- "borderRightWidth": 2,
508
- "borderTopWidth": 2,
509
- "borderWidth": 2,
510
- },
511
- undefined,
512
- ]
918
+ {
919
+ "flex": 1,
920
+ }
513
921
  }
514
- />
922
+ >
923
+ <View
924
+ borderBottomWidth="medium"
925
+ borderLeftWidth="medium"
926
+ borderRightWidth="medium"
927
+ borderTopWidth="medium"
928
+ borderWidth="medium"
929
+ style={
930
+ [
931
+ {
932
+ "borderBottomWidth": 2,
933
+ "borderLeftWidth": 2,
934
+ "borderRightWidth": 2,
935
+ "borderTopWidth": 2,
936
+ "borderWidth": 2,
937
+ },
938
+ undefined,
939
+ ]
940
+ }
941
+ />
942
+ <View
943
+ pointerEvents="box-none"
944
+ position="bottom"
945
+ style={
946
+ [
947
+ {
948
+ "bottom": 0,
949
+ "elevation": 9999,
950
+ "flexDirection": "column-reverse",
951
+ "left": 0,
952
+ "paddingHorizontal": 24,
953
+ "paddingVertical": 16,
954
+ "position": "absolute",
955
+ "right": 0,
956
+ "top": 0,
957
+ },
958
+ undefined,
959
+ ]
960
+ }
961
+ />
962
+ </View>
515
963
  `;
516
964
 
517
965
  exports[`Box map prop with shortcut name to valid property and correct color from theme 1`] = `
518
966
  <View
519
- bgColor="warning"
520
967
  style={
521
- [
522
- {
523
- "backgroundColor": "#ffbe71",
524
- },
525
- undefined,
526
- ]
968
+ {
969
+ "flex": 1,
970
+ }
527
971
  }
528
- />
972
+ >
973
+ <View
974
+ bgColor="warning"
975
+ style={
976
+ [
977
+ {
978
+ "backgroundColor": "#ffbe71",
979
+ },
980
+ undefined,
981
+ ]
982
+ }
983
+ />
984
+ <View
985
+ pointerEvents="box-none"
986
+ position="bottom"
987
+ style={
988
+ [
989
+ {
990
+ "bottom": 0,
991
+ "elevation": 9999,
992
+ "flexDirection": "column-reverse",
993
+ "left": 0,
994
+ "paddingHorizontal": 24,
995
+ "paddingVertical": 16,
996
+ "position": "absolute",
997
+ "right": 0,
998
+ "top": 0,
999
+ },
1000
+ undefined,
1001
+ ]
1002
+ }
1003
+ />
1004
+ </View>
529
1005
  `;
530
1006
 
531
1007
  exports[`Box map prop with shortcut name to valid property and correct color from theme 2`] = `
532
1008
  <View
533
- bgColor="danger"
534
1009
  style={
535
- [
536
- {},
537
- undefined,
538
- ]
1010
+ {
1011
+ "flex": 1,
1012
+ }
539
1013
  }
540
- />
1014
+ >
1015
+ <View
1016
+ bgColor="danger"
1017
+ style={
1018
+ [
1019
+ {},
1020
+ undefined,
1021
+ ]
1022
+ }
1023
+ />
1024
+ <View
1025
+ pointerEvents="box-none"
1026
+ position="bottom"
1027
+ style={
1028
+ [
1029
+ {
1030
+ "bottom": 0,
1031
+ "elevation": 9999,
1032
+ "flexDirection": "column-reverse",
1033
+ "left": 0,
1034
+ "paddingHorizontal": 24,
1035
+ "paddingVertical": 16,
1036
+ "position": "absolute",
1037
+ "right": 0,
1038
+ "top": 0,
1039
+ },
1040
+ undefined,
1041
+ ]
1042
+ }
1043
+ />
1044
+ </View>
541
1045
  `;
542
1046
 
543
1047
  exports[`Box map prop with shortcut name to valid property and correct color from theme 3`] = `
544
1048
  <View
545
- bgColor="success"
546
1049
  style={
547
- [
548
- {
549
- "backgroundColor": "#5ace7d",
550
- },
551
- undefined,
552
- ]
1050
+ {
1051
+ "flex": 1,
1052
+ }
553
1053
  }
554
- />
1054
+ >
1055
+ <View
1056
+ bgColor="success"
1057
+ style={
1058
+ [
1059
+ {
1060
+ "backgroundColor": "#5ace7d",
1061
+ },
1062
+ undefined,
1063
+ ]
1064
+ }
1065
+ />
1066
+ <View
1067
+ pointerEvents="box-none"
1068
+ position="bottom"
1069
+ style={
1070
+ [
1071
+ {
1072
+ "bottom": 0,
1073
+ "elevation": 9999,
1074
+ "flexDirection": "column-reverse",
1075
+ "left": 0,
1076
+ "paddingHorizontal": 24,
1077
+ "paddingVertical": 16,
1078
+ "position": "absolute",
1079
+ "right": 0,
1080
+ "top": 0,
1081
+ },
1082
+ undefined,
1083
+ ]
1084
+ }
1085
+ />
1086
+ </View>
555
1087
  `;
556
1088
 
557
1089
  exports[`Box map prop with shortcut name to valid property and correct color from theme 4`] = `
558
1090
  <View
559
- bgColor="backgroundDark"
560
1091
  style={
561
- [
562
- {},
563
- undefined,
564
- ]
1092
+ {
1093
+ "flex": 1,
1094
+ }
565
1095
  }
566
- />
1096
+ >
1097
+ <View
1098
+ bgColor="backgroundDark"
1099
+ style={
1100
+ [
1101
+ {},
1102
+ undefined,
1103
+ ]
1104
+ }
1105
+ />
1106
+ <View
1107
+ pointerEvents="box-none"
1108
+ position="bottom"
1109
+ style={
1110
+ [
1111
+ {
1112
+ "bottom": 0,
1113
+ "elevation": 9999,
1114
+ "flexDirection": "column-reverse",
1115
+ "left": 0,
1116
+ "paddingHorizontal": 24,
1117
+ "paddingVertical": 16,
1118
+ "position": "absolute",
1119
+ "right": 0,
1120
+ "top": 0,
1121
+ },
1122
+ undefined,
1123
+ ]
1124
+ }
1125
+ />
1126
+ </View>
567
1127
  `;
568
1128
 
569
1129
  exports[`Box renders content correctly 1`] = `
570
1130
  <View
571
1131
  style={
572
- [
573
- {},
574
- undefined,
575
- ]
1132
+ {
1133
+ "flex": 1,
1134
+ }
576
1135
  }
577
- testID="box-test-id"
578
1136
  >
579
- <Text>
580
- Box Content
581
- </Text>
1137
+ <View
1138
+ style={
1139
+ [
1140
+ {},
1141
+ undefined,
1142
+ ]
1143
+ }
1144
+ testID="box-test-id"
1145
+ >
1146
+ <Text>
1147
+ Box Content
1148
+ </Text>
1149
+ </View>
1150
+ <View
1151
+ pointerEvents="box-none"
1152
+ position="bottom"
1153
+ style={
1154
+ [
1155
+ {
1156
+ "bottom": 0,
1157
+ "elevation": 9999,
1158
+ "flexDirection": "column-reverse",
1159
+ "left": 0,
1160
+ "paddingHorizontal": 24,
1161
+ "paddingVertical": 16,
1162
+ "position": "absolute",
1163
+ "right": 0,
1164
+ "top": 0,
1165
+ },
1166
+ undefined,
1167
+ ]
1168
+ }
1169
+ />
582
1170
  </View>
583
1171
  `;