@hero-design/rn 8.43.1 → 8.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +10 -0
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +366 -359
  5. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  6. package/lib/index.js +366 -359
  7. package/package.json +1 -1
  8. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +564 -452
  9. package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +76 -20
  10. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +790 -706
  11. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +848 -652
  12. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +170 -142
  13. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +138 -82
  14. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +745 -689
  15. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +157 -73
  16. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +273 -189
  17. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +391 -223
  18. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +119 -63
  19. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +306 -278
  20. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +317 -233
  21. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +1042 -454
  22. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +400 -120
  23. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +1090 -810
  24. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +196 -140
  25. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1666 -1218
  26. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +70 -42
  27. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +1623 -727
  28. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +555 -415
  29. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +265 -69
  30. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +205 -65
  31. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +36 -8
  32. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +292 -124
  33. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +486 -430
  34. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +196 -84
  35. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +41 -13
  36. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1720 -1636
  37. package/src/components/Carousel/__tests__/index.spec.tsx +7 -6
  38. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +400 -176
  39. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +574 -406
  40. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +1170 -834
  41. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +73 -17
  42. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +94 -38
  43. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +37 -9
  44. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +421 -337
  45. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +586 -502
  46. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +200 -172
  47. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +192 -164
  48. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +471 -443
  49. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +464 -128
  50. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +97 -69
  51. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +327 -243
  52. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +169 -113
  53. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +323 -213
  54. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +845 -789
  55. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +98 -42
  56. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +197 -113
  57. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +290 -206
  58. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +45 -17
  59. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  60. package/src/components/Icon/IconList.ts +2 -0
  61. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +158 -46
  62. package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +164 -52
  63. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +242 -186
  64. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +761 -649
  65. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +268 -156
  66. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +473 -221
  67. package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +60 -8
  68. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +83 -55
  69. package/src/components/PinInput/__tests__/StyledPinInput.spec.tsx +9 -4
  70. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +293 -153
  71. package/src/components/PinInput/__tests__/__snapshots__/StyledPinInput.spec.tsx.snap +15 -48
  72. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +809 -697
  73. package/src/components/Portal/__tests__/PortalHost.spec.tsx +12 -14
  74. package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +43 -15
  75. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +743 -603
  76. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +188 -132
  77. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +256 -228
  78. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +864 -780
  79. package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +128 -44
  80. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +5 -2
  81. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +3 -3
  82. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +406 -378
  83. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +64 -36
  84. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +371 -315
  85. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +158 -46
  86. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +394 -226
  87. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +93 -65
  88. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2402 -2290
  89. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +180 -24
  90. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -6
  91. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +73 -45
  92. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2309 -2197
  93. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +150 -20
  94. package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +490 -294
  95. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +117 -33
  96. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +105 -77
  97. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +1308 -636
  98. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +121 -93
  99. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +323 -213
  100. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +210 -126
  101. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +58 -30
  102. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +226 -114
  103. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +145 -117
  104. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +202 -62
  105. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +132 -76
  106. package/src/components/Tabs/__tests__/SceneView.spec.tsx +7 -7
  107. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +206 -94
  108. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +2214 -2130
  109. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +523 -495
  110. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +121 -65
  111. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1637 -1553
  112. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +554 -274
  113. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +1542 -646
  114. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +3177 -2701
  115. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +390 -334
  116. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +662 -606
  117. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +871 -675
  118. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +180 -68
  119. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +582 -498
  120. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +683 -459
  121. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +704 -256
  122. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +855 -323
  123. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +430 -150
  124. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +572 -208
  125. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +328 -104
  126. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +462 -154
  127. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +900 -340
  128. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +880 -320
  129. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +1035 -391
  130. package/src/testHelpers/renderWithTheme.tsx +2 -2
  131. package/types/components/Icon/IconList.d.ts +1 -1
  132. package/types/components/Icon/index.d.ts +1 -1
  133. package/types/components/Icon/utils.d.ts +1 -1
