@designa8/vibedesign-linear-internal-v1-b737 0.14.1 → 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 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.1**.
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,7 +310,7 @@ 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 56%, color-mix(in srgb, black 18%, transparent) 66%, color-mix(in srgb, black 62%, transparent) 78%, black 90%)";
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
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
  {
@@ -347,8 +347,10 @@ var AnnouncementCard = React2.forwardRef(
347
347
  "aria-label": subtitle ? `${eyebrow}: ${title} \u2014 ${subtitle}` : `${eyebrow}: ${title}`,
348
348
  className: cn(
349
349
  cardBase,
350
- "items-center gap-md bg-canvas py-base pl-md pr-sm shadow-card",
351
- "hover:-translate-y-px hover:shadow-md active:translate-y-0 motion-reduce:transition-none motion-reduce:hover:translate-y-0",
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: [
@@ -376,8 +378,8 @@ var AnnouncementCard = React2.forwardRef(
376
378
  }
377
379
  ),
378
380
  /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "relative flex min-w-0 flex-1 flex-col gap-xs", children: [
379
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "truncate text-body-md font-weight-heading-md text-ink", children: title }),
380
- subtitle && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "truncate text-caption text-muted", children: subtitle })
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 })
381
383
  ] }),
382
384
  icon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
383
385
  Icon,
@@ -385,8 +387,7 @@ var AnnouncementCard = React2.forwardRef(
385
387
  name: icon,
386
388
  size: 26,
387
389
  strokeWidth: 2,
388
- tone: "inverse",
389
- className: "relative shrink-0"
390
+ className: "relative shrink-0 text-ink"
390
391
  }
391
392
  )
392
393
  ]
@@ -11831,7 +11832,7 @@ var React94 = __toESM(require("react"));
11831
11832
  var React92 = __toESM(require("react"));
11832
11833
  var import_jsx_runtime92 = require("react/jsx-runtime");
11833
11834
  var cn71 = (...parts) => parts.filter(Boolean).join(" ");
11834
- 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";
11835
11836
  var hasBadge = (badge) => badge !== void 0 && badge !== null && badge !== false;
11836
11837
  var SidebarDesktop = React92.forwardRef(
11837
11838
  ({
@@ -11907,7 +11908,7 @@ var SidebarDesktop = React92.forwardRef(
11907
11908
  onClick: (e) => onNavigate?.(link, e),
11908
11909
  className: cn71(
11909
11910
  linkBase,
11910
- collapsed ? "w-9 justify-center" : cn71("w-full gap-sm px-sm", nested && "pl-xl"),
11911
+ collapsed ? "w-9 justify-center px-0" : cn71("gap-sm", nested && "pl-xl"),
11911
11912
  current ? "bg-surface-strong text-ink font-weight-label" : "text-ink hover:bg-surface-soft active:bg-surface-strong"
11912
11913
  ),
11913
11914
  children: [
@@ -12050,44 +12051,57 @@ var SidebarDesktop = React92.forwardRef(
12050
12051
  /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(IconButton, { icon: "panel-left", variant: "secondary", "aria-label": "Collapse sidebar", onClick: toggle })
12051
12052
  ] }),
12052
12053
  !workspaceAtBottom && workspaceRow,
12053
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("nav", { "aria-label": "Main", className: cn71("min-h-0 flex-1 overflow-y-auto overscroll-y-contain pb-sm", collapsed ? "px-0" : "px-sm"), children: sections.map((section, i) => {
12054
- const sectionOpen = !section.label || isOpen(section.id);
12055
- const listId = `${baseId}-section-${section.id}`;
12056
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: i > 0 ? "mt-base" : void 0, children: [
12057
- section.label && !collapsed && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
12058
- Button,
12059
- {
12060
- variant: "item",
12061
- size: "sm",
12062
- "aria-expanded": sectionOpen,
12063
- "aria-controls": listId,
12064
- onClick: () => flip(section.id),
12065
- className: "px-sm",
12066
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("span", { className: "inline-flex items-center gap-xs text-muted", children: [
12067
- section.label,
12068
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
12069
- Icon,
12070
- {
12071
- name: "chevron-down",
12072
- size: 12,
12073
- className: cn71("transition-transform duration-200 ease-out", !sectionOpen && "-rotate-90")
12074
- }
12075
- )
12076
- ] })
12077
- }
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"
12078
12061
  ),
12079
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
12080
- "div",
12081
- {
12082
- id: listId,
12083
- "data-state": sectionOpen || collapsed ? "open" : "closed",
12084
- className: "grid transition-[grid-template-rows] duration-200 ease-out data-[state=open]:grid-rows-[1fr] data-[state=closed]:grid-rows-[0fr]",
12085
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("ul", { className: "flex min-h-0 flex-col gap-xxs overflow-hidden", children: section.items.map(renderItem) })
12086
- }
12087
- )
12088
- ] }, section.id);
12089
- }) }),
12090
- announcement && !collapsed && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "shrink-0 px-sm pb-sm", children: announcement.variant === "promo" ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
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)(
12091
12105
  AnnouncementCard,
12092
12106
  {
12093
12107
  eyebrow: announcement.eyebrow,
@@ -12098,22 +12112,14 @@ var SidebarDesktop = React92.forwardRef(
12098
12112
  onClick: announcement.onClick,
12099
12113
  variant: "promo"
12100
12114
  }
12101
- ) : /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
12102
- "a",
12115
+ ) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
12116
+ AnnouncementCard,
12103
12117
  {
12104
- href: announcement.href ?? "#",
12105
- onClick: (event) => {
12106
- if (announcement.onClick) {
12107
- event.preventDefault();
12108
- announcement.onClick();
12109
- }
12110
- },
12111
- 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",
12112
- children: [
12113
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "text-caption text-muted", children: announcement.eyebrow }),
12114
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "text-body-sm text-ink", children: announcement.title }),
12115
- announcement.subtitle && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "text-caption text-muted", children: announcement.subtitle })
12116
- ]
12118
+ eyebrow: announcement.eyebrow,
12119
+ title: announcement.title,
12120
+ subtitle: announcement.subtitle,
12121
+ href: announcement.href,
12122
+ onClick: announcement.onClick
12117
12123
  }
