@hero-design/rn 7.16.2 → 7.17.1
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 +2 -2
- package/es/index.js +331 -259
- package/lib/index.js +330 -258
- package/package.json +2 -2
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +12 -12
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +18 -18
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +26 -26
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -3
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +1 -1
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -2
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +2 -2
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +1 -1
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +67 -67
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +12 -12
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +1 -1
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +1 -1
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +5 -5
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +12 -12
- package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +12 -12
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +28 -28
- package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -2
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +3 -3
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/List/BasicListItem.tsx +8 -4
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +3 -3
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +20 -20
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +6 -6
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +12 -12
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +4 -4
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +22 -22
- package/src/components/Progress/ProgressCircle.tsx +25 -22
- package/src/components/Progress/StyledProgressCircle.tsx +33 -28
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +102 -92
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +5 -5
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +6 -6
- package/src/components/Radio/__tests__/__snapshots__/StyledRadio.spec.tsx.snap +3 -3
- package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +11 -11
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +6 -6
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/Select/MultiSelect/Option.tsx +20 -11
- package/src/components/Select/MultiSelect/OptionList.tsx +47 -41
- package/src/components/Select/MultiSelect/__tests__/OptionList.spec.tsx +25 -14
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +6 -4
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +1638 -134
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +5312 -366
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +122 -1
- package/src/components/Select/MultiSelect/index.tsx +26 -36
- package/src/components/Select/SingleSelect/Option.tsx +19 -3
- package/src/components/Select/SingleSelect/OptionList.tsx +47 -39
- package/src/components/Select/SingleSelect/__tests__/OptionList.spec.tsx +23 -12
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +5 -3
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +1632 -128
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +4932 -302
- package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +117 -1
- package/src/components/Select/SingleSelect/index.tsx +26 -37
- package/src/components/Select/StyledOptionList.tsx +43 -44
- package/src/components/Select/StyledSelect.tsx +7 -3
- package/src/components/Select/__tests__/StyledSelect.spec.tsx +1 -9
- package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +2 -15
- package/src/components/Select/__tests__/helpers.spec.tsx +74 -0
- package/src/components/Select/helpers.tsx +87 -4
- package/src/components/Select/types.ts +99 -0
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +4 -4
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +8 -8
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/Switch/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +6 -6
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +8 -8
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +50 -50
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +241 -85
- package/src/components/TextInput/__tests__/index.spec.tsx +29 -8
- package/src/components/TextInput/index.tsx +18 -7
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +5 -5
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +12 -12
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +22 -22
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +8 -8
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +13 -13
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +145 -146
- package/src/theme/components/alert.ts +3 -3
- package/src/theme/components/badge.ts +1 -1
- package/src/theme/components/card.ts +4 -4
- package/src/theme/components/list.ts +4 -4
- package/src/theme/components/pinInput.ts +2 -2
- package/src/theme/components/progress.ts +5 -5
- package/src/theme/components/select.ts +3 -3
- package/src/theme/components/toast.ts +3 -3
- package/src/theme/global/colors.ts +40 -39
- package/src/types.ts +7 -1
- package/types/components/List/BasicListItem.d.ts +1 -1
- package/types/components/Progress/StyledProgressCircle.d.ts +12 -6
- package/types/components/Select/MultiSelect/Option.d.ts +4 -2
- package/types/components/Select/MultiSelect/OptionList.d.ts +6 -7
- package/types/components/Select/MultiSelect/index.d.ts +5 -5
- package/types/components/Select/SingleSelect/Option.d.ts +4 -2
- package/types/components/Select/SingleSelect/OptionList.d.ts +6 -7
- package/types/components/Select/SingleSelect/index.d.ts +5 -5
- package/types/components/Select/StyledOptionList.d.ts +10 -16
- package/types/components/Select/StyledSelect.d.ts +8 -2
- package/types/components/Select/__tests__/helpers.spec.d.ts +1 -0
- package/types/components/Select/helpers.d.ts +14 -2
- package/types/components/Select/index.d.ts +1 -1
- package/types/components/Select/types.d.ts +32 -7
- package/types/components/TextInput/index.d.ts +4 -2
- package/types/theme/components/progress.d.ts +1 -2
- package/types/theme/components/select.d.ts +3 -3
- package/types/types.d.ts +2 -1
- package/src/components/Select/types.tsx +0 -52
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
ListRenderItemInfo,
|
|
4
|
+
SectionListData,
|
|
5
|
+
SectionListRenderItemInfo,
|
|
6
|
+
StyleProp,
|
|
7
|
+
ViewStyle,
|
|
8
|
+
} from 'react-native';
|
|
9
|
+
import { TextInputProps } from '../TextInput';
|
|
10
|
+
|
|
11
|
+
export type OptionType<V> = {
|
|
12
|
+
value: V;
|
|
13
|
+
text: string;
|
|
14
|
+
key?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type SectionType = { category: string };
|
|
19
|
+
export type SectionData<V, T extends OptionType<V>> = SectionListData<
|
|
20
|
+
T,
|
|
21
|
+
SectionType
|
|
22
|
+
>;
|
|
23
|
+
|
|
24
|
+
export type CombinedOptionsType<V, T extends OptionType<V>> =
|
|
25
|
+
| T[]
|
|
26
|
+
| SectionData<V, T>[];
|
|
27
|
+
|
|
28
|
+
export type ListRenderOptionInfo<
|
|
29
|
+
V,
|
|
30
|
+
T extends OptionType<V>
|
|
31
|
+
> = ListRenderItemInfo<T> & { selected: boolean; onPress: () => void };
|
|
32
|
+
|
|
33
|
+
export type SectionListRenderOptionInfo<
|
|
34
|
+
V,
|
|
35
|
+
T extends OptionType<V>
|
|
36
|
+
> = SectionListRenderItemInfo<T, SectionType> & {
|
|
37
|
+
selected: boolean;
|
|
38
|
+
onPress: () => void;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export interface SelectProps<V, T extends OptionType<V>>
|
|
42
|
+
extends Pick<
|
|
43
|
+
TextInputProps,
|
|
44
|
+
'editable' | 'disabled' | 'numberOfLines' | 'error'
|
|
45
|
+
> {
|
|
46
|
+
/**
|
|
47
|
+
* An array of options to be selected.
|
|
48
|
+
*/
|
|
49
|
+
options: CombinedOptionsType<V, T>;
|
|
50
|
+
/**
|
|
51
|
+
* Customize option renderer.
|
|
52
|
+
*/
|
|
53
|
+
renderOption?:
|
|
54
|
+
| ((info: ListRenderOptionInfo<V, T>) => ReactElement)
|
|
55
|
+
| ((info: SectionListRenderOptionInfo<V, T>) => ReactElement);
|
|
56
|
+
/**
|
|
57
|
+
* Used to extract a unique key for a given option at the specified index. Key is used for caching and as the react key to track item re-ordering.
|
|
58
|
+
* The default extractor checks option.key, and then falls back to using the index, like React does.
|
|
59
|
+
*/
|
|
60
|
+
keyExtractor?: (option: T, index?: number) => string;
|
|
61
|
+
/**
|
|
62
|
+
* Current search value.
|
|
63
|
+
*/
|
|
64
|
+
query?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Search bar onChangeText event handler
|
|
67
|
+
*/
|
|
68
|
+
onQueryChange?: (value: string) => void;
|
|
69
|
+
/**
|
|
70
|
+
* Event handler when selection dismiss
|
|
71
|
+
*/
|
|
72
|
+
onDimiss?: () => void;
|
|
73
|
+
/**
|
|
74
|
+
* Event handler when end of the list reached
|
|
75
|
+
*/
|
|
76
|
+
onEndReached?: () => void;
|
|
77
|
+
/**
|
|
78
|
+
* Show loading indicator at bottom of option list
|
|
79
|
+
*/
|
|
80
|
+
loading?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Props that are passed to TextInput.
|
|
83
|
+
*/
|
|
84
|
+
inputProps?: {
|
|
85
|
+
loading?: boolean;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Field label.
|
|
89
|
+
*/
|
|
90
|
+
label: string;
|
|
91
|
+
/**
|
|
92
|
+
* Additional style.
|
|
93
|
+
*/
|
|
94
|
+
style?: StyleProp<ViewStyle>;
|
|
95
|
+
/**
|
|
96
|
+
* Testing id of the component.
|
|
97
|
+
*/
|
|
98
|
+
testID?: string;
|
|
99
|
+
}
|
|
@@ -34,7 +34,7 @@ exports[`AnimatedSpinner renders correctly 1`] = `
|
|
|
34
34
|
style={
|
|
35
35
|
Array [
|
|
36
36
|
Object {
|
|
37
|
-
"backgroundColor": "#
|
|
37
|
+
"backgroundColor": "#8505a2",
|
|
38
38
|
"borderRadius": 8,
|
|
39
39
|
"height": 16,
|
|
40
40
|
"opacity": 1,
|
|
@@ -51,7 +51,7 @@ exports[`AnimatedSpinner renders correctly 1`] = `
|
|
|
51
51
|
style={
|
|
52
52
|
Array [
|
|
53
53
|
Object {
|
|
54
|
-
"backgroundColor": "#
|
|
54
|
+
"backgroundColor": "#8505a2",
|
|
55
55
|
"borderRadius": 8,
|
|
56
56
|
"height": 16,
|
|
57
57
|
"marginLeft": 8,
|
|
@@ -84,7 +84,7 @@ exports[`AnimatedSpinner renders correctly 1`] = `
|
|
|
84
84
|
style={
|
|
85
85
|
Array [
|
|
86
86
|
Object {
|
|
87
|
-
"backgroundColor": "#
|
|
87
|
+
"backgroundColor": "#8505a2",
|
|
88
88
|
"borderRadius": 8,
|
|
89
89
|
"height": 16,
|
|
90
90
|
"opacity": 0.5,
|
|
@@ -101,7 +101,7 @@ exports[`AnimatedSpinner renders correctly 1`] = `
|
|
|
101
101
|
style={
|
|
102
102
|
Array [
|
|
103
103
|
Object {
|
|
104
|
-
"backgroundColor": "#
|
|
104
|
+
"backgroundColor": "#8505a2",
|
|
105
105
|
"borderRadius": 8,
|
|
106
106
|
"height": 16,
|
|
107
107
|
"marginLeft": 8,
|
|
@@ -46,7 +46,7 @@ exports[`StyledSpinnerContainer renders correctly 1`] = `
|
|
|
46
46
|
style={
|
|
47
47
|
Array [
|
|
48
48
|
Object {
|
|
49
|
-
"backgroundColor": "#
|
|
49
|
+
"backgroundColor": "#8505a2",
|
|
50
50
|
"borderRadius": 8,
|
|
51
51
|
"height": 16,
|
|
52
52
|
"opacity": 1,
|
|
@@ -63,7 +63,7 @@ exports[`StyledSpinnerContainer renders correctly 1`] = `
|
|
|
63
63
|
style={
|
|
64
64
|
Array [
|
|
65
65
|
Object {
|
|
66
|
-
"backgroundColor": "#
|
|
66
|
+
"backgroundColor": "#8505a2",
|
|
67
67
|
"borderRadius": 8,
|
|
68
68
|
"height": 16,
|
|
69
69
|
"marginLeft": 8,
|
|
@@ -96,7 +96,7 @@ exports[`StyledSpinnerContainer renders correctly 1`] = `
|
|
|
96
96
|
style={
|
|
97
97
|
Array [
|
|
98
98
|
Object {
|
|
99
|
-
"backgroundColor": "#
|
|
99
|
+
"backgroundColor": "#8505a2",
|
|
100
100
|
"borderRadius": 8,
|
|
101
101
|
"height": 16,
|
|
102
102
|
"opacity": 0.5,
|
|
@@ -113,7 +113,7 @@ exports[`StyledSpinnerContainer renders correctly 1`] = `
|
|
|
113
113
|
style={
|
|
114
114
|
Array [
|
|
115
115
|
Object {
|
|
116
|
-
"backgroundColor": "#
|
|
116
|
+
"backgroundColor": "#8505a2",
|
|
117
117
|
"borderRadius": 8,
|
|
118
118
|
"height": 16,
|
|
119
119
|
"marginLeft": 8,
|
|
@@ -165,7 +165,7 @@ exports[`StyledSpinnerText renders correctly when position is bottomLeft 1`] = `
|
|
|
165
165
|
style={
|
|
166
166
|
Array [
|
|
167
167
|
Object {
|
|
168
|
-
"backgroundColor": "#
|
|
168
|
+
"backgroundColor": "#8505a2",
|
|
169
169
|
"borderRadius": 8,
|
|
170
170
|
"height": 16,
|
|
171
171
|
"opacity": 0.5,
|
|
@@ -183,7 +183,7 @@ exports[`StyledSpinnerText renders correctly when position is bottomRight 1`] =
|
|
|
183
183
|
style={
|
|
184
184
|
Array [
|
|
185
185
|
Object {
|
|
186
|
-
"backgroundColor": "#
|
|
186
|
+
"backgroundColor": "#8505a2",
|
|
187
187
|
"borderRadius": 8,
|
|
188
188
|
"height": 16,
|
|
189
189
|
"marginLeft": 8,
|
|
@@ -202,7 +202,7 @@ exports[`StyledSpinnerText renders correctly when position is topLeft 1`] = `
|
|
|
202
202
|
style={
|
|
203
203
|
Array [
|
|
204
204
|
Object {
|
|
205
|
-
"backgroundColor": "#
|
|
205
|
+
"backgroundColor": "#8505a2",
|
|
206
206
|
"borderRadius": 8,
|
|
207
207
|
"height": 16,
|
|
208
208
|
"opacity": 1,
|
|
@@ -220,7 +220,7 @@ exports[`StyledSpinnerText renders correctly when position is topRight 1`] = `
|
|
|
220
220
|
style={
|
|
221
221
|
Array [
|
|
222
222
|
Object {
|
|
223
|
-
"backgroundColor": "#
|
|
223
|
+
"backgroundColor": "#8505a2",
|
|
224
224
|
"borderRadius": 8,
|
|
225
225
|
"height": 16,
|
|
226
226
|
"marginLeft": 8,
|
|
@@ -55,7 +55,7 @@ exports[`Spinner renders correctly 1`] = `
|
|
|
55
55
|
style={
|
|
56
56
|
Array [
|
|
57
57
|
Object {
|
|
58
|
-
"backgroundColor": "#
|
|
58
|
+
"backgroundColor": "#8505a2",
|
|
59
59
|
"borderRadius": 8,
|
|
60
60
|
"height": 16,
|
|
61
61
|
"opacity": 1,
|
|
@@ -72,7 +72,7 @@ exports[`Spinner renders correctly 1`] = `
|
|
|
72
72
|
style={
|
|
73
73
|
Array [
|
|
74
74
|
Object {
|
|
75
|
-
"backgroundColor": "#
|
|
75
|
+
"backgroundColor": "#8505a2",
|
|
76
76
|
"borderRadius": 8,
|
|
77
77
|
"height": 16,
|
|
78
78
|
"marginLeft": 8,
|
|
@@ -105,7 +105,7 @@ exports[`Spinner renders correctly 1`] = `
|
|
|
105
105
|
style={
|
|
106
106
|
Array [
|
|
107
107
|
Object {
|
|
108
|
-
"backgroundColor": "#
|
|
108
|
+
"backgroundColor": "#8505a2",
|
|
109
109
|
"borderRadius": 8,
|
|
110
110
|
"height": 16,
|
|
111
111
|
"opacity": 0.5,
|
|
@@ -122,7 +122,7 @@ exports[`Spinner renders correctly 1`] = `
|
|
|
122
122
|
style={
|
|
123
123
|
Array [
|
|
124
124
|
Object {
|
|
125
|
-
"backgroundColor": "#
|
|
125
|
+
"backgroundColor": "#8505a2",
|
|
126
126
|
"borderRadius": 8,
|
|
127
127
|
"height": 16,
|
|
128
128
|
"marginLeft": 8,
|
|
@@ -19,7 +19,7 @@ exports[`Switch renders correctly 1`] = `
|
|
|
19
19
|
style={
|
|
20
20
|
Array [
|
|
21
21
|
Object {
|
|
22
|
-
"backgroundColor": "#
|
|
22
|
+
"backgroundColor": "#808f91",
|
|
23
23
|
"borderRadius": 999,
|
|
24
24
|
"height": 28.799999999999997,
|
|
25
25
|
"paddingHorizontal": 4,
|
|
@@ -83,7 +83,7 @@ exports[`Switch trigger press function correctly 1`] = `
|
|
|
83
83
|
style={
|
|
84
84
|
Array [
|
|
85
85
|
Object {
|
|
86
|
-
"backgroundColor": "#
|
|
86
|
+
"backgroundColor": "#808f91",
|
|
87
87
|
"borderRadius": 999,
|
|
88
88
|
"height": 28.799999999999997,
|
|
89
89
|
"paddingHorizontal": 4,
|
|
@@ -27,7 +27,7 @@ exports[`Tabs.Scroll renders correctly 1`] = `
|
|
|
27
27
|
style={
|
|
28
28
|
Array [
|
|
29
29
|
Object {
|
|
30
|
-
"borderBottomColor": "#
|
|
30
|
+
"borderBottomColor": "#e8e9ea",
|
|
31
31
|
"borderBottomWidth": 1,
|
|
32
32
|
"paddingHorizontal": 0,
|
|
33
33
|
},
|
|
@@ -148,7 +148,7 @@ exports[`Tabs.Scroll renders correctly 1`] = `
|
|
|
148
148
|
nativeID="animatedComponent"
|
|
149
149
|
style={
|
|
150
150
|
Object {
|
|
151
|
-
"backgroundColor": "#
|
|
151
|
+
"backgroundColor": "#f3e6f6",
|
|
152
152
|
"borderRadius": 8,
|
|
153
153
|
"flex": 1,
|
|
154
154
|
"transform": Array [
|
|
@@ -178,14 +178,14 @@ exports[`Tabs.Scroll renders correctly 1`] = `
|
|
|
178
178
|
style={
|
|
179
179
|
Array [
|
|
180
180
|
Object {
|
|
181
|
-
"color": "#
|
|
181
|
+
"color": "#001f23",
|
|
182
182
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
183
183
|
"fontSize": 14,
|
|
184
184
|
"letterSpacing": 0.42,
|
|
185
185
|
"lineHeight": 22,
|
|
186
186
|
},
|
|
187
187
|
Object {
|
|
188
|
-
"color": "#
|
|
188
|
+
"color": "#8505a2",
|
|
189
189
|
},
|
|
190
190
|
]
|
|
191
191
|
}
|
|
@@ -302,7 +302,7 @@ exports[`Tabs.Scroll renders correctly 1`] = `
|
|
|
302
302
|
style={
|
|
303
303
|
Array [
|
|
304
304
|
Object {
|
|
305
|
-
"color": "#
|
|
305
|
+
"color": "#001f23",
|
|
306
306
|
"fontSize": 20,
|
|
307
307
|
},
|
|
308
308
|
undefined,
|
|
@@ -419,7 +419,7 @@ exports[`Tabs.Scroll renders correctly 1`] = `
|
|
|
419
419
|
style={
|
|
420
420
|
Array [
|
|
421
421
|
Object {
|
|
422
|
-
"color": "#
|
|
422
|
+
"color": "#001f23",
|
|
423
423
|
"fontSize": 20,
|
|
424
424
|
},
|
|
425
425
|
undefined,
|
|
@@ -27,7 +27,7 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
27
27
|
style={
|
|
28
28
|
Array [
|
|
29
29
|
Object {
|
|
30
|
-
"borderBottomColor": "#
|
|
30
|
+
"borderBottomColor": "#e8e9ea",
|
|
31
31
|
"borderBottomWidth": 1,
|
|
32
32
|
"paddingHorizontal": 0,
|
|
33
33
|
},
|
|
@@ -82,14 +82,14 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
82
82
|
style={
|
|
83
83
|
Array [
|
|
84
84
|
Object {
|
|
85
|
-
"color": "#
|
|
85
|
+
"color": "#001f23",
|
|
86
86
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
87
87
|
"fontSize": 14,
|
|
88
88
|
"letterSpacing": 0.42,
|
|
89
89
|
"lineHeight": 22,
|
|
90
90
|
},
|
|
91
91
|
Object {
|
|
92
|
-
"color": "#
|
|
92
|
+
"color": "#001f23",
|
|
93
93
|
},
|
|
94
94
|
]
|
|
95
95
|
}
|
|
@@ -150,14 +150,14 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
150
150
|
style={
|
|
151
151
|
Array [
|
|
152
152
|
Object {
|
|
153
|
-
"color": "#
|
|
153
|
+
"color": "#001f23",
|
|
154
154
|
"fontFamily": "BeVietnamPro-Regular",
|
|
155
155
|
"fontSize": 14,
|
|
156
156
|
"letterSpacing": 0.42,
|
|
157
157
|
"lineHeight": 22,
|
|
158
158
|
},
|
|
159
159
|
Object {
|
|
160
|
-
"color": "#
|
|
160
|
+
"color": "#001f23",
|
|
161
161
|
},
|
|
162
162
|
]
|
|
163
163
|
}
|
|
@@ -218,14 +218,14 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
218
218
|
style={
|
|
219
219
|
Array [
|
|
220
220
|
Object {
|
|
221
|
-
"color": "#
|
|
221
|
+
"color": "#001f23",
|
|
222
222
|
"fontFamily": "BeVietnamPro-Regular",
|
|
223
223
|
"fontSize": 14,
|
|
224
224
|
"letterSpacing": 0.42,
|
|
225
225
|
"lineHeight": 22,
|
|
226
226
|
},
|
|
227
227
|
Object {
|
|
228
|
-
"color": "#
|
|
228
|
+
"color": "#001f23",
|
|
229
229
|
},
|
|
230
230
|
]
|
|
231
231
|
}
|
|
@@ -265,7 +265,7 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
265
265
|
nativeID="animatedComponent"
|
|
266
266
|
style={
|
|
267
267
|
Object {
|
|
268
|
-
"backgroundColor": "#
|
|
268
|
+
"backgroundColor": "#001f23",
|
|
269
269
|
"bottom": 0,
|
|
270
270
|
"height": 2,
|
|
271
271
|
"position": "absolute",
|
|
@@ -43,8 +43,8 @@ exports[`Tag has archived style when intent is primary 1`] = `
|
|
|
43
43
|
style={
|
|
44
44
|
Array [
|
|
45
45
|
Object {
|
|
46
|
-
"backgroundColor": "#
|
|
47
|
-
"borderColor": "#
|
|
46
|
+
"backgroundColor": "#f3e6f6",
|
|
47
|
+
"borderColor": "#8505a2",
|
|
48
48
|
"borderRadius": 4,
|
|
49
49
|
"borderWidth": 1,
|
|
50
50
|
"paddingHorizontal": 8,
|
|
@@ -59,7 +59,7 @@ exports[`Tag has archived style when intent is primary 1`] = `
|
|
|
59
59
|
style={
|
|
60
60
|
Array [
|
|
61
61
|
Object {
|
|
62
|
-
"color": "#
|
|
62
|
+
"color": "#8505a2",
|
|
63
63
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
64
64
|
"fontSize": 12,
|
|
65
65
|
"includeFontPadding": false,
|
|
@@ -120,7 +120,7 @@ exports[`Tag has default style when intent is default 1`] = `
|
|
|
120
120
|
Array [
|
|
121
121
|
Object {
|
|
122
122
|
"backgroundColor": undefined,
|
|
123
|
-
"borderColor": "#
|
|
123
|
+
"borderColor": "#001f23",
|
|
124
124
|
"borderRadius": 4,
|
|
125
125
|
"borderWidth": 1,
|
|
126
126
|
"paddingHorizontal": 8,
|
|
@@ -135,7 +135,7 @@ exports[`Tag has default style when intent is default 1`] = `
|
|
|
135
135
|
style={
|
|
136
136
|
Array [
|
|
137
137
|
Object {
|
|
138
|
-
"color": "#
|
|
138
|
+
"color": "#001f23",
|
|
139
139
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
140
140
|
"fontSize": 12,
|
|
141
141
|
"includeFontPadding": false,
|
|
@@ -233,8 +233,8 @@ exports[`Tag has warning style when intent is warning 1`] = `
|
|
|
233
233
|
style={
|
|
234
234
|
Array [
|
|
235
235
|
Object {
|
|
236
|
-
"backgroundColor": "#
|
|
237
|
-
"borderColor": "#
|
|
236
|
+
"backgroundColor": "#ebf4ff",
|
|
237
|
+
"borderColor": "#ffa234",
|
|
238
238
|
"borderRadius": 4,
|
|
239
239
|
"borderWidth": 1,
|
|
240
240
|
"paddingHorizontal": 8,
|
|
@@ -249,7 +249,7 @@ exports[`Tag has warning style when intent is warning 1`] = `
|
|
|
249
249
|
style={
|
|
250
250
|
Array [
|
|
251
251
|
Object {
|
|
252
|
-
"color": "#
|
|
252
|
+
"color": "#ffa234",
|
|
253
253
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
254
254
|
"fontSize": 12,
|
|
255
255
|
"includeFontPadding": false,
|