@hero-design/rn 8.91.1 → 8.91.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 (86) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/CHANGELOG.md +16 -0
  3. package/es/index.js +155 -35
  4. package/lib/index.js +155 -35
  5. package/package.json +1 -1
  6. package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +6 -6
  7. package/src/components/Checkbox/StyledCheckbox.tsx +3 -3
  8. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +1 -1
  9. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  10. package/src/components/Checkbox/__tests__/index.spec.tsx +11 -7
  11. package/src/components/Checkbox/index.tsx +11 -2
  12. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
  13. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +63 -3
  14. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +21 -1
  15. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +21 -1
  16. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +42 -2
  17. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  18. package/src/components/FAB/Pair/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  19. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +2 -2
  20. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  21. package/src/components/FloatingIsland/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  22. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +3 -2
  23. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -2
  24. package/src/components/MapPin/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  25. package/src/components/RichTextEditor/RichTextEditor.tsx +2 -1
  26. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +40 -2
  27. package/src/components/Search/SearchOneLine.tsx +3 -1
  28. package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +7 -0
  29. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +147 -7
  30. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +126 -6
  31. package/src/components/Slider/__tests__/__snapshots__/RangeSlider.spec.tsx.snap +2 -2
  32. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  33. package/src/components/Switch/StyledSwitch.tsx +1 -0
  34. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +8 -4
  35. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +4 -2
  36. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +337 -16
  37. package/src/components/TextInput/__tests__/index.spec.tsx +2 -0
  38. package/src/components/TextInput/index.tsx +7 -2
  39. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +42 -2
  40. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +42 -2
  41. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +7 -7
  42. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +42 -14
  43. package/src/theme/components/checkbox.ts +7 -0
  44. package/src/theme/components/switch.ts +5 -5
  45. package/src/theme/components/textInput.ts +1 -0
  46. package/src/theme/global/colors/__tests__/__snapshots__/swagLight.spec.ts.snap +4 -3
  47. package/src/theme/global/colors/__tests__/__snapshots__/swagLightGlobal.spec.ts.snap +3 -3
  48. package/src/theme/global/colors/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +4 -3
  49. package/src/theme/global/colors/ehWorkDark.ts +1 -0
  50. package/src/theme/global/colors/swagLight.ts +1 -0
  51. package/src/theme/global/colors/swagLightGlobal.ts +3 -3
  52. package/src/theme/global/colors/swagLightJobs.ts +3 -1
  53. package/src/theme/global/colors/types.ts +2 -0
  54. package/src/theme/global/shadows/__tests__/__snapshots__/ehWorkDark.spec.ts.snap +36 -0
  55. package/src/theme/global/shadows/__tests__/__snapshots__/swagLight.spec.ts.snap +36 -0
  56. package/src/theme/global/shadows/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +36 -0
  57. package/src/theme/global/shadows/__tests__/ehWorkDark.spec.ts +7 -0
  58. package/src/theme/global/shadows/__tests__/index.spec.ts +24 -0
  59. package/src/theme/global/shadows/__tests__/swagLight.spec.ts +7 -0
  60. package/src/theme/global/shadows/__tests__/swagLightJobs.spec.ts +7 -0
  61. package/src/theme/global/shadows/ehWorkDark.ts +37 -0
  62. package/src/theme/global/shadows/index.ts +23 -0
  63. package/src/theme/global/shadows/swagLight.ts +37 -0
  64. package/src/theme/global/shadows/swagLightJobs.ts +37 -0
  65. package/src/theme/global/shadows/types.ts +16 -0
  66. package/stats/8.91.2/rn-stats.html +4842 -0
  67. package/stats/8.91.3/rn-stats.html +4844 -0
  68. package/types/components/Checkbox/StyledCheckbox.d.ts +1 -1
  69. package/types/components/Checkbox/index.d.ts +2 -1
  70. package/types/components/TextInput/index.d.ts +3 -1
  71. package/types/theme/components/checkbox.d.ts +7 -0
  72. package/types/theme/components/chip.d.ts +1 -10
  73. package/types/theme/components/floatingIsland.d.ts +1 -10
  74. package/types/theme/components/slider.d.ts +1 -10
  75. package/types/theme/components/switch.d.ts +1 -1
  76. package/types/theme/components/textInput.d.ts +1 -0
  77. package/types/theme/global/colors/swagLightJobs.d.ts +2 -50
  78. package/types/theme/global/colors/types.d.ts +2 -0
  79. package/types/theme/global/index.d.ts +2 -12
  80. package/types/theme/global/shadows/ehWorkDark.d.ts +3 -0
  81. package/types/theme/global/shadows/index.d.ts +5 -0
  82. package/types/theme/global/shadows/swagLight.d.ts +3 -0
  83. package/types/theme/global/shadows/swagLightJobs.d.ts +3 -0
  84. package/types/theme/global/shadows/types.d.ts +15 -0
  85. package/src/theme/global/shadows.ts +0 -19
  86. package/types/theme/global/shadows.d.ts +0 -16