12118
12124
  ) }),
12119
12125
  workspaceAtBottom && workspaceRow,
@@ -12154,7 +12160,7 @@ SidebarDesktop.displayName = "SidebarDesktop";
12154
12160
  var React93 = __toESM(require("react"));
12155
12161
  var import_jsx_runtime93 = require("react/jsx-runtime");
12156
12162
  var cn72 = (...parts) => parts.filter(Boolean).join(" ");
12157
- var linkBase2 = "flex h-9 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";
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";
12158
12164
  var hasBadge2 = (badge) => badge !== void 0 && badge !== null && badge !== false;
12159
12165
  var SidebarMobile = React93.forwardRef(
12160
12166
  ({
@@ -12241,7 +12247,7 @@ var SidebarMobile = React93.forwardRef(
12241
12247
  Button,
12242
12248
  {
12243
12249
  variant: "item",
12244
- size: "lg",
12250
+ size: "md",
12245
12251
  "aria-expanded": isOpen,
12246
12252
  "aria-controls": panelId,
12247
12253
  onClick: () => flip(link.id),
@@ -12372,7 +12378,7 @@ var SidebarMobile = React93.forwardRef(
12372
12378
  "aria-controls": listId,
12373
12379
  onClick: () => flip(section.id),
12374
12380
  className: "px-sm",
12375
- 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: [
12376
12382
  section.label,
12377
12383
  /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
12378
12384
  Icon,
@@ -12396,7 +12402,9 @@ var SidebarMobile = React93.forwardRef(
12396
12402
  )
12397
12403
  ] }, section.id);
12398
12404
  }) }),
12399
- announcement && (announcement.variant === "promo" ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "mt-base", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
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)(
12400
12408
  AnnouncementCard,
12401
12409
  {
12402
12410
  eyebrow: announcement.eyebrow,
@@ -12407,24 +12415,16 @@ var SidebarMobile = React93.forwardRef(
12407
12415
  onClick: announcement.onClick,
12408
12416
  variant: "promo"
12409
12417
  }
12410
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
12411
- "a",
12418
+ ) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
12419
+ AnnouncementCard,
12412
12420
  {
12413
- href: announcement.href ?? "#",
12414
- onClick: (event) => {
12415
- if (announcement.onClick) {
12416
- event.preventDefault();
12417
- announcement.onClick();
12418
- }
12419
- },
12420
- 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",
12421
- children: [
12422
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "text-caption text-muted", children: announcement.eyebrow }),
12423
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "text-body-sm text-ink", children: announcement.title }),
12424
- announcement.subtitle && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "text-caption text-muted", children: announcement.subtitle })
12425
- ]
12421
+ eyebrow: announcement.eyebrow,
12422
+ title: announcement.title,
12423
+ subtitle: announcement.subtitle,
12424
+ href: announcement.href,
12425
+ onClick: announcement.onClick
12426
12426
  }
12427
- ))
12427
+ ) })
12428
12428
  ]
12429
12429
  }
12430
12430
  )
package/dist/index.js CHANGED
@@ -164,7 +164,7 @@ 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 56%, color-mix(in srgb, black 18%, transparent) 66%, color-mix(in srgb, black 62%, transparent) 78%, black 90%)";
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
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
  {
@@ -201,8 +201,10 @@ var AnnouncementCard = React2.forwardRef(
201
201
  "aria-label": subtitle ? `${eyebrow}: ${title} \u2014 ${subtitle}` : `${eyebrow}: ${title}`,
202
202
  className: cn(
203
203
  cardBase,
204
- "items-center gap-md bg-canvas py-base pl-md pr-sm shadow-card",
205
- "hover:-translate-y-px hover:shadow-md active:translate-y-0 motion-reduce:transition-none motion-reduce:hover:translate-y-0",
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: [
@@ -230,8 +232,8 @@ var AnnouncementCard = React2.forwardRef(
230
232
  }
231
233
  ),
232
234
  /* @__PURE__ */ jsxs("span", { className: "relative flex min-w-0 flex-1 flex-col gap-xs", children: [
233
- /* @__PURE__ */ jsx2("span", { className: "truncate text-body-md font-weight-heading-md text-ink", children: title }),
234
- subtitle && /* @__PURE__ */ jsx2("span", { className: "truncate text-caption text-muted", children: subtitle })
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 })
235
237
  ] }),
236
238
  icon && /* @__PURE__ */ jsx2(
237
239
  Icon,
@@ -239,8 +241,7 @@ var AnnouncementCard = React2.forwardRef(
239
241
  name: icon,
240
242
  size: 26,
241
243
  strokeWidth: 2,
242
- tone: "inverse",
243
- className: "relative shrink-0"
244
+ className: "relative shrink-0 text-ink"
244
245
  }
245
246
  )
246
247
  ]
@@ -11685,7 +11686,7 @@ import * as React94 from "react";
11685
11686
  import * as React92 from "react";
11686
11687
  import { jsx as jsx92, jsxs as jsxs84 } from "react/jsx-runtime";
11687
11688
  var cn71 = (...parts) => parts.filter(Boolean).join(" ");
11688
- 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";
11689
11690
  var hasBadge = (badge) => badge !== void 0 && badge !== null && badge !== false;
