@tryghost/shade 0.1.0-alpha.21 → 0.1.0-alpha.23

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.
@@ -12,9 +12,17 @@ var bannerVariants = cva("relative block rounded-lg transition-all duration-300"
12
12
  "dark:hover:shadow-[-7px_-4px_42px_10px_color-mix(in_oklab,var(--banner-glow-start)_50%,transparent),7px_8px_42px_10px_color-mix(in_oklab,var(--banner-glow-end)_52%,transparent)]",
13
13
  "hover:translate-y-[-2px] hover:scale-[1.01]"
14
14
  ],
15
+ "gradient-inline": [
16
+ "bg-surface-elevated",
17
+ "shadow-[-5px_-4px_28px_3px_color-mix(in_oklab,var(--banner-glow-start)_28%,transparent),5px_4px_28px_3px_color-mix(in_oklab,var(--banner-glow-end)_32%,transparent)]",
18
+ "dark:shadow-[-5px_-4px_28px_3px_color-mix(in_oklab,var(--banner-glow-start)_36%,transparent),5px_4px_28px_3px_color-mix(in_oklab,var(--banner-glow-end)_38%,transparent)]",
19
+ "hover:shadow-[-5px_-3px_28px_4px_color-mix(in_oklab,var(--banner-glow-start)_38%,transparent),5px_5px_28px_4px_color-mix(in_oklab,var(--banner-glow-end)_42%,transparent)]",
20
+ "dark:hover:shadow-[-5px_-3px_28px_4px_color-mix(in_oklab,var(--banner-glow-start)_50%,transparent),5px_5px_28px_4px_color-mix(in_oklab,var(--banner-glow-end)_52%,transparent)]",
21
+ "hover:translate-y-[-2px] hover:scale-[1.01]"
22
+ ],
15
23
  info: "border border-state-info/40 bg-state-info/10",
16
24
  success: "border border-state-success/40 bg-state-success/10",
17
- warning: "border border-state-warning/40 bg-state-warning/10",
25
+ warning: "border border-state-warning-border bg-state-warning-surface",
18
26
  destructive: "border border-state-danger/20 bg-state-danger/10"
19
27
  },
20
28
  size: {
@@ -1 +1 @@
1
- {"version":3,"file":"banner-variants.js","names":[],"sources":["../../../src/components/ui/banner-variants.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\n\nconst bannerVariants = cva('relative block rounded-lg transition-all duration-300', {\n variants: {\n variant: {\n default: 'border border-border-default bg-surface-panel shadow-sm hover:shadow-md',\n gradient: [\n 'cursor-pointer bg-surface-elevated',\n 'shadow-[-7px_-6px_42px_8px_color-mix(in_oklab,var(--banner-glow-start)_28%,transparent),7px_6px_42px_8px_color-mix(in_oklab,var(--banner-glow-end)_32%,transparent)]',\n 'dark:shadow-[-7px_-6px_42px_8px_color-mix(in_oklab,var(--banner-glow-start)_36%,transparent),7px_6px_42px_8px_color-mix(in_oklab,var(--banner-glow-end)_38%,transparent)]',\n 'hover:shadow-[-7px_-4px_42px_10px_color-mix(in_oklab,var(--banner-glow-start)_38%,transparent),7px_8px_42px_10px_color-mix(in_oklab,var(--banner-glow-end)_42%,transparent)]',\n 'dark:hover:shadow-[-7px_-4px_42px_10px_color-mix(in_oklab,var(--banner-glow-start)_50%,transparent),7px_8px_42px_10px_color-mix(in_oklab,var(--banner-glow-end)_52%,transparent)]',\n 'hover:translate-y-[-2px] hover:scale-[1.01]',\n ],\n info: 'border border-state-info/40 bg-state-info/10',\n success: 'border border-state-success/40 bg-state-success/10',\n warning: 'border border-state-warning/40 bg-state-warning/10',\n destructive: 'border border-state-danger/20 bg-state-danger/10',\n },\n size: {\n sm: 'p-2 text-sm',\n md: 'p-3',\n lg: 'p-4',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'md',\n },\n});\n\nexport { bannerVariants };\n"],"mappings":";;AAEA,IAAM,iBAAiB,IAAI,yDAAyD;CAClF,UAAU;EACR,SAAS;GACP,SAAS;GACT,UAAU;IACR;IACA;IACA;IACA;IACA;IACA;GACF;GACA,MAAM;GACN,SAAS;GACT,SAAS;GACT,aAAa;EACf;EACA,MAAM;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;EACN;CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;CACR;AACF,CAAC"}
1
+ {"version":3,"file":"banner-variants.js","names":[],"sources":["../../../src/components/ui/banner-variants.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\n\nconst bannerVariants = cva('relative block rounded-lg transition-all duration-300', {\n variants: {\n variant: {\n default: 'border border-border-default bg-surface-panel shadow-sm hover:shadow-md',\n gradient: [\n 'cursor-pointer bg-surface-elevated',\n 'shadow-[-7px_-6px_42px_8px_color-mix(in_oklab,var(--banner-glow-start)_28%,transparent),7px_6px_42px_8px_color-mix(in_oklab,var(--banner-glow-end)_32%,transparent)]',\n 'dark:shadow-[-7px_-6px_42px_8px_color-mix(in_oklab,var(--banner-glow-start)_36%,transparent),7px_6px_42px_8px_color-mix(in_oklab,var(--banner-glow-end)_38%,transparent)]',\n 'hover:shadow-[-7px_-4px_42px_10px_color-mix(in_oklab,var(--banner-glow-start)_38%,transparent),7px_8px_42px_10px_color-mix(in_oklab,var(--banner-glow-end)_42%,transparent)]',\n 'dark:hover:shadow-[-7px_-4px_42px_10px_color-mix(in_oklab,var(--banner-glow-start)_50%,transparent),7px_8px_42px_10px_color-mix(in_oklab,var(--banner-glow-end)_52%,transparent)]',\n 'hover:translate-y-[-2px] hover:scale-[1.01]',\n ],\n // Sits among other content, so its glow fades out within a card's padding\n 'gradient-inline': [\n 'bg-surface-elevated',\n 'shadow-[-5px_-4px_28px_3px_color-mix(in_oklab,var(--banner-glow-start)_28%,transparent),5px_4px_28px_3px_color-mix(in_oklab,var(--banner-glow-end)_32%,transparent)]',\n 'dark:shadow-[-5px_-4px_28px_3px_color-mix(in_oklab,var(--banner-glow-start)_36%,transparent),5px_4px_28px_3px_color-mix(in_oklab,var(--banner-glow-end)_38%,transparent)]',\n 'hover:shadow-[-5px_-3px_28px_4px_color-mix(in_oklab,var(--banner-glow-start)_38%,transparent),5px_5px_28px_4px_color-mix(in_oklab,var(--banner-glow-end)_42%,transparent)]',\n 'dark:hover:shadow-[-5px_-3px_28px_4px_color-mix(in_oklab,var(--banner-glow-start)_50%,transparent),5px_5px_28px_4px_color-mix(in_oklab,var(--banner-glow-end)_52%,transparent)]',\n 'hover:translate-y-[-2px] hover:scale-[1.01]',\n ],\n info: 'border border-state-info/40 bg-state-info/10',\n success: 'border border-state-success/40 bg-state-success/10',\n warning: 'border border-state-warning-border bg-state-warning-surface',\n destructive: 'border border-state-danger/20 bg-state-danger/10',\n },\n size: {\n sm: 'p-2 text-sm',\n md: 'p-3',\n lg: 'p-4',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'md',\n },\n});\n\nexport { bannerVariants };\n"],"mappings":";;AAEA,IAAM,iBAAiB,IAAI,yDAAyD;CAClF,UAAU;EACR,SAAS;GACP,SAAS;GACT,UAAU;IACR;IACA;IACA;IACA;IACA;IACA;GACF;GAEA,mBAAmB;IACjB;IACA;IACA;IACA;IACA;IACA;GACF;GACA,MAAM;GACN,SAAS;GACT,SAAS;GACT,aAAa;EACf;EACA,MAAM;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;EACN;CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;CACR;AACF,CAAC"}
@@ -18,6 +18,8 @@ var Banner = React$1.forwardRef((props, ref) => {
18
18
  variant,
19
19
  size
20
20
  }), className),
21
+ "data-slot": "banner",
22
+ "data-variant": variant ?? "default",
21
23
  role,
22
24
  ...restProps,
