@zendeskgarden/react-chrome 9.0.0-next.5 → 9.0.0-next.6
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 +72 -63
- package/dist/index.esm.js +72 -63
- package/dist/typings/elements/body/Body.d.ts +1 -2
- package/dist/typings/elements/header/HeaderItemIcon.d.ts +3 -3
- package/dist/typings/elements/nav/NavItemIcon.d.ts +3 -3
- package/dist/typings/index.d.ts +1 -1
- package/dist/typings/types/index.d.ts +0 -4
- package/dist/typings/utils/useBodyContext.d.ts +3 -2
- package/package.json +3 -3
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.6'
|
|
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.6'
|
|
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.6'
|
|
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.6'
|
|
118
118
|
}).withConfig({
|
|
119
119
|
displayName: "StyledHeaderItemText",
|
|
120
120
|
componentId: "sc-goz7la-0"
|
|
@@ -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.6'
|
|
142
142
|
}).withConfig({
|
|
143
143
|
displayName: "StyledNav",
|
|
144
144
|
componentId: "sc-6j462r-0"
|
|
@@ -170,7 +170,7 @@ 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.6',
|
|
174
174
|
as: 'div'
|
|
175
175
|
}).withConfig({
|
|
176
176
|
displayName: "StyledLogoHeaderItem",
|
|
@@ -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.6'
|
|
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.6'
|
|
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.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
|
|
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 => reactTheming.getColorV8('background', 600 , props.theme), 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
|
}
|
|
@@ -228,7 +228,7 @@ const colorStyles$5 = theme => {
|
|
|
228
228
|
const color = reactTheming.getColorV8('primaryHue', 600, theme);
|
|
229
229
|
const borderColor = reactTheming.getColorV8('neutralHue', 300, theme);
|
|
230
230
|
const boxShadow = theme.shadows.lg(`${theme.space.base * 5}px`, `${theme.space.base * 7}px`, reactTheming.getColorV8('chromeHue', 600, theme, 0.15));
|
|
231
|
-
return styled.css(["border-color:", ";box-shadow:", ";background-color:", ";color:", ";&:hover,&:focus{color:", ";}", ""], borderColor, boxShadow,
|
|
231
|
+
return styled.css(["border-color:", ";box-shadow:", ";background-color:", ";color:", ";&:hover,&:focus{color:", ";}", ""], borderColor, boxShadow, reactTheming.getColorV8('background', 600 , theme), color, color, reactTheming.focusStyles({
|
|
232
232
|
theme,
|
|
233
233
|
inset: true,
|
|
234
234
|
boxShadow
|
|
@@ -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.6'
|
|
248
248
|
}).withConfig({
|
|
249
249
|
displayName: "StyledSkipNav",
|
|
250
250
|
componentId: "sc-1tsro34-0"
|
|
@@ -277,7 +277,7 @@ 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.6'
|
|
281
281
|
}).withConfig({
|
|
282
282
|
displayName: "StyledSkipNavIcon",
|
|
283
283
|
componentId: "sc-1ika5z4-0"
|
|
@@ -289,7 +289,7 @@ 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.6'
|
|
293
293
|
}).withConfig({
|
|
294
294
|
displayName: "StyledBody",
|
|
295
295
|
componentId: "sc-c7h9kv-0"
|
|
@@ -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.6'
|
|
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 => props.theme
|
|
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$p, props));
|
|
312
312
|
StyledFooter.defaultProps = {
|
|
313
313
|
theme: reactTheming.DEFAULT_THEME
|
|
314
314
|
};
|
|
@@ -316,11 +316,11 @@ 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.6'
|
|
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 => props.theme
|
|
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$o, props));
|
|
324
324
|
StyledContent.defaultProps = {
|
|
325
325
|
theme: reactTheming.DEFAULT_THEME
|
|
326
326
|
};
|
|
@@ -328,11 +328,11 @@ 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.6'
|
|
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 => props.theme
|
|
335
|
+
})(["flex:1;order:1;background-color:", ";overflow:auto;:focus{outline:none;}", ";"], props => reactTheming.getColorV8('background', 600 , props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$n, props));
|
|
336
336
|
StyledMain.defaultProps = {
|
|
337
337
|
theme: reactTheming.DEFAULT_THEME
|
|
338
338
|
};
|
|
@@ -340,7 +340,7 @@ 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.6'
|
|
344
344
|
}).withConfig({
|
|
345
345
|
displayName: "StyledSidebar",
|
|
346
346
|
componentId: "sc-1q77fuw-0"
|
|
@@ -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.6'
|
|
356
356
|
}).withConfig({
|
|
357
357
|
displayName: "StyledFooterItem",
|
|
358
358
|
componentId: "sc-1cktm85-0"
|
|
@@ -368,7 +368,7 @@ 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.6'
|
|
372
372
|
}).withConfig({
|
|
373
373
|
displayName: "StyledHeaderItem",
|
|
374
374
|
componentId: "sc-14sft6n-0"
|
|
@@ -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.6',
|
|
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.6',
|
|
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.6',
|
|
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.6'
|
|
455
455
|
}).withConfig({
|
|
456
456
|
displayName: "StyledNavItemIcon",
|
|
457
457
|
componentId: "sc-7w9rpt-0"
|
|
@@ -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.6',
|
|
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.6'
|
|
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.6'
|
|
571
571
|
}).withConfig({
|
|
572
572
|
displayName: "StyledSubNavItem",
|
|
573
573
|
componentId: "sc-1yg9dpx-0"
|
|
@@ -590,7 +590,7 @@ const colorStyles$1 = props => {
|
|
|
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.6'
|
|
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.6'
|
|
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.6',
|
|
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.6'
|
|
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.6'
|
|
684
684
|
}).withConfig({
|
|
685
685
|
displayName: "StyledSubNavPanel",
|
|
686
686
|
componentId: "sc-1jv3rpv-0"
|
|
@@ -711,11 +711,11 @@ 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.6'
|
|
715
715
|
}).withConfig({
|
|
716
716
|
displayName: "StyledSheet",
|
|
717
717
|
componentId: "sc-dx8ijk-0"
|
|
718
|
-
})(["display:flex;order:1;transition:", ";background-color:", ";width:", ";height:100%;overflow:hidden;font-size:", ";&:focus{outline:none;}", ";", ";"], props => props.isAnimated && 'width 250ms ease-in-out', props => props.theme
|
|
718
|
+
})(["display:flex;order:1;transition:", ";background-color:", ";width:", ";height:100%;overflow:hidden;font-size:", ";&:focus{outline:none;}", ";", ";"], props => props.isAnimated && 'width 250ms ease-in-out', props => reactTheming.getColorV8('background', 600 , props.theme), props => props.isOpen ? props.size : '0px', props => props.theme.fontSizes.md, props => borderStyle(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$8, props));
|
|
719
719
|
StyledSheet.defaultProps = {
|
|
720
720
|
theme: reactTheming.DEFAULT_THEME
|
|
721
721
|
};
|
|
@@ -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.6'
|
|
727
727
|
}).withConfig({
|
|
728
728
|
displayName: "StyledSheetWrapper",
|
|
729
729
|
componentId: "sc-f6x9zb-0"
|
|
@@ -750,11 +750,11 @@ 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.6'
|
|
754
754
|
}).withConfig({
|
|
755
755
|
displayName: "StyledSheetTitle",
|
|
756
756
|
componentId: "sc-1gogk75-0"
|
|
757
|
-
})(["line-height:", ";color:", ";font-weight:", ";", ";"], props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.theme
|
|
757
|
+
})(["line-height:", ";color:", ";font-weight:", ";", ";"], props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => reactTheming.getColorV8('foreground', 600 , props.theme), props => props.theme.fontWeights.semibold, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$6, props));
|
|
758
758
|
StyledSheetTitle.defaultProps = {
|
|
759
759
|
theme: reactTheming.DEFAULT_THEME
|
|
760
760
|
};
|
|
@@ -762,7 +762,7 @@ 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.6'
|
|
766
766
|
}).withConfig({
|
|
767
767
|
displayName: "StyledSheetDescription",
|
|
768
768
|
componentId: "sc-1puglb6-0"
|
|
@@ -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.6'
|
|
778
778
|
}).withConfig({
|
|
779
779
|
displayName: "StyledSheetBody",
|
|
780
780
|
componentId: "sc-bt4eoj-0"
|
|
@@ -798,7 +798,7 @@ const colorStyles = props => {
|
|
|
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.6'
|
|
802
802
|
}).withConfig({
|
|
803
803
|
displayName: "StyledSheetClose",
|
|
804
804
|
componentId: "sc-1ab02oq-0"
|
|
@@ -810,7 +810,7 @@ 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.6'
|
|
814
814
|
}).withConfig({
|
|
815
815
|
displayName: "StyledSheetFooter",
|
|
816
816
|
componentId: "sc-2cktos-0"
|
|
@@ -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.6'
|
|
826
826
|
}).withConfig({
|
|
827
827
|
displayName: "StyledSheetFooterItem",
|
|
828
828
|
componentId: "sc-r9ixh-0"
|
|
@@ -834,7 +834,7 @@ 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.6'
|
|
838
838
|
}).withConfig({
|
|
839
839
|
displayName: "StyledSheetHeader",
|
|
840
840
|
componentId: "sc-o2ry8i-0"
|
|
@@ -1171,21 +1171,17 @@ SkipNav.defaultProps = {
|
|
|
1171
1171
|
zIndex: 1
|
|
1172
1172
|
};
|
|
1173
1173
|
|
|
1174
|
-
const BodyContext = React__namespace.default.createContext(
|
|
1175
|
-
hasFooter: true
|
|
1176
|
-
});
|
|
1174
|
+
const BodyContext = React__namespace.default.createContext(undefined);
|
|
1177
1175
|
const useBodyContext = () => {
|
|
1178
1176
|
return React.useContext(BodyContext);
|
|
1179
1177
|
};
|
|
1180
1178
|
|
|
1181
|
-
const Body$1 = React__namespace.default.forwardRef((
|
|
1182
|
-
|
|
1183
|
-
hasFooter,
|
|
1184
|
-
...props
|
|
1185
|
-
} = _ref;
|
|
1179
|
+
const Body$1 = React__namespace.default.forwardRef((props, ref) => {
|
|
1180
|
+
const [hasFooter, setHasFooter] = React.useState(false);
|
|
1186
1181
|
const bodyContextValue = React.useMemo(() => ({
|
|
1187
|
-
hasFooter
|
|
1188
|
-
|
|
1182
|
+
hasFooter,
|
|
1183
|
+
setHasFooter
|
|
1184
|
+
}), [hasFooter, setHasFooter]);
|
|
1189
1185
|
return React__namespace.default.createElement(BodyContext.Provider, {
|
|
1190
1186
|
value: bodyContextValue
|
|
1191
1187
|
}, React__namespace.default.createElement(StyledBody, _extends$3({
|
|
@@ -1193,14 +1189,11 @@ const Body$1 = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1193
1189
|
}, props)));
|
|
1194
1190
|
});
|
|
1195
1191
|
Body$1.displayName = 'Body';
|
|
1196
|
-
Body$1.propTypes = {
|
|
1197
|
-
hasFooter: PropTypes__default.default.bool
|
|
1198
|
-
};
|
|
1199
1192
|
|
|
1200
1193
|
const Content = React__namespace.default.forwardRef((props, ref) => {
|
|
1201
1194
|
const {
|
|
1202
1195
|
hasFooter
|
|
1203
|
-
} = useBodyContext();
|
|
1196
|
+
} = useBodyContext() || {};
|
|
1204
1197
|
return React__namespace.default.createElement(StyledContent, _extends$3({
|
|
1205
1198
|
ref: ref,
|
|
1206
1199
|
hasFooter: hasFooter
|
|
@@ -1231,9 +1224,25 @@ Header$1.ItemIcon = HeaderItemIcon;
|
|
|
1231
1224
|
Header$1.ItemText = HeaderItemText;
|
|
1232
1225
|
Header$1.ItemWrapper = HeaderItemWrapper;
|
|
1233
1226
|
|
|
1234
|
-
const FooterComponent = React__namespace.default.forwardRef((props, ref) =>
|
|
1235
|
-
|
|
1236
|
-
|
|
1227
|
+
const FooterComponent = React__namespace.default.forwardRef((props, ref) => {
|
|
1228
|
+
const {
|
|
1229
|
+
hasFooter,
|
|
1230
|
+
setHasFooter
|
|
1231
|
+
} = useBodyContext() || {};
|
|
1232
|
+
React.useEffect(() => {
|
|
1233
|
+
if (!hasFooter && setHasFooter) {
|
|
1234
|
+
setHasFooter(true);
|
|
1235
|
+
}
|
|
1236
|
+
return () => {
|
|
1237
|
+
if (hasFooter && setHasFooter) {
|
|
1238
|
+
setHasFooter(false);
|
|
1239
|
+
}
|
|
1240
|
+
};
|
|
1241
|
+
}, [hasFooter, setHasFooter]);
|
|
1242
|
+
return React__namespace.default.createElement(StyledFooter, _extends$3({
|
|
1243
|
+
ref: ref
|
|
1244
|
+
}, props));
|
|
1245
|
+
});
|
|
1237
1246
|
FooterComponent.displayName = 'Footer';
|
|
1238
1247
|
const Footer$1 = FooterComponent;
|
|
1239
1248
|
Footer$1.Item = FooterItem$1;
|
|
@@ -1429,7 +1438,7 @@ const SheetComponent = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1429
1438
|
const sheetRef = React.useRef(null);
|
|
1430
1439
|
const seed = reactUid.useUIDSeed();
|
|
1431
1440
|
const [isCloseButtonPresent, setIsCloseButtonPresent] = React.useState(false);
|
|
1432
|
-
const idPrefix = React.useMemo(() => id || seed(`sheet_${'9.0.0-next.
|
|
1441
|
+
const idPrefix = React.useMemo(() => id || seed(`sheet_${'9.0.0-next.6'}`), [id, seed]);
|
|
1433
1442
|
const titleId = `${idPrefix}--title`;
|
|
1434
1443
|
const descriptionId = `${idPrefix}--description`;
|
|
1435
1444
|
const sheetContext = React.useMemo(() => ({
|
package/dist/index.esm.js
CHANGED
|
@@ -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.6'
|
|
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.6'
|
|
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.6'
|
|
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.6'
|
|
92
92
|
}).withConfig({
|
|
93
93
|
displayName: "StyledHeaderItemText",
|
|
94
94
|
componentId: "sc-goz7la-0"
|
|
@@ -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.6'
|
|
116
116
|
}).withConfig({
|
|
117
117
|
displayName: "StyledNav",
|
|
118
118
|
componentId: "sc-6j462r-0"
|
|
@@ -144,7 +144,7 @@ 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.6',
|
|
148
148
|
as: 'div'
|
|
149
149
|
}).withConfig({
|
|
150
150
|
displayName: "StyledLogoHeaderItem",
|
|
@@ -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.6'
|
|
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.6'
|
|
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} ${getColorV8('neutralHue', 300, props.theme)}`, props => props.isStandalone && props.theme.shadows.lg('0', '10px', getColorV8('chromeHue', 600, props.theme, 0.15)), props => props.theme
|
|
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 => getColorV8('background', 600 , props.theme), 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
|
}
|
|
@@ -202,7 +202,7 @@ const colorStyles$5 = theme => {
|
|
|
202
202
|
const color = getColorV8('primaryHue', 600, theme);
|
|
203
203
|
const borderColor = getColorV8('neutralHue', 300, theme);
|
|
204
204
|
const boxShadow = theme.shadows.lg(`${theme.space.base * 5}px`, `${theme.space.base * 7}px`, getColorV8('chromeHue', 600, theme, 0.15));
|
|
205
|
-
return css(["border-color:", ";box-shadow:", ";background-color:", ";color:", ";&:hover,&:focus{color:", ";}", ""], borderColor, boxShadow,
|
|
205
|
+
return css(["border-color:", ";box-shadow:", ";background-color:", ";color:", ";&:hover,&:focus{color:", ";}", ""], borderColor, boxShadow, getColorV8('background', 600 , theme), color, color, focusStyles({
|
|
206
206
|
theme,
|
|
207
207
|
inset: true,
|
|
208
208
|
boxShadow
|
|
@@ -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.6'
|
|
222
222
|
}).withConfig({
|
|
223
223
|
displayName: "StyledSkipNav",
|
|
224
224
|
componentId: "sc-1tsro34-0"
|
|
@@ -251,7 +251,7 @@ 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.6'
|
|
255
255
|
}).withConfig({
|
|
256
256
|
displayName: "StyledSkipNavIcon",
|
|
257
257
|
componentId: "sc-1ika5z4-0"
|
|
@@ -263,7 +263,7 @@ 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.6'
|
|
267
267
|
}).withConfig({
|
|
268
268
|
displayName: "StyledBody",
|
|
269
269
|
componentId: "sc-c7h9kv-0"
|
|
@@ -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.6'
|
|
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 => props.theme
|
|
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$p, props));
|
|
286
286
|
StyledFooter.defaultProps = {
|
|
287
287
|
theme: DEFAULT_THEME
|
|
288
288
|
};
|
|
@@ -290,11 +290,11 @@ 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.6'
|
|
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 => props.theme
|
|
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$o, props));
|
|
298
298
|
StyledContent.defaultProps = {
|
|
299
299
|
theme: DEFAULT_THEME
|
|
300
300
|
};
|
|
@@ -302,11 +302,11 @@ 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.6'
|
|
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 => props.theme
|
|
309
|
+
})(["flex:1;order:1;background-color:", ";overflow:auto;:focus{outline:none;}", ";"], props => getColorV8('background', 600 , props.theme), props => retrieveComponentStyles(COMPONENT_ID$n, props));
|
|
310
310
|
StyledMain.defaultProps = {
|
|
311
311
|
theme: DEFAULT_THEME
|
|
312
312
|
};
|
|
@@ -314,7 +314,7 @@ 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.6'
|
|
318
318
|
}).withConfig({
|
|
319
319
|
displayName: "StyledSidebar",
|
|
320
320
|
componentId: "sc-1q77fuw-0"
|
|
@@ -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.6'
|
|
330
330
|
}).withConfig({
|
|
331
331
|
displayName: "StyledFooterItem",
|
|
332
332
|
componentId: "sc-1cktm85-0"
|
|
@@ -342,7 +342,7 @@ 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.6'
|
|
346
346
|
}).withConfig({
|
|
347
347
|
displayName: "StyledHeaderItem",
|
|
348
348
|
componentId: "sc-14sft6n-0"
|
|
@@ -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.6',
|
|
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.6',
|
|
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.6',
|
|
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.6'
|
|
429
429
|
}).withConfig({
|
|
430
430
|
displayName: "StyledNavItemIcon",
|
|
431
431
|
componentId: "sc-7w9rpt-0"
|
|
@@ -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.6',
|
|
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.6'
|
|
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.6'
|
|
545
545
|
}).withConfig({
|
|
546
546
|
displayName: "StyledSubNavItem",
|
|
547
547
|
componentId: "sc-1yg9dpx-0"
|
|
@@ -564,7 +564,7 @@ const colorStyles$1 = props => {
|
|
|
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.6'
|
|
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.6'
|
|
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.6',
|
|
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.6'
|
|
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.6'
|
|
658
658
|
}).withConfig({
|
|
659
659
|
displayName: "StyledSubNavPanel",
|
|
660
660
|
componentId: "sc-1jv3rpv-0"
|
|
@@ -685,11 +685,11 @@ 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.6'
|
|
689
689
|
}).withConfig({
|
|
690
690
|
displayName: "StyledSheet",
|
|
691
691
|
componentId: "sc-dx8ijk-0"
|
|
692
|
-
})(["display:flex;order:1;transition:", ";background-color:", ";width:", ";height:100%;overflow:hidden;font-size:", ";&:focus{outline:none;}", ";", ";"], props => props.isAnimated && 'width 250ms ease-in-out', props => props.theme
|
|
692
|
+
})(["display:flex;order:1;transition:", ";background-color:", ";width:", ";height:100%;overflow:hidden;font-size:", ";&:focus{outline:none;}", ";", ";"], props => props.isAnimated && 'width 250ms ease-in-out', props => getColorV8('background', 600 , props.theme), props => props.isOpen ? props.size : '0px', props => props.theme.fontSizes.md, props => borderStyle(props), props => retrieveComponentStyles(COMPONENT_ID$8, props));
|
|
693
693
|
StyledSheet.defaultProps = {
|
|
694
694
|
theme: DEFAULT_THEME
|
|
695
695
|
};
|
|
@@ -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.6'
|
|
701
701
|
}).withConfig({
|
|
702
702
|
displayName: "StyledSheetWrapper",
|
|
703
703
|
componentId: "sc-f6x9zb-0"
|
|
@@ -724,11 +724,11 @@ 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.6'
|
|
728
728
|
}).withConfig({
|
|
729
729
|
displayName: "StyledSheetTitle",
|
|
730
730
|
componentId: "sc-1gogk75-0"
|
|
731
|
-
})(["line-height:", ";color:", ";font-weight:", ";", ";"], props => getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.theme
|
|
731
|
+
})(["line-height:", ";color:", ";font-weight:", ";", ";"], props => getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => getColorV8('foreground', 600 , props.theme), props => props.theme.fontWeights.semibold, props => retrieveComponentStyles(COMPONENT_ID$6, props));
|
|
732
732
|
StyledSheetTitle.defaultProps = {
|
|
733
733
|
theme: DEFAULT_THEME
|
|
734
734
|
};
|
|
@@ -736,7 +736,7 @@ 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.6'
|
|
740
740
|
}).withConfig({
|
|
741
741
|
displayName: "StyledSheetDescription",
|
|
742
742
|
componentId: "sc-1puglb6-0"
|
|
@@ -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.6'
|
|
752
752
|
}).withConfig({
|
|
753
753
|
displayName: "StyledSheetBody",
|
|
754
754
|
componentId: "sc-bt4eoj-0"
|
|
@@ -772,7 +772,7 @@ const colorStyles = props => {
|
|
|
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.6'
|
|
776
776
|
}).withConfig({
|
|
777
777
|
displayName: "StyledSheetClose",
|
|
778
778
|
componentId: "sc-1ab02oq-0"
|
|
@@ -784,7 +784,7 @@ 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.6'
|
|
788
788
|
}).withConfig({
|
|
789
789
|
displayName: "StyledSheetFooter",
|
|
790
790
|
componentId: "sc-2cktos-0"
|
|
@@ -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.6'
|
|
800
800
|
}).withConfig({
|
|
801
801
|
displayName: "StyledSheetFooterItem",
|
|
802
802
|
componentId: "sc-r9ixh-0"
|
|
@@ -808,7 +808,7 @@ 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.6'
|
|
812
812
|
}).withConfig({
|
|
813
813
|
displayName: "StyledSheetHeader",
|
|
814
814
|
componentId: "sc-o2ry8i-0"
|
|
@@ -1145,21 +1145,17 @@ SkipNav.defaultProps = {
|
|
|
1145
1145
|
zIndex: 1
|
|
1146
1146
|
};
|
|
1147
1147
|
|
|
1148
|
-
const BodyContext = React__default.createContext(
|
|
1149
|
-
hasFooter: true
|
|
1150
|
-
});
|
|
1148
|
+
const BodyContext = React__default.createContext(undefined);
|
|
1151
1149
|
const useBodyContext = () => {
|
|
1152
1150
|
return useContext(BodyContext);
|
|
1153
1151
|
};
|
|
1154
1152
|
|
|
1155
|
-
const Body$1 = React__default.forwardRef((
|
|
1156
|
-
|
|
1157
|
-
hasFooter,
|
|
1158
|
-
...props
|
|
1159
|
-
} = _ref;
|
|
1153
|
+
const Body$1 = React__default.forwardRef((props, ref) => {
|
|
1154
|
+
const [hasFooter, setHasFooter] = useState(false);
|
|
1160
1155
|
const bodyContextValue = useMemo(() => ({
|
|
1161
|
-
hasFooter
|
|
1162
|
-
|
|
1156
|
+
hasFooter,
|
|
1157
|
+
setHasFooter
|
|
1158
|
+
}), [hasFooter, setHasFooter]);
|
|
1163
1159
|
return React__default.createElement(BodyContext.Provider, {
|
|
1164
1160
|
value: bodyContextValue
|
|
1165
1161
|
}, React__default.createElement(StyledBody, _extends$3({
|
|
@@ -1167,14 +1163,11 @@ const Body$1 = React__default.forwardRef((_ref, ref) => {
|
|
|
1167
1163
|
}, props)));
|
|
1168
1164
|
});
|
|
1169
1165
|
Body$1.displayName = 'Body';
|
|
1170
|
-
Body$1.propTypes = {
|
|
1171
|
-
hasFooter: PropTypes.bool
|
|
1172
|
-
};
|
|
1173
1166
|
|
|
1174
1167
|
const Content = React__default.forwardRef((props, ref) => {
|
|
1175
1168
|
const {
|
|
1176
1169
|
hasFooter
|
|
1177
|
-
} = useBodyContext();
|
|
1170
|
+
} = useBodyContext() || {};
|
|
1178
1171
|
return React__default.createElement(StyledContent, _extends$3({
|
|
1179
1172
|
ref: ref,
|
|
1180
1173
|
hasFooter: hasFooter
|
|
@@ -1205,9 +1198,25 @@ Header$1.ItemIcon = HeaderItemIcon;
|
|
|
1205
1198
|
Header$1.ItemText = HeaderItemText;
|
|
1206
1199
|
Header$1.ItemWrapper = HeaderItemWrapper;
|
|
1207
1200
|
|
|
1208
|
-
const FooterComponent = React__default.forwardRef((props, ref) =>
|
|
1209
|
-
|
|
1210
|
-
|
|
1201
|
+
const FooterComponent = React__default.forwardRef((props, ref) => {
|
|
1202
|
+
const {
|
|
1203
|
+
hasFooter,
|
|
1204
|
+
setHasFooter
|
|
1205
|
+
} = useBodyContext() || {};
|
|
1206
|
+
useEffect(() => {
|
|
1207
|
+
if (!hasFooter && setHasFooter) {
|
|
1208
|
+
setHasFooter(true);
|
|
1209
|
+
}
|
|
1210
|
+
return () => {
|
|
1211
|
+
if (hasFooter && setHasFooter) {
|
|
1212
|
+
setHasFooter(false);
|
|
1213
|
+
}
|
|
1214
|
+
};
|
|
1215
|
+
}, [hasFooter, setHasFooter]);
|
|
1216
|
+
return React__default.createElement(StyledFooter, _extends$3({
|
|
1217
|
+
ref: ref
|
|
1218
|
+
}, props));
|
|
1219
|
+
});
|
|
1211
1220
|
FooterComponent.displayName = 'Footer';
|
|
1212
1221
|
const Footer$1 = FooterComponent;
|
|
1213
1222
|
Footer$1.Item = FooterItem$1;
|
|
@@ -1403,7 +1412,7 @@ const SheetComponent = React__default.forwardRef((_ref, ref) => {
|
|
|
1403
1412
|
const sheetRef = useRef(null);
|
|
1404
1413
|
const seed = useUIDSeed();
|
|
1405
1414
|
const [isCloseButtonPresent, setIsCloseButtonPresent] = useState(false);
|
|
1406
|
-
const idPrefix = useMemo(() => id || seed(`sheet_${'9.0.0-next.
|
|
1415
|
+
const idPrefix = useMemo(() => id || seed(`sheet_${'9.0.0-next.6'}`), [id, seed]);
|
|
1407
1416
|
const titleId = `${idPrefix}--title`;
|
|
1408
1417
|
const descriptionId = `${idPrefix}--description`;
|
|
1409
1418
|
const sheetContext = useMemo(() => ({
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import { IBodyProps } from '../../types';
|
|
9
8
|
/**
|
|
10
9
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
11
10
|
*/
|
|
12
|
-
export declare const Body: React.ForwardRefExoticComponent<
|
|
11
|
+
export declare const Body: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -4,10 +4,10 @@
|
|
|
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
|
-
import React, {
|
|
7
|
+
import React, { PropsWithChildren, SVGAttributes } from 'react';
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated use `Header.ItemIcon` instead
|
|
10
10
|
*
|
|
11
|
-
* @extends
|
|
11
|
+
* @extends SVGAttributes<SVGElement>
|
|
12
12
|
*/
|
|
13
|
-
export declare const HeaderItemIcon: ({ children, ...props }: PropsWithChildren<
|
|
13
|
+
export declare const HeaderItemIcon: ({ children, ...props }: PropsWithChildren<SVGAttributes<SVGElement>>) => React.JSX.Element | null;
|
|
@@ -4,10 +4,10 @@
|
|
|
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
|
-
import React, {
|
|
7
|
+
import React, { SVGAttributes, PropsWithChildren } from 'react';
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated use `Nav.ItemIcon` instead
|
|
10
10
|
*
|
|
11
|
-
* @extends
|
|
11
|
+
* @extends SVGAttributes<SVGElement>
|
|
12
12
|
*/
|
|
13
|
-
export declare const NavItemIcon: ({ children, ...props }: PropsWithChildren<
|
|
13
|
+
export declare const NavItemIcon: ({ children, ...props }: PropsWithChildren<SVGAttributes<SVGElement>>) => React.JSX.Element | null;
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -26,4 +26,4 @@ export { Footer } from './elements/footer/Footer';
|
|
|
26
26
|
export { Nav } from './elements/nav/Nav';
|
|
27
27
|
export { SubNav } from './elements/subnav/SubNav';
|
|
28
28
|
export { Sheet } from './elements/sheet/Sheet';
|
|
29
|
-
export { PRODUCTS, type IChromeProps, type ISkipNavProps, type
|
|
29
|
+
export { PRODUCTS, type IChromeProps, type ISkipNavProps, type IHeaderProps, type IHeaderItemProps, type IHeaderItemTextProps, type IHeaderItemWrapperProps, type INavProps, type INavItemProps, type INavItemTextProps, type ISubNavItemProps, type ICollapsibleSubNavItemProps, type ISheetProps, type ISheetFooterProps } from './types';
|
|
@@ -20,10 +20,6 @@ export interface ISkipNavProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
|
20
20
|
/** Sets the `z-index` of the element */
|
|
21
21
|
zIndex?: number;
|
|
22
22
|
}
|
|
23
|
-
export interface IBodyProps extends HTMLAttributes<HTMLDivElement> {
|
|
24
|
-
/** Adjusts the body content height to allow space for a footer component */
|
|
25
|
-
hasFooter?: boolean;
|
|
26
|
-
}
|
|
27
23
|
export interface IHeaderProps extends HTMLAttributes<HTMLElement> {
|
|
28
24
|
/** Displays logo for standlone usage */
|
|
29
25
|
isStandalone?: boolean;
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
interface IBodyContext {
|
|
9
9
|
hasFooter: boolean;
|
|
10
|
+
setHasFooter: (footerPresent: boolean) => void;
|
|
10
11
|
}
|
|
11
|
-
export declare const BodyContext: React.Context<IBodyContext>;
|
|
12
|
-
export declare const useBodyContext: () => IBodyContext;
|
|
12
|
+
export declare const BodyContext: React.Context<IBodyContext | undefined>;
|
|
13
|
+
export declare const useBodyContext: () => IBodyContext | undefined;
|
|
13
14
|
export {};
|
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.6",
|
|
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>",
|
|
@@ -35,7 +35,7 @@
|
|
|
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.6",
|
|
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": "45c56ad1c73af40afba8e5415f529a2c9601c83f"
|
|
52
52
|
}
|