@designa8/vibedesign-v6 1.8.4 → 1.8.5

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.8.4**.
3
+ Generated design system, version **1.8.5**.
4
4
 
5
5
  ## Local install (npm link)
6
6
 
package/dist/index.cjs CHANGED
@@ -3288,6 +3288,7 @@ var PreviewToolbar = import_react15.default.forwardRef(
3288
3288
  onInspectTokens,
3289
3289
  onFullscreen,
3290
3290
  onExpand,
3291
+ expanded = false,
3291
3292
  modelLabel = "Sonnet 4.6",
3292
3293
  kindLabel = "ATOM",
3293
3294
  onOverflow,
@@ -3315,21 +3316,24 @@ var PreviewToolbar = import_react15.default.forwardRef(
3315
3316
  ViewportBtn,
3316
3317
  {
3317
3318
  label,
3318
- active: viewport === id,
3319
+ active: !expanded && viewport === id,
3319
3320
  onClick: () => onViewportChange?.(id),
3320
3321
  children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon, {})
3321
3322
  },
3322
3323
  id
3323
3324
  )),
3324
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "w-px h-4 bg-hairline mx-xxs", "aria-hidden": true }),
3325
3325
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3326
3326
  Button,
3327
3327
  {
3328
- variant: "ghost",
3328
+ variant: expanded ? "primary" : "ghost",
3329
3329
  size: "sm",
3330
3330
  "aria-label": "Expand preview",
3331
+ "aria-pressed": expanded,
3331
3332
  onClick: onExpand,
3332
- className: "!w-8 !h-8 !p-0 rounded-sm text-muted shrink-0",
3333
+ className: [
3334
+ "!w-8 !h-8 !p-0 rounded-sm shrink-0",
3335
+ expanded ? "" : "text-muted"
3336
+ ].join(" "),
3333
3337
  children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ExpandIcon, {})
3334
3338
  }
3335
3339
  )
package/dist/index.js CHANGED
@@ -3240,6 +3240,7 @@ var PreviewToolbar = React15.forwardRef(
3240
3240
  onInspectTokens,
3241
3241
  onFullscreen,
3242
3242
  onExpand,
3243
+ expanded = false,
3243
3244
  modelLabel = "Sonnet 4.6",
3244
3245
  kindLabel = "ATOM",
3245
3246
  onOverflow,
@@ -3267,21 +3268,24 @@ var PreviewToolbar = React15.forwardRef(
3267
3268
  ViewportBtn,
3268
3269
  {
3269
3270
  label,
3270
- active: viewport === id,
3271
+ active: !expanded && viewport === id,
3271
3272
  onClick: () => onViewportChange?.(id),
3272
3273
  children: /* @__PURE__ */ jsx15(Icon, {})
3273
3274
  },
3274
3275
  id
3275
3276
  )),
3276
- /* @__PURE__ */ jsx15("div", { className: "w-px h-4 bg-hairline mx-xxs", "aria-hidden": true }),
3277
3277
  /* @__PURE__ */ jsx15(
3278
3278
  Button,
3279
3279
  {
3280
- variant: "ghost",
3280
+ variant: expanded ? "primary" : "ghost",
3281
3281
  size: "sm",
3282
3282
  "aria-label": "Expand preview",
3283
+ "aria-pressed": expanded,
3283
3284
  onClick: onExpand,
3284
- className: "!w-8 !h-8 !p-0 rounded-sm text-muted shrink-0",
3285
+ className: [
3286
+ "!w-8 !h-8 !p-0 rounded-sm shrink-0",
3287
+ expanded ? "" : "text-muted"
3288
+ ].join(" "),
3285
3289
  children: /* @__PURE__ */ jsx15(ExpandIcon, {})
3286
3290
  }
3287
3291
  )
package/dist/styles.css CHANGED
@@ -364,9 +364,6 @@
364
364
  .mx-xs {
365
365
  margin-inline: var(--spacing-xs);
366
366
  }
367
- .mx-xxs {
368
- margin-inline: var(--spacing-xxs);
369
- }
370
367
  .my-xl {
371
368
  margin-block: var(--spacing-xl);
372
369
  }
@@ -572,9 +569,6 @@
572
569
  .w-full {
573
570
  width: 100%;
574
571
  }