11690
11691
  var SidebarDesktop = React92.forwardRef(
11691
11692
  ({
@@ -11761,7 +11762,7 @@ var SidebarDesktop = React92.forwardRef(
11761
11762
  onClick: (e) => onNavigate?.(link, e),
11762
11763
  className: cn71(
11763
11764
  linkBase,
11764
- collapsed ? "w-9 justify-center" : cn71("w-full gap-sm px-sm", nested && "pl-xl"),
11765
+ collapsed ? "w-9 justify-center px-0" : cn71("gap-sm", nested && "pl-xl"),
11765
11766
  current ? "bg-surface-strong text-ink font-weight-label" : "text-ink hover:bg-surface-soft active:bg-surface-strong"
11766
11767
  ),
11767
11768
  children: [
@@ -11904,44 +11905,57 @@ var SidebarDesktop = React92.forwardRef(
11904
11905
  /* @__PURE__ */ jsx92(IconButton, { icon: "panel-left", variant: "secondary", "aria-label": "Collapse sidebar", onClick: toggle })
11905
11906
  ] }),
11906
11907
  !workspaceAtBottom && workspaceRow,
11907
- /* @__PURE__ */ jsx92("nav", { "aria-label": "Main", className: cn71("min-h-0 flex-1 overflow-y-auto overscroll-y-contain pb-sm", collapsed ? "px-0" : "px-sm"), children: sections.map((section, i) => {
11908
- const sectionOpen = !section.label || isOpen(section.id);
11909
- const listId = `${baseId}-section-${section.id}`;
11910
- return /* @__PURE__ */ jsxs84("div", { className: i > 0 ? "mt-base" : void 0, children: [
11911
- section.label && !collapsed && /* @__PURE__ */ jsx92(
11912
- Button,
11913
- {
11914
- variant: "item",
11915
- size: "sm",
11916
- "aria-expanded": sectionOpen,
11917
- "aria-controls": listId,
11918
- onClick: () => flip(section.id),
11919
- className: "px-sm",
11920
- children: /* @__PURE__ */ jsxs84("span", { className: "inline-flex items-center gap-xs text-muted", children: [
11921
- section.label,
11922
- /* @__PURE__ */ jsx92(
11923
- Icon,
11924
- {
11925
- name: "chevron-down",
11926
- size: 12,
11927
- className: cn71("transition-transform duration-200 ease-out", !sectionOpen && "-rotate-90")
11928
- }
11929
- )
11930
- ] })
11931
- }
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"
11932
11915
  ),
11933
- /* @__PURE__ */ jsx92(
11934
- "div",
11935
- {
11936
- id: listId,
11937
- "data-state": sectionOpen || collapsed ? "open" : "closed",
11938
- className: "grid transition-[grid-template-rows] duration-200 ease-out data-[state=open]:grid-rows-[1fr] data-[state=closed]:grid-rows-[0fr]",
11939
- children: /* @__PURE__ */ jsx92("ul", { className: "flex min-h-0 flex-col gap-xxs overflow-hidden", children: section.items.map(renderItem) })
11940
- }
11941
- )
11942
- ] }, section.id);
11943
- }) }),
11944
- announcement && !collapsed && /* @__PURE__ */ jsx92("div", { className: "shrink-0 px-sm pb-sm", children: announcement.variant === "promo" ? /* @__PURE__ */ jsx92(
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(
11945
11959
  AnnouncementCard,
11946
11960
  {
11947
11961
  eyebrow: announcement.eyebrow,
@@ -11952,22 +11966,14 @@ var SidebarDesktop = React92.forwardRef(
11952
11966
  onClick: announcement.onClick,
11953
11967
  variant: "promo"
11954
11968
  }
11955
- ) : /* @__PURE__ */ jsxs84(
11956
- "a",
11969
+ ) : /* @__PURE__ */ jsx92(
11970
+ AnnouncementCard,
11957
11971
  {
11958
- href: announcement.href ?? "#",
11959
- onClick: (event) => {
11960
- if (announcement.onClick) {
11961
- event.preventDefault();
11962
- announcement.onClick();
11963
- }
11964
- },
11965
- 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",
11966
- children: [
11967
- /* @__PURE__ */ jsx92("span", { className: "text-caption text-muted", children: announcement.eyebrow }),
11968
- /* @__PURE__ */ jsx92("span", { className: "text-body-sm text-ink", children: announcement.title }),
11969
- announcement.subtitle && /* @__PURE__ */ jsx92("span", { className: "text-caption text-muted", children: announcement.subtitle })
11970
- ]
11972
+ eyebrow: announcement.eyebrow,
11973
+ title: announcement.title,
11974
+ subtitle: announcement.subtitle,
11975
+ href: announcement.href,
11976
+ onClick: announcement.onClick
11971
11977
  }
11972
11978
  ) }),
11973
11979
  workspaceAtBottom && workspaceRow,
@@ -12008,7 +12014,7 @@ SidebarDesktop.displayName = "SidebarDesktop";
12008
12014
  import * as React93 from "react";
12009
12015
  import { jsx as jsx93, jsxs as jsxs85 } from "react/jsx-runtime";
12010
12016
  var cn72 = (...parts) => parts.filter(Boolean).join(" ");
12011
- var linkBase2 = "flex h-9 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";
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";
12012
12018
  var hasBadge2 = (badge) => badge !== void 0 && badge !== null && badge !== false;
12013
12019
  var SidebarMobile = React93.forwardRef(
12014
12020
  ({
@@ -12095,7 +12101,7 @@ var SidebarMobile = React93.forwardRef(
12095
12101
  Button,
12096
12102
  {
12097
12103
  variant: "item",
12098
- size: "lg",
12104
+ size: "md",
12099
12105
  "aria-expanded": isOpen,
12100
12106
  "aria-controls": panelId,
12101
12107
  onClick: () => flip(link.id),
@@ -12226,7 +12232,7 @@ var SidebarMobile = React93.forwardRef(
12226
12232
  "aria-controls": listId,
12227
12233
  onClick: () => flip(section.id),
12228
12234
  className: "px-sm",
12229
- 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: [
12230
12236
  section.label,
12231
12237
  /* @__PURE__ */ jsx93(
12232
12238
  Icon,
@@ -12250,7 +12256,9 @@ var SidebarMobile = React93.forwardRef(
12250
12256
  )
12251
12257
  ] }, section.id);
12252
12258
  }) }),
12253
- announcement && (announcement.variant === "promo" ? /* @__PURE__ */ jsx93("div", { className: "mt-base", children: /* @__PURE__ */ jsx93(
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(
12254
12262
  AnnouncementCard,
12255
12263
  {
12256
12264
  eyebrow: announcement.eyebrow,
@@ -12261,24 +12269,16 @@ var SidebarMobile = React93.forwardRef(
12261
12269
  onClick: announcement.onClick,
12262
12270
  variant: "promo"
12263
12271
  }
12264
- ) }) : /* @__PURE__ */ jsxs85(
12265
- "a",
12272
+ ) : /* @__PURE__ */ jsx93(
12273
+ AnnouncementCard,
12266
12274
  {
12267
- href: announcement.href ?? "#",
12268
- onClick: (event) => {
12269
- if (announcement.onClick) {
12270
- event.preventDefault();
12271
- announcement.onClick();
12272
- }
12273
- },
12274
- 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",
12275
- children: [
12276
- /* @__PURE__ */ jsx93("span", { className: "text-caption text-muted", children: announcement.eyebrow }),
12277
- /* @__PURE__ */ jsx93("span", { className: "text-body-sm text-ink", children: announcement.title }),
12278
- announcement.subtitle && /* @__PURE__ */ jsx93("span", { className: "text-caption text-muted", children: announcement.subtitle })
12279
- ]
12275
+ eyebrow: announcement.eyebrow,
12276
+ title: announcement.title,
12277
+ subtitle: announcement.subtitle,
12278
+ href: announcement.href,
12279
+ onClick: announcement.onClick
12280
12280
  }
12281
- ))
12281
+ ) })
12282
12282
  ]
12283
12283
  }
12284
12284
  )
package/dist/styles.css CHANGED
@@ -1903,6 +1903,12 @@
1903
1903
  .text-ink {
1904
1904
  color: var(--color-ink);
1905
1905
  }
1906
+ .text-ink\/80 {
1907
+ color: color-mix(in srgb, #1B1C22 80%, transparent);
1908
+ @supports (color: color-mix(in lab, red, red)) {
1909
+ color: color-mix(in oklab, var(--color-ink) 80%, transparent);
1910
+ }
1911
+ }
1906
1912
  .text-inverse-ink {
1907
1913
  color: var(--color-inverse-ink);
1908
1914
  }
@@ -2336,14 +2342,6 @@
2336
2342
  border-color: var(--color-semantic-success);
2337
2343
  }
2338
2344
  }
2339
- .hover\:-translate-y-px {
2340
- &:hover {
2341
- @media (hover: hover) {
2342
- --tw-translate-y: -1px;
2343
- translate: var(--tw-translate-x) var(--tw-translate-y);
2344
- }
2345
- }
2346
- }
2347
2345
  .hover\:border-hairline-soft {
2348
2346
  &:hover {
2349
2347
  @media (hover: hover) {
@@ -2541,12 +2539,6 @@
2541
2539
  }
2542
2540
  }
2543
2541
  }
2544
- .active\:translate-y-0 {
2545
- &:active {
2546
- --tw-translate-y: 0;
2547
- translate: var(--tw-translate-x) var(--tw-translate-y);
2548
- }
2549
- }
2550
2542
  .active\:cursor-grabbing {
2551
2543
  &:active {
2552
2544
  cursor: grabbing;
@@ -2896,16 +2888,6 @@
2896
2888
  transition-property: none;
2897
2889
  }
2898
2890
  }
2899
- .motion-reduce\:hover\:translate-y-0 {
2900
- @media (prefers-reduced-motion: reduce) {
2901
- &:hover {
2902
- @media (hover: hover) {
2903
- --tw-translate-y: 0;
2904
- translate: var(--tw-translate-x) var(--tw-translate-y);
2905
- }
2906
- }
2907
- }
2908
- }
2909
2891
  .sm\:left-auto {
2910
2892
  @media (width >= 640px) {
2911
2893
  left: auto;
@@ -3074,6 +3056,14 @@
3074
3056
  background-color: var(--color-ink);
3075
3057
  }
3076
3058
  }
3059
+ .dark\:text-ink\/85 {
3060
+ &:where([data-theme="dark"], [data-theme="dark"] *) {
3061
+ color: color-mix(in srgb, #1B1C22 85%, transparent);
3062
+ @supports (color: color-mix(in lab, red, red)) {
3063
+ color: color-mix(in oklab, var(--color-ink) 85%, transparent);
3064
+ }
3065
+ }
3066
+ }
3077
3067
 
3078
3068
  :root {
3079
3069
  --text-overline-text-transform: uppercase;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-linear-internal-v1-b737",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "description": "Complete design system \"My Project linear-internal-v1\" generated by Atoms Design.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -14,8 +14,8 @@ export interface AnnouncementCardProps {
14
14
  */
15
15
  variant?: "default" | "promo";
16
16
  /**
17
- * Large glyph drawn over the illustration. Promo only. Renders in inverse ink so
18
- * it stays legible on the gradient.
17
+ * Large glyph drawn over the illustration. Promo only. Drawn in ink so it stays
18
+ * legible on the gradient in both themes (near-black on light, white on dark).
19
19
  */
20
20
  icon?: IconName;
21
21
  /** Destination. Used as the fallback when `onClick` is not supplied. */
@@ -35,13 +35,13 @@ const cardBase =
35
35
  "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";
36
36
 
37
37
  /**
38
- * The illustration dissolves toward the copy: fully transparent across the copy
39
- * column, then a long slow ramp. Nothing opaque appears before ~62% of the width, so
40
- * the title and subtitle always read on plain white — on a narrow rail and on a wide
41
- * card alike.
38
+ * The illustration dissolves toward the copy: fully transparent across the whole
39
+ * copy column, then a long slow ramp. Nothing opaque appears before ~64% of the
40
+ * width, so the title and subtitle always read on the plain card surface — on a
41
+ * narrow rail and on a wide card alike.
42
42
  */
43
43
  const LEFT_FADE =
44
- "linear-gradient(to right, transparent 56%, color-mix(in srgb, black 18%, transparent) 66%, color-mix(in srgb, black 62%, transparent) 78%, black 90%)";
44
+ "linear-gradient(to right, transparent 62%, color-mix(in srgb, black 18%, transparent) 72%, color-mix(in srgb, black 62%, transparent) 82%, black 92%)";
45
45
 
46
46
  /**
47
47
  * The warm corner wash — peach at the top-right corner drifting through pink on its
@@ -106,8 +106,10 @@ export const AnnouncementCard = React.forwardRef<HTMLAnchorElement, Announcement
106
106
  aria-label={subtitle ? `${eyebrow}: ${title} — ${subtitle}` : `${eyebrow}: ${title}`}
107
107
  className={cn(
108
108
  cardBase,
109
- "items-center gap-md bg-canvas py-base pl-md pr-sm shadow-card",
110
- "hover:-translate-y-px hover:shadow-md active:translate-y-0 motion-reduce:transition-none motion-reduce:hover:translate-y-0",
109
+ // Flat in the flow: no lift, no shadow escalation, so the card can never
110
+ // ride up over the nav rows above it. Hover is a hairline emphasis only.
111
+ "items-center gap-md bg-canvas py-base pl-md pr-sm",
112
+ "hover:border-hairline-strong",
111
113
  className,
112
114
  )}
113
115
  >
@@ -133,8 +135,12 @@ export const AnnouncementCard = React.forwardRef<HTMLAnchorElement, Announcement
133
135
  </span>
134
136
 
135
137
  <span className="relative flex min-w-0 flex-1 flex-col gap-xs">
136
- <span className="truncate text-body-md font-weight-heading-md text-ink">{title}</span>
137
- {subtitle && <span className="truncate text-caption text-muted">{subtitle}</span>}
138
+ {/* Near-black on the light card, near-white on the dark one — `ink` flips
139
+ with the theme, so no `dark:` override is needed for the title. */}
140
+ <span className="truncate text-body-md font-weight-label text-ink">{title}</span>
141
+ {subtitle && (
142
+ <span className="truncate text-caption text-ink/80 dark:text-ink/85">{subtitle}</span>
143
+ )}
138
144
  </span>
139
145
 
140
146
  {icon && (
@@ -142,8 +148,7 @@ export const AnnouncementCard = React.forwardRef<HTMLAnchorElement, Announcement
142
148
  name={icon}
143
149
  size={26}
144
150
  strokeWidth={2}
145
- tone="inverse"
146
- className="relative shrink-0"
151
+ className="relative shrink-0 text-ink"
147
152
  />
148
153
  )}
149
154
  </a>
@@ -19,15 +19,20 @@ const SECTIONS: SidebarSection[] = [
19
19
  id: "teams",
20
20
  label: "Your teams",
21
21
  items: [
22
- {
23
- id: "engineering",
24
- label: "Engineering",
25
- icon: "monitor",
26
- children: [
27
- { id: "eng-issues", label: "Issues", icon: "copy", badge: "12" },
28
- { id: "eng-projects", label: "Projects", icon: "box" },
29
- ],
30
- },
22
+ { id: "core", label: "My Project core-app", icon: "box" },
23
+ { id: "canva", label: "My Project canva-deepseek", icon: "box" },
24
+ { id: "supabase", label: "My Project supabase-deeps", icon: "box" },
25
+ { id: "cloud", label: "My Project cloud-runtime", icon: "box" },
26
+ { id: "design", label: "My Project design-tokens", icon: "box" },
27
+ ],
28
+ },
29
+ {
30
+ id: "try",
31
+ label: "Try",
32
+ items: [
33
+ { id: "import", label: "Import issues", icon: "copy" },
34
+ { id: "invite", label: "Invite people", icon: "plus" },
35
+ { id: "cycles", label: "Cycles", icon: "circle-dot" },
31
36
  ],
32
37
  },
33
38
  ];
@@ -71,7 +76,7 @@ export default function SidebarPreview() {
71
76
  const [collapsed, setCollapsed] = React.useState(false);
72
77
  const [mobileOpen, setMobileOpen] = React.useState(false);
73
78
  const [active, setActive] = React.useState("my-issues");
74
- const [upgrades, setUpgrades] = React.useState(0);
79
+ const [credits, setCredits] = React.useState(0);
75
80
 
76
81
  const navigate = (link: { id: string }, e: React.MouseEvent<HTMLAnchorElement>) => {
77
82
  e.preventDefault();
@@ -80,7 +85,7 @@ export default function SidebarPreview() {
80
85
 
81
86
  const shared = {
82
87
  sections: SECTIONS,
83
- defaultExpanded: ["teams", "engineering"],
88
+ defaultExpanded: ["teams", "try"],
84
89
  activeId: active,
85
90
  onNavigate: navigate,
86
91
  workspaceName: "Northwind Studio",
@@ -93,26 +98,26 @@ export default function SidebarPreview() {
93
98
  };
94
99
 
95
100
  const promoAnnouncement = {
96
- eyebrow: "Plan",
97
- title: "Upgrade to Pro",
98
- subtitle: "Unlock more features",
101
+ eyebrow: "Credits",
102
+ title: "Add credits",
103
+ subtitle: "Top up when you run low",
99
104
  variant: "promo" as const,
100
- icon: "crown" as const,
101
- href: "#upgrade",
102
- onClick: () => setUpgrades((n) => n + 1),
105
+ icon: "zap" as const,
106
+ href: "#credits",
107
+ onClick: () => setCredits((n) => n + 1),
103
108
  };
104
109
 
105
110
  return (
106
111
  <div className="mx-auto w-full max-w-4xl space-y-md p-md">
107
112
  <p className="text-caption text-muted">
108
- The workspace switcher opens a menu when `workspaceMenuItems` is supplied — click a switcher to try it.
109
- The pro card below is the new promo announcement; clicking it increments the counter instead of navigating.
113
+ The nav is the only scrolling region: its last row ends at the hairline above the promo card, so no
114
+ project row can slide under the card. Rows are 32px tall so a longer project list still fits above it.
110
115
  </p>
111
116
 
112
117
  <div className="grid w-full gap-md md:grid-cols-2">
113
118
  <div className="w-full">
114
- <p className="mb-xs text-caption text-muted">Default announcement — unchanged</p>
115
- <div className="w-full overflow-hidden rounded-lg border border-hairline" style={{ height: "16rem" }}>
119
+ <p className="mb-xs text-caption text-muted">Default announcement card in flow</p>
120
+ <div className="w-full overflow-hidden rounded-lg border border-hairline" style={{ height: "24rem" }}>
116
121
  <Sidebar
117
122
  {...shared}
118
123
  {...menu}
@@ -124,27 +129,28 @@ export default function SidebarPreview() {
124
129
  >
125
130
  <div className="p-md">
126
131
  <h3 className="text-heading-sm text-ink">Issues</h3>
127
- <p className="mt-xs text-body-sm text-muted">Fold the rail with the panel button to try the avatar trigger.</p>
132
+ <p className="mt-xs text-body-sm text-muted">
133
+ Fold the rail with the panel button to try the avatar trigger.
134
+ </p>
128
135
  </div>
129
136
  </Sidebar>
130
137
  </div>
131
138
  </div>
132
139
 
133
140
  <div className="w-full">
134
- <p className="mb-xs text-caption text-muted">Promo announcement — upgrade card ({upgrades} clicks)</p>
135
- <div className="w-full overflow-hidden rounded-lg border border-hairline" style={{ height: "16rem" }}>
141
+ <p className="mb-xs text-caption text-muted">Promo card — "{credits}" opened {credits} time(s)</p>
142
+ <div className="w-full overflow-hidden rounded-lg border border-hairline" style={{ height: "24rem" }}>
136
143
  <Sidebar
137
144
  {...shared}
138
145
  {...menu}
139
146
  headerActions={HEADER_ACTIONS}
140
147
  announcement={promoAnnouncement}
141
148
  onSettingsClick={() => {}}
142
- workspacePlacement="bottom"
143
149
  >
144
150
  <div className="p-md">
145
151
  <h3 className="text-heading-sm text-ink">Issues</h3>
146
152
  <p className="mt-xs text-body-sm text-muted">
147
- The promo card sits above the bottom workspace row and opens its menu upward.
153
+ Title, subtitle and the glyph all use ink — near-black here, near-white in dark mode.
148
154
  </p>
149
155
  </div>
150
156
  </Sidebar>
@@ -155,7 +161,7 @@ export default function SidebarPreview() {
155
161
  <div className="grid w-full gap-md md:grid-cols-2">
156
162
  <div className="w-full">
157
163
  <p className="mb-xs text-caption text-muted">Folded rail — announcement hidden as before</p>
158
- <div className="w-full overflow-hidden rounded-lg border border-hairline" style={{ height: "12rem" }}>
164
+ <div className="w-full overflow-hidden rounded-lg border border-hairline" style={{ height: "14rem" }}>
159
165
  <Sidebar
160
166
  {...shared}
161
167
  {...menu}
@@ -179,7 +185,7 @@ export default function SidebarPreview() {
179
185
  >
180
186
  <SidebarMobile
181
187
  sections={SECTIONS}
182
- defaultExpanded={["teams", "engineering"]}
188
+ defaultExpanded={["teams", "try"]}
183
189
  activeId={active}
184
190
  onNavigate={navigate}
185
191
  workspaceName="Northwind Studio"
@@ -79,7 +79,7 @@ export interface SidebarDesktopProps extends React.HTMLAttributes<HTMLDivElement
79
79
  onNavigate?: (link: SidebarDesktopLink, event: React.MouseEvent<HTMLAnchorElement>) => void;
80
80
  /** ids of groups and sections open on first render. Sections default to open. */
81
81
  defaultExpanded?: string[];
82
- /** Small "What's new" (or promo) card above the footer. */
82
+ /** Small "What's new" (or promo) card above the footer, in normal flow under the nav. */
83
83
  announcement?: SidebarDesktopAnnouncement;
84
84
  userName?: string;
85
85
  userAvatarSrc?: string;
@@ -109,8 +109,13 @@ export interface SidebarDesktopProps extends React.HTMLAttributes<HTMLDivElement
109
109
  const cn = (...parts: Array<string | false | null | undefined>) =>
110
110
  parts.filter(Boolean).join(" ");
111
111
 
112
+ /**
113
+ * Dense nav row: 32px tall, 16px glyph, 14px label, 8px horizontal inset and only
114
+ * 2px of breathing room between rows — so a long project list fits, and the list
115
+ * visibly ends above the announcement card instead of running under it.
116
+ */
112
117
  const linkBase =
113
- "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";
118
+ "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";
114
119
 
115
120
  const hasBadge = (badge: React.ReactNode) => badge !== undefined && badge !== null && badge !== false;
116
121
 
@@ -202,7 +207,7 @@ export const SidebarDesktop = React.forwardRef<HTMLDivElement, SidebarDesktopPro
202
207
  onClick={(e) => onNavigate?.(link, e)}
203
208
  className={cn(
204
209
  linkBase,
205
- collapsed ? "w-9 justify-center" : cn("w-full gap-sm px-sm", nested && "pl-xl"),
210
+ collapsed ? "w-9 justify-center px-0" : cn("gap-sm", nested && "pl-xl"),
206
211
  current
207
212
  ? "bg-surface-strong text-ink font-weight-label"
208
213
  : "text-ink hover:bg-surface-soft active:bg-surface-strong",
@@ -388,8 +393,16 @@ export const SidebarDesktop = React.forwardRef<HTMLDivElement, SidebarDesktopPro
388
393
  {!workspaceAtBottom && workspaceRow}
389
394
 
390
395
  {/* Vertical-only containment: a horizontal two-finger swipe over the nav
391
- still reaches the browser's back/forward gesture. */}
392
- <nav aria-label="Main" className={cn("min-h-0 flex-1 overflow-y-auto overscroll-y-contain pb-sm", collapsed ? "px-0" : "px-sm")}>
396
+ still reaches the browser's back/forward gesture. This is the ONLY
397
+ scrolling region — the announcement card below it is a sibling, so the
398
+ list stops at the card's top edge instead of bleeding under it. */}
399
+ <nav
400
+ aria-label="Main"
401
+ className={cn(
402
+ "min-h-0 flex-1 overflow-y-auto overscroll-y-contain pb-sm",
403
+ collapsed ? "px-0" : "px-sm",
404
+ )}
405
+ >
393
406
  {sections.map((section, i) => {
394
407
  const sectionOpen = !section.label || isOpen(section.id);
395
408
  const listId = `${baseId}-section-${section.id}`;
@@ -404,7 +417,7 @@ export const SidebarDesktop = React.forwardRef<HTMLDivElement, SidebarDesktopPro
404
417
  onClick={() => flip(section.id)}
405
418
  className="px-sm"
406
419
  >
407
- <span className="inline-flex items-center gap-xs text-muted">
420
+ <span className="inline-flex items-center gap-xs text-caption text-muted">
408
421
  {section.label}
409
422
  <Icon
410
423
  name="chevron-down"
@@ -429,7 +442,10 @@ export const SidebarDesktop = React.forwardRef<HTMLDivElement, SidebarDesktopPro
429
442
  </nav>
430
443
 
431
444
  {announcement && !collapsed && (
432
- <div className="shrink-0 px-sm pb-sm">
445
+ /* Normal flow, after the scroll area: a 12px gap plus a hairline divider
446
+ separate the last nav row from the card. No negative margin, no
447
+ absolute placement, no lift — nothing can paint over a row. */
448
+ <div className="shrink-0 border-t border-hairline px-sm pb-sm pt-md">
433
449
  {announcement.variant === "promo" ? (
434
450
  <AnnouncementCard
435
451
  eyebrow={announcement.eyebrow}
@@ -441,22 +457,13 @@ export const SidebarDesktop = React.forwardRef<HTMLDivElement, SidebarDesktopPro
441
457
  variant="promo"
442
458
  />
443
459
  ) : (
444
- <a
445
- href={announcement.href ?? "#"}
446
- onClick={(event) => {
447
- if (announcement.onClick) {
448
- event.preventDefault();
449
- announcement.onClick();
450
- }
451
- }}
452
- 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"
453
- >
454
- <span className="text-caption text-muted">{announcement.eyebrow}</span>
455
- <span className="text-body-sm text-ink">{announcement.title}</span>
456
- {announcement.subtitle && (
457
- <span className="text-caption text-muted">{announcement.subtitle}</span>
458
- )}
459
- </a>
460
+ <AnnouncementCard
461
+ eyebrow={announcement.eyebrow}
462
+ title={announcement.title}
463
+ subtitle={announcement.subtitle}
464
+ href={announcement.href}
465
+ onClick={announcement.onClick}
466
+ />
460
467
  )}
461
468
  </div>
462
469
  )}
@@ -17,25 +17,10 @@ const SECTIONS: SidebarDesktopSection[] = [
17
17
  id: "teams",
18
18
  label: "Your teams",
19
19
  items: [
20
- {
21
- id: "engineering",
22
- label: "Engineering Team",
23
- icon: "monitor",
24
- children: [
25
- { id: "eng-issues", label: "Issues", icon: "copy", badge: "12" },
26
- { id: "eng-projects", label: "Projects", icon: "box" },
27
- ],
28
- },
29
- {
30
- id: "workspace-team",
31
- label: "AS Mobbin",
32
- icon: "globe",
33
- children: [
34
- { id: "issues", label: "Issues", icon: "copy" },
35
- { id: "projects", label: "Projects", icon: "box" },
36
- { id: "views", label: "Views", icon: "layers" },
37
- ],
38
- },
20
+ { id: "engineering", label: "Engineering Team", icon: "monitor" },
21
+ { id: "canva", label: "My Project canva-deepseek", icon: "box" },
22
+ { id: "supabase", label: "My Project supabase-deeps", icon: "box" },
23
+ { id: "workspace-team", label: "My Project core-app", icon: "globe" },
39
24
  ],
40
25
  },
41
26
  {
@@ -72,15 +57,15 @@ const HEADER_ACTIONS = (
72
57
 
73
58
  export default function SidebarDesktopPreview() {
74
59
  const [collapsed, setCollapsed] = React.useState(false);
75
- const [active, setActive] = React.useState("issues");
76
- const [clicks, setClicks] = React.useState({ help: 0, settings: 0 });
60
+ const [active, setActive] = React.useState("canva");
61
+ const [credits, setCredits] = React.useState(0);
77
62
 
78
63
  return (
79
64
  <div className="mx-auto w-full max-w-5xl space-y-lg p-lg">
80
65
  <div className="w-full overflow-hidden rounded-lg border border-hairline" style={{ height: "26rem" }}>
81
66
  <SidebarDesktop
82
67
  sections={SECTIONS}
83
- defaultExpanded={["teams", "try", "workspace-team"]}
68
+ defaultExpanded={["teams", "try"]}
84
69
  activeId={active}
85
70
  onNavigate={(link, e) => {
86
71
  e.preventDefault();
@@ -89,20 +74,26 @@ export default function SidebarDesktopPreview() {
89
74
  workspaceName="AS Mobbin"
90
75
  userName="AS Mobbin"
91
76
  headerActions={HEADER_ACTIONS}
92
- onHelpClick={() => setClicks((c) => ({ ...c, help: c.help + 1 }))}
93
- onSettingsClick={() => setClicks((c) => ({ ...c, settings: c.settings + 1 }))}
77
+ onSettingsClick={() => setCredits((n) => n + 1)}
78
+ announcement={{
79
+ eyebrow: "Credits",
80
+ title: "Add credits",
81
+ subtitle: "Top up when you run low",
82
+ icon: "zap",
83
+ variant: "promo",
84
+ href: "#credits",
85
+ onClick: () => setCredits((n) => n + 1),
86
+ }}
94
87
  collapsed={collapsed}
95
88
  onCollapsedChange={setCollapsed}
96
89
  >
97
90
  <div className="p-lg">
98
91
  <h1 className="text-heading-sm text-ink">Issues</h1>
99
92
  <p className="mt-xs text-body-sm text-muted">
100
- Counts sit at the end of each row; search and compose sit beside the workspace switcher and fold
101
- away with the rail.
102
- </p>
103
- <p className="mt-sm text-body-sm text-muted">
104
- Footer buttons clicked: help {clicks.help}, settings {clicks.settings}.
93
+ The nav is the only scrolling region — its last row stops at the divider above the promo card,
94
+ so nothing slides under the card.
105
95
  </p>
96
+ <p className="mt-sm text-body-sm text-muted">Promo opened: {credits}</p>
106
97
  </div>
107
98
  </SidebarDesktop>
108
99
  </div>
@@ -114,7 +105,8 @@ export default function SidebarDesktopPreview() {
114
105
  defaultExpanded={["main"]}
115
106
  activeId="inbox"
116
107
  userName="AS Mobbin"
117
- onSettingsClick={() => setClicks((c) => ({ ...c, settings: c.settings + 1 }))}
108
+ onSettingsClick={() => setCredits((n) => n + 1)}
109
+ announcement={{ eyebrow: "What's new", title: "Projects are now shareable", href: "#new" }}
118
110
  />
119
111
  </div>
120
112
  <div className="w-full overflow-hidden rounded-lg border border-hairline" style={{ height: "20rem" }}>
@@ -128,8 +120,8 @@ export default function SidebarDesktopPreview() {
128
120
  </div>
129
121
  </div>
130
122
  <p className="text-body-sm text-muted">
131
- Left: settings handler only, so no help button. Right: showFooter=false drops the row for apps that keep
132
- those actions in the nav and account menu.
123
+ Left: plain "what's new" card in flow plus a settings handler. Right: showFooter=false drops the row for
124
+ apps that keep those actions in the nav and account menu.
133
125
  </p>
134
126
 
135
127
  <div className="w-full overflow-hidden rounded-lg border border-hairline" style={{ height: "22rem" }}>
@@ -81,7 +81,7 @@ export interface SidebarMobileProps extends React.HTMLAttributes<HTMLDivElement>
81
81
  onNavigate?: (link: SidebarMobileLink, event: React.MouseEvent<HTMLAnchorElement>) => void;
82
82
  /** ids of groups and sections open on first render. Sections default to open. */
83
83
  defaultExpanded?: string[];
84
- /** Small "What's new" (or promo) card under the nav. */
84
+ /** Small "What's new" (or promo) card in flow under the nav. */
85
85
  announcement?: SidebarMobileAnnouncement;
86
86
  userName?: string;
87
87
  userAvatarSrc?: string;
@@ -111,8 +111,9 @@ export interface SidebarMobileProps extends React.HTMLAttributes<HTMLDivElement>
111
111
  const cn = (...parts: Array<string | false | null | undefined>) =>
112
112
  parts.filter(Boolean).join(" ");
113
113
 
114
+ /** Dense nav row, matched to the desktop rail: 32px tall, 16px glyph, 14px label. */
114
115
  const linkBase =
115
- "flex h-9 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";
116
+ "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";
116
117
 
117
118
  const hasBadge = (badge: React.ReactNode) => badge !== undefined && badge !== null && badge !== false;
118
119
 
@@ -215,7 +216,7 @@ export const SidebarMobile = React.forwardRef<HTMLDivElement, SidebarMobileProps
215
216
  <li key={link.id}>
216
217
  <Button
217
218
  variant="item"
218
- size="lg"
219
+ size="md"
219
220
  aria-expanded={isOpen}
220
221
  aria-controls={panelId}
221
222
  onClick={() => flip(link.id)}
@@ -364,7 +365,7 @@ export const SidebarMobile = React.forwardRef<HTMLDivElement, SidebarMobileProps
364
365
  onClick={() => flip(section.id)}
365
366
  className="px-sm"
366
367
  >
367
- <span className="inline-flex items-center gap-xs text-muted">
368
+ <span className="inline-flex items-center gap-xs text-caption text-muted">
368
369
  {section.label}
369
370
  <Icon
370
371
  name="chevron-down"
@@ -387,9 +388,11 @@ export const SidebarMobile = React.forwardRef<HTMLDivElement, SidebarMobileProps
387
388
  );
388
389
  })}
389
390
  </nav>
390
- {announcement &&
391
- (announcement.variant === "promo" ? (
392
- <div className="mt-base">
391
+ {announcement && (
392
+ /* In flow under the nav: 12px gap plus a hairline divider, so no row can
393
+ sit behind the card's top edge. */
394
+ <div className="mt-md border-t border-hairline pt-md">
395
+ {announcement.variant === "promo" ? (
393
396
  <AnnouncementCard
394
397
  eyebrow={announcement.eyebrow}
395
398
  title={announcement.title}
@@ -399,25 +402,17 @@ export const SidebarMobile = React.forwardRef<HTMLDivElement, SidebarMobileProps
399
402
  onClick={announcement.onClick}
400
403
  variant="promo"
401
404
  />
402
- </div>
403
- ) : (
404
- <a
405
- href={announcement.href ?? "#"}
406
- onClick={(event) => {
407
- if (announcement.onClick) {
408
- event.preventDefault();
409
- announcement.onClick();
410
- }
411
- }}
412
- 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"
413
- >
414
- <span className="text-caption text-muted">{announcement.eyebrow}</span>
415
- <span className="text-body-sm text-ink">{announcement.title}</span>
416
- {announcement.subtitle && (
417
- <span className="text-caption text-muted">{announcement.subtitle}</span>
418
- )}
419
- </a>
420
- ))}
405
+ ) : (
406
+ <AnnouncementCard
407
+ eyebrow={announcement.eyebrow}
408
+ title={announcement.title}
409
+ subtitle={announcement.subtitle}
410
+ href={announcement.href}
411
+ onClick={announcement.onClick}
412
+ />
413
+ )}
414
+ </div>
415
+ )}
421
416
  </Drawer>
422
417
  </div>
423
418
  );