@sproutsocial/racine 9.1.0-token-beta.0 → 9.1.1-theme-extension.0

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 (64) hide show
  1. package/CHANGELOG.md +0 -28
  2. package/__flow__/Breadcrumb/styles.js +5 -0
  3. package/__flow__/Button/styles.js +1 -1
  4. package/__flow__/Card/index.stories.js +1 -0
  5. package/__flow__/Card/styles.js +1 -1
  6. package/__flow__/CustomThemeProvider/index.js +16 -0
  7. package/__flow__/Drawer/index.stories.js +3 -3
  8. package/__flow__/Drawer/styles.js +1 -1
  9. package/__flow__/KeyboardKey/styles.js +1 -1
  10. package/__flow__/Menu/index.stories.js +1 -1
  11. package/__flow__/Modal/__snapshots__/index.test.js.snap +1 -1
  12. package/__flow__/Modal/styles.js +1 -1
  13. package/__flow__/Popout/index.js +1 -1
  14. package/__flow__/ThemeProvider/index.js +2 -2
  15. package/__flow__/Token/index.js +1 -4
  16. package/__flow__/Token/index.stories.js +0 -11
  17. package/__flow__/Token/styles.js +33 -43
  18. package/__flow__/Tooltip/index.js +1 -1
  19. package/__flow__/index.js +1 -0
  20. package/__flow__/themes/dark/theme.js +156 -180
  21. package/__flow__/themes/default/theme.js +8 -19
  22. package/__flow__/themes/sprout/theme.js +22 -0
  23. package/__flow__/types/system-props.flow.js +2 -1
  24. package/__flow__/utils/extendTheme.js +17 -0
  25. package/commonjs/Breadcrumb/styles.js +1 -1
  26. package/commonjs/Button/styles.js +1 -1
  27. package/commonjs/Card/styles.js +1 -1
  28. package/commonjs/CustomThemeProvider/index.js +23 -0
  29. package/commonjs/Drawer/styles.js +1 -1
  30. package/commonjs/KeyboardKey/styles.js +1 -1
  31. package/commonjs/Modal/styles.js +1 -1
  32. package/commonjs/Popout/index.js +1 -1
  33. package/commonjs/Token/index.js +2 -5
  34. package/commonjs/Token/styles.js +50 -19
  35. package/commonjs/Tooltip/index.js +1 -1
  36. package/commonjs/index.js +5 -1
  37. package/commonjs/themes/dark/theme.js +154 -179
  38. package/commonjs/themes/default/theme.js +8 -19
  39. package/commonjs/themes/sprout/theme.js +29 -0
  40. package/commonjs/utils/extendTheme.js +22 -0
  41. package/lib/Breadcrumb/styles.js +1 -1
  42. package/lib/Button/styles.js +1 -1
  43. package/lib/Card/styles.js +1 -1
  44. package/lib/CustomThemeProvider/index.js +12 -0
  45. package/lib/Drawer/styles.js +1 -1
  46. package/lib/KeyboardKey/styles.js +1 -1
  47. package/lib/Modal/styles.js +1 -1
  48. package/lib/Popout/index.js +1 -1
  49. package/lib/Token/index.js +2 -5
  50. package/lib/Token/styles.js +50 -19
  51. package/lib/Tooltip/index.js +1 -1
  52. package/lib/index.js +1 -0
  53. package/lib/themes/dark/theme.js +153 -174
  54. package/lib/themes/default/theme.js +8 -18
  55. package/lib/themes/sprout/theme.js +19 -0
  56. package/lib/utils/extendTheme.js +12 -0
  57. package/package.json +9 -6
  58. package/__flow__/themes/_themes.scss +0 -138
  59. package/__flow__/themes/utils/interact.js +0 -12
  60. package/commonjs/themes/utils/interact.js +0 -19
  61. package/dist/themes/_themes.scss +0 -138
  62. package/dist/themes/dark.scss +0 -601
  63. package/dist/themes/default.scss +0 -692
  64. package/lib/themes/utils/interact.js +0 -13
@@ -1,7 +1,6 @@
1
1
  // @flow strict-local
