@designa8/vibedesign-v6 1.12.15 → 1.12.17

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.15**.
3
+ Generated design system, version **1.12.17**.
4
4
 
5
5
  ## Local install (npm link)
6
6
 
package/dist/index.cjs CHANGED
@@ -2855,6 +2855,7 @@ var AppSidebar = import_react10.default.forwardRef(
2855
2855
  active: isActive,
2856
2856
  iconOnly: collapsed,
2857
2857
  subItems: !collapsed ? mappedSubItems : void 0,
2858
+ activeSubId: hasSubItems ? activeSubId : void 0,
2858
2859
  expanded: hasSubItems ? isExpanded : void 0,
2859
2860
  onExpandToggle: hasSubItems ? () => toggleExpanded(entry.id) : void 0,
2860
2861
  onClick: (e) => {
@@ -4485,10 +4486,6 @@ var DesktopIcon = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("svg", {
4485
4486
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }),
4486
4487
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("path", { d: "M8 21h8M12 17v4" })
4487
4488
  ] });
4488
- var SidebarIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4489
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("rect", { x: "2", y: "3", width: "20", height: "18", rx: "2" }),
4490
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("path", { d: "M9 3v18" })
4491
- ] });
4492
4489
  var MobileIcon = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4493
4490
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2" }),
4494
4491
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("circle", { cx: "12", cy: "17", r: "1", fill: "currentColor", stroke: "none" })
@@ -4513,7 +4510,6 @@ var DotsIcon = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("svg", { wid
4513
4510
  ] });
4514
4511
  var VIEWPORT_OPTIONS = [
4515
4512
  { id: "desktop", Icon: DesktopIcon, label: "Desktop view" },
4516
- { id: "sidebar", Icon: SidebarIcon2, label: "Sidebar view" },
4517
4513
  { id: "mobile", Icon: MobileIcon, label: "Mobile view" }
4518
4514
  ];
4519
4515
  var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
package/dist/index.js CHANGED
@@ -2802,6 +2802,7 @@ var AppSidebar = React10.forwardRef(
2802
2802
  active: isActive,
2803
2803
  iconOnly: collapsed,
2804
2804
  subItems: !collapsed ? mappedSubItems : void 0,
2805
+ activeSubId: hasSubItems ? activeSubId : void 0,
2805
2806
  expanded: hasSubItems ? isExpanded : void 0,
2806
2807
  onExpandToggle: hasSubItems ? () => toggleExpanded(entry.id) : void 0,
2807
2808
  onClick: (e) => {
@@ -4432,10 +4433,6 @@ var DesktopIcon = () => /* @__PURE__ */ jsxs19("svg", { width: "16", height: "16
4432
4433
  /* @__PURE__ */ jsx20("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }),
4433
4434
  /* @__PURE__ */ jsx20("path", { d: "M8 21h8M12 17v4" })
4434
4435
  ] });
4435
- var SidebarIcon2 = () => /* @__PURE__ */ jsxs19("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4436
- /* @__PURE__ */ jsx20("rect", { x: "2", y: "3", width: "20", height: "18", rx: "2" }),
4437
- /* @__PURE__ */ jsx20("path", { d: "M9 3v18" })
4438
- ] });
4439
4436
  var MobileIcon = () => /* @__PURE__ */ jsxs19("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4440
4437
  /* @__PURE__ */ jsx20("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2" }),
4441
4438
  /* @__PURE__ */ jsx20("circle", { cx: "12", cy: "17", r: "1", fill: "currentColor", stroke: "none" })
@@ -4460,7 +4457,6 @@ var DotsIcon = () => /* @__PURE__ */ jsxs19("svg", { width: "16", height: "16",
4460
4457
  ] });
4461
4458
  var VIEWPORT_OPTIONS = [
4462
4459
  { id: "desktop", Icon: DesktopIcon, label: "Desktop view" },
4463
- { id: "sidebar", Icon: SidebarIcon2, label: "Sidebar view" },
4464
4460
  { id: "mobile", Icon: MobileIcon, label: "Mobile view" }
4465
4461
  ];
4466
4462
  var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ jsx20(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-v6",
3
- "version": "1.12.15",
3
+ "version": "1.12.17",
4
4
  "description": "Design system \"Plasma Design System\" generated by atom-server.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -96,7 +96,12 @@ export interface AppSidebarProps extends React.HTMLAttributes<HTMLElement> {
96
96
  /** Called when the user selects a top-level entry. */
97
97
  onSelect?: (id: string) => void;
98
98
 
99
- /** ID of the currently-active sub-item (optional). */
99
+ /**
100
+ * ID of the currently-active sub-item (optional). Forwarded to each
101
+ * rendered NavItem so the matching nested sub-item row shows the selected
102
+ * indication. Does NOT affect which top-level entry is treated as active —
103
+ * that is driven exclusively by `activeId`.
104
+ */
100
105
  activeSubId?: string;
101
106
 
102
107
  /** Called when the user selects a sub-item. */
@@ -343,6 +348,7 @@ export const AppSidebar = React.forwardRef<HTMLElement, AppSidebarProps>(
343
348
  active={isActive}
344
349
  iconOnly={collapsed}
345
350
  subItems={!collapsed ? mappedSubItems : undefined}
351
+ activeSubId={hasSubItems ? activeSubId : undefined}
346
352
  expanded={hasSubItems ? isExpanded : undefined}
347
353
  onExpandToggle={hasSubItems ? () => toggleExpanded(entry.id) : undefined}
348
354
  onClick={(e) => {
@@ -11,13 +11,6 @@ const DesktopIcon = () => (
11
11
  </svg>
12
12
  );
13
13
 
14
- const SidebarIcon = () => (
15
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.75" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
16
- <rect x="2" y="3" width="20" height="18" rx="2" />
17
- <path d="M9 3v18" />
18
- </svg>
19
- );
20
-
21
14
  const MobileIcon = () => (
22
15
  <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.75" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
23
16
  <rect x="5" y="2" width="14" height="20" rx="2" />
@@ -65,7 +58,7 @@ const DotsIcon = () => (
65
58
 
66
59
  // ─── Types ─────────────────────────────────────────────────────────────────────
67
60
 
68
- export type Viewport = "desktop" | "sidebar" | "mobile";
61
+ export type Viewport = "desktop" | "mobile";
69
62
 
70
63
  interface ViewportOption {
71
64
  id: Viewport;
@@ -75,7 +68,6 @@ interface ViewportOption {
75
68
 
76
69
  const VIEWPORT_OPTIONS: ViewportOption[] = [
77
70
  { id: "desktop", Icon: DesktopIcon, label: "Desktop view" },
78
- { id: "sidebar", Icon: SidebarIcon, label: "Sidebar view" },
79
71
  { id: "mobile", Icon: MobileIcon, label: "Mobile view" },
80
72
  ];
81
73
 
@@ -99,7 +91,7 @@ export interface PreviewToolbarProps {
99
91
  onExpand?: () => void;
100
92
  /**
101
93
  * When true, the expand/arrows button renders with variant=primary and
102
- * aria-pressed=true. None of the three viewport buttons appear active while
94
+ * aria-pressed=true. None of the viewport buttons appear active while
103
95
  * expanded is true — only one selection indicator is shown at a time.
104
96
  */
105
97
  expanded?: boolean;