@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,180 +2,264 @@
2
2
 
3
3
  exports[`rendering renders correctly when intent is danger 1`] = `
4
4
  <View
5
- accessibilityState={
6
- {
7
- "busy": undefined,
8
- "checked": undefined,
9
- "disabled": undefined,
10
- "expanded": undefined,
11
- "selected": undefined,
12
- }
13
- }
14
- accessibilityValue={
15
- {
16
- "max": undefined,
17
- "min": undefined,
18
- "now": undefined,
19
- "text": undefined,
20
- }
21
- }
22
- accessible={true}
23
- collapsable={false}
24
- focusable={false}
25
- onClick={[Function]}
26
- onResponderGrant={[Function]}
27
- onResponderMove={[Function]}
28
- onResponderRelease={[Function]}
29
- onResponderTerminate={[Function]}
30
- onResponderTerminationRequest={[Function]}
31
- onStartShouldSetResponder={[Function]}
32
5
  style={
33
6
  {
34
- "backgroundColor": "#f46363",
35
7
  "flex": 1,
36
- "opacity": 1,
37
8
  }
38
9
  }
39
10
  >
40
- <Text
41
- allowFontScaling={false}
11
+ <View
12
+ accessibilityState={
13
+ {
14
+ "busy": undefined,
15
+ "checked": undefined,
16
+ "disabled": undefined,
17
+ "expanded": undefined,
18
+ "selected": undefined,
19
+ }
20
+ }
21
+ accessibilityValue={
22
+ {
23
+ "max": undefined,
24
+ "min": undefined,
25
+ "now": undefined,
26
+ "text": undefined,
27
+ }
28
+ }
29
+ accessible={true}
30
+ collapsable={false}
31
+ focusable={false}
32
+ onClick={[Function]}
33
+ onResponderGrant={[Function]}
34
+ onResponderMove={[Function]}
35
+ onResponderRelease={[Function]}
36
+ onResponderTerminate={[Function]}
37
+ onResponderTerminationRequest={[Function]}
38
+ onStartShouldSetResponder={[Function]}
39
+ style={
40
+ {
41
+ "backgroundColor": "#f46363",
42
+ "flex": 1,
43
+ "opacity": 1,
44
+ }
45
+ }
46
+ >
47
+ <Text
48
+ allowFontScaling={false}
49
+ style={
50
+ [
51
+ {
52
+ "color": "#001f23",
53
+ "fontFamily": "BeVietnamPro-Regular",
54
+ "fontSize": 14,
55
+ "letterSpacing": 0.48,
56
+ "lineHeight": 22,
57
+ },
58
+ undefined,
59
+ ]
60
+ }
61
+ themeIntent="body"
62
+ themeTypeface="neutral"
63
+ themeVariant="small"
64
+ >
65
+ Action title
66
+ </Text>
67
+ </View>
68
+ <View
69
+ pointerEvents="box-none"
70
+ position="bottom"
42
71
  style={
43
72
  [
44
73
  {
45
- "color": "#001f23",
46
- "fontFamily": "BeVietnamPro-Regular",
47
- "fontSize": 14,
48
- "letterSpacing": 0.48,
49
- "lineHeight": 22,
74
+ "bottom": 0,
75
+ "elevation": 9999,
76
+ "flexDirection": "column-reverse",
77
+ "left": 0,
78
+ "paddingHorizontal": 24,
79
+ "paddingVertical": 16,
80
+ "position": "absolute",
81
+ "right": 0,
82
+ "top": 0,
50
83
  },
51
84
  undefined,
52
85
  ]
53
86
  }
54
- themeIntent="body"
55
- themeTypeface="neutral"
56
- themeVariant="small"
57
- >
58
- Action title
59
- </Text>
87
+ />
60
88
  </View>
61
89
  `;
62
90
 