@@ -3,599 +3,711 @@
3
3
  exports[`AccordionItem renders correctly when header is an element 1`] = `
4
4
  <View
5
5
  style={
6
- [
7
- {
8
- "backgroundColor": "#ffffff",
9
- "borderRadius": 0,
10
- "padding": 16,
11
- },
12
- undefined,
13
- ]
6
+ {
7
+ "flex": 1,
8
+ }
14
9
  }
15
- themeVariant="default"
16
10
  >
17
11
  <View
18
- accessibilityState={
19
- {
20
- "busy": undefined,
21
- "checked": undefined,
22
- "disabled": undefined,
23
- "expanded": undefined,
24
- "selected": undefined,
25
- }
26
- }
27
- accessibilityValue={
28
- {
29
- "max": undefined,
30
- "min": undefined,
31
- "now": undefined,
32
- "text": undefined,
33
- }
34
- }
35
- accessible={true}
36
- collapsable={false}
37
- focusable={false}
38
- onClick={[Function]}
39
- onResponderGrant={[Function]}
40
- onResponderMove={[Function]}
41
- onResponderRelease={[Function]}
42
- onResponderTerminate={[Function]}
43
- onResponderTerminationRequest={[Function]}
44
- onStartShouldSetResponder={[Function]}
45
12
  style={
46
- {
47
- "flexDirection": "row",
48
- "justifyContent": "space-between",
49
- "opacity": 1,
50
- }
13
+ [
14
+ {
15
+ "backgroundColor": "#ffffff",
16
+ "borderRadius": 0,
17
+ "padding": 16,
18
+ },
19
+ undefined,
20
+ ]
51
21
  }
22
+ themeVariant="default"
52
23
  >
53
- <Text
54
- allowFontScaling={false}
55
- style={
56
- [
57
- {
58
- "color": "#001f23",
59
- "fontFamily": "BeVietnamPro-Regular",
60
- "fontSize": 16,
61
- "letterSpacing": 0.48,
62
- "lineHeight": 24,
63
- },
64
- undefined,
65
- ]
24
+ <View
25
+ accessibilityState={
26
+ {
27
+ "busy": undefined,
28
+ "checked": undefined,
29
+ "disabled": undefined,
30
+ "expanded": undefined,
31
+ "selected": undefined,
32
+ }
66
33
  }
67
- themeIntent="body"
68
- themeTypeface="neutral"
69
- themeVariant="regular"
70
- >
71
- Accordion header
72
- </Text>
73
- <HeroIcon
74
- name="arrow-down"
75
- style={
76
- [
77
- {
78
- "color": "#795e90",
79
- "fontSize": 20,
80
- },
81
- undefined,
82
- ]
34
+ accessibilityValue={
35
+ {
36
+ "max": undefined,
37
+ "min": undefined,
38
+ "now": undefined,
39
+ "text": undefined,
40
+ }
83
41
  }
84
- themeIntent="secondary"
85
- themeSize="small"
86
- />
87
- </View>
88
- <View
89
- collapsable={false}
90
- onLayout={[Function]}
91
- style={
92
- {
93
- "height": 0,
94
- "margin": 0,
95
- "overflow": "hidden",
96
- "padding": 0,
42
+ accessible={true}
43
+ collapsable={false}
44
+ focusable={false}
45
+ onClick={[Function]}
46
+ onResponderGrant={[Function]}
47
+ onResponderMove={[Function]}
48
+ onResponderRelease={[Function]}
49
+ onResponderTerminate={[Function]}
50
+ onResponderTerminationRequest={[Function]}
51
+ onStartShouldSetResponder={[Function]}
52
+ style={
53
+ {
54
+ "flexDirection": "row",
55
+ "justifyContent": "space-between",
56
+ "opacity": 1,
57
+ }
97
58
  }
98
- }
99
- >
59
+ >
60
+ <Text
61
+ allowFontScaling={false}
62
+ style={
63
+ [
64
+ {
65
+ "color": "#001f23",
66
+ "fontFamily": "BeVietnamPro-Regular",
67
+ "fontSize": 16,
68
+ "letterSpacing": 0.48,
69
+ "lineHeight": 24,
70
+ },
71
+ undefined,
72
+ ]
73
+ }
74
+ themeIntent="body"
75
+ themeTypeface="neutral"
76
+ themeVariant="regular"
77
+ >
78
+ Accordion header
79
+ </Text>
80
+ <HeroIcon
81
+ name="arrow-down"
82
+ style={
83
+ [
84
+ {
85
+ "color": "#795e90",
86
+ "fontSize": 20,
87
+ },
88
+ undefined,
89
+ ]
90
+ }
91
+ themeIntent="secondary"
92
+ themeSize="small"
93
+ />
94
+ </View>
100
95
  <View
96
+ collapsable={false}
97
+ onLayout={[Function]}
101
98
  style={
102
- [
103
- {
104
- "height": 1334,
105
- },
106
- undefined,
107
- ]
99
+ {
100
+ "height": 0,
101
+ "margin": 0,
102
+ "overflow": "hidden",
103
+ "padding": 0,
104
+ }
108
105
  }
109
106
  >
110
107
  <View
111
- onLayout={[Function]}
112
108
  style={
113
109
  [
114
110
  {
115
- "margin": 0,
116
- "padding": 0,
111
+ "height": 1334,
117
112
  },
118
- [
119
- {
120
- "paddingTop": 16,
121
- },
122
- undefined,
123
- ],
113
+ undefined,
124
114
  ]
125
115
  }
126
116
  >
127
- <Text
128
- allowFontScaling={false}
117
+ <View
118
+ onLayout={[Function]}
129
119
  style={
130
120
  [
131
121
  {
132
- "color": "#001f23",
133
- "fontFamily": "BeVietnamPro-Regular",
134
- "fontSize": 16,
135
- "letterSpacing": 0.48,
136
- "lineHeight": 24,
122
+ "margin": 0,
123
+ "padding": 0,
137
124
  },
138
- undefined,
125
+ [
126
+ {
127
+ "paddingTop": 16,
128
+ },
129
+ undefined,
130
+ ],
139
131
  ]
140
132
  }
141
- themeIntent="body"
142
- themeTypeface="neutral"
143
- themeVariant="regular"
144
133
  >
145
- Accordion content
146
- </Text>
134
+ <Text
135
+ allowFontScaling={false}
136
+ style={
137
+ [
138
+ {
139
+ "color": "#001f23",
140
+ "fontFamily": "BeVietnamPro-Regular",
141
+ "fontSize": 16,
142
+ "letterSpacing": 0.48,
143
+ "lineHeight": 24,
144
+ },
145
+ undefined,
146
+ ]
147
+ }
148
+ themeIntent="body"
149
+ themeTypeface="neutral"
150
+ themeVariant="regular"
151
+ >
152
+ Accordion content
153
+ </Text>
154
+ </View>
147
155
  </View>
148
156
  </View>
149
157
  </View>
158
+ <View
159
+ pointerEvents="box-none"
160
+ position="bottom"
161
+ style={
162
+ [
163
+ {
164
+ "bottom": 0,
165
+ "elevation": 9999,
166
+ "flexDirection": "column-reverse",
167
+ "left": 0,
168
+ "paddingHorizontal": 24,
169
+ "paddingVertical": 16,
170
+ "position": "absolute",
171
+ "right": 0,
172
+ "top": 0,
173
+ },
174
+ undefined,
175
+ ]
176
+ }
177
+ />
150
178
  </View>
151
179
  `;
