@zendeskgarden/react-grid 9.0.0-next.13 → 9.0.0-next.14

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/LICENSE.md ADDED
@@ -0,0 +1,176 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
@@ -6,11 +6,23 @@
6
6
  */
7
7
  import styled, { css } from 'styled-components';
8
8
  import { math } from 'polished';
9
- import { retrieveComponentStyles, DEFAULT_THEME, getColorV8 } from '@zendeskgarden/react-theming';
9
+ import { retrieveComponentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming';
10
10
 
11
11
  const COMPONENT_ID = 'grid.col';
12
- const colorStyles = props => {
13
- const backgroundColor = getColorV8('primaryHue', 600, props.theme, 0.1);
12
+ const colorStyles = _ref => {
13
+ let {
14
+ theme
15
+ } = _ref;
16
+ const backgroundColor = getColor({
17
+ theme,
18
+ variable: 'background.primaryEmphasis',
19
+ dark: {
20
+ transparency: theme.opacity[200]
21
+ },
22
+ light: {
23
+ transparency: theme.opacity[100]
24
+ }
25
+ });
14
26
  return css(["background-clip:content-box;background-color:", ";"], backgroundColor);
15
27
  };
16
28
  const flexStyles = (size, alignSelf, textAlign, offset, order, props) => {
@@ -54,17 +66,21 @@ const flexStyles = (size, alignSelf, textAlign, offset, order, props) => {
54
66
  const mediaStyles = (minWidth, size, alignSelf, textAlign, offset, order, props) => {
55
67
  return css(["@media (min-width:", "){", ";}"], minWidth, flexStyles(size, alignSelf, textAlign, offset, order, props));
56
68
  };
57
- const sizeStyles = props => {
58
- const padding = props.gutters ? math(`${props.theme.space[props.gutters]} / 2`) : 0;
69
+ const sizeStyles = _ref2 => {
70
+ let {
71
+ theme,
72
+ gutters
73
+ } = _ref2;
74
+ const padding = gutters ? math(`${theme.space[gutters]} / 2`) : 0;
59
75
  return css(["padding-right:", ";padding-left:", ";"], padding, padding);
60
76
  };
61
77
  const StyledCol = styled.div.attrs({
62
78
  'data-garden-id': COMPONENT_ID,
63
- 'data-garden-version': '9.0.0-next.13'
79
+ 'data-garden-version': '9.0.0-next.14'
64
80
  }).withConfig({
65
81
  displayName: "StyledCol",
66
82
  componentId: "sc-inuw62-0"
67
- })(["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), props => sizeStyles(props), 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), props => retrieveComponentStyles(COMPONENT_ID, 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), props => retrieveComponentStyles(COMPONENT_ID, props));
68
84
  StyledCol.defaultProps = {
69
85
  columns: 12,
70
86
  theme: DEFAULT_THEME
@@ -6,25 +6,37 @@
6
6
  */
7
7
  import styled, { css } from 'styled-components';
8
8
  import { math } from 'polished';
9
- import { retrieveComponentStyles, DEFAULT_THEME, getColorV8 } from '@zendeskgarden/react-theming';
9
+ import { retrieveComponentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming';
10
10
 
11
11
  const COMPONENT_ID = 'grid.grid';
12
- const colorStyles = props => {
13
- const borderColor = getColorV8(props.theme.palette.crimson, 400, props.theme, 0.5);
14
- const borderWidth = math(`${props.theme.borderWidths.sm} * 2`);
12
+ const colorStyles = _ref => {
13
+ let {
14
+ theme
15
+ } = _ref;
16
+ const borderColor = getColor({
17
+ theme,
18
+ hue: 'crimson',
19
+ shade: 700,
20
+ transparency: theme.opacity[600]
21
+ });
22
+ const borderWidth = math(`${theme.borderWidths.sm} * 2`);
15
23
  return css(["box-shadow:-", " 0 0 0 ", ",", " 0 0 0 ", ";"], borderWidth, borderColor, borderWidth, borderColor);
16
24
  };
17
- const sizeStyles = props => {
18
- const padding = props.gutters ? math(`${props.theme.space[props.gutters]} / 2`) : 0;
25
+ const sizeStyles = _ref2 => {
26
+ let {
27
+ theme,
28
+ gutters
29
+ } = _ref2;
30
+ const padding = gutters ? math(`${theme.space[gutters]} / 2`) : 0;
19
31
  return css(["padding-right:", ";padding-left:", ";"], padding, padding);
20
32
  };
21
33
  const StyledGrid = styled.div.attrs({
22
34
  'data-garden-id': COMPONENT_ID,
23
- 'data-garden-version': '9.0.0-next.13'
35
+ 'data-garden-version': '9.0.0-next.14'
24
36
  }).withConfig({
25
37
  displayName: "StyledGrid",
26
38
  componentId: "sc-oxgg5i-0"
27
- })(["direction:", ";margin-right:auto;margin-left:auto;width:100%;box-sizing:border-box;", ";", ";", ";"], props => props.theme.rtl && 'rtl', props => sizeStyles(props), props => props.debug && colorStyles(props), props => retrieveComponentStyles(COMPONENT_ID, props));
39
+ })(["direction:", ";margin-right:auto;margin-left:auto;width:100%;box-sizing:border-box;", ";", ";", ";"], props => props.theme.rtl && 'rtl', sizeStyles, props => props.debug && colorStyles(props), props => retrieveComponentStyles(COMPONENT_ID, props));
28
40
  StyledGrid.defaultProps = {
29
41
  gutters: 'md',
30
42
  theme: DEFAULT_THEME
@@ -6,12 +6,20 @@
6
6
  */
7
7
  import styled, { css } from 'styled-components';
8
8
  import { math } from 'polished';
9
- import { retrieveComponentStyles, DEFAULT_THEME, getColorV8 } from '@zendeskgarden/react-theming';
9
+ import { retrieveComponentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming';
10
10
 
11
11
  const COMPONENT_ID = 'grid.row';
12
- const colorStyles = props => {
13
- const borderColor = getColorV8(props.theme.palette.mint, 600, props.theme, 0.5);
14
- const borderWidth = props.theme.borderWidths.sm;
12
+ const colorStyles = _ref => {
13
+ let {
14
+ theme
15
+ } = _ref;
16
+ const borderColor = getColor({
17
+ theme,
18
+ hue: 'mint',
19
+ shade: 700,
20
+ transparency: theme.opacity[600]
21
+ });
22
+ const borderWidth = theme.borderWidths.sm;
15
23
  return css(["box-shadow:inset 0 ", " 0 0 ", ",inset 0 -", " 0 0 ", ";"], borderWidth, borderColor, borderWidth, borderColor);
16
24
  };
17
25
  const flexStyles = (alignItems, justifyContent, wrap) => {
@@ -34,17 +42,21 @@ const flexStyles = (alignItems, justifyContent, wrap) => {
34
42
  const mediaStyles = (minWidth, alignItems, justifyContent, wrap) => {
35
43
  return css(["@media (min-width:", "){", ";}"], minWidth, flexStyles(alignItems, justifyContent, wrap));
36
44
  };
37
- const sizeStyles = props => {
38
- const margin = props.gutters ? math(`${props.theme.space[props.gutters]} / 2`) : 0;
45
+ const sizeStyles = _ref2 => {
46
+ let {
47
+ theme,
48
+ gutters
49
+ } = _ref2;
50
+ const margin = gutters ? math(`${theme.space[gutters]} / 2`) : 0;
39
51
  return css(["margin-right:-", ";margin-left:-", ";"], margin, margin);
40
52
  };
41
53
  const StyledRow = styled.div.attrs({
42
54
  'data-garden-id': COMPONENT_ID,
43
- 'data-garden-version': '9.0.0-next.13'
55
+ 'data-garden-version': '9.0.0-next.14'
44
56
  }).withConfig({
45
57
  displayName: "StyledRow",
46
58
  componentId: "sc-xjsdg1-0"
47
- })(["display:flex;box-sizing:border-box;", " ", ";", ";", ";", ";", ";", ";", ";", ";"], props => flexStyles(props.alignItems, props.justifyContent, props.wrapAll), props => sizeStyles(props), 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), props => retrieveComponentStyles(COMPONENT_ID, props));
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), props => retrieveComponentStyles(COMPONENT_ID, props));
48
60
  StyledRow.defaultProps = {
49
61
  wrapAll: 'wrap',
50
62
  theme: DEFAULT_THEME
@@ -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'
13
+ 'data-garden-version': '9.0.0-next.14'
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'
13
+ 'data-garden-version': '9.0.0-next.14'
14
14
  }).withConfig({
15
15
  displayName: "StyledPaneContent",
16
16
  componentId: "sc-1b38mbh-0"
@@ -6,27 +6,47 @@
6
6
  */
7
7
  import styled, { css } from 'styled-components';
8
8
  import { math } from 'polished';
9
- import { SELECTOR_FOCUS_VISIBLE, retrieveComponentStyles, DEFAULT_THEME, getColorV8, focusStyles } from '@zendeskgarden/react-theming';
9
+ import { SELECTOR_FOCUS_VISIBLE, retrieveComponentStyles, DEFAULT_THEME, getColor, focusStyles } from '@zendeskgarden/react-theming';
10
10
 
11
11
  const COMPONENT_ID = 'pane.splitter';
12
- const colorStyles = props => {
13
- const color = getColorV8('neutralHue', 300, props.theme);
14
- const hoverColor = getColorV8('primaryHue', 600, props.theme);
15
- const activeColor = getColorV8('primaryHue', 800, props.theme);
16
- return css(["&::before{background-color:", ";}&:hover::before{background-color:", ";}", " &:active::before{background-color:", ";}"], color, hoverColor, focusStyles({
17
- theme: props.theme,
18
- color: {
19
- hue: hoverColor
12
+ const colorStyles = _ref => {
13
+ let {
14
+ theme
15
+ } = _ref;
16
+ const color = getColor({
17
+ theme,
18
+ variable: 'border.default'
19
+ });
20
+ const options = {
21
+ theme,
22
+ variable: 'border.primaryEmphasis'
23
+ };
24
+ const hoverColor = getColor(options);
25
+ const activeColor = getColor({
26
+ ...options,
27
+ dark: {
28
+ offset: -200
20
29
  },
30
+ light: {
31
+ offset: 200
32
+ }
33
+ });
34
+ return css(["&::before{background-color:", ";}&:hover::before{background-color:", ";}", " &:active::before{background-color:", ";}"], color, hoverColor, focusStyles({
35
+ theme,
21
36
  styles: {
22
37
  backgroundColor: hoverColor
23
38
  },
24
39
  selector: '&:focus-visible::before'
25
40
  }), activeColor);
26
41
  };
27
- const sizeStyles = props => {
28
- const size = math(`${props.theme.shadowWidths.md} * 2`);
29
- const separatorSize = math(`${props.theme.borderWidths.sm} * 2`);
42
+ const sizeStyles = _ref2 => {
43
+ let {
44
+ theme,
45
+ orientation,
46
+ isFixed
47
+ } = _ref2;
48
+ const size = math(`${theme.shadowWidths.md} * 2`);
49
+ const separatorSize = math(`${theme.borderWidths.sm} * 2`);
30
50
  const offset = math(`-${size} / 2`);
31
51
  let cursor;
32
52
  let top;
@@ -37,14 +57,14 @@ const sizeStyles = props => {
37
57
  let height;
38
58
  let separatorWidth;
39
59
  let separatorHeight;
40
- switch (props.orientation) {
60
+ switch (orientation) {
41
61
  case 'top':
42
62
  cursor = 'row-resize';
43
63
  top = offset;
44
64
  width = '100%';
45
65
  height = size;
46
66
  separatorWidth = width;
47
- separatorHeight = props.theme.borderWidths.sm;
67
+ separatorHeight = theme.borderWidths.sm;
48
68
  break;
49
69
  case 'bottom':
50
70
  cursor = 'row-resize';
@@ -52,16 +72,16 @@ const sizeStyles = props => {
52
72
  width = '100%';
53
73
  height = size;
54
74
  separatorWidth = width;
55
- separatorHeight = props.theme.borderWidths.sm;
75
+ separatorHeight = theme.borderWidths.sm;
56
76
  break;
57
77
  case 'start':
58
78
  cursor = 'col-resize';
59
79
  top = 0;
60
80
  width = size;
61
81
  height = '100%';
62
- separatorWidth = props.theme.borderWidths.sm;
82
+ separatorWidth = theme.borderWidths.sm;
63
83
  separatorHeight = height;
64
- if (props.theme.rtl) {
84
+ if (theme.rtl) {
65
85
  right = offset;
66
86
  } else {
67
87
  left = offset;
@@ -73,9 +93,9 @@ const sizeStyles = props => {
73
93
  top = 0;
74
94
  width = size;
75
95
  height = '100%';
76
- separatorWidth = props.theme.borderWidths.sm;
96
+ separatorWidth = theme.borderWidths.sm;
77
97
  separatorHeight = height;
78
- if (props.theme.rtl) {
98
+ if (theme.rtl) {
79
99
  left = offset;
80
100
  } else {
81
101
  right = offset;
@@ -83,11 +103,11 @@ const sizeStyles = props => {
83
103
  break;
84
104
  }
85
105
  const dimensionProperty = width === '100%' ? 'height' : 'width';
86
- return 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);
106
+ return 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, isFixed ? 'pointer' : cursor, width, height, separatorWidth, separatorHeight, dimensionProperty, separatorSize, dimensionProperty, separatorSize, theme.borderRadii.md);
87
107
  };
88
108
  const StyledPaneSplitter = styled.div.attrs({
89
109
  'data-garden-id': COMPONENT_ID,
90
- 'data-garden-version': '9.0.0-next.13'
110
+ 'data-garden-version': '9.0.0-next.14'
91
111
  }).withConfig({
92
112
  displayName: "StyledPaneSplitter",
93
113
  componentId: "sc-jylemn-0"
@@ -31,7 +31,7 @@ const transformStyles = props => {
31
31
  return css(["& > svg{transform:rotate(", "deg);}"], degrees);
32
32
  };
33
33
  const StyledPaneSplitterButton = styled(ChevronButton).attrs({
34
- 'data-garden-version': '9.0.0-next.13',
34
+ 'data-garden-version': '9.0.0-next.14',
35
35
  isBasic: true,
36
36
  isPill: true,
37
37
  size: 'small'
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import styled, { css } from 'styled-components';
8
8
  import { stripUnit, math } from 'polished';
9
- import { retrieveComponentStyles, DEFAULT_THEME, getColorV8 } from '@zendeskgarden/react-theming';
9
+ import { retrieveComponentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming';
10
10
  import { StyledPaneSplitter } from './StyledPaneSplitter.js';
11
11
  import { getSize } from './StyledPaneSplitterButton.js';
12
12
 
@@ -15,20 +15,39 @@ const colorStyles = _ref => {
15
15
  let {
16
16
  theme
17
17
  } = _ref;
18
- const backgroundColor = getColorV8('background', 600 , theme);
19
- const boxShadow = theme.shadows.lg(`${theme.space.base}px`, `${theme.space.base * 2}px`, getColorV8('chromeHue', 600, theme, 0.15));
18
+ const backgroundColor = getColor({
19
+ theme,
20
+ variable: 'background.raised'
21
+ });
22
+ const boxShadow = theme.shadows.lg(`${theme.space.base}px`, `${theme.space.base * 2}px`, getColor({
23
+ theme,
24
+ hue: 'neutralHue',
25
+ shade: 1200,
26
+ dark: {
27
+ transparency: theme.opacity[1100]
28
+ },
29
+ light: {
30
+ transparency: theme.opacity[200]
31
+ }
32
+ }));
20
33
  return css(["box-shadow:", ";background-color:", ";"], boxShadow, backgroundColor);
21
34
  };
22
- const positionStyles = props => {
35
+ const positionStyles = _ref2 => {
36
+ let {
37
+ theme,
38
+ placement,
39
+ splitterSize,
40
+ orientation
41
+ } = _ref2;
23
42
  let top;
24
43
  let left;
25
44
  let right;
26
45
  let bottom;
27
- const size = getSize(props.theme);
46
+ const size = getSize(theme);
28
47
  const inset = `-${size / 2}px`;
29
- if (props.placement === 'center' || props.splitterSize < size * 3) {
30
- const center = `${props.splitterSize / 2 - size / 2}px`;
31
- switch (`${props.orientation}-${props.theme.rtl ? 'rtl' : 'ltr'}`) {
48
+ if (placement === 'center' || splitterSize < size * 3) {
49
+ const center = `${splitterSize / 2 - size / 2}px`;
50
+ switch (`${orientation}-${theme.rtl ? 'rtl' : 'ltr'}`) {
32
51
  case 'top-ltr':
33
52
  case 'top-rtl':
34
53
  top = inset;
@@ -52,7 +71,7 @@ const positionStyles = props => {
52
71
  }
53
72
  } else {
54
73
  const offset = `${size}px`;
55
- switch (`${props.orientation}-${props.placement}-${props.theme.rtl ? 'rtl' : 'ltr'}`) {
74
+ switch (`${orientation}-${placement}-${theme.rtl ? 'rtl' : 'ltr'}`) {
56
75
  case 'top-end-ltr':
57
76
  case 'top-end-rtl':
58
77
  case 'top-start-rtl':
@@ -97,10 +116,10 @@ const positionStyles = props => {
97
116
  }
98
117
  return css(["top:", ";right:", ";bottom:", ";left:", ";"], top, right, bottom, left);
99
118
  };
100
- const sizeStyles = _ref2 => {
119
+ const sizeStyles = _ref3 => {
101
120
  let {
102
121
  theme
103
- } = _ref2;
122
+ } = _ref3;
104
123
  const size = getSize(theme);
105
124
  return css(["border-radius:", "px;width:", "px;height:", "px;"], size, size, size);
106
125
  };
package/dist/index.cjs.js CHANGED
@@ -35,8 +35,20 @@ const WRAP = ['nowrap', 'wrap', 'wrap-reverse'];
35
35
  const ORIENTATION = ['top', 'bottom', 'start', 'end'];
36
36
 
37
37
  const COMPONENT_ID$6 = 'grid.col';
38
- const colorStyles$4 = props => {
39
- const backgroundColor = reactTheming.getColorV8('primaryHue', 600, props.theme, 0.1);
38
+ const colorStyles$4 = _ref => {
39
+ let {
40
+ theme
41
+ } = _ref;
42
+ const backgroundColor = reactTheming.getColor({
43
+ theme,
44
+ variable: 'background.primaryEmphasis',
45
+ dark: {
46
+ transparency: theme.opacity[200]
47
+ },
48
+ light: {
49
+ transparency: theme.opacity[100]
50
+ }
51
+ });
40
52
  return styled.css(["background-clip:content-box;background-color:", ";"], backgroundColor);
41
53
  };
42
54
  const flexStyles$1 = (size, alignSelf, textAlign, offset, order, props) => {
@@ -80,48 +92,72 @@ const flexStyles$1 = (size, alignSelf, textAlign, offset, order, props) => {
80
92
  const mediaStyles$1 = (minWidth, size, alignSelf, textAlign, offset, order, props) => {
81
93
  return styled.css(["@media (min-width:", "){", ";}"], minWidth, flexStyles$1(size, alignSelf, textAlign, offset, order, props));
82
94
  };
83
- const sizeStyles$5 = props => {
84
- const padding = props.gutters ? polished.math(`${props.theme.space[props.gutters]} / 2`) : 0;
95
+ const sizeStyles$5 = _ref2 => {
96
+ let {
97
+ theme,
98
+ gutters
99
+ } = _ref2;
100
+ const padding = gutters ? polished.math(`${theme.space[gutters]} / 2`) : 0;
85
101
  return styled.css(["padding-right:", ";padding-left:", ";"], padding, padding);
86
102
  };
87
103
  const StyledCol = styled__default.default.div.attrs({
88
104
  'data-garden-id': COMPONENT_ID$6,
89
- 'data-garden-version': '9.0.0-next.13'
105
+ 'data-garden-version': '9.0.0-next.14'
90
106
  }).withConfig({
91
107
  displayName: "StyledCol",
92
108
  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$6, 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), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$6, props));
94
110
  StyledCol.defaultProps = {
95
111
  columns: 12,
96
112
  theme: reactTheming.DEFAULT_THEME
97
113
  };
98
114
 
99
115
  const COMPONENT_ID$5 = 'grid.grid';
100
- const colorStyles$3 = props => {
101
- const borderColor = reactTheming.getColorV8(props.theme.palette.crimson, 400, props.theme, 0.5);
102
- const borderWidth = polished.math(`${props.theme.borderWidths.sm} * 2`);
116
+ const colorStyles$3 = _ref => {
117
+ let {
118
+ theme
119
+ } = _ref;
120
+ const borderColor = reactTheming.getColor({
121
+ theme,
122
+ hue: 'crimson',
123
+ shade: 700,
124
+ transparency: theme.opacity[600]
125
+ });
126
+ const borderWidth = polished.math(`${theme.borderWidths.sm} * 2`);
103
127
  return styled.css(["box-shadow:-", " 0 0 0 ", ",", " 0 0 0 ", ";"], borderWidth, borderColor, borderWidth, borderColor);
104
128
  };
105
- const sizeStyles$4 = props => {
106
- const padding = props.gutters ? polished.math(`${props.theme.space[props.gutters]} / 2`) : 0;
129
+ const sizeStyles$4 = _ref2 => {
130
+ let {
131
+ theme,
132
+ gutters
133
+ } = _ref2;
134
+ const padding = gutters ? polished.math(`${theme.space[gutters]} / 2`) : 0;
107
135
  return styled.css(["padding-right:", ";padding-left:", ";"], padding, padding);
108
136
  };
109
137
  const StyledGrid = styled__default.default.div.attrs({
110
138
  'data-garden-id': COMPONENT_ID$5,
111
- 'data-garden-version': '9.0.0-next.13'
139
+ 'data-garden-version': '9.0.0-next.14'
112
140
  }).withConfig({
113
141
  displayName: "StyledGrid",
114
142
  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$5, props));
143
+ })(["direction:", ";margin-right:auto;margin-left:auto;width:100%;box-sizing:border-box;", ";", ";", ";"], props => props.theme.rtl && 'rtl', sizeStyles$4, props => props.debug && colorStyles$3(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$5, props));
116
144
  StyledGrid.defaultProps = {
117
145
  gutters: 'md',
118
146
  theme: reactTheming.DEFAULT_THEME
119
147
  };
120
148
 
121
149
  const COMPONENT_ID$4 = 'grid.row';
122
- const colorStyles$2 = props => {
123
- const borderColor = reactTheming.getColorV8(props.theme.palette.mint, 600, props.theme, 0.5);
124
- const borderWidth = props.theme.borderWidths.sm;
150
+ const colorStyles$2 = _ref => {
151
+ let {
152
+ theme
153
+ } = _ref;
154
+ const borderColor = reactTheming.getColor({
155
+ theme,
156
+ hue: 'mint',
157
+ shade: 700,
158
+ transparency: theme.opacity[600]
159
+ });
160
+ const borderWidth = theme.borderWidths.sm;
125
161
  return styled.css(["box-shadow:inset 0 ", " 0 0 ", ",inset 0 -", " 0 0 ", ";"], borderWidth, borderColor, borderWidth, borderColor);
126
162
  };
127
163
  const flexStyles = (alignItems, justifyContent, wrap) => {
@@ -144,17 +180,21 @@ const flexStyles = (alignItems, justifyContent, wrap) => {
144
180
  const mediaStyles = (minWidth, alignItems, justifyContent, wrap) => {
145
181
  return styled.css(["@media (min-width:", "){", ";}"], minWidth, flexStyles(alignItems, justifyContent, wrap));
146
182
  };
147
- const sizeStyles$3 = props => {
148
- const margin = props.gutters ? polished.math(`${props.theme.space[props.gutters]} / 2`) : 0;
183
+ const sizeStyles$3 = _ref2 => {
184
+ let {
185
+ theme,
186
+ gutters
187
+ } = _ref2;
188
+ const margin = gutters ? polished.math(`${theme.space[gutters]} / 2`) : 0;
149
189
  return styled.css(["margin-right:-", ";margin-left:-", ";"], margin, margin);
150
190
  };
151
191
  const StyledRow = styled__default.default.div.attrs({
152
192
  'data-garden-id': COMPONENT_ID$4,
153
- 'data-garden-version': '9.0.0-next.13'
193
+ 'data-garden-version': '9.0.0-next.14'
154
194
  }).withConfig({
155
195
  displayName: "StyledRow",
156
196
  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$4, props));
197
+ })(["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), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$4, props));
158
198
  StyledRow.defaultProps = {
159
199
  wrapAll: 'wrap',
160
200
  theme: reactTheming.DEFAULT_THEME
@@ -163,7 +203,7 @@ StyledRow.defaultProps = {
163
203
  const COMPONENT_ID$3 = 'pane';
164
204
  const StyledPane = styled__default.default.div.attrs({
165
205
  'data-garden-id': COMPONENT_ID$3,
166
- 'data-garden-version': '9.0.0-next.13'
206
+ 'data-garden-version': '9.0.0-next.14'
167
207
  }).withConfig({
168
208
  displayName: "StyledPane",
169
209
  componentId: "sc-1ltjst7-0"
@@ -175,7 +215,7 @@ StyledPane.defaultProps = {
175
215
  const COMPONENT_ID$2 = 'pane.content';
176
216
  const StyledPaneContent = styled__default.default.div.attrs({
177
217
  'data-garden-id': COMPONENT_ID$2,
178
- 'data-garden-version': '9.0.0-next.13'
218
+ 'data-garden-version': '9.0.0-next.14'
179
219
  }).withConfig({
180
220
  displayName: "StyledPaneContent",
181
221
  componentId: "sc-1b38mbh-0"
@@ -185,24 +225,44 @@ StyledPaneContent.defaultProps = {
185
225
  };
186
226
 
187
227
  const COMPONENT_ID$1 = 'pane.splitter';
188
- const colorStyles$1 = props => {
189
- const color = reactTheming.getColorV8('neutralHue', 300, props.theme);
190
- const hoverColor = reactTheming.getColorV8('primaryHue', 600, props.theme);
191
- const activeColor = reactTheming.getColorV8('primaryHue', 800, props.theme);
192
- return styled.css(["&::before{background-color:", ";}&:hover::before{background-color:", ";}", " &:active::before{background-color:", ";}"], color, hoverColor, reactTheming.focusStyles({
193
- theme: props.theme,
194
- color: {
195
- hue: hoverColor
228
+ const colorStyles$1 = _ref => {
229
+ let {
230
+ theme
231
+ } = _ref;
232
+ const color = reactTheming.getColor({
233
+ theme,
234
+ variable: 'border.default'
235
+ });
236
+ const options = {
237
+ theme,
238
+ variable: 'border.primaryEmphasis'
239
+ };
240
+ const hoverColor = reactTheming.getColor(options);
241
+ const activeColor = reactTheming.getColor({
242
+ ...options,
243
+ dark: {
244
+ offset: -200
196
245
  },
246
+ light: {
247
+ offset: 200
248
+ }
249
+ });
250
+ return styled.css(["&::before{background-color:", ";}&:hover::before{background-color:", ";}", " &:active::before{background-color:", ";}"], color, hoverColor, reactTheming.focusStyles({
251
+ theme,
197
252
  styles: {
198
253
  backgroundColor: hoverColor
199
254
  },
200
255
  selector: '&:focus-visible::before'
201
256
  }), activeColor);
202
257
  };
203
- const sizeStyles$2 = props => {
204
- const size = polished.math(`${props.theme.shadowWidths.md} * 2`);
205
- const separatorSize = polished.math(`${props.theme.borderWidths.sm} * 2`);
258
+ const sizeStyles$2 = _ref2 => {
259
+ let {
260
+ theme,
261
+ orientation,
262
+ isFixed
263
+ } = _ref2;
264
+ const size = polished.math(`${theme.shadowWidths.md} * 2`);
265
+ const separatorSize = polished.math(`${theme.borderWidths.sm} * 2`);
206
266
  const offset = polished.math(`-${size} / 2`);
207
267
  let cursor;
208
268
  let top;
@@ -213,14 +273,14 @@ const sizeStyles$2 = props => {
213
273
  let height;
214
274
  let separatorWidth;
215
275
  let separatorHeight;
216
- switch (props.orientation) {
276
+ switch (orientation) {
217
277
  case 'top':
218
278
  cursor = 'row-resize';
219
279
  top = offset;
220
280
  width = '100%';
221
281
  height = size;
222
282
  separatorWidth = width;
223
- separatorHeight = props.theme.borderWidths.sm;
283
+ separatorHeight = theme.borderWidths.sm;
224
284
  break;
225
285
  case 'bottom':
226
286
  cursor = 'row-resize';
@@ -228,16 +288,16 @@ const sizeStyles$2 = props => {
228
288
  width = '100%';
229
289
  height = size;
230
290
  separatorWidth = width;
231
- separatorHeight = props.theme.borderWidths.sm;
291
+ separatorHeight = theme.borderWidths.sm;
232
292
  break;
233
293
  case 'start':
234
294
  cursor = 'col-resize';
235
295
  top = 0;
236
296
  width = size;
237
297
  height = '100%';
238
- separatorWidth = props.theme.borderWidths.sm;
298
+ separatorWidth = theme.borderWidths.sm;
239
299
  separatorHeight = height;
240
- if (props.theme.rtl) {
300
+ if (theme.rtl) {
241
301
  right = offset;
242
302
  } else {
243
303
  left = offset;
@@ -249,9 +309,9 @@ const sizeStyles$2 = props => {
249
309
  top = 0;
250
310
  width = size;
251
311
  height = '100%';
252
- separatorWidth = props.theme.borderWidths.sm;
312
+ separatorWidth = theme.borderWidths.sm;
253
313
  separatorHeight = height;
254
- if (props.theme.rtl) {
314
+ if (theme.rtl) {
255
315
  left = offset;
256
316
  } else {
257
317
  right = offset;
@@ -259,11 +319,11 @@ const sizeStyles$2 = props => {
259
319
  break;
260
320
  }
261
321
  const dimensionProperty = width === '100%' ? 'height' : 'width';
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);
322
+ 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, isFixed ? 'pointer' : cursor, width, height, separatorWidth, separatorHeight, dimensionProperty, separatorSize, dimensionProperty, separatorSize, theme.borderRadii.md);
263
323
  };
264
324
  const StyledPaneSplitter = styled__default.default.div.attrs({
265
325
  'data-garden-id': COMPONENT_ID$1,
266
- 'data-garden-version': '9.0.0-next.13'
326
+ 'data-garden-version': '9.0.0-next.14'
267
327
  }).withConfig({
268
328
  displayName: "StyledPaneSplitter",
269
329
  componentId: "sc-jylemn-0"
@@ -295,7 +355,7 @@ const transformStyles = props => {
295
355
  return styled.css(["& > svg{transform:rotate(", "deg);}"], degrees);
296
356
  };
297
357
  const StyledPaneSplitterButton = styled__default.default(reactButtons.ChevronButton).attrs({
298
- 'data-garden-version': '9.0.0-next.13',
358
+ 'data-garden-version': '9.0.0-next.14',
299
359
  isBasic: true,
300
360
  isPill: true,
301
361
  size: 'small'
@@ -312,20 +372,39 @@ const colorStyles = _ref => {
312
372
  let {
313
373
  theme
314
374
  } = _ref;
315
- const backgroundColor = reactTheming.getColorV8('background', 600 , theme);
316
- const boxShadow = theme.shadows.lg(`${theme.space.base}px`, `${theme.space.base * 2}px`, reactTheming.getColorV8('chromeHue', 600, theme, 0.15));
375
+ const backgroundColor = reactTheming.getColor({
376
+ theme,
377
+ variable: 'background.raised'
378
+ });
379
+ const boxShadow = theme.shadows.lg(`${theme.space.base}px`, `${theme.space.base * 2}px`, reactTheming.getColor({
380
+ theme,
381
+ hue: 'neutralHue',
382
+ shade: 1200,
383
+ dark: {
384
+ transparency: theme.opacity[1100]
385
+ },
386
+ light: {
387
+ transparency: theme.opacity[200]
388
+ }
389
+ }));
317
390
  return styled.css(["box-shadow:", ";background-color:", ";"], boxShadow, backgroundColor);
318
391
  };
319
- const positionStyles = props => {
392
+ const positionStyles = _ref2 => {
393
+ let {
394
+ theme,
395
+ placement,
396
+ splitterSize,
397
+ orientation
398
+ } = _ref2;
320
399
  let top;
321
400
  let left;
322
401
  let right;
323
402
  let bottom;
324
- const size = getSize(props.theme);
403
+ const size = getSize(theme);
325
404
  const inset = `-${size / 2}px`;
326
- if (props.placement === 'center' || props.splitterSize < size * 3) {
327
- const center = `${props.splitterSize / 2 - size / 2}px`;
328
- switch (`${props.orientation}-${props.theme.rtl ? 'rtl' : 'ltr'}`) {
405
+ if (placement === 'center' || splitterSize < size * 3) {
406
+ const center = `${splitterSize / 2 - size / 2}px`;
407
+ switch (`${orientation}-${theme.rtl ? 'rtl' : 'ltr'}`) {
329
408
  case 'top-ltr':
330
409
  case 'top-rtl':
331
410
  top = inset;
@@ -349,7 +428,7 @@ const positionStyles = props => {
349
428
  }
350
429
  } else {
351
430
  const offset = `${size}px`;
352
- switch (`${props.orientation}-${props.placement}-${props.theme.rtl ? 'rtl' : 'ltr'}`) {
431
+ switch (`${orientation}-${placement}-${theme.rtl ? 'rtl' : 'ltr'}`) {
353
432
  case 'top-end-ltr':
354
433
  case 'top-end-rtl':
355
434
  case 'top-start-rtl':
@@ -394,10 +473,10 @@ const positionStyles = props => {
394
473
  }
395
474
  return styled.css(["top:", ";right:", ";bottom:", ";left:", ";"], top, right, bottom, left);
396
475
  };
397
- const sizeStyles = _ref2 => {
476
+ const sizeStyles = _ref3 => {
398
477
  let {
399
478
  theme
400
- } = _ref2;
479
+ } = _ref3;
401
480
  const size = getSize(theme);
402
481
  return styled.css(["border-radius:", "px;width:", "px;height:", "px;"], size, size, size);
403
482
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-grid",
3
- "version": "9.0.0-next.13",
3
+ "version": "9.0.0-next.14",
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.0.0-next.13",
27
- "@zendeskgarden/react-tooltips": "^9.0.0-next.13",
26
+ "@zendeskgarden/react-buttons": "^9.0.0-next.14",
27
+ "@zendeskgarden/react-tooltips": "^9.0.0-next.14",
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"
38
38
  },
39
39
  "devDependencies": {
40
- "@zendeskgarden/react-theming": "^9.0.0-next.13"
40
+ "@zendeskgarden/react-theming": "^9.0.0-next.14"
41
41
  },
42
42
  "keywords": [
43
43
  "components",
@@ -48,5 +48,6 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "zendeskgarden:src": "src/index.ts"
51
+ "zendeskgarden:src": "src/index.ts",
52
+ "gitHead": "4cd4e10839f6d083f0c5e642b99256e390a37ae6"
52
53
  }