@zendeskgarden/react-theming 9.0.0-next.17 → 9.0.0-next.19

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.
@@ -79,6 +79,11 @@ const colors = {
79
79
  warningEmphasis: 'warningHue.300',
80
80
  dangerEmphasis: 'dangerHue.300',
81
81
  disabled: 'neutralHue.700'
82
+ },
83
+ shadow: {
84
+ small: 'rgba(neutralHue.1200, 1100)',
85
+ medium: 'rgba(neutralHue.1200, 800)',
86
+ large: 'rgba(neutralHue.1200, 1000)'
82
87
  }
83
88
  },
84
89
  light: {
@@ -123,6 +128,11 @@ const colors = {
123
128
  warningEmphasis: 'warningHue.900',
124
129
  dangerEmphasis: 'dangerHue.900',
125
130
  disabled: 'neutralHue.600'
131
+ },
132
+ shadow: {
133
+ small: 'rgba(neutralHue.1200, 200)',
134
+ medium: 'rgba(neutralHue.1200, 200)',
135
+ large: 'rgba(neutralHue.1200, 200)'
126
136
  }
127
137
  }
128
138
  }
@@ -36,15 +36,8 @@ const colorStyles = theme => {
36
36
  variable: 'border.default'
37
37
  });
38
38
  const boxShadowColor = getColor({
39
- theme,
40
- hue: 'neutralHue',
41
- shade: 1200,
42
- dark: {
43
- transparency: theme.opacity[800]
44
- },
45
- light: {
46
- transparency: theme.opacity[200]
47
- }
39
+ variable: 'shadow.medium',
40
+ theme
48
41
  });
49
42
  const boxShadowBlurRadius = `${theme.space.base * (theme.colors.base === 'dark' ? 5 : 6)}px`;
50
43
  const boxShadowOffsetY = `${theme.space.base * (theme.colors.base === 'dark' ? 4 : 5)}px`;
package/dist/index.cjs.js CHANGED
@@ -345,6 +345,11 @@ const colors = {
345
345
  warningEmphasis: 'warningHue.300',
346
346
  dangerEmphasis: 'dangerHue.300',
347
347
  disabled: 'neutralHue.700'
348
+ },
349
+ shadow: {
350
+ small: 'rgba(neutralHue.1200, 1100)',
351
+ medium: 'rgba(neutralHue.1200, 800)',
352
+ large: 'rgba(neutralHue.1200, 1000)'
348
353
  }
349
354
  },
350
355
  light: {
@@ -389,6 +394,11 @@ const colors = {
389
394
  warningEmphasis: 'warningHue.900',
390
395
  dangerEmphasis: 'dangerHue.900',
391
396
  disabled: 'neutralHue.600'
397
+ },
398
+ shadow: {
399
+ small: 'rgba(neutralHue.1200, 200)',
400
+ medium: 'rgba(neutralHue.1200, 200)',
401
+ large: 'rgba(neutralHue.1200, 200)'
392
402
  }
393
403
  }
394
404
  }
@@ -1266,15 +1276,8 @@ const colorStyles = theme => {
1266
1276
  variable: 'border.default'
1267
1277
  });
1268
1278
  const boxShadowColor = getColor({
1269
- theme,
1270
- hue: 'neutralHue',
1271
- shade: 1200,
1272
- dark: {
1273
- transparency: theme.opacity[800]
1274
- },
1275
- light: {
1276
- transparency: theme.opacity[200]
1277
- }
1279
+ variable: 'shadow.medium',
1280
+ theme
1278
1281
  });
1279
1282
  const boxShadowBlurRadius = `${theme.space.base * (theme.colors.base === 'dark' ? 5 : 6)}px`;
1280
1283
  const boxShadowOffsetY = `${theme.space.base * (theme.colors.base === 'dark' ? 4 : 5)}px`;
@@ -92,11 +92,13 @@ export interface IGardenTheme {
92
92
  background: Record<string, string>;
93
93
  border: Record<string, string>;
94
94
  foreground: Record<string, string>;
95
+ shadow: Record<string, string>;
95
96
  };
96
97
  light: {
97
98
  background: Record<string, string>;
98
99
  border: Record<string, string>;
99
100
  foreground: Record<string, string>;
101
+ shadow: Record<string, string>;
100
102
  };
101
103
  };
102
104
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-theming",
3
- "version": "9.0.0-next.17",
3
+ "version": "9.0.0-next.19",
4
4
  "description": "Theming utilities and components within the Garden Design System",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Zendesk Garden <garden@zendesk.com>",
@@ -47,5 +47,5 @@
47
47
  "access": "public"
48
48
  },
49
49
  "zendeskgarden:src": "src/index.ts",
50
- "gitHead": "7a7e39c2a9e854ad0fe914d82e28c052aa102d2e"
50
+ "gitHead": "3f18fec721a25bebc274de6af38cd88ab4e63a79"
51
51
  }