152
180
 
153
181
  exports[`AccordionItem renders correctly when header is string 1`] = `
154
182
  <View
155
183
  style={
156
- [
157
- {
158
- "backgroundColor": "#ffffff",
159
- "borderRadius": 0,
160
- "padding": 16,
161
- },
162
- undefined,
163
- ]
184
+ {
185
+ "flex": 1,
186
+ }
164
187
  }
165
- themeVariant="default"
166
188
  >
167
189
  <View
168
- accessibilityState={
169
- {
170
- "busy": undefined,
171
- "checked": undefined,
172
- "disabled": undefined,
173
- "expanded": undefined,
174
- "selected": undefined,
175
- }
176
- }
177
- accessibilityValue={
178
- {
179
- "max": undefined,
180
- "min": undefined,
181
- "now": undefined,
182
- "text": undefined,
183
- }
184
- }
185
- accessible={true}
186
- collapsable={false}
187
- focusable={false}
188
- onClick={[Function]}
189
- onResponderGrant={[Function]}
190
- onResponderMove={[Function]}
191
- onResponderRelease={[Function]}
192
- onResponderTerminate={[Function]}
193
- onResponderTerminationRequest={[Function]}
194
- onStartShouldSetResponder={[Function]}
195
190
  style={
196
- {
197
- "flexDirection": "row",
198
- "justifyContent": "space-between",
199
- "opacity": 1,
200
- }
191
+ [
192
+ {
193
+ "backgroundColor": "#ffffff",
194
+ "borderRadius": 0,
195
+ "padding": 16,
196
+ },
197
+ undefined,
198
+ ]
201
199
  }
200
+ themeVariant="default"
202
201
  >
203
- <Text
204
- allowFontScaling={false}
205
- style={
206
- [
207
- {
208
- "color": "#001f23",
209
- "fontFamily": "BeVietnamPro-SemiBold",
210
- "fontSize": 16,
211
- "letterSpacing": 0.24,
212
- "lineHeight": 24,
213
- },
214
- undefined,
215
- ]
202
+ <View
203
+ accessibilityState={
204
+ {
205
+ "busy": undefined,
206
+ "checked": undefined,
207
+ "disabled": undefined,
208
+ "expanded": undefined,
209
+ "selected": undefined,
210
+ }
216
211
  }
217
- themeIntent="body"
218
- themeTypeface="neutral"
219
- themeVariant="regular-bold"
220
- >
221
- Accordion header
222
- </Text>
223
- <HeroIcon
224
- name="arrow-down"
225
- style={
226
- [
227
- {
228
- "color": "#795e90",
229
- "fontSize": 20,
230
- },
231
- undefined,
232
- ]
212
+ accessibilityValue={
213
+ {
214
+ "max": undefined,
215
+ "min": undefined,
216
+ "now": undefined,
217
+ "text": undefined,
218
+ }
233
219
  }
234
- themeIntent="secondary"
235
- themeSize="small"
236
- />
237
- </View>
238
- <View
239
- collapsable={false}
240
- onLayout={[Function]}
241
- style={
242
- {
243
- "height": 0,
244
- "margin": 0,
245
- "overflow": "hidden",
246
- "padding": 0,
220
+ accessible={true}
221
+ collapsable={false}
222
+ focusable={false}
223
+ onClick={[Function]}
224
+ onResponderGrant={[Function]}
225
+ onResponderMove={[Function]}
226
+ onResponderRelease={[Function]}
227
+ onResponderTerminate={[Function]}
228
+ onResponderTerminationRequest={[Function]}
229
+ onStartShouldSetResponder={[Function]}
230
+ style={
231
+ {
232
+ "flexDirection": "row",
233
+ "justifyContent": "space-between",
234
+ "opacity": 1,
235
+ }
247
236
  }
248
- }
249
- >
237
+ >
238
+ <Text
239
+ allowFontScaling={false}
240
+ style={
241
+ [
242
+ {
243
+ "color": "#001f23",
244
+ "fontFamily": "BeVietnamPro-SemiBold",
245
+ "fontSize": 16,
246
+ "letterSpacing": 0.24,
247
+ "lineHeight": 24,
248
+ },
249
+ undefined,
250
+ ]
251
+ }
252
+ themeIntent="body"
253
+ themeTypeface="neutral"
254
+ themeVariant="regular-bold"
255
+ >
256
+ Accordion header
257
+ </Text>
258
+ <HeroIcon
259
+ name="arrow-down"
260
+ style={
261
+ [
262
+ {
263
+ "color": "#795e90",
264
+ "fontSize": 20,
265
+ },
266
+ undefined,
267
+ ]
268
+ }
269
+ themeIntent="secondary"
270
+ themeSize="small"
271
+ />
272
+ </View>
250
273
  <View
274
+ collapsable={false}
275
+ onLayout={[Function]}
251
276
  style={
252
- [
253
- {
254
- "height": 1334,
255
- },
256
- undefined,
257
- ]
277
+ {
278
+ "height": 0,
279
+ "margin": 0,
280
+ "overflow": "hidden",
281
+ "padding": 0,
282
+ }
258
283
  }
259
284
  >
260
285
  <View
261
- onLayout={[Function]}
262
286
  style={
263
287
  [
264
288
  {
265
- "margin": 0,
266
- "padding": 0,
289
+ "height": 1334,
267
290
  },
268
- [
269
- {
270
- "paddingTop": 16,
271
- },
272
- undefined,
273
- ],
291
+ undefined,
274
292
  ]
275
293
  }
276
294
  >
277
- <Text
278
- allowFontScaling={false}
295
+ <View
296
+ onLayout={[Function]}
279
297
  style={
280
298
  [
281
299
  {
282
- "color": "#001f23",
283
- "fontFamily": "BeVietnamPro-Regular",
284
- "fontSize": 16,
285
- "letterSpacing": 0.48,
286
- "lineHeight": 24,
300
+ "margin": 0,
301
+ "padding": 0,
287
302
  },
288
- undefined,
303
+ [
304
+ {
305
+ "paddingTop": 16,
306
+ },
307
+ undefined,
308
+ ],
289
309
  ]
290
310
  }
291
- themeIntent="body"
292
- themeTypeface="neutral"
293
- themeVariant="regular"
294
311
  >
295
- Accordion content
296
- </Text>
312
+ <Text
313
+ allowFontScaling={false}
314
+ style={
315
+ [
316
+ {
317
+ "color": "#001f23",
318
+ "fontFamily": "BeVietnamPro-Regular",
319
+ "fontSize": 16,
320
+ "letterSpacing": 0.48,
321
+ "lineHeight": 24,
322
+ },
323
+ undefined,
324
+ ]
325
+ }
326
+ themeIntent="body"
327
+ themeTypeface="neutral"
328
+ themeVariant="regular"
329
+ >
330
+ Accordion content
331
+ </Text>
332
+ </View>
297
333
  </View>
298
334
  </View>
299
335
  </View>
336
+ <View
337
+ pointerEvents="box-none"
338
+ position="bottom"
339
+ style={
340
+ [
341
+ {
342
+ "bottom": 0,
343
+ "elevation": 9999,
344
+ "flexDirection": "column-reverse",
345
+ "left": 0,
346
+ "paddingHorizontal": 24,
347
+ "paddingVertical": 16,
348
+ "position": "absolute",
349
+ "right": 0,
350
+ "top": 0,
351
+ },
352
+ undefined,
353
+ ]
354
+ }
355
+ />
300
356
  </View>
301
357
  `;