2
2
 
3
3
  import COLORS from "@sproutsocial/seeds-color";
4
- import DEPTH from "@sproutsocial/seeds-depth";
5
4
  import defaultTheme from "../default/theme";
6
5
  import { datavizPalette } from "./dataviz-palette";
7
6
  import {
@@ -14,208 +13,185 @@ import {
14
13
  neutral,
15
14
  } from "./decorative-palettes";
16
15
 
17
- import interact from "../utils/interact";
18
-
19
- const MODE = "default-dark";
20
-
21
- export const shadows = {
22
- low: `${DEPTH.ELEVATION_LEVEL_100} ${COLORS.COLOR_NEUTRAL_1100}FF`,
23
- medium: `${DEPTH.ELEVATION_LEVEL_300} ${COLORS.COLOR_NEUTRAL_1100}FF`,
24
- high: `${DEPTH.ELEVATION_LEVEL_400} ${COLORS.COLOR_NEUTRAL_1100}FF`,
25
- };
26
-
27
- const colors = {
28
- ...defaultTheme.colors,
29
- utils: {
30
- interact: interact(MODE),
31
- },
32
- app: {
33
- background: {
34
- base: COLORS.COLOR_NEUTRAL_1000,
35
- },
36
- },
37
- container: {
38
- background: {
39
- base: COLORS.COLOR_NEUTRAL_900,
40
- success: green.background,
41
- warning: yellow.background,
42
- error: red.background,
43
- info: blue.background,
44
- opportunity: purple.background,
45
- danger: red.background,
46
- decorative: {
47
- green: green.background,
48
- blue: blue.background,
49
- purple: purple.background,
50
- yellow: yellow.background,
51
- orange: orange.background,
52
- red: red.background,
53
- neutral: neutral.background,
54
- },
55
- selected: COLORS.COLOR_NEUTRAL_0,
56
- },
57
- border: {
58
- base: COLORS.COLOR_NEUTRAL_1100,
59
- success: green.highlight,
60
- warning: yellow.highlight,
61
- error: red.highlight,
62
- danger: red.highlight,
63
- info: blue.highlight,
64
- opportunity: purple.highlight,
65
- decorative: {
66
- green: green.highlight,
67
- blue: blue.highlight,
68
- purple: purple.highlight,
69
- yellow: yellow.highlight,
70
- orange: orange.highlight,
71
- red: red.highlight,
72
- neutral: neutral.highlight,
73
- },
74
- selected: COLORS.COLOR_NEUTRAL_0,
75
- },
76
- },
77
- button: {
78
- primary: {
16
+ const darkTheme = {
17
+ ...defaultTheme,
18
+ colors: {
19
+ ...defaultTheme.colors,
20
+ app: {
79
21
  background: {
80
- base: COLORS.COLOR_BLUE_400,
81
- hover: COLORS.COLOR_BLUE_300,
82
- active: COLORS.COLOR_BLUE_200,
83
- },
84
- border: {
85
- base: "transparent",
86
- },
87
- text: {
88
- base: COLORS.COLOR_NEUTRAL_900,
89
- hover: COLORS.COLOR_NEUTRAL_1000,
22
+ base: COLORS.COLOR_NEUTRAL_1000,
90
23
  },
91
24
  },
92
- secondary: {
25
+ container: {
93
26
  background: {
94
- base: "transparent",
95
- hover: COLORS.COLOR_NEUTRAL_100,
96
- active: COLORS.COLOR_NEUTRAL_0,
27
+ base: COLORS.COLOR_NEUTRAL_900,
28
+ success: green.background,
29
+ warning: yellow.background,
30
+ error: red.background,
31
+ info: blue.background,
32
+ opportunity: purple.background,
33
+ danger: red.background,
34
+ decorative: {
35
+ green: green.background,
36
+ blue: blue.background,
37
+ purple: purple.background,
38
+ yellow: yellow.background,
39
+ orange: orange.background,
40
+ red: red.background,
41
+ neutral: neutral.background,
42
+ },
43
+ selected: COLORS.COLOR_NEUTRAL_0,
97
44
  },
98
45
  border: {
99
- base: COLORS.COLOR_NEUTRAL_0,
100
- },
101
- text: {
102
- base: COLORS.COLOR_NEUTRAL_0,
103
- hover: COLORS.COLOR_NEUTRAL_800,
46
+ base: COLORS.COLOR_NEUTRAL_1100,
47
+ success: green.highlight,
48
+ warning: yellow.highlight,
49
+ error: red.highlight,
50
+ danger: red.highlight,
51
+ info: blue.highlight,
52
+ opportunity: purple.highlight,
53
+ decorative: {
54
+ green: green.highlight,
55
+ blue: blue.highlight,
56
+ purple: purple.highlight,
57
+ yellow: yellow.highlight,
58
+ orange: orange.highlight,
59
+ red: red.highlight,
60
+ neutral: neutral.highlight,
61
+ },
62
+ selected: COLORS.COLOR_NEUTRAL_0,
104
63
  },
105
64
  },
106
- pill: {
107
- background: {
108
- base: "transparent",
109
- hover: COLORS.COLOR_NEUTRAL_1000,
110
- active: COLORS.COLOR_NEUTRAL_900,
111
- },
112
- border: {
113
- base: "transparent",
114
- },
115
- text: {
116
- base: COLORS.COLOR_NEUTRAL_100,
117
- hover: COLORS.COLOR_NEUTRAL_0,
65
+ button: {
66
+ primary: {
67
+ background: {
68
+ base: COLORS.COLOR_BLUE_400,
69
+ hover: COLORS.COLOR_BLUE_300,
70
+ active: COLORS.COLOR_BLUE_200,
71
+ },
72
+ border: {
73
+ base: "transparent",
74
+ },
75
+ text: {
76
+ base: COLORS.COLOR_NEUTRAL_900,
77
+ hover: COLORS.COLOR_NEUTRAL_1000,
78
+ },
79
+ },
80
+ secondary: {
81
+ background: {
82
+ base: "transparent",
83
+ hover: COLORS.COLOR_NEUTRAL_100,
84
+ active: COLORS.COLOR_NEUTRAL_0,
85
+ },
86
+ border: {
87
+ base: COLORS.COLOR_NEUTRAL_0,
88
+ },
89
+ text: {
90
+ base: COLORS.COLOR_NEUTRAL_0,
91
+ hover: COLORS.COLOR_NEUTRAL_800,
92
+ },
93
+ },
94
+ pill: {
95
+ background: {
96
+ base: "transparent",
97
+ hover: COLORS.COLOR_NEUTRAL_1000,
98
+ active: COLORS.COLOR_NEUTRAL_900,
99
+ },
100
+ border: {
101
+ base: "transparent",
102
+ },
103
+ text: {
104
+ base: COLORS.COLOR_NEUTRAL_100,
105
+ hover: COLORS.COLOR_NEUTRAL_0,
106
+ },
107
+ },
108
+ destructive: {
109
+ background: {
110
+ base: COLORS.COLOR_RED_400,
111
+ hover: COLORS.COLOR_RED_300,
112
+ active: COLORS.COLOR_RED_200,
113
+ },
114
+ border: {
115
+ base: "transparent",
116
+ },
117
+ text: {
118
+ base: COLORS.COLOR_NEUTRAL_900,
119
+ hover: COLORS.COLOR_NEUTRAL_1000,
120
+ },
121
+ },
122
+ placeholder: {
123
+ background: {
124
+ base: "transparent",
125
+ hover: COLORS.COLOR_NEUTRAL_1100,
126
+ active: COLORS.COLOR_NEUTRAL_1100,
127
+ },
128
+ border: {
129
+ base: COLORS.COLOR_NEUTRAL_500,
130
+ },
131
+ text: {
132
+ base: COLORS.COLOR_BLUE_400,
133
+ hover: COLORS.COLOR_BLUE_300,
134
+ },
135
+ },
136
+ unstyled: {
137
+ background: {
138
+ base: "transparent",
139
+ },
140
+ border: {
141
+ base: "transparent",
142
+ },
143
+ text: {
144
+ base: COLORS.COLOR_NEUTRAL_300,
145
+ hover: COLORS.COLOR_NEUTRAL_200,
146
+ },
118
147
  },
119
148
  },
120
- destructive: {
121
- background: {
122
- base: COLORS.COLOR_RED_400,
123
- hover: COLORS.COLOR_RED_300,
124
- active: COLORS.COLOR_RED_200,
125
- },
126
- border: {
127
- base: "transparent",
128
- },
129
- text: {
130
- base: COLORS.COLOR_NEUTRAL_900,
131
- hover: COLORS.COLOR_NEUTRAL_1000,
132
- },
149
+ link: {
150
+ base: COLORS.COLOR_BLUE_400,
151
+ hover: COLORS.COLOR_BLUE_300,
152
+ },
153
+ text: {
154
+ headline: COLORS.COLOR_NEUTRAL_0,
155
+ subtext: COLORS.COLOR_NEUTRAL_300,
156
+ body: COLORS.COLOR_NEUTRAL_100,
157
+ inverse: COLORS.COLOR_NEUTRAL_900,
158
+ error: COLORS.COLOR_RED_400,
133
159
  },
134
- placeholder: {
160
+ icon: {
161
+ base: COLORS.COLOR_NEUTRAL_100,
162
+ inverse: COLORS.COLOR_NEUTRAL_900,
163
+ success: green.foreground,
164
+ warning: yellow.foreground,
165
+ error: red.foreground,
166
+ danger: red.foreground,
167
+ info: blue.foreground,
168
+ opportunity: purple.foreground,
169
+ },
170
+ form: {
135
171
  background: {
136
- base: "transparent",
137
- hover: COLORS.COLOR_NEUTRAL_1100,
138
- active: COLORS.COLOR_NEUTRAL_1100,
172
+ base: COLORS.COLOR_NEUTRAL_900,
173
+ selected: COLORS.COLOR_NEUTRAL_0,
139
174
  },
140
175
  border: {
141
176
  base: COLORS.COLOR_NEUTRAL_500,
177
+ error: red.highlight,
178
+ warning: yellow.highlight,
179
+ selected: COLORS.COLOR_NEUTRAL_0,
142
180
  },
143
- text: {
144
- base: COLORS.COLOR_BLUE_400,
145
- hover: COLORS.COLOR_BLUE_300,
181
+ placeholder: {
182
+ base: COLORS.COLOR_NEUTRAL_500,
146
183
  },
147
184
  },
148
- unstyled: {
185
+ listItem: {
149
186
  background: {
150
187
  base: "transparent",
151
- },
152
- border: {
153
- base: "transparent",
154
- },
155
- text: {
156
- base: COLORS.COLOR_NEUTRAL_300,
157
- hover: COLORS.COLOR_NEUTRAL_200,
188
+ hover: COLORS.COLOR_NEUTRAL_800,
189
+ selected: COLORS.COLOR_NEUTRAL_0,
158
190
  },
159
191
  },
192
+ ...datavizPalette,
160
193
  },
161
- link: {
162
- base: COLORS.COLOR_BLUE_400,
163
- hover: COLORS.COLOR_BLUE_300,
164
- },
165
- text: {
166
- headline: COLORS.COLOR_NEUTRAL_0,
167
- subtext: COLORS.COLOR_NEUTRAL_300,
168
- body: COLORS.COLOR_NEUTRAL_100,
169
- inverse: COLORS.COLOR_NEUTRAL_900,
170
- error: COLORS.COLOR_RED_400,
171
- },
172
- icon: {
173
- base: COLORS.COLOR_NEUTRAL_100,
174
- inverse: COLORS.COLOR_NEUTRAL_900,
175
- success: green.foreground,
176
- warning: yellow.foreground,
177
- error: red.foreground,
178
- danger: red.foreground,
179
- info: blue.foreground,
180
- opportunity: purple.foreground,
181
- },
182
- form: {
183
- background: {
184
- base: COLORS.COLOR_NEUTRAL_900,
185
- selected: COLORS.COLOR_NEUTRAL_0,
186
- },
187
- border: {
188
- base: COLORS.COLOR_NEUTRAL_500,
189
- error: red.highlight,
190
- warning: yellow.highlight,
191
- selected: COLORS.COLOR_NEUTRAL_0,
192
- },
193
- placeholder: {
194
- base: COLORS.COLOR_NEUTRAL_500,
195
- },
196
- },
197
- listItem: {
198
- background: {
199
- base: "transparent",
200
- hover: COLORS.COLOR_NEUTRAL_800,
201
- selected: COLORS.COLOR_NEUTRAL_0,
202
- },
203
- },
204
- elevation: {
205
- base: COLORS.COLOR_NEUTRAL_1100,
206
- },
207
- dataviz: {
208
- map: datavizPalette.DATAVIZ_COLORS_MAP,
209
- list: datavizPalette.DATAVIZ_COLORS_LIST,
210
- },
211
- ...datavizPalette,
212
- };
213
-
214
- const darkTheme = {
215
- ...defaultTheme,
216
- colors,
217
- shadows,
218
- mode: MODE,
194
+ mode: "dark",
219
195
  };
220
196
 
221
197
  export default darkTheme;
@@ -19,12 +19,8 @@ import DEPTH from "@sproutsocial/seeds-depth";
19
19
  import MOTION from "@sproutsocial/seeds-motion";
20
20
  import BORDER from "@sproutsocial/seeds-border";
21
21
 
22
- import interact from "../utils/interact";
23
-
24
22
  export const breakpoints = ["900px", "1200px", "1500px", "1800px"];
25
23
 
26
- const MODE = "default-light";
27
-
28
24
  const colors = {
29
25
  app: {
30
26
  background: {
@@ -198,9 +194,6 @@ const colors = {
198
194
  selected: COLORS.COLOR_NEUTRAL_800,
199
195
  },
200
196
  },
201
- elevation: {
202
- base: `${COLORS.COLOR_NEUTRAL_900}3D`,
203
- },
204
197
  network: {
205
198
  twitter: NETWORKCOLORS.NETWORK_COLOR_TWITTER,
206
199
  twitter_like: NETWORKCOLORS.NETWORK_COLOR_TWITTER_LIKE,
@@ -230,10 +223,6 @@ const colors = {
230
223
  whatsapp: NETWORKCOLORS.NETWORK_COLOR_WHATSAPP,
231
224
  tiktok: NETWORKCOLORS.NETWORK_COLOR_TIKTOK,
232
225
  },
233
- dataviz: {
234
- map: datavizPalette.DATAVIZ_COLORS_MAP,
235
- list: datavizPalette.DATAVIZ_COLORS_LIST,
236
- },
237
226
  ...literalColors,
238
227
  ...datavizPalette,
239
228
  };
@@ -307,9 +296,10 @@ export const borderWidths = {
307
296
  };
308
297
 
309
298
  export const shadows = {
310
- low: `${DEPTH.ELEVATION_LEVEL_100} ${COLORS.COLOR_NEUTRAL_900}3D`,
311
- medium: `${DEPTH.ELEVATION_LEVEL_300} ${COLORS.COLOR_NEUTRAL_900}3D`,
312
- high: `${DEPTH.ELEVATION_LEVEL_400} ${COLORS.COLOR_NEUTRAL_900}3D`,
299
+ "100": DEPTH.ELEVATION_LEVEL_100,
300
+ "200": DEPTH.ELEVATION_LEVEL_200,
301
+ "300": DEPTH.ELEVATION_LEVEL_300,
302
+ "400": DEPTH.ELEVATION_LEVEL_400,
313
303
  };
314
304
 
315
305
  export const easing = {
@@ -325,9 +315,6 @@ export const duration = {
325
315
  };
326
316
 
327
317
  const theme = {
328
- utils: {
329
- interact: interact(MODE),
330
- },
331
318
  breakpoints,
332
319
  colors,
333
320
  typography: {
@@ -351,10 +338,12 @@ const theme = {
351
338
  },
352
339
  borders,
353
340
  borderWidths,
354
- shadows,
341
+ shadows: {
342
+ ...shadows,
343
+ shadows,
344
+ },
355
345
  easing,
356
346
  duration,
357
- mode: MODE,
358
347
  };
359
348
 
360
349
  export default theme;
@@ -0,0 +1,22 @@
1
+ // @flow strict-local
2
+ import theme from "../default/theme";
3
+ import { COLOR_RED_800 } from "@sproutsocial/seeds-color";
4
+
5
+ const sproutTheme = {
6
+ container: {
7
+ background: {
8
+ error: {
9
+ hover: COLOR_RED_800,
10
+ },
11
+ },
12
+ },
13
+ button: {
14
+ primary: {
15
+ background: {
16
+ base: "purple",
17
+ },
18
+ },
19
+ },
20
+ };
21
+
22
+ export default sproutTheme;
@@ -67,6 +67,7 @@ export type TypeSystemCommonProps = $ReadOnly<{|
67
67
  ...TypeSpaceProps,
68
68
  cursor?: TypeResponsiveBase<>,
69
69
  |}>;
70
+
70
71
  export type TypeSystemBorderProps = $ReadOnly<{|
71
72
  border?: TypeResponsiveBase<>,
72
73
  borderWidth?: TypeResponsiveBase<>,
@@ -84,7 +85,7 @@ export type TypeSystemBorderProps = $ReadOnly<{|
84
85
  borderX?: TypeResponsiveBase<>,
85
86
  borderY?: TypeResponsiveBase<>,
86
87
  boxShadow?: TypeResponsiveBase<>,
87
- textShadow?: TypeResponsiveBase<>
88
+ textShadow?: TypeResponsiveBase<>,
88
89
  |}>;
89
90
 
90
91
  type TypeResponsiveTypeographySize = TypeResponsiveString<TypeTypography>;
@@ -0,0 +1,17 @@
1
+ //@flow strict-local
2
+ import * as merge from "deepmerge";
3
+
4
+ export function extendColorTheme(
5
+ baseTheme: { colors: {} },
6
+ extension: { [key: string]: string | {} }
7
+ ) {
8
+ const newColorTheme = merge(baseTheme.colors, extension);
9
+ const newTheme = {
10
+ ...baseTheme,
11
+ colors: {
12
+ ...newColorTheme,
13
+ },
14
+ };
15
+
16
+ return newTheme;
17
+ }
@@ -10,7 +10,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
10
10
  var Nav = _styledComponents.default.nav.withConfig({
11
11
  displayName: "styles__Nav",
12
12
  componentId: "sc-1ub1apc-0"
13
- })(["ol{", ";margin:0;font-family:", ";padding:0;display:flex;}li{margin-right:", ";display:flex;}a,button{", ";max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&:not(.overflow--menu){margin:0;padding:0;}}ol > div + li::before{content:\"/\";margin-right:", ";}li:last-child a,li:last-child button{color:", ";font-weight:bold;}li:not(:last-child)::after{content:\"/\";color:", ";margin-left:", ";}"], function (props) {
13
+ })(["ol{", ";margin:0;font-family:", ";padding:0;display:flex;}li{margin-right:", ";display:flex;}a,button{", ";max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&:not(.overflow--menu){margin:0;padding:0;}}ol > div + li::before{content:\"/\";margin-right:", ";}li:last-child a,li:last-child button{color:", ";font-weight:bold;}li:not(:last-child) a,li:not(:last-child) button{font-weight:normal;}li:not(:last-child)::after{content:\"/\";color:", ";margin-left:", ";}"], function (props) {
14
14
  return props.theme.typography[200];
15
15
  }, function (props) {
16
16
  return props.theme.fontFamily;
@@ -47,7 +47,7 @@ var Container = _styledComponents.default.button.withConfig({
47
47
  }, function (props) {
48
48
  return props.theme.colors.button[props.appearance].background.hover;
49
49
  }, function (props) {
50
- return props.appearance === "placeholder" ? props.theme.shadows.low : "none";
50
+ return props.appearance === "placeholder" ? props.theme.shadows[100] : "none";
51
51
  }, function (props) {
52
52
  return props.theme.colors.button[props.appearance].text.hover;
53
53
  }, function (props) {
@@ -19,7 +19,7 @@ var Container = (0, _styledComponents.default)(_Box.default).withConfig({
19
19
  }, function (props) {
20
20
  return props.theme.radii[500];
21
21
  }, function (props) {
22
- return props.theme.shadows.low;
22
+ return props.theme.shadows[100];
23
23
  }, function (props) {
24
24
  return props.theme.duration.medium;
25
25
  }, function (props) {
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var React = _interopRequireWildcard(require("react"));
7
+
8
+ var _styledComponents = require("styled-components");
9
+
10
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
+
12
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
+
14
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
+
16
+ var CustomThemeProvider = function CustomThemeProvider(props) {
17
+ return /*#__PURE__*/React.createElement(_styledComponents.ThemeProvider, _extends({
18
+ theme: props.theme
19
+ }, props));
20
+ };
21
+
22
+ var _default = CustomThemeProvider;
23
+ exports.default = _default;
@@ -29,7 +29,7 @@ var Container = _styledComponents.default.div.withConfig({
29
29
  }, function (props) {
30
30
  return props.theme.colors.container.background.base;
31
31
  }, function (props) {
32
- return props.theme.shadows.high;
32
+ return props.theme.shadows[400];
33
33
  }, function (props) {
34
34
  return (0, _styledComponents.css)(["", ":", "px;"], props.direction, props.offset);
35
35
  }, _systemProps.COMMON);
@@ -21,7 +21,7 @@ var Container = _styledComponents.default.div.withConfig({
21
21
  }, function (props) {
22
22
  return props.theme.radii[500];
23
23
  }, function (props) {
24
- return props.theme.shadows.low;
24
+ return props.theme.shadows[100];
25
25
  }, function (props) {
26
26
  return props.theme.space[200];
27
27
  }, _systemProps.COMMON);
@@ -72,7 +72,7 @@ var Container = (0, _styledComponents.default)(ReactModalAdapter).withConfig({
72
72
  }, function (props) {
73
73
  return props.theme.radii[500];
74
74
  }, function (props) {
75
- return props.theme.shadows.medium;
75
+ return props.theme.shadows[300];
76
76
  }, function (props) {
77
77
  return props.theme.colors.text.body;
78
78
  }, BODY_PADDING, BODY_PADDING, BODY_PADDING, _styledSystem.width, _systemProps.COMMON);
@@ -290,7 +290,7 @@ Popout.Content = function (_ref4) {
290
290
  border: 500,
291
291
  borderColor: "container.border.base",
292
292
  borderRadius: "outer",
293
- boxShadow: "medium",
293
+ boxShadow: 300,
294
294
  p: 400,
295
295
  m: 300
296
296
  }, rest), children);
@@ -33,17 +33,14 @@ var Token = function Token(_ref) {
33
33
  valid = _ref$valid === void 0 ? true : _ref$valid,
34
34
  _ref$disabled = _ref.disabled,
35
35
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
36
- _ref$palette = _ref.palette,
37
- palette = _ref$palette === void 0 ? "neutral" : _ref$palette,
38
- rest = _objectWithoutPropertiesLoose(_ref, ["children", "closeable", "onClick", "qa", "valid", "disabled", "palette"]);
36
+ rest = _objectWithoutPropertiesLoose(_ref, ["children", "closeable", "onClick", "qa", "valid", "disabled"]);
39
37
 
40
38
  var textContainer = (0, _hooks.useTextContent)("");
41
39
  return /*#__PURE__*/React.createElement(_styles.default, _extends({
42
40
  ref: textContainer,
43
41
  valid: valid,
44
- palette: palette,
45
- type: closeable || onClick ? "button" : undefined,
46
42
  as: closeable || onClick ? "button" : "div",
43
+ type: closeable || onClick ? "button" : undefined,
47
44
  closeable: closeable || onClick,
48
45
  disabled: disabled,
49
46
  onClick: onClick,