@zendeskgarden/react-chrome 8.67.0 → 8.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -67,7 +67,7 @@ const useChromeContext = () => {
67
67
  const COMPONENT_ID$A = 'chrome.chrome';
68
68
  const StyledChrome = styled__default.default.div.attrs({
69
69
  'data-garden-id': COMPONENT_ID$A,
70
- 'data-garden-version': '8.67.0'
70
+ 'data-garden-version': '8.68.0'
71
71
  }).withConfig({
72
72
  displayName: "StyledChrome",
73
73
  componentId: "sc-1uqm6u6-0"
@@ -79,7 +79,7 @@ StyledChrome.defaultProps = {
79
79
  const COMPONENT_ID$z = 'chrome.header_item_icon';
80
80
  const StyledHeaderItemIcon = styled__default.default.div.attrs({
81
81
  'data-garden-id': COMPONENT_ID$z,
82
- 'data-garden-version': '8.67.0'
82
+ 'data-garden-version': '8.68.0'
83
83
  }).withConfig({
84
84
  displayName: "StyledHeaderItemIcon",
85
85
  componentId: "sc-1jhhp6z-0"
@@ -96,7 +96,7 @@ const sizeStyles$4 = props => {
96
96
  };
97
97
  const StyledBaseHeaderItem = styled__default.default.button.attrs({
98
98
  'data-garden-id': COMPONENT_ID$y,
99
- 'data-garden-version': '8.67.0'
99
+ 'data-garden-version': '8.68.0'
100
100
  }).withConfig({
101
101
  displayName: "StyledBaseHeaderItem",
102
102
  componentId: "sc-1qua7h6-0"
@@ -117,7 +117,7 @@ const COMPONENT_ID$x = 'chrome.header_item_text';
117
117
  const clippedStyling = styled.css(["position:absolute;margin:0;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
118
118
  const StyledHeaderItemText = styled__default.default.span.attrs({
119
119
  'data-garden-id': COMPONENT_ID$x,
120
- 'data-garden-version': '8.67.0'
120
+ 'data-garden-version': '8.68.0'
121
121
  }).withConfig({
122
122
  displayName: "StyledHeaderItemText",
123
123
  componentId: "sc-goz7la-0"
@@ -141,7 +141,7 @@ const getExpandedNavWidth = () => {
141
141
  };
142
142
  const StyledNav = styled__default.default.nav.attrs({
143
143
  'data-garden-id': COMPONENT_ID$w,
144
- 'data-garden-version': '8.67.0'
144
+ 'data-garden-version': '8.68.0'
145
145
  }).withConfig({
146
146
  displayName: "StyledNav",
147
147
  componentId: "sc-6j462r-0"
@@ -173,7 +173,7 @@ const retrieveProductColor$1 = props => {
173
173
  };
174
174
  const StyledLogoHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs({
175
175
  'data-garden-id': COMPONENT_ID$v,
176
- 'data-garden-version': '8.67.0',
176
+ 'data-garden-version': '8.68.0',
177
177
  as: 'div'
178
178
  }).withConfig({
179
179
  displayName: "StyledLogoHeaderItem",
@@ -194,11 +194,11 @@ const sizeStyles$3 = props => {
194
194
  };
195
195
  const StyledBaseNavItem = styled__default.default.button.attrs({
196
196
  'data-garden-id': COMPONENT_ID$u,
197
- 'data-garden-version': '8.67.0'
197
+ 'data-garden-version': '8.68.0'
198
198
  }).withConfig({
199
199
  displayName: "StyledBaseNavItem",
200
200
  componentId: "sc-zvo43f-0"
201
- })(["display:flex;flex-shrink:0;align-items:center;justify-content:center;transition:box-shadow 0.1s ease-in-out,background-color 0.1s ease-in-out,opacity 0.1s ease-in-out;border:none;box-sizing:border-box;background:transparent;text-decoration:none;color:inherit;font-size:inherit;", ""], props => sizeStyles$3(props));
201
+ })(["display:flex;flex-shrink:0;align-items:center;justify-content:center;transition:outline-color 0.1s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.1s ease-in-out,opacity 0.1s ease-in-out;border:none;box-sizing:border-box;background:transparent;text-decoration:none;color:inherit;font-size:inherit;", ""], props => sizeStyles$3(props));
202
202
  StyledBaseNavItem.defaultProps = {
203
203
  theme: reactTheming.DEFAULT_THEME
204
204
  };
@@ -209,7 +209,7 @@ const getHeaderHeight = props => {
209
209
  };
210
210
  const StyledHeader = styled__default.default.header.attrs({
211
211
  'data-garden-id': COMPONENT_ID$t,
212
- 'data-garden-version': '8.67.0'
212
+ 'data-garden-version': '8.68.0'
213
213
  }).withConfig({
214
214
  displayName: "StyledHeader",
215
215
  componentId: "sc-1cexpz-0"
@@ -231,7 +231,11 @@ const colorStyles$5 = theme => {
231
231
  const color = reactTheming.getColor('primaryHue', 600, theme);
232
232
  const borderColor = reactTheming.getColor('neutralHue', 300, theme);
233
233
  const boxShadow = theme.shadows.lg(`${theme.space.base * 5}px`, `${theme.space.base * 7}px`, reactTheming.getColor('chromeHue', 600, theme, 0.15));
234
- return styled.css(["border-color:", ";box-shadow:", ";background-color:", ";color:", ";&:hover,&:focus{color:", ";}"], borderColor, boxShadow, theme.colors.background, color, color);
234
+ return styled.css(["border-color:", ";box-shadow:", ";background-color:", ";color:", ";&:hover,&:focus{color:", ";}", ""], borderColor, boxShadow, theme.colors.background, color, color, reactTheming.focusStyles({
235
+ theme,
236
+ inset: true,
237
+ boxShadow
238
+ }));
235
239
  };
236
240
  const sizeStyles$2 = props => {
237
241
  const top = polished.math(`${getHeaderHeight(props)} / 2`);
@@ -243,11 +247,11 @@ const sizeStyles$2 = props => {
243
247
  };
244
248
  const StyledSkipNav = styled__default.default.a.attrs({
245
249
  'data-garden-id': COMPONENT_ID$s,
246
- 'data-garden-version': '8.67.0'
250
+ 'data-garden-version': '8.68.0'
247
251
  }).withConfig({
248
252
  displayName: "StyledSkipNav",
249
253
  componentId: "sc-1tsro34-0"
250
- })(["", ";display:inline-flex;position:absolute;left:50%;align-items:center;justify-content:center;transform:translateX(-50%);direction:", ";z-index:", ";border:", ";border-radius:", ";text-decoration:underline;white-space:nowrap;", ";&:focus{outline:none;}", ";", ";"], animationStyles(), props => props.theme.rtl && 'rtl', props => props.zIndex, props => props.theme.borders.sm, props => props.theme.borderRadii.md, props => sizeStyles$2(props), props => colorStyles$5(props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$s, props));
254
+ })(["", ";display:inline-flex;position:absolute;left:50%;align-items:center;justify-content:center;transform:translateX(-50%);direction:", ";z-index:", ";border:", ";border-radius:", ";text-decoration:underline;white-space:nowrap;", ";", "{text-decoration:none;}&:hover{text-decoration:underline;}", ";", ";"], animationStyles(), props => props.theme.rtl && 'rtl', props => props.zIndex, props => props.theme.borders.sm, props => props.theme.borderRadii.md, props => sizeStyles$2(props), reactTheming.SELECTOR_FOCUS_VISIBLE, props => colorStyles$5(props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$s, props));
251
255
  StyledSkipNav.defaultProps = {
252
256
  theme: reactTheming.DEFAULT_THEME
253
257
  };
@@ -276,7 +280,7 @@ const sizeStyles$1 = theme => {
276
280
  };
277
281
  const StyledSkipNavIcon = styled__default.default(SvgLinkStroke).attrs({
278
282
  'data-garden-id': COMPONENT_ID$r,
279
- 'data-garden-version': '8.67.0'
283
+ 'data-garden-version': '8.68.0'
280
284
  }).withConfig({
281
285
  displayName: "StyledSkipNavIcon",
282
286
  componentId: "sc-1ika5z4-0"
@@ -288,7 +292,7 @@ StyledSkipNavIcon.defaultProps = {
288
292
  const COMPONENT_ID$q = 'chrome.body';
289
293
  const StyledBody = styled__default.default.div.attrs({
290
294
  'data-garden-id': COMPONENT_ID$q,
291
- 'data-garden-version': '8.67.0'
295
+ 'data-garden-version': '8.68.0'
292
296
  }).withConfig({
293
297
  displayName: "StyledBody",
294
298
  componentId: "sc-c7h9kv-0"
@@ -303,7 +307,7 @@ const getFooterHeight = props => {
303
307
  };
304
308
  const StyledFooter = styled__default.default.footer.attrs({
305
309
  'data-garden-id': COMPONENT_ID$p,
306
- 'data-garden-version': '8.67.0'
310
+ 'data-garden-version': '8.68.0'
307
311
  }).withConfig({
308
312
  displayName: "StyledFooter",
309
313
  componentId: "sc-v7lib2-0"
@@ -315,7 +319,7 @@ StyledFooter.defaultProps = {
315
319
  const COMPONENT_ID$o = 'chrome.content';
316
320
  const StyledContent = styled__default.default.div.attrs({
317
321
  'data-garden-id': COMPONENT_ID$o,
318
- 'data-garden-version': '8.67.0'
322
+ 'data-garden-version': '8.68.0'
319
323
  }).withConfig({
320
324
  displayName: "StyledContent",
321
325
  componentId: "sc-qcuzxn-0"
@@ -327,7 +331,7 @@ StyledContent.defaultProps = {
327
331
  const COMPONENT_ID$n = 'chrome.main';
328
332
  const StyledMain = styled__default.default.main.attrs({
329
333
  'data-garden-id': COMPONENT_ID$n,
330
- 'data-garden-version': '8.67.0'
334
+ 'data-garden-version': '8.68.0'
331
335
  }).withConfig({
332
336
  displayName: "StyledMain",
333
337
  componentId: "sc-t61cre-0"
@@ -339,7 +343,7 @@ StyledMain.defaultProps = {
339
343
  const COMPONENT_ID$m = 'chrome.sidebar';
340
344
  const StyledSidebar = styled__default.default.aside.attrs({
341
345
  'data-garden-id': COMPONENT_ID$m,
342
- 'data-garden-version': '8.67.0'
346
+ 'data-garden-version': '8.68.0'
343
347
  }).withConfig({
344
348
  displayName: "StyledSidebar",
345
349
  componentId: "sc-1q77fuw-0"
@@ -351,7 +355,7 @@ StyledSidebar.defaultProps = {
351
355
  const COMPONENT_ID$l = 'chrome.footer_item';
352
356
  const StyledFooterItem = styled__default.default.div.attrs({
353
357
  'data-garden-id': COMPONENT_ID$l,
354
- 'data-garden-version': '8.67.0'
358
+ 'data-garden-version': '8.68.0'
355
359
  }).withConfig({
356
360
  displayName: "StyledFooterItem",
357
361
  componentId: "sc-1cktm85-0"
@@ -367,18 +371,14 @@ const imgStyles = props => {
367
371
  };
368
372
  const StyledHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs({
369
373
  'data-garden-id': COMPONENT_ID$k,
370
- 'data-garden-version': '8.67.0'
374
+ 'data-garden-version': '8.68.0'
371
375
  }).withConfig({
372
376
  displayName: "StyledHeaderItem",
373
377
  componentId: "sc-14sft6n-0"
374
- })(["&:hover,&:focus{text-decoration:none;color:inherit;}&:focus{outline:none;}&[data-garden-focus-visible]{box-shadow:", ";}&[data-garden-focus-visible]:active{box-shadow:none;}&:hover ", ",&:hover ", ",&:active ", ",&:active ", "{color:", ";}", " ", " ", " ", ";"], props => props.theme.shadows.md(reactTheming.getColor('chromeHue', 400, props.theme, 0.35)), StyledHeaderItemIcon, StyledHeaderItemText, StyledHeaderItemIcon, StyledHeaderItemText, props => reactTheming.getColor('chromeHue', 700, props.theme), props => props.maxY && `
375
- &[data-garden-focus-visible] {
376
- box-shadow: inset ${props.theme.shadows.lg(props.theme.shadowWidths.md, '0', reactTheming.getColor('chromeHue', 400, props.theme, 0.35))},
377
- ${props.theme.shadowWidths.md} 0 0 0 ${reactTheming.getColor('chromeHue', 400, props.theme, 0.35)},
378
- inset ${props.theme.shadows.lg(`-${props.theme.shadowWidths.md}`, '0', reactTheming.getColor('chromeHue', 400, props.theme, 0.35))},
379
- -${props.theme.shadowWidths.md} 0 0 0 ${reactTheming.getColor('chromeHue', 400, props.theme, 0.35)};
380
- }
381
- `, imgStyles, props => props.isRound && `
378
+ })(["&: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({
379
+ theme: props.theme,
380
+ inset: props.maxY
381
+ }), StyledHeaderItemIcon, StyledHeaderItemText, StyledHeaderItemIcon, StyledHeaderItemText, props => reactTheming.getColor('chromeHue', 700, props.theme), imgStyles, props => props.isRound && `
382
382
  ${StyledHeaderItemIcon} {
383
383
  border-radius: 100px;
384
384
  }
@@ -390,7 +390,7 @@ StyledHeaderItem.defaultProps = {
390
390
  const COMPONENT_ID$j = 'chrome.header_item_wrapper';
391
391
  const StyledHeaderItemWrapper = styled__default.default(StyledBaseHeaderItem).attrs({
392
392
  'data-garden-id': COMPONENT_ID$j,
393
- 'data-garden-version': '8.67.0',
393
+ 'data-garden-version': '8.68.0',
394
394
  as: 'div'
395
395
  }).withConfig({
396
396
  displayName: "StyledHeaderItemWrapper",
@@ -428,7 +428,7 @@ const colorStyles$4 = props => {
428
428
  };
429
429
  const StyledLogoNavItem = styled__default.default(StyledBaseNavItem).attrs({
430
430
  'data-garden-id': COMPONENT_ID$i,
431
- 'data-garden-version': '8.67.0',
431
+ 'data-garden-version': '8.68.0',
432
432
  as: 'div'
433
433
  }).withConfig({
434
434
  displayName: "StyledLogoNavItem",
@@ -441,7 +441,7 @@ StyledLogoNavItem.defaultProps = {
441
441
  const COMPONENT_ID$h = 'chrome.brandmark_nav_item';
442
442
  const StyledBrandmarkNavItem = styled__default.default(StyledBaseNavItem).attrs({
443
443
  'data-garden-id': COMPONENT_ID$h,
444
- 'data-garden-version': '8.67.0',
444
+ 'data-garden-version': '8.68.0',
445
445
  as: 'div'
446
446
  }).withConfig({
447
447
  displayName: "StyledBrandmarkNavItem",
@@ -454,7 +454,7 @@ StyledBrandmarkNavItem.defaultProps = {
454
454
  const COMPONENT_ID$g = 'chrome.nav_item_icon';
455
455
  const StyledNavItemIcon = styled__default.default.div.attrs({
456
456
  'data-garden-id': COMPONENT_ID$g,
457
- 'data-garden-version': '8.67.0'
457
+ 'data-garden-version': '8.68.0'
458
458
  }).withConfig({
459
459
  displayName: "StyledNavItemIcon",
460
460
  componentId: "sc-7w9rpt-0"
@@ -465,33 +465,47 @@ StyledNavItemIcon.defaultProps = {
465
465
 
466
466
  const COMPONENT_ID$f = 'chrome.nav_item';
467
467
  const colorStyles$3 = props => {
468
- const BLACK = props.theme.palette.black;
469
- const WHITE = props.theme.palette.white;
468
+ const {
469
+ theme,
470
+ hue,
471
+ isLight,
472
+ isDark,
473
+ isCurrent
474
+ } = props;
475
+ const DARK = theme.palette.black;
476
+ const LIGHT = theme.palette.white;
470
477
  let currentColor;
471
478
  let hoverColor;
472
- if (props.isCurrent) {
473
- if (props.isLight) {
474
- currentColor = polished.rgba(BLACK, 0.3);
475
- } else if (props.isDark) {
476
- currentColor = polished.rgba(WHITE, 0.3);
479
+ if (isCurrent) {
480
+ if (isLight) {
481
+ currentColor = polished.rgba(DARK, 0.3);
482
+ } else if (isDark) {
483
+ currentColor = polished.rgba(LIGHT, 0.3);
477
484
  } else {
478
- currentColor = reactTheming.getColor(props.hue, 500, props.theme);
485
+ currentColor = reactTheming.getColor(hue, 500, theme);
479
486
  }
480
487
  } else {
481
- hoverColor = polished.rgba(props.isLight ? WHITE : BLACK, 0.1);
488
+ hoverColor = polished.rgba(isLight ? LIGHT : DARK, 0.1);
482
489
  }
483
- const activeColor = polished.rgba(props.isLight ? BLACK : WHITE, 0.1);
484
- const focusColor = polished.rgba(props.isLight ? BLACK : WHITE, 0.2);
485
- return styled.css(["opacity:", ";background-color:", ";&:hover{opacity:1;background-color:", ";}&[data-garden-focus-visible]{opacity:1;box-shadow:inset ", ";}&:active{background-color:", ";}"], props.isCurrent ? 1 : 0.6, currentColor, hoverColor, props.theme.shadows.md(focusColor), activeColor);
490
+ const activeColor = polished.rgba(isLight ? DARK : LIGHT, 0.1);
491
+ const focusColor = isLight ? DARK : LIGHT;
492
+ return styled.css(["opacity:", ";outline-color:transparent;background-color:", ";&:hover{opacity:1;background-color:", ";}", " &:active{background-color:", ";}"], isCurrent ? 1 : 0.6, currentColor, hoverColor, reactTheming.focusStyles({
493
+ theme,
494
+ condition: false ,
495
+ styles: {
496
+ opacity: 1,
497
+ outlineColor: focusColor
498
+ }
499
+ }), activeColor);
486
500
  };
487
501
  const StyledNavItem = styled__default.default(StyledBaseNavItem).attrs({
488
502
  'data-garden-id': COMPONENT_ID$f,
489
- 'data-garden-version': '8.67.0',
503
+ 'data-garden-version': '8.68.0',
490
504
  as: 'button'
491
505
  }).withConfig({
492
506
  displayName: "StyledNavItem",
493
507
  componentId: "sc-gs8mjz-0"
494
- })(["justify-content:", ";order:1;margin:0;cursor:", ";text-align:", ";&:hover,&:focus{text-decoration:none;color:inherit;}&:focus{outline:none;}", ";", " ", ";"], props => props.isExpanded && 'start', props => props.isCurrent ? 'default' : 'pointer', props => props.isExpanded && 'inherit', props => colorStyles$3(props), props => props.isExpanded && `
508
+ })(["justify-content:", ";order:1;margin:0;cursor:", ";text-align:", ";&:hover,&:focus{text-decoration:none;color:inherit;}", ";&:focus-visible:hover,&:focus-visible:active,", "{outline:", " solid;outline-offset:-", ";}", " ", ";"], props => props.isExpanded && 'start', props => props.isCurrent ? 'default' : 'pointer', props => props.isExpanded && 'inherit', colorStyles$3, reactTheming.SELECTOR_FOCUS_VISIBLE, props => polished.math(`${props.theme.borderWidths.md} - 1`), props => props.theme.borderWidths.md, props => props.isExpanded && `
495
509
  ${StyledNavItemIcon} {
496
510
  margin: 0 ${polished.math(`(${getNavWidth(props)} - ${props.theme.iconSizes.lg}) / 4`)};
497
511
  }
@@ -503,7 +517,7 @@ StyledNavItem.defaultProps = {
503
517
  const COMPONENT_ID$e = 'chrome.nav_item_text';
504
518
  const StyledNavItemText = styled__default.default.span.attrs({
505
519
  'data-garden-id': COMPONENT_ID$e,
506
- 'data-garden-version': '8.67.0'
520
+ 'data-garden-version': '8.68.0'
507
521
  }).withConfig({
508
522
  displayName: "StyledNavItemText",
509
523
  componentId: "sc-13m84xl-0"
@@ -523,33 +537,44 @@ StyledNavItemText.defaultProps = {
523
537
 
524
538
  const COMPONENT_ID$d = 'chrome.subnav_item';
525
539
  const colorStyles$2 = props => {
526
- const BLACK = props.theme.palette.black;
527
- const WHITE = props.theme.palette.white;
540
+ const {
541
+ theme,
542
+ isLight,
543
+ isCurrent
544
+ } = props;
545
+ const DARK = theme.palette.black;
546
+ const LIGHT = theme.palette.white;
528
547
  let currentColor;
529
548
  let hoverColor;
530
- if (props.isCurrent) {
531
- if (props.isLight) {
532
- currentColor = polished.rgba(BLACK, 0.1);
549
+ if (isCurrent) {
550
+ if (isLight) {
551
+ currentColor = polished.rgba(DARK, 0.1);
533
552
  } else {
534
- currentColor = polished.rgba(WHITE, 0.1);
553
+ currentColor = polished.rgba(LIGHT, 0.1);
535
554
  }
536
555
  } else {
537
- hoverColor = polished.rgba(props.isLight ? WHITE : BLACK, 0.1);
556
+ hoverColor = polished.rgba(isLight ? LIGHT : DARK, 0.1);
538
557
  }
539
- const activeColor = polished.rgba(props.isLight ? BLACK : WHITE, 0.03);
540
- const focusColor = polished.rgba(props.isLight ? BLACK : WHITE, 0.2);
541
- return styled.css(["opacity:", ";background-color:", ";&:hover{opacity:1;background-color:", ";}&[data-garden-focus-visible]{opacity:1;box-shadow:", ";}&:not([data-garden-header='true']):active{background-color:", ";}"], props.isCurrent ? '1' : '0.6', currentColor, hoverColor, props.theme.shadows.md(focusColor), activeColor);
558
+ const activeColor = polished.rgba(isLight ? DARK : LIGHT, 0.03);
559
+ return styled.css(["opacity:", ";background-color:", ";&:hover{opacity:1;background-color:", ";}", " &:not([data-garden-header='true']):active{background-color:", ";}"], isCurrent ? '1' : '0.6', currentColor, hoverColor, reactTheming.focusStyles({
560
+ theme,
561
+ hue: isLight ? DARK : LIGHT,
562
+ spacerWidth: null,
563
+ styles: {
564
+ opacity: 1
565
+ }
566
+ }), activeColor);
542
567
  };
543
568
  const getSubNavItemHeight = props => {
544
569
  return `${props.theme.space.base * 7.5}px`;
545
570
  };
546
571
  const StyledSubNavItem = styled__default.default.button.attrs({
547
572
  'data-garden-id': COMPONENT_ID$d,
548
- 'data-garden-version': '8.67.0'
573
+ 'data-garden-version': '8.68.0'
549
574
  }).withConfig({
550
575
  displayName: "StyledSubNavItem",
551
576
  componentId: "sc-1yg9dpx-0"
552
- })(["display:flex;align-items:center;transition:box-shadow 0.1s ease-in-out,background-color 0.1s ease-in-out,opacity 0.1s ease-in-out;margin:", "px 0 0;border:none;border-radius:", ";box-sizing:border-box;background:transparent;cursor:", ";padding:", ";width:100%;min-height:", ";text-align:inherit;font-size:inherit;&,&:hover,&:focus{text-decoration:none;color:inherit;}&:focus{outline:none;}", ";", ";"], props => props.theme.space.base * 2, props => props.theme.borderRadii.md, props => props.isCurrent ? 'default' : 'pointer', props => `0 ${props.theme.space.base * 2}px`, getSubNavItemHeight, props => colorStyles$2(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$d, props));
577
+ })(["display:flex;align-items:center;transition:box-shadow 0.1s ease-in-out,background-color 0.1s ease-in-out,opacity 0.1s ease-in-out;margin:", "px 0 0;border:none;border-radius:", ";box-sizing:border-box;background:transparent;cursor:", ";padding:", ";width:100%;min-height:", ";text-align:inherit;font-size:inherit;&,&:hover,&:focus{text-decoration:none;color:inherit;}", ";", ";"], props => props.theme.space.base * 2, props => props.theme.borderRadii.md, props => props.isCurrent ? 'default' : 'pointer', props => `0 ${props.theme.space.base * 2}px`, getSubNavItemHeight, props => colorStyles$2(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$d, props));
553
578
  StyledSubNavItem.defaultProps = {
554
579
  theme: reactTheming.DEFAULT_THEME
555
580
  };
@@ -568,7 +593,7 @@ const colorStyles$1 = props => {
568
593
  };
569
594
  const StyledSubNav = styled__default.default.nav.attrs({
570
595
  'data-garden-id': COMPONENT_ID$c,
571
- 'data-garden-version': '8.67.0'
596
+ 'data-garden-version': '8.68.0'
572
597
  }).withConfig({
573
598
  displayName: "StyledSubNav",
574
599
  componentId: "sc-19hjou6-0"
@@ -586,7 +611,7 @@ const sizeStyles = props => {
586
611
  };
587
612
  const StyledSubNavItemText = styled__default.default.span.attrs({
588
613
  'data-garden-id': COMPONENT_ID$b,
589
- 'data-garden-version': '8.67.0'
614
+ 'data-garden-version': '8.68.0'
590
615
  }).withConfig({
591
616
  displayName: "StyledSubNavItemText",
592
617
  componentId: "sc-1hy0pn7-0"
@@ -598,7 +623,7 @@ StyledSubNavItemText.defaultProps = {
598
623
  const COMPONENT_ID$a = 'chrome.collapsible_sub_nav_item';
599
624
  const StyledSubNavItemHeader = styled__default.default(StyledSubNavItem).attrs({
600
625
  'data-garden-id': COMPONENT_ID$a,
601
- 'data-garden-version': '8.67.0',
626
+ 'data-garden-version': '8.68.0',
602
627
  'data-garden-header': 'true'
603
628
  }).withConfig({
604
629
  displayName: "StyledSubNavItemHeader",
@@ -645,7 +670,7 @@ StyledSubNavItemIcon.defaultProps = {
645
670
  };
646
671
  const StyledSubNavItemIconWrapper = styled__default.default.div.attrs({
647
672
  'data-garden-id': COMPONENT_ID$9,
648
- 'data-garden-version': '8.67.0'
673
+ 'data-garden-version': '8.68.0'
649
674
  }).withConfig({
650
675
  displayName: "StyledSubNavItemIcon__StyledSubNavItemIconWrapper",
651
676
  componentId: "sc-1d02hho-1"
@@ -663,7 +688,7 @@ const PANEL_COMPONENT_ID = 'chrome.collapsible_sub_nav_item_panel';
663
688
  const hiddenStyling = styled.css(["visibility:hidden;max-height:0 !important;overflow:hidden;"]);
664
689
  const StyledSubNavPanel = styled__default.default.div.attrs({
665
690
  'data-garden-id': PANEL_COMPONENT_ID,
666
- 'data-garden-version': '8.67.0'
691
+ 'data-garden-version': '8.68.0'
667
692
  }).withConfig({
668
693
  displayName: "StyledSubNavPanel",
669
694
  componentId: "sc-1jv3rpv-0"
@@ -694,7 +719,7 @@ const borderStyle = _ref => {
694
719
  };
695
720
  const StyledSheet = styled__default.default.aside.attrs({
696
721
  'data-garden-id': COMPONENT_ID$8,
697
- 'data-garden-version': '8.67.0'
722
+ 'data-garden-version': '8.68.0'
698
723
  }).withConfig({
699
724
  displayName: "StyledSheet",
700
725
  componentId: "sc-dx8ijk-0"
@@ -706,7 +731,7 @@ StyledSheet.defaultProps = {
706
731
  const COMPONENT_ID$7 = 'chrome.sheet_wrapper';
707
732
  const StyledSheetWrapper = styled__default.default.div.attrs({
708
733
  'data-garden-id': COMPONENT_ID$7,
709
- 'data-garden-version': '8.67.0'
734
+ 'data-garden-version': '8.68.0'
710
735
  }).withConfig({
711
736
  displayName: "StyledSheetWrapper",
712
737
  componentId: "sc-f6x9zb-0"
@@ -733,7 +758,7 @@ StyledSheetWrapper.defaultProps = {
733
758
  const COMPONENT_ID$6 = 'chrome.sheet_title';
734
759
  const StyledSheetTitle = styled__default.default.div.attrs({
735
760
  'data-garden-id': COMPONENT_ID$6,
736
- 'data-garden-version': '8.67.0'
761
+ 'data-garden-version': '8.68.0'
737
762
  }).withConfig({
738
763
  displayName: "StyledSheetTitle",
739
764
  componentId: "sc-1gogk75-0"
@@ -745,7 +770,7 @@ StyledSheetTitle.defaultProps = {
745
770
  const COMPONENT_ID$5 = 'chrome.sheet_description';
746
771
  const StyledSheetDescription = styled__default.default.div.attrs({
747
772
  'data-garden-id': COMPONENT_ID$5,
748
- 'data-garden-version': '8.67.0'
773
+ 'data-garden-version': '8.68.0'
749
774
  }).withConfig({
750
775
  displayName: "StyledSheetDescription",
751
776
  componentId: "sc-1puglb6-0"
@@ -757,7 +782,7 @@ StyledSheetDescription.defaultProps = {
757
782
  const COMPONENT_ID$4 = 'chrome.sheet_body';
758
783
  const StyledSheetBody = styled__default.default.div.attrs({
759
784
  'data-garden-id': COMPONENT_ID$4,
760
- 'data-garden-version': '8.67.0'
785
+ 'data-garden-version': '8.68.0'
761
786
  }).withConfig({
762
787
  displayName: "StyledSheetBody",
763
788
  componentId: "sc-bt4eoj-0"
@@ -775,15 +800,17 @@ const BASE_MULTIPLIERS = {
775
800
  const colorStyles = props => {
776
801
  const backgroundColor = 'primaryHue';
777
802
  const foregroundColor = 'neutralHue';
778
- return styled.css(["background-color:transparent;color:", ";&:hover{background-color:", ";color:", ";}&[data-garden-focus-visible]{box-shadow:", ";}&:active{transition:background-color 0.1s ease-in-out,color 0.1s ease-in-out;background-color:", ";color:", ";}"], reactTheming.getColor(foregroundColor, 600, props.theme), reactTheming.getColor(backgroundColor, 600, props.theme, 0.08), reactTheming.getColor(foregroundColor, 700, props.theme), props.theme.shadows.md(reactTheming.getColor(backgroundColor, 600, props.theme, 0.35)), reactTheming.getColor(backgroundColor, 600, props.theme, 0.2), reactTheming.getColor(foregroundColor, 800, props.theme));
803
+ 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.getColor(foregroundColor, 600, props.theme), reactTheming.getColor(backgroundColor, 600, props.theme, 0.08), reactTheming.getColor(foregroundColor, 700, props.theme), reactTheming.focusStyles({
804
+ theme: props.theme
805
+ }), reactTheming.getColor(backgroundColor, 600, props.theme, 0.2), reactTheming.getColor(foregroundColor, 800, props.theme));
779
806
  };
780
807
  const StyledSheetClose = styled__default.default.button.attrs({
781
808
  'data-garden-id': COMPONENT_ID$3,
782
- 'data-garden-version': '8.67.0'
809
+ 'data-garden-version': '8.68.0'
783
810
  }).withConfig({
784
811
  displayName: "StyledSheetClose",
785
812
  componentId: "sc-1ab02oq-0"
786
- })(["display:flex;position:absolute;top:", "px;", ":", ";align-items:center;justify-content:center;transition:box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out;border:none;border-radius:50%;cursor:pointer;padding:0;width:", "px;height:", "px;overflow:hidden;text-decoration:none;font-size:0;user-select:none;&::-moz-focus-inner{border:0;}&:focus{outline:none;}", ";& > svg{vertical-align:middle;}", ";"], props => props.theme.space.base * BASE_MULTIPLIERS.top, props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.space.base * BASE_MULTIPLIERS.side}px`, props => props.theme.space.base * BASE_MULTIPLIERS.size, props => props.theme.space.base * BASE_MULTIPLIERS.size, props => colorStyles(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$3, props));
813
+ })(["display:flex;position:absolute;top:", "px;", ":", ";align-items:center;justify-content:center;transition:box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out;border:none;border-radius:50%;cursor:pointer;padding:0;width:", "px;height:", "px;overflow:hidden;text-decoration:none;font-size:0;user-select:none;&::-moz-focus-inner{border:0;}", ";& > svg{vertical-align:middle;}", ";"], props => props.theme.space.base * BASE_MULTIPLIERS.top, props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.space.base * BASE_MULTIPLIERS.side}px`, props => props.theme.space.base * BASE_MULTIPLIERS.size, props => props.theme.space.base * BASE_MULTIPLIERS.size, props => colorStyles(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$3, props));
787
814
  StyledSheetClose.defaultProps = {
788
815
  theme: reactTheming.DEFAULT_THEME
789
816
  };
@@ -791,7 +818,7 @@ StyledSheetClose.defaultProps = {
791
818
  const COMPONENT_ID$2 = 'chrome.sheet_footer';
792
819
  const StyledSheetFooter = styled__default.default.footer.attrs({
793
820
  'data-garden-id': COMPONENT_ID$2,
794
- 'data-garden-version': '8.67.0'
821
+ 'data-garden-version': '8.68.0'
795
822
  }).withConfig({
796
823
  displayName: "StyledSheetFooter",
797
824
  componentId: "sc-2cktos-0"
@@ -803,7 +830,7 @@ StyledSheetFooter.defaultProps = {
803
830
  const COMPONENT_ID$1 = 'chrome.sheet_footer_item';
804
831
  const StyledSheetFooterItem = styled__default.default.div.attrs({
805
832
  'data-garden-id': COMPONENT_ID$1,
806
- 'data-garden-version': '8.67.0'
833
+ 'data-garden-version': '8.68.0'
807
834
  }).withConfig({
808
835
  displayName: "StyledSheetFooterItem",
809
836
  componentId: "sc-r9ixh-0"
@@ -815,7 +842,7 @@ StyledSheetFooterItem.defaultProps = {
815
842
  const COMPONENT_ID = 'chrome.sheet_header';
816
843
  const StyledSheetHeader = styled__default.default.header.attrs({
817
844
  'data-garden-id': COMPONENT_ID,
818
- 'data-garden-version': '8.67.0'
845
+ 'data-garden-version': '8.68.0'
819
846
  }).withConfig({
820
847
  displayName: "StyledSheetHeader",
821
848
  componentId: "sc-o2ry8i-0"
@@ -1186,6 +1213,10 @@ const CollapsibleSubNavItem = React__namespace.default.forwardRef((_ref, ref) =>
1186
1213
  onChange,
1187
1214
  ...other
1188
1215
  } = _ref;
1216
+ const {
1217
+ isDark,
1218
+ isLight
1219
+ } = useChromeContext();
1189
1220
  const panelRef = React.useRef();
1190
1221
  const [internalExpanded, setInternalExpanded] = React.useState(controlledExpanded);
1191
1222
  const expanded = containerUtilities.getControlledValue(controlledExpanded, internalExpanded);
@@ -1214,13 +1245,16 @@ const CollapsibleSubNavItem = React__namespace.default.forwardRef((_ref, ref) =>
1214
1245
  ref: ref
1215
1246
  }, React__namespace.default.createElement("div", getHeaderProps({
1216
1247
  ariaLevel: 2
1217
- }), React__namespace.default.createElement(StyledSubNavItemHeader, getTriggerProps({
1248
+ }), React__namespace.default.createElement(StyledSubNavItemHeader, _extends$3({
1249
+ isDark: isDark,
1250
+ isLight: isLight
1251
+ }, getTriggerProps({
1218
1252
  isExpanded: expanded,
1219
1253
  index: 0,
1220
1254
  role: null,
1221
1255
  tabIndex: null,
1222
1256
  ...other
1223
- }), React__namespace.default.createElement(React__namespace.default.Fragment, null, header, React__namespace.default.createElement(StyledSubNavItemIconWrapper, {
1257
+ })), React__namespace.default.createElement(React__namespace.default.Fragment, null, header, React__namespace.default.createElement(StyledSubNavItemIconWrapper, {
1224
1258
  isExpanded: expanded
1225
1259
  }, React__namespace.default.createElement(StyledSubNavItemIcon, null))))), React__namespace.default.createElement(StyledSubNavPanel, getPanelProps({
1226
1260
  index: 0,
@@ -1397,7 +1431,7 @@ const SheetComponent = React__namespace.default.forwardRef((_ref, ref) => {
1397
1431
  const sheetRef = React.useRef(null);
1398
1432
  const seed = reactUid.useUIDSeed();
1399
1433
  const [isCloseButtonPresent, setIsCloseButtonPresent] = React.useState(false);
1400
- const idPrefix = React.useMemo(() => id || seed(`sheet_${'8.67.0'}`), [id, seed]);
1434
+ const idPrefix = React.useMemo(() => id || seed(`sheet_${'8.68.0'}`), [id, seed]);
1401
1435
  const titleId = `${idPrefix}--title`;
1402
1436
  const descriptionId = `${idPrefix}--description`;
1403
1437
  const sheetContext = React.useMemo(() => ({
package/dist/index.esm.js CHANGED
@@ -10,7 +10,7 @@ import React__default, { useContext, useMemo, useEffect, Children, isValidElemen
10
10
  import PropTypes from 'prop-types';
11
11
  import styled, { css, keyframes, ThemeContext } from 'styled-components';
12
12
  import { math, rgba, readableColor } from 'polished';
13
- import { retrieveComponentStyles, DEFAULT_THEME, getLineHeight, getColor, PALETTE, useDocument } from '@zendeskgarden/react-theming';
13
+ import { retrieveComponentStyles, DEFAULT_THEME, getLineHeight, getColor, PALETTE, SELECTOR_FOCUS_VISIBLE, focusStyles, useDocument } from '@zendeskgarden/react-theming';
14
14
  import { useAccordion } from '@zendeskgarden/container-accordion';
15
15
  import { getControlledValue } from '@zendeskgarden/container-utilities';
16
16
  import { useUIDSeed } from 'react-uid';
@@ -41,7 +41,7 @@ const useChromeContext = () => {
41
41
  const COMPONENT_ID$A = 'chrome.chrome';
42
42
  const StyledChrome = styled.div.attrs({
43
43
  'data-garden-id': COMPONENT_ID$A,
44
- 'data-garden-version': '8.67.0'
44
+ 'data-garden-version': '8.68.0'
45
45
  }).withConfig({
46
46
  displayName: "StyledChrome",
47
47
  componentId: "sc-1uqm6u6-0"
@@ -53,7 +53,7 @@ StyledChrome.defaultProps = {
53
53
  const COMPONENT_ID$z = 'chrome.header_item_icon';
54
54
  const StyledHeaderItemIcon = styled.div.attrs({
55
55
  'data-garden-id': COMPONENT_ID$z,
56
- 'data-garden-version': '8.67.0'
56
+ 'data-garden-version': '8.68.0'
57
57
  }).withConfig({
58
58
  displayName: "StyledHeaderItemIcon",
59
59
  componentId: "sc-1jhhp6z-0"
@@ -70,7 +70,7 @@ const sizeStyles$4 = props => {
70
70
  };
71
71
  const StyledBaseHeaderItem = styled.button.attrs({
72
72
  'data-garden-id': COMPONENT_ID$y,
73
- 'data-garden-version': '8.67.0'
73
+ 'data-garden-version': '8.68.0'
74
74
  }).withConfig({
75
75
  displayName: "StyledBaseHeaderItem",
76
76
  componentId: "sc-1qua7h6-0"
@@ -91,7 +91,7 @@ const COMPONENT_ID$x = 'chrome.header_item_text';
91
91
  const clippedStyling = css(["position:absolute;margin:0;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
92
92
  const StyledHeaderItemText = styled.span.attrs({
93
93
  'data-garden-id': COMPONENT_ID$x,
94
- 'data-garden-version': '8.67.0'
94
+ 'data-garden-version': '8.68.0'
95
95
  }).withConfig({
96
96
  displayName: "StyledHeaderItemText",
97
97
  componentId: "sc-goz7la-0"
@@ -115,7 +115,7 @@ const getExpandedNavWidth = () => {
115
115
  };
116
116
  const StyledNav = styled.nav.attrs({
117
117
  'data-garden-id': COMPONENT_ID$w,
118
- 'data-garden-version': '8.67.0'
118
+ 'data-garden-version': '8.68.0'
119
119
  }).withConfig({
120
120
  displayName: "StyledNav",
121
121
  componentId: "sc-6j462r-0"
@@ -147,7 +147,7 @@ const retrieveProductColor$1 = props => {
147
147
  };
148
148
  const StyledLogoHeaderItem = styled(StyledBaseHeaderItem).attrs({
149
149
  'data-garden-id': COMPONENT_ID$v,
150
- 'data-garden-version': '8.67.0',
150
+ 'data-garden-version': '8.68.0',
151
151
  as: 'div'
152
152
  }).withConfig({
153
153
  displayName: "StyledLogoHeaderItem",
@@ -168,11 +168,11 @@ const sizeStyles$3 = props => {
168
168
  };
169
169
  const StyledBaseNavItem = styled.button.attrs({
170
170
  'data-garden-id': COMPONENT_ID$u,
171
- 'data-garden-version': '8.67.0'
171
+ 'data-garden-version': '8.68.0'
172
172
  }).withConfig({
173
173
  displayName: "StyledBaseNavItem",
174
174
  componentId: "sc-zvo43f-0"
175
- })(["display:flex;flex-shrink:0;align-items:center;justify-content:center;transition:box-shadow 0.1s ease-in-out,background-color 0.1s ease-in-out,opacity 0.1s ease-in-out;border:none;box-sizing:border-box;background:transparent;text-decoration:none;color:inherit;font-size:inherit;", ""], props => sizeStyles$3(props));
175
+ })(["display:flex;flex-shrink:0;align-items:center;justify-content:center;transition:outline-color 0.1s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.1s ease-in-out,opacity 0.1s ease-in-out;border:none;box-sizing:border-box;background:transparent;text-decoration:none;color:inherit;font-size:inherit;", ""], props => sizeStyles$3(props));
176
176
  StyledBaseNavItem.defaultProps = {
177
177
  theme: DEFAULT_THEME
178
178
  };
@@ -183,7 +183,7 @@ const getHeaderHeight = props => {
183
183
  };
184
184
  const StyledHeader = styled.header.attrs({
185
185
  'data-garden-id': COMPONENT_ID$t,
186
- 'data-garden-version': '8.67.0'
186
+ 'data-garden-version': '8.68.0'
187
187
  }).withConfig({
188
188
  displayName: "StyledHeader",
189
189
  componentId: "sc-1cexpz-0"
@@ -205,7 +205,11 @@ const colorStyles$5 = theme => {
205
205
  const color = getColor('primaryHue', 600, theme);
206
206
  const borderColor = getColor('neutralHue', 300, theme);
207
207
  const boxShadow = theme.shadows.lg(`${theme.space.base * 5}px`, `${theme.space.base * 7}px`, getColor('chromeHue', 600, theme, 0.15));
208
- return css(["border-color:", ";box-shadow:", ";background-color:", ";color:", ";&:hover,&:focus{color:", ";}"], borderColor, boxShadow, theme.colors.background, color, color);
208
+ return css(["border-color:", ";box-shadow:", ";background-color:", ";color:", ";&:hover,&:focus{color:", ";}", ""], borderColor, boxShadow, theme.colors.background, color, color, focusStyles({
209
+ theme,
210
+ inset: true,
211
+ boxShadow
212
+ }));
209
213
  };
210
214
  const sizeStyles$2 = props => {
211
215
  const top = math(`${getHeaderHeight(props)} / 2`);
@@ -217,11 +221,11 @@ const sizeStyles$2 = props => {
217
221
  };
218
222
  const StyledSkipNav = styled.a.attrs({
219
223
  'data-garden-id': COMPONENT_ID$s,
220
- 'data-garden-version': '8.67.0'
224
+ 'data-garden-version': '8.68.0'
221
225
  }).withConfig({
222
226
  displayName: "StyledSkipNav",
223
227
  componentId: "sc-1tsro34-0"
224
- })(["", ";display:inline-flex;position:absolute;left:50%;align-items:center;justify-content:center;transform:translateX(-50%);direction:", ";z-index:", ";border:", ";border-radius:", ";text-decoration:underline;white-space:nowrap;", ";&:focus{outline:none;}", ";", ";"], animationStyles(), props => props.theme.rtl && 'rtl', props => props.zIndex, props => props.theme.borders.sm, props => props.theme.borderRadii.md, props => sizeStyles$2(props), props => colorStyles$5(props.theme), props => retrieveComponentStyles(COMPONENT_ID$s, props));
228
+ })(["", ";display:inline-flex;position:absolute;left:50%;align-items:center;justify-content:center;transform:translateX(-50%);direction:", ";z-index:", ";border:", ";border-radius:", ";text-decoration:underline;white-space:nowrap;", ";", "{text-decoration:none;}&:hover{text-decoration:underline;}", ";", ";"], animationStyles(), props => props.theme.rtl && 'rtl', props => props.zIndex, props => props.theme.borders.sm, props => props.theme.borderRadii.md, props => sizeStyles$2(props), SELECTOR_FOCUS_VISIBLE, props => colorStyles$5(props.theme), props => retrieveComponentStyles(COMPONENT_ID$s, props));
225
229
  StyledSkipNav.defaultProps = {
226
230
  theme: DEFAULT_THEME
227
231
  };
@@ -250,7 +254,7 @@ const sizeStyles$1 = theme => {
250
254
  };
251
255
  const StyledSkipNavIcon = styled(SvgLinkStroke).attrs({
252
256
  'data-garden-id': COMPONENT_ID$r,
253
- 'data-garden-version': '8.67.0'
257
+ 'data-garden-version': '8.68.0'
254
258
  }).withConfig({
255
259
  displayName: "StyledSkipNavIcon",
256
260
  componentId: "sc-1ika5z4-0"
@@ -262,7 +266,7 @@ StyledSkipNavIcon.defaultProps = {
262
266
  const COMPONENT_ID$q = 'chrome.body';
263
267
  const StyledBody = styled.div.attrs({
264
268
  'data-garden-id': COMPONENT_ID$q,
265
- 'data-garden-version': '8.67.0'
269
+ 'data-garden-version': '8.68.0'
266
270
  }).withConfig({
267
271
  displayName: "StyledBody",
268
272
  componentId: "sc-c7h9kv-0"
@@ -277,7 +281,7 @@ const getFooterHeight = props => {
277
281
  };
278
282
  const StyledFooter = styled.footer.attrs({
279
283
  'data-garden-id': COMPONENT_ID$p,
280
- 'data-garden-version': '8.67.0'
284
+ 'data-garden-version': '8.68.0'
281
285
  }).withConfig({
282
286
  displayName: "StyledFooter",
283
287
  componentId: "sc-v7lib2-0"
@@ -289,7 +293,7 @@ StyledFooter.defaultProps = {
289
293
  const COMPONENT_ID$o = 'chrome.content';
290
294
  const StyledContent = styled.div.attrs({
291
295
  'data-garden-id': COMPONENT_ID$o,
292
- 'data-garden-version': '8.67.0'
296
+ 'data-garden-version': '8.68.0'
293
297
  }).withConfig({
294
298
  displayName: "StyledContent",
295
299
  componentId: "sc-qcuzxn-0"
@@ -301,7 +305,7 @@ StyledContent.defaultProps = {
301
305
  const COMPONENT_ID$n = 'chrome.main';
302
306
  const StyledMain = styled.main.attrs({
303
307
  'data-garden-id': COMPONENT_ID$n,
304
- 'data-garden-version': '8.67.0'
308
+ 'data-garden-version': '8.68.0'
305
309
  }).withConfig({
306
310
  displayName: "StyledMain",
307
311
  componentId: "sc-t61cre-0"
@@ -313,7 +317,7 @@ StyledMain.defaultProps = {
313
317
  const COMPONENT_ID$m = 'chrome.sidebar';
314
318
  const StyledSidebar = styled.aside.attrs({
315
319
  'data-garden-id': COMPONENT_ID$m,
316
- 'data-garden-version': '8.67.0'
320
+ 'data-garden-version': '8.68.0'
317
321
  }).withConfig({
318
322
  displayName: "StyledSidebar",
319
323
  componentId: "sc-1q77fuw-0"
@@ -325,7 +329,7 @@ StyledSidebar.defaultProps = {
325
329
  const COMPONENT_ID$l = 'chrome.footer_item';
326
330
  const StyledFooterItem = styled.div.attrs({
327
331
  'data-garden-id': COMPONENT_ID$l,
328
- 'data-garden-version': '8.67.0'
332
+ 'data-garden-version': '8.68.0'
329
333
  }).withConfig({
330
334
  displayName: "StyledFooterItem",
331
335
  componentId: "sc-1cktm85-0"
@@ -341,18 +345,14 @@ const imgStyles = props => {
341
345
  };
342
346
  const StyledHeaderItem = styled(StyledBaseHeaderItem).attrs({
343
347
  'data-garden-id': COMPONENT_ID$k,
344
- 'data-garden-version': '8.67.0'
348
+ 'data-garden-version': '8.68.0'
345
349
  }).withConfig({
346
350
  displayName: "StyledHeaderItem",
347
351
  componentId: "sc-14sft6n-0"
348
- })(["&:hover,&:focus{text-decoration:none;color:inherit;}&:focus{outline:none;}&[data-garden-focus-visible]{box-shadow:", ";}&[data-garden-focus-visible]:active{box-shadow:none;}&:hover ", ",&:hover ", ",&:active ", ",&:active ", "{color:", ";}", " ", " ", " ", ";"], props => props.theme.shadows.md(getColor('chromeHue', 400, props.theme, 0.35)), StyledHeaderItemIcon, StyledHeaderItemText, StyledHeaderItemIcon, StyledHeaderItemText, props => getColor('chromeHue', 700, props.theme), props => props.maxY && `
349
- &[data-garden-focus-visible] {
350
- box-shadow: inset ${props.theme.shadows.lg(props.theme.shadowWidths.md, '0', getColor('chromeHue', 400, props.theme, 0.35))},
351
- ${props.theme.shadowWidths.md} 0 0 0 ${getColor('chromeHue', 400, props.theme, 0.35)},
352
- inset ${props.theme.shadows.lg(`-${props.theme.shadowWidths.md}`, '0', getColor('chromeHue', 400, props.theme, 0.35))},
353
- -${props.theme.shadowWidths.md} 0 0 0 ${getColor('chromeHue', 400, props.theme, 0.35)};
354
- }
355
- `, imgStyles, props => props.isRound && `
352
+ })(["&: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({
353
+ theme: props.theme,
354
+ inset: props.maxY
355
+ }), StyledHeaderItemIcon, StyledHeaderItemText, StyledHeaderItemIcon, StyledHeaderItemText, props => getColor('chromeHue', 700, props.theme), imgStyles, props => props.isRound && `
356
356
  ${StyledHeaderItemIcon} {
357
357
  border-radius: 100px;
358
358
  }
@@ -364,7 +364,7 @@ StyledHeaderItem.defaultProps = {
364
364
  const COMPONENT_ID$j = 'chrome.header_item_wrapper';
365
365
  const StyledHeaderItemWrapper = styled(StyledBaseHeaderItem).attrs({
366
366
  'data-garden-id': COMPONENT_ID$j,
367
- 'data-garden-version': '8.67.0',
367
+ 'data-garden-version': '8.68.0',
368
368
  as: 'div'
369
369
  }).withConfig({
370
370
  displayName: "StyledHeaderItemWrapper",
@@ -402,7 +402,7 @@ const colorStyles$4 = props => {
402
402
  };
403
403
  const StyledLogoNavItem = styled(StyledBaseNavItem).attrs({
404
404
  'data-garden-id': COMPONENT_ID$i,
405
- 'data-garden-version': '8.67.0',
405
+ 'data-garden-version': '8.68.0',
406
406
  as: 'div'
407
407
  }).withConfig({
408
408
  displayName: "StyledLogoNavItem",
@@ -415,7 +415,7 @@ StyledLogoNavItem.defaultProps = {
415
415
  const COMPONENT_ID$h = 'chrome.brandmark_nav_item';
416
416
  const StyledBrandmarkNavItem = styled(StyledBaseNavItem).attrs({
417
417
  'data-garden-id': COMPONENT_ID$h,
418
- 'data-garden-version': '8.67.0',
418
+ 'data-garden-version': '8.68.0',
419
419
  as: 'div'
420
420
  }).withConfig({
421
421
  displayName: "StyledBrandmarkNavItem",
@@ -428,7 +428,7 @@ StyledBrandmarkNavItem.defaultProps = {
428
428
  const COMPONENT_ID$g = 'chrome.nav_item_icon';
429
429
  const StyledNavItemIcon = styled.div.attrs({
430
430
  'data-garden-id': COMPONENT_ID$g,
431
- 'data-garden-version': '8.67.0'
431
+ 'data-garden-version': '8.68.0'
432
432
  }).withConfig({
433
433
  displayName: "StyledNavItemIcon",
434
434
  componentId: "sc-7w9rpt-0"
@@ -439,33 +439,47 @@ StyledNavItemIcon.defaultProps = {
439
439
 
440
440
  const COMPONENT_ID$f = 'chrome.nav_item';
441
441
  const colorStyles$3 = props => {
442
- const BLACK = props.theme.palette.black;
443
- const WHITE = props.theme.palette.white;
442
+ const {
443
+ theme,
444
+ hue,
445
+ isLight,
446
+ isDark,
447
+ isCurrent
448
+ } = props;
449
+ const DARK = theme.palette.black;
450
+ const LIGHT = theme.palette.white;
444
451
  let currentColor;
445
452
  let hoverColor;
446
- if (props.isCurrent) {
447
- if (props.isLight) {
448
- currentColor = rgba(BLACK, 0.3);
449
- } else if (props.isDark) {
450
- currentColor = rgba(WHITE, 0.3);
453
+ if (isCurrent) {
454
+ if (isLight) {
455
+ currentColor = rgba(DARK, 0.3);
456
+ } else if (isDark) {
457
+ currentColor = rgba(LIGHT, 0.3);
451
458
  } else {
452
- currentColor = getColor(props.hue, 500, props.theme);
459
+ currentColor = getColor(hue, 500, theme);
453
460
  }
454
461
  } else {
455
- hoverColor = rgba(props.isLight ? WHITE : BLACK, 0.1);
462
+ hoverColor = rgba(isLight ? LIGHT : DARK, 0.1);
456
463
  }
457
- const activeColor = rgba(props.isLight ? BLACK : WHITE, 0.1);
458
- const focusColor = rgba(props.isLight ? BLACK : WHITE, 0.2);
459
- return css(["opacity:", ";background-color:", ";&:hover{opacity:1;background-color:", ";}&[data-garden-focus-visible]{opacity:1;box-shadow:inset ", ";}&:active{background-color:", ";}"], props.isCurrent ? 1 : 0.6, currentColor, hoverColor, props.theme.shadows.md(focusColor), activeColor);
464
+ const activeColor = rgba(isLight ? DARK : LIGHT, 0.1);
465
+ const focusColor = isLight ? DARK : LIGHT;
466
+ return css(["opacity:", ";outline-color:transparent;background-color:", ";&:hover{opacity:1;background-color:", ";}", " &:active{background-color:", ";}"], isCurrent ? 1 : 0.6, currentColor, hoverColor, focusStyles({
467
+ theme,
468
+ condition: false ,
469
+ styles: {
470
+ opacity: 1,
471
+ outlineColor: focusColor
472
+ }
473
+ }), activeColor);
460
474
  };
461
475
  const StyledNavItem = styled(StyledBaseNavItem).attrs({
462
476
  'data-garden-id': COMPONENT_ID$f,
463
- 'data-garden-version': '8.67.0',
477
+ 'data-garden-version': '8.68.0',
464
478
  as: 'button'
465
479
  }).withConfig({
466
480
  displayName: "StyledNavItem",
467
481
  componentId: "sc-gs8mjz-0"
468
- })(["justify-content:", ";order:1;margin:0;cursor:", ";text-align:", ";&:hover,&:focus{text-decoration:none;color:inherit;}&:focus{outline:none;}", ";", " ", ";"], props => props.isExpanded && 'start', props => props.isCurrent ? 'default' : 'pointer', props => props.isExpanded && 'inherit', props => colorStyles$3(props), props => props.isExpanded && `
482
+ })(["justify-content:", ";order:1;margin:0;cursor:", ";text-align:", ";&:hover,&:focus{text-decoration:none;color:inherit;}", ";&:focus-visible:hover,&:focus-visible:active,", "{outline:", " solid;outline-offset:-", ";}", " ", ";"], props => props.isExpanded && 'start', props => props.isCurrent ? 'default' : 'pointer', props => props.isExpanded && 'inherit', colorStyles$3, SELECTOR_FOCUS_VISIBLE, props => math(`${props.theme.borderWidths.md} - 1`), props => props.theme.borderWidths.md, props => props.isExpanded && `
469
483
  ${StyledNavItemIcon} {
470
484
  margin: 0 ${math(`(${getNavWidth(props)} - ${props.theme.iconSizes.lg}) / 4`)};
471
485
  }
@@ -477,7 +491,7 @@ StyledNavItem.defaultProps = {
477
491
  const COMPONENT_ID$e = 'chrome.nav_item_text';
478
492
  const StyledNavItemText = styled.span.attrs({
479
493
  'data-garden-id': COMPONENT_ID$e,
480
- 'data-garden-version': '8.67.0'
494
+ 'data-garden-version': '8.68.0'
481
495
  }).withConfig({
482
496
  displayName: "StyledNavItemText",
483
497
  componentId: "sc-13m84xl-0"
@@ -497,33 +511,44 @@ StyledNavItemText.defaultProps = {
497
511
 
498
512
  const COMPONENT_ID$d = 'chrome.subnav_item';
499
513
  const colorStyles$2 = props => {
500
- const BLACK = props.theme.palette.black;
501
- const WHITE = props.theme.palette.white;
514
+ const {
515
+ theme,
516
+ isLight,
517
+ isCurrent
518
+ } = props;
519
+ const DARK = theme.palette.black;
520
+ const LIGHT = theme.palette.white;
502
521
  let currentColor;
503
522
  let hoverColor;
504
- if (props.isCurrent) {
505
- if (props.isLight) {
506
- currentColor = rgba(BLACK, 0.1);
523
+ if (isCurrent) {
524
+ if (isLight) {
525
+ currentColor = rgba(DARK, 0.1);
507
526
  } else {
508
- currentColor = rgba(WHITE, 0.1);
527
+ currentColor = rgba(LIGHT, 0.1);
509
528
  }
510
529
  } else {
511
- hoverColor = rgba(props.isLight ? WHITE : BLACK, 0.1);
530
+ hoverColor = rgba(isLight ? LIGHT : DARK, 0.1);
512
531
  }
513
- const activeColor = rgba(props.isLight ? BLACK : WHITE, 0.03);
514
- const focusColor = rgba(props.isLight ? BLACK : WHITE, 0.2);
515
- return css(["opacity:", ";background-color:", ";&:hover{opacity:1;background-color:", ";}&[data-garden-focus-visible]{opacity:1;box-shadow:", ";}&:not([data-garden-header='true']):active{background-color:", ";}"], props.isCurrent ? '1' : '0.6', currentColor, hoverColor, props.theme.shadows.md(focusColor), activeColor);
532
+ const activeColor = rgba(isLight ? DARK : LIGHT, 0.03);
533
+ return css(["opacity:", ";background-color:", ";&:hover{opacity:1;background-color:", ";}", " &:not([data-garden-header='true']):active{background-color:", ";}"], isCurrent ? '1' : '0.6', currentColor, hoverColor, focusStyles({
534
+ theme,
535
+ hue: isLight ? DARK : LIGHT,
536
+ spacerWidth: null,
537
+ styles: {
538
+ opacity: 1
539
+ }
540
+ }), activeColor);
516
541
  };
517
542
  const getSubNavItemHeight = props => {
518
543
  return `${props.theme.space.base * 7.5}px`;
519
544
  };
520
545
  const StyledSubNavItem = styled.button.attrs({
521
546
  'data-garden-id': COMPONENT_ID$d,
522
- 'data-garden-version': '8.67.0'
547
+ 'data-garden-version': '8.68.0'
523
548
  }).withConfig({
524
549
  displayName: "StyledSubNavItem",
525
550
  componentId: "sc-1yg9dpx-0"
526
- })(["display:flex;align-items:center;transition:box-shadow 0.1s ease-in-out,background-color 0.1s ease-in-out,opacity 0.1s ease-in-out;margin:", "px 0 0;border:none;border-radius:", ";box-sizing:border-box;background:transparent;cursor:", ";padding:", ";width:100%;min-height:", ";text-align:inherit;font-size:inherit;&,&:hover,&:focus{text-decoration:none;color:inherit;}&:focus{outline:none;}", ";", ";"], props => props.theme.space.base * 2, props => props.theme.borderRadii.md, props => props.isCurrent ? 'default' : 'pointer', props => `0 ${props.theme.space.base * 2}px`, getSubNavItemHeight, props => colorStyles$2(props), props => retrieveComponentStyles(COMPONENT_ID$d, props));
551
+ })(["display:flex;align-items:center;transition:box-shadow 0.1s ease-in-out,background-color 0.1s ease-in-out,opacity 0.1s ease-in-out;margin:", "px 0 0;border:none;border-radius:", ";box-sizing:border-box;background:transparent;cursor:", ";padding:", ";width:100%;min-height:", ";text-align:inherit;font-size:inherit;&,&:hover,&:focus{text-decoration:none;color:inherit;}", ";", ";"], props => props.theme.space.base * 2, props => props.theme.borderRadii.md, props => props.isCurrent ? 'default' : 'pointer', props => `0 ${props.theme.space.base * 2}px`, getSubNavItemHeight, props => colorStyles$2(props), props => retrieveComponentStyles(COMPONENT_ID$d, props));
527
552
  StyledSubNavItem.defaultProps = {
528
553
  theme: DEFAULT_THEME
529
554
  };
@@ -542,7 +567,7 @@ const colorStyles$1 = props => {
542
567
  };
543
568
  const StyledSubNav = styled.nav.attrs({
544
569
  'data-garden-id': COMPONENT_ID$c,
545
- 'data-garden-version': '8.67.0'
570
+ 'data-garden-version': '8.68.0'
546
571
  }).withConfig({
547
572
  displayName: "StyledSubNav",
548
573
  componentId: "sc-19hjou6-0"
@@ -560,7 +585,7 @@ const sizeStyles = props => {
560
585
  };
561
586
  const StyledSubNavItemText = styled.span.attrs({
562
587
  'data-garden-id': COMPONENT_ID$b,
563
- 'data-garden-version': '8.67.0'
588
+ 'data-garden-version': '8.68.0'
564
589
  }).withConfig({
565
590
  displayName: "StyledSubNavItemText",
566
591
  componentId: "sc-1hy0pn7-0"
@@ -572,7 +597,7 @@ StyledSubNavItemText.defaultProps = {
572
597
  const COMPONENT_ID$a = 'chrome.collapsible_sub_nav_item';
573
598
  const StyledSubNavItemHeader = styled(StyledSubNavItem).attrs({
574
599
  'data-garden-id': COMPONENT_ID$a,
575
- 'data-garden-version': '8.67.0',
600
+ 'data-garden-version': '8.68.0',
576
601
  'data-garden-header': 'true'
577
602
  }).withConfig({
578
603
  displayName: "StyledSubNavItemHeader",
@@ -619,7 +644,7 @@ StyledSubNavItemIcon.defaultProps = {
619
644
  };
620
645
  const StyledSubNavItemIconWrapper = styled.div.attrs({
621
646
  'data-garden-id': COMPONENT_ID$9,
622
- 'data-garden-version': '8.67.0'
647
+ 'data-garden-version': '8.68.0'
623
648
  }).withConfig({
624
649
  displayName: "StyledSubNavItemIcon__StyledSubNavItemIconWrapper",
625
650
  componentId: "sc-1d02hho-1"
@@ -637,7 +662,7 @@ const PANEL_COMPONENT_ID = 'chrome.collapsible_sub_nav_item_panel';
637
662
  const hiddenStyling = css(["visibility:hidden;max-height:0 !important;overflow:hidden;"]);
638
663
  const StyledSubNavPanel = styled.div.attrs({
639
664
  'data-garden-id': PANEL_COMPONENT_ID,
640
- 'data-garden-version': '8.67.0'
665
+ 'data-garden-version': '8.68.0'
641
666
  }).withConfig({
642
667
  displayName: "StyledSubNavPanel",
643
668
  componentId: "sc-1jv3rpv-0"
@@ -668,7 +693,7 @@ const borderStyle = _ref => {
668
693
  };
669
694
  const StyledSheet = styled.aside.attrs({
670
695
  'data-garden-id': COMPONENT_ID$8,
671
- 'data-garden-version': '8.67.0'
696
+ 'data-garden-version': '8.68.0'
672
697
  }).withConfig({
673
698
  displayName: "StyledSheet",
674
699
  componentId: "sc-dx8ijk-0"
@@ -680,7 +705,7 @@ StyledSheet.defaultProps = {
680
705
  const COMPONENT_ID$7 = 'chrome.sheet_wrapper';
681
706
  const StyledSheetWrapper = styled.div.attrs({
682
707
  'data-garden-id': COMPONENT_ID$7,
683
- 'data-garden-version': '8.67.0'
708
+ 'data-garden-version': '8.68.0'
684
709
  }).withConfig({
685
710
  displayName: "StyledSheetWrapper",
686
711
  componentId: "sc-f6x9zb-0"
@@ -707,7 +732,7 @@ StyledSheetWrapper.defaultProps = {
707
732
  const COMPONENT_ID$6 = 'chrome.sheet_title';
708
733
  const StyledSheetTitle = styled.div.attrs({
709
734
  'data-garden-id': COMPONENT_ID$6,
710
- 'data-garden-version': '8.67.0'
735
+ 'data-garden-version': '8.68.0'
711
736
  }).withConfig({
712
737
  displayName: "StyledSheetTitle",
713
738
  componentId: "sc-1gogk75-0"
@@ -719,7 +744,7 @@ StyledSheetTitle.defaultProps = {
719
744
  const COMPONENT_ID$5 = 'chrome.sheet_description';
720
745
  const StyledSheetDescription = styled.div.attrs({
721
746
  'data-garden-id': COMPONENT_ID$5,
722
- 'data-garden-version': '8.67.0'
747
+ 'data-garden-version': '8.68.0'
723
748
  }).withConfig({
724
749
  displayName: "StyledSheetDescription",
725
750
  componentId: "sc-1puglb6-0"
@@ -731,7 +756,7 @@ StyledSheetDescription.defaultProps = {
731
756
  const COMPONENT_ID$4 = 'chrome.sheet_body';
732
757
  const StyledSheetBody = styled.div.attrs({
733
758
  'data-garden-id': COMPONENT_ID$4,
734
- 'data-garden-version': '8.67.0'
759
+ 'data-garden-version': '8.68.0'
735
760
  }).withConfig({
736
761
  displayName: "StyledSheetBody",
737
762
  componentId: "sc-bt4eoj-0"
@@ -749,15 +774,17 @@ const BASE_MULTIPLIERS = {
749
774
  const colorStyles = props => {
750
775
  const backgroundColor = 'primaryHue';
751
776
  const foregroundColor = 'neutralHue';
752
- return css(["background-color:transparent;color:", ";&:hover{background-color:", ";color:", ";}&[data-garden-focus-visible]{box-shadow:", ";}&:active{transition:background-color 0.1s ease-in-out,color 0.1s ease-in-out;background-color:", ";color:", ";}"], getColor(foregroundColor, 600, props.theme), getColor(backgroundColor, 600, props.theme, 0.08), getColor(foregroundColor, 700, props.theme), props.theme.shadows.md(getColor(backgroundColor, 600, props.theme, 0.35)), getColor(backgroundColor, 600, props.theme, 0.2), getColor(foregroundColor, 800, props.theme));
777
+ 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:", ";}"], getColor(foregroundColor, 600, props.theme), getColor(backgroundColor, 600, props.theme, 0.08), getColor(foregroundColor, 700, props.theme), focusStyles({
778
+ theme: props.theme
779
+ }), getColor(backgroundColor, 600, props.theme, 0.2), getColor(foregroundColor, 800, props.theme));
753
780
  };
754
781
  const StyledSheetClose = styled.button.attrs({
755
782
  'data-garden-id': COMPONENT_ID$3,
756
- 'data-garden-version': '8.67.0'
783
+ 'data-garden-version': '8.68.0'
757
784
  }).withConfig({
758
785
  displayName: "StyledSheetClose",
759
786
  componentId: "sc-1ab02oq-0"
760
- })(["display:flex;position:absolute;top:", "px;", ":", ";align-items:center;justify-content:center;transition:box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out;border:none;border-radius:50%;cursor:pointer;padding:0;width:", "px;height:", "px;overflow:hidden;text-decoration:none;font-size:0;user-select:none;&::-moz-focus-inner{border:0;}&:focus{outline:none;}", ";& > svg{vertical-align:middle;}", ";"], props => props.theme.space.base * BASE_MULTIPLIERS.top, props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.space.base * BASE_MULTIPLIERS.side}px`, props => props.theme.space.base * BASE_MULTIPLIERS.size, props => props.theme.space.base * BASE_MULTIPLIERS.size, props => colorStyles(props), props => retrieveComponentStyles(COMPONENT_ID$3, props));
787
+ })(["display:flex;position:absolute;top:", "px;", ":", ";align-items:center;justify-content:center;transition:box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out;border:none;border-radius:50%;cursor:pointer;padding:0;width:", "px;height:", "px;overflow:hidden;text-decoration:none;font-size:0;user-select:none;&::-moz-focus-inner{border:0;}", ";& > svg{vertical-align:middle;}", ";"], props => props.theme.space.base * BASE_MULTIPLIERS.top, props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.space.base * BASE_MULTIPLIERS.side}px`, props => props.theme.space.base * BASE_MULTIPLIERS.size, props => props.theme.space.base * BASE_MULTIPLIERS.size, props => colorStyles(props), props => retrieveComponentStyles(COMPONENT_ID$3, props));
761
788
  StyledSheetClose.defaultProps = {
762
789
  theme: DEFAULT_THEME
763
790
  };
@@ -765,7 +792,7 @@ StyledSheetClose.defaultProps = {
765
792
  const COMPONENT_ID$2 = 'chrome.sheet_footer';
766
793
  const StyledSheetFooter = styled.footer.attrs({
767
794
  'data-garden-id': COMPONENT_ID$2,
768
- 'data-garden-version': '8.67.0'
795
+ 'data-garden-version': '8.68.0'
769
796
  }).withConfig({
770
797
  displayName: "StyledSheetFooter",
771
798
  componentId: "sc-2cktos-0"
@@ -777,7 +804,7 @@ StyledSheetFooter.defaultProps = {
777
804
  const COMPONENT_ID$1 = 'chrome.sheet_footer_item';
778
805
  const StyledSheetFooterItem = styled.div.attrs({
779
806
  'data-garden-id': COMPONENT_ID$1,
780
- 'data-garden-version': '8.67.0'
807
+ 'data-garden-version': '8.68.0'
781
808
  }).withConfig({
782
809
  displayName: "StyledSheetFooterItem",
783
810
  componentId: "sc-r9ixh-0"
@@ -789,7 +816,7 @@ StyledSheetFooterItem.defaultProps = {
789
816
  const COMPONENT_ID = 'chrome.sheet_header';
790
817
  const StyledSheetHeader = styled.header.attrs({
791
818
  'data-garden-id': COMPONENT_ID,
792
- 'data-garden-version': '8.67.0'
819
+ 'data-garden-version': '8.68.0'
793
820
  }).withConfig({
794
821
  displayName: "StyledSheetHeader",
795
822
  componentId: "sc-o2ry8i-0"
@@ -1160,6 +1187,10 @@ const CollapsibleSubNavItem = React__default.forwardRef((_ref, ref) => {
1160
1187
  onChange,
1161
1188
  ...other
1162
1189
  } = _ref;
1190
+ const {
1191
+ isDark,
1192
+ isLight
1193
+ } = useChromeContext();
1163
1194
  const panelRef = useRef();
1164
1195
  const [internalExpanded, setInternalExpanded] = useState(controlledExpanded);
1165
1196
  const expanded = getControlledValue(controlledExpanded, internalExpanded);
@@ -1188,13 +1219,16 @@ const CollapsibleSubNavItem = React__default.forwardRef((_ref, ref) => {
1188
1219
  ref: ref
1189
1220
  }, React__default.createElement("div", getHeaderProps({
1190
1221
  ariaLevel: 2
1191
- }), React__default.createElement(StyledSubNavItemHeader, getTriggerProps({
1222
+ }), React__default.createElement(StyledSubNavItemHeader, _extends$3({
1223
+ isDark: isDark,
1224
+ isLight: isLight
1225
+ }, getTriggerProps({
1192
1226
  isExpanded: expanded,
1193
1227
  index: 0,
1194
1228
  role: null,
1195
1229
  tabIndex: null,
1196
1230
  ...other
1197
- }), React__default.createElement(React__default.Fragment, null, header, React__default.createElement(StyledSubNavItemIconWrapper, {
1231
+ })), React__default.createElement(React__default.Fragment, null, header, React__default.createElement(StyledSubNavItemIconWrapper, {
1198
1232
  isExpanded: expanded
1199
1233
  }, React__default.createElement(StyledSubNavItemIcon, null))))), React__default.createElement(StyledSubNavPanel, getPanelProps({
1200
1234
  index: 0,
@@ -1371,7 +1405,7 @@ const SheetComponent = React__default.forwardRef((_ref, ref) => {
1371
1405
  const sheetRef = useRef(null);
1372
1406
  const seed = useUIDSeed();
1373
1407
  const [isCloseButtonPresent, setIsCloseButtonPresent] = useState(false);
1374
- const idPrefix = useMemo(() => id || seed(`sheet_${'8.67.0'}`), [id, seed]);
1408
+ const idPrefix = useMemo(() => id || seed(`sheet_${'8.68.0'}`), [id, seed]);
1375
1409
  const titleId = `${idPrefix}--title`;
1376
1410
  const descriptionId = `${idPrefix}--description`;
1377
1411
  const sheetContext = useMemo(() => ({
@@ -4,8 +4,8 @@
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 { HTMLAttributes, PropsWithChildren } from 'react';
7
+ import React, { HTMLAttributes, PropsWithChildren } from 'react';
8
8
  /**
9
9
  * @extends HTMLAttributes<HTMLElement>
10
10
  */
11
- export declare const HeaderItemIcon: ({ children, ...props }: PropsWithChildren<HTMLAttributes<HTMLElement>>) => JSX.Element | null;
11
+ export declare const HeaderItemIcon: ({ children, ...props }: PropsWithChildren<HTMLAttributes<HTMLElement>>) => React.JSX.Element | null;
@@ -4,8 +4,8 @@
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 { HTMLAttributes, PropsWithChildren } from 'react';
7
+ import React, { HTMLAttributes, PropsWithChildren } from 'react';
8
8
  /**
9
9
  * @extends HTMLAttributes<HTMLElement>
10
10
  */
11
- export declare const NavItemIcon: ({ children, ...props }: PropsWithChildren<HTMLAttributes<HTMLElement>>) => JSX.Element | null;
11
+ export declare const NavItemIcon: ({ children, ...props }: PropsWithChildren<HTMLAttributes<HTMLElement>>) => React.JSX.Element | null;
@@ -8,6 +8,9 @@ import { DefaultTheme } from 'styled-components';
8
8
  interface IStyledSkipNavProps {
9
9
  zIndex?: number;
10
10
  }
11
+ /**
12
+ * 1. breaking LVHFA order for `<a>` to underline when focused and hovered
13
+ */
11
14
  export declare const StyledSkipNav: import("styled-components").StyledComponent<"a", DefaultTheme, {
12
15
  'data-garden-id': string;
13
16
  'data-garden-version': string;
@@ -15,6 +15,8 @@ interface IStyledNavItemProps extends ThemeProps<DefaultTheme> {
15
15
  /**
16
16
  * 1. Anchor reset
17
17
  * 2. Button reset
18
+ * 3. Override `focusStyles` outline (in `colorStyles`)
19
+ * 4. Use of negative offset to create an inset outline
18
20
  */
19
21
  export declare const StyledNavItem: import("styled-components").StyledComponent<"button", DefaultTheme, {
20
22
  'data-garden-id': string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-chrome",
3
- "version": "8.67.0",
3
+ "version": "8.68.0",
4
4
  "description": "Components relating to Chrome within the Garden Design System.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Zendesk Garden <garden@zendesk.com>",
@@ -29,13 +29,13 @@
29
29
  "react-merge-refs": "^1.1.0"
30
30
  },
31
31
  "peerDependencies": {
32
- "@zendeskgarden/react-theming": "^8.1.0",
32
+ "@zendeskgarden/react-theming": "^8.67.0",
33
33
  "react": ">=16.8.0",
34
34
  "react-dom": ">=16.8.0",
35
35
  "styled-components": "^4.2.0 || ^5.0.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@zendeskgarden/react-theming": "^8.67.0",
38
+ "@zendeskgarden/react-theming": "^8.68.0",
39
39
  "@zendeskgarden/svg-icons": "6.33.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": "50a98b0cd7c85bed2ed88ad869e6f2cd3fc68f62"
51
+ "gitHead": "e05a28d586f47d95e0570fe2d529915aa4285845"
52
52
  }