@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.
Files changed (117) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/es/index.js +271 -242
  3. package/lib/index.js +271 -242
  4. package/package.json +4 -4
  5. package/src/components/Accordion/AccordionItem.tsx +1 -1
  6. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +8 -8
  7. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  8. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -3
  9. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  10. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  11. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +2 -2
  12. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  13. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +24 -24
  14. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +6 -6
  15. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +3 -3
  16. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  17. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
  18. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  19. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +2 -2
  20. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +5 -5
  21. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  22. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +1 -1
  23. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  24. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
  25. package/src/components/Icon/HeroIcon/index.tsx +2 -0
  26. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  27. package/src/components/Icon/index.tsx +1 -0
  28. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +2 -2
  29. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +12 -12
  30. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +2 -2
  31. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +4 -4
  32. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +6 -6
  33. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +21 -21
  34. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +5 -5
  35. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +1 -1
  36. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +1 -1
  37. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +1 -1
  38. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -4
  39. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  40. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
  41. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +13 -9
  42. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +18 -18
  43. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
  44. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -8
  45. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  46. package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +1 -1
  47. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  48. package/src/components/Spinner/StyledSpinner.tsx +8 -4
  49. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +8 -4
  50. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +32 -16
  51. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +8 -4
  52. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +3 -3
  53. package/src/components/Tabs/ScrollableTabs.tsx +2 -5
  54. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +1 -1
  55. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +1 -1
  56. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +10 -10
  57. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +14 -14
  58. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -1
  59. package/src/components/Toast/ToastProvider.tsx +2 -4
  60. package/src/components/Toast/__tests__/index.spec.tsx +138 -0
  61. package/src/components/Toolbar/ToolbarItem.tsx +1 -1
  62. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
  63. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +6 -6
  64. package/src/components/Typography/Text/StyledText.tsx +1 -0
  65. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +3 -3
  66. package/src/components/Typography/Text/index.tsx +1 -0
  67. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +92 -85
  68. package/src/theme/components/accordion.ts +1 -1
  69. package/src/theme/components/alert.ts +4 -4
  70. package/src/theme/components/avatar.ts +2 -2
  71. package/src/theme/components/badge.ts +6 -6
  72. package/src/theme/components/bottomNavigation.ts +2 -2
  73. package/src/theme/components/bottomSheet.ts +3 -3
  74. package/src/theme/components/button.ts +20 -20
  75. package/src/theme/components/calendar.ts +4 -4
  76. package/src/theme/components/card.ts +5 -5
  77. package/src/theme/components/checkbox.ts +1 -1
  78. package/src/theme/components/divider.ts +1 -1
  79. package/src/theme/components/drawer.ts +4 -4
  80. package/src/theme/components/empty.ts +3 -4
  81. package/src/theme/components/fab.ts +7 -7
  82. package/src/theme/components/icon.ts +4 -3
  83. package/src/theme/components/list.ts +6 -7
  84. package/src/theme/components/pinInput.ts +4 -4
  85. package/src/theme/components/progress.ts +3 -3
  86. package/src/theme/components/richTextEditor.ts +3 -3
  87. package/src/theme/components/sectionHeading.ts +1 -1
  88. package/src/theme/components/select.ts +1 -1
  89. package/src/theme/components/slider.ts +3 -3
  90. package/src/theme/components/spinner.ts +1 -4
  91. package/src/theme/components/switch.ts +7 -7
  92. package/src/theme/components/tabs.ts +5 -5
  93. package/src/theme/components/tag.ts +12 -12
  94. package/src/theme/components/textInput.ts +38 -38
  95. package/src/theme/components/toast.ts +6 -6
  96. package/src/theme/components/toolbar.ts +3 -2
  97. package/src/theme/components/typography.ts +4 -3
  98. package/src/theme/global/colors/global.ts +32 -0
  99. package/src/theme/global/colors/legacySystemPalette.ts +53 -0
  100. package/src/theme/global/colors/swag.ts +21 -35
  101. package/src/theme/global/colors/types.ts +46 -27
  102. package/src/theme/global/colors/work.ts +10 -9
  103. package/types/components/Icon/HeroIcon/index.d.ts +1 -1
  104. package/types/components/Icon/index.d.ts +1 -1
  105. package/types/components/Toast/__tests__/index.spec.d.ts +1 -0
  106. package/types/components/Toolbar/ToolbarItem.d.ts +1 -1
  107. package/types/components/Typography/Text/StyledText.d.ts +1 -1
  108. package/types/components/Typography/Text/index.d.ts +1 -1
  109. package/types/theme/components/empty.d.ts +0 -1
  110. package/types/theme/components/icon.d.ts +1 -0
  111. package/types/theme/components/spinner.d.ts +1 -4
  112. package/types/theme/components/toolbar.d.ts +1 -0
  113. package/types/theme/components/typography.d.ts +1 -0
  114. package/types/theme/global/colors/global.d.ts +3 -0
  115. package/types/theme/global/colors/legacySystemPalette.d.ts +3 -0
  116. package/types/theme/global/colors/types.d.ts +41 -21
  117. 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": "#795e90",
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": "#a08cb0",
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": "#d9d1df",
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": "#ece8ef",
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": "#795e90",
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": "#a08cb0",
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": "#d9d1df",
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": "#ece8ef",
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": "#795e90",
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": "#a08cb0",
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": "#d9d1df",
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": "#ece8ef",
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": "#d9d1df",
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": "#d9d1df",
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": "#ece8ef",
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": "#ece8ef",
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": "#795e90",
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": "#795e90",
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": "#a08cb0",
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": "#a08cb0",
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": "#795e90",
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": "#a08cb0",
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": "#d9d1df",
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": "#ece8ef",
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": "#8505a2",
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": "#c282d1",
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": "#ccced1",
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}
@@ -239,7 +239,7 @@ exports[`Tabs.Scroll renders correctly 1`] = `
239
239
  nativeID="animatedComponent"
240
240
  style={
241
241
  Object {
242
- "backgroundColor": "#ece8ef",
242
+ "backgroundColor": "#e6e9e9",
243
243
  "borderRadius": 8,
244
244
  "flex": 1,
245
245
  "transform": Array [
@@ -5,7 +5,7 @@ exports[`Tag has archived style when intent is archived 1`] = `
5
5
  style={
6
6
  Array [
7
7
  Object {
8
- "backgroundColor": "#f6f6f7",
8
+ "backgroundColor": "#f1f2f3",
9
9
  "borderColor": "#737479",
10
10
  "borderRadius": 4,
11
11
  "borderWidth": 1,
@@ -153,7 +153,7 @@ exports[`Label renders correctly with themeVariant readonly 1`] = `
153
153
  },
154
154
  Array [
155
155
  Object {
156
- "color": "#808f91",
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": "#808f91",
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": "#de350b",
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": "#de350b",
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": "#de350b",
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": "#de350b",
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": "#de350b",
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": "#de350b",
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": "#de350b",
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": "#808f91",
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": "#de350b",
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": "#de350b",
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": "#de350b",
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": "#de350b",
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": "#de350b",
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": "#de350b",
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": "#de350b",
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": "#de350b",
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": "#de350b",
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": "#de350b",
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": "#de350b",
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": "#de350b",
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": "#808f91",
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": "#de350b",
2551
+ "color": "#f46363",
2552
2552
  "fontSize": 14,
2553
2553
  },
2554
2554
  undefined,
@@ -488,7 +488,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
488
488
  style={
489
489
  Array [
490
490
  Object {
491
- "color": "#8505a2",
491
+ "color": "#001f23",
492
492
  "fontFamily": "BeVietnamPro-SemiBold",
493
493
  "fontSize": 16,
494
494
  "letterSpacing": 0.48,
@@ -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}