@hero-design/rn 8.1.0 → 8.2.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.
- package/.turbo/turbo-build.log +9 -9
- package/es/index.js +6 -1
- package/jest.config.js +1 -1
- package/lib/index.js +6 -1
- package/package.json +10 -11
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +0 -8
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +0 -12
- package/src/components/Alert/StyledAlert.tsx +4 -2
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +120 -5
- package/src/components/Alert/__tests__/index.spec.tsx +14 -0
- package/src/components/Alert/index.tsx +13 -3
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +5 -1
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +45 -9
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +0 -1
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +16 -2
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +0 -6
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +0 -2
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +1 -278
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +0 -70
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +0 -1
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +5 -10
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +0 -5
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +0 -3
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +30 -6
- package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +0 -1
- package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +20 -4
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +6 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +13 -4
- package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +0 -6
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +0 -14
- package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +0 -2
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +10 -2
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +30 -7
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +0 -4
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +0 -4
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +0 -11
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +10 -2
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +15 -3
- package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +0 -7
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +5 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +60 -19
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +533 -3057
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -2
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +5 -1
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +60 -19
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +485 -2745
- package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +1 -1
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +0 -7
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +0 -28
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +0 -7
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +0 -3
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +0 -3
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +0 -1
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +0 -11
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +0 -2
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +11 -1
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +18 -5
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +0 -13
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +30 -6
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +30 -6
- package/types/components/Alert/StyledAlert.d.ts +1 -0
- package/types/components/Alert/index.d.ts +5 -1
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
exports[`Toast Icon render custom icon correctly 1`] = `
|
|
4
4
|
<View
|
|
5
5
|
collapsable={false}
|
|
6
|
-
nativeID="animatedComponent"
|
|
7
6
|
style={
|
|
8
7
|
Object {
|
|
9
8
|
"backgroundColor": "#b5c3fd",
|
|
@@ -110,7 +109,6 @@ exports[`Toast Icon render custom icon correctly 1`] = `
|
|
|
110
109
|
exports[`Toast renders correctly when intent is error 1`] = `
|
|
111
110
|
<View
|
|
112
111
|
collapsable={false}
|
|
113
|
-
nativeID="animatedComponent"
|
|
114
112
|
style={
|
|
115
113
|
Object {
|
|
116
114
|
"backgroundColor": "#f46363",
|
|
@@ -215,7 +213,6 @@ exports[`Toast renders correctly when intent is error 1`] = `
|
|
|
215
213
|
accessible={true}
|
|
216
214
|
collapsable={false}
|
|
217
215
|
focusable={true}
|
|
218
|
-
nativeID="animatedComponent"
|
|
219
216
|
onClick={[Function]}
|
|
220
217
|
onResponderGrant={[Function]}
|
|
221
218
|
onResponderMove={[Function]}
|
|
@@ -259,7 +256,6 @@ exports[`Toast renders correctly when intent is error 1`] = `
|
|
|
259
256
|
exports[`Toast renders correctly when intent is info 1`] = `
|
|
260
257
|
<View
|
|
261
258
|
collapsable={false}
|
|
262
|
-
nativeID="animatedComponent"
|
|
263
259
|
style={
|
|
264
260
|
Object {
|
|
265
261
|
"backgroundColor": "#b5c3fd",
|
|
@@ -364,7 +360,6 @@ exports[`Toast renders correctly when intent is info 1`] = `
|
|
|
364
360
|
accessible={true}
|
|
365
361
|
collapsable={false}
|
|
366
362
|
focusable={true}
|
|
367
|
-
nativeID="animatedComponent"
|
|
368
363
|
onClick={[Function]}
|
|
369
364
|
onResponderGrant={[Function]}
|
|
370
365
|
onResponderMove={[Function]}
|
|
@@ -408,7 +403,6 @@ exports[`Toast renders correctly when intent is info 1`] = `
|
|
|
408
403
|
exports[`Toast renders correctly when intent is notification 1`] = `
|
|
409
404
|
<View
|
|
410
405
|
collapsable={false}
|
|
411
|
-
nativeID="animatedComponent"
|
|
412
406
|
style={
|
|
413
407
|
Object {
|
|
414
408
|
"backgroundColor": "#ffffff",
|
|
@@ -486,7 +480,6 @@ exports[`Toast renders correctly when intent is notification 1`] = `
|
|
|
486
480
|
accessible={true}
|
|
487
481
|
collapsable={false}
|
|
488
482
|
focusable={true}
|
|
489
|
-
nativeID="animatedComponent"
|
|
490
483
|
onClick={[Function]}
|
|
491
484
|
onResponderGrant={[Function]}
|
|
492
485
|
onResponderMove={[Function]}
|
|
@@ -530,7 +523,6 @@ exports[`Toast renders correctly when intent is notification 1`] = `
|
|
|
530
523
|
exports[`Toast renders correctly when intent is snackbar 1`] = `
|
|
531
524
|
<View
|
|
532
525
|
collapsable={false}
|
|
533
|
-
nativeID="animatedComponent"
|
|
534
526
|
style={
|
|
535
527
|
Object {
|
|
536
528
|
"backgroundColor": "#001f23",
|
|
@@ -608,7 +600,6 @@ exports[`Toast renders correctly when intent is snackbar 1`] = `
|
|
|
608
600
|
accessible={true}
|
|
609
601
|
collapsable={false}
|
|
610
602
|
focusable={true}
|
|
611
|
-
nativeID="animatedComponent"
|
|
612
603
|
onClick={[Function]}
|
|
613
604
|
onResponderGrant={[Function]}
|
|
614
605
|
onResponderMove={[Function]}
|
|
@@ -652,7 +643,6 @@ exports[`Toast renders correctly when intent is snackbar 1`] = `
|
|
|
652
643
|
exports[`Toast renders correctly when intent is success 1`] = `
|
|
653
644
|
<View
|
|
654
645
|
collapsable={false}
|
|
655
|
-
nativeID="animatedComponent"
|
|
656
646
|
style={
|
|
657
647
|
Object {
|
|
658
648
|
"backgroundColor": "#5ace7d",
|
|
@@ -757,7 +747,6 @@ exports[`Toast renders correctly when intent is success 1`] = `
|
|
|
757
747
|
accessible={true}
|
|
758
748
|
collapsable={false}
|
|
759
749
|
focusable={true}
|
|
760
|
-
nativeID="animatedComponent"
|
|
761
750
|
onClick={[Function]}
|
|
762
751
|
onResponderGrant={[Function]}
|
|
763
752
|
onResponderMove={[Function]}
|
|
@@ -801,7 +790,6 @@ exports[`Toast renders correctly when intent is success 1`] = `
|
|
|
801
790
|
exports[`Toast renders correctly when intent is warning 1`] = `
|
|
802
791
|
<View
|
|
803
792
|
collapsable={false}
|
|
804
|
-
nativeID="animatedComponent"
|
|
805
793
|
style={
|
|
806
794
|
Object {
|
|
807
795
|
"backgroundColor": "#ffbe71",
|
|
@@ -906,7 +894,6 @@ exports[`Toast renders correctly when intent is warning 1`] = `
|
|
|
906
894
|
accessible={true}
|
|
907
895
|
collapsable={false}
|
|
908
896
|
focusable={true}
|
|
909
|
-
nativeID="animatedComponent"
|
|
910
897
|
onClick={[Function]}
|
|
911
898
|
onResponderGrant={[Function]}
|
|
912
899
|
onResponderMove={[Function]}
|
|
@@ -16,10 +16,14 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
|
|
|
16
16
|
}
|
|
17
17
|
>
|
|
18
18
|
<View
|
|
19
|
+
accessibilityState={
|
|
20
|
+
Object {
|
|
21
|
+
"disabled": false,
|
|
22
|
+
}
|
|
23
|
+
}
|
|
19
24
|
accessible={true}
|
|
20
25
|
collapsable={false}
|
|
21
26
|
focusable={true}
|
|
22
|
-
nativeID="animatedComponent"
|
|
23
27
|
onClick={[Function]}
|
|
24
28
|
onResponderGrant={[Function]}
|
|
25
29
|
onResponderMove={[Function]}
|
|
@@ -73,10 +77,14 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
|
|
|
73
77
|
</Text>
|
|
74
78
|
</View>
|
|
75
79
|
<View
|
|
80
|
+
accessibilityState={
|
|
81
|
+
Object {
|
|
82
|
+
"disabled": false,
|
|
83
|
+
}
|
|
84
|
+
}
|
|
76
85
|
accessible={true}
|
|
77
86
|
collapsable={false}
|
|
78
87
|
focusable={true}
|
|
79
|
-
nativeID="animatedComponent"
|
|
80
88
|
onClick={[Function]}
|
|
81
89
|
onResponderGrant={[Function]}
|
|
82
90
|
onResponderMove={[Function]}
|
|
@@ -148,10 +156,14 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
|
|
|
148
156
|
}
|
|
149
157
|
>
|
|
150
158
|
<View
|
|
159
|
+
accessibilityState={
|
|
160
|
+
Object {
|
|
161
|
+
"disabled": false,
|
|
162
|
+
}
|
|
163
|
+
}
|
|
151
164
|
accessible={true}
|
|
152
165
|
collapsable={false}
|
|
153
166
|
focusable={true}
|
|
154
|
-
nativeID="animatedComponent"
|
|
155
167
|
onClick={[Function]}
|
|
156
168
|
onResponderGrant={[Function]}
|
|
157
169
|
onResponderMove={[Function]}
|
|
@@ -205,10 +217,14 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
|
|
|
205
217
|
</Text>
|
|
206
218
|
</View>
|
|
207
219
|
<View
|
|
220
|
+
accessibilityState={
|
|
221
|
+
Object {
|
|
222
|
+
"disabled": false,
|
|
223
|
+
}
|
|
224
|
+
}
|
|
208
225
|
accessible={true}
|
|
209
226
|
collapsable={false}
|
|
210
227
|
focusable={true}
|
|
211
|
-
nativeID="animatedComponent"
|
|
212
228
|
onClick={[Function]}
|
|
213
229
|
onResponderGrant={[Function]}
|
|
214
230
|
onResponderMove={[Function]}
|
|
@@ -280,10 +296,14 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
|
|
|
280
296
|
}
|
|
281
297
|
>
|
|
282
298
|
<View
|
|
299
|
+
accessibilityState={
|
|
300
|
+
Object {
|
|
301
|
+
"disabled": false,
|
|
302
|
+
}
|
|
303
|
+
}
|
|
283
304
|
accessible={true}
|
|
284
305
|
collapsable={false}
|
|
285
306
|
focusable={true}
|
|
286
|
-
nativeID="animatedComponent"
|
|
287
307
|
onClick={[Function]}
|
|
288
308
|
onResponderGrant={[Function]}
|
|
289
309
|
onResponderMove={[Function]}
|
|
@@ -337,10 +357,14 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
|
|
|
337
357
|
</Text>
|
|
338
358
|
</View>
|
|
339
359
|
<View
|
|
360
|
+
accessibilityState={
|
|
361
|
+
Object {
|
|
362
|
+
"disabled": false,
|
|
363
|
+
}
|
|
364
|
+
}
|
|
340
365
|
accessible={true}
|
|
341
366
|
collapsable={false}
|
|
342
367
|
focusable={true}
|
|
343
|
-
nativeID="animatedComponent"
|
|
344
368
|
onClick={[Function]}
|
|
345
369
|
onResponderGrant={[Function]}
|
|
346
370
|
onResponderMove={[Function]}
|
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`ToolbarItems renders correctly when disabled 1`] = `
|
|
4
4
|
<View
|
|
5
|
+
accessibilityState={
|
|
6
|
+
Object {
|
|
7
|
+
"disabled": true,
|
|
8
|
+
}
|
|
9
|
+
}
|
|
5
10
|
accessible={true}
|
|
6
11
|
collapsable={false}
|
|
7
12
|
focusable={true}
|
|
8
|
-
nativeID="animatedComponent"
|
|
9
13
|
onClick={[Function]}
|
|
10
14
|
onResponderGrant={[Function]}
|
|
11
15
|
onResponderMove={[Function]}
|
|
@@ -62,10 +66,14 @@ exports[`ToolbarItems renders correctly when disabled 1`] = `
|
|
|
62
66
|
|
|
63
67
|
exports[`ToolbarItems renders correctly when intent is danger 1`] = `
|
|
64
68
|
<View
|
|
69
|
+
accessibilityState={
|
|
70
|
+
Object {
|
|
71
|
+
"disabled": false,
|
|
72
|
+
}
|
|
73
|
+
}
|
|
65
74
|
accessible={true}
|
|
66
75
|
collapsable={false}
|
|
67
76
|
focusable={true}
|
|
68
|
-
nativeID="animatedComponent"
|
|
69
77
|
onClick={[Function]}
|
|
70
78
|
onResponderGrant={[Function]}
|
|
71
79
|
onResponderMove={[Function]}
|
|
@@ -122,10 +130,14 @@ exports[`ToolbarItems renders correctly when intent is danger 1`] = `
|
|
|
122
130
|
|
|
123
131
|
exports[`ToolbarItems renders correctly when intent is info 1`] = `
|
|
124
132
|
<View
|
|
133
|
+
accessibilityState={
|
|
134
|
+
Object {
|
|
135
|
+
"disabled": false,
|
|
136
|
+
}
|
|
137
|
+
}
|
|
125
138
|
accessible={true}
|
|
126
139
|
collapsable={false}
|
|
127
140
|
focusable={true}
|
|
128
|
-
nativeID="animatedComponent"
|
|
129
141
|
onClick={[Function]}
|
|
130
142
|
onResponderGrant={[Function]}
|
|
131
143
|
onResponderMove={[Function]}
|
|
@@ -182,10 +194,14 @@ exports[`ToolbarItems renders correctly when intent is info 1`] = `
|
|
|
182
194
|
|
|
183
195
|
exports[`ToolbarItems renders correctly when intent is primary 1`] = `
|
|
184
196
|
<View
|
|
197
|
+
accessibilityState={
|
|
198
|
+
Object {
|
|
199
|
+
"disabled": false,
|
|
200
|
+
}
|
|
201
|
+
}
|
|
185
202
|
accessible={true}
|
|
186
203
|
collapsable={false}
|
|
187
204
|
focusable={true}
|
|
188
|
-
nativeID="animatedComponent"
|
|
189
205
|
onClick={[Function]}
|
|
190
206
|
onResponderGrant={[Function]}
|
|
191
207
|
onResponderMove={[Function]}
|
|
@@ -242,10 +258,14 @@ exports[`ToolbarItems renders correctly when intent is primary 1`] = `
|
|
|
242
258
|
|
|
243
259
|
exports[`ToolbarItems renders correctly when intent is success 1`] = `
|
|
244
260
|
<View
|
|
261
|
+
accessibilityState={
|
|
262
|
+
Object {
|
|
263
|
+
"disabled": false,
|
|
264
|
+
}
|
|
265
|
+
}
|
|
245
266
|
accessible={true}
|
|
246
267
|
collapsable={false}
|
|
247
268
|
focusable={true}
|
|
248
|
-
nativeID="animatedComponent"
|
|
249
269
|
onClick={[Function]}
|
|
250
270
|
onResponderGrant={[Function]}
|
|
251
271
|
onResponderMove={[Function]}
|
|
@@ -302,10 +322,14 @@ exports[`ToolbarItems renders correctly when intent is success 1`] = `
|
|
|
302
322
|
|
|
303
323
|
exports[`ToolbarItems renders correctly when intent is warning 1`] = `
|
|
304
324
|
<View
|
|
325
|
+
accessibilityState={
|
|
326
|
+
Object {
|
|
327
|
+
"disabled": false,
|
|
328
|
+
}
|
|
329
|
+
}
|
|
305
330
|
accessible={true}
|
|
306
331
|
collapsable={false}
|
|
307
332
|
focusable={true}
|
|
308
|
-
nativeID="animatedComponent"
|
|
309
333
|
onClick={[Function]}
|
|
310
334
|
onResponderGrant={[Function]}
|
|
311
335
|
onResponderMove={[Function]}
|
|
@@ -4,6 +4,7 @@ declare const Container: import("@emotion/native").StyledComponent<ViewProps & {
|
|
|
4
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
5
|
as?: import("react").ElementType<any> | undefined;
|
|
6
6
|
} & {
|
|
7
|
+
themeVariant: 'rounded' | 'unrounded';
|
|
7
8
|
themeIntent: 'success' | 'info' | 'warning' | 'error' | 'notification';
|
|
8
9
|
}, {}, {
|
|
9
10
|
ref?: import("react").Ref<View> | undefined;
|
|
@@ -25,6 +25,10 @@ interface AlertProps {
|
|
|
25
25
|
* Closing callback. When onClose is available, an X button will be rendered on the right side of alert. The callback will be called when user clicks on X button.
|
|
26
26
|
*/
|
|
27
27
|
onClose?: () => void;
|
|
28
|
+
/**
|
|
29
|
+
* Alert variant.
|
|
30
|
+
*/
|
|
31
|
+
variant?: 'unrounded' | 'rounded';
|
|
28
32
|
/**
|
|
29
33
|
* Addtional style.
|
|
30
34
|
*/
|
|
@@ -34,5 +38,5 @@ interface AlertProps {
|
|
|
34
38
|
*/
|
|
35
39
|
testID?: string;
|
|
36
40
|
}
|
|
37
|
-
declare const Alert: ({ content, icon, title, intent, onClose, style, testID, }: AlertProps) => JSX.Element;
|
|
41
|
+
declare const Alert: ({ content, icon, title, intent, onClose, variant, style, testID, }: AlertProps) => JSX.Element;
|
|
38
42
|
export default Alert;
|