@zendeskgarden/react-grid 9.0.0-next.11 → 9.0.0-next.12
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/esm/styled/StyledCol.js +1 -1
- package/dist/esm/styled/StyledGrid.js +1 -1
- package/dist/esm/styled/StyledRow.js +1 -1
- package/dist/esm/styled/pane/StyledPane.js +1 -1
- package/dist/esm/styled/pane/StyledPaneContent.js +1 -1
- package/dist/esm/styled/pane/StyledPaneSplitter.js +1 -1
- package/dist/esm/styled/pane/StyledPaneSplitterButton.js +3 -5
- package/dist/index.cjs.js +26 -28
- package/package.json +5 -5
|
@@ -60,7 +60,7 @@ const sizeStyles = props => {
|
|
|
60
60
|
};
|
|
61
61
|
const StyledCol = styled.div.attrs({
|
|
62
62
|
'data-garden-id': COMPONENT_ID,
|
|
63
|
-
'data-garden-version': '9.0.0-next.
|
|
63
|
+
'data-garden-version': '9.0.0-next.12'
|
|
64
64
|
}).withConfig({
|
|
65
65
|
displayName: "StyledCol",
|
|
66
66
|
componentId: "sc-inuw62-0"
|
|
@@ -20,7 +20,7 @@ const sizeStyles = props => {
|
|
|
20
20
|
};
|
|
21
21
|
const StyledGrid = styled.div.attrs({
|
|
22
22
|
'data-garden-id': COMPONENT_ID,
|
|
23
|
-
'data-garden-version': '9.0.0-next.
|
|
23
|
+
'data-garden-version': '9.0.0-next.12'
|
|
24
24
|
}).withConfig({
|
|
25
25
|
displayName: "StyledGrid",
|
|
26
26
|
componentId: "sc-oxgg5i-0"
|
|
@@ -40,7 +40,7 @@ const sizeStyles = props => {
|
|
|
40
40
|
};
|
|
41
41
|
const StyledRow = styled.div.attrs({
|
|
42
42
|
'data-garden-id': COMPONENT_ID,
|
|
43
|
-
'data-garden-version': '9.0.0-next.
|
|
43
|
+
'data-garden-version': '9.0.0-next.12'
|
|
44
44
|
}).withConfig({
|
|
45
45
|
displayName: "StyledRow",
|
|
46
46
|
componentId: "sc-xjsdg1-0"
|
|
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
|
|
|
10
10
|
const COMPONENT_ID = 'pane';
|
|
11
11
|
const StyledPane = styled.div.attrs({
|
|
12
12
|
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.12'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledPane",
|
|
16
16
|
componentId: "sc-1ltjst7-0"
|
|
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
|
|
|
10
10
|
const COMPONENT_ID = 'pane.content';
|
|
11
11
|
const StyledPaneContent = styled.div.attrs({
|
|
12
12
|
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.12'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledPaneContent",
|
|
16
16
|
componentId: "sc-1b38mbh-0"
|
|
@@ -87,7 +87,7 @@ const sizeStyles = props => {
|
|
|
87
87
|
};
|
|
88
88
|
const StyledPaneSplitter = styled.div.attrs({
|
|
89
89
|
'data-garden-id': COMPONENT_ID,
|
|
90
|
-
'data-garden-version': '9.0.0-next.
|
|
90
|
+
'data-garden-version': '9.0.0-next.12'
|
|
91
91
|
}).withConfig({
|
|
92
92
|
displayName: "StyledPaneSplitter",
|
|
93
93
|
componentId: "sc-jylemn-0"
|
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { DEFAULT_THEME } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { ChevronButton } from '@zendeskgarden/react-buttons';
|
|
10
10
|
|
|
11
|
-
const COMPONENT_ID = 'pane.splitter_button';
|
|
12
11
|
const getSize = theme => theme.space.base * 6;
|
|
13
12
|
const sizeStyles = _ref => {
|
|
14
13
|
let {
|
|
@@ -32,15 +31,14 @@ const transformStyles = props => {
|
|
|
32
31
|
return css(["& > svg{transform:rotate(", "deg);}"], degrees);
|
|
33
32
|
};
|
|
34
33
|
const StyledPaneSplitterButton = styled(ChevronButton).attrs({
|
|
35
|
-
'data-garden-
|
|
36
|
-
'data-garden-version': '9.0.0-next.11',
|
|
34
|
+
'data-garden-version': '9.0.0-next.12',
|
|
37
35
|
isBasic: true,
|
|
38
36
|
isPill: true,
|
|
39
37
|
size: 'small'
|
|
40
38
|
}).withConfig({
|
|
41
39
|
displayName: "StyledPaneSplitterButton",
|
|
42
40
|
componentId: "sc-zh032e-0"
|
|
43
|
-
})(["", ";", ";"
|
|
41
|
+
})(["", ";", ";"], sizeStyles, transformStyles);
|
|
44
42
|
StyledPaneSplitterButton.defaultProps = {
|
|
45
43
|
theme: DEFAULT_THEME
|
|
46
44
|
};
|
package/dist/index.cjs.js
CHANGED
|
@@ -34,7 +34,7 @@ const SPACE = [false, 'xxs', 'xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
|
|
|
34
34
|
const WRAP = ['nowrap', 'wrap', 'wrap-reverse'];
|
|
35
35
|
const ORIENTATION = ['top', 'bottom', 'start', 'end'];
|
|
36
36
|
|
|
37
|
-
const COMPONENT_ID$
|
|
37
|
+
const COMPONENT_ID$6 = 'grid.col';
|
|
38
38
|
const colorStyles$4 = props => {
|
|
39
39
|
const backgroundColor = reactTheming.getColorV8('primaryHue', 600, props.theme, 0.1);
|
|
40
40
|
return styled.css(["background-clip:content-box;background-color:", ";"], backgroundColor);
|
|
@@ -85,18 +85,18 @@ const sizeStyles$5 = props => {
|
|
|
85
85
|
return styled.css(["padding-right:", ";padding-left:", ";"], padding, padding);
|
|
86
86
|
};
|
|
87
87
|
const StyledCol = styled__default.default.div.attrs({
|
|
88
|
-
'data-garden-id': COMPONENT_ID$
|
|
89
|
-
'data-garden-version': '9.0.0-next.
|
|
88
|
+
'data-garden-id': COMPONENT_ID$6,
|
|
89
|
+
'data-garden-version': '9.0.0-next.12'
|
|
90
90
|
}).withConfig({
|
|
91
91
|
displayName: "StyledCol",
|
|
92
92
|
componentId: "sc-inuw62-0"
|
|
93
|
-
})(["box-sizing:border-box;width:100%;", ";", ";", ";", ";", ";", ";", ";", ";", ";"], props => flexStyles$1(!props.sizeAll && (props.xs || props.sm || props.md || props.lg || props.xl) ? undefined : props.sizeAll || false, props.alignSelf, props.textAlign, props.offset, props.order, props), props => sizeStyles$5(props), props => props.debug && colorStyles$4(props), props => mediaStyles$1(props.theme.breakpoints.xs, props.xs, props.alignSelfXs, props.textAlignXs, props.offsetXs, props.orderXs, props), props => mediaStyles$1(props.theme.breakpoints.sm, props.sm, props.alignSelfSm, props.textAlignSm, props.offsetSm, props.orderSm, props), props => mediaStyles$1(props.theme.breakpoints.md, props.md, props.alignSelfMd, props.textAlignMd, props.offsetMd, props.orderMd, props), props => mediaStyles$1(props.theme.breakpoints.lg, props.lg, props.alignSelfLg, props.textAlignLg, props.offsetLg, props.orderLg, props), props => mediaStyles$1(props.theme.breakpoints.xl, props.xl, props.alignSelfXl, props.textAlignXl, props.offsetXl, props.orderXl, props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
93
|
+
})(["box-sizing:border-box;width:100%;", ";", ";", ";", ";", ";", ";", ";", ";", ";"], props => flexStyles$1(!props.sizeAll && (props.xs || props.sm || props.md || props.lg || props.xl) ? undefined : props.sizeAll || false, props.alignSelf, props.textAlign, props.offset, props.order, props), props => sizeStyles$5(props), props => props.debug && colorStyles$4(props), props => mediaStyles$1(props.theme.breakpoints.xs, props.xs, props.alignSelfXs, props.textAlignXs, props.offsetXs, props.orderXs, props), props => mediaStyles$1(props.theme.breakpoints.sm, props.sm, props.alignSelfSm, props.textAlignSm, props.offsetSm, props.orderSm, props), props => mediaStyles$1(props.theme.breakpoints.md, props.md, props.alignSelfMd, props.textAlignMd, props.offsetMd, props.orderMd, props), props => mediaStyles$1(props.theme.breakpoints.lg, props.lg, props.alignSelfLg, props.textAlignLg, props.offsetLg, props.orderLg, props), props => mediaStyles$1(props.theme.breakpoints.xl, props.xl, props.alignSelfXl, props.textAlignXl, props.offsetXl, props.orderXl, props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$6, props));
|
|
94
94
|
StyledCol.defaultProps = {
|
|
95
95
|
columns: 12,
|
|
96
96
|
theme: reactTheming.DEFAULT_THEME
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
const COMPONENT_ID$
|
|
99
|
+
const COMPONENT_ID$5 = 'grid.grid';
|
|
100
100
|
const colorStyles$3 = props => {
|
|
101
101
|
const borderColor = reactTheming.getColorV8(props.theme.palette.crimson, 400, props.theme, 0.5);
|
|
102
102
|
const borderWidth = polished.math(`${props.theme.borderWidths.sm} * 2`);
|
|
@@ -107,18 +107,18 @@ const sizeStyles$4 = props => {
|
|
|
107
107
|
return styled.css(["padding-right:", ";padding-left:", ";"], padding, padding);
|
|
108
108
|
};
|
|
109
109
|
const StyledGrid = styled__default.default.div.attrs({
|
|
110
|
-
'data-garden-id': COMPONENT_ID$
|
|
111
|
-
'data-garden-version': '9.0.0-next.
|
|
110
|
+
'data-garden-id': COMPONENT_ID$5,
|
|
111
|
+
'data-garden-version': '9.0.0-next.12'
|
|
112
112
|
}).withConfig({
|
|
113
113
|
displayName: "StyledGrid",
|
|
114
114
|
componentId: "sc-oxgg5i-0"
|
|
115
|
-
})(["direction:", ";margin-right:auto;margin-left:auto;width:100%;box-sizing:border-box;", ";", ";", ";"], props => props.theme.rtl && 'rtl', props => sizeStyles$4(props), props => props.debug && colorStyles$3(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
115
|
+
})(["direction:", ";margin-right:auto;margin-left:auto;width:100%;box-sizing:border-box;", ";", ";", ";"], props => props.theme.rtl && 'rtl', props => sizeStyles$4(props), props => props.debug && colorStyles$3(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$5, props));
|
|
116
116
|
StyledGrid.defaultProps = {
|
|
117
117
|
gutters: 'md',
|
|
118
118
|
theme: reactTheming.DEFAULT_THEME
|
|
119
119
|
};
|
|
120
120
|
|
|
121
|
-
const COMPONENT_ID$
|
|
121
|
+
const COMPONENT_ID$4 = 'grid.row';
|
|
122
122
|
const colorStyles$2 = props => {
|
|
123
123
|
const borderColor = reactTheming.getColorV8(props.theme.palette.mint, 600, props.theme, 0.5);
|
|
124
124
|
const borderWidth = props.theme.borderWidths.sm;
|
|
@@ -149,42 +149,42 @@ const sizeStyles$3 = props => {
|
|
|
149
149
|
return styled.css(["margin-right:-", ";margin-left:-", ";"], margin, margin);
|
|
150
150
|
};
|
|
151
151
|
const StyledRow = styled__default.default.div.attrs({
|
|
152
|
-
'data-garden-id': COMPONENT_ID$
|
|
153
|
-
'data-garden-version': '9.0.0-next.
|
|
152
|
+
'data-garden-id': COMPONENT_ID$4,
|
|
153
|
+
'data-garden-version': '9.0.0-next.12'
|
|
154
154
|
}).withConfig({
|
|
155
155
|
displayName: "StyledRow",
|
|
156
156
|
componentId: "sc-xjsdg1-0"
|
|
157
|
-
})(["display:flex;box-sizing:border-box;", " ", ";", ";", ";", ";", ";", ";", ";", ";"], props => flexStyles(props.alignItems, props.justifyContent, props.wrapAll), props => sizeStyles$3(props), props => props.debug && colorStyles$2(props), props => mediaStyles(props.theme.breakpoints.xs, props.alignItemsXs, props.justifyContentXs, props.wrapXs), props => mediaStyles(props.theme.breakpoints.sm, props.alignItemsSm, props.justifyContentSm, props.wrapSm), props => mediaStyles(props.theme.breakpoints.md, props.alignItemsMd, props.justifyContentMd, props.wrapMd), props => mediaStyles(props.theme.breakpoints.lg, props.alignItemsLg, props.justifyContentLg, props.wrapLg), props => mediaStyles(props.theme.breakpoints.xl, props.alignItemsXl, props.justifyContentXl, props.wrapXl), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
157
|
+
})(["display:flex;box-sizing:border-box;", " ", ";", ";", ";", ";", ";", ";", ";", ";"], props => flexStyles(props.alignItems, props.justifyContent, props.wrapAll), props => sizeStyles$3(props), props => props.debug && colorStyles$2(props), props => mediaStyles(props.theme.breakpoints.xs, props.alignItemsXs, props.justifyContentXs, props.wrapXs), props => mediaStyles(props.theme.breakpoints.sm, props.alignItemsSm, props.justifyContentSm, props.wrapSm), props => mediaStyles(props.theme.breakpoints.md, props.alignItemsMd, props.justifyContentMd, props.wrapMd), props => mediaStyles(props.theme.breakpoints.lg, props.alignItemsLg, props.justifyContentLg, props.wrapLg), props => mediaStyles(props.theme.breakpoints.xl, props.alignItemsXl, props.justifyContentXl, props.wrapXl), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$4, props));
|
|
158
158
|
StyledRow.defaultProps = {
|
|
159
159
|
wrapAll: 'wrap',
|
|
160
160
|
theme: reactTheming.DEFAULT_THEME
|
|
161
161
|
};
|
|
162
162
|
|
|
163
|
-
const COMPONENT_ID$
|
|
163
|
+
const COMPONENT_ID$3 = 'pane';
|
|
164
164
|
const StyledPane = styled__default.default.div.attrs({
|
|
165
|
-
'data-garden-id': COMPONENT_ID$
|
|
166
|
-
'data-garden-version': '9.0.0-next.
|
|
165
|
+
'data-garden-id': COMPONENT_ID$3,
|
|
166
|
+
'data-garden-version': '9.0.0-next.12'
|
|
167
167
|
}).withConfig({
|
|
168
168
|
displayName: "StyledPane",
|
|
169
169
|
componentId: "sc-1ltjst7-0"
|
|
170
|
-
})(["position:relative;min-width:0;min-height:0;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
170
|
+
})(["position:relative;min-width:0;min-height:0;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$3, props));
|
|
171
171
|
StyledPane.defaultProps = {
|
|
172
172
|
theme: reactTheming.DEFAULT_THEME
|
|
173
173
|
};
|
|
174
174
|
|
|
175
|
-
const COMPONENT_ID$
|
|
175
|
+
const COMPONENT_ID$2 = 'pane.content';
|
|
176
176
|
const StyledPaneContent = styled__default.default.div.attrs({
|
|
177
|
-
'data-garden-id': COMPONENT_ID$
|
|
178
|
-
'data-garden-version': '9.0.0-next.
|
|
177
|
+
'data-garden-id': COMPONENT_ID$2,
|
|
178
|
+
'data-garden-version': '9.0.0-next.12'
|
|
179
179
|
}).withConfig({
|
|
180
180
|
displayName: "StyledPaneContent",
|
|
181
181
|
componentId: "sc-1b38mbh-0"
|
|
182
|
-
})(["height:100%;overflow:auto;&[hidden]{display:none;}", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
182
|
+
})(["height:100%;overflow:auto;&[hidden]{display:none;}", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$2, props));
|
|
183
183
|
StyledPaneContent.defaultProps = {
|
|
184
184
|
theme: reactTheming.DEFAULT_THEME
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
-
const COMPONENT_ID$
|
|
187
|
+
const COMPONENT_ID$1 = 'pane.splitter';
|
|
188
188
|
const colorStyles$1 = props => {
|
|
189
189
|
const color = reactTheming.getColorV8('neutralHue', 300, props.theme);
|
|
190
190
|
const hoverColor = reactTheming.getColorV8('primaryHue', 600, props.theme);
|
|
@@ -262,17 +262,16 @@ const sizeStyles$2 = props => {
|
|
|
262
262
|
return styled.css(["top:", ";right:", ";bottom:", ";left:", ";cursor:", ";width:", ";height:", ";&::before{width:", ";height:", ";}&:hover::before{", ":", ";}&:focus::before,&:focus-visible::before{", ":", ";}&:focus-visible::before{border-radius:", ";}"], top, right, bottom, left, props.isFixed ? 'pointer' : cursor, width, height, separatorWidth, separatorHeight, dimensionProperty, separatorSize, dimensionProperty, separatorSize, props.theme.borderRadii.md);
|
|
263
263
|
};
|
|
264
264
|
const StyledPaneSplitter = styled__default.default.div.attrs({
|
|
265
|
-
'data-garden-id': COMPONENT_ID$
|
|
266
|
-
'data-garden-version': '9.0.0-next.
|
|
265
|
+
'data-garden-id': COMPONENT_ID$1,
|
|
266
|
+
'data-garden-version': '9.0.0-next.12'
|
|
267
267
|
}).withConfig({
|
|
268
268
|
displayName: "StyledPaneSplitter",
|
|
269
269
|
componentId: "sc-jylemn-0"
|
|
270
|
-
})(["display:flex;position:absolute;align-items:center;justify-content:center;z-index:1;user-select:none;", ";", "{z-index:2;}&::before{position:absolute;transition:box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out;z-index:-1;content:'';}", ";", ";"], sizeStyles$2, reactTheming.SELECTOR_FOCUS_VISIBLE, colorStyles$1, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
270
|
+
})(["display:flex;position:absolute;align-items:center;justify-content:center;z-index:1;user-select:none;", ";", "{z-index:2;}&::before{position:absolute;transition:box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out;z-index:-1;content:'';}", ";", ";"], sizeStyles$2, reactTheming.SELECTOR_FOCUS_VISIBLE, colorStyles$1, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$1, props));
|
|
271
271
|
StyledPaneSplitter.defaultProps = {
|
|
272
272
|
theme: reactTheming.DEFAULT_THEME
|
|
273
273
|
};
|
|
274
274
|
|
|
275
|
-
const COMPONENT_ID$1 = 'pane.splitter_button';
|
|
276
275
|
const getSize = theme => theme.space.base * 6;
|
|
277
276
|
const sizeStyles$1 = _ref => {
|
|
278
277
|
let {
|
|
@@ -296,15 +295,14 @@ const transformStyles = props => {
|
|
|
296
295
|
return styled.css(["& > svg{transform:rotate(", "deg);}"], degrees);
|
|
297
296
|
};
|
|
298
297
|
const StyledPaneSplitterButton = styled__default.default(reactButtons.ChevronButton).attrs({
|
|
299
|
-
'data-garden-
|
|
300
|
-
'data-garden-version': '9.0.0-next.11',
|
|
298
|
+
'data-garden-version': '9.0.0-next.12',
|
|
301
299
|
isBasic: true,
|
|
302
300
|
isPill: true,
|
|
303
301
|
size: 'small'
|
|
304
302
|
}).withConfig({
|
|
305
303
|
displayName: "StyledPaneSplitterButton",
|
|
306
304
|
componentId: "sc-zh032e-0"
|
|
307
|
-
})(["", ";", ";"
|
|
305
|
+
})(["", ";", ";"], sizeStyles$1, transformStyles);
|
|
308
306
|
StyledPaneSplitterButton.defaultProps = {
|
|
309
307
|
theme: reactTheming.DEFAULT_THEME
|
|
310
308
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-grid",
|
|
3
|
-
"version": "9.0.0-next.
|
|
3
|
+
"version": "9.0.0-next.12",
|
|
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": "^9.0.0-next.
|
|
27
|
-
"@zendeskgarden/react-tooltips": "^9.0.0-next.
|
|
26
|
+
"@zendeskgarden/react-buttons": "^9.0.0-next.12",
|
|
27
|
+
"@zendeskgarden/react-tooltips": "^9.0.0-next.12",
|
|
28
28
|
"polished": "^4.0.0",
|
|
29
29
|
"prop-types": "^15.5.7",
|
|
30
30
|
"react-merge-refs": "^2.0.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"styled-components": "^5.3.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@zendeskgarden/react-theming": "^9.0.0-next.
|
|
40
|
+
"@zendeskgarden/react-theming": "^9.0.0-next.12"
|
|
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": "
|
|
52
|
+
"gitHead": "7925ff78236795111e2953efbce549839df3a86d"
|
|
53
53
|
}
|