@hero-design/rn 8.91.1 → 8.91.4

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 (106) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/CHANGELOG.md +27 -0
  3. package/es/index.js +170 -77
  4. package/lib/index.js +170 -77
  5. package/package.json +1 -1
  6. package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +12 -12
  7. package/src/components/BottomSheet/StyledBottomSheet.tsx +0 -10
  8. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +0 -16
  9. package/src/components/Calendar/CalendarRange.tsx +5 -1
  10. package/src/components/Calendar/__tests__/helper.spec.ts +20 -8
  11. package/src/components/Calendar/helpers.ts +6 -2
  12. package/src/components/Checkbox/StyledCheckbox.tsx +3 -3
  13. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +1 -1
  14. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  15. package/src/components/Checkbox/__tests__/index.spec.tsx +11 -7
  16. package/src/components/Checkbox/index.tsx +11 -2
  17. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
  18. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +63 -3
  19. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +21 -1
  20. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +21 -1
  21. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +42 -18
  22. package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -1
  23. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
  24. package/src/components/FAB/Pair/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  25. package/src/components/FAB/StyledFAB.tsx +1 -5
  26. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +4 -4
  27. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  28. package/src/components/FloatingIsland/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  29. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +2 -1
  30. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -2
  31. package/src/components/MapPin/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  32. package/src/components/RichTextEditor/RichTextEditor.tsx +2 -1
  33. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +40 -2
  34. package/src/components/Search/SearchOneLine.tsx +3 -1
  35. package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +7 -0
  36. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +147 -47
  37. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +126 -38
  38. package/src/components/Slider/__tests__/__snapshots__/RangeSlider.spec.tsx.snap +2 -2
  39. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  40. package/src/components/Switch/StyledSwitch.tsx +1 -0
  41. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +7 -3
  42. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  43. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +337 -16
  44. package/src/components/TextInput/__tests__/index.spec.tsx +2 -0
  45. package/src/components/TextInput/index.tsx +7 -2
  46. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +42 -2
  47. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +42 -10
  48. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +7 -7
  49. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +52 -29
  50. package/src/theme/components/bottomSheet.ts +2 -9
  51. package/src/theme/components/checkbox.ts +7 -0
  52. package/src/theme/components/fab.ts +5 -9
  53. package/src/theme/components/switch.ts +5 -5
  54. package/src/theme/components/textInput.ts +1 -0
  55. package/src/theme/global/colors/__tests__/__snapshots__/eBens.spec.ts.snap +2 -0
  56. package/src/theme/global/colors/__tests__/__snapshots__/global.spec.ts.snap +2 -0
  57. package/src/theme/global/colors/__tests__/__snapshots__/jobs.spec.ts.snap +2 -0
  58. package/src/theme/global/colors/__tests__/__snapshots__/swag.spec.ts.snap +2 -0
  59. package/src/theme/global/colors/__tests__/__snapshots__/swagLight.spec.ts.snap +6 -3
  60. package/src/theme/global/colors/__tests__/__snapshots__/swagLightGlobal.spec.ts.snap +5 -3
  61. package/src/theme/global/colors/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +6 -3
  62. package/src/theme/global/colors/__tests__/__snapshots__/wallet.spec.ts.snap +2 -0
  63. package/src/theme/global/colors/__tests__/__snapshots__/work.spec.ts.snap +2 -0
  64. package/src/theme/global/colors/ehWorkDark.ts +1 -0
  65. package/src/theme/global/colors/global.ts +3 -0
  66. package/src/theme/global/colors/swagLight.ts +1 -0
  67. package/src/theme/global/colors/swagLightGlobal.ts +3 -3
  68. package/src/theme/global/colors/swagLightJobs.ts +3 -1
  69. package/src/theme/global/colors/types.ts +2 -0
  70. package/src/theme/global/shadows/__tests__/__snapshots__/ehWorkDark.spec.ts.snap +36 -0
  71. package/src/theme/global/shadows/__tests__/__snapshots__/swagLight.spec.ts.snap +36 -0
  72. package/src/theme/global/shadows/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +36 -0
  73. package/src/theme/global/shadows/__tests__/ehWorkDark.spec.ts +7 -0
  74. package/src/theme/global/shadows/__tests__/index.spec.ts +24 -0
  75. package/src/theme/global/shadows/__tests__/swagLight.spec.ts +7 -0
  76. package/src/theme/global/shadows/__tests__/swagLightJobs.spec.ts +7 -0
  77. package/src/theme/global/shadows/ehWorkDark.ts +37 -0
  78. package/src/theme/global/shadows/index.ts +23 -0
  79. package/src/theme/global/shadows/swagLight.ts +37 -0
  80. package/src/theme/global/shadows/swagLightJobs.ts +37 -0
  81. package/src/theme/global/shadows/types.ts +16 -0
  82. package/stats/8.91.2/rn-stats.html +4842 -0
  83. package/stats/8.91.3/rn-stats.html +4844 -0
  84. package/stats/8.91.4/rn-stats.html +4842 -0
  85. package/types/components/Calendar/helpers.d.ts +5 -2
  86. package/types/components/Checkbox/StyledCheckbox.d.ts +1 -1
  87. package/types/components/Checkbox/index.d.ts +2 -1
  88. package/types/components/TextInput/index.d.ts +3 -1
  89. package/types/theme/components/bottomSheet.d.ts +1 -10
  90. package/types/theme/components/checkbox.d.ts +7 -0
  91. package/types/theme/components/chip.d.ts +1 -10
  92. package/types/theme/components/fab.d.ts +2 -9
  93. package/types/theme/components/floatingIsland.d.ts +1 -10
  94. package/types/theme/components/slider.d.ts +1 -10
  95. package/types/theme/components/switch.d.ts +1 -1
  96. package/types/theme/components/textInput.d.ts +1 -0
  97. package/types/theme/global/colors/swagLightJobs.d.ts +2 -50
  98. package/types/theme/global/colors/types.d.ts +2 -0
  99. package/types/theme/global/index.d.ts +2 -12
  100. package/types/theme/global/shadows/ehWorkDark.d.ts +3 -0
  101. package/types/theme/global/shadows/index.d.ts +5 -0
  102. package/types/theme/global/shadows/swagLight.d.ts +3 -0
  103. package/types/theme/global/shadows/swagLightJobs.d.ts +3 -0
  104. package/types/theme/global/shadows/types.d.ts +15 -0
  105. package/src/theme/global/shadows.ts +0 -19
  106. package/types/theme/global/shadows.d.ts +0 -16
