@primer/react 38.46.0-rc.4db999d82 → 38.46.0-rc.5f28991c7

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/ActionList/LinkItem.js +97 -30
  3. package/dist/Breadcrumbs/{Breadcrumbs-16d81430.css → Breadcrumbs-6c9aadcf.css} +2 -2
  4. package/dist/Breadcrumbs/Breadcrumbs-6c9aadcf.css.map +1 -0
  5. package/dist/Breadcrumbs/Breadcrumbs.js +403 -391
  6. package/dist/Breadcrumbs/Breadcrumbs.module.css.js +1 -1
  7. package/dist/Card/Card-0e84ee3c.css +2 -0
  8. package/dist/Card/Card-0e84ee3c.css.map +1 -0
  9. package/dist/Card/Card.d.ts +13 -3
  10. package/dist/Card/Card.js +286 -161
  11. package/dist/Card/Card.module.css.js +2 -1
  12. package/dist/Card/index.d.ts +13 -3
  13. package/dist/Card/index.js +3 -1
  14. package/dist/ProgressBar/ProgressBar-3d1db6c7.css +2 -0
  15. package/dist/ProgressBar/ProgressBar-3d1db6c7.css.map +1 -0
  16. package/dist/ProgressBar/ProgressBar.module.css.js +1 -1
  17. package/dist/Skeleton/skeleton-bdbe6bf2.css +2 -0
  18. package/dist/Skeleton/skeleton-bdbe6bf2.css.map +1 -0
  19. package/dist/Skeleton/skeleton.module.css.js +1 -1
  20. package/dist/TooltipV2/Tooltip.js +55 -51
  21. package/dist/TreeView/TreeView.js +29 -15
  22. package/dist/TreeView/useTreeRovingTabIndex.js +155 -0
  23. package/dist/experimental/index.d.ts +2 -2
  24. package/dist/index.js +1 -1
  25. package/generated/components.json +82 -3
  26. package/package.json +13 -13
  27. package/dist/Breadcrumbs/Breadcrumbs-16d81430.css.map +0 -1
  28. package/dist/Card/Card-59b77d05.css +0 -2
  29. package/dist/Card/Card-59b77d05.css.map +0 -1
  30. package/dist/ProgressBar/ProgressBar-e403d83d.css +0 -2
  31. package/dist/ProgressBar/ProgressBar-e403d83d.css.map +0 -1
  32. package/dist/Skeleton/skeleton-27888827.css +0 -2
  33. package/dist/Skeleton/skeleton-27888827.css.map +0 -1
package/CHANGELOG.md CHANGED
@@ -4,14 +4,28 @@
4
4
 
5
5
  ### Minor Changes
6
6
 
