@designa8/vibedesign-v6 1.12.13 → 1.12.15

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
  # @plasma/vibedesign-v6
2
2
 
3
- Generated design system, version **1.12.13**.
3
+ Generated design system, version **1.12.15**.
4
4
 
5
5
  ## Local install (npm link)
6
6
 
package/dist/index.cjs CHANGED
@@ -1982,7 +1982,7 @@ var MobileTopBar = ({
1982
1982
  className: "w-full flex flex-shrink-0 items-center px-sm gap-sm border-b border-hairline-soft bg-canvas",
1983
1983
  style: { height: MOBILE_TOPBAR_HEIGHT },
1984
1984
  children: activePanel === "chat" ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
1985
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1985
+ !hideProjectName && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1986
1986
  AvatarNav,
1987
1987
  {
1988
1988
  initials: avatarInitials,
@@ -2187,7 +2187,7 @@ var AppLayout = import_react7.default.forwardRef(
2187
2187
  pointerEvents: chatCollapsed ? "none" : "auto"
2188
2188
  },
2189
2189
  children: [
2190
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2190
+ !hideProjectName && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2191
2191
  AvatarNav,
2192
2192
  {
2193
2193
  initials: avatarInitials,
@@ -2396,12 +2396,15 @@ var TrashIcon = () => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2396
2396
  ]
2397
2397
  }
2398
2398
  );
2399
- var SubItemRow = ({ item }) => {
2399
+ var SubItemRow = ({ item, isActive = false }) => {
2400
2400
  const [hovered, setHovered] = import_react8.default.useState(false);
2401
2401
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2402
2402
  "li",
2403
2403
  {
2404
- className: "list-none flex items-center gap-xs",
2404
+ className: [
2405
+ "list-none flex items-center gap-xs rounded-sm",
2406
+ isActive ? "bg-primary-disabled" : ""
2407
+ ].filter(Boolean).join(" "),
2405
2408
  onMouseEnter: () => setHovered(true),
2406
2409
  onMouseLeave: () => setHovered(false),
2407
2410
  children: [
@@ -2410,11 +2413,25 @@ var SubItemRow = ({ item }) => {
2410
2413
  {
2411
2414
  variant: "ghost",
2412
2415
  size: "sm",
2413
- className: "!flex-1 !justify-start !px-sm !py-xxs !text-body-sm !text-body !rounded-sm !cursor-pointer hover:!text-ink",
2416
+ "aria-current": isActive ? "page" : void 0,
2417
+ className: [
2418
+ "!flex-1 !justify-start !px-sm !py-xxs !text-body-sm !rounded-sm !cursor-pointer",
2419
+ isActive ? "!text-primary" : "!text-body hover:!text-ink"
2420
+ ].join(" "),
2414
2421
  onClick: () => item.onClick(item.id),
2415
2422
  children: item.label
2416
2423
  }
2417
- ) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "flex-1 truncate px-sm py-xxs text-body-sm text-body rounded-sm cursor-default select-none", children: item.label }),
2424
+ ) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2425
+ "span",
2426
+ {
2427
+ "aria-current": isActive ? "page" : void 0,
2428
+ className: [
2429
+ "flex-1 truncate px-sm py-xxs text-body-sm rounded-sm cursor-default select-none",
2430
+ isActive ? "text-primary" : "text-body"
2431
+ ].join(" "),
2432
+ children: item.label
2433
+ }
2434
+ ),
2418
2435
  item.onDelete && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2419
2436
  Button,
2420
2437
  {
@@ -2450,6 +2467,7 @@ var NavItem = import_react8.default.forwardRef(
2450
2467
  onExpandToggle,
2451
2468
  iconOnly = false,
2452
2469
  onClick,
2470
+ activeSubId,
2453
2471
  className,
2454
2472
  ...rest
2455
2473
  }, ref) => {
@@ -2591,7 +2609,14 @@ var NavItem = import_react8.default.forwardRef(
2591
2609
  {
2592
2610
  className: "ml-lg pl-sm border-l border-hairline-soft space-y-xxs",
2593
2611
  role: "list",
2594
- children: subItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SubItemRow, { item }, item.id))
2612
+ children: subItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2613
+ SubItemRow,
2614
+ {
2615
+ item,
2616
+ isActive: activeSubId !== void 0 && item.id === activeSubId
2617
+ },
2618
+ item.id
2619
+ ))
2595
2620
  }
