@primer/react 0.0.0-20261105032835 → 0.0.0-20261105151311
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/CHANGELOG.md +3 -5
- package/dist/ActionList/ActionList-64885d7a.css +2 -0
- package/dist/ActionList/ActionList-64885d7a.css.map +1 -0
- package/dist/ActionList/ActionList.module.css.js +2 -4
- package/dist/ActionList/Item.js +162 -169
- package/dist/Breadcrumbs/{Breadcrumbs-16d81430.css → Breadcrumbs-c913a296.css} +2 -2
- package/dist/Breadcrumbs/Breadcrumbs-c913a296.css.map +1 -0
- package/dist/Breadcrumbs/Breadcrumbs.js +402 -391
- package/dist/Breadcrumbs/Breadcrumbs.module.css.js +1 -1
- package/dist/TreeView/{TreeView-6e565888.css → TreeView-1bf45a33.css} +2 -2
- package/dist/TreeView/TreeView-1bf45a33.css.map +1 -0
- package/dist/TreeView/TreeView.module.css.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/ActionList/ActionList-ef1aa265.css +0 -2
- package/dist/ActionList/ActionList-ef1aa265.css.map +0 -1
- package/dist/Breadcrumbs/Breadcrumbs-16d81430.css.map +0 -1
- package/dist/TreeView/TreeView-6e565888.css.map +0 -1
|
@@ -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,CAOJ,uDACE,SAAU,CAEV,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-c913a296.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 `scrollWidth` still reports its natural width. It stays in flow as a zero-size item:\n out-of-flow (absolute) boxes made resize layout measurably slower. */\n.BreadcrumbsItem[data-collapsed] {\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"]}
|