63
91
  exports[`rendering renders correctly when intent is primary 1`] = `
64
92
  <View
65
- accessibilityState={
66
- {
67
- "busy": undefined,
68
- "checked": undefined,
69
- "disabled": undefined,
70
- "expanded": undefined,
71
- "selected": undefined,
72
- }
73
- }
74
- accessibilityValue={
75
- {
76
- "max": undefined,
77
- "min": undefined,
78
- "now": undefined,
79
- "text": undefined,
80
- }
81
- }
82
- accessible={true}
83
- collapsable={false}
84
- focusable={false}
85
- onClick={[Function]}
86
- onResponderGrant={[Function]}
87
- onResponderMove={[Function]}
88
- onResponderRelease={[Function]}
89
- onResponderTerminate={[Function]}
90
- onResponderTerminationRequest={[Function]}
91
- onStartShouldSetResponder={[Function]}
92
93
  style={
93
94
  {
94
- "backgroundColor": "#401960",
95
95
  "flex": 1,
96
- "opacity": 1,
97
96
  }
98
97
  }
99
98
  >
100
- <Text
101
- allowFontScaling={false}
99
+ <View
100
+ accessibilityState={
101
+ {
102
+ "busy": undefined,
103
+ "checked": undefined,
104
+ "disabled": undefined,
105
+ "expanded": undefined,
106
+ "selected": undefined,
107
+ }
108
+ }
109
+ accessibilityValue={
110
+ {
111
+ "max": undefined,
112
+ "min": undefined,
113
+ "now": undefined,
114
+ "text": undefined,
115
+ }
116
+ }
117
+ accessible={true}
118
+ collapsable={false}
119
+ focusable={false}
120
+ onClick={[Function]}
121
+ onResponderGrant={[Function]}
122
+ onResponderMove={[Function]}
123
+ onResponderRelease={[Function]}
124
+ onResponderTerminate={[Function]}
125
+ onResponderTerminationRequest={[Function]}
126
+ onStartShouldSetResponder={[Function]}
127
+ style={
128
+ {
129
+ "backgroundColor": "#401960",
130
+ "flex": 1,
131
+ "opacity": 1,
132
+ }
133
+ }
134
+ >
135
+ <Text
136
+ allowFontScaling={false}
137
+ style={
138
+ [
139
+ {
140
+ "color": "#001f23",
141
+ "fontFamily": "BeVietnamPro-Regular",
142
+ "fontSize": 14,
143
+ "letterSpacing": 0.48,
144
+ "lineHeight": 22,
145
+ },
146
+ undefined,
147
+ ]
148
+ }
149
+ themeIntent="body"
150
+ themeTypeface="neutral"
151
+ themeVariant="small"
152
+ >
153
+ Action title
154
+ </Text>
155
+ </View>
156
+ <View
157
+ pointerEvents="box-none"
158
+ position="bottom"
102
159
  style={
103
160
  [
104
161
  {
105
- "color": "#001f23",
106
- "fontFamily": "BeVietnamPro-Regular",
107
- "fontSize": 14,
108
- "letterSpacing": 0.48,
109
- "lineHeight": 22,
162
+ "bottom": 0,
163
+ "elevation": 9999,
164
+ "flexDirection": "column-reverse",
165
+ "left": 0,
166
+ "paddingHorizontal": 24,
167
+ "paddingVertical": 16,
168
+ "position": "absolute",
169
+ "right": 0,
170
+ "top": 0,
110
171
  },
111
172
  undefined,
112
173
  ]
113
174
  }
114
- themeIntent="body"
115
- themeTypeface="neutral"
116
- themeVariant="small"
117
- >
118
- Action title
119
- </Text>
175
+ />
120
176
  </View>
121
177
  `;
122
178
 