@@ -162,7 +162,26 @@ exports[`TimePickerAndroid renders correct with hide suffix 1`] = `
162
162
  themeTypeface="neutral"
163
163
  themeVariant="regular"
164
164
  >
165
- Break time
165
+ <Text
166
+ allowFontScaling={false}
167
+ style={
168
+ [
169
+ {
170
+ "color": "#001f23",
171
+ "fontFamily": "BeVietnamPro-Regular",
172
+ "fontSize": 16,
173
+ "letterSpacing": 0.48,
174
+ "lineHeight": 24,
175
+ },
176
+ undefined,
177
+ ]
178
+ }
179
+ themeIntent="body"
180
+ themeTypeface="neutral"
181
+ themeVariant="regular"
182
+ >
183
+ Break time
184
+ </Text>
166
185
  </Text>
167
186
  </View>
168
187
  <View
@@ -191,6 +210,7 @@ exports[`TimePickerAndroid renders correct with hide suffix 1`] = `
191
210
  onChangeText={[Function]}
192
211
  onFocus={[Function]}
193
212
  placeholder=" "
213
+ placeholderTextColor="#4d6265"
194
214
  style={
195
215
  [
196
216
  {
@@ -449,7 +469,26 @@ exports[`TimePickerAndroid renders correctly 1`] = `
449
469
  themeTypeface="neutral"
450
470
  themeVariant="regular"
451
471
  >
452
- Break time
472
+ <Text
473
+ allowFontScaling={false}
474
+ style={
475
+ [
476
+ {
477
+ "color": "#001f23",
478
+ "fontFamily": "BeVietnamPro-Regular",
479
+ "fontSize": 16,
480
+ "letterSpacing": 0.48,
481
+ "lineHeight": 24,
482
+ },
483
+ undefined,
484
+ ]
485
+ }
486
+ themeIntent="body"
487
+ themeTypeface="neutral"
488
+ themeVariant="regular"
489
+ >
490
+ Break time
491
+ </Text>
453
492
  </Text>
454
493
  </View>
455
494
  <View
@@ -478,6 +517,7 @@ exports[`TimePickerAndroid renders correctly 1`] = `
478
517
  onChangeText={[Function]}
479
518
  onFocus={[Function]}
480
519
  placeholder=" "
520
+ placeholderTextColor="#4d6265"
481
521
  style={
482
522
  [
483
523
  {
@@ -162,7 +162,26 @@ exports[`TimePickerIOS renders correct with hide suffix 1`] = `
162
162
  themeTypeface="neutral"
163
163
  themeVariant="regular"
164
164
  >
165
- Break time
165
+ <Text
166
+ allowFontScaling={false}
167
+ style={
168
+ [
169
+ {
170
+ "color": "#001f23",
171
+ "fontFamily": "BeVietnamPro-Regular",
172
+ "fontSize": 16,
173
+ "letterSpacing": 0.48,
174
+ "lineHeight": 24,
175
+ },
176
+ undefined,
177
+ ]
178
+ }
179
+ themeIntent="body"
180
+ themeTypeface="neutral"
181
+ themeVariant="regular"
182
+ >
183
+ Break time
184
+ </Text>
166
185
  </Text>
167
186
  </View>
168
187
  <View
@@ -191,6 +210,7 @@ exports[`TimePickerIOS renders correct with hide suffix 1`] = `
191
210
  onChangeText={[Function]}
192
211
  onFocus={[Function]}
193
212
  placeholder=" "
213
+ placeholderTextColor="#4d6265"
194
214
  style={
195
215
  [
196
216
  {
@@ -449,7 +469,26 @@ exports[`TimePickerIOS renders correctly 1`] = `
449
469
  themeTypeface="neutral"
450
470
  themeVariant="regular"
451
471
  >
452
- Break time
472
+ <Text
473
+ allowFontScaling={false}
474
+ style={
475
+ [
476
+ {
477
+ "color": "#001f23",
478
+ "fontFamily": "BeVietnamPro-Regular",
479
+ "fontSize": 16,
480
+ "letterSpacing": 0.48,
481
+ "lineHeight": 24,
482
+ },
483
+ undefined,
484
+ ]
485
+ }
486
+ themeIntent="body"
487
+ themeTypeface="neutral"
488
+ themeVariant="regular"
489
+ >
490
+ Break time
491
+ </Text>
453
492
  </Text>
454
493
  </View>
455
494
  <View
@@ -478,6 +517,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
478
517
  onChangeText={[Function]}
479
518
  onFocus={[Function]}
480
519
  placeholder=" "
520
+ placeholderTextColor="#4d6265"
481
521
  style={
482
522
  [
483
523
  {
@@ -680,15 +720,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
680
720
  "backgroundColor": "#ffffff",
681
721
  "borderTopLeftRadius": 16,
682
722
  "borderTopRightRadius": 16,
683
- "elevation": 10,
684
723
  "maxHeight": "94%",
685
- "shadowColor": "#001f23",
686
- "shadowOffset": {
687
- "height": 3,
688
- "width": 0,
689
- },
690
- "shadowOpacity": 0.4,
691
- "shadowRadius": 16,
692
724
  "transform": [
693
725
  {
694
726
  "scaleY": 1,
@@ -18,7 +18,7 @@ exports[`Toast Icon render custom icon correctly 1`] = `
18
18
  "flexDirection": "row",
19
19
  "minHeight": 48,
20
20
  "opacity": 0,
21
- "shadowColor": "#001f23",
21
+ "shadowColor": "#121214",
22
22
  "shadowOffset": {
23
23
  "height": 2,
24
24
  "width": 0,
@@ -163,7 +163,7 @@ exports[`Toast renders correctly when intent is error 1`] = `
163
163
  "flexDirection": "row",
164
164
  "minHeight": 48,
165
165
  "opacity": 0,
166
- "shadowColor": "#001f23",
166
+ "shadowColor": "#121214",
167
167
  "shadowOffset": {
168
168
  "height": 2,
169
169
  "width": 0,
@@ -371,7 +371,7 @@ exports[`Toast renders correctly when intent is info 1`] = `
371
371
  "flexDirection": "row",
372
372
  "minHeight": 48,
373
373
  "opacity": 0,
374
- "shadowColor": "#001f23",
374
+ "shadowColor": "#121214",
375
375
  "shadowOffset": {
376
376
  "height": 2,
377
377
  "width": 0,
@@ -579,7 +579,7 @@ exports[`Toast renders correctly when intent is notification 1`] = `
579
579
  "flexDirection": "row",
580
580
  "minHeight": 48,
581
581
  "opacity": 0,
582
- "shadowColor": "#001f23",
582
+ "shadowColor": "#121214",
583
583
  "shadowOffset": {
584
584
  "height": 2,
585
585
  "width": 0,
@@ -755,7 +755,7 @@ exports[`Toast renders correctly when intent is snackbar 1`] = `
755
755
  "flexDirection": "row",
756
756
  "minHeight": 48,
757
757
  "opacity": 0,
758
- "shadowColor": "#001f23",
758
+ "shadowColor": "#121214",
759
759
  "shadowOffset": {
760
760
  "height": 2,
761
761
  "width": 0,
@@ -931,7 +931,7 @@ exports[`Toast renders correctly when intent is success 1`] = `
931
931
  "flexDirection": "row",
932
932
  "minHeight": 48,
933
933
  "opacity": 0,
934
- "shadowColor": "#001f23",
934
+ "shadowColor": "#121214",
935
935
  "shadowOffset": {
936
936
  "height": 2,
937
937
  "width": 0,
@@ -1139,7 +1139,7 @@ exports[`Toast renders correctly when intent is warning 1`] = `
1139
1139
  "flexDirection": "row",
1140
1140
  "minHeight": 48,
1141
1141
  "opacity": 0,
1142
- "shadowColor": "#001f23",
1142
+ "shadowColor": "#121214",
1143
1143
  "shadowOffset": {
1144
1144
  "height": 2,
1145
1145
  "width": 0,
@@ -215,15 +215,6 @@ exports[`theme returns correct theme object 1`] = `
215
215
  "floating": 32,
216
216
  "floatingHeaderIcon": 999,
217
217
  },
218
- "shadows": {
219
- "elevation": 10,
220
- "offset": {
221
- "height": 3,
222
- "width": 0,
223
- },
224
- "opacity": 0.4,
225
- "radius": 16,
226
- },
227
218
  "sizes": {
228
219
  "closeIcon": 48,
229
220
  "floatingCloseIcon": 12,
@@ -408,10 +399,17 @@ exports[`theme returns correct theme object 1`] = `
408
399
  },
409
400
  "colors": {
410
401
  "borders": {
402
+ "checked": "#001f23",
411
403
  "default": "#001f23",
412
404
  "disabled": "#bfc1c5",
413
405
  "readonly": "#808f91",
414
406
  },
407
+ "checkboxBorder": {
408
+ "checked": "#401960",
409
+ "default": "#001f23",
410
+ "disabled": "#bfc1c5",
411
+ "readonly": "#4d6265",
412
+ },
415
413
  },
416
414
  "radii": {
417
415
  "icon": 4,
@@ -450,7 +448,7 @@ exports[`theme returns correct theme object 1`] = `
450
448
  "shadows": {
451
449
  "filledWrapper": {
452
450
  "elevation": 3,
453
- "shadowColor": "#001f23",
451
+ "shadowColor": "#121214",
454
452
  "shadowOffset": {
455
453
  "height": 2,
456
454
  "width": 0,
@@ -583,7 +581,7 @@ exports[`theme returns correct theme object 1`] = `
583
581
  "actionItemBackground": "#000000",
584
582
  "actionItemPressedBackground": "#000000",
585
583
  "actionItemText": "#ffffff",
586
- "backdropBackground": "#f6f6f7",
584
+ "backdropBackground": "#000000",
587
585
  "buttonActiveBackground": "#000000",
588
586
  "buttonBackground": "#000000",
589
587
  "buttonPressedBackground": "#000000",
@@ -607,14 +605,16 @@ exports[`theme returns correct theme object 1`] = `
607
605
  "actionItem": 999,
608
606
  },
609
607
  "shadows": {
610
- "color": "#001f23",
611
- "elevation": 3,
612
- "offset": {
613
- "height": 2,
614
- "width": 0,
608
+ "default": {
609
+ "elevation": 6,
610
+ "shadowColor": "#001f23",
611
+ "shadowOffset": {
612
+ "height": 2,
613
+ "width": 0,
614
+ },
615
+ "shadowOpacity": 0.12,
616
+ "shadowRadius": 2,
615
617
  },
616
- "opacity": 0.12,
617
- "radius": 4,
618
618
  },
619
619
  "sizes": {
620
620
  "fabPairHeight": 48,
@@ -649,7 +649,7 @@ exports[`theme returns correct theme object 1`] = `
649
649
  "shadows": {
650
650
  "wrapper": {
651
651
  "elevation": 3,
652
- "shadowColor": "#001f23",
652
+ "shadowColor": "#121214",
653
653
  "shadowOffset": {
654
654
  "height": 2,
655
655
  "width": 0,
@@ -717,7 +717,7 @@ exports[`theme returns correct theme object 1`] = `
717
717
  },
718
718
  "shadows": {
719
719
  "card": {
720
- "color": "#001f23",
720
+ "color": "#121214",
721
721
  "elevation": 3,
722
722
  "offset": {
723
723
  "height": 2,
@@ -758,7 +758,7 @@ exports[`theme returns correct theme object 1`] = `
758
758
  "default": 12,
759
759
  },
760
760
  "shadows": {
761
- "color": "#001f23",
761
+ "color": "#121214",
762
762
  "elevation": 3,
763
763
  "offset": {
764
764
  "height": 2,
@@ -981,7 +981,7 @@ exports[`theme returns correct theme object 1`] = `
981
981
  "surfix": 999,
982
982
  },
983
983
  "shadows": {
984
- "color": "#001f23",
984
+ "color": "#121214",
985
985
  "elevation": 3,
986
986
  "offset": {
987
987
  "height": 2,
@@ -1062,7 +1062,7 @@ exports[`theme returns correct theme object 1`] = `
1062
1062
  "shadows": {
1063
1063
  "marker": {
1064
1064
  "elevation": 3,
1065
- "shadowColor": "#001f23",
1065
+ "shadowColor": "#121214",
1066
1066
  "shadowOffset": {
1067
1067
  "height": 2,
1068
1068
  "width": 0,
@@ -1150,13 +1150,13 @@ exports[`theme returns correct theme object 1`] = `
1150
1150
  "switch": {
1151
1151
  "colors": {
1152
1152
  "backgroundColors": {
1153
- "checked": "#401960",
1154
- "disabled-checked": "#ece8ef",
1155
- "disabled-unchecked": "#4d6265",
1153
+ "checked": "#33144d",
1154
+ "disabled-checked": "#808f91",
1155
+ "disabled-unchecked": "#808f91",
1156
1156
  "unchecked": "#808f91",
1157
1157
  },
1158
1158
  "selector": {
1159
- "background": "#ffffff",
1159
+ "background": "#f6f6f7",
1160
1160
  "textBackground": "#ccd2d3",
1161
1161
  },
1162
1162
  "thumb": "#ffffff",
@@ -1294,6 +1294,7 @@ exports[`theme returns correct theme object 1`] = `
1294
1294
  "filled": "#001f23",
1295
1295
  "readonly": "#808f91",
1296
1296
  },
1297
+ "placeholder": "#4d6265",
1297
1298
  "text": "#001f23",
1298
1299
  },
1299
1300
  "fontSizes": {
@@ -1365,7 +1366,7 @@ exports[`theme returns correct theme object 1`] = `
1365
1366
  "default": 16,
1366
1367
  },
1367
1368
  "shadows": {
1368
- "color": "#001f23",
1369
+ "color": "#121214",
1369
1370
  "elevation": 3,
1370
1371
  "offset": {
1371
1372
  "height": 2,
@@ -1612,6 +1613,7 @@ exports[`theme returns correct theme object 1`] = `
1612
1613
  "colors": {
1613
1614
  "archived": "#abacaf",
1614
1615
  "archivedSurface": "#dadbde",
1616
+ "black": "#000000",
1615
1617
  "darkGlobalSurface": "#001f23",
1616
1618
  "decorativePrimary": "#ffffff",
1617
1619
  "decorativePrimarySurface": "#ccd2d3",
@@ -1652,6 +1654,7 @@ exports[`theme returns correct theme object 1`] = `
1652
1654
  "successSurface": "#f0fef4",
1653
1655
  "warning": "#ffbe71",
1654
1656
  "warningSurface": "#fff6eb",
1657
+ "white": "#ffffff",
1655
1658
  },
1656
1659
  "fontSizes": {
1657
1660
  "6xlarge": 36,
@@ -1702,9 +1705,19 @@ exports[`theme returns correct theme object 1`] = `
1702
1705
  "xxxlarge": 24,
1703
1706
  },
1704
1707
  "shadows": {
1708
+ "cardDrawer": {
1709
+ "elevation": 6,
1710
+ "shadowColor": "#001f23",
1711
+ "shadowOffset": {
1712
+ "height": 2,
1713
+ "width": 0,
1714
+ },
1715
+ "shadowOpacity": 0.12,
1716
+ "shadowRadius": 2,
1717
+ },
1705
1718
  "default": {
1706
1719
  "elevation": 3,
1707
- "shadowColor": "#001f23",
1720
+ "shadowColor": "#121214",
1708
1721
  "shadowOffset": {
1709
1722
  "height": 2,
1710
1723
  "width": 0,
@@ -1712,6 +1725,16 @@ exports[`theme returns correct theme object 1`] = `
1712
1725
  "shadowOpacity": 0.12,
1713
1726
  "shadowRadius": 4,
1714
1727
  },
1728
+ "tabBar": {
1729
+ "elevation": 10,
1730
+ "shadowColor": "#001f23",
1731
+ "shadowOffset": {
1732
+ "height": -4,
1733
+ "width": 0,
1734
+ },
1735
+ "shadowOpacity": 0.04,
1736
+ "shadowRadius": 6,
1737
+ },
1715
1738
  },
1716
1739
  "sizes": {
1717
1740
  "14xlarge": 136,
@@ -4,7 +4,7 @@ const getBottomSheetTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
5
  shadow: theme.colors.primaryOutline,
6
6
  background: theme.colors.defaultGlobalSurface,
7
- backdrop: theme.colors.overlayGlobalSurface,
7
+ backdrop: theme.colors.black,
8
8
  floatingHeaderIconBackground: theme.colors.archivedSurface,
9
9
  };
10
10
 
@@ -24,20 +24,13 @@ const getBottomSheetTheme = (theme: GlobalTheme) => {
24
24
  floatingHeaderIconPadding: theme.space.small,
25
25
  };
26
26
 
27
- const shadows = {
28
- offset: { width: 0, height: 3 },
29
- opacity: 0.4,
30
- radius: theme.radii.xlarge,
31
- elevation: 10,
32
- };
33
-
34
27
  const radii = {
35
28
  default: theme.radii.xlarge,
36
29
  floating: theme.radii['5xlarge'],
37
30
  floatingHeaderIcon: theme.radii.rounded,
38
31
  };
39
32
 
40
- return { colors, shadows, radii, sizes, space };
33
+ return { colors, radii, sizes, space };
41
34
  };
42
35
 
43
36
  export default getBottomSheetTheme;
@@ -4,9 +4,16 @@ const getCheckboxTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
5
  borders: {
6
6
  default: theme.colors.primaryOutline,
7
+ checked: theme.colors.primaryOutline,
7
8
  disabled: theme.colors.disabledOutline,
8
9
  readonly: theme.colors.inactiveOutline,
9
10
  },
11
+ checkboxBorder: {
12
+ default: theme.colors.primaryOutline,
13
+ checked: theme.colors.primary,
14
+ disabled: theme.colors.disabledOutline,
15
+ readonly: theme.colors.mutedOnDefaultGlobalSurface,
16
+ },
10
17
  };
11
18
 
12
19
  const space = {
@@ -5,12 +5,12 @@ const getFABTheme = (theme: GlobalTheme) => {
5
5
  buttonBackground: theme.colors.overlayGlobalSurface,
6
6
  buttonPressedBackground: theme.colors.overlayGlobalSurface,
7
7
  buttonActiveBackground: theme.colors.overlayGlobalSurface,
8
- icon: theme.colors.onPrimary,
8
+ icon: theme.colors.onDarkGlobalSurface,
9
9
  actionItemBackground: theme.colors.overlayGlobalSurface,
10
10
  actionItemPressedBackground: theme.colors.overlayGlobalSurface,
11
- backdropBackground: theme.colors.defaultSurface,
12
- titleText: theme.colors.onPrimary,
13
- actionItemText: theme.colors.onPrimary,
11
+ backdropBackground: theme.colors.black,
12
+ titleText: theme.colors.onDarkGlobalSurface,
13
+ actionItemText: theme.colors.onDarkGlobalSurface,
14
14
  };
15
15
 
16
16
  const sizes = {
@@ -39,11 +39,7 @@ const getFABTheme = (theme: GlobalTheme) => {
39
39
  };
40
40
 
41
41
  const shadows = {
42
- offset: theme.shadows.default.shadowOffset,
43
- opacity: theme.shadows.default.shadowOpacity,
44
- radius: theme.shadows.default.shadowRadius,
45
- elevation: theme.shadows.default.elevation,
46
- color: theme.shadows.default.shadowColor,
42
+ default: theme.shadows.cardDrawer,
47
43
  };
48
44
 
49
45
  const space = {
@@ -3,14 +3,14 @@ import type { GlobalTheme } from '../global';
3
3
  const getSwitchTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
5
  backgroundColors: {
6
- checked: theme.colors.primary,
6
+ checked: theme.colors.pressedSurface,
7
7
  unchecked: theme.colors.inactiveOnDefaultGlobalSurface,
8
- 'disabled-checked': theme.colors.highlightedSurface,
9
- 'disabled-unchecked': theme.colors.mutedOnDefaultGlobalSurface,
8
+ 'disabled-checked': theme.colors.inactiveOnDefaultGlobalSurface,
9
+ 'disabled-unchecked': theme.colors.inactiveOnDefaultGlobalSurface,
10
10
  },
11
- thumb: theme.colors.onDarkGlobalSurface,
11
+ thumb: theme.colors.white,
12
12
  selector: {
13
- background: theme.colors.defaultGlobalSurface,
13
+ background: theme.colors.neutralGlobalSurface,
14
14
  textBackground: theme.colors.decorativePrimarySurface,
15
15
  },
16
16
  };
@@ -41,6 +41,7 @@ const getTextInputTheme = (theme: GlobalTheme) => {
41
41
  readonly: theme.colors.inactiveOnDefaultGlobalSurface,
42
42
  filled: theme.colors.onDefaultGlobalSurface,
43
43
  },
44
+ placeholder: theme.colors.mutedOnDefaultGlobalSurface,
44
45
  };
45
46
 
46
47
  const space = {
@@ -4,6 +4,7 @@ exports[`eBens returns correct theme object 1`] = `
4
4
  {
5
5
  "archived": "#abacaf",
6
6
  "archivedSurface": "#dadbde",
7
+ "black": "#000000",
7
8
  "darkGlobalSurface": "#001f23",
8
9
  "decorativePrimary": "#c38cee",
9
10
  "decorativePrimarySurface": "#f3e8fc",
@@ -44,5 +45,6 @@ exports[`eBens returns correct theme object 1`] = `
44
45
  "successSurface": "#f0fef4",
45
46
  "warning": "#ffbe71",
46
47
  "warningSurface": "#fff6eb",
48
+ "white": "#ffffff",
47
49
  }
48
50
  `;
@@ -4,6 +4,7 @@ exports[`global returns correct theme object 1`] = `
4
4
  {
5
5
  "archived": "#abacaf",
6
6
  "archivedSurface": "#dadbde",
7
+ "black": "#000000",
7
8
  "darkGlobalSurface": "#001f23",
8
9
  "defaultGlobalSurface": "#ffffff",
9
10
  "disabledOnDefaultGlobalSurface": "#bfc1c5",
@@ -35,5 +36,6 @@ exports[`global returns correct theme object 1`] = `
35
36
  "successSurface": "#f0fef4",
36
37
  "warning": "#ffbe71",
37
38
  "warningSurface": "#fff6eb",
39
+ "white": "#ffffff",
38
40
  }
39
41
  `;
@@ -4,6 +4,7 @@ exports[`jobs returns correct theme object 1`] = `
4
4
  {
5
5
  "archived": "#abacaf",
6
6
  "archivedSurface": "#dadbde",
7
+ "black": "#000000",
7
8
  "darkGlobalSurface": "#001f23",
8
9
  "decorativePrimary": "#ffad79",
9
10
  "decorativePrimarySurface": "#ffefe4",
@@ -44,5 +45,6 @@ exports[`jobs returns correct theme object 1`] = `
44
45
  "successSurface": "#f0fef4",
45
46
  "warning": "#ffbe71",
46
47
  "warningSurface": "#fff6eb",
48
+ "white": "#ffffff",
47
49
  }
48
50
  `;
@@ -4,6 +4,7 @@ exports[`swag returns correct theme object 1`] = `
4
4
  {
5
5
  "archived": "#abacaf",
6
6
  "archivedSurface": "#dadbde",
7
+ "black": "#000000",
7
8
  "darkGlobalSurface": "#001f23",
8
9
  "decorativePrimary": "#ffffff",
9
10
  "decorativePrimarySurface": "#ccd2d3",
@@ -44,5 +45,6 @@ exports[`swag returns correct theme object 1`] = `
44
45
  "successSurface": "#f0fef4",
45
46
  "warning": "#ffbe71",
46
47
  "warningSurface": "#fff6eb",
48
+ "white": "#ffffff",
47
49
  }
48
50
  `;
@@ -4,6 +4,7 @@ exports[`swagDark returns correct theme object 1`] = `
4
4
  {
5
5
  "archived": "#abacaf",
6
6
  "archivedSurface": "#dadbde",
7
+ "black": "#000000",
7
8
  "darkGlobalSurface": "#001f23",
8
9
  "decorativePrimary": "#fdfbff",
9
10
  "decorativePrimarySurface": "#dacce4",
@@ -16,16 +17,17 @@ exports[`swagDark returns correct theme object 1`] = `
16
17
  "error": "#f46363",
17
18
  "errorSurface": "#fcebe7",
18
19
  "highlightedSurface": "#f1e9fb",
19
- "inactiveOnDefaultGlobalSurface": "#89898a",
20
- "inactiveOutline": "#89898a",
20
+ "inactiveOnDefaultGlobalSurface": "#808f91",
21
+ "inactiveOutline": "#808f91",
21
22
  "info": "#b5c3fd",
22
23
  "infoSurface": "#ecf0ff",
23
24
  "mutedArchived": "#bcbdbf",
24
25
  "mutedError": "#f68282",
25
26
  "mutedInfo": "#c4cffd",
26
- "mutedOnDefaultGlobalSurface": "#59595b",
27
+ "mutedOnDefaultGlobalSurface": "#4d6265",
27
28
  "mutedSuccess": "#7bd897",
28
29
  "mutedWarning": "#ffcb8d",
30
+ "name": "swagLight",
29
31
  "neutralGlobalSurface": "#f6f6f7",
30
32
  "onArchivedSurface": "#606065",
31
33
  "onDarkGlobalSurface": "#ffffff",
@@ -46,5 +48,6 @@ exports[`swagDark returns correct theme object 1`] = `
46
48
  "successSurface": "#f0fef4",
47
49
  "warning": "#ffbe71",
48
50
  "warningSurface": "#fff6eb",
51
+ "white": "#ffffff",
49
52
  }
50
53
  `;
@@ -4,20 +4,21 @@ exports[`swagLightGlobal returns correct theme object 1`] = `
4
4
  {
5
5
  "archived": "#abacaf",
6
6
  "archivedSurface": "#dadbde",
7
+ "black": "#000000",
7
8
  "darkGlobalSurface": "#001f23",
8
9
  "defaultGlobalSurface": "#ffffff",
9
10
  "disabledOnDefaultGlobalSurface": "#bfc1c5",
10
11
  "disabledOutline": "#bfc1c5",
11
12
  "error": "#f46363",
12
13
  "errorSurface": "#fcebe7",
13
- "inactiveOnDefaultGlobalSurface": "#89898a",
14
- "inactiveOutline": "#89898a",
14
+ "inactiveOnDefaultGlobalSurface": "#808f91",
15
+ "inactiveOutline": "#808f91",
15
16
  "info": "#b5c3fd",
16
17
  "infoSurface": "#ecf0ff",
17
18
  "mutedArchived": "#bcbdbf",
18
19
  "mutedError": "#f68282",
19
20
  "mutedInfo": "#c4cffd",
20
- "mutedOnDefaultGlobalSurface": "#59595b",
21
+ "mutedOnDefaultGlobalSurface": "#4d6265",
21
22
  "mutedSuccess": "#7bd897",
22
23
  "mutedWarning": "#ffcb8d",
23
24
  "neutralGlobalSurface": "#f6f6f7",
@@ -35,5 +36,6 @@ exports[`swagLightGlobal returns correct theme object 1`] = `
35
36
  "successSurface": "#f0fef4",
36
37
  "warning": "#ffbe71",
37
38
  "warningSurface": "#fff6eb",
39
+ "white": "#ffffff",
38
40
  }
39
41
  `;