@designa8/vibedesign-linear-internal-v1-b737 0.14.1 → 0.14.3

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.3**.
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
  ]
@@ -8839,20 +8840,7 @@ var import_jsx_runtime70 = require("react/jsx-runtime");
8839
8840
  var GRID = 9;
8840
8841
  var SWEEP_MS = 2400;
8841
8842
  var STEP_MS = 35;
8842
- var SPARKLES = [
8843
- { top: "0%", left: "14%", size: 10, delay: "0ms" },
8844
- { top: "2%", left: "46%", size: 8, delay: "150ms" },
8845
- { top: "1%", left: "78%", size: 9, delay: "75ms" },
8846
- { top: "30%", left: "0%", size: 7, delay: "300ms" },
8847
- { top: "58%", left: "97%", size: 8, delay: "125ms" },
8848
- { top: "96%", left: "20%", size: 8, delay: "225ms" },
8849
- { top: "93%", left: "62%", size: 10, delay: "375ms" }
8850
- ];
8851
8843
  var KEYFRAMES = `
8852
- @keyframes dsl-twinkle {
8853
- 0%, 100% { opacity: 0.2; transform: scale(0.85); }
8854
- 50% { opacity: 0.9; transform: scale(1.1); }
8855
- }
8856
8844
  @keyframes dsl-cell {
8857
8845
  0% { background-color: var(--color-primary); border-color: transparent; border-style: solid; opacity: 1; }
8858
8846
  8% { background-color: var(--color-primary); border-color: transparent; border-style: solid; opacity: 0.8; }
@@ -8887,45 +8875,29 @@ var DesignSystemLoader = React70.forwardRef(
8887
8875
  ...rest,
8888
8876
  children: [
8889
8877
  /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("style", { children: KEYFRAMES }),
8890
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "relative mx-auto w-full max-w-drawer", children: [
8891
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "pointer-events-none absolute -inset-md", "aria-hidden": "true", children: SPARKLES.map((sparkle) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
8892
- Icon,
8893
- {
8894
- name: "sparkles",
8895
- size: sparkle.size,
8896
- className: "dsl-animate absolute text-primary opacity-30",
8897
- style: {
8898
- top: sparkle.top,
8899
- left: sparkle.left,
8900
- animation: `dsl-twinkle 1.6s ease-in-out ${sparkle.delay} infinite`
8901
- }
8902
- },
8903
- `${sparkle.top}-${sparkle.left}`
8904
- )) }),
8905
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
8906
- "div",
8907
- {
8908
- className: "relative grid gap-xxs",
8909
- "aria-hidden": "true",
8910
- style: { gridTemplateColumns: `repeat(${GRID}, minmax(0, 1fr))` },
8911
- children: Array.from({ length: GRID * GRID }, (_, index) => {
8912
- const row = Math.floor(index / GRID);
8913
- const col = index % GRID;
8914
- const diagonal = row + (GRID - 1 - col);
8915
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
8916
- "span",
8917
- {
8918
- className: "dsl-animate aspect-square rounded-xs border-2 border-transparent bg-primary",
8919
- style: {
8920
- animation: `dsl-cell ${SWEEP_MS}ms ease-in-out ${diagonal * STEP_MS}ms infinite both`
8921
- }
8922
- },
8923
- index
8924
- );
8925
- })
8926
- }
8927
- )
8928
- ] }),
8878
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "relative mx-auto w-full max-w-drawer", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
8879
+ "div",
8880
+ {
8881
+ className: "relative grid gap-xxs",
8882
+ "aria-hidden": "true",
8883
+ style: { gridTemplateColumns: `repeat(${GRID}, minmax(0, 1fr))` },
8884
+ children: Array.from({ length: GRID * GRID }, (_, index) => {
8885
+ const row = Math.floor(index / GRID);
8886
+ const col = index % GRID;
8887
+ const diagonal = row + (GRID - 1 - col);
8888
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
8889
+ "span",
8890
+ {
8891
+ className: "dsl-animate aspect-square rounded-xs border-2 border-transparent bg-primary",
8892
+ style: {
8893
+ animation: `dsl-cell ${SWEEP_MS}ms ease-in-out ${diagonal * STEP_MS}ms infinite both`
8894
+ }
8895
+ },
8896
+ index
8897
+ );
8898
+ })
8899
+ }
8900
+ ) }),
8929
8901
  /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "mx-auto flex w-full max-w-drawer flex-col items-center gap-xs", children: [
8930
8902
  /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "text-heading-sm text-ink", children: label }),
8931
8903
  /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "text-body-sm text-muted", children: sublabel })
@@ -11831,7 +11803,7 @@ var React94 = __toESM(require("react"));
11831
11803
  var React92 = __toESM(require("react"));
11832
11804
  var import_jsx_runtime92 = require("react/jsx-runtime");
11833
11805
  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";
11806
+ 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
11807
  var hasBadge = (badge) => badge !== void 0 && badge !== null && badge !== false;
11836
11808
  var SidebarDesktop = React92.forwardRef(
11837
11809
  ({
@@ -11907,7 +11879,7 @@ var SidebarDesktop = React92.forwardRef(
11907
11879
  onClick: (e) => onNavigate?.(link, e),
11908
11880
  className: cn71(
11909
11881
  linkBase,
11910
- collapsed ? "w-9 justify-center" : cn71("w-full gap-sm px-sm", nested && "pl-xl"),
11882
+ collapsed ? "w-9 justify-center px-0" : cn71("gap-sm", nested && "pl-xl"),
11911
11883
  current ? "bg-surface-strong text-ink font-weight-label" : "text-ink hover:bg-surface-soft active:bg-surface-strong"
11912
11884
  ),
11913
11885
  children: [
@@ -12050,44 +12022,57 @@ var SidebarDesktop = React92.forwardRef(
12050
12022
  /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(IconButton, { icon: "panel-left", variant: "secondary", "aria-label": "Collapse sidebar", onClick: toggle })
12051
12023
  ] }),
12052
12024
  !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
- }
12025
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
12026
+ "nav",
12027
+ {
12028
+ "aria-label": "Main",
12029
+ className: cn71(
12030
+ "min-h-0 flex-1 overflow-y-auto overscroll-y-contain pb-sm",
12031
+ collapsed ? "px-0" : "px-sm"
12078
12032
  ),
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)(
12033
+ children: sections.map((section, i) => {
12034
+ const sectionOpen = !section.label || isOpen(section.id);
12035
+ const listId = `${baseId}-section-${section.id}`;
12036
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: i > 0 ? "mt-base" : void 0, children: [
12037
+ section.label && !collapsed && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
12038
+ Button,
12039
+ {
12040
+ variant: "item",
12041
+ size: "sm",
12042
+ "aria-expanded": sectionOpen,
12043
+ "aria-controls": listId,
12044
+ onClick: () => flip(section.id),
12045
+ className: "px-sm",
12046
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("span", { className: "inline-flex items-center gap-xs text-caption text-muted", children: [
12047
+ section.label,
12048
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
12049
+ Icon,
12050
+ {
12051
+ name: "chevron-down",
12052
+ size: 12,
12053
+ className: cn71("transition-transform duration-200 ease-out", !sectionOpen && "-rotate-90")
12054
+ }
12055
+ )
12056
+ ] })
12057
+ }
12058
+ ),
12059
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
12060
+ "div",
12061
+ {
12062
+ id: listId,
12063
+ "data-state": sectionOpen || collapsed ? "open" : "closed",
12064
+ className: "grid transition-[grid-template-rows] duration-200 ease-out data-[state=open]:grid-rows-[1fr] data-[state=closed]:grid-rows-[0fr]",
12065
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("ul", { className: "flex min-h-0 flex-col gap-xxs overflow-hidden", children: section.items.map(renderItem) })
12066
+ }
12067
+ )
12068
+ ] }, section.id);
12069
+ })
12070
+ }
12071
+ ),
12072
+ announcement && !collapsed && /* Normal flow, after the scroll area: a 12px gap plus a hairline divider
12073
+ separate the last nav row from the card. No negative margin, no
12074
+ absolute placement, no lift — nothing can paint over a row. */
12075
+ /* @__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
12076
  AnnouncementCard,
12092
12077
  {
12093
12078
  eyebrow: announcement.eyebrow,
@@ -12098,22 +12083,14 @@ var SidebarDesktop = React92.forwardRef(
12098
12083
  onClick: announcement.onClick,
12099
12084
  variant: "promo"
12100
12085
  }
12101
- ) : /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
12102
- "a",
12086
+ ) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
12087
+ AnnouncementCard,
12103
12088
  {
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
- ]
12089
+ eyebrow: announcement.eyebrow,
12090
+ title: announcement.title,
12091
+ subtitle: announcement.subtitle,
12092
+ href: announcement.href,
12093
+ onClick: announcement.onClick
12117
12094
  }
12118
12095
  ) }),
12119
12096
  workspaceAtBottom && workspaceRow,
@@ -12154,7 +12131,7 @@ SidebarDesktop.displayName = "SidebarDesktop";
12154
12131
  var React93 = __toESM(require("react"));
12155
12132
  var import_jsx_runtime93 = require("react/jsx-runtime");
12156
12133
  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";
12134
+ 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
12135
  var hasBadge2 = (badge) => badge !== void 0 && badge !== null && badge !== false;
12159
12136
  var SidebarMobile = React93.forwardRef(
12160
12137
  ({
@@ -12241,7 +12218,7 @@ var SidebarMobile = React93.forwardRef(
12241
12218
  Button,
12242
12219
  {
12243
12220
  variant: "item",
12244
- size: "lg",
12221
+ size: "md",
12245
12222
  "aria-expanded": isOpen,
12246
12223
  "aria-controls": panelId,
12247
12224
  onClick: () => flip(link.id),
@@ -12372,7 +12349,7 @@ var SidebarMobile = React93.forwardRef(
12372
12349
  "aria-controls": listId,
12373
12350
  onClick: () => flip(section.id),
12374
12351
  className: "px-sm",
12375
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("span", { className: "inline-flex items-center gap-xs text-muted", children: [
12352
+ children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("span", { className: "inline-flex items-center gap-xs text-caption text-muted", children: [
12376
12353
  section.label,
12377
12354
  /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
12378
12355
  Icon,
@@ -12396,7 +12373,9 @@ var SidebarMobile = React93.forwardRef(
12396
12373
  )
12397
12374
  ] }, section.id);
12398
12375
  }) }),
12399
- announcement && (announcement.variant === "promo" ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "mt-base", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
12376
+ announcement && /* In flow under the nav: 12px gap plus a hairline divider, so no row can
12377
+ sit behind the card's top edge. */
12378
+ /* @__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
12379
  AnnouncementCard,
12401
12380
  {
12402
12381
  eyebrow: announcement.eyebrow,
@@ -12407,24 +12386,16 @@ var SidebarMobile = React93.forwardRef(
12407
12386
  onClick: announcement.onClick,
12408
12387
  variant: "promo"
12409
12388
  }
12410
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
12411
- "a",
12389
+ ) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
12390
+ AnnouncementCard,
12412
12391
  {
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
- ]
12392
+ eyebrow: announcement.eyebrow,
12393
+ title: announcement.title,
12394
+ subtitle: announcement.subtitle,
12395
+ href: announcement.href,
12396
+ onClick: announcement.onClick
12426
12397
  }
12427
- ))
12398
+ ) })
12428
12399
  ]
12429
12400
  }
12430
12401
  )