@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
@@ -1,11 +1,12 @@
1
- import React from 'react';
2
1
  import { fireEvent } from '@testing-library/react-native';
2
+ import React from 'react';
3
3
  import { ImageResizeMode } from 'react-native';
4
- import renderWithTheme from '../../../testHelpers/renderWithTheme';
5
4
  import Carousel from '..';
6
- import Image from '../../Image';
7
- import { ThemeProvider, theme } from '../../..';
5
+ import { theme } from '../../..';
6
+ import renderWithTheme from '../../../testHelpers/renderWithTheme';
8
7
  import Button from '../../Button/Button';
8
+ import HeroDesignProvider from '../../HeroDesignProvider';
9
+ import Image from '../../Image';
9
10
 
10
11
  const carouselData = [
11
12
  {
@@ -143,7 +144,7 @@ describe('Carousel', () => {
143
144
  eventData
144
145
  );
145
146
  rerender(
146
- <ThemeProvider theme={theme}>
147
+ <HeroDesignProvider theme={theme}>
147
148
  <Carousel
148
149
  testID="carousel"
149
150
  items={carouselData}
@@ -151,7 +152,7 @@ describe('Carousel', () => {
151
152
  return <Button text="Skip" onPress={onSkip} />;
152
153
  }}
153
154
  />
154
- </ThemeProvider>
155
+ </HeroDesignProvider>
155
156
  );
156
157
 
157
158
  expect(getByTestId('page-control-indicator1')).toHaveAccessibilityState({
@@ -3,235 +3,459 @@
3
3
  exports[`StyledCheckbox renders correctly when disabled is false and readonly is false 1`] = `
4
4
  <View
5
5
  style={
6
- [
7
- {
8
- "borderColor": "#001f23",
9
- "borderRadius": 4,
10
- "borderWidth": 2,
11
- "flex": 1,
12
- },
13
- undefined,
14
- ]
6
+ {
7
+ "flex": 1,
8
+ }
15
9
  }
16
- themeState="default"
17
- />
10
+ >
11
+ <View
12
+ style={
13
+ [
14
+ {
15
+ "borderColor": "#001f23",
16
+ "borderRadius": 4,
17
+ "borderWidth": 2,
18
+ "flex": 1,
19
+ },
20
+ undefined,
21
+ ]
22
+ }
23
+ themeState="default"
24
+ />
25
+ <View
26
+ pointerEvents="box-none"
27
+ position="bottom"
28
+ style={
29
+ [
30
+ {
31
+ "bottom": 0,
32
+ "elevation": 9999,
33
+ "flexDirection": "column-reverse",
34
+ "left": 0,
35
+ "paddingHorizontal": 24,
36
+ "paddingVertical": 16,
37
+ "position": "absolute",
38
+ "right": 0,
39
+ "top": 0,
40
+ },
41
+ undefined,
42
+ ]
43
+ }
44
+ />
45
+ </View>
18
46
  `;
19
47
 
20
48
  exports[`StyledCheckbox renders correctly when disabled is false and readonly is true 1`] = `
21
49
  <View
22
50
  style={
23
- [
24
- {
25
- "borderColor": "#808f91",
26
- "borderRadius": 4,
27
- "borderWidth": 2,
28
- "flex": 1,
29
- },
30
- undefined,
31
- ]
51
+ {
52
+ "flex": 1,
53
+ }
32
54
  }
33
- themeState="readonly"
34
- />
55
+ >
56
+ <View
57
+ style={
58
+ [
59
+ {
60
+ "borderColor": "#808f91",
61
+ "borderRadius": 4,
62
+ "borderWidth": 2,
63
+ "flex": 1,
64
+ },
65
+ undefined,
66
+ ]
67
+ }
68
+ themeState="readonly"
69
+ />
70
+ <View
71
+ pointerEvents="box-none"
72
+ position="bottom"
73
+ style={
74
+ [
75
+ {
76
+ "bottom": 0,
77
+ "elevation": 9999,
78
+ "flexDirection": "column-reverse",
79
+ "left": 0,
80
+ "paddingHorizontal": 24,
81
+ "paddingVertical": 16,
82
+ "position": "absolute",
83
+ "right": 0,
84
+ "top": 0,
85
+ },
86
+ undefined,
87
+ ]
88
+ }
89
+ />
90
+ </View>
35
91
  `;
36
92
 
37
93
  exports[`StyledCheckbox renders correctly when disabled is true and readonly is false 1`] = `
38
94
  <View
39
95
  style={
40
- [
41
- {
42
- "borderColor": "#bfc1c5",
43
- "borderRadius": 4,
44
- "borderWidth": 2,
45
- "flex": 1,
46
- },
47
- undefined,
48
- ]
96
+ {
97
+ "flex": 1,
98
+ }
49
99
  }
50
- themeState="disabled"
51
- />
100
+ >
101
+ <View
102
+ style={
103
+ [
104
+ {
105
+ "borderColor": "#bfc1c5",
106
+ "borderRadius": 4,
107
+ "borderWidth": 2,
108
+ "flex": 1,
109
+ },
110
+ undefined,
111
+ ]
112
+ }
113
+ themeState="disabled"
114
+ />
115
+ <View
116
+ pointerEvents="box-none"
117
+ position="bottom"
118
+ style={
119
+ [
120
+ {
121
+ "bottom": 0,
122
+ "elevation": 9999,
123
+ "flexDirection": "column-reverse",
124
+ "left": 0,
125
+ "paddingHorizontal": 24,
126
+ "paddingVertical": 16,
127
+ "position": "absolute",
128
+ "right": 0,
129
+ "top": 0,
130
+ },
131
+ undefined,
132
+ ]
133
+ }
134
+ />
135
+ </View>
52
136
  `;
53
137
 
54
138
  exports[`StyledCheckbox renders correctly when disabled is true and readonly is true 1`] = `
55
139
  <View
56
140
  style={
57
- [
58
- {
59
- "borderColor": "#bfc1c5",
60
- "borderRadius": 4,
61
- "borderWidth": 2,
62
- "flex": 1,
63
- },
64
- undefined,
65
- ]
141
+ {
142
+ "flex": 1,
143
+ }
66
144
  }
67
- themeState="disabled"
68
- />
145
+ >
146
+ <View
147
+ style={
148
+ [
149
+ {
150
+ "borderColor": "#bfc1c5",
151
+ "borderRadius": 4,
152
+ "borderWidth": 2,
153
+ "flex": 1,
154
+ },
155
+ undefined,
156
+ ]
157
+ }
158
+ themeState="disabled"
159
+ />
160
+ <View
161
+ pointerEvents="box-none"
162
+ position="bottom"
163
+ style={
164
+ [
165
+ {
166
+ "bottom": 0,
167
+ "elevation": 9999,
168
+ "flexDirection": "column-reverse",
169
+ "left": 0,
170
+ "paddingHorizontal": 24,
171
+ "paddingVertical": 16,
172
+ "position": "absolute",
173
+ "right": 0,
174
+ "top": 0,
175
+ },
176
+ undefined,
177
+ ]
178
+ }
179
+ />
180
+ </View>
69
181
  `;
70
182
 
71
183
  exports[`StyledWrapper renders correctly when disabled is false, readonly is false 1`] = `
72
184
  <View
73
- accessibilityState={
185
+ style={
74
186
  {
75
- "busy": undefined,
76
- "checked": undefined,
77
- "disabled": undefined,
78
- "expanded": undefined,
79
- "selected": undefined,
187
+ "flex": 1,
80
188
  }
81
189
  }
82
- accessibilityValue={
83
- {
84
- "max": undefined,
85
- "min": undefined,
86
- "now": undefined,
87
- "text": undefined,
190
+ >
191
+ <View
192
+ accessibilityState={
193
+ {
194
+ "busy": undefined,
195
+ "checked": undefined,
196
+ "disabled": undefined,
197
+ "expanded": undefined,
198
+ "selected": undefined,
199
+ }
88
200
  }
89
- }
90
- accessible={true}
91
- collapsable={false}
92
- focusable={false}
93
- onClick={[Function]}
94
- onResponderGrant={[Function]}
95
- onResponderMove={[Function]}
96
- onResponderRelease={[Function]}
97
- onResponderTerminate={[Function]}
98
- onResponderTerminationRequest={[Function]}
99
- onStartShouldSetResponder={[Function]}
100
- style={
101
- {
102
- "borderColor": "#001f23",
103
- "borderRadius": 8,
104
- "borderWidth": 1,
105
- "flexDirection": "row",
106
- "opacity": 1,
107
- "padding": 16,
201
+ accessibilityValue={
202
+ {
203
+ "max": undefined,
204
+ "min": undefined,
205
+ "now": undefined,
206
+ "text": undefined,
207
+ }
108
208
  }
109
- }
110
- />
209
+ accessible={true}
210
+ collapsable={false}
211
+ focusable={false}
212
+ onClick={[Function]}
213
+ onResponderGrant={[Function]}
214
+ onResponderMove={[Function]}
215
+ onResponderRelease={[Function]}
216
+ onResponderTerminate={[Function]}
217
+ onResponderTerminationRequest={[Function]}
218
+ onStartShouldSetResponder={[Function]}
219
+ style={
220
+ {
221
+ "borderColor": "#001f23",
222
+ "borderRadius": 8,
223
+ "borderWidth": 1,
224
+ "flexDirection": "row",
225
+ "opacity": 1,
226
+ "padding": 16,
227
+ }
228
+ }
229
+ />
230
+ <View
231
+ pointerEvents="box-none"
232
+ position="bottom"
233
+ style={
234
+ [
235
+ {
236
+ "bottom": 0,
237
+ "elevation": 9999,
238
+ "flexDirection": "column-reverse",
239
+ "left": 0,
240
+ "paddingHorizontal": 24,
241
+ "paddingVertical": 16,
242
+ "position": "absolute",
243
+ "right": 0,
244
+ "top": 0,
245
+ },
246
+ undefined,
247
+ ]
248
+ }
249
+ />
250
+ </View>
111
251
  `;
112
252
 
113
253
  exports[`StyledWrapper renders correctly when disabled is false, readonly is true 1`] = `
114
254
  <View
115
- accessibilityState={
255
+ style={
116
256
  {
117
- "busy": undefined,
118
- "checked": undefined,
119
- "disabled": undefined,
120
- "expanded": undefined,
121
- "selected": undefined,
257
+ "flex": 1,
122
258
  }
123
259
  }
124
- accessibilityValue={
125
- {
126
- "max": undefined,
127
- "min": undefined,
128
- "now": undefined,
129
- "text": undefined,
260
+ >
261
+ <View
262
+ accessibilityState={
263
+ {
264
+ "busy": undefined,
265
+ "checked": undefined,
266
+ "disabled": undefined,
267
+ "expanded": undefined,
268
+ "selected": undefined,
269
+ }
130
270
  }
131
- }
132
- accessible={true}
133
- collapsable={false}
134
- focusable={false}
135
- onClick={[Function]}
136
- onResponderGrant={[Function]}
137
- onResponderMove={[Function]}
138
- onResponderRelease={[Function]}
139
- onResponderTerminate={[Function]}
140
- onResponderTerminationRequest={[Function]}
141
- onStartShouldSetResponder={[Function]}
142
- style={
143
- {
144
- "borderColor": "#808f91",
145
- "borderRadius": 8,
146
- "borderWidth": 1,
147
- "flexDirection": "row",
148
- "opacity": 1,
149
- "padding": 16,
271
+ accessibilityValue={
272
+ {
273
+ "max": undefined,
274
+ "min": undefined,
275
+ "now": undefined,
276
+ "text": undefined,
277
+ }
150
278
  }
151
- }
152
- />
279
+ accessible={true}
280
+ collapsable={false}
281
+ focusable={false}
282
+ onClick={[Function]}
283
+ onResponderGrant={[Function]}
284
+ onResponderMove={[Function]}
285
+ onResponderRelease={[Function]}
286
+ onResponderTerminate={[Function]}
287
+ onResponderTerminationRequest={[Function]}
288
+ onStartShouldSetResponder={[Function]}
289
+ style={
290
+ {
291
+ "borderColor": "#808f91",
292
+ "borderRadius": 8,
293
+ "borderWidth": 1,
294
+ "flexDirection": "row",
295
+ "opacity": 1,
296
+ "padding": 16,
297
+ }
298
+ }
299
+ />
300
+ <View
301
+ pointerEvents="box-none"
302
+ position="bottom"
303
+ style={
304
+ [
305
+ {
306
+ "bottom": 0,
307
+ "elevation": 9999,
308
+ "flexDirection": "column-reverse",
309
+ "left": 0,
310
+ "paddingHorizontal": 24,
311
+ "paddingVertical": 16,
312
+ "position": "absolute",
313
+ "right": 0,
314
+ "top": 0,
315
+ },
316
+ undefined,
317
+ ]
318
+ }
319
+ />
320
+ </View>
153
321
  `;
154
322
 
155
323
  exports[`StyledWrapper renders correctly when disabled is true, readonly is false 1`] = `
156
324
  <View
157
- accessibilityState={
325
+ style={
158
326
  {
159
- "busy": undefined,
160
- "checked": undefined,
161
- "disabled": undefined,
162
- "expanded": undefined,
163
- "selected": undefined,
327
+ "flex": 1,
164
328
  }
165
329
  }
166
- accessibilityValue={
167
- {
168
- "max": undefined,
169
- "min": undefined,
170
- "now": undefined,
171
- "text": undefined,
330
+ >
331
+ <View
332
+ accessibilityState={
333
+ {
334
+ "busy": undefined,
335
+ "checked": undefined,
336
+ "disabled": undefined,
337
+ "expanded": undefined,
338
+ "selected": undefined,
339
+ }
172
340
  }
173
- }
174
- accessible={true}
175
- collapsable={false}
176
- focusable={false}
177
- onClick={[Function]}
178
- onResponderGrant={[Function]}
179
- onResponderMove={[Function]}
180
- onResponderRelease={[Function]}
181
- onResponderTerminate={[Function]}
182
- onResponderTerminationRequest={[Function]}
183
- onStartShouldSetResponder={[Function]}
184
- style={
185
- {
186
- "borderColor": "#bfc1c5",
187
- "borderRadius": 8,
188
- "borderWidth": 1,
189
- "flexDirection": "row",
190
- "opacity": 1,
191
- "padding": 16,
341
+ accessibilityValue={
342
+ {
343
+ "max": undefined,
344
+ "min": undefined,
345
+ "now": undefined,
346
+ "text": undefined,
347
+ }
192
348
  }
193
- }
194
- />
349
+ accessible={true}
350
+ collapsable={false}
351
+ focusable={false}
352
+ onClick={[Function]}
353
+ onResponderGrant={[Function]}
354
+ onResponderMove={[Function]}
355
+ onResponderRelease={[Function]}
356
+ onResponderTerminate={[Function]}
357
+ onResponderTerminationRequest={[Function]}
358
+ onStartShouldSetResponder={[Function]}
359
+ style={
360
+ {
361
+ "borderColor": "#bfc1c5",
362
+ "borderRadius": 8,
363
+ "borderWidth": 1,
364
+ "flexDirection": "row",
365
+ "opacity": 1,
366
+ "padding": 16,
367
+ }
368
+ }
369
+ />
370
+ <View
371
+ pointerEvents="box-none"
372
+ position="bottom"
373
+ style={
374
+ [
375
+ {
376
+ "bottom": 0,
377
+ "elevation": 9999,
378
+ "flexDirection": "column-reverse",
379
+ "left": 0,
380
+ "paddingHorizontal": 24,
381
+ "paddingVertical": 16,
382
+ "position": "absolute",
383
+ "right": 0,
384
+ "top": 0,
385
+ },
386
+ undefined,
387
+ ]
388
+ }
389
+ />
390
+ </View>
195
391
  `;
196
392
 
197
393
  exports[`StyledWrapper renders correctly when disabled is true, readonly is true 1`] = `
198
394
  <View
199
- accessibilityState={
395
+ style={
200
396
  {
201
- "busy": undefined,
202
- "checked": undefined,
203
- "disabled": undefined,
204
- "expanded": undefined,
205
- "selected": undefined,
397
+ "flex": 1,
206
398
  }
207
399
  }
208
- accessibilityValue={
209
- {
210
- "max": undefined,
211
- "min": undefined,
212
- "now": undefined,
213
- "text": undefined,
400
+ >
401
+ <View
402
+ accessibilityState={
403
+ {
404
+ "busy": undefined,
405
+ "checked": undefined,
406
+ "disabled": undefined,
407
+ "expanded": undefined,
408
+ "selected": undefined,
409
+ }
214
410
  }
215
- }
216
- accessible={true}
217
- collapsable={false}
218
- focusable={false}
219
- onClick={[Function]}
220
- onResponderGrant={[Function]}
221
- onResponderMove={[Function]}
222
- onResponderRelease={[Function]}
223
- onResponderTerminate={[Function]}
224
- onResponderTerminationRequest={[Function]}
225
- onStartShouldSetResponder={[Function]}
226
- style={
227
- {
228
- "borderColor": "#bfc1c5",
229
- "borderRadius": 8,
230
- "borderWidth": 1,
231
- "flexDirection": "row",
232
- "opacity": 1,
233
- "padding": 16,
411
+ accessibilityValue={
412
+ {
413
+ "max": undefined,
414
+ "min": undefined,
415
+ "now": undefined,
416
+ "text": undefined,
417
+ }
234
418
  }
235
- }
236
- />
419
+ accessible={true}
420
+ collapsable={false}
421
+ focusable={false}
422
+ onClick={[Function]}
423
+ onResponderGrant={[Function]}
424
+ onResponderMove={[Function]}
425
+ onResponderRelease={[Function]}
426
+ onResponderTerminate={[Function]}
427
+ onResponderTerminationRequest={[Function]}
428
+ onStartShouldSetResponder={[Function]}
429
+ style={
430
+ {
431
+ "borderColor": "#bfc1c5",
432
+ "borderRadius": 8,
433
+ "borderWidth": 1,
434
+ "flexDirection": "row",
435
+ "opacity": 1,
436
+ "padding": 16,
437
+ }
438
+ }
439
+ />
440
+ <View
441
+ pointerEvents="box-none"
442
+ position="bottom"
443
+ style={
444
+ [
445
+ {
446
+ "bottom": 0,
447
+ "elevation": 9999,
448
+ "flexDirection": "column-reverse",
449
+ "left": 0,
450
+ "paddingHorizontal": 24,
451
+ "paddingVertical": 16,
452
+ "position": "absolute",
453
+ "right": 0,
454
+ "top": 0,
455
+ },
456
+ undefined,
457
+ ]
458
+ }
459
+ />
460
+ </View>
237
461
  `;