7
+ - [#8592](https://github.com/primer/react/pull/8592) [`0ae18d3`](https://github.com/primer/react/commit/0ae18d38f09044c40c1a181288c2783e93629b4e) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Card: Add optional shadows, regular (16px) and spacious (24px) padding in either layout, and heading links and buttons with opt-in full-card hit areas using fullCardHitArea. Existing normal padding and defaults are unchanged.
8
+
7
9
  - [#8692](https://github.com/primer/react/pull/8692) [`918d7cf`](https://github.com/primer/react/commit/918d7cf82d3884ab134e9b074e0a595198a1c033) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Stack: Add `balance` as a value for the `wrap` prop.
8
10
 
9
11
  ### Patch Changes
10
12
 
13
+ - [#8683](https://github.com/primer/react/pull/8683) [`32d5061`](https://github.com/primer/react/commit/32d50618c58cceddf66d83716ac9742c2134b790) Thanks [@mattcosta7](https://github.com/mattcosta7)! - Breadcrumbs: Improve the performance of `overflow="menu"` and `"menu-with-root"` on mount, resize and navigation. Server-rendered markup now applies the collapse rules before hydration, and the overflow menu trigger is a `<button>`.
14
+
15
+ - [#8592](https://github.com/primer/react/pull/8592) [`0ae18d3`](https://github.com/primer/react/commit/0ae18d38f09044c40c1a181288c2783e93629b4e) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Card: Improve shrinking and equal-height layouts, keep secondary controls accessible in custom whole-card compositions, and keep images edge-to-edge across padding options.
16
+
17
+ - [#8679](https://github.com/primer/react/pull/8679) [`dbf2ac1`](https://github.com/primer/react/commit/dbf2ac1d758a0aae69f37ad1bd789480ce58ff4c) Thanks [@llastflowers](https://github.com/llastflowers)! - Breadcrumbs: Close the overflow menu when Escape is pressed while its tooltip is open.
18
+
11
19
  - [#8628](https://github.com/primer/react/pull/8628) [`41f29c8`](https://github.com/primer/react/commit/41f29c845663936043618af29dcb71de4c9384b2) Thanks [@joshblack](https://github.com/joshblack)! - SkeletonAvatar, SkeletonText: Preserve the requested size and shape regardless of stylesheet load order
12
20
 
21
+ - [#8681](https://github.com/primer/react/pull/8681) [`8a9013e`](https://github.com/primer/react/commit/8a9013ea48359ad60a60e194783c865c08d3b7db) Thanks [@mattcosta7](https://github.com/mattcosta7)! - SkeletonBox, SkeletonText, SkeletonAvatar, ProgressBar: Run the loading shimmer animation on the compositor to reduce main-thread work while skeletons are visible
22
+
13
23
  - [#8562](https://github.com/primer/react/pull/8562) [`ee46232`](https://github.com/primer/react/commit/ee46232fafa24701415b21eed60cca68e589cf1c) Thanks [@joshblack](https://github.com/joshblack)! - useOnEscapePress, useOnOutsideClick: Improve performance when callbacks change between renders.
14
24
 
25
+ - [#8609](https://github.com/primer/react/pull/8609) [`da90227`](https://github.com/primer/react/commit/da9022741a8109195480d7e6ccdf80cd723d6199) Thanks [@tay1orjones](https://github.com/tay1orjones)! - ActionList.LinkItem, NavList.Item: Preserve keyboard focus and running child animations when links rerender.
26
+
27
+ - [#8684](https://github.com/primer/react/pull/8684) [`35ff497`](https://github.com/primer/react/commit/35ff4972b1d62810df69f606c6785bc7f123d5d5) Thanks [@mattcosta7](https://github.com/mattcosta7)! - TreeView: Reduce mount and hydration cost for large trees. Server-rendered trees now have a single tab stop and named subtrees before hydration.
28
+
15
29
  ## 38.45.0
16
30
 
17
31
  ### Minor Changes
@@ -1,43 +1,110 @@
1
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import { fixedForwardRef } from "../utils/modern-polymorphic.js";
2
3
  import { Tooltip } from "../TooltipV2/Tooltip.js";
3
4
  import { Item } from "./Item.js";
4
5
  import Link from "../Link/Link.js";
6
+ import React from "react";
5
7
  import { jsx } from "react/jsx-runtime";
6
8
  //#region src/ActionList/LinkItem.tsx
7
- const LinkItemComponent = fixedForwardRef(({ active, inactiveText, variant, size, as: Component, className, _PrivateTooltipText, ...props }, forwardedRef) => {
8
- return /* @__PURE__ */ jsx(Item, {
9
- className,
10
- active,
11
- inactiveText,
12
- "data-inactive": inactiveText ? true : void 0,
13
- variant,
14
- size,
15
- _PrivateItemWrapper: ({ children, onClick, ...rest }) => {
16
- const clickHandler = (event) => {
17
- onClick && onClick(event);
18
- props.onClick && props.onClick(event);
19
- };
20
- if (inactiveText) return /* @__PURE__ */ jsx("span", {
9
+ const LinkItemWrapperContext = /*#__PURE__*/ React.createContext(null);
10
+ const LinkItemWrapper = (t0) => {
11
+ const $ = c(21);
12
+ let children;
13
+ let onClick;
14
+ let rest;
15
+ if ($[0] !== t0) {
16
+ ({children, onClick, ...rest} = t0);
17
+ $[0] = t0;
18
+ $[1] = children;
19
+ $[2] = onClick;
20
+ $[3] = rest;
21
+ } else {
22
+ children = $[1];
23
+ onClick = $[2];
24
+ rest = $[3];
25
+ }
26
+ const context = React.useContext(LinkItemWrapperContext);
27
+ if (!context) throw new Error("LinkItemWrapper must be rendered within ActionList.LinkItem");
28
+ const { Component, linkProps, inactiveText, forwardedRef, tooltipText } = context;
29
+ let t1;
30
+ if ($[4] !== linkProps || $[5] !== onClick) {
31
+ t1 = (event) => {
32
+ onClick && onClick(event);
33
+ linkProps.onClick && linkProps.onClick(event);
34
+ };
35
+ $[4] = linkProps;
36
+ $[5] = onClick;
37
+ $[6] = t1;
38
+ } else t1 = $[6];
39
+ const clickHandler = t1;
40
+ if (inactiveText) {
41
+ let t2;
42
+ if ($[7] !== children || $[8] !== rest) {
43
+ t2 = /* @__PURE__ */ jsx("span", {
21
44
  ...rest,
22
45
  children
23
46
  });
24
- const link = /* @__PURE__ */ jsx(Link, {
25
- as: Component,
26
- ...rest,
27
- ...props,
28
- onClick: clickHandler,
29
- ref: _PrivateTooltipText ? void 0 : forwardedRef,
30
- children
31
- });
32
- return _PrivateTooltipText ? /* @__PURE__ */ jsx(Tooltip, {
33
- ref: forwardedRef,
34
- text: _PrivateTooltipText,
35
- direction: "e",
36
- delay: "medium",
37
- children: link
38
- }) : link;
47
+ $[7] = children;
48
+ $[8] = rest;
49
+ $[9] = t2;
50
+ } else t2 = $[9];
51
+ return t2;
52
+ }
53
+ const t2 = tooltipText ? void 0 : forwardedRef;
54
+ let t3;
55
+ if ($[10] !== Component || $[11] !== children || $[12] !== clickHandler || $[13] !== linkProps || $[14] !== rest || $[15] !== t2) {
56
+ t3 = /* @__PURE__ */ jsx(Link, {
57
+ as: Component,
58
+ ...rest,
59
+ ...linkProps,
60
+ onClick: clickHandler,
61
+ ref: t2,
62
+ children
63
+ });
64
+ $[10] = Component;
65
+ $[11] = children;
66
+ $[12] = clickHandler;
67
+ $[13] = linkProps;
68
+ $[14] = rest;
69
+ $[15] = t2;
70
+ $[16] = t3;
71
+ } else t3 = $[16];
72
+ const link = t3;
73
+ let t4;
74
+ if ($[17] !== forwardedRef || $[18] !== link || $[19] !== tooltipText) {
75
+ t4 = tooltipText ? /* @__PURE__ */ jsx(Tooltip, {
76
+ ref: forwardedRef,
77
+ text: tooltipText,
78
+ direction: "e",
79
+ delay: "medium",
80
+ children: link
81
+ }) : link;
82
+ $[17] = forwardedRef;
83
+ $[18] = link;
84
+ $[19] = tooltipText;
85
+ $[20] = t4;
86
+ } else t4 = $[20];
87
+ return t4;
88
+ };
89
+ const LinkItemComponent = fixedForwardRef(({ active, inactiveText, variant, size, as: Component, className, _PrivateTooltipText, ...props }, forwardedRef) => {
90
+ return /* @__PURE__ */ jsx(LinkItemWrapperContext.Provider, {
91
+ value: {
92
+ Component,
93
+ linkProps: props,
94
+ inactiveText,
95
+ forwardedRef,
96
+ tooltipText: _PrivateTooltipText
39
97
  },
40
- children: props.children
98
+ children: /* @__PURE__ */ jsx(Item, {
99
+ className,
100
+ active,
101
+ inactiveText,
102
+ "data-inactive": inactiveText ? true : void 0,
103
+ variant,
104
+ size,
105
+ _PrivateItemWrapper: LinkItemWrapper,
106
+ children: props.children
107
+ })
41
108
  });
42
109
  });
43
110
  const LinkItem = Object.assign(LinkItemComponent, {
@@ -1,2 +1,2 @@
1
- .prc-Breadcrumbs-BreadcrumbsBase-3Gb-B{display:flex;justify-content:space-between;width:100%}.prc-Breadcrumbs-BreadcrumbsList-BKjpe{margin-bottom:0;margin-top:0;padding-left:0}[data-overflow=menu-with-root] .prc-Breadcrumbs-BreadcrumbsList-BKjpe,[data-overflow=menu] .prc-Breadcrumbs-BreadcrumbsList-BKjpe{display:flex;flex-direction:row;white-space:nowrap}.prc-Breadcrumbs-ItemSeparator-kjXqh{align-self:center;color:var(--fgColor-muted,#59636e);display:flex;justify-content:center;-webkit-user-select:none;user-select:none;white-space:nowrap}.prc-Breadcrumbs-ItemWrapper-k0NLn{list-style:none}.prc-Breadcrumbs-ItemWrapper-k0NLn,.prc-Breadcrumbs-ItemWrapper-k0NLn:after{display:inline-block;font-size:var(--text-body-size-medium,.875rem)}.prc-Breadcrumbs-ItemWrapper-k0NLn:after{border-right:.1em solid var(--fgColor-muted,#59636e);content:"";height:.8em;margin:0 .5em;transform:rotate(15deg) translateY(.0625em)}.prc-Breadcrumbs-ItemWrapper-k0NLn:first-child{margin-left:0}.prc-Breadcrumbs-ItemWrapper-k0NLn:last-child:after{content:none}.prc-Breadcrumbs-Item-jcraJ{display:inline-block;font-size:var(--text-body-size-medium,.875rem)}.prc-Breadcrumbs-Item-jcraJ:focus-visible{border-radius:var(--borderRadius-small,.1875rem);box-shadow:none;outline:2px solid var(--focus-outline-color,var(--focus-outlineColor,#0969da));outline-offset:2px}[data-variant=normal] .prc-Breadcrumbs-Item-jcraJ{color:var(--fgColor-link,#0969da);-webkit-text-decoration:none;text-decoration:none}[data-variant=normal] .prc-Breadcrumbs-Item-jcraJ:not([aria-current]):hover{-webkit-text-decoration:underline;text-decoration:underline}[data-variant=normal] .prc-Breadcrumbs-Item-jcraJ:focus-visible{-webkit-text-decoration:none;text-decoration:none}[data-variant=normal] .prc-Breadcrumbs-Item-jcraJ[aria-current]{color:var(--fgColor-default,#1f2328)}[data-variant=spacious] .prc-Breadcrumbs-Item-jcraJ{border-radius:var(--borderRadius-medium,.375rem);color:var(--fgColor-default,#1f2328);padding-block:var(--base-size-4,.25rem);padding-inline:var(--base-size-6,.375rem);-webkit-text-decoration:none;text-decoration:none}[data-variant=spacious] .prc-Breadcrumbs-Item-jcraJ:hover{background:var(--control-transparent-bgColor-hover,#818b981a);-webkit-text-decoration:none;text-decoration:none}[data-variant=spacious] .prc-Breadcrumbs-Item-jcraJ[aria-current]{font-weight:var(--base-text-weight-semibold,600)}.prc-Breadcrumbs-BreadcrumbsItem-L-Xrs{align-items:center;display:inline-grid;flex:0 99999 auto;grid-auto-flow:column;list-style:none;min-width:auto;white-space:nowrap}.prc-Breadcrumbs-BreadcrumbsItem-L-Xrs[data-overflow-menu]{white-space:normal}.prc-Breadcrumbs-BreadcrumbsItem-L-Xrs:first-child{margin-left:0}.prc-Breadcrumbs-BreadcrumbsItem-L-Xrs:last-child .prc-Breadcrumbs-ItemSeparator-kjXqh{display:none}.prc-Breadcrumbs-BreadcrumbsItem-L-Xrs .prc-Breadcrumbs-MenuDetails-JOGTj{display:inline-block;position:relative}.prc-Breadcrumbs-BreadcrumbsItem-L-Xrs .prc-Breadcrumbs-MenuDetails-JOGTj summary{cursor:pointer;list-style:none}.prc-Breadcrumbs-BreadcrumbsItem-L-Xrs .prc-Breadcrumbs-MenuDetails-JOGTj summary::-webkit-details-marker{display:none}.prc-Breadcrumbs-BreadcrumbsItem-L-Xrs .prc-Breadcrumbs-MenuOverlay--ayLx{background-color:var(--overlay-bgColor,#fff);border-radius:var(--borderRadius-large,.75rem);box-shadow:var(--shadow-floating-small,0 0 0 1px #d1d9e080,0 6px 12px -3px #25292e0a,0 6px 18px 0 #25292e1f);max-height:100vh;max-width:var(--overlay-width-small,20rem);min-width:var(--overlay-width-xsmall,12rem);overflow:hidden;position:absolute;top:calc(var(--overlay-offset,.25rem) + var(--control-small-size,1.75rem));z-index:1}@media (prefers-reduced-motion:no-preference){.prc-Breadcrumbs-BreadcrumbsItem-L-Xrs .prc-Breadcrumbs-MenuOverlay--ayLx{animation:prc-Breadcrumbs-overlay-appear-CSLnF .2s cubic-bezier(.33,1,.68,1)}}
2
- /*# sourceMappingURL=Breadcrumbs-16d81430.css.map */
1
+ .prc-Breadcrumbs-BreadcrumbsBase-3Gb-B{display:flex;justify-content:space-between;width:100%}.prc-Breadcrumbs-BreadcrumbsList-BKjpe{margin-bottom:0;margin-top:0;padding-left:0}[data-overflow=menu-with-root] .prc-Breadcrumbs-BreadcrumbsList-BKjpe,[data-overflow=menu] .prc-Breadcrumbs-BreadcrumbsList-BKjpe{display:flex;flex-direction:row;white-space:nowrap}.prc-Breadcrumbs-ItemSeparator-kjXqh{align-self:center;color:var(--fgColor-muted,#59636e);display:flex;justify-content:center;-webkit-user-select:none;user-select:none;white-space:nowrap}.prc-Breadcrumbs-ItemWrapper-k0NLn{list-style:none}.prc-Breadcrumbs-ItemWrapper-k0NLn,.prc-Breadcrumbs-ItemWrapper-k0NLn:after{display:inline-block;font-size:var(--text-body-size-medium,.875rem)}.prc-Breadcrumbs-ItemWrapper-k0NLn:after{border-right:.1em solid var(--fgColor-muted,#59636e);content:"";height:.8em;margin:0 .5em;transform:rotate(15deg) translateY(.0625em)}.prc-Breadcrumbs-ItemWrapper-k0NLn:first-child{margin-left:0}.prc-Breadcrumbs-ItemWrapper-k0NLn:last-child:after{content:none}.prc-Breadcrumbs-Item-jcraJ{display:inline-block;font-size:var(--text-body-size-medium,.875rem)}.prc-Breadcrumbs-Item-jcraJ:focus-visible{border-radius:var(--borderRadius-small,.1875rem);box-shadow:none;outline:2px solid var(--focus-outline-color,var(--focus-outlineColor,#0969da));outline-offset:2px}[data-variant=normal] .prc-Breadcrumbs-Item-jcraJ{color:var(--fgColor-link,#0969da);-webkit-text-decoration:none;text-decoration:none}[data-variant=normal] .prc-Breadcrumbs-Item-jcraJ:not([aria-current]):hover{-webkit-text-decoration:underline;text-decoration:underline}[data-variant=normal] .prc-Breadcrumbs-Item-jcraJ:focus-visible{-webkit-text-decoration:none;text-decoration:none}[data-variant=normal] .prc-Breadcrumbs-Item-jcraJ[aria-current]{color:var(--fgColor-default,#1f2328)}[data-variant=spacious] .prc-Breadcrumbs-Item-jcraJ{border-radius:var(--borderRadius-medium,.375rem);color:var(--fgColor-default,#1f2328);padding-block:var(--base-size-4,.25rem);padding-inline:var(--base-size-6,.375rem);-webkit-text-decoration:none;text-decoration:none}[data-variant=spacious] .prc-Breadcrumbs-Item-jcraJ:hover{background:var(--control-transparent-bgColor-hover,#818b981a);-webkit-text-decoration:none;text-decoration:none}[data-variant=spacious] .prc-Breadcrumbs-Item-jcraJ[aria-current]{font-weight:var(--base-text-weight-semibold,600)}.prc-Breadcrumbs-BreadcrumbsItem-L-Xrs{align-items:center;display:inline-grid;flex:0 99999 auto;grid-auto-flow:column;list-style:none;min-width:auto;white-space:nowrap}.prc-Breadcrumbs-BreadcrumbsItem-L-Xrs[data-overflow-menu]{white-space:normal}.prc-Breadcrumbs-BreadcrumbsItem-L-Xrs:first-child{margin-left:0}.prc-Breadcrumbs-BreadcrumbsItem-L-Xrs:last-child .prc-Breadcrumbs-ItemSeparator-kjXqh{display:none}.prc-Breadcrumbs-BreadcrumbsItem-L-Xrs .prc-Breadcrumbs-MenuDetails-JOGTj{display:inline-block;position:relative}.prc-Breadcrumbs-BreadcrumbsItem-L-Xrs .prc-Breadcrumbs-MenuDetails-JOGTj summary{cursor:pointer;list-style:none}.prc-Breadcrumbs-BreadcrumbsItem-L-Xrs .prc-Breadcrumbs-MenuDetails-JOGTj summary::-webkit-details-marker{display:none}.prc-Breadcrumbs-BreadcrumbsItem-L-Xrs .prc-Breadcrumbs-MenuOverlay--ayLx{background-color:var(--overlay-bgColor,#fff);border-radius:var(--borderRadius-large,.75rem);box-shadow:var(--shadow-floating-small,0 0 0 1px #d1d9e080,0 6px 12px -3px #25292e0a,0 6px 18px 0 #25292e1f);max-height:100vh;max-width:var(--overlay-width-small,20rem);min-width:var(--overlay-width-xsmall,12rem);overflow:hidden;position:absolute;top:calc(var(--overlay-offset,.25rem) + var(--control-small-size,1.75rem));z-index:1}@media (prefers-reduced-motion:no-preference){.prc-Breadcrumbs-BreadcrumbsItem-L-Xrs .prc-Breadcrumbs-MenuOverlay--ayLx{animation:prc-Breadcrumbs-overlay-appear-CSLnF .2s cubic-bezier(.33,1,.68,1)}}.prc-Breadcrumbs-BreadcrumbsItem-L-Xrs[data-collapsed]{flex:none;grid-auto-columns:max-content;height:0;overflow:hidden;pointer-events:none;visibility:hidden;width:0}.prc-Breadcrumbs-BreadcrumbsItem-L-Xrs[hidden]{display:none}.prc-Breadcrumbs-BreadcrumbsBase-3Gb-B:where([data-overflow^=menu]:not([data-hydrated]))>.prc-Breadcrumbs-BreadcrumbsList-BKjpe{flex:1 1 auto;min-width:0;overflow:hidden;scroll-snap-type:x mandatory}.prc-Breadcrumbs-BreadcrumbsBase-3Gb-B:where([data-overflow^=menu]:not([data-hydrated]))>.prc-Breadcrumbs-BreadcrumbsList-BKjpe>:last-child{scroll-snap-align:end}.prc-Breadcrumbs-BreadcrumbsBase-3Gb-B:where([data-overflow^=menu]:not([data-hydrated]))>.prc-Breadcrumbs-BreadcrumbsList-BKjpe:focus-within{flex-wrap:wrap}@media (max-width:543.98px){.prc-Breadcrumbs-BreadcrumbsBase-3Gb-B:where([data-overflow=menu]:not([data-hydrated]))>.prc-Breadcrumbs-BreadcrumbsList-BKjpe[data-narrow-collapse]>:not([data-overflow-menu],:last-child){display:none}.prc-Breadcrumbs-BreadcrumbsBase-3Gb-B:where([data-overflow=menu]:not([data-hydrated]))>.prc-Breadcrumbs-BreadcrumbsList-BKjpe[data-narrow-collapse]>[hidden]{display:inline-grid}}
2
+ /*# sourceMappingURL=Breadcrumbs-6c9aadcf.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Breadcrumbs/Breadcrumbs.module.css.js","../../postcss-preset-primer/src/mixins/focusOutline.css"],"names":[],"mappings":"AAAA,uCACE,YAAa,CACb,6BAA8B,CAC9B,UACF,CAEA,uCAGE,eAAgB,CADhB,YAAa,CADb,cAGF,CAIE,kIAEE,YAAa,CACb,kBAAmB,CAFnB,kBAGF,CAGF,qCAGE,iBAAkB,CAFlB,kCAA2B,CAC3B,YAAa,CAEb,sBAAuB,CAEvB,wBAAiB,CAAjB,gBAAiB,CADjB,kBAEF,CAEA,mCAGE,eAuBF,CArBE,4EAJA,oBAAqB,CACrB,8CAaA,CAVA,yCAQE,oDAA8C,CAF9C,UAAW,CAJX,WAAa,CAEb,aAAe,CAKf,2CACF,CAEA,+CACE,aACF,CAGE,oDACE,YACF,CAIJ,4BACE,oBAAqB,CACrB,8CAOF,CALE,0CACE,gDAAwC,CC5D1C,eAAgB,CAFhB,8EAAgC,CAChC,kBDgEA,CAIA,kDACE,iCAA0B,CAC1B,4BAAqB,CAArB,oBAeF,CAZI,4EACE,iCAA0B,CAA1B,yBACF,CAGF,gEACE,4BAAqB,CAArB,oBACF,CAEA,gEACE,oCACF,CAKF,oDAKE,gDAAyC,CAJzC,oCAA6B,CAG7B,uCAAiC,CADjC,yCAAkC,CADlC,4BAAqB,CAArB,oBAaF,CARE,0DACE,6DAAoD,CACpD,4BAAqB,CAArB,oBACF,CAEA,kEACE,gDACF,CAIJ,uCAGE,kBAAmB,CAFnB,mBAAoB,CAGpB,iBAAkB,CAFlB,qBAAsB,CAKtB,eAAgB,CAFhB,cAAe,CACf,kBAmDF,CA7CE,2DACE,kBACF,CAEA,mDACE,aACF,CAGE,uFACE,YACF,CAGF,0EAEE,oBAAqB,CADrB,iBAWF,CARE,kFAEE,cAAe,CADf,eAMF,CAHE,0GACE,YACF,CAIJ,0EAKE,4CAAwC,CADxC,8CAAwC,CADxC,4GAAwC,CAIxC,gBAAiB,CACjB,0CAAqC,CAFrC,2CAAsC,CAGtC,eAAgB,CARhB,iBAAkB,CAUlB,0EAA4D,CAT5D,SAcF,CAHE,8CAbF,0EAcI,4EAEJ,CADE,CAUJ,uDAEE,SAAU,CADV,6BAA8B,CAG9B,QAAS,CACT,eAAgB,CAEhB,mBAAoB,CADpB,iBAAkB,CAHlB,OAKF,CAIA,+CACE,YACF,CAaA,gIAEE,aAAc,CADd,WAAY,CAEZ,eAAgB,CAChB,4BASF,CAPE,4IACE,qBACF,CAEA,6IACE,cACF,CAMF,4BAEI,4LACE,YACF,CAEA,8JACE,mBACF,CAEJ","file":"Breadcrumbs-6c9aadcf.css","sourcesContent":[".BreadcrumbsBase {\n display: flex;\n justify-content: space-between;\n width: 100%;\n}\n\n.BreadcrumbsList {\n padding-left: 0;\n margin-top: 0;\n margin-bottom: 0;\n}\n\n[data-overflow='menu'],\n[data-overflow='menu-with-root'] {\n & .BreadcrumbsList {\n white-space: nowrap;\n display: flex;\n flex-direction: row;\n }\n}\n\n.ItemSeparator {\n color: var(--fgColor-muted);\n display: flex;\n align-self: center;\n justify-content: center;\n white-space: nowrap;\n user-select: none;\n}\n\n.ItemWrapper {\n display: inline-block;\n font-size: var(--text-body-size-medium);\n list-style: none;\n\n &::after {\n display: inline-block;\n height: 0.8em;\n /* stylelint-disable-next-line primer/spacing */\n margin: 0 0.5em;\n font-size: var(--text-body-size-medium);\n content: '';\n /* stylelint-disable-next-line primer/borders, primer/colors */\n border-right: 0.1em solid var(--fgColor-muted);\n transform: rotate(15deg) translateY(0.0625em);\n }\n\n &:first-child {\n margin-left: 0;\n }\n\n &:last-child {\n &::after {\n content: none;\n }\n }\n}\n\n.Item {\n display: inline-block;\n font-size: var(--text-body-size-medium);\n\n &:focus-visible {\n border-radius: var(--borderRadius-small);\n\n @mixin focusOutline 2px;\n }\n}\n\n[data-variant='normal'] {\n & .Item {\n color: var(--fgColor-link);\n text-decoration: none;\n\n &:not([aria-current]) {\n &:hover {\n text-decoration: underline;\n }\n }\n\n &:focus-visible {\n text-decoration: none;\n }\n\n &[aria-current] {\n color: var(--fgColor-default);\n }\n }\n}\n\n[data-variant='spacious'] {\n & .Item {\n color: var(--fgColor-default);\n text-decoration: none;\n padding-inline: var(--base-size-6);\n padding-block: var(--base-size-4);\n border-radius: var(--borderRadius-medium);\n\n &:hover {\n background: var(--control-transparent-bgColor-hover);\n text-decoration: none;\n }\n\n &[aria-current] {\n font-weight: var(--base-text-weight-semibold);\n }\n }\n}\n\n.BreadcrumbsItem {\n display: inline-grid;\n grid-auto-flow: column;\n align-items: center;\n flex: 0 99999 auto;\n min-width: auto;\n white-space: nowrap;\n list-style: none;\n\n /* allow menu items to wrap line */\n /* The overflow-menu item is marked in React (`data-overflow-menu`) instead of using\n `:has(.MenuOverlay)`, avoiding Safari's `:has()` invalidation cost. */\n &[data-overflow-menu] {\n white-space: normal;\n }\n\n &:first-child {\n margin-left: 0;\n }\n\n &:last-child {\n .ItemSeparator {\n display: none;\n }\n }\n\n .MenuDetails {\n position: relative;\n display: inline-block;\n\n & summary {\n list-style: none;\n cursor: pointer;\n\n &::-webkit-details-marker {\n display: none;\n }\n }\n }\n\n .MenuOverlay {\n position: absolute;\n z-index: 1;\n box-shadow: var(--shadow-floating-small);\n border-radius: var(--borderRadius-large);\n background-color: var(--overlay-bgColor);\n min-width: var(--overlay-width-xsmall);\n max-height: 100vh;\n max-width: var(--overlay-width-small);\n overflow: hidden;\n /* stylelint-disable-next-line primer/spacing */\n top: calc(var(--overlay-offset) + var(--control-small-size));\n\n @media (prefers-reduced-motion: no-preference) {\n animation: overlay-appear 200ms cubic-bezier(0.33, 1, 0.68, 1);\n }\n }\n}\n\n/* A collapsed crumb that can reappear at wider sizes. It stays mounted, so it never remounts\n and can still be measured. It stays in flow as a zero-size item: out-of-flow (absolute)\n boxes made resize layout measurably slower. The grid track is sized to the content, not to\n the zero-width item, so the crumb keeps its natural width whatever its `min-width` is.\n Without that it would shrink to its minimum, measure narrower than it is when shown, and\n the fit would flip between the two. */\n.BreadcrumbsItem[data-collapsed] {\n grid-auto-columns: max-content;\n flex: none;\n width: 0;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n pointer-events: none;\n}\n\n/* The overflow menu is rendered but hidden while nothing is collapsed, so the pre-hydration\n narrow rule below can show it. */\n.BreadcrumbsItem[hidden] {\n display: none;\n}\n\n/*\n * Before hydration, CSS approximates the rules JS applies once it can measure. JS sets\n * `data-hydrated` (never rendered by React) in its first layout effect, before measuring,\n * so none of this applies afterwards or costs anything at runtime.\n *\n * Crumbs that don't fit are clipped at the start, so the leaf stays visible and nothing\n * paints outside the nav. Browsers don't scroll a partially visible focus target into view, so\n * while a crumb has focus the list wraps and every crumb is fully visible. It is start-aligned\n * because content that overflows the start edge can't be scrolled to, and snaps to the leaf\n * initially.\n */\n.BreadcrumbsBase:where([data-overflow^='menu']:not([data-hydrated])) > .BreadcrumbsList {\n min-width: 0;\n flex: 1 1 auto;\n overflow: hidden;\n scroll-snap-type: x mandatory;\n\n & > :last-child {\n scroll-snap-align: end;\n }\n\n &:focus-within {\n flex-wrap: wrap;\n }\n}\n\n/* The narrow rule uses the container width. A viewport query never shows the narrow layout\n when JS wouldn't, unless the nav is wider than the viewport. A container query would be\n exact, but its size containment collapses content-sized containers to 0px. */\n@media (max-width: 543.98px) {\n .BreadcrumbsBase:where([data-overflow='menu']:not([data-hydrated])) > .BreadcrumbsList[data-narrow-collapse] {\n & > :not(:last-child, [data-overflow-menu]) {\n display: none;\n }\n\n & > [hidden] {\n display: inline-grid;\n }\n }\n}\n","@define-mixin focusOutline $outlineOffset: -2px, $outlineColor: var(--focus-outline-color, var(--focus-outlineColor)) {\n outline: 2px solid $outlineColor;\n outline-offset: $outlineOffset;\n box-shadow: none;\n}\n"]}