302
358
 
303
359
  exports[`AccordionItem renders correctly when open 1`] = `
304
360
  <View
305
361
  style={
306
- [
307
- {
308
- "backgroundColor": "#ffffff",
309
- "borderRadius": 0,
310
- "padding": 16,
311
- },
312
- undefined,
313
- ]
362
+ {
363
+ "flex": 1,
364
+ }
314
365
  }
315
- themeVariant="default"
316
366
  >
317
367
  <View
318
- accessibilityState={
319
- {
320
- "busy": undefined,
321
- "checked": undefined,
322
- "disabled": undefined,
323
- "expanded": undefined,
324
- "selected": undefined,
325
- }
326
- }
327
- accessibilityValue={
328
- {
329
- "max": undefined,
330
- "min": undefined,
331
- "now": undefined,
332
- "text": undefined,
333
- }
334
- }
335
- accessible={true}
336
- collapsable={false}
337
- focusable={false}
338
- onClick={[Function]}
339
- onResponderGrant={[Function]}
340
- onResponderMove={[Function]}
341
- onResponderRelease={[Function]}
342
- onResponderTerminate={[Function]}
343
- onResponderTerminationRequest={[Function]}
344
- onStartShouldSetResponder={[Function]}
345
368
  style={
346
- {
347
- "flexDirection": "row",
348
- "justifyContent": "space-between",
349
- "opacity": 1,
350
- }
369
+ [
370
+ {
371
+ "backgroundColor": "#ffffff",
372
+ "borderRadius": 0,
373
+ "padding": 16,
374
+ },
375
+ undefined,
376
+ ]
351
377
  }
378
+ themeVariant="default"
352
379
  >
353
- <Text
354
- allowFontScaling={false}
355
- style={
356
- [
357
- {
358
- "color": "#001f23",
359
- "fontFamily": "BeVietnamPro-SemiBold",
360
- "fontSize": 16,
361
- "letterSpacing": 0.24,
362
- "lineHeight": 24,
363
- },
364
- undefined,
365
- ]
380
+ <View
381
+ accessibilityState={
382
+ {
383
+ "busy": undefined,
384
+ "checked": undefined,
385
+ "disabled": undefined,
386
+ "expanded": undefined,
387
+ "selected": undefined,
388
+ }
366
389
  }
367
- themeIntent="body"
368
- themeTypeface="neutral"
369
- themeVariant="regular-bold"
370
- >
371
- Accordion header
372
- </Text>
373
- <HeroIcon
374
- name="arrow-up"
375
- style={
376
- [
377
- {
378
- "color": "#795e90",
379
- "fontSize": 20,
380
- },
381
- undefined,
382
- ]
390
+ accessibilityValue={
391
+ {
392
+ "max": undefined,
393
+ "min": undefined,
394
+ "now": undefined,
395
+ "text": undefined,
396
+ }
383
397
  }
384
- themeIntent="secondary"
385
- themeSize="small"
386
- />
387
- </View>
388
- <View
389
- collapsable={false}
390
- onLayout={[Function]}
391
- style={
392
- {
393
- "height": 0,
394
- "margin": 0,
395
- "overflow": "hidden",
396
- "padding": 0,
398
+ accessible={true}
399
+ collapsable={false}
400
+ focusable={false}
401
+ onClick={[Function]}
402
+ onResponderGrant={[Function]}
403
+ onResponderMove={[Function]}
404
+ onResponderRelease={[Function]}
405
+ onResponderTerminate={[Function]}
406
+ onResponderTerminationRequest={[Function]}
407
+ onStartShouldSetResponder={[Function]}
408
+ style={
409
+ {
410
+ "flexDirection": "row",
411
+ "justifyContent": "space-between",
412
+ "opacity": 1,
413
+ }
397
414
  }
398
- }
399
- >
415
+ >
416
+ <Text
417
+ allowFontScaling={false}
418
+ style={
419
+ [
420
+ {
421
+ "color": "#001f23",
422
+ "fontFamily": "BeVietnamPro-SemiBold",
423
+ "fontSize": 16,
424
+ "letterSpacing": 0.24,
425
+ "lineHeight": 24,
426
+ },
427
+ undefined,
428
+ ]
429
+ }
430
+ themeIntent="body"
431
+ themeTypeface="neutral"
432
+ themeVariant="regular-bold"
433
+ >
434
+ Accordion header
435
+ </Text>
436
+ <HeroIcon
437
+ name="arrow-up"
438
+ style={
439
+ [
440
+ {
441
+ "color": "#795e90",
442
+ "fontSize": 20,
443
+ },
444
+ undefined,
445
+ ]
446
+ }
447
+ themeIntent="secondary"
448
+ themeSize="small"
449
+ />
450
+ </View>
400
451
  <View
452
+ collapsable={false}
453
+ onLayout={[Function]}
401
454
  style={
402
- [
403
- {
404
- "height": 1334,
405
- },
406
- undefined,
407
- ]
455
+ {
456
+ "height": 0,
457
+ "margin": 0,
458
+ "overflow": "hidden",
459
+ "padding": 0,
460
+ }
408
461
  }
409
462
  >
410
463
  <View
411
- onLayout={[Function]}
412
464
  style={
413
465
  [
414
466
  {
415
- "margin": 0,
416
- "padding": 0,
467
+ "height": 1334,
417
468
  },
418
- [
419
- {
420
- "paddingTop": 16,
421
- },
422
- undefined,
423
- ],
469
+ undefined,
424
470
  ]
425
471
  }
426
472
  >
427
- <Text
428
- allowFontScaling={false}
473
+ <View
474
+ onLayout={[Function]}
429
475
  style={
430
476
  [
431
477
  {
432
- "color": "#001f23",
433
- "fontFamily": "BeVietnamPro-Regular",
434
- "fontSize": 16,
435
- "letterSpacing": 0.48,
436
- "lineHeight": 24,
478
+ "margin": 0,
479
+ "padding": 0,
437
480
  },
438
- undefined,
481
+ [
482
+ {
483
+ "paddingTop": 16,
484
+ },
485
+ undefined,
486
+ ],
439
487
  ]
440
488
  }
441
- themeIntent="body"
442
- themeTypeface="neutral"
443
- themeVariant="regular"
444
489
  >
445
- Accordion content
446
- </Text>
490
+ <Text
491
+ allowFontScaling={false}
492
+ style={
493
+ [
494
+ {
495
+ "color": "#001f23",
496
+ "fontFamily": "BeVietnamPro-Regular",
497
+ "fontSize": 16,
498
+ "letterSpacing": 0.48,
499
+ "lineHeight": 24,
500
+ },
501
+ undefined,
502
+ ]
503
+ }
504
+ themeIntent="body"
505
+ themeTypeface="neutral"
506
+ themeVariant="regular"
507
+ >
508
+ Accordion content
509
+ </Text>
510
+ </View>
447
511
  </View>
448
512
  </View>
449
513
  </View>
514
+ <View
515
+ pointerEvents="box-none"
516
+ position="bottom"
517
+ style={
518
+ [
519
+ {
520
+ "bottom": 0,
521
+ "elevation": 9999,
522
+ "flexDirection": "column-reverse",
523
+ "left": 0,
524
+ "paddingHorizontal": 24,
525
+ "paddingVertical": 16,
526
+ "position": "absolute",
527
+ "right": 0,
528
+ "top": 0,
529
+ },
530
+ undefined,
531
+ ]
532
+ }
533
+ />
450
534
  </View>
451
535
  `;