2596
2621
  ),
2597
2622
  hasChildren && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
package/dist/index.js CHANGED
@@ -1929,7 +1929,7 @@ var MobileTopBar = ({
1929
1929
  className: "w-full flex flex-shrink-0 items-center px-sm gap-sm border-b border-hairline-soft bg-canvas",
1930
1930
  style: { height: MOBILE_TOPBAR_HEIGHT },
1931
1931
  children: activePanel === "chat" ? /* @__PURE__ */ jsxs7(Fragment, { children: [
1932
- /* @__PURE__ */ jsx7(
1932
+ !hideProjectName && /* @__PURE__ */ jsx7(
1933
1933
  AvatarNav,
1934
1934
  {
1935
1935
  initials: avatarInitials,
@@ -2134,7 +2134,7 @@ var AppLayout = React7.forwardRef(
2134
2134
  pointerEvents: chatCollapsed ? "none" : "auto"
2135
2135
  },
2136
2136
  children: [
2137
- /* @__PURE__ */ jsx7(
2137
+ !hideProjectName && /* @__PURE__ */ jsx7(
2138
2138
  AvatarNav,
2139
2139
  {
2140
2140
  initials: avatarInitials,
@@ -2343,12 +2343,15 @@ var TrashIcon = () => /* @__PURE__ */ jsxs8(
2343
2343
  ]
2344
2344
  }
2345
2345
  );
2346
- var SubItemRow = ({ item }) => {
2346
+ var SubItemRow = ({ item, isActive = false }) => {
2347
2347
  const [hovered, setHovered] = React8.useState(false);
2348
2348
  return /* @__PURE__ */ jsxs8(
2349
2349
  "li",
2350
2350
  {
2351
- className: "list-none flex items-center gap-xs",
2351
+ className: [
2352
+ "list-none flex items-center gap-xs rounded-sm",
2353
+ isActive ? "bg-primary-disabled" : ""
2354
+ ].filter(Boolean).join(" "),
2352
2355
  onMouseEnter: () => setHovered(true),
2353
2356
  onMouseLeave: () => setHovered(false),
2354
2357
  children: [
@@ -2357,11 +2360,25 @@ var SubItemRow = ({ item }) => {
2357
2360
  {
2358
2361
  variant: "ghost",
2359
2362
  size: "sm",
2360
- className: "!flex-1 !justify-start !px-sm !py-xxs !text-body-sm !text-body !rounded-sm !cursor-pointer hover:!text-ink",
2363
+ "aria-current": isActive ? "page" : void 0,
2364
+ className: [
2365
+ "!flex-1 !justify-start !px-sm !py-xxs !text-body-sm !rounded-sm !cursor-pointer",
2366
+ isActive ? "!text-primary" : "!text-body hover:!text-ink"
2367
+ ].join(" "),
2361
2368
  onClick: () => item.onClick(item.id),
2362
2369
  children: item.label
2363
2370
  }
2364
- ) : /* @__PURE__ */ jsx8("span", { className: "flex-1 truncate px-sm py-xxs text-body-sm text-body rounded-sm cursor-default select-none", children: item.label }),
2371
+ ) : /* @__PURE__ */ jsx8(
2372
+ "span",
2373
+ {
2374
+ "aria-current": isActive ? "page" : void 0,
2375
+ className: [
2376
+ "flex-1 truncate px-sm py-xxs text-body-sm rounded-sm cursor-default select-none",
2377
+ isActive ? "text-primary" : "text-body"
2378
+ ].join(" "),
2379
+ children: item.label
2380
+ }
2381
+ ),
2365
2382
  item.onDelete && /* @__PURE__ */ jsx8(
2366
2383
  Button,
2367
2384
  {
@@ -2397,6 +2414,7 @@ var NavItem = React8.forwardRef(
2397
2414
  onExpandToggle,
2398
2415
  iconOnly = false,
2399
2416
  onClick,
2417
+ activeSubId,
2400
2418
  className,
2401
2419
  ...rest
2402
2420
  }, ref) => {
@@ -2538,7 +2556,14 @@ var NavItem = React8.forwardRef(
2538
2556
  {
2539
2557
  className: "ml-lg pl-sm border-l border-hairline-soft space-y-xxs",
2540
2558
  role: "list",
2541
- children: subItems.map((item) => /* @__PURE__ */ jsx8(SubItemRow, { item }, item.id))
2559
+ children: subItems.map((item) => /* @__PURE__ */ jsx8(
2560
+ SubItemRow,
2561
+ {
2562
+ item,
2563
+ isActive: activeSubId !== void 0 && item.id === activeSubId
2564
+ },
2565
+ item.id
2566
+ ))
2542
2567
  }
2543
2568
  ),
2544
2569
  hasChildren && /* @__PURE__ */ jsx8(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-v6",
3
- "version": "1.12.13",
3
+ "version": "1.12.15",
4
4
  "description": "Design system \"Plasma Design System\" generated by atom-server.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -39,7 +39,7 @@ export interface AppLayoutProps {
39
39
  avatarInitials?: string;
40
40
  /** Mobile: which panel is shown by default. Defaults to "chat". */
41
41
  defaultMobilePanel?: MobilePanel;
42
- /** When true, hides the project/workspace name control in the top bar (desktop WorkspaceMenu and mobile project name), while keeping the avatar nav and other top bar actions visible. Useful for a distraction-free fullscreen preview overlay. Defaults to false. */
42
+ /** When true, hides the entire left-hand identity/navigation cluster in the top bar — the avatar nav (avatar initials, chevron, and its dropdown menu) and the project/workspace name control (desktop WorkspaceMenu and mobile project name) — while keeping the rest of the top bar (tabs, actions) visible. Useful for a distraction-free fullscreen preview overlay. Defaults to false. */
43
43
  hideProjectName?: boolean;
44
44
  className?: string;
45
45
  }
@@ -346,11 +346,13 @@ const MobileTopBar: React.FC<MobileTopBarProps> = ({
346
346
  >
347
347
  {activePanel === "chat" ? (
348
348
  <>
349
- <AvatarNav
350
- initials={avatarInitials}
351
- onBackToProjects={onBackToProjects}
352
- onHome={onHome}
353
- />
349
+ {!hideProjectName && (
350
+ <AvatarNav
351
+ initials={avatarInitials}
352
+ onBackToProjects={onBackToProjects}
353
+ onHome={onHome}
354
+ />
355
+ )}
354
356
  {!hideProjectName && (
355
357
  <div className="flex-1 min-w-0">
356
358
  <WorkspaceMenu
@@ -577,11 +579,13 @@ export const AppLayout = React.forwardRef<HTMLDivElement, AppLayoutProps>(
577
579
  pointerEvents: chatCollapsed ? "none" : "auto",
578
580
  }}
579
581
  >
580
- <AvatarNav
581
- initials={avatarInitials}
582
- onBackToProjects={onBackToProjects}
583
- onHome={onHome}
584
- />
582
+ {!hideProjectName && (
583
+ <AvatarNav
584
+ initials={avatarInitials}
585
+ onBackToProjects={onBackToProjects}
586
+ onHome={onHome}
587
+ />
588
+ )}
585
589
  {!hideProjectName && (
586
590
  <div className="flex-1 min-w-0" style={{ position: "relative", zIndex: 1000 }}>
587
591
  <WorkspaceMenu
@@ -40,6 +40,13 @@ export interface NavItemProps extends React.HTMLAttributes<HTMLElement> {
40
40
  iconOnly?: boolean;
41
41
  /** Callback when the item is clicked */
42
42
  onClick?: React.MouseEventHandler<HTMLButtonElement>;
43
+ /**
44
+ * Id of the currently active structured sub-item. When a sub-item's `id`
45
+ * matches, that row shows the same selected indication as an active
46
+ * top-level NavItem (bg-primary-disabled, text-primary, aria-current).
47
+ * Does NOT affect the parent NavItem's own `active` state.
48
+ */
49
+ activeSubId?: string;
43
50
  }
44
51
 
45
52
  const ChevronDownIcon = () => (
@@ -77,14 +84,20 @@ const TrashIcon = () => (
77
84
 
78
85
  interface SubItemRowProps {
79
86
  item: NavItemSubItem;
87
+ isActive?: boolean;
80
88
  }
81
89
 
82
- const SubItemRow = ({ item }: SubItemRowProps) => {
90
+ const SubItemRow = ({ item, isActive = false }: SubItemRowProps) => {
83
91
  const [hovered, setHovered] = React.useState(false);
84
92
 
85
93
  return (
86
94
  <li
87
- className="list-none flex items-center gap-xs"
95
+ className={[
96
+ "list-none flex items-center gap-xs rounded-sm",
97
+ isActive ? "bg-primary-disabled" : "",
98
+ ]
99
+ .filter(Boolean)
100
+ .join(" ")}
88
101
  onMouseEnter={() => setHovered(true)}
89
102
  onMouseLeave={() => setHovered(false)}
90
103
  >
@@ -92,13 +105,23 @@ const SubItemRow = ({ item }: SubItemRowProps) => {
92
105
  <Button
93
106
  variant="ghost"
94
107
  size="sm"
95
- className="!flex-1 !justify-start !px-sm !py-xxs !text-body-sm !text-body !rounded-sm !cursor-pointer hover:!text-ink"
108
+ aria-current={isActive ? "page" : undefined}
109
+ className={[
110
+ "!flex-1 !justify-start !px-sm !py-xxs !text-body-sm !rounded-sm !cursor-pointer",
111
+ isActive ? "!text-primary" : "!text-body hover:!text-ink",
112
+ ].join(" ")}
96
113
  onClick={() => item.onClick!(item.id)}
97
114
  >
98
115
  {item.label}
99
116
  </Button>
100
117
  ) : (
101
- <span className="flex-1 truncate px-sm py-xxs text-body-sm text-body rounded-sm cursor-default select-none">
118
+ <span
119
+ aria-current={isActive ? "page" : undefined}
120
+ className={[
121
+ "flex-1 truncate px-sm py-xxs text-body-sm rounded-sm cursor-default select-none",
122
+ isActive ? "text-primary" : "text-body",
123
+ ].join(" ")}
124
+ >
102
125
  {item.label}
103
126
  </span>
104
127
  )}
@@ -138,6 +161,7 @@ export const NavItem = React.forwardRef<HTMLLIElement, NavItemProps>(
138
161
  onExpandToggle,
139
162
  iconOnly = false,
140
163
  onClick,
164
+ activeSubId,
141
165
  className,
142
166
  ...rest
143
167
  },
@@ -292,7 +316,11 @@ export const NavItem = React.forwardRef<HTMLLIElement, NavItemProps>(
292
316
  role="list"
293
317
  >
294
318
  {subItems!.map((item) => (
295
- <SubItemRow key={item.id} item={item} />
319
+ <SubItemRow
320
+ key={item.id}
321
+ item={item}
322
+ isActive={activeSubId !== undefined && item.id === activeSubId}
323
+ />
296
324
  ))}
297
325
  </ul>
298
326
  )}