@zendeskgarden/react-chrome 9.0.0-next.4 → 9.0.0-next.5
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 +59 -59
- package/dist/index.esm.js +60 -60
- package/dist/typings/elements/footer/FooterItem.d.ts +2 -0
- package/dist/typings/elements/header/HeaderItem.d.ts +2 -0
- package/dist/typings/elements/header/HeaderItemIcon.d.ts +2 -0
- package/dist/typings/elements/header/HeaderItemText.d.ts +2 -0
- package/dist/typings/elements/header/HeaderItemWrapper.d.ts +2 -0
- package/dist/typings/elements/nav/NavItem.d.ts +2 -0
- package/dist/typings/elements/nav/NavItemIcon.d.ts +2 -0
- package/dist/typings/elements/nav/NavItemText.d.ts +2 -0
- package/dist/typings/elements/subnav/CollapsibleSubNavItem.d.ts +2 -0
- package/dist/typings/elements/subnav/SubNavItem.d.ts +2 -0
- package/dist/typings/elements/subnav/SubNavItemText.d.ts +2 -0
- package/dist/typings/index.d.ts +0 -11
- package/package.json +4 -4
package/dist/index.cjs.js
CHANGED
|
@@ -64,7 +64,7 @@ const PRODUCTS = ['chat', 'connect', 'explore', 'guide', 'message', 'support', '
|
|
|
64
64
|
const COMPONENT_ID$A = 'chrome.chrome';
|
|
65
65
|
const StyledChrome = styled__default.default.div.attrs({
|
|
66
66
|
'data-garden-id': COMPONENT_ID$A,
|
|
67
|
-
'data-garden-version': '9.0.0-next.
|
|
67
|
+
'data-garden-version': '9.0.0-next.5'
|
|
68
68
|
}).withConfig({
|
|
69
69
|
displayName: "StyledChrome",
|
|
70
70
|
componentId: "sc-1uqm6u6-0"
|
|
@@ -76,7 +76,7 @@ StyledChrome.defaultProps = {
|
|
|
76
76
|
const COMPONENT_ID$z = 'chrome.header_item_icon';
|
|
77
77
|
const StyledHeaderItemIcon = styled__default.default.div.attrs({
|
|
78
78
|
'data-garden-id': COMPONENT_ID$z,
|
|
79
|
-
'data-garden-version': '9.0.0-next.
|
|
79
|
+
'data-garden-version': '9.0.0-next.5'
|
|
80
80
|
}).withConfig({
|
|
81
81
|
displayName: "StyledHeaderItemIcon",
|
|
82
82
|
componentId: "sc-1jhhp6z-0"
|
|
@@ -93,7 +93,7 @@ const sizeStyles$4 = props => {
|
|
|
93
93
|
};
|
|
94
94
|
const StyledBaseHeaderItem = styled__default.default.button.attrs({
|
|
95
95
|
'data-garden-id': COMPONENT_ID$y,
|
|
96
|
-
'data-garden-version': '9.0.0-next.
|
|
96
|
+
'data-garden-version': '9.0.0-next.5'
|
|
97
97
|
}).withConfig({
|
|
98
98
|
displayName: "StyledBaseHeaderItem",
|
|
99
99
|
componentId: "sc-1qua7h6-0"
|
|
@@ -114,7 +114,7 @@ const COMPONENT_ID$x = '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
116
|
'data-garden-id': COMPONENT_ID$x,
|
|
117
|
-
'data-garden-version': '9.0.0-next.
|
|
117
|
+
'data-garden-version': '9.0.0-next.5'
|
|
118
118
|
}).withConfig({
|
|
119
119
|
displayName: "StyledHeaderItemText",
|
|
120
120
|
componentId: "sc-goz7la-0"
|
|
@@ -126,7 +126,7 @@ StyledHeaderItemText.defaultProps = {
|
|
|
126
126
|
const COMPONENT_ID$w = 'chrome.nav';
|
|
127
127
|
const colorStyles$6 = props => {
|
|
128
128
|
const shade = props.isDark || props.isLight ? 600 : 700;
|
|
129
|
-
const backgroundColor = reactTheming.
|
|
129
|
+
const backgroundColor = reactTheming.getColorV8(props.hue, shade, props.theme);
|
|
130
130
|
const foregroundColor = props.isLight ? props.theme.palette.black : props.theme.palette.white;
|
|
131
131
|
return styled.css(["background-color:", ";color:", ";"], backgroundColor, foregroundColor);
|
|
132
132
|
};
|
|
@@ -138,7 +138,7 @@ const getExpandedNavWidth = () => {
|
|
|
138
138
|
};
|
|
139
139
|
const StyledNav = styled__default.default.nav.attrs({
|
|
140
140
|
'data-garden-id': COMPONENT_ID$w,
|
|
141
|
-
'data-garden-version': '9.0.0-next.
|
|
141
|
+
'data-garden-version': '9.0.0-next.5'
|
|
142
142
|
}).withConfig({
|
|
143
143
|
displayName: "StyledNav",
|
|
144
144
|
componentId: "sc-6j462r-0"
|
|
@@ -170,12 +170,12 @@ const retrieveProductColor$1 = props => {
|
|
|
170
170
|
};
|
|
171
171
|
const StyledLogoHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
172
172
|
'data-garden-id': COMPONENT_ID$v,
|
|
173
|
-
'data-garden-version': '9.0.0-next.
|
|
173
|
+
'data-garden-version': '9.0.0-next.5',
|
|
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.
|
|
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$v, props));
|
|
179
179
|
StyledLogoHeaderItem.defaultProps = {
|
|
180
180
|
theme: reactTheming.DEFAULT_THEME
|
|
181
181
|
};
|
|
@@ -191,7 +191,7 @@ const sizeStyles$3 = props => {
|
|
|
191
191
|
};
|
|
192
192
|
const StyledBaseNavItem = styled__default.default.button.attrs({
|
|
193
193
|
'data-garden-id': COMPONENT_ID$u,
|
|
194
|
-
'data-garden-version': '9.0.0-next.
|
|
194
|
+
'data-garden-version': '9.0.0-next.5'
|
|
195
195
|
}).withConfig({
|
|
196
196
|
displayName: "StyledBaseNavItem",
|
|
197
197
|
componentId: "sc-zvo43f-0"
|
|
@@ -206,11 +206,11 @@ const getHeaderHeight = props => {
|
|
|
206
206
|
};
|
|
207
207
|
const StyledHeader = styled__default.default.header.attrs({
|
|
208
208
|
'data-garden-id': COMPONENT_ID$t,
|
|
209
|
-
'data-garden-version': '9.0.0-next.
|
|
209
|
+
'data-garden-version': '9.0.0-next.5'
|
|
210
210
|
}).withConfig({
|
|
211
211
|
displayName: "StyledHeader",
|
|
212
212
|
componentId: "sc-1cexpz-0"
|
|
213
|
-
})(["display:flex;position:", ";align-items:center;justify-content:flex-end;box-sizing:border-box;border-bottom:", ";box-shadow:", ";background-color:", ";padding:0 ", "px;height:", ";color:", ";font-size:", ";", " ", ";"], props => props.isStandalone && 'relative', props => `${props.theme.borders.sm} ${reactTheming.
|
|
213
|
+
})(["display:flex;position:", ";align-items:center;justify-content:flex-end;box-sizing:border-box;border-bottom:", ";box-shadow:", ";background-color:", ";padding:0 ", "px;height:", ";color:", ";font-size:", ";", " ", ";"], props => props.isStandalone && 'relative', props => `${props.theme.borders.sm} ${reactTheming.getColorV8('neutralHue', 300, props.theme)}`, props => props.isStandalone && props.theme.shadows.lg('0', '10px', reactTheming.getColorV8('chromeHue', 600, props.theme, 0.15)), props => props.theme.colors.background, props => props.theme.space.base, getHeaderHeight, props => reactTheming.getColorV8('neutralHue', 600, props.theme), props => props.theme.fontSizes.md, props => props.isStandalone && `
|
|
214
214
|
${StyledLogoHeaderItem} {
|
|
215
215
|
display: inline-flex;
|
|
216
216
|
}
|
|
@@ -225,9 +225,9 @@ const animationStyles = () => {
|
|
|
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);
|
|
226
226
|
};
|
|
227
227
|
const colorStyles$5 = theme => {
|
|
228
|
-
const color = reactTheming.
|
|
229
|
-
const borderColor = reactTheming.
|
|
230
|
-
const boxShadow = theme.shadows.lg(`${theme.space.base * 5}px`, `${theme.space.base * 7}px`, reactTheming.
|
|
228
|
+
const color = reactTheming.getColorV8('primaryHue', 600, theme);
|
|
229
|
+
const borderColor = reactTheming.getColorV8('neutralHue', 300, theme);
|
|
230
|
+
const boxShadow = theme.shadows.lg(`${theme.space.base * 5}px`, `${theme.space.base * 7}px`, reactTheming.getColorV8('chromeHue', 600, theme, 0.15));
|
|
231
231
|
return styled.css(["border-color:", ";box-shadow:", ";background-color:", ";color:", ";&:hover,&:focus{color:", ";}", ""], borderColor, boxShadow, theme.colors.background, color, color, reactTheming.focusStyles({
|
|
232
232
|
theme,
|
|
233
233
|
inset: true,
|
|
@@ -244,7 +244,7 @@ const sizeStyles$2 = props => {
|
|
|
244
244
|
};
|
|
245
245
|
const StyledSkipNav = styled__default.default.a.attrs({
|
|
246
246
|
'data-garden-id': COMPONENT_ID$s,
|
|
247
|
-
'data-garden-version': '9.0.0-next.
|
|
247
|
+
'data-garden-version': '9.0.0-next.5'
|
|
248
248
|
}).withConfig({
|
|
249
249
|
displayName: "StyledSkipNav",
|
|
250
250
|
componentId: "sc-1tsro34-0"
|
|
@@ -277,11 +277,11 @@ const sizeStyles$1 = theme => {
|
|
|
277
277
|
};
|
|
278
278
|
const StyledSkipNavIcon = styled__default.default(SvgLinkStroke).attrs({
|
|
279
279
|
'data-garden-id': COMPONENT_ID$r,
|
|
280
|
-
'data-garden-version': '9.0.0-next.
|
|
280
|
+
'data-garden-version': '9.0.0-next.5'
|
|
281
281
|
}).withConfig({
|
|
282
282
|
displayName: "StyledSkipNavIcon",
|
|
283
283
|
componentId: "sc-1ika5z4-0"
|
|
284
|
-
})(["transform:", ";color:", ";", ";", ";"], props => props.theme.rtl && 'scaleX(-1)', props => reactTheming.
|
|
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$r, props));
|
|
285
285
|
StyledSkipNavIcon.defaultProps = {
|
|
286
286
|
theme: reactTheming.DEFAULT_THEME
|
|
287
287
|
};
|
|
@@ -289,11 +289,11 @@ StyledSkipNavIcon.defaultProps = {
|
|
|
289
289
|
const COMPONENT_ID$q = 'chrome.body';
|
|
290
290
|
const StyledBody = styled__default.default.div.attrs({
|
|
291
291
|
'data-garden-id': COMPONENT_ID$q,
|
|
292
|
-
'data-garden-version': '9.0.0-next.
|
|
292
|
+
'data-garden-version': '9.0.0-next.5'
|
|
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.
|
|
296
|
+
})(["flex:1;order:1;background-color:", ";min-width:0;", ";"], props => reactTheming.getColorV8('neutralHue', 100, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$q, props));
|
|
297
297
|
StyledBody.defaultProps = {
|
|
298
298
|
theme: reactTheming.DEFAULT_THEME
|
|
299
299
|
};
|
|
@@ -304,11 +304,11 @@ const getFooterHeight = props => {
|
|
|
304
304
|
};
|
|
305
305
|
const StyledFooter = styled__default.default.footer.attrs({
|
|
306
306
|
'data-garden-id': COMPONENT_ID$p,
|
|
307
|
-
'data-garden-version': '9.0.0-next.
|
|
307
|
+
'data-garden-version': '9.0.0-next.5'
|
|
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.
|
|
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 => props.theme.colors.background, props => props.theme.space.base * 9, getFooterHeight, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$p, props));
|
|
312
312
|
StyledFooter.defaultProps = {
|
|
313
313
|
theme: reactTheming.DEFAULT_THEME
|
|
314
314
|
};
|
|
@@ -316,7 +316,7 @@ StyledFooter.defaultProps = {
|
|
|
316
316
|
const COMPONENT_ID$o = 'chrome.content';
|
|
317
317
|
const StyledContent = styled__default.default.div.attrs({
|
|
318
318
|
'data-garden-id': COMPONENT_ID$o,
|
|
319
|
-
'data-garden-version': '9.0.0-next.
|
|
319
|
+
'data-garden-version': '9.0.0-next.5'
|
|
320
320
|
}).withConfig({
|
|
321
321
|
displayName: "StyledContent",
|
|
322
322
|
componentId: "sc-qcuzxn-0"
|
|
@@ -328,7 +328,7 @@ StyledContent.defaultProps = {
|
|
|
328
328
|
const COMPONENT_ID$n = 'chrome.main';
|
|
329
329
|
const StyledMain = styled__default.default.main.attrs({
|
|
330
330
|
'data-garden-id': COMPONENT_ID$n,
|
|
331
|
-
'data-garden-version': '9.0.0-next.
|
|
331
|
+
'data-garden-version': '9.0.0-next.5'
|
|
332
332
|
}).withConfig({
|
|
333
333
|
displayName: "StyledMain",
|
|
334
334
|
componentId: "sc-t61cre-0"
|
|
@@ -340,11 +340,11 @@ StyledMain.defaultProps = {
|
|
|
340
340
|
const COMPONENT_ID$m = 'chrome.sidebar';
|
|
341
341
|
const StyledSidebar = styled__default.default.aside.attrs({
|
|
342
342
|
'data-garden-id': COMPONENT_ID$m,
|
|
343
|
-
'data-garden-version': '9.0.0-next.
|
|
343
|
+
'data-garden-version': '9.0.0-next.5'
|
|
344
344
|
}).withConfig({
|
|
345
345
|
displayName: "StyledSidebar",
|
|
346
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.
|
|
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
348
|
StyledSidebar.defaultProps = {
|
|
349
349
|
theme: reactTheming.DEFAULT_THEME
|
|
350
350
|
};
|
|
@@ -352,7 +352,7 @@ StyledSidebar.defaultProps = {
|
|
|
352
352
|
const COMPONENT_ID$l = 'chrome.footer_item';
|
|
353
353
|
const StyledFooterItem = styled__default.default.div.attrs({
|
|
354
354
|
'data-garden-id': COMPONENT_ID$l,
|
|
355
|
-
'data-garden-version': '9.0.0-next.
|
|
355
|
+
'data-garden-version': '9.0.0-next.5'
|
|
356
356
|
}).withConfig({
|
|
357
357
|
displayName: "StyledFooterItem",
|
|
358
358
|
componentId: "sc-1cktm85-0"
|
|
@@ -368,14 +368,14 @@ const imgStyles = props => {
|
|
|
368
368
|
};
|
|
369
369
|
const StyledHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
370
370
|
'data-garden-id': COMPONENT_ID$k,
|
|
371
|
-
'data-garden-version': '9.0.0-next.
|
|
371
|
+
'data-garden-version': '9.0.0-next.5'
|
|
372
372
|
}).withConfig({
|
|
373
373
|
displayName: "StyledHeaderItem",
|
|
374
374
|
componentId: "sc-14sft6n-0"
|
|
375
375
|
})(["&:hover,&:focus{text-decoration:none;color:inherit;}", " &:focus-visible:active,&[data-garden-focus-visible]:active{box-shadow:none;}&:hover ", ",&:hover ", ",&:active ", ",&:active ", "{color:", ";}", " ", " ", ";"], props => reactTheming.focusStyles({
|
|
376
376
|
theme: props.theme,
|
|
377
377
|
inset: props.maxY
|
|
378
|
-
}), StyledHeaderItemIcon, StyledHeaderItemText, StyledHeaderItemIcon, StyledHeaderItemText, props => reactTheming.
|
|
378
|
+
}), StyledHeaderItemIcon, StyledHeaderItemText, StyledHeaderItemIcon, StyledHeaderItemText, props => reactTheming.getColorV8('chromeHue', 700, props.theme), imgStyles, props => props.isRound && `
|
|
379
379
|
${StyledHeaderItemIcon} {
|
|
380
380
|
border-radius: 100px;
|
|
381
381
|
}
|
|
@@ -387,7 +387,7 @@ StyledHeaderItem.defaultProps = {
|
|
|
387
387
|
const COMPONENT_ID$j = 'chrome.header_item_wrapper';
|
|
388
388
|
const StyledHeaderItemWrapper = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
389
389
|
'data-garden-id': COMPONENT_ID$j,
|
|
390
|
-
'data-garden-version': '9.0.0-next.
|
|
390
|
+
'data-garden-version': '9.0.0-next.5',
|
|
391
391
|
as: 'div'
|
|
392
392
|
}).withConfig({
|
|
393
393
|
displayName: "StyledHeaderItemWrapper",
|
|
@@ -425,7 +425,7 @@ const colorStyles$4 = props => {
|
|
|
425
425
|
};
|
|
426
426
|
const StyledLogoNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
427
427
|
'data-garden-id': COMPONENT_ID$i,
|
|
428
|
-
'data-garden-version': '9.0.0-next.
|
|
428
|
+
'data-garden-version': '9.0.0-next.5',
|
|
429
429
|
as: 'div'
|
|
430
430
|
}).withConfig({
|
|
431
431
|
displayName: "StyledLogoNavItem",
|
|
@@ -438,7 +438,7 @@ StyledLogoNavItem.defaultProps = {
|
|
|
438
438
|
const COMPONENT_ID$h = 'chrome.brandmark_nav_item';
|
|
439
439
|
const StyledBrandmarkNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
440
440
|
'data-garden-id': COMPONENT_ID$h,
|
|
441
|
-
'data-garden-version': '9.0.0-next.
|
|
441
|
+
'data-garden-version': '9.0.0-next.5',
|
|
442
442
|
as: 'div'
|
|
443
443
|
}).withConfig({
|
|
444
444
|
displayName: "StyledBrandmarkNavItem",
|
|
@@ -451,7 +451,7 @@ StyledBrandmarkNavItem.defaultProps = {
|
|
|
451
451
|
const COMPONENT_ID$g = 'chrome.nav_item_icon';
|
|
452
452
|
const StyledNavItemIcon = styled__default.default.div.attrs({
|
|
453
453
|
'data-garden-id': COMPONENT_ID$g,
|
|
454
|
-
'data-garden-version': '9.0.0-next.
|
|
454
|
+
'data-garden-version': '9.0.0-next.5'
|
|
455
455
|
}).withConfig({
|
|
456
456
|
displayName: "StyledNavItemIcon",
|
|
457
457
|
componentId: "sc-7w9rpt-0"
|
|
@@ -479,7 +479,7 @@ const colorStyles$3 = props => {
|
|
|
479
479
|
} else if (isDark) {
|
|
480
480
|
currentColor = polished.rgba(LIGHT, 0.4);
|
|
481
481
|
} else {
|
|
482
|
-
currentColor = reactTheming.
|
|
482
|
+
currentColor = reactTheming.getColorV8(hue, 500, theme);
|
|
483
483
|
}
|
|
484
484
|
} else {
|
|
485
485
|
hoverColor = polished.rgba(isLight ? LIGHT : DARK, 0.1);
|
|
@@ -497,7 +497,7 @@ const colorStyles$3 = props => {
|
|
|
497
497
|
};
|
|
498
498
|
const StyledNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
499
499
|
'data-garden-id': COMPONENT_ID$f,
|
|
500
|
-
'data-garden-version': '9.0.0-next.
|
|
500
|
+
'data-garden-version': '9.0.0-next.5',
|
|
501
501
|
as: 'button'
|
|
502
502
|
}).withConfig({
|
|
503
503
|
displayName: "StyledNavItem",
|
|
@@ -514,7 +514,7 @@ StyledNavItem.defaultProps = {
|
|
|
514
514
|
const COMPONENT_ID$e = 'chrome.nav_item_text';
|
|
515
515
|
const StyledNavItemText = styled__default.default.span.attrs({
|
|
516
516
|
'data-garden-id': COMPONENT_ID$e,
|
|
517
|
-
'data-garden-version': '9.0.0-next.
|
|
517
|
+
'data-garden-version': '9.0.0-next.5'
|
|
518
518
|
}).withConfig({
|
|
519
519
|
displayName: "StyledNavItemText",
|
|
520
520
|
componentId: "sc-13m84xl-0"
|
|
@@ -567,7 +567,7 @@ const getSubNavItemHeight = props => {
|
|
|
567
567
|
};
|
|
568
568
|
const StyledSubNavItem = styled__default.default.button.attrs({
|
|
569
569
|
'data-garden-id': COMPONENT_ID$d,
|
|
570
|
-
'data-garden-version': '9.0.0-next.
|
|
570
|
+
'data-garden-version': '9.0.0-next.5'
|
|
571
571
|
}).withConfig({
|
|
572
572
|
displayName: "StyledSubNavItem",
|
|
573
573
|
componentId: "sc-1yg9dpx-0"
|
|
@@ -584,13 +584,13 @@ const colorStyles$1 = props => {
|
|
|
584
584
|
} else {
|
|
585
585
|
shade = props.isDark ? 700 : 800;
|
|
586
586
|
}
|
|
587
|
-
const backgroundColor = reactTheming.
|
|
587
|
+
const backgroundColor = reactTheming.getColorV8(props.hue, shade, props.theme);
|
|
588
588
|
const foregroundColor = props.isLight ? props.theme.palette.grey[800] : props.theme.palette.white;
|
|
589
589
|
return styled.css(["background-color:", ";color:", ";"], backgroundColor, foregroundColor);
|
|
590
590
|
};
|
|
591
591
|
const StyledSubNav = styled__default.default.nav.attrs({
|
|
592
592
|
'data-garden-id': COMPONENT_ID$c,
|
|
593
|
-
'data-garden-version': '9.0.0-next.
|
|
593
|
+
'data-garden-version': '9.0.0-next.5'
|
|
594
594
|
}).withConfig({
|
|
595
595
|
displayName: "StyledSubNav",
|
|
596
596
|
componentId: "sc-19hjou6-0"
|
|
@@ -608,7 +608,7 @@ const sizeStyles = props => {
|
|
|
608
608
|
};
|
|
609
609
|
const StyledSubNavItemText = styled__default.default.span.attrs({
|
|
610
610
|
'data-garden-id': COMPONENT_ID$b,
|
|
611
|
-
'data-garden-version': '9.0.0-next.
|
|
611
|
+
'data-garden-version': '9.0.0-next.5'
|
|
612
612
|
}).withConfig({
|
|
613
613
|
displayName: "StyledSubNavItemText",
|
|
614
614
|
componentId: "sc-1hy0pn7-0"
|
|
@@ -620,7 +620,7 @@ StyledSubNavItemText.defaultProps = {
|
|
|
620
620
|
const COMPONENT_ID$a = 'chrome.collapsible_sub_nav_item';
|
|
621
621
|
const StyledSubNavItemHeader = styled__default.default(StyledSubNavItem).attrs({
|
|
622
622
|
'data-garden-id': COMPONENT_ID$a,
|
|
623
|
-
'data-garden-version': '9.0.0-next.
|
|
623
|
+
'data-garden-version': '9.0.0-next.5',
|
|
624
624
|
'data-garden-header': 'true'
|
|
625
625
|
}).withConfig({
|
|
626
626
|
displayName: "StyledSubNavItemHeader",
|
|
@@ -667,7 +667,7 @@ StyledSubNavItemIcon.defaultProps = {
|
|
|
667
667
|
};
|
|
668
668
|
const StyledSubNavItemIconWrapper = styled__default.default.div.attrs({
|
|
669
669
|
'data-garden-id': COMPONENT_ID$9,
|
|
670
|
-
'data-garden-version': '9.0.0-next.
|
|
670
|
+
'data-garden-version': '9.0.0-next.5'
|
|
671
671
|
}).withConfig({
|
|
672
672
|
displayName: "StyledSubNavItemIcon__StyledSubNavItemIconWrapper",
|
|
673
673
|
componentId: "sc-1d02hho-1"
|
|
@@ -680,7 +680,7 @@ const PANEL_COMPONENT_ID = 'chrome.collapsible_sub_nav_item_panel';
|
|
|
680
680
|
const hiddenStyling = styled.css(["visibility:hidden;max-height:0 !important;overflow:hidden;"]);
|
|
681
681
|
const StyledSubNavPanel = styled__default.default.div.attrs({
|
|
682
682
|
'data-garden-id': PANEL_COMPONENT_ID,
|
|
683
|
-
'data-garden-version': '9.0.0-next.
|
|
683
|
+
'data-garden-version': '9.0.0-next.5'
|
|
684
684
|
}).withConfig({
|
|
685
685
|
displayName: "StyledSubNavPanel",
|
|
686
686
|
componentId: "sc-1jv3rpv-0"
|
|
@@ -696,7 +696,7 @@ const borderStyle = _ref => {
|
|
|
696
696
|
placement,
|
|
697
697
|
isOpen
|
|
698
698
|
} = _ref;
|
|
699
|
-
const borderColor = isOpen ? reactTheming.
|
|
699
|
+
const borderColor = isOpen ? reactTheming.getColorV8('neutralHue', 300, theme) : 'transparent';
|
|
700
700
|
const borderSides = ['-left', '-right'];
|
|
701
701
|
let borderSide = '';
|
|
702
702
|
if (theme.rtl) {
|
|
@@ -711,7 +711,7 @@ const borderStyle = _ref => {
|
|
|
711
711
|
};
|
|
712
712
|
const StyledSheet = styled__default.default.aside.attrs({
|
|
713
713
|
'data-garden-id': COMPONENT_ID$8,
|
|
714
|
-
'data-garden-version': '9.0.0-next.
|
|
714
|
+
'data-garden-version': '9.0.0-next.5'
|
|
715
715
|
}).withConfig({
|
|
716
716
|
displayName: "StyledSheet",
|
|
717
717
|
componentId: "sc-dx8ijk-0"
|
|
@@ -723,7 +723,7 @@ StyledSheet.defaultProps = {
|
|
|
723
723
|
const COMPONENT_ID$7 = 'chrome.sheet_wrapper';
|
|
724
724
|
const StyledSheetWrapper = styled__default.default.div.attrs({
|
|
725
725
|
'data-garden-id': COMPONENT_ID$7,
|
|
726
|
-
'data-garden-version': '9.0.0-next.
|
|
726
|
+
'data-garden-version': '9.0.0-next.5'
|
|
727
727
|
}).withConfig({
|
|
728
728
|
displayName: "StyledSheetWrapper",
|
|
729
729
|
componentId: "sc-f6x9zb-0"
|
|
@@ -750,7 +750,7 @@ StyledSheetWrapper.defaultProps = {
|
|
|
750
750
|
const COMPONENT_ID$6 = 'chrome.sheet_title';
|
|
751
751
|
const StyledSheetTitle = styled__default.default.div.attrs({
|
|
752
752
|
'data-garden-id': COMPONENT_ID$6,
|
|
753
|
-
'data-garden-version': '9.0.0-next.
|
|
753
|
+
'data-garden-version': '9.0.0-next.5'
|
|
754
754
|
}).withConfig({
|
|
755
755
|
displayName: "StyledSheetTitle",
|
|
756
756
|
componentId: "sc-1gogk75-0"
|
|
@@ -762,11 +762,11 @@ StyledSheetTitle.defaultProps = {
|
|
|
762
762
|
const COMPONENT_ID$5 = 'chrome.sheet_description';
|
|
763
763
|
const StyledSheetDescription = styled__default.default.div.attrs({
|
|
764
764
|
'data-garden-id': COMPONENT_ID$5,
|
|
765
|
-
'data-garden-version': '9.0.0-next.
|
|
765
|
+
'data-garden-version': '9.0.0-next.5'
|
|
766
766
|
}).withConfig({
|
|
767
767
|
displayName: "StyledSheetDescription",
|
|
768
768
|
componentId: "sc-1puglb6-0"
|
|
769
|
-
})(["line-height:", ";color:", ";", ";"], props => reactTheming.getLineHeight(props.theme.space.base * 4, props.theme.fontSizes.md), props => reactTheming.
|
|
769
|
+
})(["line-height:", ";color:", ";", ";"], props => reactTheming.getLineHeight(props.theme.space.base * 4, props.theme.fontSizes.md), props => reactTheming.getColorV8('neutralHue', 600, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$5, props));
|
|
770
770
|
StyledSheetDescription.defaultProps = {
|
|
771
771
|
theme: reactTheming.DEFAULT_THEME
|
|
772
772
|
};
|
|
@@ -774,7 +774,7 @@ StyledSheetDescription.defaultProps = {
|
|
|
774
774
|
const COMPONENT_ID$4 = 'chrome.sheet_body';
|
|
775
775
|
const StyledSheetBody = styled__default.default.div.attrs({
|
|
776
776
|
'data-garden-id': COMPONENT_ID$4,
|
|
777
|
-
'data-garden-version': '9.0.0-next.
|
|
777
|
+
'data-garden-version': '9.0.0-next.5'
|
|
778
778
|
}).withConfig({
|
|
779
779
|
displayName: "StyledSheetBody",
|
|
780
780
|
componentId: "sc-bt4eoj-0"
|
|
@@ -792,13 +792,13 @@ const BASE_MULTIPLIERS = {
|
|
|
792
792
|
const colorStyles = props => {
|
|
793
793
|
const backgroundColor = 'primaryHue';
|
|
794
794
|
const foregroundColor = 'neutralHue';
|
|
795
|
-
return styled.css(["background-color:transparent;color:", ";&:hover{background-color:", ";color:", ";}", " &:active{transition:background-color 0.1s ease-in-out,color 0.1s ease-in-out;background-color:", ";color:", ";}"], reactTheming.
|
|
795
|
+
return styled.css(["background-color:transparent;color:", ";&:hover{background-color:", ";color:", ";}", " &:active{transition:background-color 0.1s ease-in-out,color 0.1s ease-in-out;background-color:", ";color:", ";}"], reactTheming.getColorV8(foregroundColor, 600, props.theme), reactTheming.getColorV8(backgroundColor, 600, props.theme, 0.08), reactTheming.getColorV8(foregroundColor, 700, props.theme), reactTheming.focusStyles({
|
|
796
796
|
theme: props.theme
|
|
797
|
-
}), reactTheming.
|
|
797
|
+
}), reactTheming.getColorV8(backgroundColor, 600, props.theme, 0.2), reactTheming.getColorV8(foregroundColor, 800, props.theme));
|
|
798
798
|
};
|
|
799
799
|
const StyledSheetClose = styled__default.default.button.attrs({
|
|
800
800
|
'data-garden-id': COMPONENT_ID$3,
|
|
801
|
-
'data-garden-version': '9.0.0-next.
|
|
801
|
+
'data-garden-version': '9.0.0-next.5'
|
|
802
802
|
}).withConfig({
|
|
803
803
|
displayName: "StyledSheetClose",
|
|
804
804
|
componentId: "sc-1ab02oq-0"
|
|
@@ -810,11 +810,11 @@ StyledSheetClose.defaultProps = {
|
|
|
810
810
|
const COMPONENT_ID$2 = 'chrome.sheet_footer';
|
|
811
811
|
const StyledSheetFooter = styled__default.default.footer.attrs({
|
|
812
812
|
'data-garden-id': COMPONENT_ID$2,
|
|
813
|
-
'data-garden-version': '9.0.0-next.
|
|
813
|
+
'data-garden-version': '9.0.0-next.5'
|
|
814
814
|
}).withConfig({
|
|
815
815
|
displayName: "StyledSheetFooter",
|
|
816
816
|
componentId: "sc-2cktos-0"
|
|
817
|
-
})(["display:flex;flex-flow:row wrap;align-items:center;justify-content:", ";border-top:", ";padding:", "px;", ";"], props => props.isCompact ? 'center' : 'flex-end', props => `${props.theme.borders.sm} ${reactTheming.
|
|
817
|
+
})(["display:flex;flex-flow:row wrap;align-items:center;justify-content:", ";border-top:", ";padding:", "px;", ";"], props => props.isCompact ? 'center' : 'flex-end', props => `${props.theme.borders.sm} ${reactTheming.getColorV8('neutralHue', 300, props.theme)}}`, props => props.theme.space.base * (props.isCompact ? 2.5 : 5), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$2, props));
|
|
818
818
|
StyledSheetFooter.defaultProps = {
|
|
819
819
|
theme: reactTheming.DEFAULT_THEME
|
|
820
820
|
};
|
|
@@ -822,7 +822,7 @@ StyledSheetFooter.defaultProps = {
|
|
|
822
822
|
const COMPONENT_ID$1 = 'chrome.sheet_footer_item';
|
|
823
823
|
const StyledSheetFooterItem = styled__default.default.div.attrs({
|
|
824
824
|
'data-garden-id': COMPONENT_ID$1,
|
|
825
|
-
'data-garden-version': '9.0.0-next.
|
|
825
|
+
'data-garden-version': '9.0.0-next.5'
|
|
826
826
|
}).withConfig({
|
|
827
827
|
displayName: "StyledSheetFooterItem",
|
|
828
828
|
componentId: "sc-r9ixh-0"
|
|
@@ -834,11 +834,11 @@ StyledSheetFooterItem.defaultProps = {
|
|
|
834
834
|
const COMPONENT_ID = 'chrome.sheet_header';
|
|
835
835
|
const StyledSheetHeader = styled__default.default.header.attrs({
|
|
836
836
|
'data-garden-id': COMPONENT_ID,
|
|
837
|
-
'data-garden-version': '9.0.0-next.
|
|
837
|
+
'data-garden-version': '9.0.0-next.5'
|
|
838
838
|
}).withConfig({
|
|
839
839
|
displayName: "StyledSheetHeader",
|
|
840
840
|
componentId: "sc-o2ry8i-0"
|
|
841
|
-
})(["border-bottom:", ";padding:", "px;", " ", ";"], props => `${props.theme.borders.sm} ${reactTheming.
|
|
841
|
+
})(["border-bottom:", ";padding:", "px;", " ", ";"], props => `${props.theme.borders.sm} ${reactTheming.getColorV8('neutralHue', 300, props.theme)}}`, props => props.theme.space.base * 5, props => props.isCloseButtonPresent && `padding-${props.theme.rtl ? 'left' : 'right'}: ${props.theme.space.base * (BASE_MULTIPLIERS.size + BASE_MULTIPLIERS.side + 2)}px;`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
|
|
842
842
|
StyledSheetHeader.defaultProps = {
|
|
843
843
|
theme: reactTheming.DEFAULT_THEME
|
|
844
844
|
};
|
|
@@ -1111,7 +1111,7 @@ const Chrome = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1111
1111
|
const theme = React.useContext(styled.ThemeContext);
|
|
1112
1112
|
const isLightMemoized = React.useMemo(() => {
|
|
1113
1113
|
if (hue) {
|
|
1114
|
-
const backgroundColor = reactTheming.
|
|
1114
|
+
const backgroundColor = reactTheming.getColorV8(hue, 600, theme);
|
|
1115
1115
|
const LIGHT_COLOR = 'white';
|
|
1116
1116
|
return polished.readableColor(backgroundColor, LIGHT_COLOR, undefined, false ) === LIGHT_COLOR;
|
|
1117
1117
|
}
|
|
@@ -1429,7 +1429,7 @@ const SheetComponent = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1429
1429
|
const sheetRef = React.useRef(null);
|
|
1430
1430
|
const seed = reactUid.useUIDSeed();
|
|
1431
1431
|
const [isCloseButtonPresent, setIsCloseButtonPresent] = React.useState(false);
|
|
1432
|
-
const idPrefix = React.useMemo(() => id || seed(`sheet_${'9.0.0-next.
|
|
1432
|
+
const idPrefix = React.useMemo(() => id || seed(`sheet_${'9.0.0-next.5'}`), [id, seed]);
|
|
1433
1433
|
const titleId = `${idPrefix}--title`;
|
|
1434
1434
|
const descriptionId = `${idPrefix}--description`;
|
|
1435
1435
|
const sheetContext = React.useMemo(() => ({
|
package/dist/index.esm.js
CHANGED
|
@@ -9,7 +9,7 @@ import * as React from 'react';
|
|
|
9
9
|
import React__default, { Children, isValidElement, cloneElement, useContext, createRef, useState, useEffect, useMemo, createContext, useRef, forwardRef } from 'react';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import styled, { css, keyframes, ThemeContext } from 'styled-components';
|
|
12
|
-
import { retrieveComponentStyles, DEFAULT_THEME, getLineHeight,
|
|
12
|
+
import { retrieveComponentStyles, DEFAULT_THEME, getLineHeight, getColorV8, PALETTE, SELECTOR_FOCUS_VISIBLE, focusStyles, useDocument } from '@zendeskgarden/react-theming';
|
|
13
13
|
import { math, rgba, readableColor } from 'polished';
|
|
14
14
|
import { useAccordion } from '@zendeskgarden/container-accordion';
|
|
15
15
|
import { getControlledValue } from '@zendeskgarden/container-utilities';
|
|
@@ -38,7 +38,7 @@ const PRODUCTS = ['chat', 'connect', 'explore', 'guide', 'message', 'support', '
|
|
|
38
38
|
const COMPONENT_ID$A = 'chrome.chrome';
|
|
39
39
|
const StyledChrome = styled.div.attrs({
|
|
40
40
|
'data-garden-id': COMPONENT_ID$A,
|
|
41
|
-
'data-garden-version': '9.0.0-next.
|
|
41
|
+
'data-garden-version': '9.0.0-next.5'
|
|
42
42
|
}).withConfig({
|
|
43
43
|
displayName: "StyledChrome",
|
|
44
44
|
componentId: "sc-1uqm6u6-0"
|
|
@@ -50,7 +50,7 @@ StyledChrome.defaultProps = {
|
|
|
50
50
|
const COMPONENT_ID$z = 'chrome.header_item_icon';
|
|
51
51
|
const StyledHeaderItemIcon = styled.div.attrs({
|
|
52
52
|
'data-garden-id': COMPONENT_ID$z,
|
|
53
|
-
'data-garden-version': '9.0.0-next.
|
|
53
|
+
'data-garden-version': '9.0.0-next.5'
|
|
54
54
|
}).withConfig({
|
|
55
55
|
displayName: "StyledHeaderItemIcon",
|
|
56
56
|
componentId: "sc-1jhhp6z-0"
|
|
@@ -67,7 +67,7 @@ const sizeStyles$4 = props => {
|
|
|
67
67
|
};
|
|
68
68
|
const StyledBaseHeaderItem = styled.button.attrs({
|
|
69
69
|
'data-garden-id': COMPONENT_ID$y,
|
|
70
|
-
'data-garden-version': '9.0.0-next.
|
|
70
|
+
'data-garden-version': '9.0.0-next.5'
|
|
71
71
|
}).withConfig({
|
|
72
72
|
displayName: "StyledBaseHeaderItem",
|
|
73
73
|
componentId: "sc-1qua7h6-0"
|
|
@@ -88,7 +88,7 @@ const COMPONENT_ID$x = '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
90
|
'data-garden-id': COMPONENT_ID$x,
|
|
91
|
-
'data-garden-version': '9.0.0-next.
|
|
91
|
+
'data-garden-version': '9.0.0-next.5'
|
|
92
92
|
}).withConfig({
|
|
93
93
|
displayName: "StyledHeaderItemText",
|
|
94
94
|
componentId: "sc-goz7la-0"
|
|
@@ -100,7 +100,7 @@ StyledHeaderItemText.defaultProps = {
|
|
|
100
100
|
const COMPONENT_ID$w = 'chrome.nav';
|
|
101
101
|
const colorStyles$6 = props => {
|
|
102
102
|
const shade = props.isDark || props.isLight ? 600 : 700;
|
|
103
|
-
const backgroundColor =
|
|
103
|
+
const backgroundColor = getColorV8(props.hue, shade, props.theme);
|
|
104
104
|
const foregroundColor = props.isLight ? props.theme.palette.black : props.theme.palette.white;
|
|
105
105
|
return css(["background-color:", ";color:", ";"], backgroundColor, foregroundColor);
|
|
106
106
|
};
|
|
@@ -112,7 +112,7 @@ const getExpandedNavWidth = () => {
|
|
|
112
112
|
};
|
|
113
113
|
const StyledNav = styled.nav.attrs({
|
|
114
114
|
'data-garden-id': COMPONENT_ID$w,
|
|
115
|
-
'data-garden-version': '9.0.0-next.
|
|
115
|
+
'data-garden-version': '9.0.0-next.5'
|
|
116
116
|
}).withConfig({
|
|
117
117
|
displayName: "StyledNav",
|
|
118
118
|
componentId: "sc-6j462r-0"
|
|
@@ -144,12 +144,12 @@ const retrieveProductColor$1 = props => {
|
|
|
144
144
|
};
|
|
145
145
|
const StyledLogoHeaderItem = styled(StyledBaseHeaderItem).attrs({
|
|
146
146
|
'data-garden-id': COMPONENT_ID$v,
|
|
147
|
-
'data-garden-version': '9.0.0-next.
|
|
147
|
+
'data-garden-version': '9.0.0-next.5',
|
|
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} ${
|
|
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$v, props));
|
|
153
153
|
StyledLogoHeaderItem.defaultProps = {
|
|
154
154
|
theme: DEFAULT_THEME
|
|
155
155
|
};
|
|
@@ -165,7 +165,7 @@ const sizeStyles$3 = props => {
|
|
|
165
165
|
};
|
|
166
166
|
const StyledBaseNavItem = styled.button.attrs({
|
|
167
167
|
'data-garden-id': COMPONENT_ID$u,
|
|
168
|
-
'data-garden-version': '9.0.0-next.
|
|
168
|
+
'data-garden-version': '9.0.0-next.5'
|
|
169
169
|
}).withConfig({
|
|
170
170
|
displayName: "StyledBaseNavItem",
|
|
171
171
|
componentId: "sc-zvo43f-0"
|
|
@@ -180,11 +180,11 @@ const getHeaderHeight = props => {
|
|
|
180
180
|
};
|
|
181
181
|
const StyledHeader = styled.header.attrs({
|
|
182
182
|
'data-garden-id': COMPONENT_ID$t,
|
|
183
|
-
'data-garden-version': '9.0.0-next.
|
|
183
|
+
'data-garden-version': '9.0.0-next.5'
|
|
184
184
|
}).withConfig({
|
|
185
185
|
displayName: "StyledHeader",
|
|
186
186
|
componentId: "sc-1cexpz-0"
|
|
187
|
-
})(["display:flex;position:", ";align-items:center;justify-content:flex-end;box-sizing:border-box;border-bottom:", ";box-shadow:", ";background-color:", ";padding:0 ", "px;height:", ";color:", ";font-size:", ";", " ", ";"], props => props.isStandalone && 'relative', props => `${props.theme.borders.sm} ${
|
|
187
|
+
})(["display:flex;position:", ";align-items:center;justify-content:flex-end;box-sizing:border-box;border-bottom:", ";box-shadow:", ";background-color:", ";padding:0 ", "px;height:", ";color:", ";font-size:", ";", " ", ";"], props => props.isStandalone && 'relative', props => `${props.theme.borders.sm} ${getColorV8('neutralHue', 300, props.theme)}`, props => props.isStandalone && props.theme.shadows.lg('0', '10px', getColorV8('chromeHue', 600, props.theme, 0.15)), props => props.theme.colors.background, props => props.theme.space.base, getHeaderHeight, props => getColorV8('neutralHue', 600, props.theme), props => props.theme.fontSizes.md, props => props.isStandalone && `
|
|
188
188
|
${StyledLogoHeaderItem} {
|
|
189
189
|
display: inline-flex;
|
|
190
190
|
}
|
|
@@ -199,9 +199,9 @@ const animationStyles = () => {
|
|
|
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);
|
|
200
200
|
};
|
|
201
201
|
const colorStyles$5 = theme => {
|
|
202
|
-
const color =
|
|
203
|
-
const borderColor =
|
|
204
|
-
const boxShadow = theme.shadows.lg(`${theme.space.base * 5}px`, `${theme.space.base * 7}px`,
|
|
202
|
+
const color = getColorV8('primaryHue', 600, theme);
|
|
203
|
+
const borderColor = getColorV8('neutralHue', 300, theme);
|
|
204
|
+
const boxShadow = theme.shadows.lg(`${theme.space.base * 5}px`, `${theme.space.base * 7}px`, getColorV8('chromeHue', 600, theme, 0.15));
|
|
205
205
|
return css(["border-color:", ";box-shadow:", ";background-color:", ";color:", ";&:hover,&:focus{color:", ";}", ""], borderColor, boxShadow, theme.colors.background, color, color, focusStyles({
|
|
206
206
|
theme,
|
|
207
207
|
inset: true,
|
|
@@ -218,7 +218,7 @@ const sizeStyles$2 = props => {
|
|
|
218
218
|
};
|
|
219
219
|
const StyledSkipNav = styled.a.attrs({
|
|
220
220
|
'data-garden-id': COMPONENT_ID$s,
|
|
221
|
-
'data-garden-version': '9.0.0-next.
|
|
221
|
+
'data-garden-version': '9.0.0-next.5'
|
|
222
222
|
}).withConfig({
|
|
223
223
|
displayName: "StyledSkipNav",
|
|
224
224
|
componentId: "sc-1tsro34-0"
|
|
@@ -251,11 +251,11 @@ const sizeStyles$1 = theme => {
|
|
|
251
251
|
};
|
|
252
252
|
const StyledSkipNavIcon = styled(SvgLinkStroke).attrs({
|
|
253
253
|
'data-garden-id': COMPONENT_ID$r,
|
|
254
|
-
'data-garden-version': '9.0.0-next.
|
|
254
|
+
'data-garden-version': '9.0.0-next.5'
|
|
255
255
|
}).withConfig({
|
|
256
256
|
displayName: "StyledSkipNavIcon",
|
|
257
257
|
componentId: "sc-1ika5z4-0"
|
|
258
|
-
})(["transform:", ";color:", ";", ";", ";"], props => props.theme.rtl && 'scaleX(-1)', props =>
|
|
258
|
+
})(["transform:", ";color:", ";", ";", ";"], props => props.theme.rtl && 'scaleX(-1)', props => getColorV8('neutralHue', 600, props.theme), props => sizeStyles$1(props.theme), props => retrieveComponentStyles(COMPONENT_ID$r, props));
|
|
259
259
|
StyledSkipNavIcon.defaultProps = {
|
|
260
260
|
theme: DEFAULT_THEME
|
|
261
261
|
};
|
|
@@ -263,11 +263,11 @@ StyledSkipNavIcon.defaultProps = {
|
|
|
263
263
|
const COMPONENT_ID$q = 'chrome.body';
|
|
264
264
|
const StyledBody = styled.div.attrs({
|
|
265
265
|
'data-garden-id': COMPONENT_ID$q,
|
|
266
|
-
'data-garden-version': '9.0.0-next.
|
|
266
|
+
'data-garden-version': '9.0.0-next.5'
|
|
267
267
|
}).withConfig({
|
|
268
268
|
displayName: "StyledBody",
|
|
269
269
|
componentId: "sc-c7h9kv-0"
|
|
270
|
-
})(["flex:1;order:1;background-color:", ";min-width:0;", ";"], props =>
|
|
270
|
+
})(["flex:1;order:1;background-color:", ";min-width:0;", ";"], props => getColorV8('neutralHue', 100, props.theme), props => retrieveComponentStyles(COMPONENT_ID$q, props));
|
|
271
271
|
StyledBody.defaultProps = {
|
|
272
272
|
theme: DEFAULT_THEME
|
|
273
273
|
};
|
|
@@ -278,11 +278,11 @@ const getFooterHeight = props => {
|
|
|
278
278
|
};
|
|
279
279
|
const StyledFooter = styled.footer.attrs({
|
|
280
280
|
'data-garden-id': COMPONENT_ID$p,
|
|
281
|
-
'data-garden-version': '9.0.0-next.
|
|
281
|
+
'data-garden-version': '9.0.0-next.5'
|
|
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} ${
|
|
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 => props.theme.colors.background, props => props.theme.space.base * 9, getFooterHeight, props => retrieveComponentStyles(COMPONENT_ID$p, props));
|
|
286
286
|
StyledFooter.defaultProps = {
|
|
287
287
|
theme: DEFAULT_THEME
|
|
288
288
|
};
|
|
@@ -290,7 +290,7 @@ StyledFooter.defaultProps = {
|
|
|
290
290
|
const COMPONENT_ID$o = 'chrome.content';
|
|
291
291
|
const StyledContent = styled.div.attrs({
|
|
292
292
|
'data-garden-id': COMPONENT_ID$o,
|
|
293
|
-
'data-garden-version': '9.0.0-next.
|
|
293
|
+
'data-garden-version': '9.0.0-next.5'
|
|
294
294
|
}).withConfig({
|
|
295
295
|
displayName: "StyledContent",
|
|
296
296
|
componentId: "sc-qcuzxn-0"
|
|
@@ -302,7 +302,7 @@ StyledContent.defaultProps = {
|
|
|
302
302
|
const COMPONENT_ID$n = 'chrome.main';
|
|
303
303
|
const StyledMain = styled.main.attrs({
|
|
304
304
|
'data-garden-id': COMPONENT_ID$n,
|
|
305
|
-
'data-garden-version': '9.0.0-next.
|
|
305
|
+
'data-garden-version': '9.0.0-next.5'
|
|
306
306
|
}).withConfig({
|
|
307
307
|
displayName: "StyledMain",
|
|
308
308
|
componentId: "sc-t61cre-0"
|
|
@@ -314,11 +314,11 @@ StyledMain.defaultProps = {
|
|
|
314
314
|
const COMPONENT_ID$m = 'chrome.sidebar';
|
|
315
315
|
const StyledSidebar = styled.aside.attrs({
|
|
316
316
|
'data-garden-id': COMPONENT_ID$m,
|
|
317
|
-
'data-garden-version': '9.0.0-next.
|
|
317
|
+
'data-garden-version': '9.0.0-next.5'
|
|
318
318
|
}).withConfig({
|
|
319
319
|
displayName: "StyledSidebar",
|
|
320
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} ${
|
|
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
322
|
StyledSidebar.defaultProps = {
|
|
323
323
|
theme: DEFAULT_THEME
|
|
324
324
|
};
|
|
@@ -326,7 +326,7 @@ StyledSidebar.defaultProps = {
|
|
|
326
326
|
const COMPONENT_ID$l = 'chrome.footer_item';
|
|
327
327
|
const StyledFooterItem = styled.div.attrs({
|
|
328
328
|
'data-garden-id': COMPONENT_ID$l,
|
|
329
|
-
'data-garden-version': '9.0.0-next.
|
|
329
|
+
'data-garden-version': '9.0.0-next.5'
|
|
330
330
|
}).withConfig({
|
|
331
331
|
displayName: "StyledFooterItem",
|
|
332
332
|
componentId: "sc-1cktm85-0"
|
|
@@ -342,14 +342,14 @@ const imgStyles = props => {
|
|
|
342
342
|
};
|
|
343
343
|
const StyledHeaderItem = styled(StyledBaseHeaderItem).attrs({
|
|
344
344
|
'data-garden-id': COMPONENT_ID$k,
|
|
345
|
-
'data-garden-version': '9.0.0-next.
|
|
345
|
+
'data-garden-version': '9.0.0-next.5'
|
|
346
346
|
}).withConfig({
|
|
347
347
|
displayName: "StyledHeaderItem",
|
|
348
348
|
componentId: "sc-14sft6n-0"
|
|
349
349
|
})(["&:hover,&:focus{text-decoration:none;color:inherit;}", " &:focus-visible:active,&[data-garden-focus-visible]:active{box-shadow:none;}&:hover ", ",&:hover ", ",&:active ", ",&:active ", "{color:", ";}", " ", " ", ";"], props => focusStyles({
|
|
350
350
|
theme: props.theme,
|
|
351
351
|
inset: props.maxY
|
|
352
|
-
}), StyledHeaderItemIcon, StyledHeaderItemText, StyledHeaderItemIcon, StyledHeaderItemText, props =>
|
|
352
|
+
}), StyledHeaderItemIcon, StyledHeaderItemText, StyledHeaderItemIcon, StyledHeaderItemText, props => getColorV8('chromeHue', 700, props.theme), imgStyles, props => props.isRound && `
|
|
353
353
|
${StyledHeaderItemIcon} {
|
|
354
354
|
border-radius: 100px;
|
|
355
355
|
}
|
|
@@ -361,7 +361,7 @@ StyledHeaderItem.defaultProps = {
|
|
|
361
361
|
const COMPONENT_ID$j = 'chrome.header_item_wrapper';
|
|
362
362
|
const StyledHeaderItemWrapper = styled(StyledBaseHeaderItem).attrs({
|
|
363
363
|
'data-garden-id': COMPONENT_ID$j,
|
|
364
|
-
'data-garden-version': '9.0.0-next.
|
|
364
|
+
'data-garden-version': '9.0.0-next.5',
|
|
365
365
|
as: 'div'
|
|
366
366
|
}).withConfig({
|
|
367
367
|
displayName: "StyledHeaderItemWrapper",
|
|
@@ -399,7 +399,7 @@ const colorStyles$4 = props => {
|
|
|
399
399
|
};
|
|
400
400
|
const StyledLogoNavItem = styled(StyledBaseNavItem).attrs({
|
|
401
401
|
'data-garden-id': COMPONENT_ID$i,
|
|
402
|
-
'data-garden-version': '9.0.0-next.
|
|
402
|
+
'data-garden-version': '9.0.0-next.5',
|
|
403
403
|
as: 'div'
|
|
404
404
|
}).withConfig({
|
|
405
405
|
displayName: "StyledLogoNavItem",
|
|
@@ -412,7 +412,7 @@ StyledLogoNavItem.defaultProps = {
|
|
|
412
412
|
const COMPONENT_ID$h = 'chrome.brandmark_nav_item';
|
|
413
413
|
const StyledBrandmarkNavItem = styled(StyledBaseNavItem).attrs({
|
|
414
414
|
'data-garden-id': COMPONENT_ID$h,
|
|
415
|
-
'data-garden-version': '9.0.0-next.
|
|
415
|
+
'data-garden-version': '9.0.0-next.5',
|
|
416
416
|
as: 'div'
|
|
417
417
|
}).withConfig({
|
|
418
418
|
displayName: "StyledBrandmarkNavItem",
|
|
@@ -425,7 +425,7 @@ StyledBrandmarkNavItem.defaultProps = {
|
|
|
425
425
|
const COMPONENT_ID$g = 'chrome.nav_item_icon';
|
|
426
426
|
const StyledNavItemIcon = styled.div.attrs({
|
|
427
427
|
'data-garden-id': COMPONENT_ID$g,
|
|
428
|
-
'data-garden-version': '9.0.0-next.
|
|
428
|
+
'data-garden-version': '9.0.0-next.5'
|
|
429
429
|
}).withConfig({
|
|
430
430
|
displayName: "StyledNavItemIcon",
|
|
431
431
|
componentId: "sc-7w9rpt-0"
|
|
@@ -453,7 +453,7 @@ const colorStyles$3 = props => {
|
|
|
453
453
|
} else if (isDark) {
|
|
454
454
|
currentColor = rgba(LIGHT, 0.4);
|
|
455
455
|
} else {
|
|
456
|
-
currentColor =
|
|
456
|
+
currentColor = getColorV8(hue, 500, theme);
|
|
457
457
|
}
|
|
458
458
|
} else {
|
|
459
459
|
hoverColor = rgba(isLight ? LIGHT : DARK, 0.1);
|
|
@@ -471,7 +471,7 @@ const colorStyles$3 = props => {
|
|
|
471
471
|
};
|
|
472
472
|
const StyledNavItem = styled(StyledBaseNavItem).attrs({
|
|
473
473
|
'data-garden-id': COMPONENT_ID$f,
|
|
474
|
-
'data-garden-version': '9.0.0-next.
|
|
474
|
+
'data-garden-version': '9.0.0-next.5',
|
|
475
475
|
as: 'button'
|
|
476
476
|
}).withConfig({
|
|
477
477
|
displayName: "StyledNavItem",
|
|
@@ -488,7 +488,7 @@ StyledNavItem.defaultProps = {
|
|
|
488
488
|
const COMPONENT_ID$e = 'chrome.nav_item_text';
|
|
489
489
|
const StyledNavItemText = styled.span.attrs({
|
|
490
490
|
'data-garden-id': COMPONENT_ID$e,
|
|
491
|
-
'data-garden-version': '9.0.0-next.
|
|
491
|
+
'data-garden-version': '9.0.0-next.5'
|
|
492
492
|
}).withConfig({
|
|
493
493
|
displayName: "StyledNavItemText",
|
|
494
494
|
componentId: "sc-13m84xl-0"
|
|
@@ -541,7 +541,7 @@ const getSubNavItemHeight = props => {
|
|
|
541
541
|
};
|
|
542
542
|
const StyledSubNavItem = styled.button.attrs({
|
|
543
543
|
'data-garden-id': COMPONENT_ID$d,
|
|
544
|
-
'data-garden-version': '9.0.0-next.
|
|
544
|
+
'data-garden-version': '9.0.0-next.5'
|
|
545
545
|
}).withConfig({
|
|
546
546
|
displayName: "StyledSubNavItem",
|
|
547
547
|
componentId: "sc-1yg9dpx-0"
|
|
@@ -558,13 +558,13 @@ const colorStyles$1 = props => {
|
|
|
558
558
|
} else {
|
|
559
559
|
shade = props.isDark ? 700 : 800;
|
|
560
560
|
}
|
|
561
|
-
const backgroundColor =
|
|
561
|
+
const backgroundColor = getColorV8(props.hue, shade, props.theme);
|
|
562
562
|
const foregroundColor = props.isLight ? props.theme.palette.grey[800] : props.theme.palette.white;
|
|
563
563
|
return css(["background-color:", ";color:", ";"], backgroundColor, foregroundColor);
|
|
564
564
|
};
|
|
565
565
|
const StyledSubNav = styled.nav.attrs({
|
|
566
566
|
'data-garden-id': COMPONENT_ID$c,
|
|
567
|
-
'data-garden-version': '9.0.0-next.
|
|
567
|
+
'data-garden-version': '9.0.0-next.5'
|
|
568
568
|
}).withConfig({
|
|
569
569
|
displayName: "StyledSubNav",
|
|
570
570
|
componentId: "sc-19hjou6-0"
|
|
@@ -582,7 +582,7 @@ const sizeStyles = props => {
|
|
|
582
582
|
};
|
|
583
583
|
const StyledSubNavItemText = styled.span.attrs({
|
|
584
584
|
'data-garden-id': COMPONENT_ID$b,
|
|
585
|
-
'data-garden-version': '9.0.0-next.
|
|
585
|
+
'data-garden-version': '9.0.0-next.5'
|
|
586
586
|
}).withConfig({
|
|
587
587
|
displayName: "StyledSubNavItemText",
|
|
588
588
|
componentId: "sc-1hy0pn7-0"
|
|
@@ -594,7 +594,7 @@ StyledSubNavItemText.defaultProps = {
|
|
|
594
594
|
const COMPONENT_ID$a = 'chrome.collapsible_sub_nav_item';
|
|
595
595
|
const StyledSubNavItemHeader = styled(StyledSubNavItem).attrs({
|
|
596
596
|
'data-garden-id': COMPONENT_ID$a,
|
|
597
|
-
'data-garden-version': '9.0.0-next.
|
|
597
|
+
'data-garden-version': '9.0.0-next.5',
|
|
598
598
|
'data-garden-header': 'true'
|
|
599
599
|
}).withConfig({
|
|
600
600
|
displayName: "StyledSubNavItemHeader",
|
|
@@ -641,7 +641,7 @@ StyledSubNavItemIcon.defaultProps = {
|
|
|
641
641
|
};
|
|
642
642
|
const StyledSubNavItemIconWrapper = styled.div.attrs({
|
|
643
643
|
'data-garden-id': COMPONENT_ID$9,
|
|
644
|
-
'data-garden-version': '9.0.0-next.
|
|
644
|
+
'data-garden-version': '9.0.0-next.5'
|
|
645
645
|
}).withConfig({
|
|
646
646
|
displayName: "StyledSubNavItemIcon__StyledSubNavItemIconWrapper",
|
|
647
647
|
componentId: "sc-1d02hho-1"
|
|
@@ -654,7 +654,7 @@ const PANEL_COMPONENT_ID = 'chrome.collapsible_sub_nav_item_panel';
|
|
|
654
654
|
const hiddenStyling = css(["visibility:hidden;max-height:0 !important;overflow:hidden;"]);
|
|
655
655
|
const StyledSubNavPanel = styled.div.attrs({
|
|
656
656
|
'data-garden-id': PANEL_COMPONENT_ID,
|
|
657
|
-
'data-garden-version': '9.0.0-next.
|
|
657
|
+
'data-garden-version': '9.0.0-next.5'
|
|
658
658
|
}).withConfig({
|
|
659
659
|
displayName: "StyledSubNavPanel",
|
|
660
660
|
componentId: "sc-1jv3rpv-0"
|
|
@@ -670,7 +670,7 @@ const borderStyle = _ref => {
|
|
|
670
670
|
placement,
|
|
671
671
|
isOpen
|
|
672
672
|
} = _ref;
|
|
673
|
-
const borderColor = isOpen ?
|
|
673
|
+
const borderColor = isOpen ? getColorV8('neutralHue', 300, theme) : 'transparent';
|
|
674
674
|
const borderSides = ['-left', '-right'];
|
|
675
675
|
let borderSide = '';
|
|
676
676
|
if (theme.rtl) {
|
|
@@ -685,7 +685,7 @@ const borderStyle = _ref => {
|
|
|
685
685
|
};
|
|
686
686
|
const StyledSheet = styled.aside.attrs({
|
|
687
687
|
'data-garden-id': COMPONENT_ID$8,
|
|
688
|
-
'data-garden-version': '9.0.0-next.
|
|
688
|
+
'data-garden-version': '9.0.0-next.5'
|
|
689
689
|
}).withConfig({
|
|
690
690
|
displayName: "StyledSheet",
|
|
691
691
|
componentId: "sc-dx8ijk-0"
|
|
@@ -697,7 +697,7 @@ StyledSheet.defaultProps = {
|
|
|
697
697
|
const COMPONENT_ID$7 = 'chrome.sheet_wrapper';
|
|
698
698
|
const StyledSheetWrapper = styled.div.attrs({
|
|
699
699
|
'data-garden-id': COMPONENT_ID$7,
|
|
700
|
-
'data-garden-version': '9.0.0-next.
|
|
700
|
+
'data-garden-version': '9.0.0-next.5'
|
|
701
701
|
}).withConfig({
|
|
702
702
|
displayName: "StyledSheetWrapper",
|
|
703
703
|
componentId: "sc-f6x9zb-0"
|
|
@@ -724,7 +724,7 @@ StyledSheetWrapper.defaultProps = {
|
|
|
724
724
|
const COMPONENT_ID$6 = 'chrome.sheet_title';
|
|
725
725
|
const StyledSheetTitle = styled.div.attrs({
|
|
726
726
|
'data-garden-id': COMPONENT_ID$6,
|
|
727
|
-
'data-garden-version': '9.0.0-next.
|
|
727
|
+
'data-garden-version': '9.0.0-next.5'
|
|
728
728
|
}).withConfig({
|
|
729
729
|
displayName: "StyledSheetTitle",
|
|
730
730
|
componentId: "sc-1gogk75-0"
|
|
@@ -736,11 +736,11 @@ StyledSheetTitle.defaultProps = {
|
|
|
736
736
|
const COMPONENT_ID$5 = 'chrome.sheet_description';
|
|
737
737
|
const StyledSheetDescription = styled.div.attrs({
|
|
738
738
|
'data-garden-id': COMPONENT_ID$5,
|
|
739
|
-
'data-garden-version': '9.0.0-next.
|
|
739
|
+
'data-garden-version': '9.0.0-next.5'
|
|
740
740
|
}).withConfig({
|
|
741
741
|
displayName: "StyledSheetDescription",
|
|
742
742
|
componentId: "sc-1puglb6-0"
|
|
743
|
-
})(["line-height:", ";color:", ";", ";"], props => getLineHeight(props.theme.space.base * 4, props.theme.fontSizes.md), props =>
|
|
743
|
+
})(["line-height:", ";color:", ";", ";"], props => getLineHeight(props.theme.space.base * 4, props.theme.fontSizes.md), props => getColorV8('neutralHue', 600, props.theme), props => retrieveComponentStyles(COMPONENT_ID$5, props));
|
|
744
744
|
StyledSheetDescription.defaultProps = {
|
|
745
745
|
theme: DEFAULT_THEME
|
|
746
746
|
};
|
|
@@ -748,7 +748,7 @@ StyledSheetDescription.defaultProps = {
|
|
|
748
748
|
const COMPONENT_ID$4 = 'chrome.sheet_body';
|
|
749
749
|
const StyledSheetBody = styled.div.attrs({
|
|
750
750
|
'data-garden-id': COMPONENT_ID$4,
|
|
751
|
-
'data-garden-version': '9.0.0-next.
|
|
751
|
+
'data-garden-version': '9.0.0-next.5'
|
|
752
752
|
}).withConfig({
|
|
753
753
|
displayName: "StyledSheetBody",
|
|
754
754
|
componentId: "sc-bt4eoj-0"
|
|
@@ -766,13 +766,13 @@ const BASE_MULTIPLIERS = {
|
|
|
766
766
|
const colorStyles = props => {
|
|
767
767
|
const backgroundColor = 'primaryHue';
|
|
768
768
|
const foregroundColor = 'neutralHue';
|
|
769
|
-
return css(["background-color:transparent;color:", ";&:hover{background-color:", ";color:", ";}", " &:active{transition:background-color 0.1s ease-in-out,color 0.1s ease-in-out;background-color:", ";color:", ";}"],
|
|
769
|
+
return css(["background-color:transparent;color:", ";&:hover{background-color:", ";color:", ";}", " &:active{transition:background-color 0.1s ease-in-out,color 0.1s ease-in-out;background-color:", ";color:", ";}"], getColorV8(foregroundColor, 600, props.theme), getColorV8(backgroundColor, 600, props.theme, 0.08), getColorV8(foregroundColor, 700, props.theme), focusStyles({
|
|
770
770
|
theme: props.theme
|
|
771
|
-
}),
|
|
771
|
+
}), getColorV8(backgroundColor, 600, props.theme, 0.2), getColorV8(foregroundColor, 800, props.theme));
|
|
772
772
|
};
|
|
773
773
|
const StyledSheetClose = styled.button.attrs({
|
|
774
774
|
'data-garden-id': COMPONENT_ID$3,
|
|
775
|
-
'data-garden-version': '9.0.0-next.
|
|
775
|
+
'data-garden-version': '9.0.0-next.5'
|
|
776
776
|
}).withConfig({
|
|
777
777
|
displayName: "StyledSheetClose",
|
|
778
778
|
componentId: "sc-1ab02oq-0"
|
|
@@ -784,11 +784,11 @@ StyledSheetClose.defaultProps = {
|
|
|
784
784
|
const COMPONENT_ID$2 = 'chrome.sheet_footer';
|
|
785
785
|
const StyledSheetFooter = styled.footer.attrs({
|
|
786
786
|
'data-garden-id': COMPONENT_ID$2,
|
|
787
|
-
'data-garden-version': '9.0.0-next.
|
|
787
|
+
'data-garden-version': '9.0.0-next.5'
|
|
788
788
|
}).withConfig({
|
|
789
789
|
displayName: "StyledSheetFooter",
|
|
790
790
|
componentId: "sc-2cktos-0"
|
|
791
|
-
})(["display:flex;flex-flow:row wrap;align-items:center;justify-content:", ";border-top:", ";padding:", "px;", ";"], props => props.isCompact ? 'center' : 'flex-end', props => `${props.theme.borders.sm} ${
|
|
791
|
+
})(["display:flex;flex-flow:row wrap;align-items:center;justify-content:", ";border-top:", ";padding:", "px;", ";"], props => props.isCompact ? 'center' : 'flex-end', props => `${props.theme.borders.sm} ${getColorV8('neutralHue', 300, props.theme)}}`, props => props.theme.space.base * (props.isCompact ? 2.5 : 5), props => retrieveComponentStyles(COMPONENT_ID$2, props));
|
|
792
792
|
StyledSheetFooter.defaultProps = {
|
|
793
793
|
theme: DEFAULT_THEME
|
|
794
794
|
};
|
|
@@ -796,7 +796,7 @@ StyledSheetFooter.defaultProps = {
|
|
|
796
796
|
const COMPONENT_ID$1 = 'chrome.sheet_footer_item';
|
|
797
797
|
const StyledSheetFooterItem = styled.div.attrs({
|
|
798
798
|
'data-garden-id': COMPONENT_ID$1,
|
|
799
|
-
'data-garden-version': '9.0.0-next.
|
|
799
|
+
'data-garden-version': '9.0.0-next.5'
|
|
800
800
|
}).withConfig({
|
|
801
801
|
displayName: "StyledSheetFooterItem",
|
|
802
802
|
componentId: "sc-r9ixh-0"
|
|
@@ -808,11 +808,11 @@ StyledSheetFooterItem.defaultProps = {
|
|
|
808
808
|
const COMPONENT_ID = 'chrome.sheet_header';
|
|
809
809
|
const StyledSheetHeader = styled.header.attrs({
|
|
810
810
|
'data-garden-id': COMPONENT_ID,
|
|
811
|
-
'data-garden-version': '9.0.0-next.
|
|
811
|
+
'data-garden-version': '9.0.0-next.5'
|
|
812
812
|
}).withConfig({
|
|
813
813
|
displayName: "StyledSheetHeader",
|
|
814
814
|
componentId: "sc-o2ry8i-0"
|
|
815
|
-
})(["border-bottom:", ";padding:", "px;", " ", ";"], props => `${props.theme.borders.sm} ${
|
|
815
|
+
})(["border-bottom:", ";padding:", "px;", " ", ";"], props => `${props.theme.borders.sm} ${getColorV8('neutralHue', 300, props.theme)}}`, props => props.theme.space.base * 5, props => props.isCloseButtonPresent && `padding-${props.theme.rtl ? 'left' : 'right'}: ${props.theme.space.base * (BASE_MULTIPLIERS.size + BASE_MULTIPLIERS.side + 2)}px;`, props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
816
816
|
StyledSheetHeader.defaultProps = {
|
|
817
817
|
theme: DEFAULT_THEME
|
|
818
818
|
};
|
|
@@ -1085,7 +1085,7 @@ const Chrome = React__default.forwardRef((_ref, ref) => {
|
|
|
1085
1085
|
const theme = useContext(ThemeContext);
|
|
1086
1086
|
const isLightMemoized = useMemo(() => {
|
|
1087
1087
|
if (hue) {
|
|
1088
|
-
const backgroundColor =
|
|
1088
|
+
const backgroundColor = getColorV8(hue, 600, theme);
|
|
1089
1089
|
const LIGHT_COLOR = 'white';
|
|
1090
1090
|
return readableColor(backgroundColor, LIGHT_COLOR, undefined, false ) === LIGHT_COLOR;
|
|
1091
1091
|
}
|
|
@@ -1403,7 +1403,7 @@ const SheetComponent = React__default.forwardRef((_ref, ref) => {
|
|
|
1403
1403
|
const sheetRef = useRef(null);
|
|
1404
1404
|
const seed = useUIDSeed();
|
|
1405
1405
|
const [isCloseButtonPresent, setIsCloseButtonPresent] = useState(false);
|
|
1406
|
-
const idPrefix = useMemo(() => id || seed(`sheet_${'9.0.0-next.
|
|
1406
|
+
const idPrefix = useMemo(() => id || seed(`sheet_${'9.0.0-next.5'}`), [id, seed]);
|
|
1407
1407
|
const titleId = `${idPrefix}--title`;
|
|
1408
1408
|
const descriptionId = `${idPrefix}--description`;
|
|
1409
1409
|
const sheetContext = useMemo(() => ({
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
/**
|
|
9
|
+
* @deprecated use `Footer.Item` instead
|
|
10
|
+
*
|
|
9
11
|
* @extends HTMLAttributes<HTMLElement>
|
|
10
12
|
*/
|
|
11
13
|
export declare const FooterItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { IHeaderItemProps } from '../../types';
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated use `Header.Item` instead
|
|
11
|
+
*
|
|
10
12
|
* @extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
11
13
|
*/
|
|
12
14
|
export declare const HeaderItem: React.ForwardRefExoticComponent<IHeaderItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React, { HTMLAttributes, PropsWithChildren } from 'react';
|
|
8
8
|
/**
|
|
9
|
+
* @deprecated use `Header.ItemIcon` instead
|
|
10
|
+
*
|
|
9
11
|
* @extends HTMLAttributes<HTMLElement>
|
|
10
12
|
*/
|
|
11
13
|
export declare const HeaderItemIcon: ({ children, ...props }: PropsWithChildren<HTMLAttributes<HTMLElement>>) => React.JSX.Element | null;
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { IHeaderItemTextProps } from '../../types';
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated use `Header.ItemText` instead
|
|
11
|
+
*
|
|
10
12
|
* @extends HTMLAttributes<HTMLSpanElement>
|
|
11
13
|
*/
|
|
12
14
|
export declare const HeaderItemText: React.ForwardRefExoticComponent<IHeaderItemTextProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { IHeaderItemWrapperProps } from '../../types';
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated use `Header.ItemWrapper` instead
|
|
11
|
+
*
|
|
10
12
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
11
13
|
*/
|
|
12
14
|
export declare const HeaderItemWrapper: React.ForwardRefExoticComponent<IHeaderItemWrapperProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { INavItemProps } from '../../types';
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated use `Nav.Item` instead
|
|
11
|
+
*
|
|
10
12
|
* @extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
11
13
|
*/
|
|
12
14
|
export declare const NavItem: React.ForwardRefExoticComponent<INavItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React, { HTMLAttributes, PropsWithChildren } from 'react';
|
|
8
8
|
/**
|
|
9
|
+
* @deprecated use `Nav.ItemIcon` instead
|
|
10
|
+
*
|
|
9
11
|
* @extends HTMLAttributes<HTMLElement>
|
|
10
12
|
*/
|
|
11
13
|
export declare const NavItemIcon: ({ children, ...props }: PropsWithChildren<HTMLAttributes<HTMLElement>>) => React.JSX.Element | null;
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { INavItemTextProps } from '../../types';
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated use `Nav.ItemText` instead
|
|
11
|
+
*
|
|
10
12
|
* @extends HTMLAttributes<HTMLSpanElement>
|
|
11
13
|
*/
|
|
12
14
|
export declare const NavItemText: React.ForwardRefExoticComponent<INavItemTextProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { ICollapsibleSubNavItemProps } from '../../types';
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated use `SubNav.CollapsibleItem` instead
|
|
11
|
+
*
|
|
10
12
|
* @extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
11
13
|
*/
|
|
12
14
|
export declare const CollapsibleSubNavItem: React.ForwardRefExoticComponent<ICollapsibleSubNavItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { ISubNavItemProps } from '../../types';
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated use `SubNav.Item` instead
|
|
11
|
+
*
|
|
10
12
|
* @extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
11
13
|
*/
|
|
12
14
|
export declare const SubNavItem: React.ForwardRefExoticComponent<ISubNavItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { ISubNavItemTextProps } from '../../types';
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated use `SubNav.ItemText` instead
|
|
11
|
+
*
|
|
10
12
|
* @extends HTMLAttributes<HTMLSpanElement>
|
|
11
13
|
*/
|
|
12
14
|
export declare const SubNavItemText: React.ForwardRefExoticComponent<ISubNavItemTextProps & React.RefAttributes<HTMLElement>>;
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -4,27 +4,16 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
/** @deprecated use `Header.Item` instead */
|
|
8
7
|
export { HeaderItem } from './elements/header/HeaderItem';
|
|
9
|
-
/** @deprecated use `Header.ItemIcon` instead */
|
|
10
8
|
export { HeaderItemIcon } from './elements/header/HeaderItemIcon';
|
|
11
|
-
/** @deprecated use `Header.ItemText` instead */
|
|
12
9
|
export { HeaderItemText } from './elements/header/HeaderItemText';
|
|
13
|
-
/** @deprecated use `Header.ItemWrapper` instead */
|
|
14
10
|
export { HeaderItemWrapper } from './elements/header/HeaderItemWrapper';
|
|
15
|
-
/** @deprecated use `Footer.Item` instead */
|
|
16
11
|
export { FooterItem } from './elements/footer/FooterItem';
|
|
17
|
-
/** @deprecated use `Nav.Item` instead */
|
|
18
12
|
export { NavItem } from './elements/nav/NavItem';
|
|
19
|
-
/** @deprecated use `Nav.ItemIcon` instead */
|
|
20
13
|
export { NavItemIcon } from './elements/nav/NavItemIcon';
|
|
21
|
-
/** @deprecated use `Nav.ItemText` instead */
|
|
22
14
|
export { NavItemText } from './elements/nav/NavItemText';
|
|
23
|
-
/** @deprecated use `SubNav.Item` instead */
|
|
24
15
|
export { SubNavItem } from './elements/subnav/SubNavItem';
|
|
25
|
-
/** @deprecated use `SubNav.ItemText` instead */
|
|
26
16
|
export { SubNavItemText } from './elements/subnav/SubNavItemText';
|
|
27
|
-
/** @deprecated use `SubNav.CollapsibleItem` instead */
|
|
28
17
|
export { CollapsibleSubNavItem } from './elements/subnav/CollapsibleSubNavItem';
|
|
29
18
|
export { Chrome } from './elements/Chrome';
|
|
30
19
|
export { SkipNav } from './elements/SkipNav';
|
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.5",
|
|
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>",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"@zendeskgarden/react-theming": "^8.67.0",
|
|
33
33
|
"react": ">=16.8.0",
|
|
34
34
|
"react-dom": ">=16.8.0",
|
|
35
|
-
"styled-components": "^5.1
|
|
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.5",
|
|
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": "806fa33feb06142c3f69b6a87b53628469117e4d"
|
|
52
52
|
}
|