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