@hero-design/rn 8.0.2 → 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/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +55 -48
- package/jest.config.js +1 -1
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +55 -48
- 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/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +2 -0
- 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
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
|
@@ -14,6 +14,7 @@ exports[`Alert Icon render custom icon correctly 1`] = `
|
|
|
14
14
|
]
|
|
15
15
|
}
|
|
16
16
|
themeIntent="info"
|
|
17
|
+
themeVariant="rounded"
|
|
17
18
|
>
|
|
18
19
|
<View
|
|
19
20
|
showDivider={false}
|
|
@@ -107,6 +108,7 @@ exports[`Alert renders correctly when intent is error 1`] = `
|
|
|
107
108
|
]
|
|
108
109
|
}
|
|
109
110
|
themeIntent="error"
|
|
111
|
+
themeVariant="rounded"
|
|
110
112
|
>
|
|
111
113
|
<View
|
|
112
114
|
showDivider={true}
|
|
@@ -207,7 +209,6 @@ exports[`Alert renders correctly when intent is error 1`] = `
|
|
|
207
209
|
accessible={true}
|
|
208
210
|
collapsable={false}
|
|
209
211
|
focusable={true}
|
|
210
|
-
nativeID="animatedComponent"
|
|
211
212
|
onClick={[Function]}
|
|
212
213
|
onResponderGrant={[Function]}
|
|
213
214
|
onResponderMove={[Function]}
|
|
@@ -256,6 +257,7 @@ exports[`Alert renders correctly when intent is info 1`] = `
|
|
|
256
257
|
]
|
|
257
258
|
}
|
|
258
259
|
themeIntent="info"
|
|
260
|
+
themeVariant="rounded"
|
|
259
261
|
>
|
|
260
262
|
<View
|
|
261
263
|
showDivider={true}
|
|
@@ -356,7 +358,6 @@ exports[`Alert renders correctly when intent is info 1`] = `
|
|
|
356
358
|
accessible={true}
|
|
357
359
|
collapsable={false}
|
|
358
360
|
focusable={true}
|
|
359
|
-
nativeID="animatedComponent"
|
|
360
361
|
onClick={[Function]}
|
|
361
362
|
onResponderGrant={[Function]}
|
|
362
363
|
onResponderMove={[Function]}
|
|
@@ -405,6 +406,7 @@ exports[`Alert renders correctly when intent is notification 1`] = `
|
|
|
405
406
|
]
|
|
406
407
|
}
|
|
407
408
|
themeIntent="notification"
|
|
409
|
+
themeVariant="rounded"
|
|
408
410
|
>
|
|
409
411
|
<View
|
|
410
412
|
showDivider={true}
|
|
@@ -478,7 +480,6 @@ exports[`Alert renders correctly when intent is notification 1`] = `
|
|
|
478
480
|
accessible={true}
|
|
479
481
|
collapsable={false}
|
|
480
482
|
focusable={true}
|
|
481
|
-
nativeID="animatedComponent"
|
|
482
483
|
onClick={[Function]}
|
|
483
484
|
onResponderGrant={[Function]}
|
|
484
485
|
onResponderMove={[Function]}
|
|
@@ -527,6 +528,7 @@ exports[`Alert renders correctly when intent is success 1`] = `
|
|
|
527
528
|
]
|
|
528
529
|
}
|
|
529
530
|
themeIntent="success"
|
|
531
|
+
themeVariant="rounded"
|
|
530
532
|
>
|
|
531
533
|
<View
|
|
532
534
|
showDivider={true}
|
|
@@ -627,7 +629,6 @@ exports[`Alert renders correctly when intent is success 1`] = `
|
|
|
627
629
|
accessible={true}
|
|
628
630
|
collapsable={false}
|
|
629
631
|
focusable={true}
|
|
630
|
-
nativeID="animatedComponent"
|
|
631
632
|
onClick={[Function]}
|
|
632
633
|
onResponderGrant={[Function]}
|
|
633
634
|
onResponderMove={[Function]}
|
|
@@ -676,6 +677,7 @@ exports[`Alert renders correctly when intent is warning 1`] = `
|
|
|
676
677
|
]
|
|
677
678
|
}
|
|
678
679
|
themeIntent="warning"
|
|
680
|
+
themeVariant="rounded"
|
|
679
681
|
>
|
|
680
682
|
<View
|
|
681
683
|
showDivider={true}
|
|
@@ -776,7 +778,6 @@ exports[`Alert renders correctly when intent is warning 1`] = `
|
|
|
776
778
|
accessible={true}
|
|
777
779
|
collapsable={false}
|
|
778
780
|
focusable={true}
|
|
779
|
-
nativeID="animatedComponent"
|
|
780
781
|
onClick={[Function]}
|
|
781
782
|
onResponderGrant={[Function]}
|
|
782
783
|
onResponderMove={[Function]}
|
|
@@ -810,3 +811,117 @@ exports[`Alert renders correctly when intent is warning 1`] = `
|
|
|
810
811
|
</View>
|
|
811
812
|
</View>
|
|
812
813
|
`;
|
|
814
|
+
|
|
815
|
+
exports[`Alert renders correctly without rounded 1`] = `
|
|
816
|
+
<View
|
|
817
|
+
style={
|
|
818
|
+
Array [
|
|
819
|
+
Object {
|
|
820
|
+
"backgroundColor": "#b5c3fd",
|
|
821
|
+
"borderRadius": 0,
|
|
822
|
+
"flexDirection": "row",
|
|
823
|
+
"minHeight": 48,
|
|
824
|
+
},
|
|
825
|
+
undefined,
|
|
826
|
+
]
|
|
827
|
+
}
|
|
828
|
+
themeIntent="info"
|
|
829
|
+
themeVariant="unrounded"
|
|
830
|
+
>
|
|
831
|
+
<View
|
|
832
|
+
showDivider={false}
|
|
833
|
+
style={
|
|
834
|
+
Array [
|
|
835
|
+
Object {
|
|
836
|
+
"borderColor": "#e8e9ea",
|
|
837
|
+
"borderRightWidth": 0,
|
|
838
|
+
"flex": 1,
|
|
839
|
+
"flexDirection": "row",
|
|
840
|
+
"paddingVertical": 12,
|
|
841
|
+
},
|
|
842
|
+
undefined,
|
|
843
|
+
]
|
|
844
|
+
}
|
|
845
|
+
>
|
|
846
|
+
<View
|
|
847
|
+
style={
|
|
848
|
+
Array [
|
|
849
|
+
Object {
|
|
850
|
+
"alignItems": "center",
|
|
851
|
+
"paddingLeft": 12,
|
|
852
|
+
},
|
|
853
|
+
undefined,
|
|
854
|
+
]
|
|
855
|
+
}
|
|
856
|
+
testID="alert-left-icon"
|
|
857
|
+
>
|
|
858
|
+
<HeroIcon
|
|
859
|
+
name="circle-info"
|
|
860
|
+
style={
|
|
861
|
+
Array [
|
|
862
|
+
Object {
|
|
863
|
+
"color": "#001f23",
|
|
864
|
+
"fontSize": 20,
|
|
865
|
+
},
|
|
866
|
+
undefined,
|
|
867
|
+
]
|
|
868
|
+
}
|
|
869
|
+
themeIntent="text"
|
|
870
|
+
themeSize="small"
|
|
871
|
+
/>
|
|
872
|
+
</View>
|
|
873
|
+
<View
|
|
874
|
+
style={
|
|
875
|
+
Array [
|
|
876
|
+
Object {
|
|
877
|
+
"flex": 1,
|
|
878
|
+
"paddingHorizontal": 12,
|
|
879
|
+
},
|
|
880
|
+
undefined,
|
|
881
|
+
]
|
|
882
|
+
}
|
|
883
|
+
>
|
|
884
|
+
<Text
|
|
885
|
+
style={
|
|
886
|
+
Array [
|
|
887
|
+
Object {
|
|
888
|
+
"color": "#001f23",
|
|
889
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
890
|
+
"fontSize": 14,
|
|
891
|
+
"letterSpacing": 0.42,
|
|
892
|
+
"lineHeight": 22,
|
|
893
|
+
},
|
|
894
|
+
undefined,
|
|
895
|
+
]
|
|
896
|
+
}
|
|
897
|
+
themeFontSize="medium"
|
|
898
|
+
themeFontWeight="semi-bold"
|
|
899
|
+
themeIntent="body"
|
|
900
|
+
themeTypeface="neutral"
|
|
901
|
+
>
|
|
902
|
+
Title
|
|
903
|
+
</Text>
|
|
904
|
+
<Text
|
|
905
|
+
style={
|
|
906
|
+
Array [
|
|
907
|
+
Object {
|
|
908
|
+
"color": "#001f23",
|
|
909
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
910
|
+
"fontSize": 14,
|
|
911
|
+
"letterSpacing": 0.42,
|
|
912
|
+
"lineHeight": 22,
|
|
913
|
+
},
|
|
914
|
+
undefined,
|
|
915
|
+
]
|
|
916
|
+
}
|
|
917
|
+
themeFontSize="medium"
|
|
918
|
+
themeFontWeight="regular"
|
|
919
|
+
themeIntent="body"
|
|
920
|
+
themeTypeface="neutral"
|
|
921
|
+
>
|
|
922
|
+
Content
|
|
923
|
+
</Text>
|
|
924
|
+
</View>
|
|
925
|
+
</View>
|
|
926
|
+
</View>
|
|
927
|
+
`;
|
|
@@ -29,6 +29,20 @@ describe('Alert', () => {
|
|
|
29
29
|
expect(getByTestId('alert-close-icon')).toBeDefined();
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
+
it('renders correctly without rounded ', () => {
|
|
33
|
+
const { toJSON, getByTestId, getByText, queryByTestId } = renderWithTheme(
|
|
34
|
+
<Alert title="Title" content="Content" variant="unrounded" />
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
expect(toJSON()).toMatchSnapshot();
|
|
38
|
+
// Has default icon
|
|
39
|
+
expect(getByTestId('alert-left-icon')).toBeDefined();
|
|
40
|
+
|
|
41
|
+
expect(getByText('Title')).toBeDefined();
|
|
42
|
+
expect(getByText('Content')).toBeDefined();
|
|
43
|
+
expect(queryByTestId('alert-close-icon')).toBeNull();
|
|
44
|
+
});
|
|
45
|
+
|
|
32
46
|
it('renders correctly when intent is notification', () => {
|
|
33
47
|
const { toJSON, getByText, queryByTestId } = renderWithTheme(
|
|
34
48
|
<Alert
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { ReactElement } from 'react';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import type { ReactElement } from 'react';
|
|
3
3
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
-
import type { IconName } from '../Icon';
|
|
5
4
|
import Icon from '../Icon';
|
|
6
5
|
import Typography from '../Typography';
|
|
7
6
|
import {
|
|
@@ -11,6 +10,7 @@ import {
|
|
|
11
10
|
IconContainer,
|
|
12
11
|
TextContainer,
|
|
13
12
|
} from './StyledAlert';
|
|
13
|
+
import type { IconName } from '../Icon';
|
|
14
14
|
|
|
15
15
|
const getIntentIcon = (
|
|
16
16
|
intent: 'success' | 'info' | 'warning' | 'error' | 'notification'
|
|
@@ -60,6 +60,10 @@ interface AlertProps {
|
|
|
60
60
|
* 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.
|
|
61
61
|
*/
|
|
62
62
|
onClose?: () => void;
|
|
63
|
+
/**
|
|
64
|
+
* Alert variant.
|
|
65
|
+
*/
|
|
66
|
+
variant?: 'unrounded' | 'rounded';
|
|
63
67
|
/**
|
|
64
68
|
* Addtional style.
|
|
65
69
|
*/
|
|
@@ -76,11 +80,17 @@ const Alert = ({
|
|
|
76
80
|
title,
|
|
77
81
|
intent = 'info',
|
|
78
82
|
onClose,
|
|
83
|
+
variant = 'rounded',
|
|
79
84
|
style,
|
|
80
85
|
testID,
|
|
81
86
|
}: AlertProps): JSX.Element => {
|
|
82
87
|
return (
|
|
83
|
-
<Container
|
|
88
|
+
<Container
|
|
89
|
+
themeVariant={variant}
|
|
90
|
+
themeIntent={intent}
|
|
91
|
+
style={style}
|
|
92
|
+
testID={testID}
|
|
93
|
+
>
|
|
84
94
|
<ContentContainer showDivider={!!onClose}>
|
|
85
95
|
{icon !== null ? (
|
|
86
96
|
<AlertIcon icon={icon || getIntentIcon(intent)} />
|
|
@@ -87,7 +87,6 @@ exports[`Attachment renders correctly 1`] = `
|
|
|
87
87
|
accessible={true}
|
|
88
88
|
collapsable={false}
|
|
89
89
|
focusable={true}
|
|
90
|
-
nativeID="animatedComponent"
|
|
91
90
|
onClick={[Function]}
|
|
92
91
|
onResponderGrant={[Function]}
|
|
93
92
|
onResponderMove={[Function]}
|
|
@@ -123,7 +122,6 @@ exports[`Attachment renders correctly 1`] = `
|
|
|
123
122
|
accessible={true}
|
|
124
123
|
collapsable={false}
|
|
125
124
|
focusable={true}
|
|
126
|
-
nativeID="animatedComponent"
|
|
127
125
|
onClick={[Function]}
|
|
128
126
|
onResponderGrant={[Function]}
|
|
129
127
|
onResponderMove={[Function]}
|
package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap
CHANGED
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`StyledAvatar renders correctly 1`] = `
|
|
4
4
|
<View
|
|
5
|
+
accessibilityState={
|
|
6
|
+
Object {
|
|
7
|
+
"disabled": true,
|
|
8
|
+
}
|
|
9
|
+
}
|
|
5
10
|
accessible={true}
|
|
6
11
|
collapsable={false}
|
|
7
12
|
focusable={false}
|
|
8
|
-
nativeID="animatedComponent"
|
|
9
13
|
onClick={[Function]}
|
|
10
14
|
onResponderGrant={[Function]}
|
|
11
15
|
onResponderMove={[Function]}
|
|
@@ -17,10 +17,14 @@ exports[`AvatarStack renders correctly by default 1`] = `
|
|
|
17
17
|
themeSize="small"
|
|
18
18
|
>
|
|
19
19
|
<View
|
|
20
|
+
accessibilityState={
|
|
21
|
+
Object {
|
|
22
|
+
"disabled": true,
|
|
23
|
+
}
|
|
24
|
+
}
|
|
20
25
|
accessible={true}
|
|
21
26
|
collapsable={false}
|
|
22
27
|
focusable={false}
|
|
23
|
-
nativeID="animatedComponent"
|
|
24
28
|
onClick={[Function]}
|
|
25
29
|
onResponderGrant={[Function]}
|
|
26
30
|
onResponderMove={[Function]}
|
|
@@ -74,10 +78,14 @@ exports[`AvatarStack renders correctly by default 1`] = `
|
|
|
74
78
|
</View>
|
|
75
79
|
</View>
|
|
76
80
|
<View
|
|
81
|
+
accessibilityState={
|
|
82
|
+
Object {
|
|
83
|
+
"disabled": true,
|
|
84
|
+
}
|
|
85
|
+
}
|
|
77
86
|
accessible={true}
|
|
78
87
|
collapsable={false}
|
|
79
88
|
focusable={false}
|
|
80
|
-
nativeID="animatedComponent"
|
|
81
89
|
onClick={[Function]}
|
|
82
90
|
onResponderGrant={[Function]}
|
|
83
91
|
onResponderMove={[Function]}
|
|
@@ -131,10 +139,14 @@ exports[`AvatarStack renders correctly by default 1`] = `
|
|
|
131
139
|
</View>
|
|
132
140
|
</View>
|
|
133
141
|
<View
|
|
142
|
+
accessibilityState={
|
|
143
|
+
Object {
|
|
144
|
+
"disabled": true,
|
|
145
|
+
}
|
|
146
|
+
}
|
|
134
147
|
accessible={true}
|
|
135
148
|
collapsable={false}
|
|
136
149
|
focusable={false}
|
|
137
|
-
nativeID="animatedComponent"
|
|
138
150
|
onClick={[Function]}
|
|
139
151
|
onResponderGrant={[Function]}
|
|
140
152
|
onResponderMove={[Function]}
|
|
@@ -188,10 +200,14 @@ exports[`AvatarStack renders correctly by default 1`] = `
|
|
|
188
200
|
</View>
|
|
189
201
|
</View>
|
|
190
202
|
<View
|
|
203
|
+
accessibilityState={
|
|
204
|
+
Object {
|
|
205
|
+
"disabled": true,
|
|
206
|
+
}
|
|
207
|
+
}
|
|
191
208
|
accessible={true}
|
|
192
209
|
collapsable={false}
|
|
193
210
|
focusable={false}
|
|
194
|
-
nativeID="animatedComponent"
|
|
195
211
|
onClick={[Function]}
|
|
196
212
|
onResponderGrant={[Function]}
|
|
197
213
|
onResponderMove={[Function]}
|
|
@@ -245,10 +261,14 @@ exports[`AvatarStack renders correctly by default 1`] = `
|
|
|
245
261
|
</View>
|
|
246
262
|
</View>
|
|
247
263
|
<View
|
|
264
|
+
accessibilityState={
|
|
265
|
+
Object {
|
|
266
|
+
"disabled": true,
|
|
267
|
+
}
|
|
268
|
+
}
|
|
248
269
|
accessible={true}
|
|
249
270
|
collapsable={false}
|
|
250
271
|
focusable={false}
|
|
251
|
-
nativeID="animatedComponent"
|
|
252
272
|
onClick={[Function]}
|
|
253
273
|
onResponderGrant={[Function]}
|
|
254
274
|
onResponderMove={[Function]}
|
|
@@ -321,10 +341,14 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
|
|
|
321
341
|
themeSize="medium"
|
|
322
342
|
>
|
|
323
343
|
<View
|
|
344
|
+
accessibilityState={
|
|
345
|
+
Object {
|
|
346
|
+
"disabled": true,
|
|
347
|
+
}
|
|
348
|
+
}
|
|
324
349
|
accessible={true}
|
|
325
350
|
collapsable={false}
|
|
326
351
|
focusable={false}
|
|
327
|
-
nativeID="animatedComponent"
|
|
328
352
|
onClick={[Function]}
|
|
329
353
|
onResponderGrant={[Function]}
|
|
330
354
|
onResponderMove={[Function]}
|
|
@@ -378,10 +402,14 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
|
|
|
378
402
|
</View>
|
|
379
403
|
</View>
|
|
380
404
|
<View
|
|
405
|
+
accessibilityState={
|
|
406
|
+
Object {
|
|
407
|
+
"disabled": true,
|
|
408
|
+
}
|
|
409
|
+
}
|
|
381
410
|
accessible={true}
|
|
382
411
|
collapsable={false}
|
|
383
412
|
focusable={false}
|
|
384
|
-
nativeID="animatedComponent"
|
|
385
413
|
onClick={[Function]}
|
|
386
414
|
onResponderGrant={[Function]}
|
|
387
415
|
onResponderMove={[Function]}
|
|
@@ -435,10 +463,14 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
|
|
|
435
463
|
</View>
|
|
436
464
|
</View>
|
|
437
465
|
<View
|
|
466
|
+
accessibilityState={
|
|
467
|
+
Object {
|
|
468
|
+
"disabled": true,
|
|
469
|
+
}
|
|
470
|
+
}
|
|
438
471
|
accessible={true}
|
|
439
472
|
collapsable={false}
|
|
440
473
|
focusable={false}
|
|
441
|
-
nativeID="animatedComponent"
|
|
442
474
|
onClick={[Function]}
|
|
443
475
|
onResponderGrant={[Function]}
|
|
444
476
|
onResponderMove={[Function]}
|
|
@@ -492,10 +524,14 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
|
|
|
492
524
|
</View>
|
|
493
525
|
</View>
|
|
494
526
|
<View
|
|
527
|
+
accessibilityState={
|
|
528
|
+
Object {
|
|
529
|
+
"disabled": true,
|
|
530
|
+
}
|
|
531
|
+
}
|
|
495
532
|
accessible={true}
|
|
496
533
|
collapsable={false}
|
|
497
534
|
focusable={false}
|
|
498
|
-
nativeID="animatedComponent"
|
|
499
535
|
onClick={[Function]}
|
|
500
536
|
onResponderGrant={[Function]}
|
|
501
537
|
onResponderMove={[Function]}
|
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Avatar fallbacks to title when there image failed to load 1`] = `
|
|
4
4
|
<View
|
|
5
|
+
accessibilityState={
|
|
6
|
+
Object {
|
|
7
|
+
"disabled": true,
|
|
8
|
+
}
|
|
9
|
+
}
|
|
5
10
|
accessible={true}
|
|
11
|
+
collapsable={false}
|
|
6
12
|
focusable={false}
|
|
7
13
|
onClick={[Function]}
|
|
8
14
|
onResponderGrant={[Function]}
|
|
@@ -79,10 +85,14 @@ exports[`Avatar fallbacks to title when there image failed to load 1`] = `
|
|
|
79
85
|
|
|
80
86
|
exports[`Avatar prioritizes source over title 1`] = `
|
|
81
87
|
<View
|
|
88
|
+
accessibilityState={
|
|
89
|
+
Object {
|
|
90
|
+
"disabled": true,
|
|
91
|
+
}
|
|
92
|
+
}
|
|
82
93
|
accessible={true}
|
|
83
94
|
collapsable={false}
|
|
84
95
|
focusable={false}
|
|
85
|
-
nativeID="animatedComponent"
|
|
86
96
|
onClick={[Function]}
|
|
87
97
|
onResponderGrant={[Function]}
|
|
88
98
|
onResponderMove={[Function]}
|
|
@@ -128,10 +138,14 @@ exports[`Avatar prioritizes source over title 1`] = `
|
|
|
128
138
|
|
|
129
139
|
exports[`Avatar shows title when there is no source 1`] = `
|
|
130
140
|
<View
|
|
141
|
+
accessibilityState={
|
|
142
|
+
Object {
|
|
143
|
+
"disabled": true,
|
|
144
|
+
}
|
|
145
|
+
}
|
|
131
146
|
accessible={true}
|
|
132
147
|
collapsable={false}
|
|
133
148
|
focusable={false}
|
|
134
|
-
nativeID="animatedComponent"
|
|
135
149
|
onClick={[Function]}
|
|
136
150
|
onResponderGrant={[Function]}
|
|
137
151
|
onResponderMove={[Function]}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
exports[`Badge has danger style when intent is danger 1`] = `
|
|
4
4
|
<View
|
|
5
5
|
collapsable={false}
|
|
6
|
-
nativeID="animatedComponent"
|
|
7
6
|
style={
|
|
8
7
|
Object {
|
|
9
8
|
"alignItems": "center",
|
|
@@ -47,7 +46,6 @@ exports[`Badge has danger style when intent is danger 1`] = `
|
|
|
47
46
|
exports[`Badge has info style when intent is info 1`] = `
|
|
48
47
|
<View
|
|
49
48
|
collapsable={false}
|
|
50
|
-
nativeID="animatedComponent"
|
|
51
49
|
style={
|
|
52
50
|
Object {
|
|
53
51
|
"alignItems": "center",
|
|
@@ -91,7 +89,6 @@ exports[`Badge has info style when intent is info 1`] = `
|
|
|
91
89
|
exports[`Badge has info style when intent is primary 1`] = `
|
|
92
90
|
<View
|
|
93
91
|
collapsable={false}
|
|
94
|
-
nativeID="animatedComponent"
|
|
95
92
|
style={
|
|
96
93
|
Object {
|
|
97
94
|
"alignItems": "center",
|
|
@@ -135,7 +132,6 @@ exports[`Badge has info style when intent is primary 1`] = `
|
|
|
135
132
|
exports[`Badge has success style when intent is success 1`] = `
|
|
136
133
|
<View
|
|
137
134
|
collapsable={false}
|
|
138
|
-
nativeID="animatedComponent"
|
|
139
135
|
style={
|
|
140
136
|
Object {
|
|
141
137
|
"alignItems": "center",
|
|
@@ -179,7 +175,6 @@ exports[`Badge has success style when intent is success 1`] = `
|
|
|
179
175
|
exports[`Badge has warning style when intent is warning 1`] = `
|
|
180
176
|
<View
|
|
181
177
|
collapsable={false}
|
|
182
|
-
nativeID="animatedComponent"
|
|
183
178
|
style={
|
|
184
179
|
Object {
|
|
185
180
|
"alignItems": "center",
|
|
@@ -223,7 +218,6 @@ exports[`Badge has warning style when intent is warning 1`] = `
|
|
|
223
218
|
exports[`Badge renders correctly with custom props 1`] = `
|
|
224
219
|
<View
|
|
225
220
|
collapsable={false}
|
|
226
|
-
nativeID="animatedComponent"
|
|
227
221
|
style={
|
|
228
222
|
Object {
|
|
229
223
|
"alignItems": "center",
|
|
@@ -19,7 +19,6 @@ exports[`Status Badge renders correctly 1`] = `
|
|
|
19
19
|
/>
|
|
20
20
|
<View
|
|
21
21
|
collapsable={false}
|
|
22
|
-
nativeID="animatedComponent"
|
|
23
22
|
style={
|
|
24
23
|
Object {
|
|
25
24
|
"backgroundColor": "#de350b",
|
|
@@ -66,7 +65,6 @@ exports[`Status Badge renders correctly with intent 1`] = `
|
|
|
66
65
|
</Text>
|
|
67
66
|
<View
|
|
68
67
|
collapsable={false}
|
|
69
|
-
nativeID="animatedComponent"
|
|
70
68
|
style={
|
|
71
69
|
Object {
|
|
72
70
|
"backgroundColor": "#017d6d",
|