@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
|
@@ -6,21 +6,30 @@ import TextInput, { getVariant } from '../index';
|
|
|
6
6
|
|
|
7
7
|
describe('getVariant', () => {
|
|
8
8
|
it.each`
|
|
9
|
-
disabled | error | editable | isFocused | isEmptyValue | expected
|
|
10
|
-
${false} | ${undefined} | ${true} | ${false} | ${true} | ${'default'}
|
|
11
|
-
${false} | ${undefined} | ${true} | ${false} | ${false} | ${'filled'}
|
|
12
|
-
${false} | ${undefined} | ${true} | ${true} | ${true} | ${'focused'}
|
|
13
|
-
${false} | ${undefined} | ${false} | ${true} | ${true} | ${'readonly'}
|
|
14
|
-
${false} | ${'This field is required'} | ${false} | ${true} | ${true} | ${'error'}
|
|
15
|
-
${true} | ${'This field is required'} | ${false} | ${true} | ${true} | ${'disabled'}
|
|
9
|
+
disabled | error | editable | loading | isFocused | isEmptyValue | expected
|
|
10
|
+
${false} | ${undefined} | ${true} | ${false} | ${false} | ${true} | ${'default'}
|
|
11
|
+
${false} | ${undefined} | ${true} | ${false} | ${false} | ${false} | ${'filled'}
|
|
12
|
+
${false} | ${undefined} | ${true} | ${false} | ${true} | ${true} | ${'focused'}
|
|
13
|
+
${false} | ${undefined} | ${false} | ${true} | ${true} | ${true} | ${'readonly'}
|
|
14
|
+
${false} | ${'This field is required'} | ${false} | ${false} | ${true} | ${true} | ${'error'}
|
|
15
|
+
${true} | ${'This field is required'} | ${false} | ${false} | ${true} | ${true} | ${'disabled'}
|
|
16
16
|
`(
|
|
17
17
|
'should return the correct variant when disabled $disabled, errorMessage $errorMessage, editable $false, isFocused $isFocused, isEmptyValue $isEmptyValue',
|
|
18
|
-
({
|
|
18
|
+
({
|
|
19
|
+
disabled,
|
|
20
|
+
error,
|
|
21
|
+
editable,
|
|
22
|
+
loading,
|
|
23
|
+
isFocused,
|
|
24
|
+
isEmptyValue,
|
|
25
|
+
expected,
|
|
26
|
+
}) => {
|
|
19
27
|
expect(
|
|
20
28
|
getVariant({
|
|
21
29
|
disabled,
|
|
22
30
|
error,
|
|
23
31
|
editable,
|
|
32
|
+
loading,
|
|
24
33
|
isFocused,
|
|
25
34
|
isEmptyValue,
|
|
26
35
|
})
|
|
@@ -206,6 +215,18 @@ describe('TextInput', () => {
|
|
|
206
215
|
});
|
|
207
216
|
});
|
|
208
217
|
|
|
218
|
+
describe('loading', () => {
|
|
219
|
+
it('renders correctly', () => {
|
|
220
|
+
const { toJSON, queryAllByTestId, getByTestId } = renderWithTheme(
|
|
221
|
+
<TextInput suffix="arrow-down" loading />
|
|
222
|
+
);
|
|
223
|
+
|
|
224
|
+
expect(toJSON()).toMatchSnapshot();
|
|
225
|
+
expect(queryAllByTestId('text-input')).toHaveLength(1);
|
|
226
|
+
expect(getByTestId('input-suffix')).toHaveProp('name', 'loading');
|
|
227
|
+
});
|
|
228
|
+
});
|
|
229
|
+
|
|
209
230
|
describe('max length', () => {
|
|
210
231
|
it('renders correctly', () => {
|
|
211
232
|
const {
|
|
@@ -79,6 +79,10 @@ export interface TextInputProps extends NativeTextInputProps {
|
|
|
79
79
|
* Whether the input is disabled.
|
|
80
80
|
*/
|
|
81
81
|
disabled?: boolean;
|
|
82
|
+
/*
|
|
83
|
+
* Whether the input is loading.
|
|
84
|
+
*/
|
|
85
|
+
loading?: boolean;
|
|
82
86
|
/*
|
|
83
87
|
* The max length of the input.
|
|
84
88
|
* If the max length is set, the input will display the current length and the max length.
|
|
@@ -94,12 +98,14 @@ export const getVariant = ({
|
|
|
94
98
|
disabled,
|
|
95
99
|
error,
|
|
96
100
|
editable,
|
|
101
|
+
loading,
|
|
97
102
|
isFocused,
|
|
98
103
|
isEmptyValue,
|
|
99
104
|
}: {
|
|
100
105
|
disabled?: boolean;
|
|
101
106
|
error?: string;
|
|
102
107
|
editable?: boolean;
|
|
108
|
+
loading: boolean;
|
|
103
109
|
isFocused?: boolean;
|
|
104
110
|
isEmptyValue?: boolean;
|
|
105
111
|
}): Variant => {
|
|
@@ -109,7 +115,7 @@ export const getVariant = ({
|
|
|
109
115
|
if (error) {
|
|
110
116
|
return 'error';
|
|
111
117
|
}
|
|
112
|
-
if (!editable) {
|
|
118
|
+
if (!editable || loading) {
|
|
113
119
|
return 'readonly';
|
|
114
120
|
}
|
|
115
121
|
if (isFocused) {
|
|
@@ -133,6 +139,7 @@ const TextInput = ({
|
|
|
133
139
|
required,
|
|
134
140
|
editable = true,
|
|
135
141
|
disabled = false,
|
|
142
|
+
loading = false,
|
|
136
143
|
maxLength,
|
|
137
144
|
helpText,
|
|
138
145
|
value,
|
|
@@ -142,6 +149,7 @@ const TextInput = ({
|
|
|
142
149
|
const textInputReference = useRef<RNTextInput | null>(null);
|
|
143
150
|
const displayText = (value !== undefined ? value : defaultValue) ?? '';
|
|
144
151
|
const isEmptyValue = displayText.length === 0;
|
|
152
|
+
const actualSuffix = loading ? 'loading' : suffix;
|
|
145
153
|
|
|
146
154
|
const [isFocused, setIsFocused] = React.useState(false);
|
|
147
155
|
|
|
@@ -149,6 +157,7 @@ const TextInput = ({
|
|
|
149
157
|
disabled,
|
|
150
158
|
error,
|
|
151
159
|
editable,
|
|
160
|
+
loading,
|
|
152
161
|
isFocused,
|
|
153
162
|
isEmptyValue,
|
|
154
163
|
});
|
|
@@ -187,7 +196,7 @@ const TextInput = ({
|
|
|
187
196
|
)}
|
|
188
197
|
{typeof prefix === 'string' ? (
|
|
189
198
|
<Icon
|
|
190
|
-
intent={disabled ? 'disabled-text' : 'text'}
|
|
199
|
+
intent={variant === 'disabled' ? 'disabled-text' : 'text'}
|
|
191
200
|
testID="input-prefix"
|
|
192
201
|
icon={prefix}
|
|
193
202
|
size="xsmall"
|
|
@@ -195,7 +204,6 @@ const TextInput = ({
|
|
|
195
204
|
) : (
|
|
196
205
|
prefix
|
|
197
206
|
)}
|
|
198
|
-
|
|
199
207
|
<StyledTextInputAndLabelContainer>
|
|
200
208
|
{!isFocused && isEmptyValue && (
|
|
201
209
|
<StyledLabelContainerInsideTextInput pointerEvents="none">
|
|
@@ -224,7 +232,9 @@ const TextInput = ({
|
|
|
224
232
|
textStyle,
|
|
225
233
|
])}
|
|
226
234
|
testID="text-input"
|
|
227
|
-
accessibilityState={{
|
|
235
|
+
accessibilityState={{
|
|
236
|
+
disabled: variant === 'disabled' || variant === 'readonly',
|
|
237
|
+
}}
|
|
228
238
|
// @ts-ignore
|
|
229
239
|
accessibilityLabelledBy={accessibilityLabelledBy}
|
|
230
240
|
{...nativeProps}
|
|
@@ -249,11 +259,12 @@ const TextInput = ({
|
|
|
249
259
|
}
|
|
250
260
|
/>
|
|
251
261
|
</StyledTextInputAndLabelContainer>
|
|
252
|
-
{typeof
|
|
262
|
+
{typeof actualSuffix === 'string' ? (
|
|
253
263
|
<Icon
|
|
254
|
-
intent={disabled ? 'disabled-text' : 'text'}
|
|
264
|
+
intent={variant === 'disabled' ? 'disabled-text' : 'text'}
|
|
255
265
|
testID="input-suffix"
|
|
256
|
-
icon={
|
|
266
|
+
icon={actualSuffix}
|
|
267
|
+
spin={actualSuffix === 'loading'}
|
|
257
268
|
size="xsmall"
|
|
258
269
|
/>
|
|
259
270
|
) : (
|
|
@@ -49,7 +49,7 @@ exports[`TimePickerAndroid renders correctly 1`] = `
|
|
|
49
49
|
style={
|
|
50
50
|
Array [
|
|
51
51
|
Object {
|
|
52
|
-
"borderColor": "#
|
|
52
|
+
"borderColor": "#001f23",
|
|
53
53
|
"borderRadius": 8,
|
|
54
54
|
"borderWidth": 1,
|
|
55
55
|
"bottom": 0,
|
|
@@ -84,7 +84,7 @@ exports[`TimePickerAndroid renders correctly 1`] = `
|
|
|
84
84
|
style={
|
|
85
85
|
Array [
|
|
86
86
|
Object {
|
|
87
|
-
"color": "#
|
|
87
|
+
"color": "#001f23",
|
|
88
88
|
"fontFamily": "BeVietnamPro-Regular",
|
|
89
89
|
"fontSize": 12,
|
|
90
90
|
"letterSpacing": 0.36,
|
|
@@ -92,7 +92,7 @@ exports[`TimePickerAndroid renders correctly 1`] = `
|
|
|
92
92
|
},
|
|
93
93
|
Array [
|
|
94
94
|
Object {
|
|
95
|
-
"color": "#
|
|
95
|
+
"color": "#001f23",
|
|
96
96
|
},
|
|
97
97
|
undefined,
|
|
98
98
|
],
|
|
@@ -140,7 +140,7 @@ exports[`TimePickerAndroid renders correctly 1`] = `
|
|
|
140
140
|
"textAlignVertical": "center",
|
|
141
141
|
},
|
|
142
142
|
Object {
|
|
143
|
-
"color": "#
|
|
143
|
+
"color": "#001f23",
|
|
144
144
|
},
|
|
145
145
|
]
|
|
146
146
|
}
|
|
@@ -153,7 +153,7 @@ exports[`TimePickerAndroid renders correctly 1`] = `
|
|
|
153
153
|
style={
|
|
154
154
|
Array [
|
|
155
155
|
Object {
|
|
156
|
-
"color": "#
|
|
156
|
+
"color": "#001f23",
|
|
157
157
|
"fontSize": 16,
|
|
158
158
|
},
|
|
159
159
|
undefined,
|
|
@@ -49,7 +49,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
49
49
|
style={
|
|
50
50
|
Array [
|
|
51
51
|
Object {
|
|
52
|
-
"borderColor": "#
|
|
52
|
+
"borderColor": "#001f23",
|
|
53
53
|
"borderRadius": 8,
|
|
54
54
|
"borderWidth": 1,
|
|
55
55
|
"bottom": 0,
|
|
@@ -84,7 +84,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
84
84
|
style={
|
|
85
85
|
Array [
|
|
86
86
|
Object {
|
|
87
|
-
"color": "#
|
|
87
|
+
"color": "#001f23",
|
|
88
88
|
"fontFamily": "BeVietnamPro-Regular",
|
|
89
89
|
"fontSize": 12,
|
|
90
90
|
"letterSpacing": 0.36,
|
|
@@ -92,7 +92,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
92
92
|
},
|
|
93
93
|
Array [
|
|
94
94
|
Object {
|
|
95
|
-
"color": "#
|
|
95
|
+
"color": "#001f23",
|
|
96
96
|
},
|
|
97
97
|
undefined,
|
|
98
98
|
],
|
|
@@ -140,7 +140,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
140
140
|
"textAlignVertical": "center",
|
|
141
141
|
},
|
|
142
142
|
Object {
|
|
143
|
-
"color": "#
|
|
143
|
+
"color": "#001f23",
|
|
144
144
|
},
|
|
145
145
|
]
|
|
146
146
|
}
|
|
@@ -153,7 +153,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
153
153
|
style={
|
|
154
154
|
Array [
|
|
155
155
|
Object {
|
|
156
|
-
"color": "#
|
|
156
|
+
"color": "#001f23",
|
|
157
157
|
"fontSize": 16,
|
|
158
158
|
},
|
|
159
159
|
undefined,
|
|
@@ -266,7 +266,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
266
266
|
onStartShouldSetResponder={[Function]}
|
|
267
267
|
style={
|
|
268
268
|
Object {
|
|
269
|
-
"backgroundColor": "#
|
|
269
|
+
"backgroundColor": "#001f23",
|
|
270
270
|
"bottom": 0,
|
|
271
271
|
"left": 0,
|
|
272
272
|
"opacity": 0.48,
|
|
@@ -288,7 +288,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
288
288
|
"borderTopRightRadius": 16,
|
|
289
289
|
"elevation": 10,
|
|
290
290
|
"maxHeight": "94%",
|
|
291
|
-
"shadowColor": "#
|
|
291
|
+
"shadowColor": "#001f23",
|
|
292
292
|
"shadowOffset": Object {
|
|
293
293
|
"height": 3,
|
|
294
294
|
"width": 0,
|
|
@@ -334,7 +334,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
334
334
|
style={
|
|
335
335
|
Array [
|
|
336
336
|
Object {
|
|
337
|
-
"color": "#
|
|
337
|
+
"color": "#001f23",
|
|
338
338
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
339
339
|
"fontSize": 16,
|
|
340
340
|
"letterSpacing": 0.48,
|
|
@@ -388,7 +388,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
388
388
|
style={
|
|
389
389
|
Array [
|
|
390
390
|
Object {
|
|
391
|
-
"color": "#
|
|
391
|
+
"color": "#001f23",
|
|
392
392
|
"fontSize": 20,
|
|
393
393
|
},
|
|
394
394
|
undefined,
|
|
@@ -404,7 +404,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
404
404
|
style={
|
|
405
405
|
Array [
|
|
406
406
|
Object {
|
|
407
|
-
"borderBottomColor": "#
|
|
407
|
+
"borderBottomColor": "#e8e9ea",
|
|
408
408
|
"borderBottomWidth": 1,
|
|
409
409
|
"maxWidth": "100%",
|
|
410
410
|
},
|
|
@@ -440,7 +440,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
440
440
|
style={
|
|
441
441
|
Array [
|
|
442
442
|
Object {
|
|
443
|
-
"borderBottomColor": "#
|
|
443
|
+
"borderBottomColor": "#e8e9ea",
|
|
444
444
|
"borderBottomWidth": 1,
|
|
445
445
|
"maxWidth": "100%",
|
|
446
446
|
},
|
|
@@ -485,7 +485,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
485
485
|
style={
|
|
486
486
|
Array [
|
|
487
487
|
Object {
|
|
488
|
-
"color": "#
|
|
488
|
+
"color": "#8505a2",
|
|
489
489
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
490
490
|
"fontSize": 16,
|
|
491
491
|
"letterSpacing": 0.48,
|
|
@@ -26,7 +26,7 @@ exports[`Toast Icon render custom icon correctly 1`] = `
|
|
|
26
26
|
style={
|
|
27
27
|
Array [
|
|
28
28
|
Object {
|
|
29
|
-
"borderColor": "#
|
|
29
|
+
"borderColor": "#e8e9ea",
|
|
30
30
|
"borderRightWidth": 0,
|
|
31
31
|
"flex": 1,
|
|
32
32
|
"flexDirection": "row",
|
|
@@ -53,7 +53,7 @@ exports[`Toast Icon render custom icon correctly 1`] = `
|
|
|
53
53
|
style={
|
|
54
54
|
Array [
|
|
55
55
|
Object {
|
|
56
|
-
"color": "#
|
|
56
|
+
"color": "#001f23",
|
|
57
57
|
"fontSize": 20,
|
|
58
58
|
},
|
|
59
59
|
undefined,
|
|
@@ -78,7 +78,7 @@ exports[`Toast Icon render custom icon correctly 1`] = `
|
|
|
78
78
|
style={
|
|
79
79
|
Array [
|
|
80
80
|
Object {
|
|
81
|
-
"color": "#
|
|
81
|
+
"color": "#001f23",
|
|
82
82
|
"fontFamily": "BeVietnamPro-Regular",
|
|
83
83
|
"fontSize": 14,
|
|
84
84
|
"letterSpacing": 0.42,
|
|
@@ -104,7 +104,7 @@ exports[`Toast renders correctly when intent is error 1`] = `
|
|
|
104
104
|
nativeID="animatedComponent"
|
|
105
105
|
style={
|
|
106
106
|
Object {
|
|
107
|
-
"backgroundColor": "#
|
|
107
|
+
"backgroundColor": "#f46363",
|
|
108
108
|
"borderRadius": 0,
|
|
109
109
|
"flexDirection": "row",
|
|
110
110
|
"minHeight": 48,
|
|
@@ -124,7 +124,7 @@ exports[`Toast renders correctly when intent is error 1`] = `
|
|
|
124
124
|
style={
|
|
125
125
|
Array [
|
|
126
126
|
Object {
|
|
127
|
-
"borderColor": "#
|
|
127
|
+
"borderColor": "#e8e9ea",
|
|
128
128
|
"borderRightWidth": 1,
|
|
129
129
|
"flex": 1,
|
|
130
130
|
"flexDirection": "row",
|
|
@@ -151,7 +151,7 @@ exports[`Toast renders correctly when intent is error 1`] = `
|
|
|
151
151
|
style={
|
|
152
152
|
Array [
|
|
153
153
|
Object {
|
|
154
|
-
"color": "#
|
|
154
|
+
"color": "#001f23",
|
|
155
155
|
"fontSize": 20,
|
|
156
156
|
},
|
|
157
157
|
undefined,
|
|
@@ -176,7 +176,7 @@ exports[`Toast renders correctly when intent is error 1`] = `
|
|
|
176
176
|
style={
|
|
177
177
|
Array [
|
|
178
178
|
Object {
|
|
179
|
-
"color": "#
|
|
179
|
+
"color": "#001f23",
|
|
180
180
|
"fontFamily": "BeVietnamPro-Regular",
|
|
181
181
|
"fontSize": 14,
|
|
182
182
|
"letterSpacing": 0.42,
|
|
@@ -218,7 +218,7 @@ exports[`Toast renders correctly when intent is error 1`] = `
|
|
|
218
218
|
style={
|
|
219
219
|
Array [
|
|
220
220
|
Object {
|
|
221
|
-
"color": "#
|
|
221
|
+
"color": "#001f23",
|
|
222
222
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
223
223
|
"fontSize": 14,
|
|
224
224
|
"letterSpacing": 0.42,
|
|
@@ -263,7 +263,7 @@ exports[`Toast renders correctly when intent is info 1`] = `
|
|
|
263
263
|
style={
|
|
264
264
|
Array [
|
|
265
265
|
Object {
|
|
266
|
-
"borderColor": "#
|
|
266
|
+
"borderColor": "#e8e9ea",
|
|
267
267
|
"borderRightWidth": 1,
|
|
268
268
|
"flex": 1,
|
|
269
269
|
"flexDirection": "row",
|
|
@@ -290,7 +290,7 @@ exports[`Toast renders correctly when intent is info 1`] = `
|
|
|
290
290
|
style={
|
|
291
291
|
Array [
|
|
292
292
|
Object {
|
|
293
|
-
"color": "#
|
|
293
|
+
"color": "#001f23",
|
|
294
294
|
"fontSize": 20,
|
|
295
295
|
},
|
|
296
296
|
undefined,
|
|
@@ -315,7 +315,7 @@ exports[`Toast renders correctly when intent is info 1`] = `
|
|
|
315
315
|
style={
|
|
316
316
|
Array [
|
|
317
317
|
Object {
|
|
318
|
-
"color": "#
|
|
318
|
+
"color": "#001f23",
|
|
319
319
|
"fontFamily": "BeVietnamPro-Regular",
|
|
320
320
|
"fontSize": 14,
|
|
321
321
|
"letterSpacing": 0.42,
|
|
@@ -357,7 +357,7 @@ exports[`Toast renders correctly when intent is info 1`] = `
|
|
|
357
357
|
style={
|
|
358
358
|
Array [
|
|
359
359
|
Object {
|
|
360
|
-
"color": "#
|
|
360
|
+
"color": "#001f23",
|
|
361
361
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
362
362
|
"fontSize": 14,
|
|
363
363
|
"letterSpacing": 0.42,
|
|
@@ -382,7 +382,7 @@ exports[`Toast renders correctly when intent is success 1`] = `
|
|
|
382
382
|
nativeID="animatedComponent"
|
|
383
383
|
style={
|
|
384
384
|
Object {
|
|
385
|
-
"backgroundColor": "#
|
|
385
|
+
"backgroundColor": "#5ace7d",
|
|
386
386
|
"borderRadius": 0,
|
|
387
387
|
"flexDirection": "row",
|
|
388
388
|
"minHeight": 48,
|
|
@@ -402,7 +402,7 @@ exports[`Toast renders correctly when intent is success 1`] = `
|
|
|
402
402
|
style={
|
|
403
403
|
Array [
|
|
404
404
|
Object {
|
|
405
|
-
"borderColor": "#
|
|
405
|
+
"borderColor": "#e8e9ea",
|
|
406
406
|
"borderRightWidth": 1,
|
|
407
407
|
"flex": 1,
|
|
408
408
|
"flexDirection": "row",
|
|
@@ -429,7 +429,7 @@ exports[`Toast renders correctly when intent is success 1`] = `
|
|
|
429
429
|
style={
|
|
430
430
|
Array [
|
|
431
431
|
Object {
|
|
432
|
-
"color": "#
|
|
432
|
+
"color": "#001f23",
|
|
433
433
|
"fontSize": 20,
|
|
434
434
|
},
|
|
435
435
|
undefined,
|
|
@@ -454,7 +454,7 @@ exports[`Toast renders correctly when intent is success 1`] = `
|
|
|
454
454
|
style={
|
|
455
455
|
Array [
|
|
456
456
|
Object {
|
|
457
|
-
"color": "#
|
|
457
|
+
"color": "#001f23",
|
|
458
458
|
"fontFamily": "BeVietnamPro-Regular",
|
|
459
459
|
"fontSize": 14,
|
|
460
460
|
"letterSpacing": 0.42,
|
|
@@ -496,7 +496,7 @@ exports[`Toast renders correctly when intent is success 1`] = `
|
|
|
496
496
|
style={
|
|
497
497
|
Array [
|
|
498
498
|
Object {
|
|
499
|
-
"color": "#
|
|
499
|
+
"color": "#001f23",
|
|
500
500
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
501
501
|
"fontSize": 14,
|
|
502
502
|
"letterSpacing": 0.42,
|
|
@@ -521,7 +521,7 @@ exports[`Toast renders correctly when intent is warning 1`] = `
|
|
|
521
521
|
nativeID="animatedComponent"
|
|
522
522
|
style={
|
|
523
523
|
Object {
|
|
524
|
-
"backgroundColor": "#
|
|
524
|
+
"backgroundColor": "#ffbe71",
|
|
525
525
|
"borderRadius": 0,
|
|
526
526
|
"flexDirection": "row",
|
|
527
527
|
"minHeight": 48,
|
|
@@ -541,7 +541,7 @@ exports[`Toast renders correctly when intent is warning 1`] = `
|
|
|
541
541
|
style={
|
|
542
542
|
Array [
|
|
543
543
|
Object {
|
|
544
|
-
"borderColor": "#
|
|
544
|
+
"borderColor": "#e8e9ea",
|
|
545
545
|
"borderRightWidth": 1,
|
|
546
546
|
"flex": 1,
|
|
547
547
|
"flexDirection": "row",
|
|
@@ -568,7 +568,7 @@ exports[`Toast renders correctly when intent is warning 1`] = `
|
|
|
568
568
|
style={
|
|
569
569
|
Array [
|
|
570
570
|
Object {
|
|
571
|
-
"color": "#
|
|
571
|
+
"color": "#001f23",
|
|
572
572
|
"fontSize": 20,
|
|
573
573
|
},
|
|
574
574
|
undefined,
|
|
@@ -593,7 +593,7 @@ exports[`Toast renders correctly when intent is warning 1`] = `
|
|
|
593
593
|
style={
|
|
594
594
|
Array [
|
|
595
595
|
Object {
|
|
596
|
-
"color": "#
|
|
596
|
+
"color": "#001f23",
|
|
597
597
|
"fontFamily": "BeVietnamPro-Regular",
|
|
598
598
|
"fontSize": 14,
|
|
599
599
|
"letterSpacing": 0.42,
|
|
@@ -635,7 +635,7 @@ exports[`Toast renders correctly when intent is warning 1`] = `
|
|
|
635
635
|
style={
|
|
636
636
|
Array [
|
|
637
637
|
Object {
|
|
638
|
-
"color": "#
|
|
638
|
+
"color": "#001f23",
|
|
639
639
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
640
640
|
"fontSize": 14,
|
|
641
641
|
"letterSpacing": 0.42,
|
|
@@ -41,7 +41,7 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
|
|
|
41
41
|
style={
|
|
42
42
|
Array [
|
|
43
43
|
Object {
|
|
44
|
-
"color": "#
|
|
44
|
+
"color": "#8505a2",
|
|
45
45
|
"fontSize": 24,
|
|
46
46
|
},
|
|
47
47
|
undefined,
|
|
@@ -55,7 +55,7 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
|
|
|
55
55
|
style={
|
|
56
56
|
Array [
|
|
57
57
|
Object {
|
|
58
|
-
"color": "#
|
|
58
|
+
"color": "#8505a2",
|
|
59
59
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
60
60
|
"fontSize": 12,
|
|
61
61
|
"letterSpacing": 0.36,
|
|
@@ -97,7 +97,7 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
|
|
|
97
97
|
style={
|
|
98
98
|
Array [
|
|
99
99
|
Object {
|
|
100
|
-
"color": "#
|
|
100
|
+
"color": "#8505a2",
|
|
101
101
|
"fontSize": 24,
|
|
102
102
|
},
|
|
103
103
|
undefined,
|
|
@@ -111,7 +111,7 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
|
|
|
111
111
|
style={
|
|
112
112
|
Array [
|
|
113
113
|
Object {
|
|
114
|
-
"color": "#
|
|
114
|
+
"color": "#8505a2",
|
|
115
115
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
116
116
|
"fontSize": 12,
|
|
117
117
|
"letterSpacing": 0.36,
|
|
@@ -171,7 +171,7 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
|
|
|
171
171
|
style={
|
|
172
172
|
Array [
|
|
173
173
|
Object {
|
|
174
|
-
"color": "#
|
|
174
|
+
"color": "#8505a2",
|
|
175
175
|
"fontSize": 24,
|
|
176
176
|
},
|
|
177
177
|
undefined,
|
|
@@ -185,7 +185,7 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
|
|
|
185
185
|
style={
|
|
186
186
|
Array [
|
|
187
187
|
Object {
|
|
188
|
-
"color": "#
|
|
188
|
+
"color": "#8505a2",
|
|
189
189
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
190
190
|
"fontSize": 12,
|
|
191
191
|
"letterSpacing": 0.36,
|
|
@@ -227,7 +227,7 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
|
|
|
227
227
|
style={
|
|
228
228
|
Array [
|
|
229
229
|
Object {
|
|
230
|
-
"color": "#
|
|
230
|
+
"color": "#8505a2",
|
|
231
231
|
"fontSize": 24,
|
|
232
232
|
},
|
|
233
233
|
undefined,
|
|
@@ -241,7 +241,7 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
|
|
|
241
241
|
style={
|
|
242
242
|
Array [
|
|
243
243
|
Object {
|
|
244
|
-
"color": "#
|
|
244
|
+
"color": "#8505a2",
|
|
245
245
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
246
246
|
"fontSize": 12,
|
|
247
247
|
"letterSpacing": 0.36,
|
|
@@ -301,7 +301,7 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
|
|
|
301
301
|
style={
|
|
302
302
|
Array [
|
|
303
303
|
Object {
|
|
304
|
-
"color": "#
|
|
304
|
+
"color": "#8505a2",
|
|
305
305
|
"fontSize": 24,
|
|
306
306
|
},
|
|
307
307
|
undefined,
|
|
@@ -315,7 +315,7 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
|
|
|
315
315
|
style={
|
|
316
316
|
Array [
|
|
317
317
|
Object {
|
|
318
|
-
"color": "#
|
|
318
|
+
"color": "#8505a2",
|
|
319
319
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
320
320
|
"fontSize": 12,
|
|
321
321
|
"letterSpacing": 0.36,
|
|
@@ -357,7 +357,7 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
|
|
|
357
357
|
style={
|
|
358
358
|
Array [
|
|
359
359
|
Object {
|
|
360
|
-
"color": "#
|
|
360
|
+
"color": "#8505a2",
|
|
361
361
|
"fontSize": 24,
|
|
362
362
|
},
|
|
363
363
|
undefined,
|
|
@@ -371,7 +371,7 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
|
|
|
371
371
|
style={
|
|
372
372
|
Array [
|
|
373
373
|
Object {
|
|
374
|
-
"color": "#
|
|
374
|
+
"color": "#8505a2",
|
|
375
375
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
376
376
|
"fontSize": 12,
|
|
377
377
|
"letterSpacing": 0.36,
|
|
@@ -27,7 +27,7 @@ exports[`ToolbarItems renders correctly when disabled 1`] = `
|
|
|
27
27
|
style={
|
|
28
28
|
Array [
|
|
29
29
|
Object {
|
|
30
|
-
"color": "#
|
|
30
|
+
"color": "#808f91",
|
|
31
31
|
"fontSize": 24,
|
|
32
32
|
},
|
|
33
33
|
undefined,
|
|
@@ -41,7 +41,7 @@ exports[`ToolbarItems renders correctly when disabled 1`] = `
|
|
|
41
41
|
style={
|
|
42
42
|
Array [
|
|
43
43
|
Object {
|
|
44
|
-
"color": "#
|
|
44
|
+
"color": "#808f91",
|
|
45
45
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
46
46
|
"fontSize": 12,
|
|
47
47
|
"letterSpacing": 0.36,
|
|
@@ -204,7 +204,7 @@ exports[`ToolbarItems renders correctly when intent is primary 1`] = `
|
|
|
204
204
|
style={
|
|
205
205
|
Array [
|
|
206
206
|
Object {
|
|
207
|
-
"color": "#
|
|
207
|
+
"color": "#8505a2",
|
|
208
208
|
"fontSize": 24,
|
|
209
209
|
},
|
|
210
210
|
undefined,
|
|
@@ -218,7 +218,7 @@ exports[`ToolbarItems renders correctly when intent is primary 1`] = `
|
|
|
218
218
|
style={
|
|
219
219
|
Array [
|
|
220
220
|
Object {
|
|
221
|
-
"color": "#
|
|
221
|
+
"color": "#8505a2",
|
|
222
222
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
223
223
|
"fontSize": 12,
|
|
224
224
|
"letterSpacing": 0.36,
|
|
@@ -263,7 +263,7 @@ exports[`ToolbarItems renders correctly when intent is success 1`] = `
|
|
|
263
263
|
style={
|
|
264
264
|
Array [
|
|
265
265
|
Object {
|
|
266
|
-
"color": "#
|
|
266
|
+
"color": "#5ace7d",
|
|
267
267
|
"fontSize": 24,
|
|
268
268
|
},
|
|
269
269
|
undefined,
|
|
@@ -277,7 +277,7 @@ exports[`ToolbarItems renders correctly when intent is success 1`] = `
|
|
|
277
277
|
style={
|
|
278
278
|
Array [
|
|
279
279
|
Object {
|
|
280
|
-
"color": "#
|
|
280
|
+
"color": "#5ace7d",
|
|
281
281
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
282
282
|
"fontSize": 12,
|
|
283
283
|
"letterSpacing": 0.36,
|
|
@@ -322,7 +322,7 @@ exports[`ToolbarItems renders correctly when intent is warning 1`] = `
|
|
|
322
322
|
style={
|
|
323
323
|
Array [
|
|
324
324
|
Object {
|
|
325
|
-
"color": "#
|
|
325
|
+
"color": "#ffbe71",
|
|
326
326
|
"fontSize": 24,
|
|
327
327
|
},
|
|
328
328
|
undefined,
|
|
@@ -336,7 +336,7 @@ exports[`ToolbarItems renders correctly when intent is warning 1`] = `
|
|
|
336
336
|
style={
|
|
337
337
|
Array [
|
|
338
338
|
Object {
|
|
339
|
-
"color": "#
|
|
339
|
+
"color": "#ffbe71",
|
|
340
340
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
341
341
|
"fontSize": 12,
|
|
342
342
|
"letterSpacing": 0.36,
|