@hero-design/rn 7.22.2 → 7.22.3
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 +271 -242
- package/lib/index.js +271 -242
- package/package.json +4 -4
- package/src/components/Accordion/AccordionItem.tsx +1 -1
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +8 -8
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- 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/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- 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/__tests__/__snapshots__/StyledButton.spec.tsx.snap +24 -24
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +6 -6
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +3 -3
- package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +2 -2
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +5 -5
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +1 -1
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
- package/src/components/Icon/HeroIcon/index.tsx +2 -0
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Icon/index.tsx +1 -0
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +2 -2
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +12 -12
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +2 -2
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +4 -4
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +6 -6
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +21 -21
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +5 -5
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +1 -1
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +1 -1
- package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +1 -1
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -4
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +13 -9
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +18 -18
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -8
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +1 -1
- package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Spinner/StyledSpinner.tsx +8 -4
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +8 -4
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +32 -16
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +8 -4
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +3 -3
- package/src/components/Tabs/ScrollableTabs.tsx +2 -5
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +1 -1
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +1 -1
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +10 -10
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +14 -14
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -1
- package/src/components/Toast/ToastProvider.tsx +2 -4
- package/src/components/Toast/__tests__/index.spec.tsx +138 -0
- package/src/components/Toolbar/ToolbarItem.tsx +1 -1
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +6 -6
- package/src/components/Typography/Text/StyledText.tsx +1 -0
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +3 -3
- package/src/components/Typography/Text/index.tsx +1 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +92 -85
- package/src/theme/components/accordion.ts +1 -1
- package/src/theme/components/alert.ts +4 -4
- package/src/theme/components/avatar.ts +2 -2
- package/src/theme/components/badge.ts +6 -6
- package/src/theme/components/bottomNavigation.ts +2 -2
- package/src/theme/components/bottomSheet.ts +3 -3
- package/src/theme/components/button.ts +20 -20
- package/src/theme/components/calendar.ts +4 -4
- package/src/theme/components/card.ts +5 -5
- package/src/theme/components/checkbox.ts +1 -1
- package/src/theme/components/divider.ts +1 -1
- package/src/theme/components/drawer.ts +4 -4
- package/src/theme/components/empty.ts +3 -4
- package/src/theme/components/fab.ts +7 -7
- package/src/theme/components/icon.ts +4 -3
- package/src/theme/components/list.ts +6 -7
- package/src/theme/components/pinInput.ts +4 -4
- package/src/theme/components/progress.ts +3 -3
- package/src/theme/components/richTextEditor.ts +3 -3
- package/src/theme/components/sectionHeading.ts +1 -1
- package/src/theme/components/select.ts +1 -1
- package/src/theme/components/slider.ts +3 -3
- package/src/theme/components/spinner.ts +1 -4
- package/src/theme/components/switch.ts +7 -7
- package/src/theme/components/tabs.ts +5 -5
- package/src/theme/components/tag.ts +12 -12
- package/src/theme/components/textInput.ts +38 -38
- package/src/theme/components/toast.ts +6 -6
- package/src/theme/components/toolbar.ts +3 -2
- package/src/theme/components/typography.ts +4 -3
- package/src/theme/global/colors/global.ts +32 -0
- package/src/theme/global/colors/legacySystemPalette.ts +53 -0
- package/src/theme/global/colors/swag.ts +21 -35
- package/src/theme/global/colors/types.ts +46 -27
- package/src/theme/global/colors/work.ts +10 -9
- package/types/components/Icon/HeroIcon/index.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Toast/__tests__/index.spec.d.ts +1 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +1 -1
- package/types/components/Typography/Text/StyledText.d.ts +1 -1
- package/types/components/Typography/Text/index.d.ts +1 -1
- package/types/theme/components/empty.d.ts +0 -1
- package/types/theme/components/icon.d.ts +1 -0
- package/types/theme/components/spinner.d.ts +1 -4
- package/types/theme/components/toolbar.d.ts +1 -0
- package/types/theme/components/typography.d.ts +1 -0
- package/types/theme/global/colors/global.d.ts +3 -0
- package/types/theme/global/colors/legacySystemPalette.d.ts +3 -0
- package/types/theme/global/colors/types.d.ts +41 -21
- package/types/theme/global/index.d.ts +28 -20
|
@@ -35,9 +35,10 @@ exports[`AnimatedSpinner renders correctly 1`] = `
|
|
|
35
35
|
style={
|
|
36
36
|
Array [
|
|
37
37
|
Object {
|
|
38
|
-
"backgroundColor": "#
|
|
38
|
+
"backgroundColor": "#001f23",
|
|
39
39
|
"borderRadius": 999,
|
|
40
40
|
"height": 16,
|
|
41
|
+
"opacity": 1,
|
|
41
42
|
"width": 16,
|
|
42
43
|
},
|
|
43
44
|
Object {},
|
|
@@ -52,10 +53,11 @@ exports[`AnimatedSpinner renders correctly 1`] = `
|
|
|
52
53
|
style={
|
|
53
54
|
Array [
|
|
54
55
|
Object {
|
|
55
|
-
"backgroundColor": "#
|
|
56
|
+
"backgroundColor": "#001f23",
|
|
56
57
|
"borderRadius": 999,
|
|
57
58
|
"height": 16,
|
|
58
59
|
"marginLeft": 8,
|
|
60
|
+
"opacity": 0.75,
|
|
59
61
|
"width": 16,
|
|
60
62
|
},
|
|
61
63
|
Object {},
|
|
@@ -86,9 +88,10 @@ exports[`AnimatedSpinner renders correctly 1`] = `
|
|
|
86
88
|
style={
|
|
87
89
|
Array [
|
|
88
90
|
Object {
|
|
89
|
-
"backgroundColor": "#
|
|
91
|
+
"backgroundColor": "#001f23",
|
|
90
92
|
"borderRadius": 999,
|
|
91
93
|
"height": 16,
|
|
94
|
+
"opacity": 0.5,
|
|
92
95
|
"width": 16,
|
|
93
96
|
},
|
|
94
97
|
Object {},
|
|
@@ -103,10 +106,11 @@ exports[`AnimatedSpinner renders correctly 1`] = `
|
|
|
103
106
|
style={
|
|
104
107
|
Array [
|
|
105
108
|
Object {
|
|
106
|
-
"backgroundColor": "#
|
|
109
|
+
"backgroundColor": "#001f23",
|
|
107
110
|
"borderRadius": 999,
|
|
108
111
|
"height": 16,
|
|
109
112
|
"marginLeft": 8,
|
|
113
|
+
"opacity": 0.25,
|
|
110
114
|
"width": 16,
|
|
111
115
|
},
|
|
112
116
|
Object {},
|
|
@@ -47,9 +47,10 @@ exports[`StyledSpinnerContainer renders correctly in medium size 1`] = `
|
|
|
47
47
|
style={
|
|
48
48
|
Array [
|
|
49
49
|
Object {
|
|
50
|
-
"backgroundColor": "#
|
|
50
|
+
"backgroundColor": "#001f23",
|
|
51
51
|
"borderRadius": 999,
|
|
52
52
|
"height": 16,
|
|
53
|
+
"opacity": 1,
|
|
53
54
|
"width": 16,
|
|
54
55
|
},
|
|
55
56
|
Object {},
|
|
@@ -64,10 +65,11 @@ exports[`StyledSpinnerContainer renders correctly in medium size 1`] = `
|
|
|
64
65
|
style={
|
|
65
66
|
Array [
|
|
66
67
|
Object {
|
|
67
|
-
"backgroundColor": "#
|
|
68
|
+
"backgroundColor": "#001f23",
|
|
68
69
|
"borderRadius": 999,
|
|
69
70
|
"height": 16,
|
|
70
71
|
"marginLeft": 8,
|
|
72
|
+
"opacity": 0.75,
|
|
71
73
|
"width": 16,
|
|
72
74
|
},
|
|
73
75
|
Object {},
|
|
@@ -98,9 +100,10 @@ exports[`StyledSpinnerContainer renders correctly in medium size 1`] = `
|
|
|
98
100
|
style={
|
|
99
101
|
Array [
|
|
100
102
|
Object {
|
|
101
|
-
"backgroundColor": "#
|
|
103
|
+
"backgroundColor": "#001f23",
|
|
102
104
|
"borderRadius": 999,
|
|
103
105
|
"height": 16,
|
|
106
|
+
"opacity": 0.5,
|
|
104
107
|
"width": 16,
|
|
105
108
|
},
|
|
106
109
|
Object {},
|
|
@@ -115,10 +118,11 @@ exports[`StyledSpinnerContainer renders correctly in medium size 1`] = `
|
|
|
115
118
|
style={
|
|
116
119
|
Array [
|
|
117
120
|
Object {
|
|
118
|
-
"backgroundColor": "#
|
|
121
|
+
"backgroundColor": "#001f23",
|
|
119
122
|
"borderRadius": 999,
|
|
120
123
|
"height": 16,
|
|
121
124
|
"marginLeft": 8,
|
|
125
|
+
"opacity": 0.25,
|
|
122
126
|
"width": 16,
|
|
123
127
|
},
|
|
124
128
|
Object {},
|
|
@@ -179,9 +183,10 @@ exports[`StyledSpinnerContainer renders correctly in small size 1`] = `
|
|
|
179
183
|
style={
|
|
180
184
|
Array [
|
|
181
185
|
Object {
|
|
182
|
-
"backgroundColor": "#
|
|
186
|
+
"backgroundColor": "#001f23",
|
|
183
187
|
"borderRadius": 999,
|
|
184
188
|
"height": 8,
|
|
189
|
+
"opacity": 1,
|
|
185
190
|
"width": 8,
|
|
186
191
|
},
|
|
187
192
|
Object {},
|
|
@@ -196,10 +201,11 @@ exports[`StyledSpinnerContainer renders correctly in small size 1`] = `
|
|
|
196
201
|
style={
|
|
197
202
|
Array [
|
|
198
203
|
Object {
|
|
199
|
-
"backgroundColor": "#
|
|
204
|
+
"backgroundColor": "#001f23",
|
|
200
205
|
"borderRadius": 999,
|
|
201
206
|
"height": 8,
|
|
202
207
|
"marginLeft": 4,
|
|
208
|
+
"opacity": 0.75,
|
|
203
209
|
"width": 8,
|
|
204
210
|
},
|
|
205
211
|
Object {},
|
|
@@ -230,9 +236,10 @@ exports[`StyledSpinnerContainer renders correctly in small size 1`] = `
|
|
|
230
236
|
style={
|
|
231
237
|
Array [
|
|
232
238
|
Object {
|
|
233
|
-
"backgroundColor": "#
|
|
239
|
+
"backgroundColor": "#001f23",
|
|
234
240
|
"borderRadius": 999,
|
|
235
241
|
"height": 8,
|
|
242
|
+
"opacity": 0.5,
|
|
236
243
|
"width": 8,
|
|
237
244
|
},
|
|
238
245
|
Object {},
|
|
@@ -247,10 +254,11 @@ exports[`StyledSpinnerContainer renders correctly in small size 1`] = `
|
|
|
247
254
|
style={
|
|
248
255
|
Array [
|
|
249
256
|
Object {
|
|
250
|
-
"backgroundColor": "#
|
|
257
|
+
"backgroundColor": "#001f23",
|
|
251
258
|
"borderRadius": 999,
|
|
252
259
|
"height": 8,
|
|
253
260
|
"marginLeft": 4,
|
|
261
|
+
"opacity": 0.25,
|
|
254
262
|
"width": 8,
|
|
255
263
|
},
|
|
256
264
|
Object {},
|
|
@@ -333,9 +341,10 @@ exports[`StyledSpinnerText renders correctly when position is bottomLeft, size i
|
|
|
333
341
|
style={
|
|
334
342
|
Array [
|
|
335
343
|
Object {
|
|
336
|
-
"backgroundColor": "#
|
|
344
|
+
"backgroundColor": "#001f23",
|
|
337
345
|
"borderRadius": 999,
|
|
338
346
|
"height": 16,
|
|
347
|
+
"opacity": 0.5,
|
|
339
348
|
"width": 16,
|
|
340
349
|
},
|
|
341
350
|
undefined,
|
|
@@ -351,9 +360,10 @@ exports[`StyledSpinnerText renders correctly when position is bottomLeft, size i
|
|
|
351
360
|
style={
|
|
352
361
|
Array [
|
|
353
362
|
Object {
|
|
354
|
-
"backgroundColor": "#
|
|
363
|
+
"backgroundColor": "#001f23",
|
|
355
364
|
"borderRadius": 999,
|
|
356
365
|
"height": 8,
|
|
366
|
+
"opacity": 0.5,
|
|
357
367
|
"width": 8,
|
|
358
368
|
},
|
|
359
369
|
undefined,
|
|
@@ -369,10 +379,11 @@ exports[`StyledSpinnerText renders correctly when position is bottomRight, size
|
|
|
369
379
|
style={
|
|
370
380
|
Array [
|
|
371
381
|
Object {
|
|
372
|
-
"backgroundColor": "#
|
|
382
|
+
"backgroundColor": "#001f23",
|
|
373
383
|
"borderRadius": 999,
|
|
374
384
|
"height": 16,
|
|
375
385
|
"marginLeft": 8,
|
|
386
|
+
"opacity": 0.25,
|
|
376
387
|
"width": 16,
|
|
377
388
|
},
|
|
378
389
|
undefined,
|
|
@@ -388,10 +399,11 @@ exports[`StyledSpinnerText renders correctly when position is bottomRight, size
|
|
|
388
399
|
style={
|
|
389
400
|
Array [
|
|
390
401
|
Object {
|
|
391
|
-
"backgroundColor": "#
|
|
402
|
+
"backgroundColor": "#001f23",
|
|
392
403
|
"borderRadius": 999,
|
|
393
404
|
"height": 8,
|
|
394
405
|
"marginLeft": 4,
|
|
406
|
+
"opacity": 0.25,
|
|
395
407
|
"width": 8,
|
|
396
408
|
},
|
|
397
409
|
undefined,
|
|
@@ -407,9 +419,10 @@ exports[`StyledSpinnerText renders correctly when position is topLeft, size is m
|
|
|
407
419
|
style={
|
|
408
420
|
Array [
|
|
409
421
|
Object {
|
|
410
|
-
"backgroundColor": "#
|
|
422
|
+
"backgroundColor": "#001f23",
|
|
411
423
|
"borderRadius": 999,
|
|
412
424
|
"height": 16,
|
|
425
|
+
"opacity": 1,
|
|
413
426
|
"width": 16,
|
|
414
427
|
},
|
|
415
428
|
undefined,
|
|
@@ -425,9 +438,10 @@ exports[`StyledSpinnerText renders correctly when position is topLeft, size is s
|
|
|
425
438
|
style={
|
|
426
439
|
Array [
|
|
427
440
|
Object {
|
|
428
|
-
"backgroundColor": "#
|
|
441
|
+
"backgroundColor": "#001f23",
|
|
429
442
|
"borderRadius": 999,
|
|
430
443
|
"height": 8,
|
|
444
|
+
"opacity": 1,
|
|
431
445
|
"width": 8,
|
|
432
446
|
},
|
|
433
447
|
undefined,
|
|
@@ -443,10 +457,11 @@ exports[`StyledSpinnerText renders correctly when position is topRight, size is
|
|
|
443
457
|
style={
|
|
444
458
|
Array [
|
|
445
459
|
Object {
|
|
446
|
-
"backgroundColor": "#
|
|
460
|
+
"backgroundColor": "#001f23",
|
|
447
461
|
"borderRadius": 999,
|
|
448
462
|
"height": 16,
|
|
449
463
|
"marginLeft": 8,
|
|
464
|
+
"opacity": 0.75,
|
|
450
465
|
"width": 16,
|
|
451
466
|
},
|
|
452
467
|
undefined,
|
|
@@ -462,10 +477,11 @@ exports[`StyledSpinnerText renders correctly when position is topRight, size is
|
|
|
462
477
|
style={
|
|
463
478
|
Array [
|
|
464
479
|
Object {
|
|
465
|
-
"backgroundColor": "#
|
|
480
|
+
"backgroundColor": "#001f23",
|
|
466
481
|
"borderRadius": 999,
|
|
467
482
|
"height": 8,
|
|
468
483
|
"marginLeft": 4,
|
|
484
|
+
"opacity": 0.75,
|
|
469
485
|
"width": 8,
|
|
470
486
|
},
|
|
471
487
|
undefined,
|
|
@@ -56,9 +56,10 @@ exports[`Spinner renders correctly 1`] = `
|
|
|
56
56
|
style={
|
|
57
57
|
Array [
|
|
58
58
|
Object {
|
|
59
|
-
"backgroundColor": "#
|
|
59
|
+
"backgroundColor": "#001f23",
|
|
60
60
|
"borderRadius": 999,
|
|
61
61
|
"height": 16,
|
|
62
|
+
"opacity": 1,
|
|
62
63
|
"width": 16,
|
|
63
64
|
},
|
|
64
65
|
Object {},
|
|
@@ -73,10 +74,11 @@ exports[`Spinner renders correctly 1`] = `
|
|
|
73
74
|
style={
|
|
74
75
|
Array [
|
|
75
76
|
Object {
|
|
76
|
-
"backgroundColor": "#
|
|
77
|
+
"backgroundColor": "#001f23",
|
|
77
78
|
"borderRadius": 999,
|
|
78
79
|
"height": 16,
|
|
79
80
|
"marginLeft": 8,
|
|
81
|
+
"opacity": 0.75,
|
|
80
82
|
"width": 16,
|
|
81
83
|
},
|
|
82
84
|
Object {},
|
|
@@ -107,9 +109,10 @@ exports[`Spinner renders correctly 1`] = `
|
|
|
107
109
|
style={
|
|
108
110
|
Array [
|
|
109
111
|
Object {
|
|
110
|
-
"backgroundColor": "#
|
|
112
|
+
"backgroundColor": "#001f23",
|
|
111
113
|
"borderRadius": 999,
|
|
112
114
|
"height": 16,
|
|
115
|
+
"opacity": 0.5,
|
|
113
116
|
"width": 16,
|
|
114
117
|
},
|
|
115
118
|
Object {},
|
|
@@ -124,10 +127,11 @@ exports[`Spinner renders correctly 1`] = `
|
|
|
124
127
|
style={
|
|
125
128
|
Array [
|
|
126
129
|
Object {
|
|
127
|
-
"backgroundColor": "#
|
|
130
|
+
"backgroundColor": "#001f23",
|
|
128
131
|
"borderRadius": 999,
|
|
129
132
|
"height": 16,
|
|
130
133
|
"marginLeft": 8,
|
|
134
|
+
"opacity": 0.25,
|
|
131
135
|
"width": 16,
|
|
132
136
|
},
|
|
133
137
|
Object {},
|
|
@@ -21,7 +21,7 @@ exports[`StyledWrapper renders correct style with variant checked 1`] = `
|
|
|
21
21
|
style={
|
|
22
22
|
Array [
|
|
23
23
|
Object {
|
|
24
|
-
"backgroundColor": "#
|
|
24
|
+
"backgroundColor": "#401960",
|
|
25
25
|
"borderRadius": 999,
|
|
26
26
|
"display": "flex",
|
|
27
27
|
"height": 32,
|
|
@@ -42,7 +42,7 @@ exports[`StyledWrapper renders correct style with variant disabled-checked 1`] =
|
|
|
42
42
|
style={
|
|
43
43
|
Array [
|
|
44
44
|
Object {
|
|
45
|
-
"backgroundColor": "#
|
|
45
|
+
"backgroundColor": "#a08cb0",
|
|
46
46
|
"borderRadius": 999,
|
|
47
47
|
"display": "flex",
|
|
48
48
|
"height": 32,
|
|
@@ -63,7 +63,7 @@ exports[`StyledWrapper renders correct style with variant disabled-unchecked 1`]
|
|
|
63
63
|
style={
|
|
64
64
|
Array [
|
|
65
65
|
Object {
|
|
66
|
-
"backgroundColor": "#
|
|
66
|
+
"backgroundColor": "#bfc1c5",
|
|
67
67
|
"borderRadius": 999,
|
|
68
68
|
"display": "flex",
|
|
69
69
|
"height": 32,
|
|
@@ -101,12 +101,9 @@ const ScrollableTab = ({
|
|
|
101
101
|
|
|
102
102
|
return (
|
|
103
103
|
<TabContainer style={containerStyle} testID={componentTestID}>
|
|
104
|
-
<HeaderTabWrapper
|
|
105
|
-
themeInsets={insets}
|
|
106
|
-
style={barStyle}
|
|
107
|
-
testID={componentTestID ? `${componentTestID}-tab-bar` : undefined}
|
|
108
|
-
>
|
|
104
|
+
<HeaderTabWrapper themeInsets={insets} style={barStyle}>
|
|
109
105
|
<FlatList<TabType>
|
|
106
|
+
testID={componentTestID ? `${componentTestID}-tab-bar` : undefined}
|
|
110
107
|
ref={flatListRef}
|
|
111
108
|
horizontal
|
|
112
109
|
data={tabs}
|
|
@@ -153,7 +153,7 @@ exports[`Label renders correctly with themeVariant readonly 1`] = `
|
|
|
153
153
|
},
|
|
154
154
|
Array [
|
|
155
155
|
Object {
|
|
156
|
-
"color": "#
|
|
156
|
+
"color": "#bfc1c5",
|
|
157
157
|
},
|
|
158
158
|
undefined,
|
|
159
159
|
],
|
|
@@ -362,7 +362,7 @@ exports[`LabelInsideTextInput renders correctly with themeVariant readonly 1`] =
|
|
|
362
362
|
Object {
|
|
363
363
|
"alignContent": "center",
|
|
364
364
|
"alignItems": "center",
|
|
365
|
-
"color": "#
|
|
365
|
+
"color": "#bfc1c5",
|
|
366
366
|
"fontSize": 14,
|
|
367
367
|
"textAlignVertical": "center",
|
|
368
368
|
},
|
|
@@ -392,7 +392,7 @@ exports[`StyledAsteriskLabel renders correctly with themeVariant default 1`] = `
|
|
|
392
392
|
},
|
|
393
393
|
Array [
|
|
394
394
|
Object {
|
|
395
|
-
"color": "#
|
|
395
|
+
"color": "#f46363",
|
|
396
396
|
},
|
|
397
397
|
undefined,
|
|
398
398
|
],
|
|
@@ -448,7 +448,7 @@ exports[`StyledAsteriskLabel renders correctly with themeVariant error 1`] = `
|
|
|
448
448
|
},
|
|
449
449
|
Array [
|
|
450
450
|
Object {
|
|
451
|
-
"color": "#
|
|
451
|
+
"color": "#f46363",
|
|
452
452
|
},
|
|
453
453
|
undefined,
|
|
454
454
|
],
|
|
@@ -476,7 +476,7 @@ exports[`StyledAsteriskLabel renders correctly with themeVariant filled 1`] = `
|
|
|
476
476
|
},
|
|
477
477
|
Array [
|
|
478
478
|
Object {
|
|
479
|
-
"color": "#
|
|
479
|
+
"color": "#f46363",
|
|
480
480
|
},
|
|
481
481
|
undefined,
|
|
482
482
|
],
|
|
@@ -504,7 +504,7 @@ exports[`StyledAsteriskLabel renders correctly with themeVariant focused 1`] = `
|
|
|
504
504
|
},
|
|
505
505
|
Array [
|
|
506
506
|
Object {
|
|
507
|
-
"color": "#
|
|
507
|
+
"color": "#f46363",
|
|
508
508
|
},
|
|
509
509
|
undefined,
|
|
510
510
|
],
|
|
@@ -588,7 +588,7 @@ exports[`StyledContainer renders correctly with themeVariant error 1`] = `
|
|
|
588
588
|
style={
|
|
589
589
|
Array [
|
|
590
590
|
Object {
|
|
591
|
-
"borderColor": "#
|
|
591
|
+
"borderColor": "#f46363",
|
|
592
592
|
"borderRadius": 8,
|
|
593
593
|
"borderWidth": 1,
|
|
594
594
|
"marginVertical": 8,
|
|
@@ -668,7 +668,7 @@ exports[`StyledErrorMessage renders correctly 1`] = `
|
|
|
668
668
|
},
|
|
669
669
|
Array [
|
|
670
670
|
Object {
|
|
671
|
-
"color": "#
|
|
671
|
+
"color": "#f46363",
|
|
672
672
|
"fontSize": 12,
|
|
673
673
|
"marginLeft": 4,
|
|
674
674
|
},
|
|
@@ -816,7 +816,7 @@ exports[`StyledMaxLengthMessage renders correctly with themeVariant error 1`] =
|
|
|
816
816
|
Array [
|
|
817
817
|
Object {
|
|
818
818
|
"alignSelf": "flex-end",
|
|
819
|
-
"color": "#
|
|
819
|
+
"color": "#f46363",
|
|
820
820
|
"flex": 1,
|
|
821
821
|
"flexGrow": 1,
|
|
822
822
|
"fontSize": 12,
|
|
@@ -918,7 +918,7 @@ exports[`StyledMaxLengthMessage renders correctly with themeVariant readonly 1`]
|
|
|
918
918
|
Array [
|
|
919
919
|
Object {
|
|
920
920
|
"alignSelf": "flex-end",
|
|
921
|
-
"color": "#
|
|
921
|
+
"color": "#bfc1c5",
|
|
922
922
|
"flex": 1,
|
|
923
923
|
"flexGrow": 1,
|
|
924
924
|
"fontSize": 12,
|
|
@@ -58,7 +58,7 @@ exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
|
|
|
58
58
|
},
|
|
59
59
|
Array [
|
|
60
60
|
Object {
|
|
61
|
-
"color": "#
|
|
61
|
+
"color": "#f46363",
|
|
62
62
|
},
|
|
63
63
|
undefined,
|
|
64
64
|
],
|
|
@@ -298,7 +298,7 @@ exports[`TextInput defaultValue default Value and Value renders correctly with 2
|
|
|
298
298
|
},
|
|
299
299
|
Array [
|
|
300
300
|
Object {
|
|
301
|
-
"color": "#
|
|
301
|
+
"color": "#f46363",
|
|
302
302
|
},
|
|
303
303
|
undefined,
|
|
304
304
|
],
|
|
@@ -654,7 +654,7 @@ exports[`TextInput error renders correctly 1`] = `
|
|
|
654
654
|
style={
|
|
655
655
|
Array [
|
|
656
656
|
Object {
|
|
657
|
-
"borderColor": "#
|
|
657
|
+
"borderColor": "#f46363",
|
|
658
658
|
"borderRadius": 8,
|
|
659
659
|
"borderWidth": 1,
|
|
660
660
|
"marginVertical": 8,
|
|
@@ -736,7 +736,7 @@ exports[`TextInput error renders correctly 1`] = `
|
|
|
736
736
|
},
|
|
737
737
|
Array [
|
|
738
738
|
Object {
|
|
739
|
-
"color": "#
|
|
739
|
+
"color": "#f46363",
|
|
740
740
|
"fontSize": 14,
|
|
741
741
|
},
|
|
742
742
|
undefined,
|
|
@@ -871,7 +871,7 @@ exports[`TextInput error renders correctly 1`] = `
|
|
|
871
871
|
},
|
|
872
872
|
Array [
|
|
873
873
|
Object {
|
|
874
|
-
"color": "#
|
|
874
|
+
"color": "#f46363",
|
|
875
875
|
"fontSize": 12,
|
|
876
876
|
"marginLeft": 4,
|
|
877
877
|
},
|
|
@@ -1151,7 +1151,7 @@ exports[`TextInput helper text renders correctly 1`] = `
|
|
|
1151
1151
|
},
|
|
1152
1152
|
Array [
|
|
1153
1153
|
Object {
|
|
1154
|
-
"color": "#
|
|
1154
|
+
"color": "#f46363",
|
|
1155
1155
|
"fontSize": 14,
|
|
1156
1156
|
},
|
|
1157
1157
|
undefined,
|
|
@@ -1539,7 +1539,7 @@ exports[`TextInput idle with suffix and prefix are React Element renders correct
|
|
|
1539
1539
|
},
|
|
1540
1540
|
Array [
|
|
1541
1541
|
Object {
|
|
1542
|
-
"color": "#
|
|
1542
|
+
"color": "#f46363",
|
|
1543
1543
|
"fontSize": 14,
|
|
1544
1544
|
},
|
|
1545
1545
|
undefined,
|
|
@@ -1801,7 +1801,7 @@ exports[`TextInput max length renders correctly 1`] = `
|
|
|
1801
1801
|
style={
|
|
1802
1802
|
Array [
|
|
1803
1803
|
Object {
|
|
1804
|
-
"borderColor": "#
|
|
1804
|
+
"borderColor": "#f46363",
|
|
1805
1805
|
"borderRadius": 8,
|
|
1806
1806
|
"borderWidth": 1,
|
|
1807
1807
|
"marginVertical": 8,
|
|
@@ -1853,7 +1853,7 @@ exports[`TextInput max length renders correctly 1`] = `
|
|
|
1853
1853
|
},
|
|
1854
1854
|
Array [
|
|
1855
1855
|
Object {
|
|
1856
|
-
"color": "#
|
|
1856
|
+
"color": "#f46363",
|
|
1857
1857
|
},
|
|
1858
1858
|
undefined,
|
|
1859
1859
|
],
|
|
@@ -2000,7 +2000,7 @@ exports[`TextInput max length renders correctly 1`] = `
|
|
|
2000
2000
|
},
|
|
2001
2001
|
Array [
|
|
2002
2002
|
Object {
|
|
2003
|
-
"color": "#
|
|
2003
|
+
"color": "#f46363",
|
|
2004
2004
|
"fontSize": 12,
|
|
2005
2005
|
"marginLeft": 4,
|
|
2006
2006
|
},
|
|
@@ -2029,7 +2029,7 @@ exports[`TextInput max length renders correctly 1`] = `
|
|
|
2029
2029
|
Array [
|
|
2030
2030
|
Object {
|
|
2031
2031
|
"alignSelf": "flex-end",
|
|
2032
|
-
"color": "#
|
|
2032
|
+
"color": "#f46363",
|
|
2033
2033
|
"flex": 1,
|
|
2034
2034
|
"flexGrow": 1,
|
|
2035
2035
|
"fontSize": 12,
|
|
@@ -2142,7 +2142,7 @@ exports[`TextInput placeholder TextInput is idle renders correctly 1`] = `
|
|
|
2142
2142
|
},
|
|
2143
2143
|
Array [
|
|
2144
2144
|
Object {
|
|
2145
|
-
"color": "#
|
|
2145
|
+
"color": "#f46363",
|
|
2146
2146
|
"fontSize": 14,
|
|
2147
2147
|
},
|
|
2148
2148
|
undefined,
|
|
@@ -2347,7 +2347,7 @@ exports[`TextInput readonly renders correctly 1`] = `
|
|
|
2347
2347
|
},
|
|
2348
2348
|
Array [
|
|
2349
2349
|
Object {
|
|
2350
|
-
"color": "#
|
|
2350
|
+
"color": "#bfc1c5",
|
|
2351
2351
|
},
|
|
2352
2352
|
undefined,
|
|
2353
2353
|
],
|
|
@@ -2548,7 +2548,7 @@ exports[`TextInput required renders correctly 1`] = `
|
|
|
2548
2548
|
},
|
|
2549
2549
|
Array [
|
|
2550
2550
|
Object {
|
|
2551
|
-
"color": "#
|
|
2551
|
+
"color": "#f46363",
|
|
2552
2552
|
"fontSize": 14,
|
|
2553
2553
|
},
|
|
2554
2554
|
undefined,
|
|
@@ -20,9 +20,7 @@ const ToastProvider = ({
|
|
|
20
20
|
position = 'top',
|
|
21
21
|
}: ToastProviderProps) => {
|
|
22
22
|
const toastRef = useRef<ToastControllerContextType>(null);
|
|
23
|
-
const [refState, setRefState] = useState<ToastControllerContextType>(
|
|
24
|
-
{} as ToastControllerContextType
|
|
25
|
-
);
|
|
23
|
+
const [refState, setRefState] = useState<ToastControllerContextType>(null);
|
|
26
24
|
|
|
27
25
|
useEffect(() => {
|
|
28
26
|
if (toastRef.current) {
|
|
@@ -38,7 +36,7 @@ const ToastProvider = ({
|
|
|
38
36
|
return (
|
|
39
37
|
<ToastContext.Provider value={refState}>
|
|
40
38
|
<View style={{ flex: 1 }}>
|
|
41
|
-
{children}
|
|
39
|
+
{refState ? children : null}
|
|
42
40
|
<ToastConfigContext.Provider value={config}>
|
|
43
41
|
<ToastContainer
|
|
44
42
|
ref={toastRef}
|