@zendeskgarden/react-chrome 9.0.0-next.6 → 9.0.0-next.7
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
|
@@ -61,39 +61,39 @@ function _extends$3() {
|
|
|
61
61
|
const PLACEMENT = ['end', 'start'];
|
|
62
62
|
const PRODUCTS = ['chat', 'connect', 'explore', 'guide', 'message', 'support', 'talk'];
|
|
63
63
|
|
|
64
|
-
const COMPONENT_ID$
|
|
64
|
+
const COMPONENT_ID$z = 'chrome.chrome';
|
|
65
65
|
const StyledChrome = styled__default.default.div.attrs({
|
|
66
|
-
'data-garden-id': COMPONENT_ID$
|
|
67
|
-
'data-garden-version': '9.0.0-next.
|
|
66
|
+
'data-garden-id': COMPONENT_ID$z,
|
|
67
|
+
'data-garden-version': '9.0.0-next.7'
|
|
68
68
|
}).withConfig({
|
|
69
69
|
displayName: "StyledChrome",
|
|
70
70
|
componentId: "sc-1uqm6u6-0"
|
|
71
|
-
})(["display:flex;position:relative;margin:0;height:100vh;overflow-y:hidden;font-family:", ";direction:", ";", ";"], props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
71
|
+
})(["display:flex;position:relative;margin:0;height:100vh;overflow-y:hidden;font-family:", ";direction:", ";", ";"], props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$z, props));
|
|
72
72
|
StyledChrome.defaultProps = {
|
|
73
73
|
theme: reactTheming.DEFAULT_THEME
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
const COMPONENT_ID$
|
|
76
|
+
const COMPONENT_ID$y = 'chrome.header_item_icon';
|
|
77
77
|
const StyledHeaderItemIcon = styled__default.default.div.attrs({
|
|
78
|
-
'data-garden-id': COMPONENT_ID$
|
|
79
|
-
'data-garden-version': '9.0.0-next.
|
|
78
|
+
'data-garden-id': COMPONENT_ID$y,
|
|
79
|
+
'data-garden-version': '9.0.0-next.7'
|
|
80
80
|
}).withConfig({
|
|
81
81
|
displayName: "StyledHeaderItemIcon",
|
|
82
82
|
componentId: "sc-1jhhp6z-0"
|
|
83
|
-
})(["transition:transform 0.25s ease-in-out;margin:0 3px;width:", ";min-width:", ";height:", ";", ";"], props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
83
|
+
})(["transition:transform 0.25s ease-in-out;margin:0 3px;width:", ";min-width:", ";height:", ";", ";"], props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$y, props));
|
|
84
84
|
StyledHeaderItemIcon.defaultProps = {
|
|
85
85
|
theme: reactTheming.DEFAULT_THEME
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
-
const COMPONENT_ID$
|
|
88
|
+
const COMPONENT_ID$x = 'chrome.base_header_item';
|
|
89
89
|
const getHeaderItemSize = props => `${props.theme.space.base * 7.5}px`;
|
|
90
90
|
const sizeStyles$4 = props => {
|
|
91
91
|
const size = props.theme.space.base * 7.5;
|
|
92
92
|
return styled.css(["padding:0 3px;min-width:", "px;height:", ";line-height:", ";"], size, props.maxY ? '100%' : `${size}px`, reactTheming.getLineHeight(size, props.theme.fontSizes.md));
|
|
93
93
|
};
|
|
94
94
|
const StyledBaseHeaderItem = styled__default.default.button.attrs({
|
|
95
|
-
'data-garden-id': COMPONENT_ID$
|
|
96
|
-
'data-garden-version': '9.0.0-next.
|
|
95
|
+
'data-garden-id': COMPONENT_ID$x,
|
|
96
|
+
'data-garden-version': '9.0.0-next.7'
|
|
97
97
|
}).withConfig({
|
|
98
98
|
displayName: "StyledBaseHeaderItem",
|
|
99
99
|
componentId: "sc-1qua7h6-0"
|
|
@@ -105,25 +105,25 @@ const StyledBaseHeaderItem = styled__default.default.button.attrs({
|
|
|
105
105
|
return '0';
|
|
106
106
|
}
|
|
107
107
|
return props.theme.borderRadii.md;
|
|
108
|
-
}, sizeStyles$4, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
108
|
+
}, sizeStyles$4, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$x, props));
|
|
109
109
|
StyledBaseHeaderItem.defaultProps = {
|
|
110
110
|
theme: reactTheming.DEFAULT_THEME
|
|
111
111
|
};
|
|
112
112
|
|
|
113
|
-
const COMPONENT_ID$
|
|
113
|
+
const COMPONENT_ID$w = 'chrome.header_item_text';
|
|
114
114
|
const clippedStyling = styled.css(["position:absolute;margin:0;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
|
|
115
115
|
const StyledHeaderItemText = styled__default.default.span.attrs({
|
|
116
|
-
'data-garden-id': COMPONENT_ID$
|
|
117
|
-
'data-garden-version': '9.0.0-next.
|
|
116
|
+
'data-garden-id': COMPONENT_ID$w,
|
|
117
|
+
'data-garden-version': '9.0.0-next.7'
|
|
118
118
|
}).withConfig({
|
|
119
119
|
displayName: "StyledHeaderItemText",
|
|
120
120
|
componentId: "sc-goz7la-0"
|
|
121
|
-
})(["margin:0 3px;", " ", ";"], props => props.isClipped && clippedStyling, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
121
|
+
})(["margin:0 3px;", " ", ";"], props => props.isClipped && clippedStyling, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$w, props));
|
|
122
122
|
StyledHeaderItemText.defaultProps = {
|
|
123
123
|
theme: reactTheming.DEFAULT_THEME
|
|
124
124
|
};
|
|
125
125
|
|
|
126
|
-
const COMPONENT_ID$
|
|
126
|
+
const COMPONENT_ID$v = 'chrome.nav';
|
|
127
127
|
const colorStyles$6 = props => {
|
|
128
128
|
const shade = props.isDark || props.isLight ? 600 : 700;
|
|
129
129
|
const backgroundColor = reactTheming.getColorV8(props.hue, shade, props.theme);
|
|
@@ -137,17 +137,17 @@ const getExpandedNavWidth = () => {
|
|
|
137
137
|
return `200px`;
|
|
138
138
|
};
|
|
139
139
|
const StyledNav = styled__default.default.nav.attrs({
|
|
140
|
-
'data-garden-id': COMPONENT_ID$
|
|
141
|
-
'data-garden-version': '9.0.0-next.
|
|
140
|
+
'data-garden-id': COMPONENT_ID$v,
|
|
141
|
+
'data-garden-version': '9.0.0-next.7'
|
|
142
142
|
}).withConfig({
|
|
143
143
|
displayName: "StyledNav",
|
|
144
144
|
componentId: "sc-6j462r-0"
|
|
145
|
-
})(["display:flex;position:relative;flex-direction:column;flex-shrink:0;order:-1;width:", ";font-size:", ";", ";", ";"], props => props.isExpanded ? getExpandedNavWidth : getNavWidth, props => props.theme.fontSizes.md, props => colorStyles$6(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
145
|
+
})(["display:flex;position:relative;flex-direction:column;flex-shrink:0;order:-1;width:", ";font-size:", ";", ";", ";"], props => props.isExpanded ? getExpandedNavWidth : getNavWidth, props => props.theme.fontSizes.md, props => colorStyles$6(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$v, props));
|
|
146
146
|
StyledNav.defaultProps = {
|
|
147
147
|
theme: reactTheming.DEFAULT_THEME
|
|
148
148
|
};
|
|
149
149
|
|
|
150
|
-
const COMPONENT_ID$
|
|
150
|
+
const COMPONENT_ID$u = 'chrome.header_item';
|
|
151
151
|
const retrieveProductColor$1 = props => {
|
|
152
152
|
switch (props.product) {
|
|
153
153
|
case 'chat':
|
|
@@ -169,18 +169,18 @@ const retrieveProductColor$1 = props => {
|
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
171
|
const StyledLogoHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
172
|
-
'data-garden-id': COMPONENT_ID$
|
|
173
|
-
'data-garden-version': '9.0.0-next.
|
|
172
|
+
'data-garden-id': COMPONENT_ID$u,
|
|
173
|
+
'data-garden-version': '9.0.0-next.7',
|
|
174
174
|
as: 'div'
|
|
175
175
|
}).withConfig({
|
|
176
176
|
displayName: "StyledLogoHeaderItem",
|
|
177
177
|
componentId: "sc-1n1d1yv-0"
|
|
178
|
-
})(["display:none;order:0;margin-right:", ";margin-left:", ";border-", ":", ";border-radius:0;padding:0;width:", ";height:100%;overflow:hidden;fill:", ";text-decoration:none;color:", ";", "{", "}", "{margin:0;width:", ";height:", ";}", ";"], props => props.theme.rtl ? `-${props.theme.space.base}px` : 'auto', props => props.theme.rtl ? 'auto' : `-${props.theme.space.base}px`, props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.borders.sm} ${reactTheming.getColorV8('neutralHue', 300, props.theme)}`, props => getNavWidth(props), props => reactTheming.getColorV8('chromeHue', 700, props.theme), props => retrieveProductColor$1(props), StyledHeaderItemText, clippedStyling, StyledHeaderItemIcon, props => props.theme.iconSizes.lg, props => props.theme.iconSizes.lg, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
178
|
+
})(["display:none;order:0;margin-right:", ";margin-left:", ";border-", ":", ";border-radius:0;padding:0;width:", ";height:100%;overflow:hidden;fill:", ";text-decoration:none;color:", ";", "{", "}", "{margin:0;width:", ";height:", ";}", ";"], props => props.theme.rtl ? `-${props.theme.space.base}px` : 'auto', props => props.theme.rtl ? 'auto' : `-${props.theme.space.base}px`, props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.borders.sm} ${reactTheming.getColorV8('neutralHue', 300, props.theme)}`, props => getNavWidth(props), props => reactTheming.getColorV8('chromeHue', 700, props.theme), props => retrieveProductColor$1(props), StyledHeaderItemText, clippedStyling, StyledHeaderItemIcon, props => props.theme.iconSizes.lg, props => props.theme.iconSizes.lg, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$u, props));
|
|
179
179
|
StyledLogoHeaderItem.defaultProps = {
|
|
180
180
|
theme: reactTheming.DEFAULT_THEME
|
|
181
181
|
};
|
|
182
182
|
|
|
183
|
-
const COMPONENT_ID$
|
|
183
|
+
const COMPONENT_ID$t = 'chrome.base_nav_item';
|
|
184
184
|
const getNavItemHeight = props => {
|
|
185
185
|
return `${props.theme.space.base * 13}px`;
|
|
186
186
|
};
|
|
@@ -190,8 +190,8 @@ const sizeStyles$3 = props => {
|
|
|
190
190
|
return styled.css(["padding:", " ", ";min-height:", ";"], verticalPadding, horizontalPadding, getNavItemHeight);
|
|
191
191
|
};
|
|
192
192
|
const StyledBaseNavItem = styled__default.default.button.attrs({
|
|
193
|
-
'data-garden-id': COMPONENT_ID$
|
|
194
|
-
'data-garden-version': '9.0.0-next.
|
|
193
|
+
'data-garden-id': COMPONENT_ID$t,
|
|
194
|
+
'data-garden-version': '9.0.0-next.7'
|
|
195
195
|
}).withConfig({
|
|
196
196
|
displayName: "StyledBaseNavItem",
|
|
197
197
|
componentId: "sc-zvo43f-0"
|
|
@@ -200,13 +200,13 @@ StyledBaseNavItem.defaultProps = {
|
|
|
200
200
|
theme: reactTheming.DEFAULT_THEME
|
|
201
201
|
};
|
|
202
202
|
|
|
203
|
-
const COMPONENT_ID$
|
|
203
|
+
const COMPONENT_ID$s = 'chrome.header';
|
|
204
204
|
const getHeaderHeight = props => {
|
|
205
205
|
return getNavItemHeight(props);
|
|
206
206
|
};
|
|
207
207
|
const StyledHeader = styled__default.default.header.attrs({
|
|
208
|
-
'data-garden-id': COMPONENT_ID$
|
|
209
|
-
'data-garden-version': '9.0.0-next.
|
|
208
|
+
'data-garden-id': COMPONENT_ID$s,
|
|
209
|
+
'data-garden-version': '9.0.0-next.7'
|
|
210
210
|
}).withConfig({
|
|
211
211
|
displayName: "StyledHeader",
|
|
212
212
|
componentId: "sc-1cexpz-0"
|
|
@@ -214,12 +214,12 @@ const StyledHeader = styled__default.default.header.attrs({
|
|
|
214
214
|
${StyledLogoHeaderItem} {
|
|
215
215
|
display: inline-flex;
|
|
216
216
|
}
|
|
217
|
-
`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
217
|
+
`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$s, props));
|
|
218
218
|
StyledHeader.defaultProps = {
|
|
219
219
|
theme: reactTheming.DEFAULT_THEME
|
|
220
220
|
};
|
|
221
221
|
|
|
222
|
-
const COMPONENT_ID$
|
|
222
|
+
const COMPONENT_ID$r = 'chrome.skipnav';
|
|
223
223
|
const animationStyles = () => {
|
|
224
224
|
const animationName = styled.keyframes(["0%{transform:translate(-50%,-50%);}"]);
|
|
225
225
|
return styled.css(["transition:opacity 0.2s ease-out,clip 0s linear 0.2s;opacity:0;clip:rect(0,0,0,0);&:focus{transition:opacity 0.2s ease-in-out;animation:0.2s cubic-bezier(0.15,0.85,0.35,1.2) ", ";opacity:1;clip:rect(0,150vw,100vh,-50vw);}"], animationName);
|
|
@@ -243,12 +243,12 @@ const sizeStyles$2 = props => {
|
|
|
243
243
|
return styled.css(["top:", ";padding:", ";padding-", ":", ";line-height:", ";font-size:", ";"], top, padding, props.theme.rtl ? 'right' : 'left', paddingStart, lineHeight, fontSize);
|
|
244
244
|
};
|
|
245
245
|
const StyledSkipNav = styled__default.default.a.attrs({
|
|
246
|
-
'data-garden-id': COMPONENT_ID$
|
|
247
|
-
'data-garden-version': '9.0.0-next.
|
|
246
|
+
'data-garden-id': COMPONENT_ID$r,
|
|
247
|
+
'data-garden-version': '9.0.0-next.7'
|
|
248
248
|
}).withConfig({
|
|
249
249
|
displayName: "StyledSkipNav",
|
|
250
250
|
componentId: "sc-1tsro34-0"
|
|
251
|
-
})(["", ";display:inline-flex;position:absolute;left:50%;align-items:center;justify-content:center;transform:translateX(-50%);direction:", ";z-index:", ";border:", ";border-radius:", ";text-decoration:underline;white-space:nowrap;", ";", "{text-decoration:none;}&:hover{text-decoration:underline;}", ";", ";"], animationStyles(), props => props.theme.rtl && 'rtl', props => props.zIndex, props => props.theme.borders.sm, props => props.theme.borderRadii.md, props => sizeStyles$2(props), reactTheming.SELECTOR_FOCUS_VISIBLE, props => colorStyles$5(props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
251
|
+
})(["", ";display:inline-flex;position:absolute;left:50%;align-items:center;justify-content:center;transform:translateX(-50%);direction:", ";z-index:", ";border:", ";border-radius:", ";text-decoration:underline;white-space:nowrap;", ";", "{text-decoration:none;}&:hover{text-decoration:underline;}", ";", ";"], animationStyles(), props => props.theme.rtl && 'rtl', props => props.zIndex, props => props.theme.borders.sm, props => props.theme.borderRadii.md, props => sizeStyles$2(props), reactTheming.SELECTOR_FOCUS_VISIBLE, props => colorStyles$5(props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$r, props));
|
|
252
252
|
StyledSkipNav.defaultProps = {
|
|
253
253
|
theme: reactTheming.DEFAULT_THEME
|
|
254
254
|
};
|
|
@@ -269,90 +269,78 @@ var SvgLinkStroke = function SvgLinkStroke(props) {
|
|
|
269
269
|
})));
|
|
270
270
|
};
|
|
271
271
|
|
|
272
|
-
const COMPONENT_ID$
|
|
272
|
+
const COMPONENT_ID$q = 'chrome.skipnav_icon';
|
|
273
273
|
const sizeStyles$1 = theme => {
|
|
274
274
|
const margin = `${theme.space.base * 2}px`;
|
|
275
275
|
const size = theme.iconSizes.md;
|
|
276
276
|
return styled.css(["margin-", ":", ";width:", ";height:", ";"], theme.rtl ? 'left' : 'right', margin, size, size);
|
|
277
277
|
};
|
|
278
278
|
const StyledSkipNavIcon = styled__default.default(SvgLinkStroke).attrs({
|
|
279
|
-
'data-garden-id': COMPONENT_ID$
|
|
280
|
-
'data-garden-version': '9.0.0-next.
|
|
279
|
+
'data-garden-id': COMPONENT_ID$q,
|
|
280
|
+
'data-garden-version': '9.0.0-next.7'
|
|
281
281
|
}).withConfig({
|
|
282
282
|
displayName: "StyledSkipNavIcon",
|
|
283
283
|
componentId: "sc-1ika5z4-0"
|
|
284
|
-
})(["transform:", ";color:", ";", ";", ";"], props => props.theme.rtl && 'scaleX(-1)', props => reactTheming.getColorV8('neutralHue', 600, props.theme), props => sizeStyles$1(props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
284
|
+
})(["transform:", ";color:", ";", ";", ";"], props => props.theme.rtl && 'scaleX(-1)', props => reactTheming.getColorV8('neutralHue', 600, props.theme), props => sizeStyles$1(props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$q, props));
|
|
285
285
|
StyledSkipNavIcon.defaultProps = {
|
|
286
286
|
theme: reactTheming.DEFAULT_THEME
|
|
287
287
|
};
|
|
288
288
|
|
|
289
|
-
const COMPONENT_ID$
|
|
289
|
+
const COMPONENT_ID$p = 'chrome.body';
|
|
290
290
|
const StyledBody = styled__default.default.div.attrs({
|
|
291
|
-
'data-garden-id': COMPONENT_ID$
|
|
292
|
-
'data-garden-version': '9.0.0-next.
|
|
291
|
+
'data-garden-id': COMPONENT_ID$p,
|
|
292
|
+
'data-garden-version': '9.0.0-next.7'
|
|
293
293
|
}).withConfig({
|
|
294
294
|
displayName: "StyledBody",
|
|
295
295
|
componentId: "sc-c7h9kv-0"
|
|
296
|
-
})(["flex:1;order:1;background-color:", ";min-width:0;", ";"], props => reactTheming.getColorV8('neutralHue', 100, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
296
|
+
})(["flex:1;order:1;background-color:", ";min-width:0;", ";"], props => reactTheming.getColorV8('neutralHue', 100, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$p, props));
|
|
297
297
|
StyledBody.defaultProps = {
|
|
298
298
|
theme: reactTheming.DEFAULT_THEME
|
|
299
299
|
};
|
|
300
300
|
|
|
301
|
-
const COMPONENT_ID$
|
|
301
|
+
const COMPONENT_ID$o = 'chrome.footer';
|
|
302
302
|
const getFooterHeight = props => {
|
|
303
303
|
return `${props.theme.space.base * 20}px`;
|
|
304
304
|
};
|
|
305
305
|
const StyledFooter = styled__default.default.footer.attrs({
|
|
306
|
-
'data-garden-id': COMPONENT_ID$
|
|
307
|
-
'data-garden-version': '9.0.0-next.
|
|
306
|
+
'data-garden-id': COMPONENT_ID$o,
|
|
307
|
+
'data-garden-version': '9.0.0-next.7'
|
|
308
308
|
}).withConfig({
|
|
309
309
|
displayName: "StyledFooter",
|
|
310
310
|
componentId: "sc-v7lib2-0"
|
|
311
|
-
})(["display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;border-top:", ";background-color:", ";padding:0 ", "px;height:", ";", ";"], props => `${props.theme.borders.sm} ${reactTheming.getColorV8('neutralHue', 300, props.theme)}`, props => reactTheming.getColorV8('background', 600 , props.theme), props => props.theme.space.base * 9, getFooterHeight, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
311
|
+
})(["display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;border-top:", ";background-color:", ";padding:0 ", "px;height:", ";", ";"], props => `${props.theme.borders.sm} ${reactTheming.getColorV8('neutralHue', 300, props.theme)}`, props => reactTheming.getColorV8('background', 600 , props.theme), props => props.theme.space.base * 9, getFooterHeight, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$o, props));
|
|
312
312
|
StyledFooter.defaultProps = {
|
|
313
313
|
theme: reactTheming.DEFAULT_THEME
|
|
314
314
|
};
|
|
315
315
|
|
|
316
|
-
const COMPONENT_ID$
|
|
316
|
+
const COMPONENT_ID$n = 'chrome.content';
|
|
317
317
|
const StyledContent = styled__default.default.div.attrs({
|
|
318
|
-
'data-garden-id': COMPONENT_ID$
|
|
319
|
-
'data-garden-version': '9.0.0-next.
|
|
318
|
+
'data-garden-id': COMPONENT_ID$n,
|
|
319
|
+
'data-garden-version': '9.0.0-next.7'
|
|
320
320
|
}).withConfig({
|
|
321
321
|
displayName: "StyledContent",
|
|
322
322
|
componentId: "sc-qcuzxn-0"
|
|
323
|
-
})(["display:flex;height:", ";line-height:", ";color:", ";font-size:", ";&:focus{outline:none;}", ";"], props => props.hasFooter ? `calc(100% - ${polished.math(`${getHeaderHeight(props)} + ${getFooterHeight(props)}`)})` : `calc(100% - ${getHeaderHeight(props)})`, props => reactTheming.getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props => reactTheming.getColorV8('foreground', 600 , props.theme), props => props.theme.fontSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
323
|
+
})(["display:flex;height:", ";line-height:", ";color:", ";font-size:", ";&:focus{outline:none;}", ";"], props => props.hasFooter ? `calc(100% - ${polished.math(`${getHeaderHeight(props)} + ${getFooterHeight(props)}`)})` : `calc(100% - ${getHeaderHeight(props)})`, props => reactTheming.getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props => reactTheming.getColorV8('foreground', 600 , props.theme), props => props.theme.fontSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$n, props));
|
|
324
324
|
StyledContent.defaultProps = {
|
|
325
325
|
theme: reactTheming.DEFAULT_THEME
|
|
326
326
|
};
|
|
327
327
|
|
|
328
|
-
const COMPONENT_ID$
|
|
328
|
+
const COMPONENT_ID$m = 'chrome.main';
|
|
329
329
|
const StyledMain = styled__default.default.main.attrs({
|
|
330
|
-
'data-garden-id': COMPONENT_ID$
|
|
331
|
-
'data-garden-version': '9.0.0-next.
|
|
330
|
+
'data-garden-id': COMPONENT_ID$m,
|
|
331
|
+
'data-garden-version': '9.0.0-next.7'
|
|
332
332
|
}).withConfig({
|
|
333
333
|
displayName: "StyledMain",
|
|
334
334
|
componentId: "sc-t61cre-0"
|
|
335
|
-
})(["flex:1;order:1;background-color:", ";overflow:auto;:focus{outline:none;}", ";"], props => reactTheming.getColorV8('background', 600 , props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
335
|
+
})(["flex:1;order:1;background-color:", ";overflow:auto;:focus{outline:none;}", ";"], props => reactTheming.getColorV8('background', 600 , props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$m, props));
|
|
336
336
|
StyledMain.defaultProps = {
|
|
337
337
|
theme: reactTheming.DEFAULT_THEME
|
|
338
338
|
};
|
|
339
339
|
|
|
340
|
-
const COMPONENT_ID$m = 'chrome.sidebar';
|
|
341
|
-
const StyledSidebar = styled__default.default.aside.attrs({
|
|
342
|
-
'data-garden-id': COMPONENT_ID$m,
|
|
343
|
-
'data-garden-version': '9.0.0-next.6'
|
|
344
|
-
}).withConfig({
|
|
345
|
-
displayName: "StyledSidebar",
|
|
346
|
-
componentId: "sc-1q77fuw-0"
|
|
347
|
-
})(["flex-shrink:0;order:0;box-sizing:border-box;border-", ":", ";width:330px;overflow:auto;&:focus{outline:none;}", ";"], props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.borders.sm} ${reactTheming.getColorV8('neutralHue', 300, props.theme)}`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$m, props));
|
|
348
|
-
StyledSidebar.defaultProps = {
|
|
349
|
-
theme: reactTheming.DEFAULT_THEME
|
|
350
|
-
};
|
|
351
|
-
|
|
352
340
|
const COMPONENT_ID$l = 'chrome.footer_item';
|
|
353
341
|
const StyledFooterItem = styled__default.default.div.attrs({
|
|
354
342
|
'data-garden-id': COMPONENT_ID$l,
|
|
355
|
-
'data-garden-version': '9.0.0-next.
|
|
343
|
+
'data-garden-version': '9.0.0-next.7'
|
|
356
344
|
}).withConfig({
|
|
357
345
|
displayName: "StyledFooterItem",
|
|
358
346
|
componentId: "sc-1cktm85-0"
|
|
@@ -368,11 +356,11 @@ const imgStyles = props => {
|
|
|
368
356
|
};
|
|
369
357
|
const StyledHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
370
358
|
'data-garden-id': COMPONENT_ID$k,
|
|
371
|
-
'data-garden-version': '9.0.0-next.
|
|
359
|
+
'data-garden-version': '9.0.0-next.7'
|
|
372
360
|
}).withConfig({
|
|
373
361
|
displayName: "StyledHeaderItem",
|
|
374
362
|
componentId: "sc-14sft6n-0"
|
|
375
|
-
})(["&:hover,&:focus{text-decoration:none;color:inherit;}", " &:focus-visible:active
|
|
363
|
+
})(["&:hover,&:focus{text-decoration:none;color:inherit;}", " &:focus-visible:active{box-shadow:none;}&:hover ", ",&:hover ", ",&:active ", ",&:active ", "{color:", ";}", " ", " ", ";"], props => reactTheming.focusStyles({
|
|
376
364
|
theme: props.theme,
|
|
377
365
|
inset: props.maxY
|
|
378
366
|
}), StyledHeaderItemIcon, StyledHeaderItemText, StyledHeaderItemIcon, StyledHeaderItemText, props => reactTheming.getColorV8('chromeHue', 700, props.theme), imgStyles, props => props.isRound && `
|
|
@@ -387,7 +375,7 @@ StyledHeaderItem.defaultProps = {
|
|
|
387
375
|
const COMPONENT_ID$j = 'chrome.header_item_wrapper';
|
|
388
376
|
const StyledHeaderItemWrapper = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
389
377
|
'data-garden-id': COMPONENT_ID$j,
|
|
390
|
-
'data-garden-version': '9.0.0-next.
|
|
378
|
+
'data-garden-version': '9.0.0-next.7',
|
|
391
379
|
as: 'div'
|
|
392
380
|
}).withConfig({
|
|
393
381
|
displayName: "StyledHeaderItemWrapper",
|
|
@@ -425,7 +413,7 @@ const colorStyles$4 = props => {
|
|
|
425
413
|
};
|
|
426
414
|
const StyledLogoNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
427
415
|
'data-garden-id': COMPONENT_ID$i,
|
|
428
|
-
'data-garden-version': '9.0.0-next.
|
|
416
|
+
'data-garden-version': '9.0.0-next.7',
|
|
429
417
|
as: 'div'
|
|
430
418
|
}).withConfig({
|
|
431
419
|
displayName: "StyledLogoNavItem",
|
|
@@ -438,7 +426,7 @@ StyledLogoNavItem.defaultProps = {
|
|
|
438
426
|
const COMPONENT_ID$h = 'chrome.brandmark_nav_item';
|
|
439
427
|
const StyledBrandmarkNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
440
428
|
'data-garden-id': COMPONENT_ID$h,
|
|
441
|
-
'data-garden-version': '9.0.0-next.
|
|
429
|
+
'data-garden-version': '9.0.0-next.7',
|
|
442
430
|
as: 'div'
|
|
443
431
|
}).withConfig({
|
|
444
432
|
displayName: "StyledBrandmarkNavItem",
|
|
@@ -451,7 +439,7 @@ StyledBrandmarkNavItem.defaultProps = {
|
|
|
451
439
|
const COMPONENT_ID$g = 'chrome.nav_item_icon';
|
|
452
440
|
const StyledNavItemIcon = styled__default.default.div.attrs({
|
|
453
441
|
'data-garden-id': COMPONENT_ID$g,
|
|
454
|
-
'data-garden-version': '9.0.0-next.
|
|
442
|
+
'data-garden-version': '9.0.0-next.7'
|
|
455
443
|
}).withConfig({
|
|
456
444
|
displayName: "StyledNavItemIcon",
|
|
457
445
|
componentId: "sc-7w9rpt-0"
|
|
@@ -497,7 +485,7 @@ const colorStyles$3 = props => {
|
|
|
497
485
|
};
|
|
498
486
|
const StyledNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
499
487
|
'data-garden-id': COMPONENT_ID$f,
|
|
500
|
-
'data-garden-version': '9.0.0-next.
|
|
488
|
+
'data-garden-version': '9.0.0-next.7',
|
|
501
489
|
as: 'button'
|
|
502
490
|
}).withConfig({
|
|
503
491
|
displayName: "StyledNavItem",
|
|
@@ -514,7 +502,7 @@ StyledNavItem.defaultProps = {
|
|
|
514
502
|
const COMPONENT_ID$e = 'chrome.nav_item_text';
|
|
515
503
|
const StyledNavItemText = styled__default.default.span.attrs({
|
|
516
504
|
'data-garden-id': COMPONENT_ID$e,
|
|
517
|
-
'data-garden-version': '9.0.0-next.
|
|
505
|
+
'data-garden-version': '9.0.0-next.7'
|
|
518
506
|
}).withConfig({
|
|
519
507
|
displayName: "StyledNavItemText",
|
|
520
508
|
componentId: "sc-13m84xl-0"
|
|
@@ -567,7 +555,7 @@ const getSubNavItemHeight = props => {
|
|
|
567
555
|
};
|
|
568
556
|
const StyledSubNavItem = styled__default.default.button.attrs({
|
|
569
557
|
'data-garden-id': COMPONENT_ID$d,
|
|
570
|
-
'data-garden-version': '9.0.0-next.
|
|
558
|
+
'data-garden-version': '9.0.0-next.7'
|
|
571
559
|
}).withConfig({
|
|
572
560
|
displayName: "StyledSubNavItem",
|
|
573
561
|
componentId: "sc-1yg9dpx-0"
|
|
@@ -590,7 +578,7 @@ const colorStyles$1 = props => {
|
|
|
590
578
|
};
|
|
591
579
|
const StyledSubNav = styled__default.default.nav.attrs({
|
|
592
580
|
'data-garden-id': COMPONENT_ID$c,
|
|
593
|
-
'data-garden-version': '9.0.0-next.
|
|
581
|
+
'data-garden-version': '9.0.0-next.7'
|
|
594
582
|
}).withConfig({
|
|
595
583
|
displayName: "StyledSubNav",
|
|
596
584
|
componentId: "sc-19hjou6-0"
|
|
@@ -608,7 +596,7 @@ const sizeStyles = props => {
|
|
|
608
596
|
};
|
|
609
597
|
const StyledSubNavItemText = styled__default.default.span.attrs({
|
|
610
598
|
'data-garden-id': COMPONENT_ID$b,
|
|
611
|
-
'data-garden-version': '9.0.0-next.
|
|
599
|
+
'data-garden-version': '9.0.0-next.7'
|
|
612
600
|
}).withConfig({
|
|
613
601
|
displayName: "StyledSubNavItemText",
|
|
614
602
|
componentId: "sc-1hy0pn7-0"
|
|
@@ -620,7 +608,7 @@ StyledSubNavItemText.defaultProps = {
|
|
|
620
608
|
const COMPONENT_ID$a = 'chrome.collapsible_sub_nav_item';
|
|
621
609
|
const StyledSubNavItemHeader = styled__default.default(StyledSubNavItem).attrs({
|
|
622
610
|
'data-garden-id': COMPONENT_ID$a,
|
|
623
|
-
'data-garden-version': '9.0.0-next.
|
|
611
|
+
'data-garden-version': '9.0.0-next.7',
|
|
624
612
|
'data-garden-header': 'true'
|
|
625
613
|
}).withConfig({
|
|
626
614
|
displayName: "StyledSubNavItemHeader",
|
|
@@ -667,7 +655,7 @@ StyledSubNavItemIcon.defaultProps = {
|
|
|
667
655
|
};
|
|
668
656
|
const StyledSubNavItemIconWrapper = styled__default.default.div.attrs({
|
|
669
657
|
'data-garden-id': COMPONENT_ID$9,
|
|
670
|
-
'data-garden-version': '9.0.0-next.
|
|
658
|
+
'data-garden-version': '9.0.0-next.7'
|
|
671
659
|
}).withConfig({
|
|
672
660
|
displayName: "StyledSubNavItemIcon__StyledSubNavItemIconWrapper",
|
|
673
661
|
componentId: "sc-1d02hho-1"
|
|
@@ -680,7 +668,7 @@ const PANEL_COMPONENT_ID = 'chrome.collapsible_sub_nav_item_panel';
|
|
|
680
668
|
const hiddenStyling = styled.css(["visibility:hidden;max-height:0 !important;overflow:hidden;"]);
|
|
681
669
|
const StyledSubNavPanel = styled__default.default.div.attrs({
|
|
682
670
|
'data-garden-id': PANEL_COMPONENT_ID,
|
|
683
|
-
'data-garden-version': '9.0.0-next.
|
|
671
|
+
'data-garden-version': '9.0.0-next.7'
|
|
684
672
|
}).withConfig({
|
|
685
673
|
displayName: "StyledSubNavPanel",
|
|
686
674
|
componentId: "sc-1jv3rpv-0"
|
|
@@ -711,7 +699,7 @@ const borderStyle = _ref => {
|
|
|
711
699
|
};
|
|
712
700
|
const StyledSheet = styled__default.default.aside.attrs({
|
|
713
701
|
'data-garden-id': COMPONENT_ID$8,
|
|
714
|
-
'data-garden-version': '9.0.0-next.
|
|
702
|
+
'data-garden-version': '9.0.0-next.7'
|
|
715
703
|
}).withConfig({
|
|
716
704
|
displayName: "StyledSheet",
|
|
717
705
|
componentId: "sc-dx8ijk-0"
|
|
@@ -723,7 +711,7 @@ StyledSheet.defaultProps = {
|
|
|
723
711
|
const COMPONENT_ID$7 = 'chrome.sheet_wrapper';
|
|
724
712
|
const StyledSheetWrapper = styled__default.default.div.attrs({
|
|
725
713
|
'data-garden-id': COMPONENT_ID$7,
|
|
726
|
-
'data-garden-version': '9.0.0-next.
|
|
714
|
+
'data-garden-version': '9.0.0-next.7'
|
|
727
715
|
}).withConfig({
|
|
728
716
|
displayName: "StyledSheetWrapper",
|
|
729
717
|
componentId: "sc-f6x9zb-0"
|
|
@@ -750,7 +738,7 @@ StyledSheetWrapper.defaultProps = {
|
|
|
750
738
|
const COMPONENT_ID$6 = 'chrome.sheet_title';
|
|
751
739
|
const StyledSheetTitle = styled__default.default.div.attrs({
|
|
752
740
|
'data-garden-id': COMPONENT_ID$6,
|
|
753
|
-
'data-garden-version': '9.0.0-next.
|
|
741
|
+
'data-garden-version': '9.0.0-next.7'
|
|
754
742
|
}).withConfig({
|
|
755
743
|
displayName: "StyledSheetTitle",
|
|
756
744
|
componentId: "sc-1gogk75-0"
|
|
@@ -762,7 +750,7 @@ StyledSheetTitle.defaultProps = {
|
|
|
762
750
|
const COMPONENT_ID$5 = 'chrome.sheet_description';
|
|
763
751
|
const StyledSheetDescription = styled__default.default.div.attrs({
|
|
764
752
|
'data-garden-id': COMPONENT_ID$5,
|
|
765
|
-
'data-garden-version': '9.0.0-next.
|
|
753
|
+
'data-garden-version': '9.0.0-next.7'
|
|
766
754
|
}).withConfig({
|
|
767
755
|
displayName: "StyledSheetDescription",
|
|
768
756
|
componentId: "sc-1puglb6-0"
|
|
@@ -774,7 +762,7 @@ StyledSheetDescription.defaultProps = {
|
|
|
774
762
|
const COMPONENT_ID$4 = 'chrome.sheet_body';
|
|
775
763
|
const StyledSheetBody = styled__default.default.div.attrs({
|
|
776
764
|
'data-garden-id': COMPONENT_ID$4,
|
|
777
|
-
'data-garden-version': '9.0.0-next.
|
|
765
|
+
'data-garden-version': '9.0.0-next.7'
|
|
778
766
|
}).withConfig({
|
|
779
767
|
displayName: "StyledSheetBody",
|
|
780
768
|
componentId: "sc-bt4eoj-0"
|
|
@@ -798,7 +786,7 @@ const colorStyles = props => {
|
|
|
798
786
|
};
|
|
799
787
|
const StyledSheetClose = styled__default.default.button.attrs({
|
|
800
788
|
'data-garden-id': COMPONENT_ID$3,
|
|
801
|
-
'data-garden-version': '9.0.0-next.
|
|
789
|
+
'data-garden-version': '9.0.0-next.7'
|
|
802
790
|
}).withConfig({
|
|
803
791
|
displayName: "StyledSheetClose",
|
|
804
792
|
componentId: "sc-1ab02oq-0"
|
|
@@ -810,7 +798,7 @@ StyledSheetClose.defaultProps = {
|
|
|
810
798
|
const COMPONENT_ID$2 = 'chrome.sheet_footer';
|
|
811
799
|
const StyledSheetFooter = styled__default.default.footer.attrs({
|
|
812
800
|
'data-garden-id': COMPONENT_ID$2,
|
|
813
|
-
'data-garden-version': '9.0.0-next.
|
|
801
|
+
'data-garden-version': '9.0.0-next.7'
|
|
814
802
|
}).withConfig({
|
|
815
803
|
displayName: "StyledSheetFooter",
|
|
816
804
|
componentId: "sc-2cktos-0"
|
|
@@ -822,7 +810,7 @@ StyledSheetFooter.defaultProps = {
|
|
|
822
810
|
const COMPONENT_ID$1 = 'chrome.sheet_footer_item';
|
|
823
811
|
const StyledSheetFooterItem = styled__default.default.div.attrs({
|
|
824
812
|
'data-garden-id': COMPONENT_ID$1,
|
|
825
|
-
'data-garden-version': '9.0.0-next.
|
|
813
|
+
'data-garden-version': '9.0.0-next.7'
|
|
826
814
|
}).withConfig({
|
|
827
815
|
displayName: "StyledSheetFooterItem",
|
|
828
816
|
componentId: "sc-r9ixh-0"
|
|
@@ -834,7 +822,7 @@ StyledSheetFooterItem.defaultProps = {
|
|
|
834
822
|
const COMPONENT_ID = 'chrome.sheet_header';
|
|
835
823
|
const StyledSheetHeader = styled__default.default.header.attrs({
|
|
836
824
|
'data-garden-id': COMPONENT_ID,
|
|
837
|
-
'data-garden-version': '9.0.0-next.
|
|
825
|
+
'data-garden-version': '9.0.0-next.7'
|
|
838
826
|
}).withConfig({
|
|
839
827
|
displayName: "StyledSheetHeader",
|
|
840
828
|
componentId: "sc-o2ry8i-0"
|
|
@@ -1206,11 +1194,6 @@ const Main = React__namespace.default.forwardRef((props, ref) => React__namespac
|
|
|
1206
1194
|
}, props)));
|
|
1207
1195
|
Main.displayName = 'Main';
|
|
1208
1196
|
|
|
1209
|
-
const Sidebar = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledSidebar, _extends$3({
|
|
1210
|
-
ref: ref
|
|
1211
|
-
}, props)));
|
|
1212
|
-
Sidebar.displayName = 'Sidebar';
|
|
1213
|
-
|
|
1214
1197
|
const HeaderComponent = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledHeader, _extends$3({
|
|
1215
1198
|
ref: ref
|
|
1216
1199
|
}, props)));
|
|
@@ -1438,7 +1421,7 @@ const SheetComponent = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1438
1421
|
const sheetRef = React.useRef(null);
|
|
1439
1422
|
const seed = reactUid.useUIDSeed();
|
|
1440
1423
|
const [isCloseButtonPresent, setIsCloseButtonPresent] = React.useState(false);
|
|
1441
|
-
const idPrefix = React.useMemo(() => id || seed(`sheet_${'9.0.0-next.
|
|
1424
|
+
const idPrefix = React.useMemo(() => id || seed(`sheet_${'9.0.0-next.7'}`), [id, seed]);
|
|
1442
1425
|
const titleId = `${idPrefix}--title`;
|
|
1443
1426
|
const descriptionId = `${idPrefix}--description`;
|
|
1444
1427
|
const sheetContext = React.useMemo(() => ({
|
|
@@ -1514,7 +1497,6 @@ exports.NavItemIcon = NavItemIcon;
|
|
|
1514
1497
|
exports.NavItemText = NavItemText;
|
|
1515
1498
|
exports.PRODUCTS = PRODUCTS;
|
|
1516
1499
|
exports.Sheet = Sheet;
|
|
1517
|
-
exports.Sidebar = Sidebar;
|
|
1518
1500
|
exports.SkipNav = SkipNav;
|
|
1519
1501
|
exports.SubNav = SubNav;
|
|
1520
1502
|
exports.SubNavItem = SubNavItem;
|
package/dist/index.esm.js
CHANGED
|
@@ -35,39 +35,39 @@ function _extends$3() {
|
|
|
35
35
|
const PLACEMENT = ['end', 'start'];
|
|
36
36
|
const PRODUCTS = ['chat', 'connect', 'explore', 'guide', 'message', 'support', 'talk'];
|
|
37
37
|
|
|
38
|
-
const COMPONENT_ID$
|
|
38
|
+
const COMPONENT_ID$z = 'chrome.chrome';
|
|
39
39
|
const StyledChrome = styled.div.attrs({
|
|
40
|
-
'data-garden-id': COMPONENT_ID$
|
|
41
|
-
'data-garden-version': '9.0.0-next.
|
|
40
|
+
'data-garden-id': COMPONENT_ID$z,
|
|
41
|
+
'data-garden-version': '9.0.0-next.7'
|
|
42
42
|
}).withConfig({
|
|
43
43
|
displayName: "StyledChrome",
|
|
44
44
|
componentId: "sc-1uqm6u6-0"
|
|
45
|
-
})(["display:flex;position:relative;margin:0;height:100vh;overflow-y:hidden;font-family:", ";direction:", ";", ";"], props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', props => retrieveComponentStyles(COMPONENT_ID$
|
|
45
|
+
})(["display:flex;position:relative;margin:0;height:100vh;overflow-y:hidden;font-family:", ";direction:", ";", ";"], props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', props => retrieveComponentStyles(COMPONENT_ID$z, props));
|
|
46
46
|
StyledChrome.defaultProps = {
|
|
47
47
|
theme: DEFAULT_THEME
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
-
const COMPONENT_ID$
|
|
50
|
+
const COMPONENT_ID$y = 'chrome.header_item_icon';
|
|
51
51
|
const StyledHeaderItemIcon = styled.div.attrs({
|
|
52
|
-
'data-garden-id': COMPONENT_ID$
|
|
53
|
-
'data-garden-version': '9.0.0-next.
|
|
52
|
+
'data-garden-id': COMPONENT_ID$y,
|
|
53
|
+
'data-garden-version': '9.0.0-next.7'
|
|
54
54
|
}).withConfig({
|
|
55
55
|
displayName: "StyledHeaderItemIcon",
|
|
56
56
|
componentId: "sc-1jhhp6z-0"
|
|
57
|
-
})(["transition:transform 0.25s ease-in-out;margin:0 3px;width:", ";min-width:", ";height:", ";", ";"], props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => retrieveComponentStyles(COMPONENT_ID$
|
|
57
|
+
})(["transition:transform 0.25s ease-in-out;margin:0 3px;width:", ";min-width:", ";height:", ";", ";"], props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => retrieveComponentStyles(COMPONENT_ID$y, props));
|
|
58
58
|
StyledHeaderItemIcon.defaultProps = {
|
|
59
59
|
theme: DEFAULT_THEME
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
const COMPONENT_ID$
|
|
62
|
+
const COMPONENT_ID$x = 'chrome.base_header_item';
|
|
63
63
|
const getHeaderItemSize = props => `${props.theme.space.base * 7.5}px`;
|
|
64
64
|
const sizeStyles$4 = props => {
|
|
65
65
|
const size = props.theme.space.base * 7.5;
|
|
66
66
|
return css(["padding:0 3px;min-width:", "px;height:", ";line-height:", ";"], size, props.maxY ? '100%' : `${size}px`, getLineHeight(size, props.theme.fontSizes.md));
|
|
67
67
|
};
|
|
68
68
|
const StyledBaseHeaderItem = styled.button.attrs({
|
|
69
|
-
'data-garden-id': COMPONENT_ID$
|
|
70
|
-
'data-garden-version': '9.0.0-next.
|
|
69
|
+
'data-garden-id': COMPONENT_ID$x,
|
|
70
|
+
'data-garden-version': '9.0.0-next.7'
|
|
71
71
|
}).withConfig({
|
|
72
72
|
displayName: "StyledBaseHeaderItem",
|
|
73
73
|
componentId: "sc-1qua7h6-0"
|
|
@@ -79,25 +79,25 @@ const StyledBaseHeaderItem = styled.button.attrs({
|
|
|
79
79
|
return '0';
|
|
80
80
|
}
|
|
81
81
|
return props.theme.borderRadii.md;
|
|
82
|
-
}, sizeStyles$4, props => retrieveComponentStyles(COMPONENT_ID$
|
|
82
|
+
}, sizeStyles$4, props => retrieveComponentStyles(COMPONENT_ID$x, props));
|
|
83
83
|
StyledBaseHeaderItem.defaultProps = {
|
|
84
84
|
theme: DEFAULT_THEME
|
|
85
85
|
};
|
|
86
86
|
|
|
87
|
-
const COMPONENT_ID$
|
|
87
|
+
const COMPONENT_ID$w = 'chrome.header_item_text';
|
|
88
88
|
const clippedStyling = css(["position:absolute;margin:0;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
|
|
89
89
|
const StyledHeaderItemText = styled.span.attrs({
|
|
90
|
-
'data-garden-id': COMPONENT_ID$
|
|
91
|
-
'data-garden-version': '9.0.0-next.
|
|
90
|
+
'data-garden-id': COMPONENT_ID$w,
|
|
91
|
+
'data-garden-version': '9.0.0-next.7'
|
|
92
92
|
}).withConfig({
|
|
93
93
|
displayName: "StyledHeaderItemText",
|
|
94
94
|
componentId: "sc-goz7la-0"
|
|
95
|
-
})(["margin:0 3px;", " ", ";"], props => props.isClipped && clippedStyling, props => retrieveComponentStyles(COMPONENT_ID$
|
|
95
|
+
})(["margin:0 3px;", " ", ";"], props => props.isClipped && clippedStyling, props => retrieveComponentStyles(COMPONENT_ID$w, props));
|
|
96
96
|
StyledHeaderItemText.defaultProps = {
|
|
97
97
|
theme: DEFAULT_THEME
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
const COMPONENT_ID$
|
|
100
|
+
const COMPONENT_ID$v = 'chrome.nav';
|
|
101
101
|
const colorStyles$6 = props => {
|
|
102
102
|
const shade = props.isDark || props.isLight ? 600 : 700;
|
|
103
103
|
const backgroundColor = getColorV8(props.hue, shade, props.theme);
|
|
@@ -111,17 +111,17 @@ const getExpandedNavWidth = () => {
|
|
|
111
111
|
return `200px`;
|
|
112
112
|
};
|
|
113
113
|
const StyledNav = styled.nav.attrs({
|
|
114
|
-
'data-garden-id': COMPONENT_ID$
|
|
115
|
-
'data-garden-version': '9.0.0-next.
|
|
114
|
+
'data-garden-id': COMPONENT_ID$v,
|
|
115
|
+
'data-garden-version': '9.0.0-next.7'
|
|
116
116
|
}).withConfig({
|
|
117
117
|
displayName: "StyledNav",
|
|
118
118
|
componentId: "sc-6j462r-0"
|
|
119
|
-
})(["display:flex;position:relative;flex-direction:column;flex-shrink:0;order:-1;width:", ";font-size:", ";", ";", ";"], props => props.isExpanded ? getExpandedNavWidth : getNavWidth, props => props.theme.fontSizes.md, props => colorStyles$6(props), props => retrieveComponentStyles(COMPONENT_ID$
|
|
119
|
+
})(["display:flex;position:relative;flex-direction:column;flex-shrink:0;order:-1;width:", ";font-size:", ";", ";", ";"], props => props.isExpanded ? getExpandedNavWidth : getNavWidth, props => props.theme.fontSizes.md, props => colorStyles$6(props), props => retrieveComponentStyles(COMPONENT_ID$v, props));
|
|
120
120
|
StyledNav.defaultProps = {
|
|
121
121
|
theme: DEFAULT_THEME
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
-
const COMPONENT_ID$
|
|
124
|
+
const COMPONENT_ID$u = 'chrome.header_item';
|
|
125
125
|
const retrieveProductColor$1 = props => {
|
|
126
126
|
switch (props.product) {
|
|
127
127
|
case 'chat':
|
|
@@ -143,18 +143,18 @@ const retrieveProductColor$1 = props => {
|
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
const StyledLogoHeaderItem = styled(StyledBaseHeaderItem).attrs({
|
|
146
|
-
'data-garden-id': COMPONENT_ID$
|
|
147
|
-
'data-garden-version': '9.0.0-next.
|
|
146
|
+
'data-garden-id': COMPONENT_ID$u,
|
|
147
|
+
'data-garden-version': '9.0.0-next.7',
|
|
148
148
|
as: 'div'
|
|
149
149
|
}).withConfig({
|
|
150
150
|
displayName: "StyledLogoHeaderItem",
|
|
151
151
|
componentId: "sc-1n1d1yv-0"
|
|
152
|
-
})(["display:none;order:0;margin-right:", ";margin-left:", ";border-", ":", ";border-radius:0;padding:0;width:", ";height:100%;overflow:hidden;fill:", ";text-decoration:none;color:", ";", "{", "}", "{margin:0;width:", ";height:", ";}", ";"], props => props.theme.rtl ? `-${props.theme.space.base}px` : 'auto', props => props.theme.rtl ? 'auto' : `-${props.theme.space.base}px`, props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.borders.sm} ${getColorV8('neutralHue', 300, props.theme)}`, props => getNavWidth(props), props => getColorV8('chromeHue', 700, props.theme), props => retrieveProductColor$1(props), StyledHeaderItemText, clippedStyling, StyledHeaderItemIcon, props => props.theme.iconSizes.lg, props => props.theme.iconSizes.lg, props => retrieveComponentStyles(COMPONENT_ID$
|
|
152
|
+
})(["display:none;order:0;margin-right:", ";margin-left:", ";border-", ":", ";border-radius:0;padding:0;width:", ";height:100%;overflow:hidden;fill:", ";text-decoration:none;color:", ";", "{", "}", "{margin:0;width:", ";height:", ";}", ";"], props => props.theme.rtl ? `-${props.theme.space.base}px` : 'auto', props => props.theme.rtl ? 'auto' : `-${props.theme.space.base}px`, props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.borders.sm} ${getColorV8('neutralHue', 300, props.theme)}`, props => getNavWidth(props), props => getColorV8('chromeHue', 700, props.theme), props => retrieveProductColor$1(props), StyledHeaderItemText, clippedStyling, StyledHeaderItemIcon, props => props.theme.iconSizes.lg, props => props.theme.iconSizes.lg, props => retrieveComponentStyles(COMPONENT_ID$u, props));
|
|
153
153
|
StyledLogoHeaderItem.defaultProps = {
|
|
154
154
|
theme: DEFAULT_THEME
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
-
const COMPONENT_ID$
|
|
157
|
+
const COMPONENT_ID$t = 'chrome.base_nav_item';
|
|
158
158
|
const getNavItemHeight = props => {
|
|
159
159
|
return `${props.theme.space.base * 13}px`;
|
|
160
160
|
};
|
|
@@ -164,8 +164,8 @@ const sizeStyles$3 = props => {
|
|
|
164
164
|
return css(["padding:", " ", ";min-height:", ";"], verticalPadding, horizontalPadding, getNavItemHeight);
|
|
165
165
|
};
|
|
166
166
|
const StyledBaseNavItem = styled.button.attrs({
|
|
167
|
-
'data-garden-id': COMPONENT_ID$
|
|
168
|
-
'data-garden-version': '9.0.0-next.
|
|
167
|
+
'data-garden-id': COMPONENT_ID$t,
|
|
168
|
+
'data-garden-version': '9.0.0-next.7'
|
|
169
169
|
}).withConfig({
|
|
170
170
|
displayName: "StyledBaseNavItem",
|
|
171
171
|
componentId: "sc-zvo43f-0"
|
|
@@ -174,13 +174,13 @@ StyledBaseNavItem.defaultProps = {
|
|
|
174
174
|
theme: DEFAULT_THEME
|
|
175
175
|
};
|
|
176
176
|
|
|
177
|
-
const COMPONENT_ID$
|
|
177
|
+
const COMPONENT_ID$s = 'chrome.header';
|
|
178
178
|
const getHeaderHeight = props => {
|
|
179
179
|
return getNavItemHeight(props);
|
|
180
180
|
};
|
|
181
181
|
const StyledHeader = styled.header.attrs({
|
|
182
|
-
'data-garden-id': COMPONENT_ID$
|
|
183
|
-
'data-garden-version': '9.0.0-next.
|
|
182
|
+
'data-garden-id': COMPONENT_ID$s,
|
|
183
|
+
'data-garden-version': '9.0.0-next.7'
|
|
184
184
|
}).withConfig({
|
|
185
185
|
displayName: "StyledHeader",
|
|
186
186
|
componentId: "sc-1cexpz-0"
|
|
@@ -188,12 +188,12 @@ const StyledHeader = styled.header.attrs({
|
|
|
188
188
|
${StyledLogoHeaderItem} {
|
|
189
189
|
display: inline-flex;
|
|
190
190
|
}
|
|
191
|
-
`, props => retrieveComponentStyles(COMPONENT_ID$
|
|
191
|
+
`, props => retrieveComponentStyles(COMPONENT_ID$s, props));
|
|
192
192
|
StyledHeader.defaultProps = {
|
|
193
193
|
theme: DEFAULT_THEME
|
|
194
194
|
};
|
|
195
195
|
|
|
196
|
-
const COMPONENT_ID$
|
|
196
|
+
const COMPONENT_ID$r = 'chrome.skipnav';
|
|
197
197
|
const animationStyles = () => {
|
|
198
198
|
const animationName = keyframes(["0%{transform:translate(-50%,-50%);}"]);
|
|
199
199
|
return css(["transition:opacity 0.2s ease-out,clip 0s linear 0.2s;opacity:0;clip:rect(0,0,0,0);&:focus{transition:opacity 0.2s ease-in-out;animation:0.2s cubic-bezier(0.15,0.85,0.35,1.2) ", ";opacity:1;clip:rect(0,150vw,100vh,-50vw);}"], animationName);
|
|
@@ -217,12 +217,12 @@ const sizeStyles$2 = props => {
|
|
|
217
217
|
return css(["top:", ";padding:", ";padding-", ":", ";line-height:", ";font-size:", ";"], top, padding, props.theme.rtl ? 'right' : 'left', paddingStart, lineHeight, fontSize);
|
|
218
218
|
};
|
|
219
219
|
const StyledSkipNav = styled.a.attrs({
|
|
220
|
-
'data-garden-id': COMPONENT_ID$
|
|
221
|
-
'data-garden-version': '9.0.0-next.
|
|
220
|
+
'data-garden-id': COMPONENT_ID$r,
|
|
221
|
+
'data-garden-version': '9.0.0-next.7'
|
|
222
222
|
}).withConfig({
|
|
223
223
|
displayName: "StyledSkipNav",
|
|
224
224
|
componentId: "sc-1tsro34-0"
|
|
225
|
-
})(["", ";display:inline-flex;position:absolute;left:50%;align-items:center;justify-content:center;transform:translateX(-50%);direction:", ";z-index:", ";border:", ";border-radius:", ";text-decoration:underline;white-space:nowrap;", ";", "{text-decoration:none;}&:hover{text-decoration:underline;}", ";", ";"], animationStyles(), props => props.theme.rtl && 'rtl', props => props.zIndex, props => props.theme.borders.sm, props => props.theme.borderRadii.md, props => sizeStyles$2(props), SELECTOR_FOCUS_VISIBLE, props => colorStyles$5(props.theme), props => retrieveComponentStyles(COMPONENT_ID$
|
|
225
|
+
})(["", ";display:inline-flex;position:absolute;left:50%;align-items:center;justify-content:center;transform:translateX(-50%);direction:", ";z-index:", ";border:", ";border-radius:", ";text-decoration:underline;white-space:nowrap;", ";", "{text-decoration:none;}&:hover{text-decoration:underline;}", ";", ";"], animationStyles(), props => props.theme.rtl && 'rtl', props => props.zIndex, props => props.theme.borders.sm, props => props.theme.borderRadii.md, props => sizeStyles$2(props), SELECTOR_FOCUS_VISIBLE, props => colorStyles$5(props.theme), props => retrieveComponentStyles(COMPONENT_ID$r, props));
|
|
226
226
|
StyledSkipNav.defaultProps = {
|
|
227
227
|
theme: DEFAULT_THEME
|
|
228
228
|
};
|
|
@@ -243,90 +243,78 @@ var SvgLinkStroke = function SvgLinkStroke(props) {
|
|
|
243
243
|
})));
|
|
244
244
|
};
|
|
245
245
|
|
|
246
|
-
const COMPONENT_ID$
|
|
246
|
+
const COMPONENT_ID$q = 'chrome.skipnav_icon';
|
|
247
247
|
const sizeStyles$1 = theme => {
|
|
248
248
|
const margin = `${theme.space.base * 2}px`;
|
|
249
249
|
const size = theme.iconSizes.md;
|
|
250
250
|
return css(["margin-", ":", ";width:", ";height:", ";"], theme.rtl ? 'left' : 'right', margin, size, size);
|
|
251
251
|
};
|
|
252
252
|
const StyledSkipNavIcon = styled(SvgLinkStroke).attrs({
|
|
253
|
-
'data-garden-id': COMPONENT_ID$
|
|
254
|
-
'data-garden-version': '9.0.0-next.
|
|
253
|
+
'data-garden-id': COMPONENT_ID$q,
|
|
254
|
+
'data-garden-version': '9.0.0-next.7'
|
|
255
255
|
}).withConfig({
|
|
256
256
|
displayName: "StyledSkipNavIcon",
|
|
257
257
|
componentId: "sc-1ika5z4-0"
|
|
258
|
-
})(["transform:", ";color:", ";", ";", ";"], props => props.theme.rtl && 'scaleX(-1)', props => getColorV8('neutralHue', 600, props.theme), props => sizeStyles$1(props.theme), props => retrieveComponentStyles(COMPONENT_ID$
|
|
258
|
+
})(["transform:", ";color:", ";", ";", ";"], props => props.theme.rtl && 'scaleX(-1)', props => getColorV8('neutralHue', 600, props.theme), props => sizeStyles$1(props.theme), props => retrieveComponentStyles(COMPONENT_ID$q, props));
|
|
259
259
|
StyledSkipNavIcon.defaultProps = {
|
|
260
260
|
theme: DEFAULT_THEME
|
|
261
261
|
};
|
|
262
262
|
|
|
263
|
-
const COMPONENT_ID$
|
|
263
|
+
const COMPONENT_ID$p = 'chrome.body';
|
|
264
264
|
const StyledBody = styled.div.attrs({
|
|
265
|
-
'data-garden-id': COMPONENT_ID$
|
|
266
|
-
'data-garden-version': '9.0.0-next.
|
|
265
|
+
'data-garden-id': COMPONENT_ID$p,
|
|
266
|
+
'data-garden-version': '9.0.0-next.7'
|
|
267
267
|
}).withConfig({
|
|
268
268
|
displayName: "StyledBody",
|
|
269
269
|
componentId: "sc-c7h9kv-0"
|
|
270
|
-
})(["flex:1;order:1;background-color:", ";min-width:0;", ";"], props => getColorV8('neutralHue', 100, props.theme), props => retrieveComponentStyles(COMPONENT_ID$
|
|
270
|
+
})(["flex:1;order:1;background-color:", ";min-width:0;", ";"], props => getColorV8('neutralHue', 100, props.theme), props => retrieveComponentStyles(COMPONENT_ID$p, props));
|
|
271
271
|
StyledBody.defaultProps = {
|
|
272
272
|
theme: DEFAULT_THEME
|
|
273
273
|
};
|
|
274
274
|
|
|
275
|
-
const COMPONENT_ID$
|
|
275
|
+
const COMPONENT_ID$o = 'chrome.footer';
|
|
276
276
|
const getFooterHeight = props => {
|
|
277
277
|
return `${props.theme.space.base * 20}px`;
|
|
278
278
|
};
|
|
279
279
|
const StyledFooter = styled.footer.attrs({
|
|
280
|
-
'data-garden-id': COMPONENT_ID$
|
|
281
|
-
'data-garden-version': '9.0.0-next.
|
|
280
|
+
'data-garden-id': COMPONENT_ID$o,
|
|
281
|
+
'data-garden-version': '9.0.0-next.7'
|
|
282
282
|
}).withConfig({
|
|
283
283
|
displayName: "StyledFooter",
|
|
284
284
|
componentId: "sc-v7lib2-0"
|
|
285
|
-
})(["display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;border-top:", ";background-color:", ";padding:0 ", "px;height:", ";", ";"], props => `${props.theme.borders.sm} ${getColorV8('neutralHue', 300, props.theme)}`, props => getColorV8('background', 600 , props.theme), props => props.theme.space.base * 9, getFooterHeight, props => retrieveComponentStyles(COMPONENT_ID$
|
|
285
|
+
})(["display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;border-top:", ";background-color:", ";padding:0 ", "px;height:", ";", ";"], props => `${props.theme.borders.sm} ${getColorV8('neutralHue', 300, props.theme)}`, props => getColorV8('background', 600 , props.theme), props => props.theme.space.base * 9, getFooterHeight, props => retrieveComponentStyles(COMPONENT_ID$o, props));
|
|
286
286
|
StyledFooter.defaultProps = {
|
|
287
287
|
theme: DEFAULT_THEME
|
|
288
288
|
};
|
|
289
289
|
|
|
290
|
-
const COMPONENT_ID$
|
|
290
|
+
const COMPONENT_ID$n = 'chrome.content';
|
|
291
291
|
const StyledContent = styled.div.attrs({
|
|
292
|
-
'data-garden-id': COMPONENT_ID$
|
|
293
|
-
'data-garden-version': '9.0.0-next.
|
|
292
|
+
'data-garden-id': COMPONENT_ID$n,
|
|
293
|
+
'data-garden-version': '9.0.0-next.7'
|
|
294
294
|
}).withConfig({
|
|
295
295
|
displayName: "StyledContent",
|
|
296
296
|
componentId: "sc-qcuzxn-0"
|
|
297
|
-
})(["display:flex;height:", ";line-height:", ";color:", ";font-size:", ";&:focus{outline:none;}", ";"], props => props.hasFooter ? `calc(100% - ${math(`${getHeaderHeight(props)} + ${getFooterHeight(props)}`)})` : `calc(100% - ${getHeaderHeight(props)})`, props => getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props => getColorV8('foreground', 600 , props.theme), props => props.theme.fontSizes.md, props => retrieveComponentStyles(COMPONENT_ID$
|
|
297
|
+
})(["display:flex;height:", ";line-height:", ";color:", ";font-size:", ";&:focus{outline:none;}", ";"], props => props.hasFooter ? `calc(100% - ${math(`${getHeaderHeight(props)} + ${getFooterHeight(props)}`)})` : `calc(100% - ${getHeaderHeight(props)})`, props => getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props => getColorV8('foreground', 600 , props.theme), props => props.theme.fontSizes.md, props => retrieveComponentStyles(COMPONENT_ID$n, props));
|
|
298
298
|
StyledContent.defaultProps = {
|
|
299
299
|
theme: DEFAULT_THEME
|
|
300
300
|
};
|
|
301
301
|
|
|
302
|
-
const COMPONENT_ID$
|
|
302
|
+
const COMPONENT_ID$m = 'chrome.main';
|
|
303
303
|
const StyledMain = styled.main.attrs({
|
|
304
|
-
'data-garden-id': COMPONENT_ID$
|
|
305
|
-
'data-garden-version': '9.0.0-next.
|
|
304
|
+
'data-garden-id': COMPONENT_ID$m,
|
|
305
|
+
'data-garden-version': '9.0.0-next.7'
|
|
306
306
|
}).withConfig({
|
|
307
307
|
displayName: "StyledMain",
|
|
308
308
|
componentId: "sc-t61cre-0"
|
|
309
|
-
})(["flex:1;order:1;background-color:", ";overflow:auto;:focus{outline:none;}", ";"], props => getColorV8('background', 600 , props.theme), props => retrieveComponentStyles(COMPONENT_ID$
|
|
309
|
+
})(["flex:1;order:1;background-color:", ";overflow:auto;:focus{outline:none;}", ";"], props => getColorV8('background', 600 , props.theme), props => retrieveComponentStyles(COMPONENT_ID$m, props));
|
|
310
310
|
StyledMain.defaultProps = {
|
|
311
311
|
theme: DEFAULT_THEME
|
|
312
312
|
};
|
|
313
313
|
|
|
314
|
-
const COMPONENT_ID$m = 'chrome.sidebar';
|
|
315
|
-
const StyledSidebar = styled.aside.attrs({
|
|
316
|
-
'data-garden-id': COMPONENT_ID$m,
|
|
317
|
-
'data-garden-version': '9.0.0-next.6'
|
|
318
|
-
}).withConfig({
|
|
319
|
-
displayName: "StyledSidebar",
|
|
320
|
-
componentId: "sc-1q77fuw-0"
|
|
321
|
-
})(["flex-shrink:0;order:0;box-sizing:border-box;border-", ":", ";width:330px;overflow:auto;&:focus{outline:none;}", ";"], props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.borders.sm} ${getColorV8('neutralHue', 300, props.theme)}`, props => retrieveComponentStyles(COMPONENT_ID$m, props));
|
|
322
|
-
StyledSidebar.defaultProps = {
|
|
323
|
-
theme: DEFAULT_THEME
|
|
324
|
-
};
|
|
325
|
-
|
|
326
314
|
const COMPONENT_ID$l = 'chrome.footer_item';
|
|
327
315
|
const StyledFooterItem = styled.div.attrs({
|
|
328
316
|
'data-garden-id': COMPONENT_ID$l,
|
|
329
|
-
'data-garden-version': '9.0.0-next.
|
|
317
|
+
'data-garden-version': '9.0.0-next.7'
|
|
330
318
|
}).withConfig({
|
|
331
319
|
displayName: "StyledFooterItem",
|
|
332
320
|
componentId: "sc-1cktm85-0"
|
|
@@ -342,11 +330,11 @@ const imgStyles = props => {
|
|
|
342
330
|
};
|
|
343
331
|
const StyledHeaderItem = styled(StyledBaseHeaderItem).attrs({
|
|
344
332
|
'data-garden-id': COMPONENT_ID$k,
|
|
345
|
-
'data-garden-version': '9.0.0-next.
|
|
333
|
+
'data-garden-version': '9.0.0-next.7'
|
|
346
334
|
}).withConfig({
|
|
347
335
|
displayName: "StyledHeaderItem",
|
|
348
336
|
componentId: "sc-14sft6n-0"
|
|
349
|
-
})(["&:hover,&:focus{text-decoration:none;color:inherit;}", " &:focus-visible:active
|
|
337
|
+
})(["&:hover,&:focus{text-decoration:none;color:inherit;}", " &:focus-visible:active{box-shadow:none;}&:hover ", ",&:hover ", ",&:active ", ",&:active ", "{color:", ";}", " ", " ", ";"], props => focusStyles({
|
|
350
338
|
theme: props.theme,
|
|
351
339
|
inset: props.maxY
|
|
352
340
|
}), StyledHeaderItemIcon, StyledHeaderItemText, StyledHeaderItemIcon, StyledHeaderItemText, props => getColorV8('chromeHue', 700, props.theme), imgStyles, props => props.isRound && `
|
|
@@ -361,7 +349,7 @@ StyledHeaderItem.defaultProps = {
|
|
|
361
349
|
const COMPONENT_ID$j = 'chrome.header_item_wrapper';
|
|
362
350
|
const StyledHeaderItemWrapper = styled(StyledBaseHeaderItem).attrs({
|
|
363
351
|
'data-garden-id': COMPONENT_ID$j,
|
|
364
|
-
'data-garden-version': '9.0.0-next.
|
|
352
|
+
'data-garden-version': '9.0.0-next.7',
|
|
365
353
|
as: 'div'
|
|
366
354
|
}).withConfig({
|
|
367
355
|
displayName: "StyledHeaderItemWrapper",
|
|
@@ -399,7 +387,7 @@ const colorStyles$4 = props => {
|
|
|
399
387
|
};
|
|
400
388
|
const StyledLogoNavItem = styled(StyledBaseNavItem).attrs({
|
|
401
389
|
'data-garden-id': COMPONENT_ID$i,
|
|
402
|
-
'data-garden-version': '9.0.0-next.
|
|
390
|
+
'data-garden-version': '9.0.0-next.7',
|
|
403
391
|
as: 'div'
|
|
404
392
|
}).withConfig({
|
|
405
393
|
displayName: "StyledLogoNavItem",
|
|
@@ -412,7 +400,7 @@ StyledLogoNavItem.defaultProps = {
|
|
|
412
400
|
const COMPONENT_ID$h = 'chrome.brandmark_nav_item';
|
|
413
401
|
const StyledBrandmarkNavItem = styled(StyledBaseNavItem).attrs({
|
|
414
402
|
'data-garden-id': COMPONENT_ID$h,
|
|
415
|
-
'data-garden-version': '9.0.0-next.
|
|
403
|
+
'data-garden-version': '9.0.0-next.7',
|
|
416
404
|
as: 'div'
|
|
417
405
|
}).withConfig({
|
|
418
406
|
displayName: "StyledBrandmarkNavItem",
|
|
@@ -425,7 +413,7 @@ StyledBrandmarkNavItem.defaultProps = {
|
|
|
425
413
|
const COMPONENT_ID$g = 'chrome.nav_item_icon';
|
|
426
414
|
const StyledNavItemIcon = styled.div.attrs({
|
|
427
415
|
'data-garden-id': COMPONENT_ID$g,
|
|
428
|
-
'data-garden-version': '9.0.0-next.
|
|
416
|
+
'data-garden-version': '9.0.0-next.7'
|
|
429
417
|
}).withConfig({
|
|
430
418
|
displayName: "StyledNavItemIcon",
|
|
431
419
|
componentId: "sc-7w9rpt-0"
|
|
@@ -471,7 +459,7 @@ const colorStyles$3 = props => {
|
|
|
471
459
|
};
|
|
472
460
|
const StyledNavItem = styled(StyledBaseNavItem).attrs({
|
|
473
461
|
'data-garden-id': COMPONENT_ID$f,
|
|
474
|
-
'data-garden-version': '9.0.0-next.
|
|
462
|
+
'data-garden-version': '9.0.0-next.7',
|
|
475
463
|
as: 'button'
|
|
476
464
|
}).withConfig({
|
|
477
465
|
displayName: "StyledNavItem",
|
|
@@ -488,7 +476,7 @@ StyledNavItem.defaultProps = {
|
|
|
488
476
|
const COMPONENT_ID$e = 'chrome.nav_item_text';
|
|
489
477
|
const StyledNavItemText = styled.span.attrs({
|
|
490
478
|
'data-garden-id': COMPONENT_ID$e,
|
|
491
|
-
'data-garden-version': '9.0.0-next.
|
|
479
|
+
'data-garden-version': '9.0.0-next.7'
|
|
492
480
|
}).withConfig({
|
|
493
481
|
displayName: "StyledNavItemText",
|
|
494
482
|
componentId: "sc-13m84xl-0"
|
|
@@ -541,7 +529,7 @@ const getSubNavItemHeight = props => {
|
|
|
541
529
|
};
|
|
542
530
|
const StyledSubNavItem = styled.button.attrs({
|
|
543
531
|
'data-garden-id': COMPONENT_ID$d,
|
|
544
|
-
'data-garden-version': '9.0.0-next.
|
|
532
|
+
'data-garden-version': '9.0.0-next.7'
|
|
545
533
|
}).withConfig({
|
|
546
534
|
displayName: "StyledSubNavItem",
|
|
547
535
|
componentId: "sc-1yg9dpx-0"
|
|
@@ -564,7 +552,7 @@ const colorStyles$1 = props => {
|
|
|
564
552
|
};
|
|
565
553
|
const StyledSubNav = styled.nav.attrs({
|
|
566
554
|
'data-garden-id': COMPONENT_ID$c,
|
|
567
|
-
'data-garden-version': '9.0.0-next.
|
|
555
|
+
'data-garden-version': '9.0.0-next.7'
|
|
568
556
|
}).withConfig({
|
|
569
557
|
displayName: "StyledSubNav",
|
|
570
558
|
componentId: "sc-19hjou6-0"
|
|
@@ -582,7 +570,7 @@ const sizeStyles = props => {
|
|
|
582
570
|
};
|
|
583
571
|
const StyledSubNavItemText = styled.span.attrs({
|
|
584
572
|
'data-garden-id': COMPONENT_ID$b,
|
|
585
|
-
'data-garden-version': '9.0.0-next.
|
|
573
|
+
'data-garden-version': '9.0.0-next.7'
|
|
586
574
|
}).withConfig({
|
|
587
575
|
displayName: "StyledSubNavItemText",
|
|
588
576
|
componentId: "sc-1hy0pn7-0"
|
|
@@ -594,7 +582,7 @@ StyledSubNavItemText.defaultProps = {
|
|
|
594
582
|
const COMPONENT_ID$a = 'chrome.collapsible_sub_nav_item';
|
|
595
583
|
const StyledSubNavItemHeader = styled(StyledSubNavItem).attrs({
|
|
596
584
|
'data-garden-id': COMPONENT_ID$a,
|
|
597
|
-
'data-garden-version': '9.0.0-next.
|
|
585
|
+
'data-garden-version': '9.0.0-next.7',
|
|
598
586
|
'data-garden-header': 'true'
|
|
599
587
|
}).withConfig({
|
|
600
588
|
displayName: "StyledSubNavItemHeader",
|
|
@@ -641,7 +629,7 @@ StyledSubNavItemIcon.defaultProps = {
|
|
|
641
629
|
};
|
|
642
630
|
const StyledSubNavItemIconWrapper = styled.div.attrs({
|
|
643
631
|
'data-garden-id': COMPONENT_ID$9,
|
|
644
|
-
'data-garden-version': '9.0.0-next.
|
|
632
|
+
'data-garden-version': '9.0.0-next.7'
|
|
645
633
|
}).withConfig({
|
|
646
634
|
displayName: "StyledSubNavItemIcon__StyledSubNavItemIconWrapper",
|
|
647
635
|
componentId: "sc-1d02hho-1"
|
|
@@ -654,7 +642,7 @@ const PANEL_COMPONENT_ID = 'chrome.collapsible_sub_nav_item_panel';
|
|
|
654
642
|
const hiddenStyling = css(["visibility:hidden;max-height:0 !important;overflow:hidden;"]);
|
|
655
643
|
const StyledSubNavPanel = styled.div.attrs({
|
|
656
644
|
'data-garden-id': PANEL_COMPONENT_ID,
|
|
657
|
-
'data-garden-version': '9.0.0-next.
|
|
645
|
+
'data-garden-version': '9.0.0-next.7'
|
|
658
646
|
}).withConfig({
|
|
659
647
|
displayName: "StyledSubNavPanel",
|
|
660
648
|
componentId: "sc-1jv3rpv-0"
|
|
@@ -685,7 +673,7 @@ const borderStyle = _ref => {
|
|
|
685
673
|
};
|
|
686
674
|
const StyledSheet = styled.aside.attrs({
|
|
687
675
|
'data-garden-id': COMPONENT_ID$8,
|
|
688
|
-
'data-garden-version': '9.0.0-next.
|
|
676
|
+
'data-garden-version': '9.0.0-next.7'
|
|
689
677
|
}).withConfig({
|
|
690
678
|
displayName: "StyledSheet",
|
|
691
679
|
componentId: "sc-dx8ijk-0"
|
|
@@ -697,7 +685,7 @@ StyledSheet.defaultProps = {
|
|
|
697
685
|
const COMPONENT_ID$7 = 'chrome.sheet_wrapper';
|
|
698
686
|
const StyledSheetWrapper = styled.div.attrs({
|
|
699
687
|
'data-garden-id': COMPONENT_ID$7,
|
|
700
|
-
'data-garden-version': '9.0.0-next.
|
|
688
|
+
'data-garden-version': '9.0.0-next.7'
|
|
701
689
|
}).withConfig({
|
|
702
690
|
displayName: "StyledSheetWrapper",
|
|
703
691
|
componentId: "sc-f6x9zb-0"
|
|
@@ -724,7 +712,7 @@ StyledSheetWrapper.defaultProps = {
|
|
|
724
712
|
const COMPONENT_ID$6 = 'chrome.sheet_title';
|
|
725
713
|
const StyledSheetTitle = styled.div.attrs({
|
|
726
714
|
'data-garden-id': COMPONENT_ID$6,
|
|
727
|
-
'data-garden-version': '9.0.0-next.
|
|
715
|
+
'data-garden-version': '9.0.0-next.7'
|
|
728
716
|
}).withConfig({
|
|
729
717
|
displayName: "StyledSheetTitle",
|
|
730
718
|
componentId: "sc-1gogk75-0"
|
|
@@ -736,7 +724,7 @@ StyledSheetTitle.defaultProps = {
|
|
|
736
724
|
const COMPONENT_ID$5 = 'chrome.sheet_description';
|
|
737
725
|
const StyledSheetDescription = styled.div.attrs({
|
|
738
726
|
'data-garden-id': COMPONENT_ID$5,
|
|
739
|
-
'data-garden-version': '9.0.0-next.
|
|
727
|
+
'data-garden-version': '9.0.0-next.7'
|
|
740
728
|
}).withConfig({
|
|
741
729
|
displayName: "StyledSheetDescription",
|
|
742
730
|
componentId: "sc-1puglb6-0"
|
|
@@ -748,7 +736,7 @@ StyledSheetDescription.defaultProps = {
|
|
|
748
736
|
const COMPONENT_ID$4 = 'chrome.sheet_body';
|
|
749
737
|
const StyledSheetBody = styled.div.attrs({
|
|
750
738
|
'data-garden-id': COMPONENT_ID$4,
|
|
751
|
-
'data-garden-version': '9.0.0-next.
|
|
739
|
+
'data-garden-version': '9.0.0-next.7'
|
|
752
740
|
}).withConfig({
|
|
753
741
|
displayName: "StyledSheetBody",
|
|
754
742
|
componentId: "sc-bt4eoj-0"
|
|
@@ -772,7 +760,7 @@ const colorStyles = props => {
|
|
|
772
760
|
};
|
|
773
761
|
const StyledSheetClose = styled.button.attrs({
|
|
774
762
|
'data-garden-id': COMPONENT_ID$3,
|
|
775
|
-
'data-garden-version': '9.0.0-next.
|
|
763
|
+
'data-garden-version': '9.0.0-next.7'
|
|
776
764
|
}).withConfig({
|
|
777
765
|
displayName: "StyledSheetClose",
|
|
778
766
|
componentId: "sc-1ab02oq-0"
|
|
@@ -784,7 +772,7 @@ StyledSheetClose.defaultProps = {
|
|
|
784
772
|
const COMPONENT_ID$2 = 'chrome.sheet_footer';
|
|
785
773
|
const StyledSheetFooter = styled.footer.attrs({
|
|
786
774
|
'data-garden-id': COMPONENT_ID$2,
|
|
787
|
-
'data-garden-version': '9.0.0-next.
|
|
775
|
+
'data-garden-version': '9.0.0-next.7'
|
|
788
776
|
}).withConfig({
|
|
789
777
|
displayName: "StyledSheetFooter",
|
|
790
778
|
componentId: "sc-2cktos-0"
|
|
@@ -796,7 +784,7 @@ StyledSheetFooter.defaultProps = {
|
|
|
796
784
|
const COMPONENT_ID$1 = 'chrome.sheet_footer_item';
|
|
797
785
|
const StyledSheetFooterItem = styled.div.attrs({
|
|
798
786
|
'data-garden-id': COMPONENT_ID$1,
|
|
799
|
-
'data-garden-version': '9.0.0-next.
|
|
787
|
+
'data-garden-version': '9.0.0-next.7'
|
|
800
788
|
}).withConfig({
|
|
801
789
|
displayName: "StyledSheetFooterItem",
|
|
802
790
|
componentId: "sc-r9ixh-0"
|
|
@@ -808,7 +796,7 @@ StyledSheetFooterItem.defaultProps = {
|
|
|
808
796
|
const COMPONENT_ID = 'chrome.sheet_header';
|
|
809
797
|
const StyledSheetHeader = styled.header.attrs({
|
|
810
798
|
'data-garden-id': COMPONENT_ID,
|
|
811
|
-
'data-garden-version': '9.0.0-next.
|
|
799
|
+
'data-garden-version': '9.0.0-next.7'
|
|
812
800
|
}).withConfig({
|
|
813
801
|
displayName: "StyledSheetHeader",
|
|
814
802
|
componentId: "sc-o2ry8i-0"
|
|
@@ -1180,11 +1168,6 @@ const Main = React__default.forwardRef((props, ref) => React__default.createElem
|
|
|
1180
1168
|
}, props)));
|
|
1181
1169
|
Main.displayName = 'Main';
|
|
1182
1170
|
|
|
1183
|
-
const Sidebar = React__default.forwardRef((props, ref) => React__default.createElement(StyledSidebar, _extends$3({
|
|
1184
|
-
ref: ref
|
|
1185
|
-
}, props)));
|
|
1186
|
-
Sidebar.displayName = 'Sidebar';
|
|
1187
|
-
|
|
1188
1171
|
const HeaderComponent = React__default.forwardRef((props, ref) => React__default.createElement(StyledHeader, _extends$3({
|
|
1189
1172
|
ref: ref
|
|
1190
1173
|
}, props)));
|
|
@@ -1412,7 +1395,7 @@ const SheetComponent = React__default.forwardRef((_ref, ref) => {
|
|
|
1412
1395
|
const sheetRef = useRef(null);
|
|
1413
1396
|
const seed = useUIDSeed();
|
|
1414
1397
|
const [isCloseButtonPresent, setIsCloseButtonPresent] = useState(false);
|
|
1415
|
-
const idPrefix = useMemo(() => id || seed(`sheet_${'9.0.0-next.
|
|
1398
|
+
const idPrefix = useMemo(() => id || seed(`sheet_${'9.0.0-next.7'}`), [id, seed]);
|
|
1416
1399
|
const titleId = `${idPrefix}--title`;
|
|
1417
1400
|
const descriptionId = `${idPrefix}--description`;
|
|
1418
1401
|
const sheetContext = useMemo(() => ({
|
|
@@ -1470,4 +1453,4 @@ Sheet.FooterItem = FooterItem;
|
|
|
1470
1453
|
Sheet.Header = Header;
|
|
1471
1454
|
Sheet.Title = Title;
|
|
1472
1455
|
|
|
1473
|
-
export { Body$1 as Body, Chrome, CollapsibleSubNavItem, Content, Footer$1 as Footer, FooterItem$1 as FooterItem, Header$1 as Header, HeaderItem, HeaderItemIcon, HeaderItemText, HeaderItemWrapper, Main, Nav, NavItem, NavItemIcon, NavItemText, PRODUCTS, Sheet,
|
|
1456
|
+
export { Body$1 as Body, Chrome, CollapsibleSubNavItem, Content, Footer$1 as Footer, FooterItem$1 as FooterItem, Header$1 as Header, HeaderItem, HeaderItemIcon, HeaderItemText, HeaderItemWrapper, Main, Nav, NavItem, NavItemIcon, NavItemText, PRODUCTS, Sheet, SkipNav, SubNav, SubNavItem, SubNavItemText };
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -20,7 +20,6 @@ export { SkipNav } from './elements/SkipNav';
|
|
|
20
20
|
export { Body } from './elements/body/Body';
|
|
21
21
|
export { Content } from './elements/body/Content';
|
|
22
22
|
export { Main } from './elements/body/Main';
|
|
23
|
-
export { Sidebar } from './elements/body/Sidebar';
|
|
24
23
|
export { Header } from './elements/header/Header';
|
|
25
24
|
export { Footer } from './elements/footer/Footer';
|
|
26
25
|
export { Nav } from './elements/nav/Nav';
|
|
@@ -10,7 +10,6 @@ export { StyledSkipNavIcon } from './StyledSkipNavIcon';
|
|
|
10
10
|
export { StyledBody } from './body/StyledBody';
|
|
11
11
|
export { StyledContent } from './body/StyledContent';
|
|
12
12
|
export { StyledMain } from './body/StyledMain';
|
|
13
|
-
export { StyledSidebar } from './body/StyledSidebar';
|
|
14
13
|
export { StyledFooter } from './footer/StyledFooter';
|
|
15
14
|
export { StyledFooterItem } from './footer/StyledFooterItem';
|
|
16
15
|
export { StyledHeader } from './header/StyledHeader';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-chrome",
|
|
3
|
-
"version": "9.0.0-next.
|
|
3
|
+
"version": "9.0.0-next.7",
|
|
4
4
|
"description": "Components relating to Chrome within the Garden Design System.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"react-merge-refs": "^2.0.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@zendeskgarden/react-theming": "^
|
|
32
|
+
"@zendeskgarden/react-theming": "^9.0.0",
|
|
33
33
|
"react": ">=16.8.0",
|
|
34
34
|
"react-dom": ">=16.8.0",
|
|
35
35
|
"styled-components": "^5.3.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@zendeskgarden/react-theming": "^9.0.0-next.
|
|
38
|
+
"@zendeskgarden/react-theming": "^9.0.0-next.7",
|
|
39
39
|
"@zendeskgarden/svg-icons": "7.0.0"
|
|
40
40
|
},
|
|
41
41
|
"keywords": [
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
50
|
"zendeskgarden:src": "src/index.ts",
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "50a2b45b2e237a490a6d460818d33498b92479ec"
|
|
52
52
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright Zendesk, Inc.
|
|
3
|
-
*
|
|
4
|
-
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
|
-
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
-
*/
|
|
7
|
-
import React from 'react';
|
|
8
|
-
/**
|
|
9
|
-
* @extends HTMLAttributes<HTMLElement>
|
|
10
|
-
*/
|
|
11
|
-
export declare const Sidebar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright Zendesk, Inc.
|
|
3
|
-
*
|
|
4
|
-
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
|
-
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
-
*/
|
|
7
|
-
export declare const StyledSidebar: import("styled-components").StyledComponent<"aside", import("styled-components").DefaultTheme, {
|
|
8
|
-
'data-garden-id': string;
|
|
9
|
-
'data-garden-version': string;
|
|
10
|
-
}, "data-garden-id" | "data-garden-version">;
|