575
- .w-px {
576
- width: 1px;
577
- }
578
572
  .max-w-2xl {
579
573
  max-width: var(--container-2xl);
580
574
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-v6",
3
- "version": "1.8.4",
3
+ "version": "1.8.5",
4
4
  "description": "Design system \"Plasma Design System\" generated by atom-server.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -97,6 +97,12 @@ export interface PreviewToolbarProps {
97
97
  onInspectTokens?: () => void;
98
98
  onFullscreen?: () => void;
99
99
  onExpand?: () => void;
100
+ /**
101
+ * When true, the expand/arrows button renders with variant=primary and
102
+ * aria-pressed=true. None of the three viewport buttons appear active while
103
+ * expanded is true — only one selection indicator is shown at a time.
104
+ */
105
+ expanded?: boolean;
100
106
  /** Model name shown as a chip, e.g. "Sonnet 4.6" */
101
107
  modelLabel?: string;
102
108
  /** Component kind shown as a chip, e.g. "ATOM" */
@@ -140,6 +146,7 @@ export const PreviewToolbar = React.forwardRef<HTMLDivElement, PreviewToolbarPro
140
146
  onInspectTokens,
141
147
  onFullscreen,
142
148
  onExpand,
149
+ expanded = false,
143
150
  modelLabel = "Sonnet 4.6",
144
151
  kindLabel = "ATOM",
145
152
  onOverflow,
@@ -167,21 +174,23 @@ export const PreviewToolbar = React.forwardRef<HTMLDivElement, PreviewToolbarPro
167
174
  <ViewportBtn
168
175
  key={id}
169
176
  label={label}
170
- active={viewport === id}
177
+ active={!expanded && viewport === id}
171
178
  onClick={() => onViewportChange?.(id)}
172
179
  >
173
180
  <Icon />
174
181
  </ViewportBtn>
175
182
  ))}
176
183
 
177
- <div className="w-px h-4 bg-hairline mx-xxs" aria-hidden />
178
-
179
184
  <Button
180
- variant="ghost"
185
+ variant={expanded ? "primary" : "ghost"}
181
186
  size="sm"
182
187
  aria-label="Expand preview"
188
+ aria-pressed={expanded}
183
189
  onClick={onExpand}
184
- className="!w-8 !h-8 !p-0 rounded-sm text-muted shrink-0"
190
+ className={[
191
+ "!w-8 !h-8 !p-0 rounded-sm shrink-0",
192
+ expanded ? "" : "text-muted",
193
+ ].join(" ")}
185
194
  >
186
195
  <ExpandIcon />
187
196
  </Button>
@@ -5,6 +5,7 @@ export default function PreviewToolbarPreview() {
5
5
  const [viewport, setViewport] = useState<Viewport>("desktop");
6
6
  const [darkMode, setDarkMode] = useState(false);
7
7
  const [inspecting, setInspecting] = useState(false);
8
+ const [expanded, setExpanded] = useState(false);
8
9
 
9
10
  return (
10
11
  <div className="w-full max-w-5xl mx-auto p-lg space-y-xl">
@@ -12,7 +13,7 @@ export default function PreviewToolbarPreview() {
12
13
  <div className="space-y-xxs">
13
14
  <p className="text-body-sm text-muted uppercase tracking-wide">Preview toolbar</p>
14
15
  <p className="text-body-sm text-muted">
15
- Interactive — click the viewport icons, toggle Dark mode, and try Inspect tokens.
16
+ Interactive — click the viewport icons, toggle Dark mode, Inspect tokens, and the Expand button.
16
17
  </p>
17
18
  </div>
18
19
 
@@ -26,8 +27,9 @@ export default function PreviewToolbarPreview() {
26
27
  onDarkToggle={() => setDarkMode((d) => !d)}
27
28
  inspecting={inspecting}
28
29
  onInspectTokens={() => setInspecting((i) => !i)}
30
+ expanded={expanded}
31
+ onExpand={() => setExpanded((e) => !e)}
29
32
  onFullscreen={() => {}}
30
- onExpand={() => {}}
31
33
  onOverflow={() => {}}
32
34
  />
33
35
  </div>
@@ -35,10 +37,24 @@ export default function PreviewToolbarPreview() {
35
37
  <p className="text-body-sm text-muted text-center">
36
38
  Active viewport: <strong className="text-ink">{viewport}</strong> ·
37
39
  Dark mode: <strong className="text-ink">{darkMode ? "on" : "off"}</strong> ·
38
- Inspecting: <strong className="text-ink">{inspecting ? "on" : "off"}</strong>
40
+ Inspecting: <strong className="text-ink">{inspecting ? "on" : "off"}</strong> ·
41
+ Expanded: <strong className="text-ink">{expanded ? "on" : "off"}</strong>
39
42
  </p>
40
43
  </div>
41
44
 
45
+ {/* ── Variant: expanded=true ───────────────────── */}
46
+ <div className="space-y-sm">
47
+ <p className="text-body-sm text-muted font-weight-heading-sm">Expanded active (expanded=true) — viewport buttons deselected</p>
48
+ <div className="flex items-center justify-center w-full bg-canvas rounded-xl p-xl border border-hairline">
49
+ <PreviewToolbar
50
+ viewport="desktop"
51
+ expanded
52
+ modelLabel="Sonnet 4.6"
53
+ kindLabel="ATOM"
54
+ />
55
+ </div>
56
+ </div>
57
+
42
58
  {/* ── Variant: inspecting=true ─────────────────── */}
43
59
  <div className="space-y-sm">
44
60
  <p className="text-body-sm text-muted font-weight-heading-sm">Inspecting active (inspecting=true)</p>