123
179
  exports[`rendering renders correctly when intent is success 1`] = `
124
180
  <View
125
- accessibilityState={
126
- {
127
- "busy": undefined,
128
- "checked": undefined,
129
- "disabled": undefined,
130
- "expanded": undefined,
131
- "selected": undefined,
132
- }
133
- }
134
- accessibilityValue={
135
- {
136
- "max": undefined,
137
- "min": undefined,
138
- "now": undefined,
139
- "text": undefined,
140
- }
141
- }
142
- accessible={true}
143
- collapsable={false}
144
- focusable={false}
145
- onClick={[Function]}
146
- onResponderGrant={[Function]}
147
- onResponderMove={[Function]}
148
- onResponderRelease={[Function]}
149
- onResponderTerminate={[Function]}
150
- onResponderTerminationRequest={[Function]}
151
- onStartShouldSetResponder={[Function]}
152
181
  style={
153
182
  {
154
- "backgroundColor": "#5ace7d",
155
183
  "flex": 1,
156
- "opacity": 1,
157
184
  }
158
185
  }
159
186
  >
160
- <Text
161
- allowFontScaling={false}
187
+ <View
188
+ accessibilityState={
189
+ {
190
+ "busy": undefined,
191
+ "checked": undefined,
192
+ "disabled": undefined,
193
+ "expanded": undefined,
194
+ "selected": undefined,
195
+ }
196
+ }
197
+ accessibilityValue={
198
+ {
199
+ "max": undefined,
200
+ "min": undefined,
201
+ "now": undefined,
202
+ "text": undefined,
203
+ }
204
+ }
205
+ accessible={true}
206
+ collapsable={false}
207
+ focusable={false}
208
+ onClick={[Function]}
209
+ onResponderGrant={[Function]}
210
+ onResponderMove={[Function]}
211
+ onResponderRelease={[Function]}
212
+ onResponderTerminate={[Function]}
213
+ onResponderTerminationRequest={[Function]}
214
+ onStartShouldSetResponder={[Function]}
215
+ style={
216
+ {
217
+ "backgroundColor": "#5ace7d",
218
+ "flex": 1,
219
+ "opacity": 1,
220
+ }
221
+ }
222
+ >
223
+ <Text
224
+ allowFontScaling={false}
225
+ style={
226
+ [
227
+ {
228
+ "color": "#001f23",
229
+ "fontFamily": "BeVietnamPro-Regular",
230
+ "fontSize": 14,
231
+ "letterSpacing": 0.48,
232
+ "lineHeight": 22,
233
+ },
234
+ undefined,
235
+ ]
236
+ }
237
+ themeIntent="body"
238
+ themeTypeface="neutral"
239
+ themeVariant="small"
240
+ >
241
+ Action title
242
+ </Text>
243
+ </View>
244
+ <View
245
+ pointerEvents="box-none"
246
+ position="bottom"
162
247
  style={
163
248
  [
164
249
  {
165
- "color": "#001f23",
166
- "fontFamily": "BeVietnamPro-Regular",
167
- "fontSize": 14,
168
- "letterSpacing": 0.48,
169
- "lineHeight": 22,
250
+ "bottom": 0,
251
+ "elevation": 9999,
252
+ "flexDirection": "column-reverse",
253
+ "left": 0,
254
+ "paddingHorizontal": 24,
255
+ "paddingVertical": 16,
256
+ "position": "absolute",
257
+ "right": 0,
258
+ "top": 0,
170
259
  },
171
260
  undefined,
172
261
  ]
173
262
  }
174
- themeIntent="body"
175
- themeTypeface="neutral"
176
- themeVariant="small"
177
- >
178
- Action title
179
- </Text>
263
+ />
180
264
  </View>
181
265
  `;
@@ -1,39 +1,67 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Swipeable renders correctly 1`] = `
4
- <View>
5
- <View
6
- containerStyle={
7
- {
8
- "borderRadius": 8,
9
- }
4
+ <View
5
+ style={
6
+ {
7
+ "flex": 1,
10
8
  }
11
- onSwipeableClose={[Function]}
12
- onSwipeableLeftOpen={[Function]}
13
- onSwipeableRightOpen={[Function]}
14
- renderLeftActions={[Function]}
15
- renderRightActions={[Function]}
16
- >
17
- <Text
18
- allowFontScaling={false}
19
- style={
20
- [
21
- {
22
- "color": "#001f23",
23
- "fontFamily": "BeVietnamPro-Regular",
24
- "fontSize": 14,
25
- "letterSpacing": 0.48,
26
- "lineHeight": 22,
27
- },
28
- undefined,
29
- ]
9
+ }
10
+ >
11
+ <View>
12
+ <View
13
+ containerStyle={
14
+ {
15
+ "borderRadius": 8,
16
+ }
30
17
  }
31
- themeIntent="body"
32
- themeTypeface="neutral"
33
- themeVariant="small"
18
+ onSwipeableClose={[Function]}
19
+ onSwipeableLeftOpen={[Function]}
20
+ onSwipeableRightOpen={[Function]}
21
+ renderLeftActions={[Function]}
22
+ renderRightActions={[Function]}
34
23
  >
35
- Swipeable Item
36
- </Text>
24
+ <Text
25
+ allowFontScaling={false}
26
+ style={
27
+ [
28
+ {
29
+ "color": "#001f23",
30
+ "fontFamily": "BeVietnamPro-Regular",
31
+ "fontSize": 14,
32
+ "letterSpacing": 0.48,
33
+ "lineHeight": 22,
34
+ },
35
+ undefined,
36
+ ]
37
+ }
38
+ themeIntent="body"
39
+ themeTypeface="neutral"
40
+ themeVariant="small"
41
+ >
42
+ Swipeable Item
43
+ </Text>
44
+ </View>
37
45
  </View>
46
+ <View
47
+ pointerEvents="box-none"
48
+ position="bottom"
49
+ style={
50
+ [
51
+ {
52
+ "bottom": 0,
53
+ "elevation": 9999,
54
+ "flexDirection": "column-reverse",
55
+ "left": 0,
56
+ "paddingHorizontal": 24,
57
+ "paddingVertical": 16,
58
+ "position": "absolute",
59
+ "right": 0,
60
+ "top": 0,
61
+ },
62
+ undefined,
63
+ ]
64
+ }
65
+ />
38
66
  </View>
39
67
  `;