@@ -36,10 +36,11 @@ import {
36
36
  StyledHelperText,
37
37
  } from './StyledTextInput';
38
38
  import Icon from '../Icon';
39
- import { useTheme } from '../../theme';
39
+ import { Theme, useTheme } from '../../theme';
40
40
  import type { State } from './StyledTextInput';
41
41
  import type { IconName } from '../Icon';
42
42
  import { omit, pick } from '../../utils/helpers';
43
+ import Typography from '../Typography';
43
44
 
44
45
  export type TextInputHandles = Pick<
45
46
  RNTextInput,
@@ -191,12 +192,14 @@ export const renderInput = ({
191
192
  nativeInputProps,
192
193
  renderInputValue,
193
194
  ref,
195
+ theme,
194
196
  }: {
195
197
  variant: TextInputVariant;
196
198
  nativeInputProps: NativeTextInputProps;
197
199
  multiline?: boolean;
198
200
  renderInputValue?: (inputProps: NativeTextInputProps) => React.ReactNode;
199
201
  ref?: React.Ref<RNTextInput>;
202
+ theme: Theme;
200
203
  }) => {
201
204
  return renderInputValue ? (
202
205
  renderInputValue(nativeInputProps)
@@ -206,6 +209,7 @@ export const renderInput = ({
206
209
  themeVariant={variant}
207
210
  multiline={variant === 'textarea' || nativeInputProps.multiline}
208
211
  ref={ref}
212
+ placeholderTextColor={theme.__hd__.textInput.colors.placeholder}
209
213
  />
210
214
  );
211
215
  };
@@ -503,7 +507,7 @@ const TextInput = forwardRef<TextInputHandles, TextInputProps>(
503
507
  *
504
508
  </StyledAsteriskLabelInsideTextInput>
505
509
  )}
506
- {label}
510
+ <Typography.Body>{label}</Typography.Body>
507
511
  </StyledLabelInsideTextInput>
508
512
  )}
509
513
  </StyledLabelContainerInsideTextInput>
@@ -516,6 +520,7 @@ const TextInput = forwardRef<TextInputHandles, TextInputProps>(
516
520
  ref: (rnTextInputRef) => {
517
521
  innerTextInput.current = rnTextInputRef;
518
522
  },
523
+ theme,
519
524
  })}
520
525
  </StyledTextInputAndLabelContainer>
521
526
  {renderSuffix({ state, loading, suffix })}
