@zendeskgarden/react-grid 9.4.0 → 9.5.1
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 +3 -3
- package/dist/esm/styled/StyledGrid.js +3 -3
- package/dist/esm/styled/StyledRow.js +3 -3
- package/dist/esm/styled/pane/StyledPane.js +3 -3
- package/dist/esm/styled/pane/StyledPaneContent.js +3 -3
- package/dist/esm/styled/pane/StyledPaneSplitter.js +3 -3
- package/dist/esm/styled/pane/StyledPaneSplitterButton.js +3 -2
- package/dist/esm/styled/pane/StyledPaneSplitterButtonContainer.js +6 -3
- package/dist/index.cjs.js +19 -16
- package/dist/typings/styled/pane/StyledPaneSplitterButtonContainer.d.ts +3 -1
- package/package.json +5 -5
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { math } from 'polished';
|
|
9
|
-
import {
|
|
9
|
+
import { componentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'grid.col';
|
|
12
12
|
const colorStyles = _ref => {
|
|
@@ -76,11 +76,11 @@ const sizeStyles = _ref2 => {
|
|
|
76
76
|
};
|
|
77
77
|
const StyledCol = styled.div.attrs({
|
|
78
78
|
'data-garden-id': COMPONENT_ID,
|
|
79
|
-
'data-garden-version': '9.
|
|
79
|
+
'data-garden-version': '9.5.1'
|
|
80
80
|
}).withConfig({
|
|
81
81
|
displayName: "StyledCol",
|
|
82
82
|
componentId: "sc-inuw62-0"
|
|
83
|
-
})(["box-sizing:border-box;width:100%;", ";", ";", ";", ";", ";", ";", ";", ";", ";"], props => flexStyles(!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), sizeStyles, props => props.$debug && colorStyles(props), props => mediaStyles(props.theme.breakpoints.xs, props.$xs, props.$alignSelfXs, props.$textAlignXs, props.$offsetXs, props.$orderXs, props), props => mediaStyles(props.theme.breakpoints.sm, props.$sm, props.$alignSelfSm, props.$textAlignSm, props.$offsetSm, props.$orderSm, props), props => mediaStyles(props.theme.breakpoints.md, props.$md, props.$alignSelfMd, props.$textAlignMd, props.$offsetMd, props.$orderMd, props), props => mediaStyles(props.theme.breakpoints.lg, props.$lg, props.$alignSelfLg, props.$textAlignLg, props.$offsetLg, props.$orderLg, props), props => mediaStyles(props.theme.breakpoints.xl, props.$xl, props.$alignSelfXl, props.$textAlignXl, props.$offsetXl, props.$orderXl, props),
|
|
83
|
+
})(["box-sizing:border-box;width:100%;", ";", ";", ";", ";", ";", ";", ";", ";", ";"], props => flexStyles(!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), sizeStyles, props => props.$debug && colorStyles(props), props => mediaStyles(props.theme.breakpoints.xs, props.$xs, props.$alignSelfXs, props.$textAlignXs, props.$offsetXs, props.$orderXs, props), props => mediaStyles(props.theme.breakpoints.sm, props.$sm, props.$alignSelfSm, props.$textAlignSm, props.$offsetSm, props.$orderSm, props), props => mediaStyles(props.theme.breakpoints.md, props.$md, props.$alignSelfMd, props.$textAlignMd, props.$offsetMd, props.$orderMd, props), props => mediaStyles(props.theme.breakpoints.lg, props.$lg, props.$alignSelfLg, props.$textAlignLg, props.$offsetLg, props.$orderLg, props), props => mediaStyles(props.theme.breakpoints.xl, props.$xl, props.$alignSelfXl, props.$textAlignXl, props.$offsetXl, props.$orderXl, props), componentStyles);
|
|
84
84
|
StyledCol.defaultProps = {
|
|
85
85
|
$columns: 12,
|
|
86
86
|
theme: DEFAULT_THEME
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { math } from 'polished';
|
|
9
|
-
import {
|
|
9
|
+
import { componentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'grid.grid';
|
|
12
12
|
const colorStyles = _ref => {
|
|
@@ -36,11 +36,11 @@ const sizeStyles = _ref2 => {
|
|
|
36
36
|
};
|
|
37
37
|
const StyledGrid = styled.div.attrs({
|
|
38
38
|
'data-garden-id': COMPONENT_ID,
|
|
39
|
-
'data-garden-version': '9.
|
|
39
|
+
'data-garden-version': '9.5.1'
|
|
40
40
|
}).withConfig({
|
|
41
41
|
displayName: "StyledGrid",
|
|
42
42
|
componentId: "sc-oxgg5i-0"
|
|
43
|
-
})(["direction:", ";margin-right:auto;margin-left:auto;width:100%;box-sizing:border-box;", ";", ";", ";"], props => props.theme.rtl && 'rtl', sizeStyles, colorStyles,
|
|
43
|
+
})(["direction:", ";margin-right:auto;margin-left:auto;width:100%;box-sizing:border-box;", ";", ";", ";"], props => props.theme.rtl && 'rtl', sizeStyles, colorStyles, componentStyles);
|
|
44
44
|
StyledGrid.defaultProps = {
|
|
45
45
|
$gutters: 'md',
|
|
46
46
|
theme: DEFAULT_THEME
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { math } from 'polished';
|
|
9
|
-
import {
|
|
9
|
+
import { componentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'grid.row';
|
|
12
12
|
const colorStyles = _ref => {
|
|
@@ -52,11 +52,11 @@ const sizeStyles = _ref2 => {
|
|
|
52
52
|
};
|
|
53
53
|
const StyledRow = styled.div.attrs({
|
|
54
54
|
'data-garden-id': COMPONENT_ID,
|
|
55
|
-
'data-garden-version': '9.
|
|
55
|
+
'data-garden-version': '9.5.1'
|
|
56
56
|
}).withConfig({
|
|
57
57
|
displayName: "StyledRow",
|
|
58
58
|
componentId: "sc-xjsdg1-0"
|
|
59
|
-
})(["display:flex;box-sizing:border-box;", " ", ";", ";", ";", ";", ";", ";", ";", ";"], props => flexStyles(props.$alignItems, props.$justifyContent, props.$wrapAll), sizeStyles, props => props.$debug && colorStyles(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),
|
|
59
|
+
})(["display:flex;box-sizing:border-box;", " ", ";", ";", ";", ";", ";", ";", ";", ";"], props => flexStyles(props.$alignItems, props.$justifyContent, props.$wrapAll), sizeStyles, props => props.$debug && colorStyles(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), componentStyles);
|
|
60
60
|
StyledRow.defaultProps = {
|
|
61
61
|
$wrapAll: 'wrap',
|
|
62
62
|
theme: DEFAULT_THEME
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
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.
|
|
13
|
+
'data-garden-version': '9.5.1'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledPane",
|
|
16
16
|
componentId: "sc-1ltjst7-0"
|
|
17
|
-
})(["position:relative;min-width:0;min-height:0;", ";"],
|
|
17
|
+
})(["position:relative;min-width:0;min-height:0;", ";"], componentStyles);
|
|
18
18
|
|
|
19
19
|
export { StyledPane };
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
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.
|
|
13
|
+
'data-garden-version': '9.5.1'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledPaneContent",
|
|
16
16
|
componentId: "sc-1b38mbh-0"
|
|
17
|
-
})(["height:100%;overflow:auto;color-scheme:only ", ";&[hidden]{display:none;}", ";"], p => p.theme.colors.base,
|
|
17
|
+
})(["height:100%;overflow:auto;color-scheme:only ", ";&[hidden]{display:none;}", ";"], p => p.theme.colors.base, componentStyles);
|
|
18
18
|
|
|
19
19
|
export { StyledPaneContent };
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { math } from 'polished';
|
|
9
|
-
import { SELECTOR_FOCUS_VISIBLE,
|
|
9
|
+
import { SELECTOR_FOCUS_VISIBLE, componentStyles, getColor, focusStyles } from '@zendeskgarden/react-theming';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'pane.splitter';
|
|
12
12
|
const colorStyles = _ref => {
|
|
@@ -107,10 +107,10 @@ const sizeStyles = _ref2 => {
|
|
|
107
107
|
};
|
|
108
108
|
const StyledPaneSplitter = styled.div.attrs({
|
|
109
109
|
'data-garden-id': COMPONENT_ID,
|
|
110
|
-
'data-garden-version': '9.
|
|
110
|
+
'data-garden-version': '9.5.1'
|
|
111
111
|
}).withConfig({
|
|
112
112
|
displayName: "StyledPaneSplitter",
|
|
113
113
|
componentId: "sc-jylemn-0"
|
|
114
|
-
})(["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, SELECTOR_FOCUS_VISIBLE, colorStyles,
|
|
114
|
+
})(["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, SELECTOR_FOCUS_VISIBLE, colorStyles, componentStyles);
|
|
115
115
|
|
|
116
116
|
export { StyledPaneSplitter };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
8
9
|
import { ChevronButton } from '@zendeskgarden/react-buttons';
|
|
9
10
|
|
|
10
11
|
const getSize = theme => theme.space.base * 6;
|
|
@@ -35,13 +36,13 @@ const transformStyles = _ref2 => {
|
|
|
35
36
|
return css(["& > svg{transform:rotate(", "deg);}"], degrees);
|
|
36
37
|
};
|
|
37
38
|
const StyledPaneSplitterButton = styled(ChevronButton).attrs({
|
|
38
|
-
'data-garden-version': '9.
|
|
39
|
+
'data-garden-version': '9.5.1',
|
|
39
40
|
isBasic: true,
|
|
40
41
|
isPill: true,
|
|
41
42
|
size: 'small'
|
|
42
43
|
}).withConfig({
|
|
43
44
|
displayName: "StyledPaneSplitterButton",
|
|
44
45
|
componentId: "sc-zh032e-0"
|
|
45
|
-
})(["", ";", ";"], sizeStyles, transformStyles);
|
|
46
|
+
})(["", ";", ";", ";"], sizeStyles, transformStyles, componentStyles);
|
|
46
47
|
|
|
47
48
|
export { StyledPaneSplitterButton, getSize };
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { stripUnit, math } from 'polished';
|
|
9
|
-
import {
|
|
9
|
+
import { componentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
10
10
|
import { StyledPaneSplitter } from './StyledPaneSplitter.js';
|
|
11
11
|
import { getSize } from './StyledPaneSplitterButton.js';
|
|
12
12
|
|
|
@@ -117,9 +117,12 @@ const sizeStyles = _ref3 => {
|
|
|
117
117
|
return css(["border-radius:", "px;width:", "px;height:", "px;"], size, size, size);
|
|
118
118
|
};
|
|
119
119
|
const minimumSplitterSize = theme => stripUnit(math(`${theme.shadowWidths.md} * 2 + ${getSize(theme)}`));
|
|
120
|
-
const StyledPaneSplitterButtonContainer = styled.div.
|
|
120
|
+
const StyledPaneSplitterButtonContainer = styled.div.attrs({
|
|
121
|
+
'data-garden-id': COMPONENT_ID,
|
|
122
|
+
'data-garden-version': '9.5.1'
|
|
123
|
+
}).withConfig({
|
|
121
124
|
displayName: "StyledPaneSplitterButtonContainer",
|
|
122
125
|
componentId: "sc-1w84y62-0"
|
|
123
|
-
})(["display:", ";position:absolute;transition:box-shadow 0.1s ease-in-out,opacity 0.25s ease-in-out 0.1s;opacity:0;z-index:2;", ";", ";", ";&:hover,&:focus-within,", ":hover ~ &,", ":focus-visible ~ &{opacity:1;}", ";"], props => props.$splitterSize <= minimumSplitterSize(props.theme) ? 'none' : undefined, positionStyles, sizeStyles, colorStyles, StyledPaneSplitter, StyledPaneSplitter,
|
|
126
|
+
})(["display:", ";position:absolute;transition:box-shadow 0.1s ease-in-out,opacity 0.25s ease-in-out 0.1s;opacity:0;z-index:2;", ";", ";", ";&:hover,&:focus-within,", ":hover ~ &,", ":focus-visible ~ &{opacity:1;}", ";"], props => props.$splitterSize <= minimumSplitterSize(props.theme) ? 'none' : undefined, positionStyles, sizeStyles, colorStyles, StyledPaneSplitter, StyledPaneSplitter, componentStyles);
|
|
124
127
|
|
|
125
128
|
export { StyledPaneSplitterButtonContainer };
|
package/dist/index.cjs.js
CHANGED
|
@@ -102,11 +102,11 @@ const sizeStyles$5 = _ref2 => {
|
|
|
102
102
|
};
|
|
103
103
|
const StyledCol = styled__default.default.div.attrs({
|
|
104
104
|
'data-garden-id': COMPONENT_ID$6,
|
|
105
|
-
'data-garden-version': '9.
|
|
105
|
+
'data-garden-version': '9.5.1'
|
|
106
106
|
}).withConfig({
|
|
107
107
|
displayName: "StyledCol",
|
|
108
108
|
componentId: "sc-inuw62-0"
|
|
109
|
-
})(["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), sizeStyles$5, 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),
|
|
109
|
+
})(["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), sizeStyles$5, 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), reactTheming.componentStyles);
|
|
110
110
|
StyledCol.defaultProps = {
|
|
111
111
|
$columns: 12,
|
|
112
112
|
theme: reactTheming.DEFAULT_THEME
|
|
@@ -140,11 +140,11 @@ const sizeStyles$4 = _ref2 => {
|
|
|
140
140
|
};
|
|
141
141
|
const StyledGrid = styled__default.default.div.attrs({
|
|
142
142
|
'data-garden-id': COMPONENT_ID$5,
|
|
143
|
-
'data-garden-version': '9.
|
|
143
|
+
'data-garden-version': '9.5.1'
|
|
144
144
|
}).withConfig({
|
|
145
145
|
displayName: "StyledGrid",
|
|
146
146
|
componentId: "sc-oxgg5i-0"
|
|
147
|
-
})(["direction:", ";margin-right:auto;margin-left:auto;width:100%;box-sizing:border-box;", ";", ";", ";"], props => props.theme.rtl && 'rtl', sizeStyles$4, colorStyles$3,
|
|
147
|
+
})(["direction:", ";margin-right:auto;margin-left:auto;width:100%;box-sizing:border-box;", ";", ";", ";"], props => props.theme.rtl && 'rtl', sizeStyles$4, colorStyles$3, reactTheming.componentStyles);
|
|
148
148
|
StyledGrid.defaultProps = {
|
|
149
149
|
$gutters: 'md',
|
|
150
150
|
theme: reactTheming.DEFAULT_THEME
|
|
@@ -194,11 +194,11 @@ const sizeStyles$3 = _ref2 => {
|
|
|
194
194
|
};
|
|
195
195
|
const StyledRow = styled__default.default.div.attrs({
|
|
196
196
|
'data-garden-id': COMPONENT_ID$4,
|
|
197
|
-
'data-garden-version': '9.
|
|
197
|
+
'data-garden-version': '9.5.1'
|
|
198
198
|
}).withConfig({
|
|
199
199
|
displayName: "StyledRow",
|
|
200
200
|
componentId: "sc-xjsdg1-0"
|
|
201
|
-
})(["display:flex;box-sizing:border-box;", " ", ";", ";", ";", ";", ";", ";", ";", ";"], props => flexStyles(props.$alignItems, props.$justifyContent, props.$wrapAll), sizeStyles$3, 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),
|
|
201
|
+
})(["display:flex;box-sizing:border-box;", " ", ";", ";", ";", ";", ";", ";", ";", ";"], props => flexStyles(props.$alignItems, props.$justifyContent, props.$wrapAll), sizeStyles$3, 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), reactTheming.componentStyles);
|
|
202
202
|
StyledRow.defaultProps = {
|
|
203
203
|
$wrapAll: 'wrap',
|
|
204
204
|
theme: reactTheming.DEFAULT_THEME
|
|
@@ -207,20 +207,20 @@ StyledRow.defaultProps = {
|
|
|
207
207
|
const COMPONENT_ID$3 = 'pane';
|
|
208
208
|
const StyledPane = styled__default.default.div.attrs({
|
|
209
209
|
'data-garden-id': COMPONENT_ID$3,
|
|
210
|
-
'data-garden-version': '9.
|
|
210
|
+
'data-garden-version': '9.5.1'
|
|
211
211
|
}).withConfig({
|
|
212
212
|
displayName: "StyledPane",
|
|
213
213
|
componentId: "sc-1ltjst7-0"
|
|
214
|
-
})(["position:relative;min-width:0;min-height:0;", ";"],
|
|
214
|
+
})(["position:relative;min-width:0;min-height:0;", ";"], reactTheming.componentStyles);
|
|
215
215
|
|
|
216
216
|
const COMPONENT_ID$2 = 'pane.content';
|
|
217
217
|
const StyledPaneContent = styled__default.default.div.attrs({
|
|
218
218
|
'data-garden-id': COMPONENT_ID$2,
|
|
219
|
-
'data-garden-version': '9.
|
|
219
|
+
'data-garden-version': '9.5.1'
|
|
220
220
|
}).withConfig({
|
|
221
221
|
displayName: "StyledPaneContent",
|
|
222
222
|
componentId: "sc-1b38mbh-0"
|
|
223
|
-
})(["height:100%;overflow:auto;color-scheme:only ", ";&[hidden]{display:none;}", ";"], p => p.theme.colors.base,
|
|
223
|
+
})(["height:100%;overflow:auto;color-scheme:only ", ";&[hidden]{display:none;}", ";"], p => p.theme.colors.base, reactTheming.componentStyles);
|
|
224
224
|
|
|
225
225
|
const COMPONENT_ID$1 = 'pane.splitter';
|
|
226
226
|
const colorStyles$1 = _ref => {
|
|
@@ -321,11 +321,11 @@ const sizeStyles$2 = _ref2 => {
|
|
|
321
321
|
};
|
|
322
322
|
const StyledPaneSplitter = styled__default.default.div.attrs({
|
|
323
323
|
'data-garden-id': COMPONENT_ID$1,
|
|
324
|
-
'data-garden-version': '9.
|
|
324
|
+
'data-garden-version': '9.5.1'
|
|
325
325
|
}).withConfig({
|
|
326
326
|
displayName: "StyledPaneSplitter",
|
|
327
327
|
componentId: "sc-jylemn-0"
|
|
328
|
-
})(["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,
|
|
328
|
+
})(["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, reactTheming.componentStyles);
|
|
329
329
|
|
|
330
330
|
const getSize = theme => theme.space.base * 6;
|
|
331
331
|
const sizeStyles$1 = _ref => {
|
|
@@ -355,14 +355,14 @@ const transformStyles = _ref2 => {
|
|
|
355
355
|
return styled.css(["& > svg{transform:rotate(", "deg);}"], degrees);
|
|
356
356
|
};
|
|
357
357
|
const StyledPaneSplitterButton = styled__default.default(reactButtons.ChevronButton).attrs({
|
|
358
|
-
'data-garden-version': '9.
|
|
358
|
+
'data-garden-version': '9.5.1',
|
|
359
359
|
isBasic: true,
|
|
360
360
|
isPill: true,
|
|
361
361
|
size: 'small'
|
|
362
362
|
}).withConfig({
|
|
363
363
|
displayName: "StyledPaneSplitterButton",
|
|
364
364
|
componentId: "sc-zh032e-0"
|
|
365
|
-
})(["", ";", ";"], sizeStyles$1, transformStyles);
|
|
365
|
+
})(["", ";", ";", ";"], sizeStyles$1, transformStyles, reactTheming.componentStyles);
|
|
366
366
|
|
|
367
367
|
const COMPONENT_ID = 'pane.splitter_button_container';
|
|
368
368
|
const colorStyles = _ref => {
|
|
@@ -471,10 +471,13 @@ const sizeStyles = _ref3 => {
|
|
|
471
471
|
return styled.css(["border-radius:", "px;width:", "px;height:", "px;"], size, size, size);
|
|
472
472
|
};
|
|
473
473
|
const minimumSplitterSize = theme => polished.stripUnit(polished.math(`${theme.shadowWidths.md} * 2 + ${getSize(theme)}`));
|
|
474
|
-
const StyledPaneSplitterButtonContainer = styled__default.default.div.
|
|
474
|
+
const StyledPaneSplitterButtonContainer = styled__default.default.div.attrs({
|
|
475
|
+
'data-garden-id': COMPONENT_ID,
|
|
476
|
+
'data-garden-version': '9.5.1'
|
|
477
|
+
}).withConfig({
|
|
475
478
|
displayName: "StyledPaneSplitterButtonContainer",
|
|
476
479
|
componentId: "sc-1w84y62-0"
|
|
477
|
-
})(["display:", ";position:absolute;transition:box-shadow 0.1s ease-in-out,opacity 0.25s ease-in-out 0.1s;opacity:0;z-index:2;", ";", ";", ";&:hover,&:focus-within,", ":hover ~ &,", ":focus-visible ~ &{opacity:1;}", ";"], props => props.$splitterSize <= minimumSplitterSize(props.theme) ? 'none' : undefined, positionStyles, sizeStyles, colorStyles, StyledPaneSplitter, StyledPaneSplitter,
|
|
480
|
+
})(["display:", ";position:absolute;transition:box-shadow 0.1s ease-in-out,opacity 0.25s ease-in-out 0.1s;opacity:0;z-index:2;", ";", ";", ";&:hover,&:focus-within,", ":hover ~ &,", ":focus-visible ~ &{opacity:1;}", ";"], props => props.$splitterSize <= minimumSplitterSize(props.theme) ? 'none' : undefined, positionStyles, sizeStyles, colorStyles, StyledPaneSplitter, StyledPaneSplitter, reactTheming.componentStyles);
|
|
478
481
|
|
|
479
482
|
const GridContext = React.createContext({
|
|
480
483
|
gutters: 'md'
|
|
@@ -13,5 +13,7 @@ interface IStyledSplitterButtonContainerProps {
|
|
|
13
13
|
/**
|
|
14
14
|
* 1. Match focused `Splitter` z-index
|
|
15
15
|
*/
|
|
16
|
-
export declare const StyledPaneSplitterButtonContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
16
|
+
export declare const StyledPaneSplitterButtonContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
17
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
18
|
+
}>, never>, IStyledSplitterButtonContainerProps>> & string;
|
|
17
19
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-grid",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.5.1",
|
|
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.17",
|
|
25
25
|
"@zendeskgarden/container-utilities": "^2.0.0",
|
|
26
|
-
"@zendeskgarden/react-buttons": "^9.
|
|
27
|
-
"@zendeskgarden/react-tooltips": "^9.
|
|
26
|
+
"@zendeskgarden/react-buttons": "^9.5.1",
|
|
27
|
+
"@zendeskgarden/react-tooltips": "^9.5.1",
|
|
28
28
|
"polished": "^4.3.1",
|
|
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 || ^6.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@zendeskgarden/react-theming": "^9.
|
|
40
|
+
"@zendeskgarden/react-theming": "^9.5.1"
|
|
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": "2571d0225b784bb7c765316ed584d289d35d4605"
|
|
53
53
|
}
|