@designa8/vibedesign-v6 2.3.0 → 2.3.1

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
- Complete design system generated by Atoms Design, version **2.3.0**.
3
+ Complete design system generated by Atoms Design, version **2.3.1**.
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
@@ -1710,10 +1710,13 @@ var VersionDropdown = ({
1710
1710
  }
1711
1711
  const isSelected = label === selected;
1712
1712
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1713
- "button",
1713
+ Button,
1714
1714
  {
1715
1715
  type: "button",
1716
1716
  role: "option",
1717
+ variant: "bare",
1718
+ size: "auto",
1719
+ pushEffect: false,
1717
1720
  "aria-selected": isSelected,
1718
1721
  onClick: () => {
1719
1722
  onSelect(label);
@@ -1726,14 +1729,24 @@ var VersionDropdown = ({
1726
1729
  }
1727
1730
  },
1728
1731
  className: [
1729
- "w-full flex flex-col items-start px-md cursor-pointer select-none",
1732
+ "!flex !w-full flex-col items-start !justify-start text-left",
1733
+ "!whitespace-normal px-md cursor-pointer select-none",
1730
1734
  "transition-colors duration-100",
1731
1735
  metaLine ? "py-sm" : "py-xs",
1732
1736
  isSelected ? "bg-surface-soft text-primary" : "text-ink hover:bg-surface-soft"
1733
1737
  ].join(" "),
1734
1738
  children: [
1735
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: ["text-body-sm", isSelected ? "font-weight-heading-sm" : ""].join(" ").trim(), children: label }),
1736
- metaLine && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-caption text-muted mt-xxs", children: metaLine })
1739
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1740
+ "span",
1741
+ {
1742
+ className: [
1743
+ "block w-full text-left text-body-sm",
1744
+ isSelected ? "font-weight-heading-sm" : "font-weight-body-sm"
1745
+ ].join(" "),
1746
+ children: label
1747
+ }
1748
+ ),
1749
+ metaLine && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "block w-full text-left text-caption font-weight-body-sm text-muted mt-xxs", children: metaLine })
1737
1750
  ]
1738
1751
  }
1739
1752
  ) }, label);