@@ -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
  {
@@ -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,
@@ -408,10 +408,17 @@ exports[`theme returns correct theme object 1`] = `
408
408
  },
409
409
  "colors": {
410
410
  "borders": {
411
+ "checked": "#001f23",
411
412
  "default": "#001f23",
412
413
  "disabled": "#bfc1c5",
413
414
  "readonly": "#808f91",
414
415
  },
416
+ "checkboxBorder": {
417
+ "checked": "#401960",
418
+ "default": "#001f23",
419
+ "disabled": "#bfc1c5",
420
+ "readonly": "#4d6265",
421
+ },
415
422
  },
416
423
  "radii": {
417
424
  "icon": 4,
@@ -450,7 +457,7 @@ exports[`theme returns correct theme object 1`] = `
450
457
  "shadows": {
451
458
  "filledWrapper": {
452
459
  "elevation": 3,
453
- "shadowColor": "#001f23",
460
+ "shadowColor": "#121214",
454
461
  "shadowOffset": {
455
462
  "height": 2,
456
463
  "width": 0,
@@ -607,7 +614,7 @@ exports[`theme returns correct theme object 1`] = `
607
614
  "actionItem": 999,
608
615
  },
609
616
  "shadows": {
610
- "color": "#001f23",
617
+ "color": "#121214",
611
618
  "elevation": 3,
612
619
  "offset": {
613
620
  "height": 2,
@@ -649,7 +656,7 @@ exports[`theme returns correct theme object 1`] = `
649
656
  "shadows": {
650
657
  "wrapper": {
651
658
  "elevation": 3,
652
- "shadowColor": "#001f23",
659
+ "shadowColor": "#121214",
653
660
  "shadowOffset": {
654
661
  "height": 2,
655
662
  "width": 0,
@@ -717,7 +724,7 @@ exports[`theme returns correct theme object 1`] = `
717
724
  },
718
725
  "shadows": {
719
726
  "card": {
720
- "color": "#001f23",
727
+ "color": "#121214",
721
728
  "elevation": 3,
722
729
  "offset": {
723
730
  "height": 2,
@@ -758,7 +765,7 @@ exports[`theme returns correct theme object 1`] = `
758
765
  "default": 12,
759
766
  },
760
767
  "shadows": {
761
- "color": "#001f23",
768
+ "color": "#121214",
762
769
  "elevation": 3,
763
770
  "offset": {
764
771
  "height": 2,
@@ -981,7 +988,7 @@ exports[`theme returns correct theme object 1`] = `
981
988
  "surfix": 999,
982
989
  },
983
990
  "shadows": {
984
- "color": "#001f23",
991
+ "color": "#121214",
985
992
  "elevation": 3,
986
993
  "offset": {
987
994
  "height": 2,
@@ -1062,7 +1069,7 @@ exports[`theme returns correct theme object 1`] = `
1062
1069
  "shadows": {
1063
1070
  "marker": {
1064
1071
  "elevation": 3,
1065
- "shadowColor": "#001f23",
1072
+ "shadowColor": "#121214",
1066
1073
  "shadowOffset": {
1067
1074
  "height": 2,
1068
1075
  "width": 0,
@@ -1150,16 +1157,16 @@ exports[`theme returns correct theme object 1`] = `
1150
1157
  "switch": {
1151
1158
  "colors": {
1152
1159
  "backgroundColors": {
1153
- "checked": "#401960",
1154
- "disabled-checked": "#ece8ef",
1155
- "disabled-unchecked": "#4d6265",
1160
+ "checked": "#33144d",
1161
+ "disabled-checked": "#808f91",
1162
+ "disabled-unchecked": "#808f91",
1156
1163
  "unchecked": "#808f91",
1157
1164
  },
1158
1165
  "selector": {
1159
- "background": "#ffffff",
1166
+ "background": "#f6f6f7",
1160
1167
  "textBackground": "#ccd2d3",
1161
1168
  },
1162
- "thumb": "#ffffff",
1169
+ "thumb": undefined,
1163
1170
  },
1164
1171
  "radii": {
1165
1172
  "rounded": 999,
@@ -1294,6 +1301,7 @@ exports[`theme returns correct theme object 1`] = `
1294
1301
  "filled": "#001f23",
1295
1302
  "readonly": "#808f91",
1296
1303
  },
1304
+ "placeholder": "#4d6265",
1297
1305
  "text": "#001f23",
1298
1306
  },
1299
1307
  "fontSizes": {
@@ -1365,7 +1373,7 @@ exports[`theme returns correct theme object 1`] = `
1365
1373
  "default": 16,
1366
1374
  },
1367
1375
  "shadows": {
1368
- "color": "#001f23",
1376
+ "color": "#121214",
1369
1377
  "elevation": 3,
1370
1378
  "offset": {
1371
1379
  "height": 2,
@@ -1702,9 +1710,19 @@ exports[`theme returns correct theme object 1`] = `
1702
1710
  "xxxlarge": 24,
1703
1711
  },
1704
1712
  "shadows": {
1713
+ "cardDrawer": {
1714
+ "elevation": 6,
1715
+ "shadowColor": "#001f23",
1716
+ "shadowOffset": {
1717
+ "height": 2,
1718
+ "width": 0,
1719
+ },
1720
+ "shadowOpacity": 0.12,
1721
+ "shadowRadius": 2,
1722
+ },
1705
1723
  "default": {
1706
1724
  "elevation": 3,
1707
- "shadowColor": "#001f23",
1725
+ "shadowColor": "#121214",
1708
1726
  "shadowOffset": {
1709
1727
  "height": 2,
1710
1728
  "width": 0,
@@ -1712,6 +1730,16 @@ exports[`theme returns correct theme object 1`] = `
1712
1730
  "shadowOpacity": 0.12,
1713
1731
  "shadowRadius": 4,
1714
1732
  },
1733
+ "tabBar": {
1734
+ "elevation": 10,
1735
+ "shadowColor": "#001f23",
1736
+ "shadowOffset": {
1737
+ "height": -4,
1738
+ "width": 0,
1739
+ },
1740
+ "shadowOpacity": 0.04,
1741
+ "shadowRadius": 6,
1742
+ },
1715
1743
  },
1716
1744
  "sizes": {
1717
1745
  "14xlarge": 136,
@@ -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 = {
@@ -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 = {
@@ -16,16 +16,17 @@ exports[`swagDark returns correct theme object 1`] = `
16
16
  "error": "#f46363",
17
17
  "errorSurface": "#fcebe7",
18
18
  "highlightedSurface": "#f1e9fb",
19
- "inactiveOnDefaultGlobalSurface": "#89898a",
20
- "inactiveOutline": "#89898a",
19
+ "inactiveOnDefaultGlobalSurface": "#808f91",
20
+ "inactiveOutline": "#808f91",
21
21
  "info": "#b5c3fd",
22
22
  "infoSurface": "#ecf0ff",
23
23
  "mutedArchived": "#bcbdbf",
24
24
  "mutedError": "#f68282",
25
25
  "mutedInfo": "#c4cffd",
26
- "mutedOnDefaultGlobalSurface": "#59595b",
26
+ "mutedOnDefaultGlobalSurface": "#4d6265",
27
27
  "mutedSuccess": "#7bd897",
28
28
  "mutedWarning": "#ffcb8d",
29
+ "name": "swagLight",
29
30
  "neutralGlobalSurface": "#f6f6f7",
30
31
  "onArchivedSurface": "#606065",
31
32
  "onDarkGlobalSurface": "#ffffff",
@@ -10,14 +10,14 @@ exports[`swagLightGlobal returns correct theme object 1`] = `
10
10
  "disabledOutline": "#bfc1c5",
11
11
  "error": "#f46363",
12
12
  "errorSurface": "#fcebe7",
13
- "inactiveOnDefaultGlobalSurface": "#89898a",
14
- "inactiveOutline": "#89898a",
13
+ "inactiveOnDefaultGlobalSurface": "#808f91",
14
+ "inactiveOutline": "#808f91",
15
15
  "info": "#b5c3fd",
16
16
  "infoSurface": "#ecf0ff",
17
17
  "mutedArchived": "#bcbdbf",
18
18
  "mutedError": "#f68282",
19
19
  "mutedInfo": "#c4cffd",
20
- "mutedOnDefaultGlobalSurface": "#59595b",
20
+ "mutedOnDefaultGlobalSurface": "#4d6265",
21
21
  "mutedSuccess": "#7bd897",
22
22
  "mutedWarning": "#ffcb8d",
23
23
  "neutralGlobalSurface": "#f6f6f7",
@@ -16,16 +16,17 @@ exports[`swagLightJobs returns correct theme object 1`] = `
16
16
  "error": "#f46363",
17
17
  "errorSurface": "#fcebe7",
18
18
  "highlightedSurface": "#f1e9fb",
19
- "inactiveOnDefaultGlobalSurface": "#89898a",
20
- "inactiveOutline": "#89898a",
19
+ "inactiveOnDefaultGlobalSurface": "#808f91",
20
+ "inactiveOutline": "#808f91",
21
21
  "info": "#b5c3fd",
22
22
  "infoSurface": "#ecf0ff",
23
23
  "mutedArchived": "#bcbdbf",
24
24
  "mutedError": "#f68282",
25
25
  "mutedInfo": "#c4cffd",
26
- "mutedOnDefaultGlobalSurface": "#59595b",
26
+ "mutedOnDefaultGlobalSurface": "#4d6265",
27
27
  "mutedSuccess": "#7bd897",
28
28
  "mutedWarning": "#ffcb8d",
29
+ "name": "swagLightJobs",
29
30
  "neutralGlobalSurface": "#f6f6f7",
30
31
  "onArchivedSurface": "#606065",
31
32
  "onDarkGlobalSurface": "#ffffff",
@@ -58,6 +58,7 @@ const ehWorkDarkSystemPalette: SystemPalette = {
58
58
  decorativeSecondarySurface: '#4c1d95',
59
59
  // Theme Mode
60
60
  themeMode: 'dark',
61
+ name: 'ehWorkDark',
61
62
  };
62
63
 
63
64
  export default ehWorkDarkSystemPalette;
@@ -21,6 +21,7 @@ const swagSystemPalette: SystemPalette = {
21
21
  ...swagLightGlobalPalette,
22
22
  // Brand
23
23
  ...swagBrandSystemPallete,
24
+ name: 'swagLight',
24
25
  };
25
26
 
26
27
  export default swagSystemPalette;
@@ -5,10 +5,10 @@ import globalPalette from './global';
5
5
  const swagLightGlobalPalette: GlobalSystemPalette = {
6
6
  ...globalPalette,
7
7
  onDefaultGlobalSurface: palette.offBlack,
8
- mutedOnDefaultGlobalSurface: palette.offBlackLight30,
9
- inactiveOnDefaultGlobalSurface: palette.offBlackLight50,
8
+ mutedOnDefaultGlobalSurface: '#4d6265',
9
+ inactiveOnDefaultGlobalSurface: '#808f91',
10
10
  primaryOutline: palette.offBlack,
11
- inactiveOutline: palette.offBlackLight50,
11
+ inactiveOutline: '#808f91',
12
12
  };
13
13
 
14
14
  export default swagLightGlobalPalette;
@@ -1,7 +1,9 @@
1
1
  import swagLightSystemPalette from './swagLight';
2
+ import { SystemPalette } from './types';
2
3
 
3
- const swagLightJobsSystemPalette = {
4
+ const swagLightJobsSystemPalette: SystemPalette = {
4
5
  ...swagLightSystemPalette,
6
+ name: 'swagLightJobs',
5
7
  secondary: '#40d1ff',
6
8
  onSecondary: '#460078',
7
9
  secondaryHighlightedSurface: '#ecfaff',
@@ -65,7 +65,9 @@ export type BrandSystemPalette = {
65
65
  };
66
66
 
67
67
  export type ThemeMode = 'light' | 'dark';
68
+ export type ThemeName = 'swagLight' | 'swagLightJobs' | 'ehWorkDark';
68
69
  export type SystemPalette = GlobalSystemPalette &
69
70
  BrandSystemPalette & {
70
71
  themeMode?: ThemeMode;
72
+ name?: ThemeName;
71
73
  };
@@ -0,0 +1,36 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`ehWorkDarkShadowPalette returns correct theme object 1`] = `
4
+ {
5
+ "cardDrawer": {
6
+ "elevation": 6,
7
+ "shadowColor": "#000000",
8
+ "shadowOffset": {
9
+ "height": 2,
10
+ "width": 0,
11
+ },
12
+ "shadowOpacity": 0.56,
13
+ "shadowRadius": 2,
14
+ },
15
+ "default": {
16
+ "elevation": 3,
17
+ "shadowColor": "#a9a9b2",
18
+ "shadowOffset": {
19
+ "height": 2,
20
+ "width": 0,
21
+ },
22
+ "shadowOpacity": 0.12,
23
+ "shadowRadius": 4,
24
+ },
25
+ "tabBar": {
26
+ "elevation": 10,
27
+ "shadowColor": "#000000",
28
+ "shadowOffset": {
29
+ "height": -4,
30
+ "width": 0,
31
+ },
32
+ "shadowOpacity": 0.24,
33
+ "shadowRadius": 6,
34
+ },
35
+ }
36
+ `;
@@ -0,0 +1,36 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`swagLightShadowPalette returns correct theme object 1`] = `
4
+ {
5
+ "cardDrawer": {
6
+ "elevation": 6,
7
+ "shadowColor": "#001f23",
8
+ "shadowOffset": {
9
+ "height": 2,
10
+ "width": 0,
11
+ },
12
+ "shadowOpacity": 0.12,
13
+ "shadowRadius": 2,
14
+ },
15
+ "default": {
16
+ "elevation": 3,
17
+ "shadowColor": "#121214",
18
+ "shadowOffset": {
19
+ "height": 2,
20
+ "width": 0,
21
+ },
22
+ "shadowOpacity": 0.12,
23
+ "shadowRadius": 4,
24
+ },
25
+ "tabBar": {
26
+ "elevation": 10,
27
+ "shadowColor": "#001f23",
28
+ "shadowOffset": {
29
+ "height": -4,
30
+ "width": 0,
31
+ },
32
+ "shadowOpacity": 0.04,
33
+ "shadowRadius": 6,
34
+ },
35
+ }
36
+ `;