@designa8/vibedesign-linear-internal-v1-b737 0.14.0 → 0.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +98 -97
- package/dist/index.js +98 -97
- package/dist/styles.css +14 -24
- package/package.json +1 -1
- package/src/atoms/AnnouncementCard/AnnouncementCard.tsx +61 -50
- package/src/atoms/AnnouncementCard/preview.tsx +29 -2
- package/src/organisms/Sidebar/preview.tsx +34 -28
- package/src/organisms/SidebarDesktop/SidebarDesktop.tsx +30 -23
- package/src/organisms/SidebarDesktop/preview.tsx +24 -32
- package/src/organisms/SidebarMobile/SidebarMobile.tsx +21 -26
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @designa8/vibedesign-linear-internal-v1-b737
|
|
2
2
|
|
|
3
|
-
Complete design system generated by Atoms Design, version **0.14.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.14.2**.
|
|
4
4
|
Tokens, atoms, molecules, organisms, and templates — import from the package root;
|
|
5
5
|
never hardcode visual values in consumer code.
|
|
6
6
|
|
package/dist/index.cjs
CHANGED
|
@@ -310,23 +310,23 @@ Icon.displayName = "Icon";
|
|
|
310
310
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
311
311
|
var cn = (...parts) => parts.filter(Boolean).join(" ");
|
|
312
312
|
var cardBase = "group relative flex w-full cursor-pointer overflow-hidden rounded-xl border border-hairline transition duration-200 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue";
|
|
313
|
-
var LEFT_FADE = "linear-gradient(to right, transparent
|
|
314
|
-
var GLOW = "radial-gradient(
|
|
313
|
+
var LEFT_FADE = "linear-gradient(to right, transparent 62%, color-mix(in srgb, black 18%, transparent) 72%, color-mix(in srgb, black 62%, transparent) 82%, black 92%)";
|
|
314
|
+
var GLOW = "radial-gradient(62% 54% at 100% -18%, var(--color-promo-glow) 0%, color-mix(in srgb, var(--color-promo-glow-pink) 62%, transparent) 48%, transparent 88%)";
|
|
315
315
|
var HILLS = [
|
|
316
316
|
{
|
|
317
|
-
id: "
|
|
318
|
-
shape: "radial-gradient(
|
|
319
|
-
fill: "linear-gradient(
|
|
317
|
+
id: "violet",
|
|
318
|
+
shape: "radial-gradient(48% 80% at 76% 122%, black 0 98.6%, transparent 100%)",
|
|
319
|
+
fill: "linear-gradient(188deg, var(--color-promo-hill-mid) 0%, var(--color-promo-hill-mid-deep) 88%)"
|
|
320
320
|
},
|
|
321
321
|
{
|
|
322
|
-
id: "
|
|
323
|
-
shape: "radial-gradient(
|
|
324
|
-
fill: "linear-gradient(
|
|
322
|
+
id: "indigo",
|
|
323
|
+
shape: "radial-gradient(32% 100% at 100% 130%, black 0 98.6%, transparent 100%)",
|
|
324
|
+
fill: "linear-gradient(190deg, var(--color-promo-hill-back) 0%, var(--color-promo-hill-back-deep) 90%)"
|
|
325
325
|
},
|
|
326
326
|
{
|
|
327
|
-
id: "
|
|
328
|
-
shape: "radial-gradient(
|
|
329
|
-
fill: "linear-gradient(to bottom, var(--color-promo-hill-front) 0%, var(--color-promo-hill-front-deep)
|
|
327
|
+
id: "cyan",
|
|
328
|
+
shape: "radial-gradient(38% 68% at 54% 136%, black 0 98.6%, transparent 100%)",
|
|
329
|
+
fill: "linear-gradient(to bottom, var(--color-promo-hill-front) 0%, var(--color-promo-hill-front-deep) 92%)"
|
|
330
330
|
}
|
|
331
331
|
];
|
|
332
332
|
var AnnouncementCard = React2.forwardRef(
|
|
@@ -347,17 +347,21 @@ var AnnouncementCard = React2.forwardRef(
|
|
|
347
347
|
"aria-label": subtitle ? `${eyebrow}: ${title} \u2014 ${subtitle}` : `${eyebrow}: ${title}`,
|
|
348
348
|
className: cn(
|
|
349
349
|
cardBase,
|
|
350
|
-
|
|
351
|
-
|
|
350
|
+
// Flat in the flow: no lift, no shadow escalation, so the card can never
|
|
351
|
+
// ride up over the nav rows above it. Hover is a hairline emphasis only.
|
|
352
|
+
"items-center gap-md bg-canvas py-base pl-md pr-sm",
|
|
353
|
+
"hover:border-hairline-strong",
|
|
352
354
|
className
|
|
353
355
|
),
|
|
354
356
|
children: [
|
|
355
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.
|
|
357
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
356
358
|
"span",
|
|
357
359
|
{
|
|
358
|
-
|
|
360
|
+
"aria-hidden": "true",
|
|
361
|
+
className: "pointer-events-none absolute inset-0 overflow-hidden",
|
|
359
362
|
style: { maskImage: LEFT_FADE, WebkitMaskImage: LEFT_FADE },
|
|
360
363
|
children: [
|
|
364
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "absolute inset-0", style: { backgroundImage: GLOW } }),
|
|
361
365
|
HILLS.map((hill) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
362
366
|
"span",
|
|
363
367
|
{
|
|
@@ -369,14 +373,13 @@ var AnnouncementCard = React2.forwardRef(
|
|
|
369
373
|
}
|
|
370
374
|
},
|
|
371
375
|
hill.id
|
|
372
|
-
))
|
|
373
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "absolute inset-0", style: { backgroundImage: GLOW } })
|
|
376
|
+
))
|
|
374
377
|
]
|
|
375
378
|
}
|
|
376
|
-
)
|
|
377
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "relative flex min-w-0 flex-1 flex-col gap-
|
|
378
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "truncate text-body-md font-weight-
|
|
379
|
-
subtitle && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "truncate text-caption text-
|
|
379
|
+
),
|
|
380
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "relative flex min-w-0 flex-1 flex-col gap-xs", children: [
|
|
381
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "truncate text-body-md font-weight-label text-ink", children: title }),
|
|
382
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "truncate text-caption text-ink/80 dark:text-ink/85", children: subtitle })
|
|
380
383
|
] }),
|
|
381
384
|
icon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
382
385
|
Icon,
|
|
@@ -384,8 +387,7 @@ var AnnouncementCard = React2.forwardRef(
|
|
|
384
387
|
name: icon,
|
|
385
388
|
size: 26,
|
|
386
389
|
strokeWidth: 2,
|
|
387
|
-
|
|
388
|
-
className: "relative shrink-0"
|
|
390
|
+
className: "relative shrink-0 text-ink"
|
|
389
391
|
}
|
|
390
392
|
)
|
|
391
393
|
]
|
|
@@ -11830,7 +11832,7 @@ var React94 = __toESM(require("react"));
|
|
|
11830
11832
|
var React92 = __toESM(require("react"));
|
|
11831
11833
|
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
11832
11834
|
var cn71 = (...parts) => parts.filter(Boolean).join(" ");
|
|
11833
|
-
var linkBase = "flex h-8 items-center rounded-md border border-transparent text-body-md cursor-pointer transition-colors duration-150 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-blue";
|
|
11835
|
+
var linkBase = "flex h-8 w-full items-center rounded-md border border-transparent px-sm text-body-md cursor-pointer transition-colors duration-150 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-blue";
|
|
11834
11836
|
var hasBadge = (badge) => badge !== void 0 && badge !== null && badge !== false;
|
|
11835
11837
|
var SidebarDesktop = React92.forwardRef(
|
|
11836
11838
|
({
|
|
@@ -11906,7 +11908,7 @@ var SidebarDesktop = React92.forwardRef(
|
|
|
11906
11908
|
onClick: (e) => onNavigate?.(link, e),
|
|
11907
11909
|
className: cn71(
|
|
11908
11910
|
linkBase,
|
|
11909
|
-
collapsed ? "w-9 justify-center" : cn71("
|
|
11911
|
+
collapsed ? "w-9 justify-center px-0" : cn71("gap-sm", nested && "pl-xl"),
|
|
11910
11912
|
current ? "bg-surface-strong text-ink font-weight-label" : "text-ink hover:bg-surface-soft active:bg-surface-strong"
|
|
11911
11913
|
),
|
|
11912
11914
|
children: [
|
|
@@ -12049,44 +12051,57 @@ var SidebarDesktop = React92.forwardRef(
|
|
|
12049
12051
|
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(IconButton, { icon: "panel-left", variant: "secondary", "aria-label": "Collapse sidebar", onClick: toggle })
|
|
12050
12052
|
] }),
|
|
12051
12053
|
!workspaceAtBottom && workspaceRow,
|
|
12052
|
-
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
12053
|
-
|
|
12054
|
-
|
|
12055
|
-
|
|
12056
|
-
|
|
12057
|
-
|
|
12058
|
-
|
|
12059
|
-
variant: "item",
|
|
12060
|
-
size: "sm",
|
|
12061
|
-
"aria-expanded": sectionOpen,
|
|
12062
|
-
"aria-controls": listId,
|
|
12063
|
-
onClick: () => flip(section.id),
|
|
12064
|
-
className: "px-sm",
|
|
12065
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("span", { className: "inline-flex items-center gap-xs text-muted", children: [
|
|
12066
|
-
section.label,
|
|
12067
|
-
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
12068
|
-
Icon,
|
|
12069
|
-
{
|
|
12070
|
-
name: "chevron-down",
|
|
12071
|
-
size: 12,
|
|
12072
|
-
className: cn71("transition-transform duration-200 ease-out", !sectionOpen && "-rotate-90")
|
|
12073
|
-
}
|
|
12074
|
-
)
|
|
12075
|
-
] })
|
|
12076
|
-
}
|
|
12054
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
12055
|
+
"nav",
|
|
12056
|
+
{
|
|
12057
|
+
"aria-label": "Main",
|
|
12058
|
+
className: cn71(
|
|
12059
|
+
"min-h-0 flex-1 overflow-y-auto overscroll-y-contain pb-sm",
|
|
12060
|
+
collapsed ? "px-0" : "px-sm"
|
|
12077
12061
|
),
|
|
12078
|
-
|
|
12079
|
-
|
|
12080
|
-
{
|
|
12081
|
-
|
|
12082
|
-
|
|
12083
|
-
|
|
12084
|
-
|
|
12085
|
-
|
|
12086
|
-
|
|
12087
|
-
|
|
12088
|
-
|
|
12089
|
-
|
|
12062
|
+
children: sections.map((section, i) => {
|
|
12063
|
+
const sectionOpen = !section.label || isOpen(section.id);
|
|
12064
|
+
const listId = `${baseId}-section-${section.id}`;
|
|
12065
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: i > 0 ? "mt-base" : void 0, children: [
|
|
12066
|
+
section.label && !collapsed && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
12067
|
+
Button,
|
|
12068
|
+
{
|
|
12069
|
+
variant: "item",
|
|
12070
|
+
size: "sm",
|
|
12071
|
+
"aria-expanded": sectionOpen,
|
|
12072
|
+
"aria-controls": listId,
|
|
12073
|
+
onClick: () => flip(section.id),
|
|
12074
|
+
className: "px-sm",
|
|
12075
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("span", { className: "inline-flex items-center gap-xs text-caption text-muted", children: [
|
|
12076
|
+
section.label,
|
|
12077
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
12078
|
+
Icon,
|
|
12079
|
+
{
|
|
12080
|
+
name: "chevron-down",
|
|
12081
|
+
size: 12,
|
|
12082
|
+
className: cn71("transition-transform duration-200 ease-out", !sectionOpen && "-rotate-90")
|
|
12083
|
+
}
|
|
12084
|
+
)
|
|
12085
|
+
] })
|
|
12086
|
+
}
|
|
12087
|
+
),
|
|
12088
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
12089
|
+
"div",
|
|
12090
|
+
{
|
|
12091
|
+
id: listId,
|
|
12092
|
+
"data-state": sectionOpen || collapsed ? "open" : "closed",
|
|
12093
|
+
className: "grid transition-[grid-template-rows] duration-200 ease-out data-[state=open]:grid-rows-[1fr] data-[state=closed]:grid-rows-[0fr]",
|
|
12094
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("ul", { className: "flex min-h-0 flex-col gap-xxs overflow-hidden", children: section.items.map(renderItem) })
|
|
12095
|
+
}
|
|
12096
|
+
)
|
|
12097
|
+
] }, section.id);
|
|
12098
|
+
})
|
|
12099
|
+
}
|
|
12100
|
+
),
|
|
12101
|
+
announcement && !collapsed && /* Normal flow, after the scroll area: a 12px gap plus a hairline divider
|
|
12102
|
+
separate the last nav row from the card. No negative margin, no
|
|
12103
|
+
absolute placement, no lift — nothing can paint over a row. */
|
|
12104
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "shrink-0 border-t border-hairline px-sm pb-sm pt-md", children: announcement.variant === "promo" ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
12090
12105
|
AnnouncementCard,
|
|
12091
12106
|
{
|
|
12092
12107
|
eyebrow: announcement.eyebrow,
|
|
@@ -12097,22 +12112,14 @@ var SidebarDesktop = React92.forwardRef(
|
|
|
12097
12112
|
onClick: announcement.onClick,
|
|
12098
12113
|
variant: "promo"
|
|
12099
12114
|
}
|
|
12100
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime92.
|
|
12101
|
-
|
|
12115
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
12116
|
+
AnnouncementCard,
|
|
12102
12117
|
{
|
|
12103
|
-
|
|
12104
|
-
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
}
|
|
12109
|
-
},
|
|
12110
|
-
className: "flex flex-col gap-xxs rounded-lg border border-hairline bg-canvas px-md py-sm cursor-pointer transition-colors duration-150 ease-out hover:bg-surface-soft focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue",
|
|
12111
|
-
children: [
|
|
12112
|
-
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "text-caption text-muted", children: announcement.eyebrow }),
|
|
12113
|
-
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "text-body-sm text-ink", children: announcement.title }),
|
|
12114
|
-
announcement.subtitle && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "text-caption text-muted", children: announcement.subtitle })
|
|
12115
|
-
]
|
|
12118
|
+
eyebrow: announcement.eyebrow,
|
|
12119
|
+
title: announcement.title,
|
|
12120
|
+
subtitle: announcement.subtitle,
|
|
12121
|
+
href: announcement.href,
|
|
12122
|
+
onClick: announcement.onClick
|
|
12116
12123
|
}
|
|
12117
12124
|
) }),
|
|
12118
12125
|
workspaceAtBottom && workspaceRow,
|
|
@@ -12153,7 +12160,7 @@ SidebarDesktop.displayName = "SidebarDesktop";
|
|
|
12153
12160
|
var React93 = __toESM(require("react"));
|
|
12154
12161
|
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
12155
12162
|
var cn72 = (...parts) => parts.filter(Boolean).join(" ");
|
|
12156
|
-
var linkBase2 = "flex h-
|
|
12163
|
+
var linkBase2 = "flex h-8 w-full items-center gap-sm rounded-md border border-transparent px-sm text-body-md cursor-pointer transition-colors duration-150 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-blue";
|
|
12157
12164
|
var hasBadge2 = (badge) => badge !== void 0 && badge !== null && badge !== false;
|
|
12158
12165
|
var SidebarMobile = React93.forwardRef(
|
|
12159
12166
|
({
|
|
@@ -12240,7 +12247,7 @@ var SidebarMobile = React93.forwardRef(
|
|
|
12240
12247
|
Button,
|
|
12241
12248
|
{
|
|
12242
12249
|
variant: "item",
|
|
12243
|
-
size: "
|
|
12250
|
+
size: "md",
|
|
12244
12251
|
"aria-expanded": isOpen,
|
|
12245
12252
|
"aria-controls": panelId,
|
|
12246
12253
|
onClick: () => flip(link.id),
|
|
@@ -12371,7 +12378,7 @@ var SidebarMobile = React93.forwardRef(
|
|
|
12371
12378
|
"aria-controls": listId,
|
|
12372
12379
|
onClick: () => flip(section.id),
|
|
12373
12380
|
className: "px-sm",
|
|
12374
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("span", { className: "inline-flex items-center gap-xs text-muted", children: [
|
|
12381
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("span", { className: "inline-flex items-center gap-xs text-caption text-muted", children: [
|
|
12375
12382
|
section.label,
|
|
12376
12383
|
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
12377
12384
|
Icon,
|
|
@@ -12395,7 +12402,9 @@ var SidebarMobile = React93.forwardRef(
|
|
|
12395
12402
|
)
|
|
12396
12403
|
] }, section.id);
|
|
12397
12404
|
}) }),
|
|
12398
|
-
announcement &&
|
|
12405
|
+
announcement && /* In flow under the nav: 12px gap plus a hairline divider, so no row can
|
|
12406
|
+
sit behind the card's top edge. */
|
|
12407
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "mt-md border-t border-hairline pt-md", children: announcement.variant === "promo" ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
12399
12408
|
AnnouncementCard,
|
|
12400
12409
|
{
|
|
12401
12410
|
eyebrow: announcement.eyebrow,
|
|
@@ -12406,24 +12415,16 @@ var SidebarMobile = React93.forwardRef(
|
|
|
12406
12415
|
onClick: announcement.onClick,
|
|
12407
12416
|
variant: "promo"
|
|
12408
12417
|
}
|
|
12409
|
-
)
|
|
12410
|
-
|
|
12418
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
12419
|
+
AnnouncementCard,
|
|
12411
12420
|
{
|
|
12412
|
-
|
|
12413
|
-
|
|
12414
|
-
|
|
12415
|
-
|
|
12416
|
-
|
|
12417
|
-
}
|
|
12418
|
-
},
|
|
12419
|
-
className: "mt-base flex flex-col gap-xxs rounded-lg border border-hairline bg-canvas px-md py-sm cursor-pointer transition-colors duration-150 ease-out hover:bg-surface-soft focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue",
|
|
12420
|
-
children: [
|
|
12421
|
-
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "text-caption text-muted", children: announcement.eyebrow }),
|
|
12422
|
-
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "text-body-sm text-ink", children: announcement.title }),
|
|
12423
|
-
announcement.subtitle && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "text-caption text-muted", children: announcement.subtitle })
|
|
12424
|
-
]
|
|
12421
|
+
eyebrow: announcement.eyebrow,
|
|
12422
|
+
title: announcement.title,
|
|
12423
|
+
subtitle: announcement.subtitle,
|
|
12424
|
+
href: announcement.href,
|
|
12425
|
+
onClick: announcement.onClick
|
|
12425
12426
|
}
|
|
12426
|
-
))
|
|
12427
|
+
) })
|
|
12427
12428
|
]
|
|
12428
12429
|
}
|
|
12429
12430
|
)
|
package/dist/index.js
CHANGED
|
@@ -164,23 +164,23 @@ Icon.displayName = "Icon";
|
|
|
164
164
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
165
165
|
var cn = (...parts) => parts.filter(Boolean).join(" ");
|
|
166
166
|
var cardBase = "group relative flex w-full cursor-pointer overflow-hidden rounded-xl border border-hairline transition duration-200 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue";
|
|
167
|
-
var LEFT_FADE = "linear-gradient(to right, transparent
|
|
168
|
-
var GLOW = "radial-gradient(
|
|
167
|
+
var LEFT_FADE = "linear-gradient(to right, transparent 62%, color-mix(in srgb, black 18%, transparent) 72%, color-mix(in srgb, black 62%, transparent) 82%, black 92%)";
|
|
168
|
+
var GLOW = "radial-gradient(62% 54% at 100% -18%, var(--color-promo-glow) 0%, color-mix(in srgb, var(--color-promo-glow-pink) 62%, transparent) 48%, transparent 88%)";
|
|
169
169
|
var HILLS = [
|
|
170
170
|
{
|
|
171
|
-
id: "
|
|
172
|
-
shape: "radial-gradient(
|
|
173
|
-
fill: "linear-gradient(
|
|
171
|
+
id: "violet",
|
|
172
|
+
shape: "radial-gradient(48% 80% at 76% 122%, black 0 98.6%, transparent 100%)",
|
|
173
|
+
fill: "linear-gradient(188deg, var(--color-promo-hill-mid) 0%, var(--color-promo-hill-mid-deep) 88%)"
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
|
-
id: "
|
|
177
|
-
shape: "radial-gradient(
|
|
178
|
-
fill: "linear-gradient(
|
|
176
|
+
id: "indigo",
|
|
177
|
+
shape: "radial-gradient(32% 100% at 100% 130%, black 0 98.6%, transparent 100%)",
|
|
178
|
+
fill: "linear-gradient(190deg, var(--color-promo-hill-back) 0%, var(--color-promo-hill-back-deep) 90%)"
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
|
-
id: "
|
|
182
|
-
shape: "radial-gradient(
|
|
183
|
-
fill: "linear-gradient(to bottom, var(--color-promo-hill-front) 0%, var(--color-promo-hill-front-deep)
|
|
181
|
+
id: "cyan",
|
|
182
|
+
shape: "radial-gradient(38% 68% at 54% 136%, black 0 98.6%, transparent 100%)",
|
|
183
|
+
fill: "linear-gradient(to bottom, var(--color-promo-hill-front) 0%, var(--color-promo-hill-front-deep) 92%)"
|
|
184
184
|
}
|
|
185
185
|
];
|
|
186
186
|
var AnnouncementCard = React2.forwardRef(
|
|
@@ -201,17 +201,21 @@ var AnnouncementCard = React2.forwardRef(
|
|
|
201
201
|
"aria-label": subtitle ? `${eyebrow}: ${title} \u2014 ${subtitle}` : `${eyebrow}: ${title}`,
|
|
202
202
|
className: cn(
|
|
203
203
|
cardBase,
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
// Flat in the flow: no lift, no shadow escalation, so the card can never
|
|
205
|
+
// ride up over the nav rows above it. Hover is a hairline emphasis only.
|
|
206
|
+
"items-center gap-md bg-canvas py-base pl-md pr-sm",
|
|
207
|
+
"hover:border-hairline-strong",
|
|
206
208
|
className
|
|
207
209
|
),
|
|
208
210
|
children: [
|
|
209
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ jsxs(
|
|
210
212
|
"span",
|
|
211
213
|
{
|
|
212
|
-
|
|
214
|
+
"aria-hidden": "true",
|
|
215
|
+
className: "pointer-events-none absolute inset-0 overflow-hidden",
|
|
213
216
|
style: { maskImage: LEFT_FADE, WebkitMaskImage: LEFT_FADE },
|
|
214
217
|
children: [
|
|
218
|
+
/* @__PURE__ */ jsx2("span", { className: "absolute inset-0", style: { backgroundImage: GLOW } }),
|
|
215
219
|
HILLS.map((hill) => /* @__PURE__ */ jsx2(
|
|
216
220
|
"span",
|
|
217
221
|
{
|
|
@@ -223,14 +227,13 @@ var AnnouncementCard = React2.forwardRef(
|
|
|
223
227
|
}
|
|
224
228
|
},
|
|
225
229
|
hill.id
|
|
226
|
-
))
|
|
227
|
-
/* @__PURE__ */ jsx2("span", { className: "absolute inset-0", style: { backgroundImage: GLOW } })
|
|
230
|
+
))
|
|
228
231
|
]
|
|
229
232
|
}
|
|
230
|
-
)
|
|
231
|
-
/* @__PURE__ */ jsxs("span", { className: "relative flex min-w-0 flex-1 flex-col gap-
|
|
232
|
-
/* @__PURE__ */ jsx2("span", { className: "truncate text-body-md font-weight-
|
|
233
|
-
subtitle && /* @__PURE__ */ jsx2("span", { className: "truncate text-caption text-
|
|
233
|
+
),
|
|
234
|
+
/* @__PURE__ */ jsxs("span", { className: "relative flex min-w-0 flex-1 flex-col gap-xs", children: [
|
|
235
|
+
/* @__PURE__ */ jsx2("span", { className: "truncate text-body-md font-weight-label text-ink", children: title }),
|
|
236
|
+
subtitle && /* @__PURE__ */ jsx2("span", { className: "truncate text-caption text-ink/80 dark:text-ink/85", children: subtitle })
|
|
234
237
|
] }),
|
|
235
238
|
icon && /* @__PURE__ */ jsx2(
|
|
236
239
|
Icon,
|
|
@@ -238,8 +241,7 @@ var AnnouncementCard = React2.forwardRef(
|
|
|
238
241
|
name: icon,
|
|
239
242
|
size: 26,
|
|
240
243
|
strokeWidth: 2,
|
|
241
|
-
|
|
242
|
-
className: "relative shrink-0"
|
|
244
|
+
className: "relative shrink-0 text-ink"
|
|
243
245
|
}
|
|
244
246
|
)
|
|
245
247
|
]
|
|
@@ -11684,7 +11686,7 @@ import * as React94 from "react";
|
|
|
11684
11686
|
import * as React92 from "react";
|
|
11685
11687
|
import { jsx as jsx92, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
11686
11688
|
var cn71 = (...parts) => parts.filter(Boolean).join(" ");
|
|
11687
|
-
var linkBase = "flex h-8 items-center rounded-md border border-transparent text-body-md cursor-pointer transition-colors duration-150 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-blue";
|
|
11689
|
+
var linkBase = "flex h-8 w-full items-center rounded-md border border-transparent px-sm text-body-md cursor-pointer transition-colors duration-150 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-blue";
|
|
11688
11690
|
var hasBadge = (badge) => badge !== void 0 && badge !== null && badge !== false;
|
|
11689
11691
|
var SidebarDesktop = React92.forwardRef(
|
|
11690
11692
|
({
|
|
@@ -11760,7 +11762,7 @@ var SidebarDesktop = React92.forwardRef(
|
|
|
11760
11762
|
onClick: (e) => onNavigate?.(link, e),
|
|
11761
11763
|
className: cn71(
|
|
11762
11764
|
linkBase,
|
|
11763
|
-
collapsed ? "w-9 justify-center" : cn71("
|
|
11765
|
+
collapsed ? "w-9 justify-center px-0" : cn71("gap-sm", nested && "pl-xl"),
|
|
11764
11766
|
current ? "bg-surface-strong text-ink font-weight-label" : "text-ink hover:bg-surface-soft active:bg-surface-strong"
|
|
11765
11767
|
),
|
|
11766
11768
|
children: [
|
|
@@ -11903,44 +11905,57 @@ var SidebarDesktop = React92.forwardRef(
|
|
|
11903
11905
|
/* @__PURE__ */ jsx92(IconButton, { icon: "panel-left", variant: "secondary", "aria-label": "Collapse sidebar", onClick: toggle })
|
|
11904
11906
|
] }),
|
|
11905
11907
|
!workspaceAtBottom && workspaceRow,
|
|
11906
|
-
/* @__PURE__ */ jsx92(
|
|
11907
|
-
|
|
11908
|
-
|
|
11909
|
-
|
|
11910
|
-
|
|
11911
|
-
|
|
11912
|
-
|
|
11913
|
-
variant: "item",
|
|
11914
|
-
size: "sm",
|
|
11915
|
-
"aria-expanded": sectionOpen,
|
|
11916
|
-
"aria-controls": listId,
|
|
11917
|
-
onClick: () => flip(section.id),
|
|
11918
|
-
className: "px-sm",
|
|
11919
|
-
children: /* @__PURE__ */ jsxs84("span", { className: "inline-flex items-center gap-xs text-muted", children: [
|
|
11920
|
-
section.label,
|
|
11921
|
-
/* @__PURE__ */ jsx92(
|
|
11922
|
-
Icon,
|
|
11923
|
-
{
|
|
11924
|
-
name: "chevron-down",
|
|
11925
|
-
size: 12,
|
|
11926
|
-
className: cn71("transition-transform duration-200 ease-out", !sectionOpen && "-rotate-90")
|
|
11927
|
-
}
|
|
11928
|
-
)
|
|
11929
|
-
] })
|
|
11930
|
-
}
|
|
11908
|
+
/* @__PURE__ */ jsx92(
|
|
11909
|
+
"nav",
|
|
11910
|
+
{
|
|
11911
|
+
"aria-label": "Main",
|
|
11912
|
+
className: cn71(
|
|
11913
|
+
"min-h-0 flex-1 overflow-y-auto overscroll-y-contain pb-sm",
|
|
11914
|
+
collapsed ? "px-0" : "px-sm"
|
|
11931
11915
|
),
|
|
11932
|
-
|
|
11933
|
-
|
|
11934
|
-
{
|
|
11935
|
-
|
|
11936
|
-
|
|
11937
|
-
|
|
11938
|
-
|
|
11939
|
-
|
|
11940
|
-
|
|
11941
|
-
|
|
11942
|
-
|
|
11943
|
-
|
|
11916
|
+
children: sections.map((section, i) => {
|
|
11917
|
+
const sectionOpen = !section.label || isOpen(section.id);
|
|
11918
|
+
const listId = `${baseId}-section-${section.id}`;
|
|
11919
|
+
return /* @__PURE__ */ jsxs84("div", { className: i > 0 ? "mt-base" : void 0, children: [
|
|
11920
|
+
section.label && !collapsed && /* @__PURE__ */ jsx92(
|
|
11921
|
+
Button,
|
|
11922
|
+
{
|
|
11923
|
+
variant: "item",
|
|
11924
|
+
size: "sm",
|
|
11925
|
+
"aria-expanded": sectionOpen,
|
|
11926
|
+
"aria-controls": listId,
|
|
11927
|
+
onClick: () => flip(section.id),
|
|
11928
|
+
className: "px-sm",
|
|
11929
|
+
children: /* @__PURE__ */ jsxs84("span", { className: "inline-flex items-center gap-xs text-caption text-muted", children: [
|
|
11930
|
+
section.label,
|
|
11931
|
+
/* @__PURE__ */ jsx92(
|
|
11932
|
+
Icon,
|
|
11933
|
+
{
|
|
11934
|
+
name: "chevron-down",
|
|
11935
|
+
size: 12,
|
|
11936
|
+
className: cn71("transition-transform duration-200 ease-out", !sectionOpen && "-rotate-90")
|
|
11937
|
+
}
|
|
11938
|
+
)
|
|
11939
|
+
] })
|
|
11940
|
+
}
|
|
11941
|
+
),
|
|
11942
|
+
/* @__PURE__ */ jsx92(
|
|
11943
|
+
"div",
|
|
11944
|
+
{
|
|
11945
|
+
id: listId,
|
|
11946
|
+
"data-state": sectionOpen || collapsed ? "open" : "closed",
|
|
11947
|
+
className: "grid transition-[grid-template-rows] duration-200 ease-out data-[state=open]:grid-rows-[1fr] data-[state=closed]:grid-rows-[0fr]",
|
|
11948
|
+
children: /* @__PURE__ */ jsx92("ul", { className: "flex min-h-0 flex-col gap-xxs overflow-hidden", children: section.items.map(renderItem) })
|
|
11949
|
+
}
|
|
11950
|
+
)
|
|
11951
|
+
] }, section.id);
|
|
11952
|
+
})
|
|
11953
|
+
}
|
|
11954
|
+
),
|
|
11955
|
+
announcement && !collapsed && /* Normal flow, after the scroll area: a 12px gap plus a hairline divider
|
|
11956
|
+
separate the last nav row from the card. No negative margin, no
|
|
11957
|
+
absolute placement, no lift — nothing can paint over a row. */
|
|
11958
|
+
/* @__PURE__ */ jsx92("div", { className: "shrink-0 border-t border-hairline px-sm pb-sm pt-md", children: announcement.variant === "promo" ? /* @__PURE__ */ jsx92(
|
|
11944
11959
|
AnnouncementCard,
|
|
11945
11960
|
{
|
|
11946
11961
|
eyebrow: announcement.eyebrow,
|
|
@@ -11951,22 +11966,14 @@ var SidebarDesktop = React92.forwardRef(
|
|
|
11951
11966
|
onClick: announcement.onClick,
|
|
11952
11967
|
variant: "promo"
|
|
11953
11968
|
}
|
|
11954
|
-
) : /* @__PURE__ */
|
|
11955
|
-
|
|
11969
|
+
) : /* @__PURE__ */ jsx92(
|
|
11970
|
+
AnnouncementCard,
|
|
11956
11971
|
{
|
|
11957
|
-
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
}
|
|
11963
|
-
},
|
|
11964
|
-
className: "flex flex-col gap-xxs rounded-lg border border-hairline bg-canvas px-md py-sm cursor-pointer transition-colors duration-150 ease-out hover:bg-surface-soft focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue",
|
|
11965
|
-
children: [
|
|
11966
|
-
/* @__PURE__ */ jsx92("span", { className: "text-caption text-muted", children: announcement.eyebrow }),
|
|
11967
|
-
/* @__PURE__ */ jsx92("span", { className: "text-body-sm text-ink", children: announcement.title }),
|
|
11968
|
-
announcement.subtitle && /* @__PURE__ */ jsx92("span", { className: "text-caption text-muted", children: announcement.subtitle })
|
|
11969
|
-
]
|
|
11972
|
+
eyebrow: announcement.eyebrow,
|
|
11973
|
+
title: announcement.title,
|
|
11974
|
+
subtitle: announcement.subtitle,
|
|
11975
|
+
href: announcement.href,
|
|
11976
|
+
onClick: announcement.onClick
|
|
11970
11977
|
}
|
|
11971
11978
|
) }),
|
|
11972
11979
|
workspaceAtBottom && workspaceRow,
|
|
@@ -12007,7 +12014,7 @@ SidebarDesktop.displayName = "SidebarDesktop";
|
|
|
12007
12014
|
import * as React93 from "react";
|
|
12008
12015
|
import { jsx as jsx93, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
12009
12016
|
var cn72 = (...parts) => parts.filter(Boolean).join(" ");
|
|
12010
|
-
var linkBase2 = "flex h-
|
|
12017
|
+
var linkBase2 = "flex h-8 w-full items-center gap-sm rounded-md border border-transparent px-sm text-body-md cursor-pointer transition-colors duration-150 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-blue";
|
|
12011
12018
|
var hasBadge2 = (badge) => badge !== void 0 && badge !== null && badge !== false;
|
|
12012
12019
|
var SidebarMobile = React93.forwardRef(
|
|
12013
12020
|
({
|
|
@@ -12094,7 +12101,7 @@ var SidebarMobile = React93.forwardRef(
|
|
|
12094
12101
|
Button,
|
|
12095
12102
|
{
|
|
12096
12103
|
variant: "item",
|
|
12097
|
-
size: "
|
|
12104
|
+
size: "md",
|
|
12098
12105
|
"aria-expanded": isOpen,
|
|
12099
12106
|
"aria-controls": panelId,
|
|
12100
12107
|
onClick: () => flip(link.id),
|
|
@@ -12225,7 +12232,7 @@ var SidebarMobile = React93.forwardRef(
|
|
|
12225
12232
|
"aria-controls": listId,
|
|
12226
12233
|
onClick: () => flip(section.id),
|
|
12227
12234
|
className: "px-sm",
|
|
12228
|
-
children: /* @__PURE__ */ jsxs85("span", { className: "inline-flex items-center gap-xs text-muted", children: [
|
|
12235
|
+
children: /* @__PURE__ */ jsxs85("span", { className: "inline-flex items-center gap-xs text-caption text-muted", children: [
|
|
12229
12236
|
section.label,
|
|
12230
12237
|
/* @__PURE__ */ jsx93(
|
|
12231
12238
|
Icon,
|
|
@@ -12249,7 +12256,9 @@ var SidebarMobile = React93.forwardRef(
|
|
|
12249
12256
|
)
|
|
12250
12257
|
] }, section.id);
|
|
12251
12258
|
}) }),
|
|
12252
|
-
announcement &&
|
|
12259
|
+
announcement && /* In flow under the nav: 12px gap plus a hairline divider, so no row can
|
|
12260
|
+
sit behind the card's top edge. */
|
|
12261
|
+
/* @__PURE__ */ jsx93("div", { className: "mt-md border-t border-hairline pt-md", children: announcement.variant === "promo" ? /* @__PURE__ */ jsx93(
|
|
12253
12262
|
AnnouncementCard,
|
|
12254
12263
|
{
|
|
12255
12264
|
eyebrow: announcement.eyebrow,
|
|
@@ -12260,24 +12269,16 @@ var SidebarMobile = React93.forwardRef(
|
|
|
12260
12269
|
onClick: announcement.onClick,
|
|
12261
12270
|
variant: "promo"
|
|
12262
12271
|
}
|
|
12263
|
-
)
|
|
12264
|
-
|
|
12272
|
+
) : /* @__PURE__ */ jsx93(
|
|
12273
|
+
AnnouncementCard,
|
|
12265
12274
|
{
|
|
12266
|
-
|
|
12267
|
-
|
|
12268
|
-
|
|
12269
|
-
|
|
12270
|
-
|
|
12271
|
-
}
|
|
12272
|
-
},
|
|
12273
|
-
className: "mt-base flex flex-col gap-xxs rounded-lg border border-hairline bg-canvas px-md py-sm cursor-pointer transition-colors duration-150 ease-out hover:bg-surface-soft focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue",
|
|
12274
|
-
children: [
|
|
12275
|
-
/* @__PURE__ */ jsx93("span", { className: "text-caption text-muted", children: announcement.eyebrow }),
|
|
12276
|
-
/* @__PURE__ */ jsx93("span", { className: "text-body-sm text-ink", children: announcement.title }),
|
|
12277
|
-
announcement.subtitle && /* @__PURE__ */ jsx93("span", { className: "text-caption text-muted", children: announcement.subtitle })
|
|
12278
|
-
]
|
|
12275
|
+
eyebrow: announcement.eyebrow,
|
|
12276
|
+
title: announcement.title,
|
|
12277
|
+
subtitle: announcement.subtitle,
|
|
12278
|
+
href: announcement.href,
|
|
12279
|
+
onClick: announcement.onClick
|
|
12279
12280
|
}
|
|
12280
|
-
))
|
|
12281
|
+
) })
|
|
12281
12282
|
]
|
|
12282
12283
|
}
|
|
12283
12284
|
)
|