23
25
  children: [dismissible && /* @__PURE__ */ jsx(Button, {
@@ -1 +1 @@
1
- {"version":3,"file":"banner.js","names":[],"sources":["../../../src/components/ui/banner.tsx"],"sourcesContent":["import * as React from 'react';\nimport { type VariantProps } from 'class-variance-authority';\nimport { X } from 'lucide-react';\nimport { bannerVariants } from '@/components/ui/banner-variants';\nimport { cn } from '@/lib/utils';\nimport { Button } from './button';\n\ninterface BannerBaseProps\n extends Omit<React.HTMLAttributes<HTMLDivElement>, 'role'>, VariantProps<typeof bannerVariants> {\n /**\n * Semantic role of the banner\n * @default 'status'\n *\n * Note: role=\"status\" has implicit aria-live=\"polite\"\n * role=\"alert\" has implicit aria-live=\"assertive\"\n * role=\"region\" requires aria-label\n */\n role?: 'status' | 'alert' | 'region';\n}\n\nexport type BannerProps = BannerBaseProps &\n ({ dismissible: true; onDismiss: () => void } | { dismissible?: false; onDismiss?: never });\n\nconst Banner = React.forwardRef<HTMLDivElement, BannerProps>((props, ref) => {\n // onDismiss must be destructured to prevent React warning about invalid DOM props\n const {\n variant,\n size,\n dismissible = false,\n onDismiss,\n role = 'status',\n className,\n children,\n ...restProps\n } = props;\n\n const handleDismiss = (e: React.MouseEvent) => {\n e.preventDefault();\n e.stopPropagation();\n if (dismissible && onDismiss) {\n onDismiss();\n }\n };\n\n return (\n <div\n ref={ref}\n className={cn(bannerVariants({ variant, size }), className)}\n role={role}\n {...restProps}\n >\n {dismissible && (\n <Button\n aria-label=\"Dismiss notification\"\n className=\"absolute top-1 right-1 size-8 text-text-secondary hover:bg-transparent hover:text-text-primary\"\n size=\"icon\"\n variant=\"ghost\"\n onClick={handleDismiss}\n >\n <X className=\"size-5\" />\n </Button>\n )}\n {children}\n </div>\n );\n});\n\nBanner.displayName = 'Banner';\n\nexport { Banner };\n"],"mappings":";;;;;;;AAuBA,IAAM,SAAS,QAAM,YAAyC,OAAO,QAAQ;CAE3E,MAAM,EACJ,SACA,MACA,cAAc,OACd,WACA,OAAO,UACP,WACA,UACA,GAAG,cACD;CAEJ,MAAM,iBAAiB,MAAwB;EAC7C,EAAE,eAAe;EACjB,EAAE,gBAAgB;EAClB,IAAI,eAAe,WACjB,UAAU;CAEd;CAEA,OACE,qBAAC,OAAD;EACO;EACL,WAAW,GAAG,eAAe;GAAE;GAAS;EAAK,CAAC,GAAG,SAAS;EACpD;EACN,GAAI;YAJN,CAMG,eACC,oBAAC,QAAD;GACE,cAAW;GACX,WAAU;GACV,MAAK;GACL,SAAQ;GACR,SAAS;aAET,oBAAC,GAAD,EAAG,WAAU,SAAU,CAAA;EACjB,CAAA,GAET,QACE;;AAET,CAAC;AAED,OAAO,cAAc"}
1
+ {"version":3,"file":"banner.js","names":[],"sources":["../../../src/components/ui/banner.tsx"],"sourcesContent":["import * as React from 'react';\nimport { type VariantProps } from 'class-variance-authority';\nimport { X } from 'lucide-react';\nimport { bannerVariants } from '@/components/ui/banner-variants';\nimport { cn } from '@/lib/utils';\nimport { Button } from './button';\n\ninterface BannerBaseProps\n extends Omit<React.HTMLAttributes<HTMLDivElement>, 'role'>, VariantProps<typeof bannerVariants> {\n /**\n * Semantic role of the banner\n * @default 'status'\n *\n * Note: role=\"status\" has implicit aria-live=\"polite\"\n * role=\"alert\" has implicit aria-live=\"assertive\"\n * role=\"region\" requires aria-label\n */\n role?: 'status' | 'alert' | 'region';\n}\n\nexport type BannerProps = BannerBaseProps &\n ({ dismissible: true; onDismiss: () => void } | { dismissible?: false; onDismiss?: never });\n\nconst Banner = React.forwardRef<HTMLDivElement, BannerProps>((props, ref) => {\n // onDismiss must be destructured to prevent React warning about invalid DOM props\n const {\n variant,\n size,\n dismissible = false,\n onDismiss,\n role = 'status',\n className,\n children,\n ...restProps\n } = props;\n\n const handleDismiss = (e: React.MouseEvent) => {\n e.preventDefault();\n e.stopPropagation();\n if (dismissible && onDismiss) {\n onDismiss();\n }\n };\n\n return (\n <div\n ref={ref}\n className={cn(bannerVariants({ variant, size }), className)}\n data-slot=\"banner\"\n data-variant={variant ?? 'default'}\n role={role}\n {...restProps}\n >\n {dismissible && (\n <Button\n aria-label=\"Dismiss notification\"\n className=\"absolute top-1 right-1 size-8 text-text-secondary hover:bg-transparent hover:text-text-primary\"\n size=\"icon\"\n variant=\"ghost\"\n onClick={handleDismiss}\n >\n <X className=\"size-5\" />\n </Button>\n )}\n {children}\n </div>\n );\n});\n\nBanner.displayName = 'Banner';\n\nexport { Banner };\n"],"mappings":";;;;;;;AAuBA,IAAM,SAAS,QAAM,YAAyC,OAAO,QAAQ;CAE3E,MAAM,EACJ,SACA,MACA,cAAc,OACd,WACA,OAAO,UACP,WACA,UACA,GAAG,cACD;CAEJ,MAAM,iBAAiB,MAAwB;EAC7C,EAAE,eAAe;EACjB,EAAE,gBAAgB;EAClB,IAAI,eAAe,WACjB,UAAU;CAEd;CAEA,OACE,qBAAC,OAAD;EACO;EACL,WAAW,GAAG,eAAe;GAAE;GAAS;EAAK,CAAC,GAAG,SAAS;EAC1D,aAAU;EACV,gBAAc,WAAW;EACnB;EACN,GAAI;YANN,CAQG,eACC,oBAAC,QAAD;GACE,cAAW;GACX,WAAU;GACV,MAAK;GACL,SAAQ;GACR,SAAS;aAET,oBAAC,GAAD,EAAG,WAAU,SAAU,CAAA;EACjB,CAAA,GAET,QACE;;AAET,CAAC;AAED,OAAO,cAAc"}
@@ -35,6 +35,7 @@ var SIZES = {
35
35
  }
36
36
  };
37
37
  var PADDING = 20;
38
+ var COLLAPSED_HEADER_HEIGHT = 12;
38
39
  var PIN_BUTTON_SIZE = 32;
39
40
  var PIN_BUTTON_RIGHT = 12;
40
41
  var OFFSET_TOP = "var(--floating-sidebar-offset-top, 0px)";
@@ -100,7 +101,7 @@ function GlassHighlight() {
100
101
  * while pinned; `className` and other props land on the fixed wrapper around
101
102
  * the capsule, like Shade's `Sidebar`.
102
103
  */
103
- var FloatingSidebar = React$1.forwardRef(({ pinned, onPinnedChange, pinLocked = false, morphStyle = "bump", onPinnedMorphEnd, icon, label, header, children, bodyClassName, openWidth = 290, disabled = false, animate = true, hotZone = true, armHoverOnRest = false, resetKey, pinLabel = "Pin sidebar", unpinLabel = "Unpin sidebar", className, style, onMouseEnter, onMouseLeave, onFocus, onBlur, ...props }, ref) => {
104
+ var FloatingSidebar = React$1.forwardRef(({ pinned, onPinnedChange, pinLocked = false, morphStyle = "bump", onPinnedMorphEnd, icon, label, header, headerHidden = false, children, bodyClassName, openWidth = 290, disabled = false, animate = true, hotZone = true, armHoverOnRest = false, resetKey, pinLabel = "Pin sidebar", unpinLabel = "Unpin sidebar", className, style, onMouseEnter, onMouseLeave, onFocus, onBlur, ...props }, ref) => {
104
105
  const narrow = useMediaQuery(NARROW_QUERY);
105
106
  const reducedMotion = useMediaQuery("(prefers-reduced-motion: reduce)");
106
107
  const sizes = narrow ? SIZES.narrow : SIZES.regular;
@@ -237,10 +238,16 @@ var FloatingSidebar = React$1.forwardRef(({ pinned, onPinnedChange, pinLocked =
237
238
  pinned
238
239
  ]);
239
240
  const expanded = open || pinned;
241
+ const headerCollapsed = headerHidden && pinLocked && pinned;
240
242
  React$1.useLayoutEffect(() => {
241
- for (const element of [headerRef.current, bodyRef.current]) if (element) element.inert = !expanded;
243
+ if (headerRef.current) headerRef.current.inert = !expanded || headerCollapsed;
244
+ if (bodyRef.current) bodyRef.current.inert = !expanded;
242
245
  if (pinButtonRef.current) pinButtonRef.current.inert = !expanded || pinLocked;
243
- }, [expanded, pinLocked]);
246
+ }, [
247
+ expanded,
248
+ headerCollapsed,
249
+ pinLocked
250
+ ]);
244
251
  const gapWidth = getFloatingSidebarGapWidth(pinned, openWidth);
245
252
  const [ready, setReady] = React$1.useState(false);
246
253
  React$1.useEffect(() => {
@@ -409,10 +416,15 @@ var FloatingSidebar = React$1.forwardRef(({ pinned, onPinnedChange, pinLocked =
409
416
  "data-slot": "floating-sidebar-header",
410
417
  style: {
411
418
  width: openWidth - 2,
412
- height: headerHeight,
419
+ height: headerCollapsed ? COLLAPSED_HEADER_HEIGHT : headerHeight,
420
+ opacity: headerCollapsed ? 0 : 1,
421
+ pointerEvents: headerCollapsed ? "none" : void 0,
413
422
  gap: sizes.gap,
414
423
  paddingLeft: PADDING,
415
- paddingRight: onPinnedChange ? 44 + sizes.gap : PADDING
424
+ paddingRight: onPinnedChange ? 44 + sizes.gap : PADDING,
425
+ transitionProperty: morph ? "height, opacity" : "none",
426
+ transitionDuration: `${morphDuration}ms`,
427
+ transitionTimingFunction: glideEasing
416
428
  },
417
429
  children: [/* @__PURE__ */ jsx("button", {
418
430
  ref: triggerRef,
@@ -1 +1 @@
1
- {"version":3,"file":"floating-sidebar.js","names":[],"sources":["../../../src/components/ui/floating-sidebar.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Pin } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\nimport {\n FLOATING_SIDEBAR_CLOSED_SIZE,\n FLOATING_SIDEBAR_INSET,\n FLOATING_SIDEBAR_OPEN_WIDTH,\n FLOATING_SIDEBAR_SPRING,\n getFloatingSidebarGapWidth,\n getFloatingSidebarTiming,\n type FloatingSidebarMorphStyle,\n} from '@/components/ui/floating-sidebar-metrics';\n\n/*\n * A floating \"liquid glass\" sidebar: one capsule that morphs between three\n * states.\n *\n * - closed: a circle around an icon (e.g. the site icon)\n * - open: hovering the circle or the hot zone beneath it, focusing or clicking it\n * grows the circle into a panel floating over the content, the header\n * fading in beside the icon and the body unfurling beneath it\n * - pinned: the panel is docked at full height and a gap beside it offsets\n * the content\n *\n * The icon is one element throughout: filling the circle while closed, it\n * shrinks and glides into its place in the header row as the circle opens.\n *\n * Use it inside a SidebarProvider in place of `Sidebar`, with the usual menu\n * primitives (SidebarGroup, SidebarMenu…) in the body. It is a desktop\n * component; render the `Sidebar` sheet on mobile.\n *\n * It only moves itself and its gap, which changes width at once as it pins and\n * unpins. Content that should glide to its new place, or keep clear of the\n * closed circle, does so itself with the metrics and timing exported from\n * floating-sidebar-metrics (`FLOATING_SIDEBAR_INSET`, `getFloatingSidebarGapWidth`,\n * `getFloatingSidebarTiming`…), driven by the same `pinned` it passes in.\n */\n\nconst UNFURL_DURATION = '450ms';\n// Forgiving, so a pointer drifting off the panel doesn't close it.\nconst CLOSE_DELAY = 400;\n// How long the pointer stays still to count as at rest (see `armHoverOnRest`).\nconst REST_DELAY = 100;\n// After the morph's duration, when it's taken as finished though no\n// transitionend came (e.g. a height that didn't change)\nconst MORPH_END_GRACE = 100;\nconst INSET = FLOATING_SIDEBAR_INSET;\nconst CLOSED_SIZE = FLOATING_SIDEBAR_CLOSED_SIZE;\nconst OPEN_RADIUS = 6;\n// Below this width the open header row tightens to match smaller page titles.\nconst NARROW_QUERY = '(max-width: 1379px)';\n/**\n * The closed circle is `CLOSED_SIZE` across: its visible diameter inside a 1px\n * border (a light outline that all but disappears on a light page).\n *\n * - circleIcon: the icon centred in it, cropped round, a little larger than\n * the header row's icon\n * - icon: the icon in the open and pinned header row, which is `padding`\n * around it, as tall as it is from the panel's top and left\n * - gap: between the header row's icon and the header beside it\n */\nconst SIZES = {\n regular: { circleIcon: 32, icon: 28, gap: 10 },\n narrow: { circleIcon: 32, icon: 24, gap: 8 },\n};\n// Around the header row's icon, and the body's side padding, so the search\n// field and nav rows line up with the icon.\nconst PADDING = 20;\nconst PIN_BUTTON_SIZE = 32;\n// Puts the pin glyph PADDING from the panel's right edge.\nconst PIN_BUTTON_RIGHT = 12;\n/*\n * The capsule floats within the viewport, less any chrome framing the page\n * around it: `--floating-sidebar-offset-top`, `-left` and `-bottom` (0 unless\n * set on an ancestor) move its corner and shorten its panel by that much.\n */\nconst OFFSET_TOP = 'var(--floating-sidebar-offset-top, 0px)';\nconst OFFSET_LEFT = 'var(--floating-sidebar-offset-left, 0px)';\nconst OFFSET_BOTTOM = 'var(--floating-sidebar-offset-bottom, 0px)';\n// Pinned, and the most it grows to open.\nconst PANEL_HEIGHT = `calc(100vh - ${OFFSET_TOP} - ${OFFSET_BOTTOM} - ${INSET * 2}px)`;\n\n/** Frosted body: a faint tint so the capsule reads as a surface, a light-catching outline and a backdrop blur. */\nconst GLASS = 'border border-border-glass bg-surface-glass backdrop-blur-md backdrop-saturate-150';\n\n/** Floating: inset highlights, a hairline outline and a layered drop shadow. */\nconst SHADOW_FLOAT = 'var(--shadow-glass-floating)';\n\n/** Pinned: only a 1px outline; the other layers fade out so the panel reads as anchored. */\nconst SHADOW_PINNED = 'var(--shadow-glass-docked)';\n\n// Popups opened from the panel render in portals: the panel stays open under\n// them, and the hot zone ignores the pointer over them.\nconst POPUP_TRIGGER_SELECTOR = '[aria-haspopup][aria-expanded=true]';\nconst OVERLAY_SELECTOR =\n '[role=dialog], [role=alertdialog], [role=menu], [role=listbox], [data-radix-popper-content-wrapper]';\n\n/**\n * Whether a point is in the hot zone: the strip beneath the closed circle, as\n * wide as its footprint, from the screen's left edge down to the bottom. With\n * the circle, it's what opens the panel; nothing beside the circle does.\n */\nfunction inHotZone(wrapper: HTMLElement | null, x: number, y: number): boolean {\n if (!wrapper) {\n return false;\n }\n // The capsule's corner, wherever its offsets put it\n const { top, left } = wrapper.getBoundingClientRect();\n return x < left + CLOSED_SIZE + INSET && y >= top + CLOSED_SIZE + INSET;\n}\n\nfunction useMediaQuery(query: string): boolean {\n const [matches, setMatches] = React.useState(\n () => typeof window !== 'undefined' && (window.matchMedia?.(query).matches ?? false),\n );\n\n React.useEffect(() => {\n const mql = window.matchMedia?.(query);\n if (!mql) {\n return;\n }\n const onChange = () => setMatches(mql.matches);\n onChange();\n mql.addEventListener('change', onChange);\n return () => mql.removeEventListener('change', onChange);\n }, [query]);\n\n return matches;\n}\n\n/**\n * Reads the capsule's height just before React applies a pin change to the\n * DOM, which by the time layout effects run is gone. Renders nothing.\n */\nclass BeforePinCommit extends React.Component<{ pinned: boolean; onBeforeCommit: () => void }> {\n getSnapshotBeforeUpdate(previous: Readonly<{ pinned: boolean }>) {\n if (previous.pinned !== this.props.pinned) {\n this.props.onBeforeCommit();\n }\n return null;\n }\n\n // React requires it alongside getSnapshotBeforeUpdate\n componentDidUpdate() {}\n\n render() {\n return null;\n }\n}\n\n/** Specular sheen: a top-edge highlight that fades quickly so the body stays translucent. */\nfunction GlassHighlight() {\n return (\n <div\n aria-hidden=\"true\"\n className=\"pointer-events-none absolute inset-0\"\n style={{ borderRadius: 'inherit', background: 'var(--surface-glass-highlight)' }}\n />\n );\n}\n\ninterface FloatingSidebarProps extends Omit<React.ComponentProps<'div'>, 'children'> {\n /** Docked beside the content, rather than a circle that opens over it. */\n pinned: boolean;\n /** Shows the pin button when provided. */\n onPinnedChange?: (pinned: boolean) => void;\n /**\n * Pinned by the screen rather than by the user (e.g. a screen whose\n * navigation lives in the sidebar): the pin button fades out, keeping its\n * place so the header doesn't reflow.\n */\n pinLocked?: boolean;\n /**\n * How the capsule morphs: `bump` (the default) grows a touch past size and\n * settles back; `ease` moves on a plain ease-out, without overshoot (e.g.\n * for a pin the screen makes, sequenced with other motion). It applies to\n * the transitions that start while it's set, so keep it until\n * `onPinnedMorphEnd`. Content moving in step takes the same timing from\n * `getFloatingSidebarTiming`.\n */\n morphStyle?: FloatingSidebarMorphStyle;\n /**\n * Called with the new `pinned` state once the capsule has finished morphing\n * to it (at once without transitions); not if `pinned` changes again first.\n */\n onPinnedMorphEnd?: (pinned: boolean) => void;\n /** Centred in the closed circle, and kept in place as it grows (e.g. the site icon). */\n icon: React.ReactNode;\n /** The circle's accessible name (e.g. the site title). */\n label: string;\n /** Beside the icon in the open and pinned panel's header row (e.g. the site title); hidden while closed. */\n header: React.ReactNode;\n /** Unfurls beneath the header when open or pinned. */\n children: React.ReactNode;\n bodyClassName?: string;\n /** The open and pinned panel's width. */\n openWidth?: number;\n /** Stops the panel opening (and closes it), e.g. while the page is locked. */\n disabled?: boolean;\n /**\n * Enables transitions. Leave it false until the pinned state has loaded, so\n * a stored state lands without morphing. Transitions also wait a frame after\n * mounting.\n */\n animate?: boolean;\n /** Opens the panel when the pointer enters the strip beneath the closed circle. */\n hotZone?: boolean;\n /**\n * Hovering doesn't open the panel until the pointer first comes to rest,\n * for a sidebar that reappears under a pointer on its way somewhere (e.g.\n * back from a full-screen screen); resting over it then opens it. Read as\n * it mounts.\n */\n armHoverOnRest?: boolean;\n /**\n * Changing it (e.g. to the route's path) cancels a pending close: a layout\n * shift inside the panel can fire a mouseleave though the pointer never left.\n */\n resetKey?: unknown;\n pinLabel?: string;\n unpinLabel?: string;\n}\n\n/**\n * The outer element (forwarded ref) holds the gap that offsets the content\n * while pinned; `className` and other props land on the fixed wrapper around\n * the capsule, like Shade's `Sidebar`.\n */\nconst FloatingSidebar = React.forwardRef<HTMLDivElement, FloatingSidebarProps>(\n (\n {\n pinned,\n onPinnedChange,\n pinLocked = false,\n morphStyle = 'bump',\n onPinnedMorphEnd,\n icon,\n label,\n header,\n children,\n bodyClassName,\n openWidth = FLOATING_SIDEBAR_OPEN_WIDTH,\n disabled = false,\n animate = true,\n hotZone = true,\n armHoverOnRest = false,\n resetKey,\n pinLabel = 'Pin sidebar',\n unpinLabel = 'Unpin sidebar',\n className,\n style,\n onMouseEnter,\n onMouseLeave,\n onFocus,\n onBlur,\n ...props\n },\n ref,\n ) => {\n const narrow = useMediaQuery(NARROW_QUERY);\n const reducedMotion = useMediaQuery('(prefers-reduced-motion: reduce)');\n const sizes = narrow ? SIZES.narrow : SIZES.regular;\n const headerHeight = PADDING + sizes.icon + PADDING;\n // Moves the icon from its place in the header row to the circle's centre\n const closedIconOffset = (CLOSED_SIZE - 2 - sizes.circleIcon) / 2 - PADDING;\n\n const wrapperRef = React.useRef<HTMLDivElement>(null);\n const capsuleRef = React.useRef<HTMLDivElement>(null);\n const triggerRef = React.useRef<HTMLButtonElement>(null);\n const headerRef = React.useRef<HTMLDivElement>(null);\n const bodyRef = React.useRef<HTMLDivElement>(null);\n const pinButtonRef = React.useRef<HTMLButtonElement>(null);\n\n // Hover intent: opens at once, closes after a delay so the pointer can\n // travel between the hot zone and the panel.\n const [open, setOpen] = React.useState(false);\n const closeTimer = React.useRef<number | undefined>(undefined);\n const cancel = React.useCallback(() => {\n window.clearTimeout(closeTimer.current);\n closeTimer.current = undefined;\n }, []);\n const show = React.useCallback(() => {\n cancel();\n if (!disabled) {\n setOpen(true);\n }\n }, [cancel, disabled]);\n const hide = React.useCallback(() => {\n cancel();\n setOpen(false);\n }, [cancel]);\n const scheduleClose = React.useCallback(() => {\n cancel();\n const tryClose = () => {\n const wrapper = wrapperRef.current;\n if (wrapper?.querySelector(POPUP_TRIGGER_SELECTOR)) {\n closeTimer.current = window.setTimeout(tryClose, CLOSE_DELAY);\n return;\n }\n closeTimer.current = undefined;\n // Still over the capsule, though its mouseleave said otherwise (e.g.\n // it morphed under the pointer): it closes once the pointer leaves it.\n if (wrapper?.matches(':hover')) {\n hover.current.capsule = true;\n hover.current.any = true;\n return;\n }\n // Keyboard users close it by tabbing out or with Escape.\n const active = document.activeElement;\n if (active && wrapper?.contains(active) && active.matches(':focus-visible')) {\n return;\n }\n setOpen(false);\n };\n closeTimer.current = window.setTimeout(tryClose, CLOSE_DELAY);\n }, [cancel]);\n\n React.useEffect(() => cancel, [cancel]);\n React.useEffect(() => {\n if (disabled) {\n hide();\n }\n }, [disabled, hide]);\n React.useEffect(() => {\n cancel();\n }, [resetKey, cancel]);\n\n // The capsule and the hot zone act as one hover target. It only arms once\n // the pointer has been outside it: the sidebar can appear under a resting\n // pointer (e.g. back from the editor, whose close button sits where the\n // circle is), and that shouldn't open it.\n const hover = React.useRef({ capsule: false, zone: false, any: false });\n const hoverArmed = React.useRef(false);\n // With `armHoverOnRest`, the pointer passes over it freely until it stops\n const [waitsForRest] = React.useState(armHoverOnRest);\n const waitingForRest = React.useRef(waitsForRest);\n const restTimer = React.useRef<number | undefined>(undefined);\n const updateHover = React.useCallback(\n (parts: Partial<Record<'capsule' | 'zone', boolean>>) => {\n const state = hover.current;\n Object.assign(state, parts);\n const any = state.capsule || state.zone;\n if (waitingForRest.current) {\n return;\n }\n if (!hoverArmed.current) {\n hoverArmed.current = !any;\n return;\n }\n if (any === state.any) {\n return;\n }\n state.any = any;\n if (any) {\n show();\n } else {\n scheduleClose();\n }\n },\n [scheduleClose, show],\n );\n\n // The hot zone tracks the pointer rather than covering the page, so the\n // content beneath it still scrolls and responds to the pointer. The\n // pointer's moves also keep the capsule's hover true to where it is: its\n // mouseenter and mouseleave can be missed or misfire as it morphs under a\n // pointer (e.g. landing open from pinned), and the panel mustn't close\n // while the pointer is over it.\n React.useEffect(() => {\n if (disabled) {\n return;\n }\n const onPointerMove = (event: PointerEvent) => {\n if (event.pointerType === 'touch') {\n return;\n }\n const target = event.target instanceof Element ? event.target : null;\n // Popups opened from the panel (in portals) keep the capsule's hover as it was\n const overOverlay = Boolean(target?.closest(OVERLAY_SELECTOR));\n const parts: Partial<Record<'capsule' | 'zone', boolean>> = {};\n if (!overOverlay && target) {\n parts.capsule = Boolean(wrapperRef.current?.contains(target));\n }\n if (hotZone) {\n parts.zone = !overOverlay && inHotZone(wrapperRef.current, event.clientX, event.clientY);\n }\n updateHover(parts);\n if (waitingForRest.current) {\n window.clearTimeout(restTimer.current);\n restTimer.current = window.setTimeout(() => {\n waitingForRest.current = false;\n hoverArmed.current = true;\n const state = hover.current;\n state.any = state.capsule || state.zone;\n if (state.any) {\n show();\n }\n }, REST_DELAY);\n }\n };\n const onPointerLeave = () => updateHover({ capsule: false, zone: false });\n document.addEventListener('pointermove', onPointerMove);\n document.documentElement.addEventListener('pointerleave', onPointerLeave);\n return () => {\n document.removeEventListener('pointermove', onPointerMove);\n document.documentElement.removeEventListener('pointerleave', onPointerLeave);\n window.clearTimeout(restTimer.current);\n hover.current.zone = false;\n };\n }, [disabled, hotZone, show, updateHover]);\n\n // Escape closes the floating panel, returning focus to the circle.\n const restoringFocus = React.useRef(false);\n React.useEffect(() => {\n if (!open || pinned) {\n return;\n }\n const onKeyDown = (event: KeyboardEvent) => {\n const wrapper = wrapperRef.current;\n if (\n event.key !== 'Escape' ||\n event.defaultPrevented ||\n wrapper?.querySelector(POPUP_TRIGGER_SELECTOR)\n ) {\n return;\n }\n const focusWasWithin = Boolean(wrapper?.contains(document.activeElement));\n hide();\n if (focusWasWithin) {\n restoringFocus.current = true;\n triggerRef.current?.focus();\n restoringFocus.current = false;\n }\n };\n document.addEventListener('keydown', onKeyDown);\n return () => document.removeEventListener('keydown', onKeyDown);\n }, [hide, open, pinned]);\n\n // Pinned, the panel is always open; `open` alone shows the pin button.\n const expanded = open || pinned;\n\n // The header, pin button and body are clipped away while closed, so they\n // must not be reachable; the circle itself takes focus. A locked pin\n // button is hidden in every state.\n React.useLayoutEffect(() => {\n for (const element of [headerRef.current, bodyRef.current]) {\n if (element) {\n element.inert = !expanded;\n }\n }\n if (pinButtonRef.current) {\n pinButtonRef.current.inert = !expanded || pinLocked;\n }\n }, [expanded, pinLocked]);\n\n // The gap changes width at once, never through a transition: that would\n // lay the content out again on every frame. Content that should glide to\n // its new place slides itself, in step with the morph (see\n // `getFloatingSidebarTiming`).\n const gapWidth = getFloatingSidebarGapWidth(pinned, openWidth);\n\n // Transitions start a frame after mounting (and after `animate`), so the\n // first paint and a stored pinned state never morph.\n const [ready, setReady] = React.useState(false);\n React.useEffect(() => {\n if (!animate) {\n setReady(false);\n return;\n }\n const frame = requestAnimationFrame(() => setReady(true));\n return () => cancelAnimationFrame(frame);\n }, [animate]);\n const morph = ready && !reducedMotion;\n // The capsule's shape, and what moves with it (its height, the icon)\n const {\n duration: morphDuration,\n easing: glideEasing,\n shapeEasing,\n } = getFloatingSidebarTiming(morphStyle);\n // The capsule's transitions: its height glides rather than bumps, as the\n // body it holds unfurls without overshoot (a bump on a panel this tall\n // would overshoot by tens of pixels)\n const capsuleTransitions: Array<[property: string, easing: string]> = morph\n ? [\n ['width', shapeEasing],\n ['height', glideEasing],\n ['border-radius', shapeEasing],\n ['box-shadow', shapeEasing],\n ]\n : [];\n\n // Reports the end of the morph a pin change starts: the capsule's height\n // transition ending, or its duration passing without one.\n const onPinnedMorphEndRef = React.useRef(onPinnedMorphEnd);\n React.useLayoutEffect(() => {\n onPinnedMorphEndRef.current = onPinnedMorphEnd;\n });\n const pendingMorph = React.useRef<{ pinned: boolean; timer: number } | null>(null);\n const finishMorph = React.useCallback(() => {\n const pending = pendingMorph.current;\n if (!pending) {\n return;\n }\n window.clearTimeout(pending.timer);\n pendingMorph.current = null;\n onPinnedMorphEndRef.current?.(pending.pinned);\n }, []);\n const previousPinned = React.useRef(pinned);\n React.useLayoutEffect(() => {\n if (previousPinned.current === pinned) {\n return;\n }\n previousPinned.current = pinned;\n window.clearTimeout(pendingMorph.current?.timer);\n pendingMorph.current = null;\n if (!morph) {\n onPinnedMorphEndRef.current?.(pinned);\n return;\n }\n const timer = window.setTimeout(finishMorph, morphDuration + MORPH_END_GRACE);\n pendingMorph.current = { pinned, timer };\n }, [finishMorph, morph, morphDuration, pinned]);\n React.useEffect(() => () => window.clearTimeout(pendingMorph.current?.timer), []);\n\n // Floating open, the body scrolls once it has unfurled (a panel taller\n // than the viewport); while unfurling it's clipped.\n const [unfurled, setUnfurled] = React.useState(expanded);\n React.useEffect(() => {\n if (pinned || !expanded || !morph) {\n setUnfurled(expanded);\n }\n }, [expanded, morph, pinned]);\n\n // The floating open capsule's height (`auto`) on screen before the pin change\n const heightBefore = React.useRef<number | null>(null);\n const measureBeforePin = React.useCallback(() => {\n const capsule = capsuleRef.current;\n heightBefore.current =\n capsule?.style.height === 'auto' ? capsule.getBoundingClientRect().height : null;\n }, []);\n\n // Pinning the floating open panel, its height transitions from `auto`,\n // which interpolate-size resolves anew on every frame: should the body's\n // content grow meanwhile (e.g. another navigation rendered into it), the\n // start would leap past the pinned height and the capsule jump to it. It\n // starts from the height it had on screen instead.\n const capsuleTransitionsRef = React.useRef(capsuleTransitions);\n React.useLayoutEffect(() => {\n capsuleTransitionsRef.current = capsuleTransitions;\n });\n React.useLayoutEffect(() => {\n const from = heightBefore.current;\n heightBefore.current = null;\n const capsule = capsuleRef.current;\n const transitions = capsuleTransitionsRef.current;\n if (from === null || !capsule || !transitions.length) {\n return;\n }\n const { height, transitionProperty, transitionTimingFunction } = capsule.style;\n const others = transitions.filter(([property]) => property !== 'height');\n capsule.style.transitionProperty = others.map(([property]) => property).join(', ');\n capsule.style.transitionTimingFunction = others.map(([, easing]) => easing).join(', ');\n capsule.style.height = `${from}px`;\n // Lands the start height without a transition, the others starting theirs\n void getComputedStyle(capsule).height;\n capsule.style.transitionProperty = transitionProperty;\n capsule.style.transitionTimingFunction = transitionTimingFunction;\n capsule.style.height = height;\n }, [pinned]);\n\n // The body fills the pinned capsule, and keeps filling it while it shrinks\n // after unpinning, so the footer rides its bottom edge rather than jumping\n // up; by the end the capsule hugs the body, so letting go doesn't show.\n const [filled, setFilled] = React.useState(pinned);\n React.useEffect(() => {\n if (pinned || !morph) {\n setFilled(pinned);\n return;\n }\n const timer = window.setTimeout(() => setFilled(false), morphDuration);\n return () => window.clearTimeout(timer);\n }, [morph, morphDuration, pinned]);\n\n const state = pinned ? 'pinned' : open ? 'open' : 'closed';\n\n return (\n <div ref={ref} className=\"shrink-0 text-foreground\" data-state={state} role=\"navigation\">\n {/* Offsets the content while pinned */}\n <div aria-hidden=\"true\" className=\"h-full\" data-sidebar=\"gap\" style={{ width: gapWidth }} />\n <BeforePinCommit pinned={pinned} onBeforeCommit={measureBeforePin} />\n {/* The capsule plus, while floating open, a hover buffer to its right */}\n <div\n ref={wrapperRef}\n className={cn('fixed z-40 flex items-stretch', className)}\n style={{\n top: `calc(${OFFSET_TOP} + ${INSET}px)`,\n left: `calc(${OFFSET_LEFT} + ${INSET}px)`,\n ...style,\n }}\n onBlur={(event) => {\n onBlur?.(event);\n const next = event.relatedTarget;\n if (\n open &&\n next instanceof Node &&\n !event.currentTarget.contains(next) &&\n !wrapperRef.current?.querySelector(POPUP_TRIGGER_SELECTOR)\n ) {\n hide();\n }\n }}\n onFocus={(event) => {\n onFocus?.(event);\n if (!restoringFocus.current && event.target.matches(':focus-visible')) {\n show();\n }\n }}\n onMouseEnter={(event) => {\n onMouseEnter?.(event);\n updateHover({ capsule: true });\n }}\n onMouseLeave={(event) => {\n onMouseLeave?.(event);\n updateHover({ capsule: false });\n }}\n {...props}\n >\n <div\n ref={capsuleRef}\n className={cn(\n 'relative flex shrink-0 flex-col overflow-hidden [interpolate-size:allow-keywords]',\n GLASS,\n )}\n data-sidebar=\"sidebar\"\n data-slot=\"floating-sidebar\"\n data-state={state}\n style={{\n width: expanded ? openWidth : CLOSED_SIZE,\n // Open, `auto` (not undefined) so interpolate-size can transition it\n height: pinned ? PANEL_HEIGHT : expanded ? 'auto' : CLOSED_SIZE,\n maxHeight: PANEL_HEIGHT,\n // The width's bump dips a little below the circle as it closes;\n // it mustn't squeeze it, clipping the icon\n minWidth: CLOSED_SIZE,\n borderRadius: expanded ? OPEN_RADIUS : CLOSED_SIZE / 2,\n boxShadow: pinned ? SHADOW_PINNED : SHADOW_FLOAT,\n transitionProperty: morph\n ? capsuleTransitions.map(([property]) => property).join(', ')\n : 'none',\n transitionDuration: `${morphDuration}ms`,\n transitionTimingFunction: capsuleTransitions.map(([, easing]) => easing).join(', '),\n }}\n onTransitionEnd={(event) => {\n if (event.target === event.currentTarget && event.propertyName === 'height') {\n finishMorph();\n }\n }}\n >\n <GlassHighlight />\n\n {/* Laid out open in every state (the closed capsule clips it), so\n the morph never reflows it */}\n <div\n className=\"flex shrink-0 items-center\"\n data-slot=\"floating-sidebar-header\"\n style={{\n width: openWidth - 2,\n height: headerHeight,\n gap: sizes.gap,\n paddingLeft: PADDING,\n paddingRight: onPinnedChange\n ? PIN_BUTTON_RIGHT + PIN_BUTTON_SIZE + sizes.gap\n : PADDING,\n }}\n >\n {/* The circle's focus target: focusing or clicking it opens the\n panel. Pinned, it's only the icon. It holds the icon's place\n in the row. */}\n <button\n ref={triggerRef}\n aria-expanded={pinned ? undefined : open}\n aria-hidden={pinned || undefined}\n aria-label={label}\n className={cn(\n 'group relative shrink-0 outline-none',\n pinned ? 'cursor-default' : 'cursor-pointer',\n )}\n data-slot=\"floating-sidebar-trigger\"\n style={{ width: sizes.icon, height: sizes.icon }}\n tabIndex={pinned ? -1 : 0}\n type=\"button\"\n onClick={show}\n >\n {/* The icon at its closed size (crisp where it rests longest),\n scaled down into the row while open; closed, moved to the\n circle's centre and cropped round */}\n <span\n className=\"absolute top-0 left-0 overflow-hidden group-focus-visible:outline-2 group-focus-visible:outline-offset-2 group-focus-visible:outline-focus-ring group-focus-visible:outline-solid [&>*]:size-full [&>*]:object-cover\"\n data-slot=\"floating-sidebar-icon\"\n style={{\n width: sizes.circleIcon,\n height: sizes.circleIcon,\n transformOrigin: '0 0',\n // From the row's icon place to the circle's centre, in the\n // header row's coordinates (it starts inside the border)\n transform: expanded\n ? `translate(0px, 0px) scale(${sizes.icon / sizes.circleIcon})`\n : `translate(${closedIconOffset}px, ${closedIconOffset}px) scale(1)`,\n borderRadius: expanded ? '22%' : '50%',\n transitionProperty: morph ? 'transform, border-radius' : 'none',\n transitionDuration: `${morphDuration}ms`,\n transitionTimingFunction: glideEasing,\n }}\n >\n {icon}\n </span>\n </button>\n {/* Fades and slides in as the capsule grows, out as it shrinks */}\n <div\n ref={headerRef}\n className=\"flex min-w-0 flex-1 items-center gap-2\"\n style={{\n opacity: expanded ? 1 : 0,\n transform: expanded ? 'none' : 'translateX(-8px)',\n transitionProperty: morph ? 'opacity, transform' : 'none',\n transitionDuration: expanded ? '320ms' : '160ms',\n transitionDelay: expanded ? '90ms' : '0ms',\n transitionTimingFunction: FLOATING_SIDEBAR_SPRING,\n }}\n >\n {header}\n </div>\n </div>\n\n {/* Anchored to the capsule, so it tracks the right edge as the width animates */}\n {onPinnedChange && (\n <button\n ref={pinButtonRef}\n aria-hidden={pinLocked || undefined}\n aria-label={pinned ? unpinLabel : pinLabel}\n className={cn(\n 'absolute z-10 flex size-8 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-[opacity,color,background-color] duration-200 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:pointer-events-auto focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:outline-hidden',\n // Follows the hover state, not pinning, so it hides when the\n // pointer leaves a pinned panel too\n open && !pinLocked\n ? 'pointer-events-auto opacity-100 delay-75'\n : 'pointer-events-none opacity-0',\n )}\n data-slot=\"floating-sidebar-pin\"\n style={{ top: (headerHeight - PIN_BUTTON_SIZE) / 2, right: PIN_BUTTON_RIGHT }}\n type=\"button\"\n onClick={() => onPinnedChange(!pinned)}\n >\n <Pin\n className=\"size-4\"\n strokeWidth={1.75}\n style={{\n transform: pinned ? 'rotate(45deg)' : 'rotate(0deg)',\n transitionProperty: reducedMotion ? 'none' : 'transform',\n transitionDuration: '300ms',\n transitionTimingFunction: FLOATING_SIDEBAR_SPRING,\n }}\n />\n </button>\n )}\n\n {/* Unfurls through grid rows 0fr → 1fr, whatever the body's\n height. One structure in every state, so pinning and unpinning\n animate it rather than swap its layout. */}\n <div\n ref={bodyRef}\n className={cn('grid min-h-0', filled && 'flex-1')}\n data-slot=\"floating-sidebar-body\"\n style={{\n gridTemplateRows: expanded ? '1fr' : '0fr',\n transitionProperty: morph ? 'grid-template-rows' : 'none',\n transitionDuration: UNFURL_DURATION,\n transitionTimingFunction: FLOATING_SIDEBAR_SPRING,\n }}\n onTransitionEnd={(event) => {\n if (\n event.target === event.currentTarget &&\n event.propertyName === 'grid-template-rows'\n ) {\n setUnfurled(expanded);\n }\n }}\n >\n {/* Filling the capsule, the body scrolls within itself (e.g. a\n scrolling SidebarContent above a footer) */}\n <div\n className={cn(\n 'min-h-0',\n filled\n ? 'flex flex-col overflow-hidden'\n : unfurled\n ? 'overflow-y-auto overscroll-contain'\n : 'overflow-hidden',\n )}\n >\n {/* The open width, so the content doesn't reflow as the capsule grows */}\n <div\n className={cn(\n 'flex flex-col pt-2 pb-4 transition-opacity duration-200',\n filled && 'min-h-0 flex-1',\n expanded ? 'opacity-100 delay-75' : 'opacity-0',\n bodyClassName,\n )}\n style={{ width: openWidth - 2, paddingLeft: PADDING, paddingRight: PADDING }}\n >\n {children}\n </div>\n </div>\n </div>\n </div>\n {expanded && !pinned && <div aria-hidden=\"true\" className=\"w-12 shrink-0\" />}\n </div>\n </div>\n );\n },\n);\nFloatingSidebar.displayName = 'FloatingSidebar';\n\nexport { FloatingSidebar };\nexport type { FloatingSidebarProps };\n"],"mappings":";;;;;;AAuCA,IAAM,kBAAkB;AAExB,IAAM,cAAc;AAEpB,IAAM,aAAa;AAGnB,IAAM,kBAAkB;AACxB,IAAM,QAAA;AACN,IAAM,cAAA;AACN,IAAM,cAAc;AAEpB,IAAM,eAAe;;;;;;;;;;;AAWrB,IAAM,QAAQ;CACZ,SAAS;EAAE,YAAY;EAAI,MAAM;EAAI,KAAK;CAAG;CAC7C,QAAQ;EAAE,YAAY;EAAI,MAAM;EAAI,KAAK;CAAE;AAC7C;AAGA,IAAM,UAAU;AAChB,I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AAG,aAAa;UAAS,cAAc;SAAQ;SAE1E;QACE,CAAA;OACF,CAAA;MACF,CAAA;KACF;QACJ,YAAY,CAAC,UAAU,oBAAC,OAAD;KAAK,eAAY;KAAO,WAAU;IAAiB,CAAA,CACxE;;EACF;;AAET,CACF;AACA,gBAAgB,cAAc"}
1
+ {"version":3,"file":"floating-sidebar.js","names":[],"sources":["../../../src/components/ui/floating-sidebar.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Pin } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\nimport {\n FLOATING_SIDEBAR_CLOSED_SIZE,\n FLOATING_SIDEBAR_INSET,\n FLOATING_SIDEBAR_OPEN_WIDTH,\n FLOATING_SIDEBAR_SPRING,\n getFloatingSidebarGapWidth,\n getFloatingSidebarTiming,\n type FloatingSidebarMorphStyle,\n} from '@/components/ui/floating-sidebar-metrics';\n\n/*\n * A floating \"liquid glass\" sidebar: one capsule that morphs between three\n * states.\n *\n * - closed: a circle around an icon (e.g. the site icon)\n * - open: hovering the circle or the hot zone beneath it, focusing or clicking it\n * grows the circle into a panel floating over the content, the header\n * fading in beside the icon and the body unfurling beneath it\n * - pinned: the panel is docked at full height and a gap beside it offsets\n * the content\n *\n * The icon is one element throughout: filling the circle while closed, it\n * shrinks and glides into its place in the header row as the circle opens.\n *\n * Use it inside a SidebarProvider in place of `Sidebar`, with the usual menu\n * primitives (SidebarGroup, SidebarMenu…) in the body. It is a desktop\n * component; render the `Sidebar` sheet on mobile.\n *\n * It only moves itself and its gap, which changes width at once as it pins and\n * unpins. Content that should glide to its new place, or keep clear of the\n * closed circle, does so itself with the metrics and timing exported from\n * floating-sidebar-metrics (`FLOATING_SIDEBAR_INSET`, `getFloatingSidebarGapWidth`,\n * `getFloatingSidebarTiming`…), driven by the same `pinned` it passes in.\n */\n\nconst UNFURL_DURATION = '450ms';\n// Forgiving, so a pointer drifting off the panel doesn't close it.\nconst CLOSE_DELAY = 400;\n// How long the pointer stays still to count as at rest (see `armHoverOnRest`).\nconst REST_DELAY = 100;\n// After the morph's duration, when it's taken as finished though no\n// transitionend came (e.g. a height that didn't change)\nconst MORPH_END_GRACE = 100;\nconst INSET = FLOATING_SIDEBAR_INSET;\nconst CLOSED_SIZE = FLOATING_SIDEBAR_CLOSED_SIZE;\nconst OPEN_RADIUS = 6;\n// Below this width the open header row tightens to match smaller page titles.\nconst NARROW_QUERY = '(max-width: 1379px)';\n/**\n * The closed circle is `CLOSED_SIZE` across: its visible diameter inside a 1px\n * border (a light outline that all but disappears on a light page).\n *\n * - circleIcon: the icon centred in it, cropped round, a little larger than\n * the header row's icon\n * - icon: the icon in the open and pinned header row, which is `padding`\n * around it, as tall as it is from the panel's top and left\n * - gap: between the header row's icon and the header beside it\n */\nconst SIZES = {\n regular: { circleIcon: 32, icon: 28, gap: 10 },\n narrow: { circleIcon: 32, icon: 24, gap: 8 },\n};\n// Around the header row's icon, and the body's side padding, so the search\n// field and nav rows line up with the icon.\nconst PADDING = 20;\n// With the body's own top padding, matches the side padding above a collapsed header.\nconst COLLAPSED_HEADER_HEIGHT = 12;\nconst PIN_BUTTON_SIZE = 32;\n// Puts the pin glyph PADDING from the panel's right edge.\nconst PIN_BUTTON_RIGHT = 12;\n/*\n * The capsule floats within the viewport, less any chrome framing the page\n * around it: `--floating-sidebar-offset-top`, `-left` and `-bottom` (0 unless\n * set on an ancestor) move its corner and shorten its panel by that much.\n */\nconst OFFSET_TOP = 'var(--floating-sidebar-offset-top, 0px)';\nconst OFFSET_LEFT = 'var(--floating-sidebar-offset-left, 0px)';\nconst OFFSET_BOTTOM = 'var(--floating-sidebar-offset-bottom, 0px)';\n// Pinned, and the most it grows to open.\nconst PANEL_HEIGHT = `calc(100vh - ${OFFSET_TOP} - ${OFFSET_BOTTOM} - ${INSET * 2}px)`;\n\n/** Frosted body: a faint tint so the capsule reads as a surface, a light-catching outline and a backdrop blur. */\nconst GLASS = 'border border-border-glass bg-surface-glass backdrop-blur-md backdrop-saturate-150';\n\n/** Floating: inset highlights, a hairline outline and a layered drop shadow. */\nconst SHADOW_FLOAT = 'var(--shadow-glass-floating)';\n\n/** Pinned: only a 1px outline; the other layers fade out so the panel reads as anchored. */\nconst SHADOW_PINNED = 'var(--shadow-glass-docked)';\n\n// Popups opened from the panel render in portals: the panel stays open under\n// them, and the hot zone ignores the pointer over them.\nconst POPUP_TRIGGER_SELECTOR = '[aria-haspopup][aria-expanded=true]';\nconst OVERLAY_SELECTOR =\n '[role=dialog], [role=alertdialog], [role=menu], [role=listbox], [data-radix-popper-content-wrapper]';\n\n/**\n * Whether a point is in the hot zone: the strip beneath the closed circle, as\n * wide as its footprint, from the screen's left edge down to the bottom. With\n * the circle, it's what opens the panel; nothing beside the circle does.\n */\nfunction inHotZone(wrapper: HTMLElement | null, x: number, y: number): boolean {\n if (!wrapper) {\n return false;\n }\n // The capsule's corner, wherever its offsets put it\n const { top, left } = wrapper.getBoundingClientRect();\n return x < left + CLOSED_SIZE + INSET && y >= top + CLOSED_SIZE + INSET;\n}\n\nfunction useMediaQuery(query: string): boolean {\n const [matches, setMatches] = React.useState(\n () => typeof window !== 'undefined' && (window.matchMedia?.(query).matches ?? false),\n );\n\n React.useEffect(() => {\n const mql = window.matchMedia?.(query);\n if (!mql) {\n return;\n }\n const onChange = () => setMatches(mql.matches);\n onChange();\n mql.addEventListener('change', onChange);\n return () => mql.removeEventListener('change', onChange);\n }, [query]);\n\n return matches;\n}\n\n/**\n * Reads the capsule's height just before React applies a pin change to the\n * DOM, which by the time layout effects run is gone. Renders nothing.\n */\nclass BeforePinCommit extends React.Component<{ pinned: boolean; onBeforeCommit: () => void }> {\n getSnapshotBeforeUpdate(previous: Readonly<{ pinned: boolean }>) {\n if (previous.pinned !== this.props.pinned) {\n this.props.onBeforeCommit();\n }\n return null;\n }\n\n // React requires it alongside getSnapshotBeforeUpdate\n componentDidUpdate() {}\n\n render() {\n return null;\n }\n}\n\n/** Specular sheen: a top-edge highlight that fades quickly so the body stays translucent. */\nfunction GlassHighlight() {\n return (\n <div\n aria-hidden=\"true\"\n className=\"pointer-events-none absolute inset-0\"\n style={{ borderRadius: 'inherit', background: 'var(--surface-glass-highlight)' }}\n />\n );\n}\n\ninterface FloatingSidebarProps extends Omit<React.ComponentProps<'div'>, 'children'> {\n /** Docked beside the content, rather than a circle that opens over it. */\n pinned: boolean;\n /** Shows the pin button when provided. */\n onPinnedChange?: (pinned: boolean) => void;\n /**\n * Pinned by the screen rather than by the user (e.g. a screen whose\n * navigation lives in the sidebar): the pin button fades out, keeping its\n * place so the header doesn't reflow.\n */\n pinLocked?: boolean;\n /**\n * How the capsule morphs: `bump` (the default) grows a touch past size and\n * settles back; `ease` moves on a plain ease-out, without overshoot (e.g.\n * for a pin the screen makes, sequenced with other motion). It applies to\n * the transitions that start while it's set, so keep it until\n * `onPinnedMorphEnd`. Content moving in step takes the same timing from\n * `getFloatingSidebarTiming`.\n */\n morphStyle?: FloatingSidebarMorphStyle;\n /**\n * Called with the new `pinned` state once the capsule has finished morphing\n * to it (at once without transitions); not if `pinned` changes again first.\n */\n onPinnedMorphEnd?: (pinned: boolean) => void;\n /** Centred in the closed circle, and kept in place as it grows (e.g. the site icon). */\n icon: React.ReactNode;\n /** The circle's accessible name (e.g. the site title). */\n label: string;\n /** Beside the icon in the open and pinned panel's header row (e.g. the site title); hidden while closed. */\n header: React.ReactNode;\n /**\n * Collapses the header row, icon included, giving its room to the body (e.g.\n * a screen whose navigation has its own top row). It applies while pinned\n * with `pinLocked`, as otherwise the pin button needs the row.\n */\n headerHidden?: boolean;\n /** Unfurls beneath the header when open or pinned. */\n children: React.ReactNode;\n bodyClassName?: string;\n /** The open and pinned panel's width. */\n openWidth?: number;\n /** Stops the panel opening (and closes it), e.g. while the page is locked. */\n disabled?: boolean;\n /**\n * Enables transitions. Leave it false until the pinned state has loaded, so\n * a stored state lands without morphing. Transitions also wait a frame after\n * mounting.\n */\n animate?: boolean;\n /** Opens the panel when the pointer enters the strip beneath the closed circle. */\n hotZone?: boolean;\n /**\n * Hovering doesn't open the panel until the pointer first comes to rest,\n * for a sidebar that reappears under a pointer on its way somewhere (e.g.\n * back from a full-screen screen); resting over it then opens it. Read as\n * it mounts.\n */\n armHoverOnRest?: boolean;\n /**\n * Changing it (e.g. to the route's path) cancels a pending close: a layout\n * shift inside the panel can fire a mouseleave though the pointer never left.\n */\n resetKey?: unknown;\n pinLabel?: string;\n unpinLabel?: string;\n}\n\n/**\n * The outer element (forwarded ref) holds the gap that offsets the content\n * while pinned; `className` and other props land on the fixed wrapper around\n * the capsule, like Shade's `Sidebar`.\n */\nconst FloatingSidebar = React.forwardRef<HTMLDivElement, FloatingSidebarProps>(\n (\n {\n pinned,\n onPinnedChange,\n pinLocked = false,\n morphStyle = 'bump',\n onPinnedMorphEnd,\n icon,\n label,\n header,\n headerHidden = false,\n children,\n bodyClassName,\n openWidth = FLOATING_SIDEBAR_OPEN_WIDTH,\n disabled = false,\n animate = true,\n hotZone = true,\n armHoverOnRest = false,\n resetKey,\n pinLabel = 'Pin sidebar',\n unpinLabel = 'Unpin sidebar',\n className,\n style,\n onMouseEnter,\n onMouseLeave,\n onFocus,\n onBlur,\n ...props\n },\n ref,\n ) => {\n const narrow = useMediaQuery(NARROW_QUERY);\n const reducedMotion = useMediaQuery('(prefers-reduced-motion: reduce)');\n const sizes = narrow ? SIZES.narrow : SIZES.regular;\n const headerHeight = PADDING + sizes.icon + PADDING;\n // Moves the icon from its place in the header row to the circle's centre\n const closedIconOffset = (CLOSED_SIZE - 2 - sizes.circleIcon) / 2 - PADDING;\n\n const wrapperRef = React.useRef<HTMLDivElement>(null);\n const capsuleRef = React.useRef<HTMLDivElement>(null);\n const triggerRef = React.useRef<HTMLButtonElement>(null);\n const headerRef = React.useRef<HTMLDivElement>(null);\n const bodyRef = React.useRef<HTMLDivElement>(null);\n const pinButtonRef = React.useRef<HTMLButtonElement>(null);\n\n // Hover intent: opens at once, closes after a delay so the pointer can\n // travel between the hot zone and the panel.\n const [open, setOpen] = React.useState(false);\n const closeTimer = React.useRef<number | undefined>(undefined);\n const cancel = React.useCallback(() => {\n window.clearTimeout(closeTimer.current);\n closeTimer.current = undefined;\n }, []);\n const show = React.useCallback(() => {\n cancel();\n if (!disabled) {\n setOpen(true);\n }\n }, [cancel, disabled]);\n const hide = React.useCallback(() => {\n cancel();\n setOpen(false);\n }, [cancel]);\n const scheduleClose = React.useCallback(() => {\n cancel();\n const tryClose = () => {\n const wrapper = wrapperRef.current;\n if (wrapper?.querySelector(POPUP_TRIGGER_SELECTOR)) {\n closeTimer.current = window.setTimeout(tryClose, CLOSE_DELAY);\n return;\n }\n closeTimer.current = undefined;\n // Still over the capsule, though its mouseleave said otherwise (e.g.\n // it morphed under the pointer): it closes once the pointer leaves it.\n if (wrapper?.matches(':hover')) {\n hover.current.capsule = true;\n hover.current.any = true;\n return;\n }\n // Keyboard users close it by tabbing out or with Escape.\n const active = document.activeElement;\n if (active && wrapper?.contains(active) && active.matches(':focus-visible')) {\n return;\n }\n setOpen(false);\n };\n closeTimer.current = window.setTimeout(tryClose, CLOSE_DELAY);\n }, [cancel]);\n\n React.useEffect(() => cancel, [cancel]);\n React.useEffect(() => {\n if (disabled) {\n hide();\n }\n }, [disabled, hide]);\n React.useEffect(() => {\n cancel();\n }, [resetKey, cancel]);\n\n // The capsule and the hot zone act as one hover target. It only arms once\n // the pointer has been outside it: the sidebar can appear under a resting\n // pointer (e.g. back from the editor, whose close button sits where the\n // circle is), and that shouldn't open it.\n const hover = React.useRef({ capsule: false, zone: false, any: false });\n const hoverArmed = React.useRef(false);\n // With `armHoverOnRest`, the pointer passes over it freely until it stops\n const [waitsForRest] = React.useState(armHoverOnRest);\n const waitingForRest = React.useRef(waitsForRest);\n const restTimer = React.useRef<number | undefined>(undefined);\n const updateHover = React.useCallback(\n (parts: Partial<Record<'capsule' | 'zone', boolean>>) => {\n const state = hover.current;\n Object.assign(state, parts);\n const any = state.capsule || state.zone;\n if (waitingForRest.current) {\n return;\n }\n if (!hoverArmed.current) {\n hoverArmed.current = !any;\n return;\n }\n if (any === state.any) {\n return;\n }\n state.any = any;\n if (any) {\n show();\n } else {\n scheduleClose();\n }\n },\n [scheduleClose, show],\n );\n\n // The hot zone tracks the pointer rather than covering the page, so the\n // content beneath it still scrolls and responds to the pointer. The\n // pointer's moves also keep the capsule's hover true to where it is: its\n // mouseenter and mouseleave can be missed or misfire as it morphs under a\n // pointer (e.g. landing open from pinned), and the panel mustn't close\n // while the pointer is over it.\n React.useEffect(() => {\n if (disabled) {\n return;\n }\n const onPointerMove = (event: PointerEvent) => {\n if (event.pointerType === 'touch') {\n return;\n }\n const target = event.target instanceof Element ? event.target : null;\n // Popups opened from the panel (in portals) keep the capsule's hover as it was\n const overOverlay = Boolean(target?.closest(OVERLAY_SELECTOR));\n const parts: Partial<Record<'capsule' | 'zone', boolean>> = {};\n if (!overOverlay && target) {\n parts.capsule = Boolean(wrapperRef.current?.contains(target));\n }\n if (hotZone) {\n parts.zone = !overOverlay && inHotZone(wrapperRef.current, event.clientX, event.clientY);\n }\n updateHover(parts);\n if (waitingForRest.current) {\n window.clearTimeout(restTimer.current);\n restTimer.current = window.setTimeout(() => {\n waitingForRest.current = false;\n hoverArmed.current = true;\n const state = hover.current;\n state.any = state.capsule || state.zone;\n if (state.any) {\n show();\n }\n }, REST_DELAY);\n }\n };\n const onPointerLeave = () => updateHover({ capsule: false, zone: false });\n document.addEventListener('pointermove', onPointerMove);\n document.documentElement.addEventListener('pointerleave', onPointerLeave);\n return () => {\n document.removeEventListener('pointermove', onPointerMove);\n document.documentElement.removeEventListener('pointerleave', onPointerLeave);\n window.clearTimeout(restTimer.current);\n hover.current.zone = false;\n };\n }, [disabled, hotZone, show, updateHover]);\n\n // Escape closes the floating panel, returning focus to the circle.\n const restoringFocus = React.useRef(false);\n React.useEffect(() => {\n if (!open || pinned) {\n return;\n }\n const onKeyDown = (event: KeyboardEvent) => {\n const wrapper = wrapperRef.current;\n if (\n event.key !== 'Escape' ||\n event.defaultPrevented ||\n wrapper?.querySelector(POPUP_TRIGGER_SELECTOR)\n ) {\n return;\n }\n const focusWasWithin = Boolean(wrapper?.contains(document.activeElement));\n hide();\n if (focusWasWithin) {\n restoringFocus.current = true;\n triggerRef.current?.focus();\n restoringFocus.current = false;\n }\n };\n document.addEventListener('keydown', onKeyDown);\n return () => document.removeEventListener('keydown', onKeyDown);\n }, [hide, open, pinned]);\n\n // Pinned, the panel is always open; `open` alone shows the pin button.\n const expanded = open || pinned;\n const headerCollapsed = headerHidden && pinLocked && pinned;\n\n // The header, pin button and body are clipped away while closed, so they\n // must not be reachable; the circle itself takes focus. A locked pin\n // button is hidden in every state, as is a collapsed header.\n React.useLayoutEffect(() => {\n if (headerRef.current) {\n headerRef.current.inert = !expanded || headerCollapsed;\n }\n if (bodyRef.current) {\n bodyRef.current.inert = !expanded;\n }\n if (pinButtonRef.current) {\n pinButtonRef.current.inert = !expanded || pinLocked;\n }\n }, [expanded, headerCollapsed, pinLocked]);\n\n // The gap changes width at once, never through a transition: that would\n // lay the content out again on every frame. Content that should glide to\n // its new place slides itself, in step with the morph (see\n // `getFloatingSidebarTiming`).\n const gapWidth = getFloatingSidebarGapWidth(pinned, openWidth);\n\n // Transitions start a frame after mounting (and after `animate`), so the\n // first paint and a stored pinned state never morph.\n const [ready, setReady] = React.useState(false);\n React.useEffect(() => {\n if (!animate) {\n setReady(false);\n return;\n }\n const frame = requestAnimationFrame(() => setReady(true));\n return () => cancelAnimationFrame(frame);\n }, [animate]);\n const morph = ready && !reducedMotion;\n // The capsule's shape, and what moves with it (its height, the icon)\n const {\n duration: morphDuration,\n easing: glideEasing,\n shapeEasing,\n } = getFloatingSidebarTiming(morphStyle);\n // The capsule's transitions: its height glides rather than bumps, as the\n // body it holds unfurls without overshoot (a bump on a panel this tall\n // would overshoot by tens of pixels)\n const capsuleTransitions: Array<[property: string, easing: string]> = morph\n ? [\n ['width', shapeEasing],\n ['height', glideEasing],\n ['border-radius', shapeEasing],\n ['box-shadow', shapeEasing],\n ]\n : [];\n\n // Reports the end of the morph a pin change starts: the capsule's height\n // transition ending, or its duration passing without one.\n const onPinnedMorphEndRef = React.useRef(onPinnedMorphEnd);\n React.useLayoutEffect(() => {\n onPinnedMorphEndRef.current = onPinnedMorphEnd;\n });\n const pendingMorph = React.useRef<{ pinned: boolean; timer: number } | null>(null);\n const finishMorph = React.useCallback(() => {\n const pending = pendingMorph.current;\n if (!pending) {\n return;\n }\n window.clearTimeout(pending.timer);\n pendingMorph.current = null;\n onPinnedMorphEndRef.current?.(pending.pinned);\n }, []);\n const previousPinned = React.useRef(pinned);\n React.useLayoutEffect(() => {\n if (previousPinned.current === pinned) {\n return;\n }\n previousPinned.current = pinned;\n window.clearTimeout(pendingMorph.current?.timer);\n pendingMorph.current = null;\n if (!morph) {\n onPinnedMorphEndRef.current?.(pinned);\n return;\n }\n const timer = window.setTimeout(finishMorph, morphDuration + MORPH_END_GRACE);\n pendingMorph.current = { pinned, timer };\n }, [finishMorph, morph, morphDuration, pinned]);\n React.useEffect(() => () => window.clearTimeout(pendingMorph.current?.timer), []);\n\n // Floating open, the body scrolls once it has unfurled (a panel taller\n // than the viewport); while unfurling it's clipped.\n const [unfurled, setUnfurled] = React.useState(expanded);\n React.useEffect(() => {\n if (pinned || !expanded || !morph) {\n setUnfurled(expanded);\n }\n }, [expanded, morph, pinned]);\n\n // The floating open capsule's height (`auto`) on screen before the pin change\n const heightBefore = React.useRef<number | null>(null);\n const measureBeforePin = React.useCallback(() => {\n const capsule = capsuleRef.current;\n heightBefore.current =\n capsule?.style.height === 'auto' ? capsule.getBoundingClientRect().height : null;\n }, []);\n\n // Pinning the floating open panel, its height transitions from `auto`,\n // which interpolate-size resolves anew on every frame: should the body's\n // content grow meanwhile (e.g. another navigation rendered into it), the\n // start would leap past the pinned height and the capsule jump to it. It\n // starts from the height it had on screen instead.\n const capsuleTransitionsRef = React.useRef(capsuleTransitions);\n React.useLayoutEffect(() => {\n capsuleTransitionsRef.current = capsuleTransitions;\n });\n React.useLayoutEffect(() => {\n const from = heightBefore.current;\n heightBefore.current = null;\n const capsule = capsuleRef.current;\n const transitions = capsuleTransitionsRef.current;\n if (from === null || !capsule || !transitions.length) {\n return;\n }\n const { height, transitionProperty, transitionTimingFunction } = capsule.style;\n const others = transitions.filter(([property]) => property !== 'height');\n capsule.style.transitionProperty = others.map(([property]) => property).join(', ');\n capsule.style.transitionTimingFunction = others.map(([, easing]) => easing).join(', ');\n capsule.style.height = `${from}px`;\n // Lands the start height without a transition, the others starting theirs\n void getComputedStyle(capsule).height;\n capsule.style.transitionProperty = transitionProperty;\n capsule.style.transitionTimingFunction = transitionTimingFunction;\n capsule.style.height = height;\n }, [pinned]);\n\n // The body fills the pinned capsule, and keeps filling it while it shrinks\n // after unpinning, so the footer rides its bottom edge rather than jumping\n // up; by the end the capsule hugs the body, so letting go doesn't show.\n const [filled, setFilled] = React.useState(pinned);\n React.useEffect(() => {\n if (pinned || !morph) {\n setFilled(pinned);\n return;\n }\n const timer = window.setTimeout(() => setFilled(false), morphDuration);\n return () => window.clearTimeout(timer);\n }, [morph, morphDuration, pinned]);\n\n const state = pinned ? 'pinned' : open ? 'open' : 'closed';\n\n return (\n <div ref={ref} className=\"shrink-0 text-foreground\" data-state={state} role=\"navigation\">\n {/* Offsets the content while pinned */}\n <div aria-hidden=\"true\" className=\"h-full\" data-sidebar=\"gap\" style={{ width: gapWidth }} />\n <BeforePinCommit pinned={pinned} onBeforeCommit={measureBeforePin} />\n {/* The capsule plus, while floating open, a hover buffer to its right */}\n <div\n ref={wrapperRef}\n className={cn('fixed z-40 flex items-stretch', className)}\n style={{\n top: `calc(${OFFSET_TOP} + ${INSET}px)`,\n left: `calc(${OFFSET_LEFT} + ${INSET}px)`,\n ...style,\n }}\n onBlur={(event) => {\n onBlur?.(event);\n const next = event.relatedTarget;\n if (\n open &&\n next instanceof Node &&\n !event.currentTarget.contains(next) &&\n !wrapperRef.current?.querySelector(POPUP_TRIGGER_SELECTOR)\n ) {\n hide();\n }\n }}\n onFocus={(event) => {\n onFocus?.(event);\n if (!restoringFocus.current && event.target.matches(':focus-visible')) {\n show();\n }\n }}\n onMouseEnter={(event) => {\n onMouseEnter?.(event);\n updateHover({ capsule: true });\n }}\n onMouseLeave={(event) => {\n onMouseLeave?.(event);\n updateHover({ capsule: false });\n }}\n {...props}\n >\n <div\n ref={capsuleRef}\n className={cn(\n 'relative flex shrink-0 flex-col overflow-hidden [interpolate-size:allow-keywords]',\n GLASS,\n )}\n data-sidebar=\"sidebar\"\n data-slot=\"floating-sidebar\"\n data-state={state}\n style={{\n width: expanded ? openWidth : CLOSED_SIZE,\n // Open, `auto` (not undefined) so interpolate-size can transition it\n height: pinned ? PANEL_HEIGHT : expanded ? 'auto' : CLOSED_SIZE,\n maxHeight: PANEL_HEIGHT,\n // The width's bump dips a little below the circle as it closes;\n // it mustn't squeeze it, clipping the icon\n minWidth: CLOSED_SIZE,\n borderRadius: expanded ? OPEN_RADIUS : CLOSED_SIZE / 2,\n boxShadow: pinned ? SHADOW_PINNED : SHADOW_FLOAT,\n transitionProperty: morph\n ? capsuleTransitions.map(([property]) => property).join(', ')\n : 'none',\n transitionDuration: `${morphDuration}ms`,\n transitionTimingFunction: capsuleTransitions.map(([, easing]) => easing).join(', '),\n }}\n onTransitionEnd={(event) => {\n if (event.target === event.currentTarget && event.propertyName === 'height') {\n finishMorph();\n }\n }}\n >\n <GlassHighlight />\n\n {/* Laid out open in every state (the closed capsule clips it), so\n the morph never reflows it */}\n <div\n className=\"flex shrink-0 items-center\"\n data-slot=\"floating-sidebar-header\"\n style={{\n width: openWidth - 2,\n height: headerCollapsed ? COLLAPSED_HEADER_HEIGHT : headerHeight,\n opacity: headerCollapsed ? 0 : 1,\n pointerEvents: headerCollapsed ? 'none' : undefined,\n gap: sizes.gap,\n paddingLeft: PADDING,\n paddingRight: onPinnedChange\n ? PIN_BUTTON_RIGHT + PIN_BUTTON_SIZE + sizes.gap\n : PADDING,\n transitionProperty: morph ? 'height, opacity' : 'none',\n transitionDuration: `${morphDuration}ms`,\n transitionTimingFunction: glideEasing,\n }}\n >\n {/* The circle's focus target: focusing or clicking it opens the\n panel. Pinned, it's only the icon. It holds the icon's place\n in the row. */}\n <button\n ref={triggerRef}\n aria-expanded={pinned ? undefined : open}\n aria-hidden={pinned || undefined}\n aria-label={label}\n className={cn(\n 'group relative shrink-0 outline-none',\n pinned ? 'cursor-default' : 'cursor-pointer',\n )}\n data-slot=\"floating-sidebar-trigger\"\n style={{ width: sizes.icon, height: sizes.icon }}\n tabIndex={pinned ? -1 : 0}\n type=\"button\"\n onClick={show}\n >\n {/* The icon at its closed size (crisp where it rests longest),\n scaled down into the row while open; closed, moved to the\n circle's centre and cropped round */}\n <span\n className=\"absolute top-0 left-0 overflow-hidden group-focus-visible:outline-2 group-focus-visible:outline-offset-2 group-focus-visible:outline-focus-ring group-focus-visible:outline-solid [&>*]:size-full [&>*]:object-cover\"\n data-slot=\"floating-sidebar-icon\"\n style={{\n width: sizes.circleIcon,\n height: sizes.circleIcon,\n transformOrigin: '0 0',\n // From the row's icon place to the circle's centre, in the\n // header row's coordinates (it starts inside the border)\n transform: expanded\n ? `translate(0px, 0px) scale(${sizes.icon / sizes.circleIcon})`\n : `translate(${closedIconOffset}px, ${closedIconOffset}px) scale(1)`,\n borderRadius: expanded ? '22%' : '50%',\n transitionProperty: morph ? 'transform, border-radius' : 'none',\n transitionDuration: `${morphDuration}ms`,\n transitionTimingFunction: glideEasing,\n }}\n >\n {icon}\n </span>\n </button>\n {/* Fades and slides in as the capsule grows, out as it shrinks */}\n <div\n ref={headerRef}\n className=\"flex min-w-0 flex-1 items-center gap-2\"\n style={{\n opacity: expanded ? 1 : 0,\n transform: expanded ? 'none' : 'translateX(-8px)',\n transitionProperty: morph ? 'opacity, transform' : 'none',\n transitionDuration: expanded ? '320ms' : '160ms',\n transitionDelay: expanded ? '90ms' : '0ms',\n transitionTimingFunction: FLOATING_SIDEBAR_SPRING,\n }}\n >\n {header}\n </div>\n </div>\n\n {/* Anchored to the capsule, so it tracks the right edge as the width animates */}\n {onPinnedChange && (\n <button\n ref={pinButtonRef}\n aria-hidden={pinLocked || undefined}\n aria-label={pinned ? unpinLabel : pinLabel}\n className={cn(\n 'absolute z-10 flex size-8 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-[opacity,color,background-color] duration-200 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:pointer-events-auto focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:outline-hidden',\n // Follows the hover state, not pinning, so it hides when the\n // pointer leaves a pinned panel too\n open && !pinLocked\n ? 'pointer-events-auto opacity-100 delay-75'\n : 'pointer-events-none opacity-0',\n )}\n data-slot=\"floating-sidebar-pin\"\n style={{ top: (headerHeight - PIN_BUTTON_SIZE) / 2, right: PIN_BUTTON_RIGHT }}\n type=\"button\"\n onClick={() => onPinnedChange(!pinned)}\n >\n <Pin\n className=\"size-4\"\n strokeWidth={1.75}\n style={{\n transform: pinned ? 'rotate(45deg)' : 'rotate(0deg)',\n transitionProperty: reducedMotion ? 'none' : 'transform',\n transitionDuration: '300ms',\n transitionTimingFunction: FLOATING_SIDEBAR_SPRING,\n }}\n />\n </button>\n )}\n\n {/* Unfurls through grid rows 0fr → 1fr, whatever the body's\n height. One structure in every state, so pinning and unpinning\n animate it rather than swap its layout. */}\n <div\n ref={bodyRef}\n className={cn('grid min-h-0', filled && 'flex-1')}\n data-slot=\"floating-sidebar-body\"\n style={{\n gridTemplateRows: expanded ? '1fr' : '0fr',\n transitionProperty: morph ? 'grid-template-rows' : 'none',\n transitionDuration: UNFURL_DURATION,\n transitionTimingFunction: FLOATING_SIDEBAR_SPRING,\n }}\n onTransitionEnd={(event) => {\n if (\n event.target === event.currentTarget &&\n event.propertyName === 'grid-template-rows'\n ) {\n setUnfurled(expanded);\n }\n }}\n >\n {/* Filling the capsule, the body scrolls within itself (e.g. a\n scrolling SidebarContent above a footer) */}\n <div\n className={cn(\n 'min-h-0',\n filled\n ? 'flex flex-col overflow-hidden'\n : unfurled\n ? 'overflow-y-auto overscroll-contain'\n : 'overflow-hidden',\n )}\n >\n {/* The open width, so the content doesn't reflow as the capsule grows */}\n <div\n className={cn(\n 'flex flex-col pt-2 pb-4 transition-opacity duration-200',\n filled && 'min-h-0 flex-1',\n expanded ? 'opacity-100 delay-75' : 'opacity-0',\n bodyClassName,\n )}\n style={{ width: openWidth - 2, paddingLeft: PADDING, paddingRight: PADDING }}\n >\n {children}\n </div>\n </div>\n </div>\n </div>\n {expanded && !pinned && <div aria-hidden=\"true\" className=\"w-12 shrink-0\" />}\n </div>\n </div>\n );\n },\n);\nFloatingSidebar.displayName = 'FloatingSidebar';\n\nexport { FloatingSidebar };\nexport type { FloatingSidebarProps };\n"],"mappings":";;;;;;AAuCA,IAAM,kBAAkB;AAExB,IAAM,cAAc;AAEpB,IAAM,aAAa;AAGnB,IAAM,kBAAkB;AACxB,IAAM,QAAA;AACN,IAAM,cAAA;AACN,IAAM,cAAc;AAEpB,IAAM,eAAe;;;;;;;;;;;AAWrB,IAAM,QAAQ;CACZ,SAAS;EAAE,YAAY;EAAI,MAAM;EAAI,KAAK;CAAG;CAC7C,QAAQ;EAAE,YAAY;EAAI,MAAM;EAAI,KAAK;CAAE;AAC7C;AAGA,IAAM,UAAU;AAEhB,IAAM,0BAA0B;AAChC,IAAM,kBAAkB;AAExB,IAAM,mBAAmB;AAMzB,IAAM,aAAa;AACnB,IAAM,cAAc;AAGpB,IAAM,eAAe,gBAAgB,WAAW,kDAAwB,QAAQ,EAAE;;AAGlF,IAAM,QAAQ;;AAGd,IAAM,eAAe;;AAGrB,IAAM,gBAAgB;AAItB,IAAM,yBAAyB;AAC/B,IAAM,mBACJ;;;;;;AAOF,SAAS,UAAU,SAA6B,GAAW,GAAoB;CAC7E,IAAI,CAAC,SACH,OAAO;CAGT,MAAM,EAAE,KAAK,SAAS,QAAQ,sBAAsB;CACpD,OAAO,IAAI,OAAO,cAAc,SAAS,KAAK,MAAM,cAAc;AACpE;AA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"}
@@ -11,7 +11,7 @@ var indicatorVariants = cva("rounded-full", {
11
11
  info: "bg-state-info",
12
12
  success: "bg-state-success",
13
13
  error: "bg-state-danger",
14
- warning: "bg-state-warning"
14
+ warning: "bg-state-warning-fill"
15
15
  },
16
16
  state: {
17
17
  idle: "",
@@ -48,7 +48,7 @@ var indicatorVariants = cva("rounded-full", {
48
48
  {
49
49
  variant: "warning",
50
50
  state: "inactive",
51
- className: "border-state-warning"
51
+ className: "border-state-warning-fill"
52
52
  }
53
53
  ],
54
54
  defaultVariants: {
@@ -1 +1 @@
1
- {"version":3,"file":"indicator-variants.js","names":[],"sources":["../../../src/components/ui/indicator-variants.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\n\n/**\n * A lightweight status dot component for showing visual status indicators\n * with semantic colors and animation states.\n */\nconst indicatorVariants = cva('rounded-full', {\n variants: {\n variant: {\n neutral: 'bg-muted',\n info: 'bg-state-info',\n success: 'bg-state-success',\n error: 'bg-state-danger',\n warning: 'bg-state-warning',\n },\n state: {\n idle: '',\n active: 'animate-pulse',\n inactive: 'border-2 bg-transparent',\n },\n size: {\n sm: 'size-2',\n md: 'size-3',\n lg: 'size-4',\n },\n },\n compoundVariants: [\n // Inactive state borders match variant colors\n {\n variant: 'neutral',\n state: 'inactive',\n className: 'border-muted-foreground',\n },\n {\n variant: 'info',\n state: 'inactive',\n className: 'border-state-info',\n },\n {\n variant: 'success',\n state: 'inactive',\n className: 'border-state-success',\n },\n {\n variant: 'error',\n state: 'inactive',\n className: 'border-state-danger',\n },\n {\n variant: 'warning',\n state: 'inactive',\n className: 'border-state-warning',\n },\n ],\n defaultVariants: {\n variant: 'success',\n state: 'idle',\n size: 'sm',\n },\n});\n\nexport { indicatorVariants };\n"],"mappings":";;;;;;AAMA,IAAM,oBAAoB,IAAI,gBAAgB;CAC5C,UAAU;EACR,SAAS;GACP,SAAS;GACT,MAAM;GACN,SAAS;GACT,OAAO;GACP,SAAS;EACX;EACA,OAAO;GACL,MAAM;GACN,QAAQ;GACR,UAAU;EACZ;EACA,MAAM;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;EACN;CACF;CACA,kBAAkB;EAEhB;GACE,SAAS;GACT,OAAO;GACP,WAAW;EACb;EACA;GACE,SAAS;GACT,OAAO;GACP,WAAW;EACb;EACA;GACE,SAAS;GACT,OAAO;GACP,WAAW;EACb;EACA;GACE,SAAS;GACT,OAAO;GACP,WAAW;EACb;EACA;GACE,SAAS;GACT,OAAO;GACP,WAAW;EACb;CACF;CACA,iBAAiB;EACf,SAAS;EACT,OAAO;EACP,MAAM;CACR;AACF,CAAC"}
1
+ {"version":3,"file":"indicator-variants.js","names":[],"sources":["../../../src/components/ui/indicator-variants.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\n\n/**\n * A lightweight status dot component for showing visual status indicators\n * with semantic colors and animation states.\n */\nconst indicatorVariants = cva('rounded-full', {\n variants: {\n variant: {\n neutral: 'bg-muted',\n info: 'bg-state-info',\n success: 'bg-state-success',\n error: 'bg-state-danger',\n warning: 'bg-state-warning-fill',\n },\n state: {\n idle: '',\n active: 'animate-pulse',\n inactive: 'border-2 bg-transparent',\n },\n size: {\n sm: 'size-2',\n md: 'size-3',\n lg: 'size-4',\n },\n },\n compoundVariants: [\n // Inactive state borders match variant colors\n {\n variant: 'neutral',\n state: 'inactive',\n className: 'border-muted-foreground',\n },\n {\n variant: 'info',\n state: 'inactive',\n className: 'border-state-info',\n },\n {\n variant: 'success',\n state: 'inactive',\n className: 'border-state-success',\n },\n {\n variant: 'error',\n state: 'inactive',\n className: 'border-state-danger',\n },\n {\n variant: 'warning',\n state: 'inactive',\n className: 'border-state-warning-fill',\n },\n ],\n defaultVariants: {\n variant: 'success',\n state: 'idle',\n size: 'sm',\n },\n});\n\nexport { indicatorVariants };\n"],"mappings":";;;;;;AAMA,IAAM,oBAAoB,IAAI,gBAAgB;CAC5C,UAAU;EACR,SAAS;GACP,SAAS;GACT,MAAM;GACN,SAAS;GACT,OAAO;GACP,SAAS;EACX;EACA,OAAO;GACL,MAAM;GACN,QAAQ;GACR,UAAU;EACZ;EACA,MAAM;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;EACN;CACF;CACA,kBAAkB;EAEhB;GACE,SAAS;GACT,OAAO;GACP,WAAW;EACb;EACA;GACE,SAAS;GACT,OAAO;GACP,WAAW;EACb;EACA;GACE,SAAS;GACT,OAAO;GACP,WAAW;EACb;EACA;GACE,SAAS;GACT,OAAO;GACP,WAAW;EACb;EACA;GACE,SAAS;GACT,OAAO;GACP,WAAW;EACb;CACF;CACA,iBAAiB;EACf,SAAS;EACT,OAAO;EACP,MAAM;CACR;AACF,CAAC"}
package/es/tokens.js CHANGED
@@ -121,6 +121,7 @@ var SHADE_TOKEN_NAMES = [
121
121
  "color-lime-700",
122
122
  "color-lime-800",
123
123
  "color-lime-900",
124
+ "color-map-surface",
124
125
  "color-muted",
125
126
  "color-muted-foreground",
126
127
  "color-orange",
@@ -149,6 +150,7 @@ var SHADE_TOKEN_NAMES = [
149
150
  "color-popover-foreground",
150
151
  "color-primary",
151
152
  "color-primary-foreground",
153
+ "color-publish-accent",
152
154
  "color-purple",
153
155
  "color-purple-100",
154
156
  "color-purple-200",
@@ -189,7 +191,10 @@ var SHADE_TOKEN_NAMES = [
189
191
  "color-state-success",
190
192
  "color-state-success-foreground",
191
193
  "color-state-warning",
194
+ "color-state-warning-border",
195
+ "color-state-warning-fill",
192
196
  "color-state-warning-foreground",
197
+ "color-state-warning-surface",
193
198
  "color-surface-elevated",
194
199
  "color-surface-page",
195
200
  "color-surface-panel",
@@ -260,6 +265,7 @@ var SHADE_TOKEN_NAMES = [
260
265
  "leading-supertight",
261
266
  "leading-tight",
262
267
  "leading-tighter",
268
+ "map-surface",
263
269
  "mobile-navbar-height",
264
270
  "muted",
265
271
  "muted-foreground",
@@ -267,6 +273,7 @@ var SHADE_TOKEN_NAMES = [
267
273
  "popover-foreground",
268
274
  "primary",
269
275
  "primary-foreground",
276
+ "publish-accent",
270
277
  "radius",
271
278
  "radius-2xl",
272
279
  "radius-3xl",
@@ -316,7 +323,10 @@ var SHADE_TOKEN_NAMES = [
316
323
  "state-success",
317
324
  "state-success-foreground",
318
325
  "state-warning",
326
+ "state-warning-border",
327
+ "state-warning-fill",
319
328
  "state-warning-foreground",
329
+ "state-warning-surface",
320
330
  "surface-elevated",
321
331
  "surface-page",
322
332
  "surface-panel",
package/es/tokens.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.js","names":[],"sources":["../src/tokens.ts"],"sourcesContent":["// Token helpers generated from Tailwind + runtime CSS variable surfaces.\nexport const SHADE_TOKEN_NAMES = [\n 'accent',\n 'accent-foreground',\n 'animate-accordion-down',\n 'animate-accordion-up',\n 'animate-fade-in',\n 'animate-fade-out',\n 'animate-modal-backdrop-in',\n 'animate-modal-in',\n 'animate-modal-in-from-right',\n 'animate-modal-in-reverse',\n 'animate-spin',\n 'animate-toaster-in',\n 'animate-toaster-out',\n 'animate-toaster-top-in',\n 'background',\n 'border',\n 'border-default',\n 'border-strong',\n 'breakpoint-lg',\n 'breakpoint-md',\n 'breakpoint-sidebar',\n 'breakpoint-sidebarlg',\n 'breakpoint-sm',\n 'breakpoint-tablet',\n 'breakpoint-xl',\n 'breakpoint-xxl',\n 'breakpoint-xxxl',\n 'card',\n 'card-foreground',\n 'chart-1',\n 'chart-2',\n 'chart-3',\n 'chart-4',\n 'chart-5',\n 'chart-amber',\n 'chart-blue',\n 'chart-darkblue',\n 'chart-darkgray',\n 'chart-gray',\n 'chart-green',\n 'chart-orange',\n 'chart-purple',\n 'chart-rose',\n 'chart-teal',\n 'chart-yellow',\n 'color-accent',\n 'color-accent-foreground',\n 'color-background',\n 'color-black',\n 'color-blue',\n 'color-blue-100',\n 'color-blue-200',\n 'color-blue-300',\n 'color-blue-400',\n 'color-blue-50',\n 'color-blue-500',\n 'color-blue-600',\n 'color-blue-700',\n 'color-blue-800',\n 'color-blue-900',\n 'color-border',\n 'color-border-default',\n 'color-border-strong',\n 'color-card',\n 'color-card-foreground',\n 'color-chart-1',\n 'color-chart-2',\n 'color-chart-3',\n 'color-chart-4',\n 'color-chart-5',\n 'color-chart-amber',\n 'color-chart-blue',\n 'color-chart-darkgray',\n 'color-chart-gray',\n 'color-chart-green',\n 'color-chart-orange',\n 'color-chart-purple',\n 'color-chart-rose',\n 'color-chart-teal',\n 'color-chart-yellow',\n 'color-current',\n 'color-destructive',\n 'color-destructive-foreground',\n 'color-focus-ring',\n 'color-foreground',\n 'color-ghostaccent',\n 'color-gray',\n 'color-gray-100',\n 'color-gray-200',\n 'color-gray-300',\n 'color-gray-400',\n 'color-gray-50',\n 'color-gray-500',\n 'color-gray-600',\n 'color-gray-700',\n 'color-gray-800',\n 'color-gray-900',\n 'color-gray-950',\n 'color-green',\n 'color-green-100',\n 'color-green-200',\n 'color-green-300',\n 'color-green-400',\n 'color-green-50',\n 'color-green-500',\n 'color-green-600',\n 'color-green-700',\n 'color-green-800',\n 'color-green-900',\n 'color-input',\n 'color-lime',\n 'color-lime-100',\n 'color-lime-200',\n 'color-lime-300',\n 'color-lime-400',\n 'color-lime-50',\n 'color-lime-500',\n 'color-lime-600',\n 'color-lime-700',\n 'color-lime-800',\n 'color-lime-900',\n 'color-muted',\n 'color-muted-foreground',\n 'color-orange',\n 'color-orange-100',\n 'color-orange-200',\n 'color-orange-300',\n 'color-orange-400',\n 'color-orange-50',\n 'color-orange-500',\n 'color-orange-600',\n 'color-orange-700',\n 'color-orange-800',\n 'color-orange-900',\n 'color-pink',\n 'color-pink-100',\n 'color-pink-200',\n 'color-pink-300',\n 'color-pink-400',\n 'color-pink-50',\n 'color-pink-500',\n 'color-pink-600',\n 'color-pink-700',\n 'color-pink-800',\n 'color-pink-900',\n 'color-popover',\n 'color-popover-foreground',\n 'color-primary',\n 'color-primary-foreground',\n 'color-purple',\n 'color-purple-100',\n 'color-purple-200',\n 'color-purple-300',\n 'color-purple-400',\n 'color-purple-50',\n 'color-purple-500',\n 'color-purple-600',\n 'color-purple-700',\n 'color-purple-800',\n 'color-purple-900',\n 'color-red',\n 'color-red-100',\n 'color-red-200',\n 'color-red-300',\n 'color-red-400',\n 'color-red-50',\n 'color-red-500',\n 'color-red-600',\n 'color-red-700',\n 'color-red-800',\n 'color-red-900',\n 'color-ring',\n 'color-secondary',\n 'color-secondary-foreground',\n 'color-sidebar',\n 'color-sidebar-accent',\n 'color-sidebar-accent-foreground',\n 'color-sidebar-border',\n 'color-sidebar-foreground',\n 'color-sidebar-primary',\n 'color-sidebar-primary-foreground',\n 'color-sidebar-ring',\n 'color-state-danger',\n 'color-state-danger-foreground',\n 'color-state-info',\n 'color-state-info-foreground',\n 'color-state-success',\n 'color-state-success-foreground',\n 'color-state-warning',\n 'color-state-warning-foreground',\n 'color-surface-elevated',\n 'color-surface-page',\n 'color-surface-panel',\n 'color-text-primary',\n 'color-text-secondary',\n 'color-text-tertiary',\n 'color-transparent',\n 'color-white',\n 'color-yellow',\n 'color-yellow-100',\n 'color-yellow-200',\n 'color-yellow-300',\n 'color-yellow-400',\n 'color-yellow-50',\n 'color-yellow-500',\n 'color-yellow-600',\n 'color-yellow-700',\n 'color-yellow-800',\n 'color-yellow-900',\n 'container-0',\n 'container-2xl',\n 'container-3xl',\n 'container-4xl',\n 'container-5xl',\n 'container-6xl',\n 'container-7xl',\n 'container-8xl',\n 'container-9xl',\n 'container-lg',\n 'container-md',\n 'container-page',\n 'container-pageminsidebar',\n 'container-prose',\n 'container-sm',\n 'container-xl',\n 'container-xs',\n 'control-height',\n 'control-height-lg',\n 'control-outline-pressed-shadow',\n 'control-outline-shadow',\n 'control-pressed-shadow',\n 'destructive',\n 'destructive-foreground',\n 'duration-base',\n 'duration-fast',\n 'duration-slow',\n 'ease-emphasized',\n 'ease-standard',\n 'focus-ring',\n 'font-body',\n 'font-code',\n 'font-heading',\n 'font-inherit',\n 'font-mono',\n 'font-sans',\n 'font-serif',\n 'foreground',\n 'input',\n 'input-group-radius',\n 'leading-base',\n 'leading-body',\n 'leading-heading',\n 'leading-loose',\n 'leading-none',\n 'leading-normal',\n 'leading-relaxed',\n 'leading-snug',\n 'leading-supertight',\n 'leading-tight',\n 'leading-tighter',\n 'mobile-navbar-height',\n 'muted',\n 'muted-foreground',\n 'popover',\n 'popover-foreground',\n 'primary',\n 'primary-foreground',\n 'radius',\n 'radius-2xl',\n 'radius-3xl',\n 'radius-badge',\n 'radius-card',\n 'radius-control',\n 'radius-control-sm',\n 'radius-full',\n 'radius-lg',\n 'radius-md',\n 'radius-menu',\n 'radius-menu-item',\n 'radius-pill',\n 'radius-sm',\n 'radius-surface',\n 'radius-trend-badge',\n 'radius-xl',\n 'radius-xs',\n 'ring',\n 'secondary',\n 'secondary-foreground',\n 'shadow',\n 'shadow-control-outline',\n 'shadow-control-outline-pressed',\n 'shadow-control-pressed',\n 'shadow-inner',\n 'shadow-lg',\n 'shadow-md',\n 'shadow-md-heavy',\n 'shadow-none',\n 'shadow-sm',\n 'shadow-xl',\n 'shadow-xs',\n 'sidebar-accent',\n 'sidebar-accent-foreground',\n 'sidebar-background',\n 'sidebar-border',\n 'sidebar-foreground',\n 'sidebar-primary',\n 'sidebar-primary-foreground',\n 'sidebar-ring',\n 'spacing',\n 'state-danger',\n 'state-danger-foreground',\n 'state-info',\n 'state-info-foreground',\n 'state-success',\n 'state-success-foreground',\n 'state-warning',\n 'state-warning-foreground',\n 'surface-elevated',\n 'surface-page',\n 'surface-panel',\n 'text-2xl',\n 'text-2xs',\n 'text-3xl',\n 'text-4xl',\n 'text-5xl',\n 'text-5xl--line-height',\n 'text-6xl',\n 'text-6xl--line-height',\n 'text-7xl',\n 'text-7xl--line-height',\n 'text-8xl',\n 'text-8xl--line-height',\n 'text-9xl',\n 'text-9xl--line-height',\n 'text-base',\n 'text-body-lg',\n 'text-body-md',\n 'text-body-sm',\n 'text-control',\n 'text-control-lg',\n 'text-lg',\n 'text-md',\n 'text-primary',\n 'text-secondary',\n 'text-sm',\n 'text-tertiary',\n 'text-xl',\n 'text-xs',\n 'tracking-normal',\n 'tracking-tight',\n 'tracking-tighter',\n 'tracking-tightest',\n 'tracking-wide',\n 'tracking-wider',\n 'tracking-widest',\n] as const;\n\nexport type ShadeTokenName = (typeof SHADE_TOKEN_NAMES)[number];\n\nexport const shadeToken = (name: ShadeTokenName): string => `var(--${name})`;\n"],"mappings":";AACA,IAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAIA,IAAa,cAAc,SAAiC,SAAS,KAAK"}
1
+ {"version":3,"file":"tokens.js","names":[],"sources":["../src/tokens.ts"],"sourcesContent":["// Token helpers generated from Tailwind + runtime CSS variable surfaces.\nexport const SHADE_TOKEN_NAMES = [\n 'accent',\n 'accent-foreground',\n 'animate-accordion-down',\n 'animate-accordion-up',\n 'animate-fade-in',\n 'animate-fade-out',\n 'animate-modal-backdrop-in',\n 'animate-modal-in',\n 'animate-modal-in-from-right',\n 'animate-modal-in-reverse',\n 'animate-spin',\n 'animate-toaster-in',\n 'animate-toaster-out',\n 'animate-toaster-top-in',\n 'background',\n 'border',\n 'border-default',\n 'border-strong',\n 'breakpoint-lg',\n 'breakpoint-md',\n 'breakpoint-sidebar',\n 'breakpoint-sidebarlg',\n 'breakpoint-sm',\n 'breakpoint-tablet',\n 'breakpoint-xl',\n 'breakpoint-xxl',\n 'breakpoint-xxxl',\n 'card',\n 'card-foreground',\n 'chart-1',\n 'chart-2',\n 'chart-3',\n 'chart-4',\n 'chart-5',\n 'chart-amber',\n 'chart-blue',\n 'chart-darkblue',\n 'chart-darkgray',\n 'chart-gray',\n 'chart-green',\n 'chart-orange',\n 'chart-purple',\n 'chart-rose',\n 'chart-teal',\n 'chart-yellow',\n 'color-accent',\n 'color-accent-foreground',\n 'color-background',\n 'color-black',\n 'color-blue',\n 'color-blue-100',\n 'color-blue-200',\n 'color-blue-300',\n 'color-blue-400',\n 'color-blue-50',\n 'color-blue-500',\n 'color-blue-600',\n 'color-blue-700',\n 'color-blue-800',\n 'color-blue-900',\n 'color-border',\n 'color-border-default',\n 'color-border-strong',\n 'color-card',\n 'color-card-foreground',\n 'color-chart-1',\n 'color-chart-2',\n 'color-chart-3',\n 'color-chart-4',\n 'color-chart-5',\n 'color-chart-amber',\n 'color-chart-blue',\n 'color-chart-darkgray',\n 'color-chart-gray',\n 'color-chart-green',\n 'color-chart-orange',\n 'color-chart-purple',\n 'color-chart-rose',\n 'color-chart-teal',\n 'color-chart-yellow',\n 'color-current',\n 'color-destructive',\n 'color-destructive-foreground',\n 'color-focus-ring',\n 'color-foreground',\n 'color-ghostaccent',\n 'color-gray',\n 'color-gray-100',\n 'color-gray-200',\n 'color-gray-300',\n 'color-gray-400',\n 'color-gray-50',\n 'color-gray-500',\n 'color-gray-600',\n 'color-gray-700',\n 'color-gray-800',\n 'color-gray-900',\n 'color-gray-950',\n 'color-green',\n 'color-green-100',\n 'color-green-200',\n 'color-green-300',\n 'color-green-400',\n 'color-green-50',\n 'color-green-500',\n 'color-green-600',\n 'color-green-700',\n 'color-green-800',\n 'color-green-900',\n 'color-input',\n 'color-lime',\n 'color-lime-100',\n 'color-lime-200',\n 'color-lime-300',\n 'color-lime-400',\n 'color-lime-50',\n 'color-lime-500',\n 'color-lime-600',\n 'color-lime-700',\n 'color-lime-800',\n 'color-lime-900',\n 'color-map-surface',\n 'color-muted',\n 'color-muted-foreground',\n 'color-orange',\n 'color-orange-100',\n 'color-orange-200',\n 'color-orange-300',\n 'color-orange-400',\n 'color-orange-50',\n 'color-orange-500',\n 'color-orange-600',\n 'color-orange-700',\n 'color-orange-800',\n 'color-orange-900',\n 'color-pink',\n 'color-pink-100',\n 'color-pink-200',\n 'color-pink-300',\n 'color-pink-400',\n 'color-pink-50',\n 'color-pink-500',\n 'color-pink-600',\n 'color-pink-700',\n 'color-pink-800',\n 'color-pink-900',\n 'color-popover',\n 'color-popover-foreground',\n 'color-primary',\n 'color-primary-foreground',\n 'color-publish-accent',\n 'color-purple',\n 'color-purple-100',\n 'color-purple-200',\n 'color-purple-300',\n 'color-purple-400',\n 'color-purple-50',\n 'color-purple-500',\n 'color-purple-600',\n 'color-purple-700',\n 'color-purple-800',\n 'color-purple-900',\n 'color-red',\n 'color-red-100',\n 'color-red-200',\n 'color-red-300',\n 'color-red-400',\n 'color-red-50',\n 'color-red-500',\n 'color-red-600',\n 'color-red-700',\n 'color-red-800',\n 'color-red-900',\n 'color-ring',\n 'color-secondary',\n 'color-secondary-foreground',\n 'color-sidebar',\n 'color-sidebar-accent',\n 'color-sidebar-accent-foreground',\n 'color-sidebar-border',\n 'color-sidebar-foreground',\n 'color-sidebar-primary',\n 'color-sidebar-primary-foreground',\n 'color-sidebar-ring',\n 'color-state-danger',\n 'color-state-danger-foreground',\n 'color-state-info',\n 'color-state-info-foreground',\n 'color-state-success',\n 'color-state-success-foreground',\n 'color-state-warning',\n 'color-state-warning-border',\n 'color-state-warning-fill',\n 'color-state-warning-foreground',\n 'color-state-warning-surface',\n 'color-surface-elevated',\n 'color-surface-page',\n 'color-surface-panel',\n 'color-text-primary',\n 'color-text-secondary',\n 'color-text-tertiary',\n 'color-transparent',\n 'color-white',\n 'color-yellow',\n 'color-yellow-100',\n 'color-yellow-200',\n 'color-yellow-300',\n 'color-yellow-400',\n 'color-yellow-50',\n 'color-yellow-500',\n 'color-yellow-600',\n 'color-yellow-700',\n 'color-yellow-800',\n 'color-yellow-900',\n 'container-0',\n 'container-2xl',\n 'container-3xl',\n 'container-4xl',\n 'container-5xl',\n 'container-6xl',\n 'container-7xl',\n 'container-8xl',\n 'container-9xl',\n 'container-lg',\n 'container-md',\n 'container-page',\n 'container-pageminsidebar',\n 'container-prose',\n 'container-sm',\n 'container-xl',\n 'container-xs',\n 'control-height',\n 'control-height-lg',\n 'control-outline-pressed-shadow',\n 'control-outline-shadow',\n 'control-pressed-shadow',\n 'destructive',\n 'destructive-foreground',\n 'duration-base',\n 'duration-fast',\n 'duration-slow',\n 'ease-emphasized',\n 'ease-standard',\n 'focus-ring',\n 'font-body',\n 'font-code',\n 'font-heading',\n 'font-inherit',\n 'font-mono',\n 'font-sans',\n 'font-serif',\n 'foreground',\n 'input',\n 'input-group-radius',\n 'leading-base',\n 'leading-body',\n 'leading-heading',\n 'leading-loose',\n 'leading-none',\n 'leading-normal',\n 'leading-relaxed',\n 'leading-snug',\n 'leading-supertight',\n 'leading-tight',\n 'leading-tighter',\n 'map-surface',\n 'mobile-navbar-height',\n 'muted',\n 'muted-foreground',\n 'popover',\n 'popover-foreground',\n 'primary',\n 'primary-foreground',\n 'publish-accent',\n 'radius',\n 'radius-2xl',\n 'radius-3xl',\n 'radius-badge',\n 'radius-card',\n 'radius-control',\n 'radius-control-sm',\n 'radius-full',\n 'radius-lg',\n 'radius-md',\n 'radius-menu',\n 'radius-menu-item',\n 'radius-pill',\n 'radius-sm',\n 'radius-surface',\n 'radius-trend-badge',\n 'radius-xl',\n 'radius-xs',\n 'ring',\n 'secondary',\n 'secondary-foreground',\n 'shadow',\n 'shadow-control-outline',\n 'shadow-control-outline-pressed',\n 'shadow-control-pressed',\n 'shadow-inner',\n 'shadow-lg',\n 'shadow-md',\n 'shadow-md-heavy',\n 'shadow-none',\n 'shadow-sm',\n 'shadow-xl',\n 'shadow-xs',\n 'sidebar-accent',\n 'sidebar-accent-foreground',\n 'sidebar-background',\n 'sidebar-border',\n 'sidebar-foreground',\n 'sidebar-primary',\n 'sidebar-primary-foreground',\n 'sidebar-ring',\n 'spacing',\n 'state-danger',\n 'state-danger-foreground',\n 'state-info',\n 'state-info-foreground',\n 'state-success',\n 'state-success-foreground',\n 'state-warning',\n 'state-warning-border',\n 'state-warning-fill',\n 'state-warning-foreground',\n 'state-warning-surface',\n 'surface-elevated',\n 'surface-page',\n 'surface-panel',\n 'text-2xl',\n 'text-2xs',\n 'text-3xl',\n 'text-4xl',\n 'text-5xl',\n 'text-5xl--line-height',\n 'text-6xl',\n 'text-6xl--line-height',\n 'text-7xl',\n 'text-7xl--line-height',\n 'text-8xl',\n 'text-8xl--line-height',\n 'text-9xl',\n 'text-9xl--line-height',\n 'text-base',\n 'text-body-lg',\n 'text-body-md',\n 'text-body-sm',\n 'text-control',\n 'text-control-lg',\n 'text-lg',\n 'text-md',\n 'text-primary',\n 'text-secondary',\n 'text-sm',\n 'text-tertiary',\n 'text-xl',\n 'text-xs',\n 'tracking-normal',\n 'tracking-tight',\n 'tracking-tighter',\n 'tracking-tightest',\n 'tracking-wide',\n 'tracking-wider',\n 'tracking-widest',\n] as const;\n\nexport type ShadeTokenName = (typeof SHADE_TOKEN_NAMES)[number];\n\nexport const shadeToken = (name: ShadeTokenName): string => `var(--${name})`;\n"],"mappings":";AACA,IAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAIA,IAAa,cAAc,SAAiC,SAAS,KAAK"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/shade",
3
- "version": "0.1.0-alpha.21",
3
+ "version": "0.1.0-alpha.23",
4
4
  "description": "Ghost design system for React apps",
5
5
  "license": "MIT",
6
6
  "author": "Ghost Foundation",
package/styles.css CHANGED
@@ -28,6 +28,49 @@
28
28
  }
29
29
  }
30
30
 
31
+ /* admin7Design: banners are a flat color with darker shades of it for text and no
32
+ outline. Text inside takes those shades, whichever tone it asks for. */
33
+ [data-admin7-design='true']
34
+ [data-slot='banner']:is(
35
+ [data-variant='info'],
36
+ [data-variant='success'],
37
+ [data-variant='warning'],
38
+ [data-variant='destructive']
39
+ ) {
40
+ --foreground: var(--banner-foreground);
41
+ --text-primary: var(--banner-foreground);
42
+ --text-secondary: var(--banner-secondary);
43
+ --muted-foreground: var(--banner-secondary);
44
+ --state-warning: var(--banner-secondary);
45
+ border-color: transparent;
46
+ background-color: var(--banner-surface);
47
+ color: var(--banner-foreground);
48
+ }
49
+
50
+ [data-admin7-design='true'] [data-slot='banner'][data-variant='info'] {
51
+ --banner-surface: var(--banner-info-surface);
52
+ --banner-foreground: var(--banner-info-foreground);
53
+ --banner-secondary: var(--banner-info-secondary);
54
+ }
55
+
56
+ [data-admin7-design='true'] [data-slot='banner'][data-variant='success'] {
57
+ --banner-surface: var(--banner-success-surface);
58
+ --banner-foreground: var(--banner-success-foreground);
59
+ --banner-secondary: var(--banner-success-secondary);
60
+ }
61
+
62
+ [data-admin7-design='true'] [data-slot='banner'][data-variant='warning'] {
63
+ --banner-surface: var(--banner-warning-surface);
64
+ --banner-foreground: var(--banner-warning-foreground);
65
+ --banner-secondary: var(--banner-warning-secondary);
66
+ }
67
+
68
+ [data-admin7-design='true'] [data-slot='banner'][data-variant='destructive'] {
69
+ --banner-surface: var(--banner-destructive-surface);
70
+ --banner-foreground: var(--banner-destructive-foreground);
71
+ --banner-secondary: var(--banner-destructive-secondary);
72
+ }
73
+
31
74
  .shade {
32
75
  line-height: 1.5;
33
76
  -ms-text-size-adjust: 100%;
@@ -230,7 +273,7 @@ html.theme-switching *::after {
230
273
 
231
274
  [data-large-title-header] [data-page-header='page-header'] {
232
275
  padding-bottom: 32px;
233
- border-bottom: 1px solid var(--border-default);
276
+ border-bottom: 1px solid var(--border);
234
277
  }
235
278
 
236
279
  [data-large-title-header] [data-page-header='page-header']:has(~ [data-slot='filter-bar']) {
@@ -273,7 +316,7 @@ html.theme-switching *::after {
273
316
  z-index: 20;
274
317
  height: 44px;
275
318
  background-color: var(--background);
276
- box-shadow: inset 0 -1px 0 var(--border-default);
319
+ box-shadow: inset 0 -1px 0 var(--border);
277
320
  }
278
321
 
279
322
  [data-large-title-host]
@@ -323,6 +323,9 @@
323
323
  --color-state-success: var(--state-success);
324
324
  --color-state-success-foreground: var(--state-success-foreground);
325
325
  --color-state-warning: var(--state-warning);
326
+ --color-state-warning-surface: var(--state-warning-surface);
327
+ --color-state-warning-border: var(--state-warning-border);
328
+ --color-state-warning-fill: var(--state-warning-fill);
326
329
  --color-state-warning-foreground: var(--state-warning-foreground);
327
330
  --color-state-danger: var(--state-danger);
328
331
  --color-state-danger-foreground: var(--state-danger-foreground);
@@ -366,6 +369,8 @@
366
369
  --color-filter-bar-background: var(--filter-bar-background);
367
370
  --color-filter-bar-item-hover: var(--filter-bar-item-hover);
368
371
  --color-table-row-hover: var(--table-row-hover);
372
+ --color-map-surface: var(--map-surface);
373
+ --color-publish-accent: var(--publish-accent);
369
374
  --color-table-row-selected: var(--table-row-selected);
370
375
  --color-control-surface: var(--control-surface);
371
376
  --color-control-readonly-surface: var(--control-readonly-surface);
@@ -70,8 +70,30 @@
70
70
  --search-result-description: #4d5156;
71
71
  --state-info-foreground: var(--color-black);
72
72
  --state-success: var(--color-green-700);
73
+ /* Publishing is a celebration: brighter than --state-success, which has to pass
74
+ AA as small text. */
75
+ --publish-accent: var(--color-green-600);
73
76
  --state-success-foreground: var(--color-black);
74
77
  --state-warning: var(--color-yellow-700);
78
+ /* --state-warning is dark enough for text, so a tint or a solid mark made from it
79
+ goes brown. Boxes and marks use these yellows instead. */
80
+ --state-warning-surface: var(--color-yellow-200);
81
+ --state-warning-border: transparent;
82
+ --state-warning-fill: var(--color-yellow-400);
83
+ /* Banners are a flat color with darker shades of it for text, as in Shapeshifter's
84
+ page headers: step 200 behind steps 800 and 700. */
85
+ --banner-info-surface: var(--color-blue-200);
86
+ --banner-info-foreground: var(--color-blue-800);
87
+ --banner-info-secondary: var(--color-blue-700);
88
+ --banner-success-surface: var(--color-green-200);
89
+ --banner-success-foreground: var(--color-green-800);
90
+ --banner-success-secondary: var(--color-green-700);
91
+ --banner-warning-surface: var(--state-warning-surface);
92
+ --banner-warning-foreground: var(--color-yellow-800);
93
+ --banner-warning-secondary: var(--color-yellow-700);
94
+ --banner-destructive-surface: var(--color-red-200);
95
+ --banner-destructive-foreground: var(--color-red-800);
96
+ --banner-destructive-secondary: var(--color-red-700);
75
97
  --state-warning-foreground: var(--color-black);
76
98
  /* A 20% tint of the dark yellow-700 reads beige, so the warning Badge gets
77
99
  its own clean pale yellow */
@@ -117,9 +139,9 @@
117
139
  --button-ghost-hover: color-mix(in oklab, var(--color-gray-700) 10%, transparent);
118
140
  /* An open or pressed outline Button or ghost Select reads like a selected tab */
119
141
  --button-pressed: var(--tab-active);
120
- /* The gradient Banner's glow: Shapeshifter sky and indigo */
142
+ /* The gradient Banner's glow: Shapeshifter sky and pink */
121
143
  --banner-glow-start: var(--color-blue-400);
122
- --banner-glow-end: var(--color-purple-500);
144
+ --banner-glow-end: var(--color-pink-500);
123
145
  --interactive-hover: var(--button-hover);
124
146
  --filter-bar-background: var(--color-gray-100);
125
147
  --filter-bar-item-hover: var(--color-gray-50);
@@ -135,7 +157,10 @@
135
157
  --control-outline-pressed-shadow:
136
158
  lch(0 0 0 / 0.14) 0px 0px 0px 0.5px, lch(0 0 0 / 0.02) 0px 3px 6px -2px,
137
159
  lch(0 0 0 / 0.04) 0px 1px 1px 0px, var(--control-pressed-shadow);
138
- --table-row-hover: var(--color-gray-100);
160
+ /* Between gray-50 and gray-100, and tuned by eye. */
161
+ --table-row-hover: oklch(98.3% 0.0005 255);
162
+ /* The sea on member maps: between gray-100 and gray-200, tuned by eye. */
163
+ --map-surface: oklch(95.5% 0.0008 255);
139
164
  /* Selected rows read as picked-out rather than merely hovered, so this is a
140
165
  hue change and not another step on the gray ramp - a darker gray would
141
166
  compete with --table-row-hover instead of contrasting with it. */
@@ -236,7 +261,11 @@
236
261
  --surface-glass: rgb(248 248 248 / 0.5);
237
262
  --state-info: var(--color-blue-500);
238
263
  --state-success: var(--color-green-500);
264
+ --publish-accent: var(--state-success);
239
265
  --state-warning: var(--color-yellow-500);
266
+ --state-warning-surface: color-mix(in oklab, var(--state-warning) 10%, transparent);
267
+ --state-warning-border: color-mix(in oklab, var(--state-warning) 40%, transparent);
268
+ --state-warning-fill: var(--state-warning);
240
269
  --badge-warning: color-mix(in oklab, var(--state-warning) 20%, transparent);
241
270
  --badge-warning-hover: color-mix(in oklab, var(--state-warning) 30%, transparent);
242
271
  --badge-warning-foreground: var(--color-yellow-600);
@@ -280,6 +309,23 @@
280
309
  /* One-off colors (not in the standard color scale) */
281
310
  --color-sidebar-bg: oklch(0.204 0.002 255);
282
311
 
312
+ --publish-accent: var(--state-success);
313
+ --state-warning-surface: var(--color-yellow-900);
314
+ --state-warning-border: transparent;
315
+ --state-warning-fill: var(--state-warning);
316
+ --banner-info-surface: var(--color-blue-900);
317
+ --banner-info-foreground: var(--color-blue-300);
318
+ --banner-info-secondary: var(--color-blue-300);
319
+ --banner-success-surface: var(--color-green-900);
320
+ --banner-success-foreground: var(--color-green-300);
321
+ --banner-success-secondary: var(--color-green-300);
322
+ --banner-warning-surface: var(--state-warning-surface);
323
+ --banner-warning-foreground: var(--color-yellow-300);
324
+ --banner-warning-secondary: var(--color-yellow-300);
325
+ --banner-destructive-surface: var(--color-red-900);
326
+ --banner-destructive-foreground: var(--color-red-300);
327
+ --banner-destructive-secondary: var(--color-red-300);
328
+
283
329
  --tab-hover: color-mix(in oklab, var(--color-gray-900) 30%, transparent);
284
330
  --tab-active: color-mix(in oklab, oklch(36.77% 0.0022 255) 60%, transparent);
285
331
  --button-hover: color-mix(in oklab, var(--color-gray-900) 30%, transparent);
@@ -384,6 +430,8 @@
384
430
  /* admin7Design off in dark mode: today's dark values, exactly. Temporary:
385
431
  delete with the flag. */
386
432
  .dark [data-admin7-design='false'] {
433
+ --state-warning-surface: color-mix(in oklab, var(--state-warning) 10%, transparent);
434
+ --state-warning-border: color-mix(in oklab, var(--state-warning) 40%, transparent);
387
435
  --color-black: oklch(20.38% 0.0067 258.4);
388
436
  /* Less-saturated gray scale for dark mode (lightness + hue preserved, chroma halved again) */
389
437
  --color-gray-50: oklch(98.54% 0.0003 286.4);
@@ -1,5 +1,5 @@
1
1
  declare const bannerVariants: (props?: ({
2
- variant?: "default" | "destructive" | "gradient" | "info" | "success" | "warning" | null | undefined;
2
+ variant?: "default" | "destructive" | "gradient" | "gradient-inline" | "info" | "success" | "warning" | null | undefined;
3
3
  size?: "lg" | "md" | "sm" | null | undefined;
4
4
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
5
  export { bannerVariants };
@@ -1 +1 @@
1
- {"version":3,"file":"banner-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/banner-variants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,cAAc;;;8EA2BlB,CAAC;AAEH,OAAO,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"banner-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/banner-variants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,cAAc;;;8EAoClB,CAAC;AAEH,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../src/components/ui/banner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAIjE,UAAU,eACR,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;IAC/F;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;CACtC;AAED,MAAM,MAAM,WAAW,GAAG,eAAe,GACvC,CAAC;IAAE,WAAW,EAAE,IAAI,CAAC;IAAC,SAAS,EAAE,MAAM,IAAI,CAAA;CAAE,GAAG;IAAE,WAAW,CAAC,EAAE,KAAK,CAAC;IAAC,SAAS,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC;AAE9F,QAAA,MAAM,MAAM,oFA0CV,CAAC;AAIH,OAAO,EAAE,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../src/components/ui/banner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAIjE,UAAU,eACR,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;IAC/F;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;CACtC;AAED,MAAM,MAAM,WAAW,GAAG,eAAe,GACvC,CAAC;IAAE,WAAW,EAAE,IAAI,CAAC;IAAC,SAAS,EAAE,MAAM,IAAI,CAAA;CAAE,GAAG;IAAE,WAAW,CAAC,EAAE,KAAK,CAAC;IAAC,SAAS,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC;AAE9F,QAAA,MAAM,MAAM,oFA4CV,CAAC;AAIH,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -31,6 +31,12 @@ interface FloatingSidebarProps extends Omit<React.ComponentProps<'div'>, 'childr
31
31
  label: string;
32
32
  /** Beside the icon in the open and pinned panel's header row (e.g. the site title); hidden while closed. */
33
33
  header: React.ReactNode;
34
+ /**
35
+ * Collapses the header row, icon included, giving its room to the body (e.g.
36
+ * a screen whose navigation has its own top row). It applies while pinned
37
+ * with `pinLocked`, as otherwise the pin button needs the row.
38
+ */
39
+ headerHidden?: boolean;
34
40
  /** Unfurls beneath the header when open or pinned. */
35
41
  children: React.ReactNode;
36
42
  bodyClassName?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"floating-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/floating-sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAOL,KAAK,yBAAyB,EAC/B,MAAM,0CAA0C,CAAC;AAsJlD,UAAU,oBAAqB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAClF,0EAA0E;IAC1E,MAAM,EAAE,OAAO,CAAC;IAChB,0CAA0C;IAC1C,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,yBAAyB,CAAC;IACvC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,MA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;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,yBAAyB,CAAC;IACvC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,wFAAwF;IACxF,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd,4GAA4G;IAC5G,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,sDAAsD;IACtD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mFAAmF;IACnF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,QAAA,MAAM,eAAe,0GAwlBpB,CAAC;AAGF,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
package/types/tokens.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const SHADE_TOKEN_NAMES: readonly ['accent', 'accent-foreground', 'animate-accordion-down', 'animate-accordion-up', 'animate-fade-in', 'animate-fade-out', 'animate-modal-backdrop-in', 'animate-modal-in', 'animate-modal-in-from-right', 'animate-modal-in-reverse', 'animate-spin', 'animate-toaster-in', 'animate-toaster-out', 'animate-toaster-top-in', 'background', 'border', 'border-default', 'border-strong', 'breakpoint-lg', 'breakpoint-md', 'breakpoint-sidebar', 'breakpoint-sidebarlg', 'breakpoint-sm', 'breakpoint-tablet', 'breakpoint-xl', 'breakpoint-xxl', 'breakpoint-xxxl', 'card', 'card-foreground', 'chart-1', 'chart-2', 'chart-3', 'chart-4', 'chart-5', 'chart-amber', 'chart-blue', 'chart-darkblue', 'chart-darkgray', 'chart-gray', 'chart-green', 'chart-orange', 'chart-purple', 'chart-rose', 'chart-teal', 'chart-yellow', 'color-accent', 'color-accent-foreground', 'color-background', 'color-black', 'color-blue', 'color-blue-100', 'color-blue-200', 'color-blue-300', 'color-blue-400', 'color-blue-50', 'color-blue-500', 'color-blue-600', 'color-blue-700', 'color-blue-800', 'color-blue-900', 'color-border', 'color-border-default', 'color-border-strong', 'color-card', 'color-card-foreground', 'color-chart-1', 'color-chart-2', 'color-chart-3', 'color-chart-4', 'color-chart-5', 'color-chart-amber', 'color-chart-blue', 'color-chart-darkgray', 'color-chart-gray', 'color-chart-green', 'color-chart-orange', 'color-chart-purple', 'color-chart-rose', 'color-chart-teal', 'color-chart-yellow', 'color-current', 'color-destructive', 'color-destructive-foreground', 'color-focus-ring', 'color-foreground', 'color-ghostaccent', 'color-gray', 'color-gray-100', 'color-gray-200', 'color-gray-300', 'color-gray-400', 'color-gray-50', 'color-gray-500', 'color-gray-600', 'color-gray-700', 'color-gray-800', 'color-gray-900', 'color-gray-950', 'color-green', 'color-green-100', 'color-green-200', 'color-green-300', 'color-green-400', 'color-green-50', 'color-green-500', 'color-green-600', 'color-green-700', 'color-green-800', 'color-green-900', 'color-input', 'color-lime', 'color-lime-100', 'color-lime-200', 'color-lime-300', 'color-lime-400', 'color-lime-50', 'color-lime-500', 'color-lime-600', 'color-lime-700', 'color-lime-800', 'color-lime-900', 'color-muted', 'color-muted-foreground', 'color-orange', 'color-orange-100', 'color-orange-200', 'color-orange-300', 'color-orange-400', 'color-orange-50', 'color-orange-500', 'color-orange-600', 'color-orange-700', 'color-orange-800', 'color-orange-900', 'color-pink', 'color-pink-100', 'color-pink-200', 'color-pink-300', 'color-pink-400', 'color-pink-50', 'color-pink-500', 'color-pink-600', 'color-pink-700', 'color-pink-800', 'color-pink-900', 'color-popover', 'color-popover-foreground', 'color-primary', 'color-primary-foreground', 'color-purple', 'color-purple-100', 'color-purple-200', 'color-purple-300', 'color-purple-400', 'color-purple-50', 'color-purple-500', 'color-purple-600', 'color-purple-700', 'color-purple-800', 'color-purple-900', 'color-red', 'color-red-100', 'color-red-200', 'color-red-300', 'color-red-400', 'color-red-50', 'color-red-500', 'color-red-600', 'color-red-700', 'color-red-800', 'color-red-900', 'color-ring', 'color-secondary', 'color-secondary-foreground', 'color-sidebar', 'color-sidebar-accent', 'color-sidebar-accent-foreground', 'color-sidebar-border', 'color-sidebar-foreground', 'color-sidebar-primary', 'color-sidebar-primary-foreground', 'color-sidebar-ring', 'color-state-danger', 'color-state-danger-foreground', 'color-state-info', 'color-state-info-foreground', 'color-state-success', 'color-state-success-foreground', 'color-state-warning', 'color-state-warning-foreground', 'color-surface-elevated', 'color-surface-page', 'color-surface-panel', 'color-text-primary', 'color-text-secondary', 'color-text-tertiary', 'color-transparent', 'color-white', 'color-yellow', 'color-yellow-100', 'color-yellow-200', 'color-yellow-300', 'color-yellow-400', 'color-yellow-50', 'color-yellow-500', 'color-yellow-600', 'color-yellow-700', 'color-yellow-800', 'color-yellow-900', 'container-0', 'container-2xl', 'container-3xl', 'container-4xl', 'container-5xl', 'container-6xl', 'container-7xl', 'container-8xl', 'container-9xl', 'container-lg', 'container-md', 'container-page', 'container-pageminsidebar', 'container-prose', 'container-sm', 'container-xl', 'container-xs', 'control-height', 'control-height-lg', 'control-outline-pressed-shadow', 'control-outline-shadow', 'control-pressed-shadow', 'destructive', 'destructive-foreground', 'duration-base', 'duration-fast', 'duration-slow', 'ease-emphasized', 'ease-standard', 'focus-ring', 'font-body', 'font-code', 'font-heading', 'font-inherit', 'font-mono', 'font-sans', 'font-serif', 'foreground', 'input', 'input-group-radius', 'leading-base', 'leading-body', 'leading-heading', 'leading-loose', 'leading-none', 'leading-normal', 'leading-relaxed', 'leading-snug', 'leading-supertight', 'leading-tight', 'leading-tighter', 'mobile-navbar-height', 'muted', 'muted-foreground', 'popover', 'popover-foreground', 'primary', 'primary-foreground', 'radius', 'radius-2xl', 'radius-3xl', 'radius-badge', 'radius-card', 'radius-control', 'radius-control-sm', 'radius-full', 'radius-lg', 'radius-md', 'radius-menu', 'radius-menu-item', 'radius-pill', 'radius-sm', 'radius-surface', 'radius-trend-badge', 'radius-xl', 'radius-xs', 'ring', 'secondary', 'secondary-foreground', 'shadow', 'shadow-control-outline', 'shadow-control-outline-pressed', 'shadow-control-pressed', 'shadow-inner', 'shadow-lg', 'shadow-md', 'shadow-md-heavy', 'shadow-none', 'shadow-sm', 'shadow-xl', 'shadow-xs', 'sidebar-accent', 'sidebar-accent-foreground', 'sidebar-background', 'sidebar-border', 'sidebar-foreground', 'sidebar-primary', 'sidebar-primary-foreground', 'sidebar-ring', 'spacing', 'state-danger', 'state-danger-foreground', 'state-info', 'state-info-foreground', 'state-success', 'state-success-foreground', 'state-warning', 'state-warning-foreground', 'surface-elevated', 'surface-page', 'surface-panel', 'text-2xl', 'text-2xs', 'text-3xl', 'text-4xl', 'text-5xl', 'text-5xl--line-height', 'text-6xl', 'text-6xl--line-height', 'text-7xl', 'text-7xl--line-height', 'text-8xl', 'text-8xl--line-height', 'text-9xl', 'text-9xl--line-height', 'text-base', 'text-body-lg', 'text-body-md', 'text-body-sm', 'text-control', 'text-control-lg', 'text-lg', 'text-md', 'text-primary', 'text-secondary', 'text-sm', 'text-tertiary', 'text-xl', 'text-xs', 'tracking-normal', 'tracking-tight', 'tracking-tighter', 'tracking-tightest', 'tracking-wide', 'tracking-wider', 'tracking-widest'];
1
+ export declare const SHADE_TOKEN_NAMES: readonly ['accent', 'accent-foreground', 'animate-accordion-down', 'animate-accordion-up', 'animate-fade-in', 'animate-fade-out', 'animate-modal-backdrop-in', 'animate-modal-in', 'animate-modal-in-from-right', 'animate-modal-in-reverse', 'animate-spin', 'animate-toaster-in', 'animate-toaster-out', 'animate-toaster-top-in', 'background', 'border', 'border-default', 'border-strong', 'breakpoint-lg', 'breakpoint-md', 'breakpoint-sidebar', 'breakpoint-sidebarlg', 'breakpoint-sm', 'breakpoint-tablet', 'breakpoint-xl', 'breakpoint-xxl', 'breakpoint-xxxl', 'card', 'card-foreground', 'chart-1', 'chart-2', 'chart-3', 'chart-4', 'chart-5', 'chart-amber', 'chart-blue', 'chart-darkblue', 'chart-darkgray', 'chart-gray', 'chart-green', 'chart-orange', 'chart-purple', 'chart-rose', 'chart-teal', 'chart-yellow', 'color-accent', 'color-accent-foreground', 'color-background', 'color-black', 'color-blue', 'color-blue-100', 'color-blue-200', 'color-blue-300', 'color-blue-400', 'color-blue-50', 'color-blue-500', 'color-blue-600', 'color-blue-700', 'color-blue-800', 'color-blue-900', 'color-border', 'color-border-default', 'color-border-strong', 'color-card', 'color-card-foreground', 'color-chart-1', 'color-chart-2', 'color-chart-3', 'color-chart-4', 'color-chart-5', 'color-chart-amber', 'color-chart-blue', 'color-chart-darkgray', 'color-chart-gray', 'color-chart-green', 'color-chart-orange', 'color-chart-purple', 'color-chart-rose', 'color-chart-teal', 'color-chart-yellow', 'color-current', 'color-destructive', 'color-destructive-foreground', 'color-focus-ring', 'color-foreground', 'color-ghostaccent', 'color-gray', 'color-gray-100', 'color-gray-200', 'color-gray-300', 'color-gray-400', 'color-gray-50', 'color-gray-500', 'color-gray-600', 'color-gray-700', 'color-gray-800', 'color-gray-900', 'color-gray-950', 'color-green', 'color-green-100', 'color-green-200', 'color-green-300', 'color-green-400', 'color-green-50', 'color-green-500', 'color-green-600', 'color-green-700', 'color-green-800', 'color-green-900', 'color-input', 'color-lime', 'color-lime-100', 'color-lime-200', 'color-lime-300', 'color-lime-400', 'color-lime-50', 'color-lime-500', 'color-lime-600', 'color-lime-700', 'color-lime-800', 'color-lime-900', 'color-map-surface', 'color-muted', 'color-muted-foreground', 'color-orange', 'color-orange-100', 'color-orange-200', 'color-orange-300', 'color-orange-400', 'color-orange-50', 'color-orange-500', 'color-orange-600', 'color-orange-700', 'color-orange-800', 'color-orange-900', 'color-pink', 'color-pink-100', 'color-pink-200', 'color-pink-300', 'color-pink-400', 'color-pink-50', 'color-pink-500', 'color-pink-600', 'color-pink-700', 'color-pink-800', 'color-pink-900', 'color-popover', 'color-popover-foreground', 'color-primary', 'color-primary-foreground', 'color-publish-accent', 'color-purple', 'color-purple-100', 'color-purple-200', 'color-purple-300', 'color-purple-400', 'color-purple-50', 'color-purple-500', 'color-purple-600', 'color-purple-700', 'color-purple-800', 'color-purple-900', 'color-red', 'color-red-100', 'color-red-200', 'color-red-300', 'color-red-400', 'color-red-50', 'color-red-500', 'color-red-600', 'color-red-700', 'color-red-800', 'color-red-900', 'color-ring', 'color-secondary', 'color-secondary-foreground', 'color-sidebar', 'color-sidebar-accent', 'color-sidebar-accent-foreground', 'color-sidebar-border', 'color-sidebar-foreground', 'color-sidebar-primary', 'color-sidebar-primary-foreground', 'color-sidebar-ring', 'color-state-danger', 'color-state-danger-foreground', 'color-state-info', 'color-state-info-foreground', 'color-state-success', 'color-state-success-foreground', 'color-state-warning', 'color-state-warning-border', 'color-state-warning-fill', 'color-state-warning-foreground', 'color-state-warning-surface', 'color-surface-elevated', 'color-surface-page', 'color-surface-panel', 'color-text-primary', 'color-text-secondary', 'color-text-tertiary', 'color-transparent', 'color-white', 'color-yellow', 'color-yellow-100', 'color-yellow-200', 'color-yellow-300', 'color-yellow-400', 'color-yellow-50', 'color-yellow-500', 'color-yellow-600', 'color-yellow-700', 'color-yellow-800', 'color-yellow-900', 'container-0', 'container-2xl', 'container-3xl', 'container-4xl', 'container-5xl', 'container-6xl', 'container-7xl', 'container-8xl', 'container-9xl', 'container-lg', 'container-md', 'container-page', 'container-pageminsidebar', 'container-prose', 'container-sm', 'container-xl', 'container-xs', 'control-height', 'control-height-lg', 'control-outline-pressed-shadow', 'control-outline-shadow', 'control-pressed-shadow', 'destructive', 'destructive-foreground', 'duration-base', 'duration-fast', 'duration-slow', 'ease-emphasized', 'ease-standard', 'focus-ring', 'font-body', 'font-code', 'font-heading', 'font-inherit', 'font-mono', 'font-sans', 'font-serif', 'foreground', 'input', 'input-group-radius', 'leading-base', 'leading-body', 'leading-heading', 'leading-loose', 'leading-none', 'leading-normal', 'leading-relaxed', 'leading-snug', 'leading-supertight', 'leading-tight', 'leading-tighter', 'map-surface', 'mobile-navbar-height', 'muted', 'muted-foreground', 'popover', 'popover-foreground', 'primary', 'primary-foreground', 'publish-accent', 'radius', 'radius-2xl', 'radius-3xl', 'radius-badge', 'radius-card', 'radius-control', 'radius-control-sm', 'radius-full', 'radius-lg', 'radius-md', 'radius-menu', 'radius-menu-item', 'radius-pill', 'radius-sm', 'radius-surface', 'radius-trend-badge', 'radius-xl', 'radius-xs', 'ring', 'secondary', 'secondary-foreground', 'shadow', 'shadow-control-outline', 'shadow-control-outline-pressed', 'shadow-control-pressed', 'shadow-inner', 'shadow-lg', 'shadow-md', 'shadow-md-heavy', 'shadow-none', 'shadow-sm', 'shadow-xl', 'shadow-xs', 'sidebar-accent', 'sidebar-accent-foreground', 'sidebar-background', 'sidebar-border', 'sidebar-foreground', 'sidebar-primary', 'sidebar-primary-foreground', 'sidebar-ring', 'spacing', 'state-danger', 'state-danger-foreground', 'state-info', 'state-info-foreground', 'state-success', 'state-success-foreground', 'state-warning', 'state-warning-border', 'state-warning-fill', 'state-warning-foreground', 'state-warning-surface', 'surface-elevated', 'surface-page', 'surface-panel', 'text-2xl', 'text-2xs', 'text-3xl', 'text-4xl', 'text-5xl', 'text-5xl--line-height', 'text-6xl', 'text-6xl--line-height', 'text-7xl', 'text-7xl--line-height', 'text-8xl', 'text-8xl--line-height', 'text-9xl', 'text-9xl--line-height', 'text-base', 'text-body-lg', 'text-body-md', 'text-body-sm', 'text-control', 'text-control-lg', 'text-lg', 'text-md', 'text-primary', 'text-secondary', 'text-sm', 'text-tertiary', 'text-xl', 'text-xs', 'tracking-normal', 'tracking-tight', 'tracking-tighter', 'tracking-tightest', 'tracking-wide', 'tracking-wider', 'tracking-widest'];
2
2
  export type ShadeTokenName = (typeof SHADE_TOKEN_NAMES)[number];
3
3
  export declare const shadeToken: (name: ShadeTokenName) => string;
4
4
  //# sourceMappingURL=tokens.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB,YAC5B,QAAQ,EACR,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EAClB,6BAA6B,EAC7B,0BAA0B,EAC1B,cAAc,EACd,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,MAAM,EACN,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,cAAc,EACd,yBAAyB,EACzB,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,sBAAsB,EACtB,qBAAqB,EACrB,YAAY,EACZ,uBAAuB,EACvB,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kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,CACT,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,eAAO,MAAM,UAAU,SAAU,cAAc,KAAG,MAA0B,CAAC"}
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB,YAC5B,QAAQ,EACR,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EAClB,6BAA6B,EAC7B,0BAA0B,EAC1B,cAAc,EACd,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,MAAM,EACN,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,cAAc,EACd,yBAAyB,EACzB,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,sBAAsB,EACtB,qBAAqB,EACrB,YAAY,EACZ,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,kBA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