package/dist/index.js CHANGED
@@ -1615,10 +1615,13 @@ var VersionDropdown = ({
1615
1615
  }
1616
1616
  const isSelected = label === selected;
1617
1617
  return /* @__PURE__ */ jsx9("li", { children: /* @__PURE__ */ jsxs8(
1618
- "button",
1618
+ Button,
1619
1619
  {
1620
1620
  type: "button",
1621
1621
  role: "option",
1622
+ variant: "bare",
1623
+ size: "auto",
1624
+ pushEffect: false,
1622
1625
  "aria-selected": isSelected,
1623
1626
  onClick: () => {
1624
1627
  onSelect(label);
@@ -1631,14 +1634,24 @@ var VersionDropdown = ({
1631
1634
  }
1632
1635
  },
1633
1636
  className: [
1634
- "w-full flex flex-col items-start px-md cursor-pointer select-none",
1637
+ "!flex !w-full flex-col items-start !justify-start text-left",
1638
+ "!whitespace-normal px-md cursor-pointer select-none",
1635
1639
  "transition-colors duration-100",
1636
1640
  metaLine ? "py-sm" : "py-xs",
1637
1641
  isSelected ? "bg-surface-soft text-primary" : "text-ink hover:bg-surface-soft"
1638
1642
  ].join(" "),
1639
1643
  children: [
1640
- /* @__PURE__ */ jsx9("span", { className: ["text-body-sm", isSelected ? "font-weight-heading-sm" : ""].join(" ").trim(), children: label }),
1641
- metaLine && /* @__PURE__ */ jsx9("span", { className: "text-caption text-muted mt-xxs", children: metaLine })
1644
+ /* @__PURE__ */ jsx9(
1645
+ "span",
1646
+ {
1647
+ className: [
1648
+ "block w-full text-left text-body-sm",
1649
+ isSelected ? "font-weight-heading-sm" : "font-weight-body-sm"
1650
+ ].join(" "),
1651
+ children: label
1652
+ }
1653
+ ),
1654
+ metaLine && /* @__PURE__ */ jsx9("span", { className: "block w-full text-left text-caption font-weight-body-sm text-muted mt-xxs", children: metaLine })
1642
1655
  ]
1643
1656
  }
1644
1657
  ) }, label);
package/dist/styles.css CHANGED
@@ -2151,6 +2151,9 @@
2151
2151
  .break-words {
2152
2152
  overflow-wrap: break-word;
2153
2153
  }
2154
+ .\!whitespace-normal {
2155
+ white-space: normal !important;
2156
+ }
2154
2157
  .whitespace-normal {
2155
2158
  white-space: normal;
2156
2159
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-v6",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Complete design system \"Plasma Design System\" generated by Atoms Design.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -141,16 +141,20 @@ const VersionDropdown: React.FC<VersionDropdownProps> = ({
141
141
 
142
142
  return (
143
143
  <li key={label}>
144
- <button
144
+ <Button
145
145
  type="button"
146
146
  role="option"
147
+ variant="bare"
148
+ size="auto"
149
+ pushEffect={false}
147
150
  aria-selected={isSelected}
148
151
  onClick={() => { onSelect(label); setOpen(false); }}
149
152
  onKeyDown={(e) => {
150
153
  if (e.key === "Enter" || e.key === " ") { onSelect(label); setOpen(false); }
151
154
  }}
152
155
  className={[
153
- "w-full flex flex-col items-start px-md cursor-pointer select-none",
156
+ "!flex !w-full flex-col items-start !justify-start text-left",
157
+ "!whitespace-normal px-md cursor-pointer select-none",
154
158
  "transition-colors duration-100",
155
159
  metaLine ? "py-sm" : "py-xs",
156
160
  isSelected
@@ -158,13 +162,20 @@ const VersionDropdown: React.FC<VersionDropdownProps> = ({
158
162
  : "text-ink hover:bg-surface-soft",
159
163
  ].join(" ")}
160
164
  >
161
- <span className={["text-body-sm", isSelected ? "font-weight-heading-sm" : ""].join(" ").trim()}>
165
+ <span
166
+ className={[
167
+ "block w-full text-left text-body-sm",
168
+ isSelected ? "font-weight-heading-sm" : "font-weight-body-sm",
169
+ ].join(" ")}
170
+ >
162
171
  {label}
163
172
  </span>
164
173
  {metaLine && (
165
- <span className="text-caption text-muted mt-xxs">{metaLine}</span>
174
+ <span className="block w-full text-left text-caption font-weight-body-sm text-muted mt-xxs">
175
+ {metaLine}
176
+ </span>
166
177
  )}
167
- </button>
178
+ </Button>
168
179
  </li>
169
180
  );
170
181
  })}
@@ -20,6 +20,14 @@ const manyVersions = [
20
20
  // Plain string versions — backward compat
21
21
  const plainVersions = ["Latest", "v1.2", "v1.1", "v1.0"];
22
22
 
23
+ // Long metadata that wraps inside the 220px panel — wrapped lines must start
24
+ // on the same left edge as the version label.
25
+ const longMetaVersions = [
26
+ { version: "v2.2.6", publishedAt: new Date(Date.now() - 1000 * 60 * 60 * 23).toISOString(), publishedBy: "Agent build · MarketingNavbar" },
27
+ { version: "v2.2.5", publishedAt: new Date(Date.now() - 1000 * 60 * 60 * 24 * 2).toISOString(), publishedBy: "Agent build · PricingPageTemplate" },
28
+ "v2.2.4",
29
+ ];
30
+
23
31
  export default function TopNavbarPreview() {
24
32
  const [published, setPublished] = React.useState(false);
25
33
  const [darkMode, setDarkMode] = React.useState(false);
@@ -55,33 +63,33 @@ export default function TopNavbarPreview() {
55
63
  </p>
56
64
  </section>
57
65
 
58
- {/* 2. Export menu with only the Export Design.md item (onDownloadCodebase omitted) */}
66
+ {/* 2. Wrapping metadata line — wrapped text aligns to the version label */}
59
67
  <section className="flex flex-col gap-sm">
60
68
  <p className="px-lg text-caption text-muted uppercase">
61
- Export menu — only "Export Design.md" (onDownloadCodebase omitted)
69
+ Wrapping metadata — open it, wrapped lines start at the label's left edge
62
70
  </p>
63
71
  <TopNavbar
64
- avatarInitials="DM"
65
- version="v2.0"
66
- versions={manyVersions}
67
- onExport={() => setLastAction("Exported Design.md")}
72
+ avatarInitials="WR"
73
+ version="v2.2.6"
74
+ versions={longMetaVersions}
68
75
  onShare={() => undefined}
69
- darkMode={true}
76
+ darkMode={false}
70
77
  onToggleDarkMode={() => undefined}
71
78
  />
72
79
  </section>
73
80
 
74
- {/* 3. Toggle shows moon (light mode active) */}
81
+ {/* 3. Export menu with only the Export Design.md item (onDownloadCodebase omitted) */}
75
82
  <section className="flex flex-col gap-sm">
76
83
  <p className="px-lg text-caption text-muted uppercase">
77
- Light mode active — moon icon shown
84
+ Export menu — only "Export Design.md" (onDownloadCodebase omitted)
78
85
  </p>
79
86
  <TopNavbar
80
- avatarInitials="LM"
81
- version="v1.9"
87
+ avatarInitials="DM"
88
+ version="v2.0"
82
89
  versions={manyVersions}
90
+ onExport={() => setLastAction("Exported Design.md")}
83
91
  onShare={() => undefined}
84
- darkMode={false}
92
+ darkMode={true}
85
93
  onToggleDarkMode={() => undefined}
86
94
  />
87
95
  </section>