452
536
 
453
537
  exports[`AccordionItem renders correctly when variant is card 1`] = `
454
538
  <View
455
539
  style={
456
- [
457
- {
458
- "backgroundColor": "#ffffff",
459
- "borderRadius": 8,
460
- "padding": 16,
461
- },
462
- undefined,
463
- ]
540
+ {
541
+ "flex": 1,
542
+ }
464
543
  }
465
- themeVariant="card"
466
544
  >
467
545
  <View
468
- accessibilityState={
469
- {
470
- "busy": undefined,
471
- "checked": undefined,
472
- "disabled": undefined,
473
- "expanded": undefined,
474
- "selected": undefined,
475
- }
476
- }
477
- accessibilityValue={
478
- {
479
- "max": undefined,
480
- "min": undefined,
481
- "now": undefined,
482
- "text": undefined,
483
- }
484
- }
485
- accessible={true}
486
- collapsable={false}
487
- focusable={false}
488
- onClick={[Function]}
489
- onResponderGrant={[Function]}
490
- onResponderMove={[Function]}
491
- onResponderRelease={[Function]}
492
- onResponderTerminate={[Function]}
493
- onResponderTerminationRequest={[Function]}
494
- onStartShouldSetResponder={[Function]}
495
546
  style={
496
- {
497
- "flexDirection": "row",
498
- "justifyContent": "space-between",
499
- "opacity": 1,
500
- }
547
+ [
548
+ {
549
+ "backgroundColor": "#ffffff",
550
+ "borderRadius": 8,
551
+ "padding": 16,
552
+ },
553
+ undefined,
554
+ ]
501
555
  }
556
+ themeVariant="card"
502
557
  >
503
- <Text
504
- allowFontScaling={false}
505
- style={
506
- [
507
- {
508
- "color": "#001f23",
509
- "fontFamily": "BeVietnamPro-SemiBold",
510
- "fontSize": 16,
511
- "letterSpacing": 0.24,
512
- "lineHeight": 24,
513
- },
514
- undefined,
515
- ]
558
+ <View
559
+ accessibilityState={
560
+ {
561
+ "busy": undefined,
562
+ "checked": undefined,
563
+ "disabled": undefined,
564
+ "expanded": undefined,
565
+ "selected": undefined,
566
+ }
516
567
  }
517
- themeIntent="body"
518
- themeTypeface="neutral"
519
- themeVariant="regular-bold"
520
- >
521
- Accordion header
522
- </Text>
523
- <HeroIcon
524
- name="arrow-down"
525
- style={
526
- [
527
- {
528
- "color": "#795e90",
529
- "fontSize": 20,
530
- },
531
- undefined,
532
- ]
568
+ accessibilityValue={
569
+ {
570
+ "max": undefined,
571
+ "min": undefined,
572
+ "now": undefined,
573
+ "text": undefined,
574
+ }
533
575
  }
534
- themeIntent="secondary"
535
- themeSize="small"
536
- />
537
- </View>
538
- <View
539
- collapsable={false}
540
- onLayout={[Function]}
541
- style={
542
- {
543
- "height": 0,
544
- "margin": 0,
545
- "overflow": "hidden",
546
- "padding": 0,
576
+ accessible={true}
577
+ collapsable={false}
578
+ focusable={false}
579
+ onClick={[Function]}
580
+ onResponderGrant={[Function]}
581
+ onResponderMove={[Function]}
582
+ onResponderRelease={[Function]}
583
+ onResponderTerminate={[Function]}
584
+ onResponderTerminationRequest={[Function]}
585
+ onStartShouldSetResponder={[Function]}
586
+ style={
587
+ {
588
+ "flexDirection": "row",
589
+ "justifyContent": "space-between",
590
+ "opacity": 1,
591
+ }
547
592
  }
548
- }
549
- >
593
+ >
594
+ <Text
595
+ allowFontScaling={false}
596
+ style={
597
+ [
598
+ {
599
+ "color": "#001f23",
600
+ "fontFamily": "BeVietnamPro-SemiBold",
601
+ "fontSize": 16,
602
+ "letterSpacing": 0.24,
603
+ "lineHeight": 24,
604
+ },
605
+ undefined,
606
+ ]
607
+ }
608
+ themeIntent="body"
609
+ themeTypeface="neutral"
610
+ themeVariant="regular-bold"
611
+ >
612
+ Accordion header
613
+ </Text>
614
+ <HeroIcon
615
+ name="arrow-down"
616
+ style={
617
+ [
618
+ {
619
+ "color": "#795e90",
620
+ "fontSize": 20,
621
+ },
622
+ undefined,
623
+ ]
624
+ }
625
+ themeIntent="secondary"
626
+ themeSize="small"
627
+ />
628
+ </View>
550
629
  <View
630
+ collapsable={false}
631
+ onLayout={[Function]}
551
632
  style={
552
- [
553
- {
554
- "height": 1334,
555
- },
556
- undefined,
557
- ]
633
+ {
634
+ "height": 0,
635
+ "margin": 0,
636
+ "overflow": "hidden",
637
+ "padding": 0,
638
+ }
558
639
  }
559
640
  >
560
641
  <View
561
- onLayout={[Function]}
562
642
  style={
563
643
  [
564
644
  {
565
- "margin": 0,
566
- "padding": 0,
645
+ "height": 1334,
567
646
  },
568
- [
569
- {
570
- "paddingTop": 16,
571
- },
572
- undefined,
573
- ],
647
+ undefined,
574
648
  ]
575
649
  }
576
650
  >
577
- <Text
578
- allowFontScaling={false}
651
+ <View
652
+ onLayout={[Function]}
579
653
  style={
580
654
  [
581
655
  {
582
- "color": "#001f23",
583
- "fontFamily": "BeVietnamPro-Regular",
584
- "fontSize": 16,
585
- "letterSpacing": 0.48,
586
- "lineHeight": 24,
656
+ "margin": 0,
657
+ "padding": 0,
587
658
  },
588
- undefined,
659
+ [
660
+ {
661
+ "paddingTop": 16,
662
+ },
663
+ undefined,
664
+ ],
589
665
  ]
590
666
  }
591
- themeIntent="body"
592
- themeTypeface="neutral"
593
- themeVariant="regular"
594
667
  >
595
- Accordion content
596
- </Text>
668
+ <Text
669
+ allowFontScaling={false}
670
+ style={
671
+ [
672
+ {
673
+ "color": "#001f23",
674
+ "fontFamily": "BeVietnamPro-Regular",
675
+ "fontSize": 16,
676
+ "letterSpacing": 0.48,
677
+ "lineHeight": 24,
678
+ },
679
+ undefined,
680
+ ]
681
+ }
682
+ themeIntent="body"
683
+ themeTypeface="neutral"
684
+ themeVariant="regular"
685
+ >
686
+ Accordion content
687
+ </Text>
688
+ </View>
597
689
  </View>
598
690
  </View>
599
691
  </View>
692
+ <View
693
+ pointerEvents="box-none"
694
+ position="bottom"
695
+ style={
696
+ [
697
+ {
698
+ "bottom": 0,
699
+ "elevation": 9999,
700
+ "flexDirection": "column-reverse",
701
+ "left": 0,
702
+ "paddingHorizontal": 24,
703
+ "paddingVertical": 16,
704
+ "position": "absolute",
705
+ "right": 0,
706
+ "top": 0,
707
+ },
708
+ undefined,
709
+ ]
710
+ }
711
+ />
600
712
  </View>
601
713
  `;