@zendeskgarden/react-grid 8.74.2 → 8.75.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.
package/dist/index.cjs.js CHANGED
@@ -53,7 +53,7 @@ const ORIENTATION = ['top', 'bottom', 'start', 'end'];
53
53
 
54
54
  const COMPONENT_ID$6 = 'grid.col';
55
55
  const colorStyles$4 = props => {
56
- const backgroundColor = reactTheming.getColor('primaryHue', 600, props.theme, 0.1);
56
+ const backgroundColor = reactTheming.getColorV8('primaryHue', 600, props.theme, 0.1);
57
57
  return styled.css(["background-clip:content-box;background-color:", ";"], backgroundColor);
58
58
  };
59
59
  const flexStyles$1 = (size, alignSelf, textAlign, offset, order, props) => {
@@ -103,7 +103,7 @@ const sizeStyles$4 = props => {
103
103
  };
104
104
  const StyledCol = styled__default.default.div.attrs({
105
105
  'data-garden-id': COMPONENT_ID$6,
106
- 'data-garden-version': '8.74.2'
106
+ 'data-garden-version': '8.75.0'
107
107
  }).withConfig({
108
108
  displayName: "StyledCol",
109
109
  componentId: "sc-inuw62-0"
@@ -115,7 +115,7 @@ StyledCol.defaultProps = {
115
115
 
116
116
  const COMPONENT_ID$5 = 'grid.grid';
117
117
  const colorStyles$3 = props => {
118
- const borderColor = reactTheming.getColor(props.theme.palette.crimson, 400, props.theme, 0.5);
118
+ const borderColor = reactTheming.getColorV8(props.theme.palette.crimson, 400, props.theme, 0.5);
119
119
  const borderWidth = polished.math(`${props.theme.borderWidths.sm} * 2`);
120
120
  return styled.css(["box-shadow:-", " 0 0 0 ", ",", " 0 0 0 ", ";"], borderWidth, borderColor, borderWidth, borderColor);
121
121
  };
@@ -125,7 +125,7 @@ const sizeStyles$3 = props => {
125
125
  };
126
126
  const StyledGrid = styled__default.default.div.attrs({
127
127
  'data-garden-id': COMPONENT_ID$5,
128
- 'data-garden-version': '8.74.2'
128
+ 'data-garden-version': '8.75.0'
129
129
  }).withConfig({
130
130
  displayName: "StyledGrid",
131
131
  componentId: "sc-oxgg5i-0"
@@ -137,7 +137,7 @@ StyledGrid.defaultProps = {
137
137
 
138
138
  const COMPONENT_ID$4 = 'grid.row';
139
139
  const colorStyles$2 = props => {
140
- const borderColor = reactTheming.getColor(props.theme.palette.mint, 600, props.theme, 0.5);
140
+ const borderColor = reactTheming.getColorV8(props.theme.palette.mint, 600, props.theme, 0.5);
141
141
  const borderWidth = props.theme.borderWidths.sm;
142
142
  return styled.css(["box-shadow:inset 0 ", " 0 0 ", ",inset 0 -", " 0 0 ", ";"], borderWidth, borderColor, borderWidth, borderColor);
143
143
  };
@@ -167,7 +167,7 @@ const sizeStyles$2 = props => {
167
167
  };
168
168
  const StyledRow = styled__default.default.div.attrs({
169
169
  'data-garden-id': COMPONENT_ID$4,
170
- 'data-garden-version': '8.74.2'
170
+ 'data-garden-version': '8.75.0'
171
171
  }).withConfig({
172
172
  displayName: "StyledRow",
173
173
  componentId: "sc-xjsdg1-0"
@@ -180,7 +180,7 @@ StyledRow.defaultProps = {
180
180
  const COMPONENT_ID$3 = 'pane';
181
181
  const StyledPane = styled__default.default.div.attrs({
182
182
  'data-garden-id': COMPONENT_ID$3,
183
- 'data-garden-version': '8.74.2'
183
+ 'data-garden-version': '8.75.0'
184
184
  }).withConfig({
185
185
  displayName: "StyledPane",
186
186
  componentId: "sc-1ltjst7-0"
@@ -192,7 +192,7 @@ StyledPane.defaultProps = {
192
192
  const COMPONENT_ID$2 = 'pane.content';
193
193
  const StyledPaneContent = styled__default.default.div.attrs({
194
194
  'data-garden-id': COMPONENT_ID$2,
195
- 'data-garden-version': '8.74.2'
195
+ 'data-garden-version': '8.75.0'
196
196
  }).withConfig({
197
197
  displayName: "StyledPaneContent",
198
198
  componentId: "sc-1b38mbh-0"
@@ -203,9 +203,9 @@ StyledPaneContent.defaultProps = {
203
203
 
204
204
  const COMPONENT_ID$1 = 'pane.splitter';
205
205
  const colorStyles$1 = props => {
206
- const color = reactTheming.getColor('neutralHue', 300, props.theme);
207
- const hoverColor = reactTheming.getColor('primaryHue', 600, props.theme);
208
- const activeColor = reactTheming.getColor('primaryHue', 800, props.theme);
206
+ const color = reactTheming.getColorV8('neutralHue', 300, props.theme);
207
+ const hoverColor = reactTheming.getColorV8('primaryHue', 600, props.theme);
208
+ const activeColor = reactTheming.getColorV8('primaryHue', 800, props.theme);
209
209
  return styled.css(["&::before{background-color:", ";}&:hover::before{background-color:", ";}", " &:active::before{background-color:", ";}"], color, props.isHovered && hoverColor, reactTheming.focusStyles({
210
210
  theme: props.theme,
211
211
  hue: hoverColor,
@@ -278,7 +278,7 @@ const sizeStyles$1 = props => {
278
278
  };
279
279
  const StyledPaneSplitter = styled__default.default.div.attrs({
280
280
  'data-garden-id': COMPONENT_ID$1,
281
- 'data-garden-version': '8.74.2'
281
+ 'data-garden-version': '8.75.0'
282
282
  }).withConfig({
283
283
  displayName: "StyledPaneSplitter",
284
284
  componentId: "sc-jylemn-0"
@@ -306,7 +306,7 @@ const colorStyles = _ref => {
306
306
  let {
307
307
  theme
308
308
  } = _ref;
309
- const boxShadow = theme.shadows.lg(`${theme.space.base}px`, `${theme.space.base * 2}px`, reactTheming.getColor('chromeHue', 600, theme, 0.15));
309
+ const boxShadow = theme.shadows.lg(`${theme.space.base}px`, `${theme.space.base * 2}px`, reactTheming.getColorV8('chromeHue', 600, theme, 0.15));
310
310
  return styled.css(["box-shadow:", ";", ""], boxShadow, reactTheming.focusStyles({
311
311
  theme,
312
312
  boxShadow
@@ -343,14 +343,14 @@ const sizeStyles = props => {
343
343
  };
344
344
  const StyledPaneSplitterButton = styled__default.default(reactButtons.ChevronButton).attrs({
345
345
  'data-garden-id': COMPONENT_ID,
346
- 'data-garden-version': '8.74.2',
346
+ 'data-garden-version': '8.75.0',
347
347
  isBasic: true,
348
348
  isPill: true,
349
349
  size: 'small'
350
350
  }).withConfig({
351
351
  displayName: "StyledPaneSplitterButton",
352
352
  componentId: "sc-zh032e-0"
353
- })(["position:absolute;transition:box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,opacity 0.25s ease-in-out 0.1s;opacity:0;", ";", ";&::before{position:absolute;z-index:-1;background-color:", ";width:100%;height:100%;content:'';}", ";", ":hover &,", ":focus-visible &,", "[data-garden-focus-visible] &,", "{opacity:1;}", ";"], sizeStyles, transformStyles, props => props.theme.colors.background, colorStyles, StyledPaneSplitter, StyledPaneSplitter, StyledPaneSplitter, reactTheming.SELECTOR_FOCUS_VISIBLE, props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
353
+ })(["position:absolute;transition:box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,opacity 0.25s ease-in-out 0.1s;opacity:0;", ";", ";&::before{position:absolute;z-index:-1;background-color:", ";width:100%;height:100%;content:'';}", ";", ":hover &,", ":focus-visible &,", "[data-garden-focus-visible] &,", "{opacity:1;}", ";"], sizeStyles, transformStyles, props => reactTheming.getColorV8('background', 600 , props.theme), colorStyles, StyledPaneSplitter, StyledPaneSplitter, StyledPaneSplitter, reactTheming.SELECTOR_FOCUS_VISIBLE, props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
354
354
  StyledPaneSplitterButton.defaultProps = {
355
355
  theme: reactTheming.DEFAULT_THEME
356
356
  };
package/dist/index.esm.js CHANGED
@@ -9,7 +9,7 @@ import React, { createContext, useContext, useMemo, useState, useCallback, forwa
9
9
  import PropTypes from 'prop-types';
10
10
  import styled, { css, ThemeContext } from 'styled-components';
11
11
  import { math, stripUnit } from 'polished';
12
- import { retrieveComponentStyles, DEFAULT_THEME, getColor, SELECTOR_FOCUS_VISIBLE, focusStyles, useDocument, useText } from '@zendeskgarden/react-theming';
12
+ import { retrieveComponentStyles, DEFAULT_THEME, getColorV8, SELECTOR_FOCUS_VISIBLE, focusStyles, useDocument, useText } from '@zendeskgarden/react-theming';
13
13
  import { ChevronButton } from '@zendeskgarden/react-buttons';
14
14
  import { useId, composeEventHandlers } from '@zendeskgarden/container-utilities';
15
15
  import useResizeObserver from 'use-resize-observer';
@@ -43,7 +43,7 @@ const ORIENTATION = ['top', 'bottom', 'start', 'end'];
43
43
 
44
44
  const COMPONENT_ID$6 = 'grid.col';
45
45
  const colorStyles$4 = props => {
46
- const backgroundColor = getColor('primaryHue', 600, props.theme, 0.1);
46
+ const backgroundColor = getColorV8('primaryHue', 600, props.theme, 0.1);
47
47
  return css(["background-clip:content-box;background-color:", ";"], backgroundColor);
48
48
  };
49
49
  const flexStyles$1 = (size, alignSelf, textAlign, offset, order, props) => {
@@ -93,7 +93,7 @@ const sizeStyles$4 = props => {
93
93
  };
94
94
  const StyledCol = styled.div.attrs({
95
95
  'data-garden-id': COMPONENT_ID$6,
96
- 'data-garden-version': '8.74.2'
96
+ 'data-garden-version': '8.75.0'
97
97
  }).withConfig({
98
98
  displayName: "StyledCol",
99
99
  componentId: "sc-inuw62-0"
@@ -105,7 +105,7 @@ StyledCol.defaultProps = {
105
105
 
106
106
  const COMPONENT_ID$5 = 'grid.grid';
107
107
  const colorStyles$3 = props => {
108
- const borderColor = getColor(props.theme.palette.crimson, 400, props.theme, 0.5);
108
+ const borderColor = getColorV8(props.theme.palette.crimson, 400, props.theme, 0.5);
109
109
  const borderWidth = math(`${props.theme.borderWidths.sm} * 2`);
110
110
  return css(["box-shadow:-", " 0 0 0 ", ",", " 0 0 0 ", ";"], borderWidth, borderColor, borderWidth, borderColor);
111
111
  };
@@ -115,7 +115,7 @@ const sizeStyles$3 = props => {
115
115
  };
116
116
  const StyledGrid = styled.div.attrs({
117
117
  'data-garden-id': COMPONENT_ID$5,
118
- 'data-garden-version': '8.74.2'
118
+ 'data-garden-version': '8.75.0'
119
119
  }).withConfig({
120
120
  displayName: "StyledGrid",
121
121
  componentId: "sc-oxgg5i-0"
@@ -127,7 +127,7 @@ StyledGrid.defaultProps = {
127
127
 
128
128
  const COMPONENT_ID$4 = 'grid.row';
129
129
  const colorStyles$2 = props => {
130
- const borderColor = getColor(props.theme.palette.mint, 600, props.theme, 0.5);
130
+ const borderColor = getColorV8(props.theme.palette.mint, 600, props.theme, 0.5);
131
131
  const borderWidth = props.theme.borderWidths.sm;
132
132
  return css(["box-shadow:inset 0 ", " 0 0 ", ",inset 0 -", " 0 0 ", ";"], borderWidth, borderColor, borderWidth, borderColor);
133
133
  };
@@ -157,7 +157,7 @@ const sizeStyles$2 = props => {
157
157
  };
158
158
  const StyledRow = styled.div.attrs({
159
159
  'data-garden-id': COMPONENT_ID$4,
160
- 'data-garden-version': '8.74.2'
160
+ 'data-garden-version': '8.75.0'
161
161
  }).withConfig({
162
162
  displayName: "StyledRow",
163
163
  componentId: "sc-xjsdg1-0"
@@ -170,7 +170,7 @@ StyledRow.defaultProps = {
170
170
  const COMPONENT_ID$3 = 'pane';
171
171
  const StyledPane = styled.div.attrs({
172
172
  'data-garden-id': COMPONENT_ID$3,
173
- 'data-garden-version': '8.74.2'
173
+ 'data-garden-version': '8.75.0'
174
174
  }).withConfig({
175
175
  displayName: "StyledPane",
176
176
  componentId: "sc-1ltjst7-0"
@@ -182,7 +182,7 @@ StyledPane.defaultProps = {
182
182
  const COMPONENT_ID$2 = 'pane.content';
183
183
  const StyledPaneContent = styled.div.attrs({
184
184
  'data-garden-id': COMPONENT_ID$2,
185
- 'data-garden-version': '8.74.2'
185
+ 'data-garden-version': '8.75.0'
186
186
  }).withConfig({
187
187
  displayName: "StyledPaneContent",
188
188
  componentId: "sc-1b38mbh-0"
@@ -193,9 +193,9 @@ StyledPaneContent.defaultProps = {
193
193
 
194
194
  const COMPONENT_ID$1 = 'pane.splitter';
195
195
  const colorStyles$1 = props => {
196
- const color = getColor('neutralHue', 300, props.theme);
197
- const hoverColor = getColor('primaryHue', 600, props.theme);
198
- const activeColor = getColor('primaryHue', 800, props.theme);
196
+ const color = getColorV8('neutralHue', 300, props.theme);
197
+ const hoverColor = getColorV8('primaryHue', 600, props.theme);
198
+ const activeColor = getColorV8('primaryHue', 800, props.theme);
199
199
  return css(["&::before{background-color:", ";}&:hover::before{background-color:", ";}", " &:active::before{background-color:", ";}"], color, props.isHovered && hoverColor, focusStyles({
200
200
  theme: props.theme,
201
201
  hue: hoverColor,
@@ -268,7 +268,7 @@ const sizeStyles$1 = props => {
268
268
  };
269
269
  const StyledPaneSplitter = styled.div.attrs({
270
270
  'data-garden-id': COMPONENT_ID$1,
271
- 'data-garden-version': '8.74.2'
271
+ 'data-garden-version': '8.75.0'
272
272
  }).withConfig({
273
273
  displayName: "StyledPaneSplitter",
274
274
  componentId: "sc-jylemn-0"
@@ -296,7 +296,7 @@ const colorStyles = _ref => {
296
296
  let {
297
297
  theme
298
298
  } = _ref;
299
- const boxShadow = theme.shadows.lg(`${theme.space.base}px`, `${theme.space.base * 2}px`, getColor('chromeHue', 600, theme, 0.15));
299
+ const boxShadow = theme.shadows.lg(`${theme.space.base}px`, `${theme.space.base * 2}px`, getColorV8('chromeHue', 600, theme, 0.15));
300
300
  return css(["box-shadow:", ";", ""], boxShadow, focusStyles({
301
301
  theme,
302
302
  boxShadow
@@ -333,14 +333,14 @@ const sizeStyles = props => {
333
333
  };
334
334
  const StyledPaneSplitterButton = styled(ChevronButton).attrs({
335
335
  'data-garden-id': COMPONENT_ID,
336
- 'data-garden-version': '8.74.2',
336
+ 'data-garden-version': '8.75.0',
337
337
  isBasic: true,
338
338
  isPill: true,
339
339
  size: 'small'
340
340
  }).withConfig({
341
341
  displayName: "StyledPaneSplitterButton",
342
342
  componentId: "sc-zh032e-0"
343
- })(["position:absolute;transition:box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,opacity 0.25s ease-in-out 0.1s;opacity:0;", ";", ";&::before{position:absolute;z-index:-1;background-color:", ";width:100%;height:100%;content:'';}", ";", ":hover &,", ":focus-visible &,", "[data-garden-focus-visible] &,", "{opacity:1;}", ";"], sizeStyles, transformStyles, props => props.theme.colors.background, colorStyles, StyledPaneSplitter, StyledPaneSplitter, StyledPaneSplitter, SELECTOR_FOCUS_VISIBLE, props => retrieveComponentStyles(COMPONENT_ID, props));
343
+ })(["position:absolute;transition:box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,opacity 0.25s ease-in-out 0.1s;opacity:0;", ";", ";&::before{position:absolute;z-index:-1;background-color:", ";width:100%;height:100%;content:'';}", ";", ":hover &,", ":focus-visible &,", "[data-garden-focus-visible] &,", "{opacity:1;}", ";"], sizeStyles, transformStyles, props => getColorV8('background', 600 , props.theme), colorStyles, StyledPaneSplitter, StyledPaneSplitter, StyledPaneSplitter, SELECTOR_FOCUS_VISIBLE, props => retrieveComponentStyles(COMPONENT_ID, props));
344
344
  StyledPaneSplitterButton.defaultProps = {
345
345
  theme: DEFAULT_THEME
346
346
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-grid",
3
- "version": "8.74.2",
3
+ "version": "8.75.0",
4
4
  "description": "Components relating to layout grids in the Garden Design System",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Zendesk Garden <garden@zendesk.com>",
@@ -23,8 +23,8 @@
23
23
  "dependencies": {
24
24
  "@zendeskgarden/container-splitter": "^2.0.3",
25
25
  "@zendeskgarden/container-utilities": "^2.0.0",
26
- "@zendeskgarden/react-buttons": "^8.74.2",
27
- "@zendeskgarden/react-tooltips": "^8.74.2",
26
+ "@zendeskgarden/react-buttons": "^8.75.0",
27
+ "@zendeskgarden/react-tooltips": "^8.75.0",
28
28
  "polished": "^4.0.0",
29
29
  "prop-types": "^15.5.7",
30
30
  "react-merge-refs": "^1.1.0",
@@ -37,7 +37,7 @@
37
37
  "styled-components": "^4.2.0 || ^5.0.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@zendeskgarden/react-theming": "^8.74.2"
40
+ "@zendeskgarden/react-theming": "^8.75.0"
41
41
  },
42
42
  "keywords": [
43
43
  "components",
@@ -49,5 +49,5 @@
49
49
  "access": "public"
50
50
  },
51
51
  "zendeskgarden:src": "src/index.ts",
52
- "gitHead": "be0e20f0b016a227ed1ab6b5b13cb04971969d3b"
52
+ "gitHead": "56a54793a611efc223b8e36262d428365613c853"
53
53
  }