@zendeskgarden/react-grid 8.59.0 → 8.60.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
|
@@ -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.
|
|
106
|
+
'data-garden-version': '8.60.0'
|
|
107
107
|
}).withConfig({
|
|
108
108
|
displayName: "StyledCol",
|
|
109
109
|
componentId: "sc-inuw62-0"
|
|
@@ -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.
|
|
128
|
+
'data-garden-version': '8.60.0'
|
|
129
129
|
}).withConfig({
|
|
130
130
|
displayName: "StyledGrid",
|
|
131
131
|
componentId: "sc-oxgg5i-0"
|
|
@@ -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.
|
|
170
|
+
'data-garden-version': '8.60.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.
|
|
183
|
+
'data-garden-version': '8.60.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.
|
|
195
|
+
'data-garden-version': '8.60.0'
|
|
196
196
|
}).withConfig({
|
|
197
197
|
displayName: "StyledPaneContent",
|
|
198
198
|
componentId: "sc-1b38mbh-0"
|
|
@@ -268,11 +268,11 @@ const sizeStyles$1 = props => {
|
|
|
268
268
|
break;
|
|
269
269
|
}
|
|
270
270
|
const dimensionProperty = width === '100%' ? 'height' : 'width';
|
|
271
|
-
return styled.css(["top:", ";right:", ";bottom:", ";left:", ";cursor:", ";width:", ";height:", ";&::before{width:", ";height:", ";}&:hover::before{", ":", ";}&[data-garden-focus-visible]::before,&:focus::before{", ":", ";}&[data-garden-focus-visible]::before{border-radius:", ";}"], top, right, bottom, left, cursor, width, height, separatorWidth, separatorHeight, dimensionProperty, props.isHovered && separatorSize, dimensionProperty, separatorSize, props.theme.borderRadii.md);
|
|
271
|
+
return styled.css(["top:", ";right:", ";bottom:", ";left:", ";cursor:", ";width:", ";height:", ";&::before{width:", ";height:", ";}&:hover::before{", ":", ";}&[data-garden-focus-visible]::before,&:focus::before{", ":", ";}&[data-garden-focus-visible]::before{border-radius:", ";}"], top, right, bottom, left, props.isFixed ? 'pointer' : cursor, width, height, separatorWidth, separatorHeight, dimensionProperty, props.isHovered && separatorSize, dimensionProperty, separatorSize, props.theme.borderRadii.md);
|
|
272
272
|
};
|
|
273
273
|
const StyledPaneSplitter = styled__default["default"].div.attrs({
|
|
274
274
|
'data-garden-id': COMPONENT_ID$1,
|
|
275
|
-
'data-garden-version': '8.
|
|
275
|
+
'data-garden-version': '8.60.0'
|
|
276
276
|
}).withConfig({
|
|
277
277
|
displayName: "StyledPaneSplitter",
|
|
278
278
|
componentId: "sc-jylemn-0"
|
|
@@ -335,7 +335,7 @@ const sizeStyles = props => {
|
|
|
335
335
|
};
|
|
336
336
|
const StyledPaneSplitterButton = styled__default["default"](reactButtons.ChevronButton).attrs({
|
|
337
337
|
'data-garden-id': COMPONENT_ID,
|
|
338
|
-
'data-garden-version': '8.
|
|
338
|
+
'data-garden-version': '8.60.0',
|
|
339
339
|
isBasic: true,
|
|
340
340
|
isPill: true,
|
|
341
341
|
size: 'small'
|
|
@@ -706,6 +706,7 @@ const SplitterComponent = React.forwardRef((_ref, ref) => {
|
|
|
706
706
|
min,
|
|
707
707
|
max,
|
|
708
708
|
orientation,
|
|
709
|
+
isFixed,
|
|
709
710
|
onMouseDown,
|
|
710
711
|
onTouchStart,
|
|
711
712
|
onKeyDown,
|
|
@@ -732,6 +733,7 @@ const SplitterComponent = React.forwardRef((_ref, ref) => {
|
|
|
732
733
|
min: min * pixelsPerFr,
|
|
733
734
|
max: max * pixelsPerFr,
|
|
734
735
|
rtl: themeContext.rtl,
|
|
736
|
+
isFixed,
|
|
735
737
|
environment,
|
|
736
738
|
onChange: valueNow => {
|
|
737
739
|
if (isRow) {
|
|
@@ -770,6 +772,7 @@ const SplitterComponent = React.forwardRef((_ref, ref) => {
|
|
|
770
772
|
}), [orientation, layoutKey, min, max, valueInFr, size, isRow])
|
|
771
773
|
}, React__default["default"].createElement(StyledPaneSplitter, _extends({
|
|
772
774
|
isHovered: isHovered,
|
|
775
|
+
isFixed: isFixed,
|
|
773
776
|
orientation: orientation
|
|
774
777
|
}, separatorProps, props, {
|
|
775
778
|
onMouseOver: onMouseOver,
|
|
@@ -781,7 +784,8 @@ SplitterComponent.propTypes = {
|
|
|
781
784
|
layoutKey: PropTypes__default["default"].string.isRequired,
|
|
782
785
|
min: PropTypes__default["default"].number.isRequired,
|
|
783
786
|
max: PropTypes__default["default"].number.isRequired,
|
|
784
|
-
orientation: PropTypes__default["default"].oneOf(ORIENTATION)
|
|
787
|
+
orientation: PropTypes__default["default"].oneOf(ORIENTATION),
|
|
788
|
+
isFixed: PropTypes__default["default"].bool
|
|
785
789
|
};
|
|
786
790
|
SplitterComponent.defaultProps = {
|
|
787
791
|
orientation: 'end'
|
package/dist/index.esm.js
CHANGED
|
@@ -92,7 +92,7 @@ const sizeStyles$4 = props => {
|
|
|
92
92
|
};
|
|
93
93
|
const StyledCol = styled.div.attrs({
|
|
94
94
|
'data-garden-id': COMPONENT_ID$6,
|
|
95
|
-
'data-garden-version': '8.
|
|
95
|
+
'data-garden-version': '8.60.0'
|
|
96
96
|
}).withConfig({
|
|
97
97
|
displayName: "StyledCol",
|
|
98
98
|
componentId: "sc-inuw62-0"
|
|
@@ -114,7 +114,7 @@ const sizeStyles$3 = props => {
|
|
|
114
114
|
};
|
|
115
115
|
const StyledGrid = styled.div.attrs({
|
|
116
116
|
'data-garden-id': COMPONENT_ID$5,
|
|
117
|
-
'data-garden-version': '8.
|
|
117
|
+
'data-garden-version': '8.60.0'
|
|
118
118
|
}).withConfig({
|
|
119
119
|
displayName: "StyledGrid",
|
|
120
120
|
componentId: "sc-oxgg5i-0"
|
|
@@ -156,7 +156,7 @@ const sizeStyles$2 = props => {
|
|
|
156
156
|
};
|
|
157
157
|
const StyledRow = styled.div.attrs({
|
|
158
158
|
'data-garden-id': COMPONENT_ID$4,
|
|
159
|
-
'data-garden-version': '8.
|
|
159
|
+
'data-garden-version': '8.60.0'
|
|
160
160
|
}).withConfig({
|
|
161
161
|
displayName: "StyledRow",
|
|
162
162
|
componentId: "sc-xjsdg1-0"
|
|
@@ -169,7 +169,7 @@ StyledRow.defaultProps = {
|
|
|
169
169
|
const COMPONENT_ID$3 = 'pane';
|
|
170
170
|
const StyledPane = styled.div.attrs({
|
|
171
171
|
'data-garden-id': COMPONENT_ID$3,
|
|
172
|
-
'data-garden-version': '8.
|
|
172
|
+
'data-garden-version': '8.60.0'
|
|
173
173
|
}).withConfig({
|
|
174
174
|
displayName: "StyledPane",
|
|
175
175
|
componentId: "sc-1ltjst7-0"
|
|
@@ -181,7 +181,7 @@ StyledPane.defaultProps = {
|
|
|
181
181
|
const COMPONENT_ID$2 = 'pane.content';
|
|
182
182
|
const StyledPaneContent = styled.div.attrs({
|
|
183
183
|
'data-garden-id': COMPONENT_ID$2,
|
|
184
|
-
'data-garden-version': '8.
|
|
184
|
+
'data-garden-version': '8.60.0'
|
|
185
185
|
}).withConfig({
|
|
186
186
|
displayName: "StyledPaneContent",
|
|
187
187
|
componentId: "sc-1b38mbh-0"
|
|
@@ -257,11 +257,11 @@ const sizeStyles$1 = props => {
|
|
|
257
257
|
break;
|
|
258
258
|
}
|
|
259
259
|
const dimensionProperty = width === '100%' ? 'height' : 'width';
|
|
260
|
-
return css(["top:", ";right:", ";bottom:", ";left:", ";cursor:", ";width:", ";height:", ";&::before{width:", ";height:", ";}&:hover::before{", ":", ";}&[data-garden-focus-visible]::before,&:focus::before{", ":", ";}&[data-garden-focus-visible]::before{border-radius:", ";}"], top, right, bottom, left, cursor, width, height, separatorWidth, separatorHeight, dimensionProperty, props.isHovered && separatorSize, dimensionProperty, separatorSize, props.theme.borderRadii.md);
|
|
260
|
+
return css(["top:", ";right:", ";bottom:", ";left:", ";cursor:", ";width:", ";height:", ";&::before{width:", ";height:", ";}&:hover::before{", ":", ";}&[data-garden-focus-visible]::before,&:focus::before{", ":", ";}&[data-garden-focus-visible]::before{border-radius:", ";}"], top, right, bottom, left, props.isFixed ? 'pointer' : cursor, width, height, separatorWidth, separatorHeight, dimensionProperty, props.isHovered && separatorSize, dimensionProperty, separatorSize, props.theme.borderRadii.md);
|
|
261
261
|
};
|
|
262
262
|
const StyledPaneSplitter = styled.div.attrs({
|
|
263
263
|
'data-garden-id': COMPONENT_ID$1,
|
|
264
|
-
'data-garden-version': '8.
|
|
264
|
+
'data-garden-version': '8.60.0'
|
|
265
265
|
}).withConfig({
|
|
266
266
|
displayName: "StyledPaneSplitter",
|
|
267
267
|
componentId: "sc-jylemn-0"
|
|
@@ -324,7 +324,7 @@ const sizeStyles = props => {
|
|
|
324
324
|
};
|
|
325
325
|
const StyledPaneSplitterButton = styled(ChevronButton).attrs({
|
|
326
326
|
'data-garden-id': COMPONENT_ID,
|
|
327
|
-
'data-garden-version': '8.
|
|
327
|
+
'data-garden-version': '8.60.0',
|
|
328
328
|
isBasic: true,
|
|
329
329
|
isPill: true,
|
|
330
330
|
size: 'small'
|
|
@@ -695,6 +695,7 @@ const SplitterComponent = forwardRef((_ref, ref) => {
|
|
|
695
695
|
min,
|
|
696
696
|
max,
|
|
697
697
|
orientation,
|
|
698
|
+
isFixed,
|
|
698
699
|
onMouseDown,
|
|
699
700
|
onTouchStart,
|
|
700
701
|
onKeyDown,
|
|
@@ -721,6 +722,7 @@ const SplitterComponent = forwardRef((_ref, ref) => {
|
|
|
721
722
|
min: min * pixelsPerFr,
|
|
722
723
|
max: max * pixelsPerFr,
|
|
723
724
|
rtl: themeContext.rtl,
|
|
725
|
+
isFixed,
|
|
724
726
|
environment,
|
|
725
727
|
onChange: valueNow => {
|
|
726
728
|
if (isRow) {
|
|
@@ -759,6 +761,7 @@ const SplitterComponent = forwardRef((_ref, ref) => {
|
|
|
759
761
|
}), [orientation, layoutKey, min, max, valueInFr, size, isRow])
|
|
760
762
|
}, React.createElement(StyledPaneSplitter, _extends({
|
|
761
763
|
isHovered: isHovered,
|
|
764
|
+
isFixed: isFixed,
|
|
762
765
|
orientation: orientation
|
|
763
766
|
}, separatorProps, props, {
|
|
764
767
|
onMouseOver: onMouseOver,
|
|
@@ -770,7 +773,8 @@ SplitterComponent.propTypes = {
|
|
|
770
773
|
layoutKey: PropTypes.string.isRequired,
|
|
771
774
|
min: PropTypes.number.isRequired,
|
|
772
775
|
max: PropTypes.number.isRequired,
|
|
773
|
-
orientation: PropTypes.oneOf(ORIENTATION)
|
|
776
|
+
orientation: PropTypes.oneOf(ORIENTATION),
|
|
777
|
+
isFixed: PropTypes.bool
|
|
774
778
|
};
|
|
775
779
|
SplitterComponent.defaultProps = {
|
|
776
780
|
orientation: 'end'
|
|
@@ -205,6 +205,8 @@ export interface ISplitterProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
205
205
|
max: number;
|
|
206
206
|
/** Determines splitter orientation within a pane */
|
|
207
207
|
orientation?: Orientation;
|
|
208
|
+
/** Determines if the splitter only toggles between `min` and `max` */
|
|
209
|
+
isFixed?: boolean;
|
|
208
210
|
}
|
|
209
211
|
export interface ISplitterButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
210
212
|
/** Adjusts the placement of the splitter button. Assumes start when vertical and center when horizontal, by default. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-grid",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.60.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>",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"sideEffects": false,
|
|
22
22
|
"types": "dist/typings/index.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@zendeskgarden/container-splitter": "^2.0.
|
|
24
|
+
"@zendeskgarden/container-splitter": "^2.0.3",
|
|
25
25
|
"@zendeskgarden/container-utilities": "^1.0.0",
|
|
26
|
-
"@zendeskgarden/react-buttons": "^8.
|
|
27
|
-
"@zendeskgarden/react-tooltips": "^8.
|
|
26
|
+
"@zendeskgarden/react-buttons": "^8.60.0",
|
|
27
|
+
"@zendeskgarden/react-tooltips": "^8.60.0",
|
|
28
28
|
"polished": "^4.0.0",
|
|
29
29
|
"prop-types": "^15.5.7",
|
|
30
30
|
"react-merge-refs": "^1.1.0"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"styled-components": "^4.2.0 || ^5.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@zendeskgarden/react-theming": "^8.
|
|
39
|
+
"@zendeskgarden/react-theming": "^8.60.0",
|
|
40
40
|
"use-resize-observer": "9.0.2"
|
|
41
41
|
},
|
|
42
42
|
"keywords": [
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"zendeskgarden:src": "src/index.ts",
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "8adf13e61f58a64a0ba06794c0362f665e846fe9"
|
|
53
53
|
}
|