@designa8/vibedesign-v6 1.20.13 → 1.20.14

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 **1.20.13**.
3
+ Complete design system generated by Atoms Design, version **1.20.14**.
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
@@ -144,7 +144,8 @@ var ICON_REGISTRY = {
144
144
  "video-film-clapperboard": { viewBox: "0 0 24 24", paths: ["M4 6h10a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z", "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"] },
145
145
  "minus-indeterminate": { viewBox: "0 0 24 24", paths: ["M5 12h14"] },
146
146
  "cloud": { viewBox: "0 0 24 24", paths: ["M17.5 19a4.5 4.5 0 0 0 0-9 5.5 5.5 0 0 0-10.8-1.5A4 4 0 0 0 6.5 16", "M8 19h9.5"] },
147
- "download": { viewBox: "0 0 24 24", paths: ["M12 3v12", "M7 10l5 5 5-5", "M5 21h14"] }
147
+ "download": { viewBox: "0 0 24 24", paths: ["M12 3v12", "M7 10l5 5 5-5", "M5 21h14"] },
148
+ "refresh": { viewBox: "0 0 24 24", paths: ["M4 4v5h5", "M20 20v-5h-5", "M5.5 9A7 7 0 0 1 19 12", "M18.5 15A7 7 0 0 1 5 12"] }
148
149
  };
149
150
 
150
151
  // virtual-pkg:src/atoms/Icon/Icon.tsx
@@ -6154,56 +6155,6 @@ PricingPageTemplate.displayName = "PricingPageTemplate";
6154
6155
  // virtual-pkg:src/atoms/PublishModal/PublishModal.tsx
6155
6156
  var import_react30 = __toESM(require("react"));
6156
6157
  var import_jsx_runtime33 = require("react/jsx-runtime");
6157
- var GlobeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
6158
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
6159
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M3 12h18" }),
6160
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M12 3a13.5 13.5 0 0 1 0 18" }),
6161
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M12 3a13.5 13.5 0 0 0 0 18" })
6162
- ] });
6163
- var LinkIcon = () => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
6164
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }),
6165
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }),
6166
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("line", { x1: "8", y1: "12", x2: "16", y2: "12" })
6167
- ] });
6168
- var InfoIcon = () => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "currentColor", "aria-hidden": "true", children: [
6169
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("circle", { cx: "12", cy: "12", r: "10", opacity: "0.15" }),
6170
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("circle", { cx: "12", cy: "7.5", r: "1.15" }),
6171
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("rect", { x: "11", y: "10.5", width: "2", height: "7", rx: "1" })
6172
- ] });
6173
- var CheckCircleIcon = () => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("svg", { viewBox: "0 0 24 24", width: "18", height: "18", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
6174
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
6175
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M8.5 12.5l2.2 2.2 4.8-5" })
6176
- ] });
6177
- var LockIcon = () => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
6178
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("rect", { x: "5", y: "10", width: "14", height: "10", rx: "2" }),
6179
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M8 10V7a4 4 0 0 1 8 0v3" })
6180
- ] });
6181
- var RefreshIcon = () => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
6182
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M4 4v5h5" }),
6183
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M20 20v-5h-5" }),
6184
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M5.5 9A7 7 0 0 1 19 12" }),
6185
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M18.5 15A7 7 0 0 1 5 12" })
6186
- ] });
6187
- var ChevronIcon2 = ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6188
- "svg",
6189
- {
6190
- viewBox: "0 0 24 24",
6191
- width: "14",
6192
- height: "14",
6193
- fill: "none",
6194
- stroke: "currentColor",
6195
- strokeWidth: "2",
6196
- strokeLinecap: "round",
6197
- strokeLinejoin: "round",
6198
- "aria-hidden": "true",
6199
- className: ["transition-transform duration-150", open ? "rotate-90" : ""].join(" "),
6200
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M9 6l6 6-6 6" })
6201
- }
6202
- );
6203
- var SpinnerIcon = () => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", "aria-hidden": "true", className: "animate-spin", children: [
6204
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("circle", { cx: "12", cy: "12", r: "9", stroke: "currentColor", strokeWidth: "2", opacity: "0.25" }),
6205
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M21 12a9 9 0 0 0-9-9", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
6206
- ] });
6207
6158
  function bumpMinor(version) {
6208
6159
  const parts = version.split(".").map((n) => parseInt(n, 10) || 0);
6209
6160
  const [major = 0, minor = 0] = parts;
@@ -6220,22 +6171,12 @@ var PublishModal = import_react30.default.forwardRef(
6220
6171
  defaultTarget = "production",
6221
6172
  loading = false
6222
6173
  }, ref) => {
6223
- const [target, setTarget] = (0, import_react30.useState)(defaultTarget);
6174
+ const target = defaultTarget;
6224
6175
  const [nextVersion, setNextVersion] = (0, import_react30.useState)(
6225
6176
  defaultNextVersion ?? bumpMinor(currentVersion)
6226
6177
  );
6227
- const [notesOpen, setNotesOpen] = (0, import_react30.useState)(false);
6228
- const [notes, setNotes] = (0, import_react30.useState)("");
6229
6178
  const isProduction = target === "production";
6230
- const summaryItems = isProduction ? [
6231
- { title: "Package validated", desc: "All required fields are valid." },
6232
- { title: "No breaking changes", desc: "Compatible with previous versions." },
6233
- { title: "Access", desc: "You have publish access to this package." }
6234
- ] : [
6235
- { title: "Package built", desc: "Local build artifacts are up to date." },
6236
- { title: "Link target resolved", desc: "A local npm link target was found." },
6237
- { title: "No global conflicts", desc: "No other project links this package name." }
6238
- ];
6179
+ const introText = isProduction ? "Publish your package to the npm registry so others can install and use it." : "Publish this package locally with npm link for testing and internal use before a real release.";
6239
6180
  const noticeText = isProduction ? "Publishing to npm registry makes your package publicly available to the world. Make sure you're ready to release this version." : "Local publish creates an npm link only visible on this machine, for testing and internal use before a real release.";
6240
6181
  const handlePublish = () => onPublish?.(target, nextVersion);
6241
6182
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
@@ -6256,161 +6197,63 @@ var PublishModal = import_react30.default.forwardRef(
6256
6197
  disabled: loading,
6257
6198
  "aria-busy": loading,
6258
6199
  children: loading ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
6259
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SpinnerIcon, {}),
6200
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { name: "loading-spinner", size: 16, className: "animate-spin" }),
6260
6201
  isProduction ? "Publishing\u2026" : "Linking\u2026"
6261
6202
  ] }) : isProduction ? "Publish to npm registry" : "Publish locally (npm link)"
6262
6203
  }
6263
6204
  )
6264
6205
  ] }),
6265
6206
  children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "w-full space-y-lg", children: [
6266
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-md text-muted", children: "Publish your package to npm so others can install and use it. Choose between a production release to the npm registry or a local publish for testing and internal use." }),
6267
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
6268
- "div",
6269
- {
6270
- role: "tablist",
6271
- "aria-label": "Publish target",
6272
- className: "flex items-center gap-lg border-b border-hairline",
6273
- children: [
6274
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
6275
- Button,
6207
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-md text-muted", children: introText }),
6208
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
6209
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Package details" }),
6210
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-xxs", children: [
6211
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Package" }),
6212
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-md text-ink font-mono", children: packageName })
6213
+ ] }),
6214
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-xxs", children: [
6215
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Current version" }),
6216
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-xs", children: [
6217
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-md text-ink font-mono", children: currentVersion }),
6218
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Chip, { label: "Latest", variant: "primary", size: "sm" })
6219
+ ] })
6220
+ ] }),
6221
+ isProduction ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-xxs", children: [
6222
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Next version" }),
6223
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-xs", children: [
6224
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6225
+ Input,
6276
6226
  {
6277
- type: "button",
6278
- role: "tab",
6279
- "aria-selected": isProduction,
6280
- variant: "ghost",
6281
- size: "sm",
6282
- onClick: () => setTarget("production"),
6283
- disabled: loading,
6284
- className: [
6285
- "!rounded-none border-b-2 -mb-px",
6286
- isProduction ? "text-primary border-primary" : "text-muted border-transparent hover:text-ink"
6287
- ].join(" "),
6288
- children: [
6289
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(GlobeIcon, {}),
6290
- "Production (npm registry)"
6291
- ]
6227
+ "aria-label": "Next version",
6228
+ value: nextVersion,
6229
+ onChange: (e) => setNextVersion(e.target.value),
6230
+ fullWidth: true,
6231
+ disabled: loading
6292
6232
  }
6293
6233
  ),
6294
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
6234
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6295
6235
  Button,
6296
6236
  {
6297
- type: "button",
6298
- role: "tab",
6299
- "aria-selected": !isProduction,
6300
- variant: "ghost",
6301
- size: "sm",
6302
- onClick: () => setTarget("local"),
6237
+ variant: "secondary",
6238
+ size: "md",
6239
+ "aria-label": "Reset to suggested version",
6240
+ onClick: () => setNextVersion(bumpMinor(currentVersion)),
6303
6241
  disabled: loading,
6304
- className: [
6305
- "!rounded-none border-b-2 -mb-px",
6306
- !isProduction ? "text-primary border-primary" : "text-muted border-transparent hover:text-ink"
6307
- ].join(" "),
6308
- children: [
6309
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(LinkIcon, {}),
6310
- "Local (npm link)"
6311
- ]
6242
+ className: "!px-sm",
6243
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { name: "refresh", size: 16 })
6312
6244
  }
6313
6245
  )
6314
- ]
6315
- }
6316
- ),
6317
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-md", children: [
6318
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
6319
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Package details" }),
6320
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-xxs", children: [
6321
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Package" }),
6322
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-md text-ink font-mono", children: packageName })
6323
- ] }),
6324
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-xxs", children: [
6325
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Current version" }),
6326
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-xs", children: [
6327
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-md text-ink font-mono", children: currentVersion }),
6328
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Chip, { label: "Latest", variant: "primary", size: "sm" })
6329
- ] })
6330
- ] }),
6331
- isProduction ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-xxs", children: [
6332
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Next version" }),
6333
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-xs", children: [
6334
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6335
- Input,
6336
- {
6337
- "aria-label": "Next version",
6338
- value: nextVersion,
6339
- onChange: (e) => setNextVersion(e.target.value),
6340
- fullWidth: true,
6341
- disabled: loading
6342
- }
6343
- ),
6344
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6345
- Button,
6346
- {
6347
- variant: "secondary",
6348
- size: "md",
6349
- "aria-label": "Reset to suggested version",
6350
- onClick: () => setNextVersion(bumpMinor(currentVersion)),
6351
- disabled: loading,
6352
- className: "!px-sm",
6353
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(RefreshIcon, {})
6354
- }
6355
- )
6356
- ] })
6357
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-xxs", children: [
6358
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Link command" }),
6359
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("p", { className: "rounded-sm bg-surface-soft border border-hairline px-sm py-xs text-body-sm font-mono text-body", children: [
6360
- "npm link ",
6361
- packageName
6362
- ] })
6363
- ] }),
6364
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "border border-hairline rounded-sm", children: [
6365
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
6366
- Button,
6367
- {
6368
- type: "button",
6369
- variant: "ghost",
6370
- size: "sm",
6371
- onClick: () => setNotesOpen((v) => !v),
6372
- "aria-expanded": notesOpen,
6373
- disabled: loading,
6374
- className: "w-full !justify-start !rounded-none gap-xs text-body",
6375
- children: [
6376
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ChevronIcon2, { open: notesOpen }),
6377
- "Release notes (optional)"
6378
- ]
6379
- }
6380
- ),
6381
- notesOpen && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "px-sm pb-sm", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6382
- "textarea",
6383
- {
6384
- value: notes,
6385
- onChange: (e) => setNotes(e.target.value),
6386
- placeholder: "What changed in this release?",
6387
- rows: 3,
6388
- disabled: loading,
6389
- className: "w-full resize-none rounded-sm border border-hairline bg-surface px-sm py-xs text-body-sm text-ink placeholder:text-muted-soft outline-none focus:ring-2 focus:ring-primary-focus/20 focus:border-primary-focus disabled:opacity-disabled"
6390
- }
6391
- ) })
6392
6246
  ] })
6393
- ] }),
6394
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
6395
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Publish summary" }),
6396
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-start gap-sm rounded-sm bg-primary/10 border border-primary/30 p-sm", children: [
6397
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-primary flex-shrink-0 mt-xxs", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(InfoIcon, {}) }),
6398
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { children: [
6399
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-sm font-weight-heading-sm text-primary", children: isProduction ? "Ready to publish" : "Ready to link" }),
6400
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-sm text-body", children: isProduction ? `This will publish version ${nextVersion} to the npm registry.` : `This will link ${packageName} for local development.` })
6401
- ] })
6402
- ] }),
6403
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "space-y-sm", children: summaryItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-start gap-sm", children: [
6404
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-semantic-success flex-shrink-0 mt-xxs", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CheckCircleIcon, {}) }),
6405
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { children: [
6406
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-sm font-weight-heading-sm text-ink", children: item.title }),
6407
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-sm text-muted", children: item.desc })
6408
- ] })
6409
- ] }, item.title)) })
6247
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-xxs", children: [
6248
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Link command" }),
6249
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("p", { className: "rounded-sm bg-surface-soft border border-hairline px-sm py-xs text-body-sm font-mono text-body", children: [
6250
+ "npm link ",
6251
+ packageName
6252
+ ] })
6410
6253
  ] })
6411
6254
  ] }),
6412
6255
  /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-sm rounded-md bg-surface-soft border border-hairline p-base", children: [
6413
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-sm bg-primary text-on-primary", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(LockIcon, {}) }),
6256
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-sm bg-primary text-on-primary", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { name: "lock-padlock", size: 16 }) }),
6414
6257
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-sm text-body", children: noticeText })
6415
6258
  ] })
6416
6259
  ] })
package/dist/index.js CHANGED
@@ -77,7 +77,8 @@ var ICON_REGISTRY = {
77
77
  "video-film-clapperboard": { viewBox: "0 0 24 24", paths: ["M4 6h10a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z", "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"] },
78
78
  "minus-indeterminate": { viewBox: "0 0 24 24", paths: ["M5 12h14"] },
79
79
  "cloud": { viewBox: "0 0 24 24", paths: ["M17.5 19a4.5 4.5 0 0 0 0-9 5.5 5.5 0 0 0-10.8-1.5A4 4 0 0 0 6.5 16", "M8 19h9.5"] },
80
- "download": { viewBox: "0 0 24 24", paths: ["M12 3v12", "M7 10l5 5 5-5", "M5 21h14"] }
80
+ "download": { viewBox: "0 0 24 24", paths: ["M12 3v12", "M7 10l5 5 5-5", "M5 21h14"] },
81
+ "refresh": { viewBox: "0 0 24 24", paths: ["M4 4v5h5", "M20 20v-5h-5", "M5.5 9A7 7 0 0 1 19 12", "M18.5 15A7 7 0 0 1 5 12"] }
81
82
  };
82
83
 
83
84
  // virtual-pkg:src/atoms/Icon/Icon.tsx
@@ -6087,56 +6088,6 @@ PricingPageTemplate.displayName = "PricingPageTemplate";
6087
6088
  // virtual-pkg:src/atoms/PublishModal/PublishModal.tsx
6088
6089
  import React33, { useState as useState6 } from "react";
6089
6090
  import { Fragment as Fragment5, jsx as jsx33, jsxs as jsxs31 } from "react/jsx-runtime";
6090
- var GlobeIcon = () => /* @__PURE__ */ jsxs31("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
6091
- /* @__PURE__ */ jsx33("circle", { cx: "12", cy: "12", r: "9" }),
6092
- /* @__PURE__ */ jsx33("path", { d: "M3 12h18" }),
6093
- /* @__PURE__ */ jsx33("path", { d: "M12 3a13.5 13.5 0 0 1 0 18" }),
6094
- /* @__PURE__ */ jsx33("path", { d: "M12 3a13.5 13.5 0 0 0 0 18" })
6095
- ] });
6096
- var LinkIcon = () => /* @__PURE__ */ jsxs31("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
6097
- /* @__PURE__ */ jsx33("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }),
6098
- /* @__PURE__ */ jsx33("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }),
6099
- /* @__PURE__ */ jsx33("line", { x1: "8", y1: "12", x2: "16", y2: "12" })
6100
- ] });
6101
- var InfoIcon = () => /* @__PURE__ */ jsxs31("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "currentColor", "aria-hidden": "true", children: [
6102
- /* @__PURE__ */ jsx33("circle", { cx: "12", cy: "12", r: "10", opacity: "0.15" }),
6103
- /* @__PURE__ */ jsx33("circle", { cx: "12", cy: "7.5", r: "1.15" }),
6104
- /* @__PURE__ */ jsx33("rect", { x: "11", y: "10.5", width: "2", height: "7", rx: "1" })
6105
- ] });
6106
- var CheckCircleIcon = () => /* @__PURE__ */ jsxs31("svg", { viewBox: "0 0 24 24", width: "18", height: "18", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
6107
- /* @__PURE__ */ jsx33("circle", { cx: "12", cy: "12", r: "9" }),
6108
- /* @__PURE__ */ jsx33("path", { d: "M8.5 12.5l2.2 2.2 4.8-5" })
6109
- ] });
6110
- var LockIcon = () => /* @__PURE__ */ jsxs31("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
6111
- /* @__PURE__ */ jsx33("rect", { x: "5", y: "10", width: "14", height: "10", rx: "2" }),
6112
- /* @__PURE__ */ jsx33("path", { d: "M8 10V7a4 4 0 0 1 8 0v3" })
6113
- ] });
6114
- var RefreshIcon = () => /* @__PURE__ */ jsxs31("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
6115
- /* @__PURE__ */ jsx33("path", { d: "M4 4v5h5" }),
6116
- /* @__PURE__ */ jsx33("path", { d: "M20 20v-5h-5" }),
6117
- /* @__PURE__ */ jsx33("path", { d: "M5.5 9A7 7 0 0 1 19 12" }),
6118
- /* @__PURE__ */ jsx33("path", { d: "M18.5 15A7 7 0 0 1 5 12" })
6119
- ] });
6120
- var ChevronIcon2 = ({ open }) => /* @__PURE__ */ jsx33(
6121
- "svg",
6122
- {
6123
- viewBox: "0 0 24 24",
6124
- width: "14",
6125
- height: "14",
6126
- fill: "none",
6127
- stroke: "currentColor",
6128
- strokeWidth: "2",
6129
- strokeLinecap: "round",
6130
- strokeLinejoin: "round",
6131
- "aria-hidden": "true",
6132
- className: ["transition-transform duration-150", open ? "rotate-90" : ""].join(" "),
6133
- children: /* @__PURE__ */ jsx33("path", { d: "M9 6l6 6-6 6" })
6134
- }
6135
- );
6136
- var SpinnerIcon = () => /* @__PURE__ */ jsxs31("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", "aria-hidden": "true", className: "animate-spin", children: [
6137
- /* @__PURE__ */ jsx33("circle", { cx: "12", cy: "12", r: "9", stroke: "currentColor", strokeWidth: "2", opacity: "0.25" }),
6138
- /* @__PURE__ */ jsx33("path", { d: "M21 12a9 9 0 0 0-9-9", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
6139
- ] });
6140
6091
  function bumpMinor(version) {
6141
6092
  const parts = version.split(".").map((n) => parseInt(n, 10) || 0);
6142
6093
  const [major = 0, minor = 0] = parts;
@@ -6153,22 +6104,12 @@ var PublishModal = React33.forwardRef(
6153
6104
  defaultTarget = "production",
6154
6105
  loading = false
6155
6106
  }, ref) => {
6156
- const [target, setTarget] = useState6(defaultTarget);
6107
+ const target = defaultTarget;
6157
6108
  const [nextVersion, setNextVersion] = useState6(
6158
6109
  defaultNextVersion ?? bumpMinor(currentVersion)
6159
6110
  );
6160
- const [notesOpen, setNotesOpen] = useState6(false);
6161
- const [notes, setNotes] = useState6("");
6162
6111
  const isProduction = target === "production";
6163
- const summaryItems = isProduction ? [
6164
- { title: "Package validated", desc: "All required fields are valid." },
6165
- { title: "No breaking changes", desc: "Compatible with previous versions." },
6166
- { title: "Access", desc: "You have publish access to this package." }
6167
- ] : [
6168
- { title: "Package built", desc: "Local build artifacts are up to date." },
6169
- { title: "Link target resolved", desc: "A local npm link target was found." },
6170
- { title: "No global conflicts", desc: "No other project links this package name." }
6171
- ];
6112
+ const introText = isProduction ? "Publish your package to the npm registry so others can install and use it." : "Publish this package locally with npm link for testing and internal use before a real release.";
6172
6113
  const noticeText = isProduction ? "Publishing to npm registry makes your package publicly available to the world. Make sure you're ready to release this version." : "Local publish creates an npm link only visible on this machine, for testing and internal use before a real release.";
6173
6114
  const handlePublish = () => onPublish?.(target, nextVersion);
6174
6115
  return /* @__PURE__ */ jsx33(
@@ -6189,161 +6130,63 @@ var PublishModal = React33.forwardRef(
6189
6130
  disabled: loading,
6190
6131
  "aria-busy": loading,
6191
6132
  children: loading ? /* @__PURE__ */ jsxs31(Fragment5, { children: [
6192
- /* @__PURE__ */ jsx33(SpinnerIcon, {}),
6133
+ /* @__PURE__ */ jsx33(Icon, { name: "loading-spinner", size: 16, className: "animate-spin" }),
6193
6134
  isProduction ? "Publishing\u2026" : "Linking\u2026"
6194
6135
  ] }) : isProduction ? "Publish to npm registry" : "Publish locally (npm link)"
6195
6136
  }
6196
6137
  )
6197
6138
  ] }),
6198
6139
  children: /* @__PURE__ */ jsxs31("div", { className: "w-full space-y-lg", children: [
6199
- /* @__PURE__ */ jsx33("p", { className: "text-body-md text-muted", children: "Publish your package to npm so others can install and use it. Choose between a production release to the npm registry or a local publish for testing and internal use." }),
6200
- /* @__PURE__ */ jsxs31(
6201
- "div",
6202
- {
6203
- role: "tablist",
6204
- "aria-label": "Publish target",
6205
- className: "flex items-center gap-lg border-b border-hairline",
6206
- children: [
6207
- /* @__PURE__ */ jsxs31(
6208
- Button,
6140
+ /* @__PURE__ */ jsx33("p", { className: "text-body-md text-muted", children: introText }),
6141
+ /* @__PURE__ */ jsxs31("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
6142
+ /* @__PURE__ */ jsx33("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Package details" }),
6143
+ /* @__PURE__ */ jsxs31("div", { className: "space-y-xxs", children: [
6144
+ /* @__PURE__ */ jsx33("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Package" }),
6145
+ /* @__PURE__ */ jsx33("p", { className: "text-body-md text-ink font-mono", children: packageName })
6146
+ ] }),
6147
+ /* @__PURE__ */ jsxs31("div", { className: "space-y-xxs", children: [
6148
+ /* @__PURE__ */ jsx33("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Current version" }),
6149
+ /* @__PURE__ */ jsxs31("div", { className: "flex items-center gap-xs", children: [
6150
+ /* @__PURE__ */ jsx33("p", { className: "text-body-md text-ink font-mono", children: currentVersion }),
6151
+ /* @__PURE__ */ jsx33(Chip, { label: "Latest", variant: "primary", size: "sm" })
6152
+ ] })
6153
+ ] }),
6154
+ isProduction ? /* @__PURE__ */ jsxs31("div", { className: "space-y-xxs", children: [
6155
+ /* @__PURE__ */ jsx33("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Next version" }),
6156
+ /* @__PURE__ */ jsxs31("div", { className: "flex items-center gap-xs", children: [
6157
+ /* @__PURE__ */ jsx33(
6158
+ Input,
6209
6159
  {
6210
- type: "button",
6211
- role: "tab",
6212
- "aria-selected": isProduction,
6213
- variant: "ghost",
6214
- size: "sm",
6215
- onClick: () => setTarget("production"),
6216
- disabled: loading,
6217
- className: [
6218
- "!rounded-none border-b-2 -mb-px",
6219
- isProduction ? "text-primary border-primary" : "text-muted border-transparent hover:text-ink"
6220
- ].join(" "),
6221
- children: [
6222
- /* @__PURE__ */ jsx33(GlobeIcon, {}),
6223
- "Production (npm registry)"
6224
- ]
6160
+ "aria-label": "Next version",
6161
+ value: nextVersion,
6162
+ onChange: (e) => setNextVersion(e.target.value),
6163
+ fullWidth: true,
6164
+ disabled: loading
6225
6165
  }
6226
6166
  ),
6227
- /* @__PURE__ */ jsxs31(
6167
+ /* @__PURE__ */ jsx33(
6228
6168
  Button,
6229
6169
  {
6230
- type: "button",
6231
- role: "tab",
6232
- "aria-selected": !isProduction,
6233
- variant: "ghost",
6234
- size: "sm",
6235
- onClick: () => setTarget("local"),
6170
+ variant: "secondary",
6171
+ size: "md",
6172
+ "aria-label": "Reset to suggested version",
6173
+ onClick: () => setNextVersion(bumpMinor(currentVersion)),
6236
6174
  disabled: loading,
6237
- className: [
6238
- "!rounded-none border-b-2 -mb-px",
6239
- !isProduction ? "text-primary border-primary" : "text-muted border-transparent hover:text-ink"
6240
- ].join(" "),
6241
- children: [
6242
- /* @__PURE__ */ jsx33(LinkIcon, {}),
6243
- "Local (npm link)"
6244
- ]
6175
+ className: "!px-sm",
6176
+ children: /* @__PURE__ */ jsx33(Icon, { name: "refresh", size: 16 })
6245
6177
  }
6246
6178
  )
6247
- ]
6248
- }
6249
- ),
6250
- /* @__PURE__ */ jsxs31("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-md", children: [
6251
- /* @__PURE__ */ jsxs31("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
6252
- /* @__PURE__ */ jsx33("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Package details" }),
6253
- /* @__PURE__ */ jsxs31("div", { className: "space-y-xxs", children: [
6254
- /* @__PURE__ */ jsx33("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Package" }),
6255
- /* @__PURE__ */ jsx33("p", { className: "text-body-md text-ink font-mono", children: packageName })
6256
- ] }),
6257
- /* @__PURE__ */ jsxs31("div", { className: "space-y-xxs", children: [
6258
- /* @__PURE__ */ jsx33("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Current version" }),
6259
- /* @__PURE__ */ jsxs31("div", { className: "flex items-center gap-xs", children: [
6260
- /* @__PURE__ */ jsx33("p", { className: "text-body-md text-ink font-mono", children: currentVersion }),
6261
- /* @__PURE__ */ jsx33(Chip, { label: "Latest", variant: "primary", size: "sm" })
6262
- ] })
6263
- ] }),
6264
- isProduction ? /* @__PURE__ */ jsxs31("div", { className: "space-y-xxs", children: [
6265
- /* @__PURE__ */ jsx33("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Next version" }),
6266
- /* @__PURE__ */ jsxs31("div", { className: "flex items-center gap-xs", children: [
6267
- /* @__PURE__ */ jsx33(
6268
- Input,
6269
- {
6270
- "aria-label": "Next version",
6271
- value: nextVersion,
6272
- onChange: (e) => setNextVersion(e.target.value),
6273
- fullWidth: true,
6274
- disabled: loading
6275
- }
6276
- ),
6277
- /* @__PURE__ */ jsx33(
6278
- Button,
6279
- {
6280
- variant: "secondary",
6281
- size: "md",
6282
- "aria-label": "Reset to suggested version",
6283
- onClick: () => setNextVersion(bumpMinor(currentVersion)),
6284
- disabled: loading,
6285
- className: "!px-sm",
6286
- children: /* @__PURE__ */ jsx33(RefreshIcon, {})
6287
- }
6288
- )
6289
- ] })
6290
- ] }) : /* @__PURE__ */ jsxs31("div", { className: "space-y-xxs", children: [
6291
- /* @__PURE__ */ jsx33("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Link command" }),
6292
- /* @__PURE__ */ jsxs31("p", { className: "rounded-sm bg-surface-soft border border-hairline px-sm py-xs text-body-sm font-mono text-body", children: [
6293
- "npm link ",
6294
- packageName
6295
- ] })
6296
- ] }),
6297
- /* @__PURE__ */ jsxs31("div", { className: "border border-hairline rounded-sm", children: [
6298
- /* @__PURE__ */ jsxs31(
6299
- Button,
6300
- {
6301
- type: "button",
6302
- variant: "ghost",
6303
- size: "sm",
6304
- onClick: () => setNotesOpen((v) => !v),
6305
- "aria-expanded": notesOpen,
6306
- disabled: loading,
6307
- className: "w-full !justify-start !rounded-none gap-xs text-body",
6308
- children: [
6309
- /* @__PURE__ */ jsx33(ChevronIcon2, { open: notesOpen }),
6310
- "Release notes (optional)"
6311
- ]
6312
- }
6313
- ),
6314
- notesOpen && /* @__PURE__ */ jsx33("div", { className: "px-sm pb-sm", children: /* @__PURE__ */ jsx33(
6315
- "textarea",
6316
- {
6317
- value: notes,
6318
- onChange: (e) => setNotes(e.target.value),
6319
- placeholder: "What changed in this release?",
6320
- rows: 3,
6321
- disabled: loading,
6322
- className: "w-full resize-none rounded-sm border border-hairline bg-surface px-sm py-xs text-body-sm text-ink placeholder:text-muted-soft outline-none focus:ring-2 focus:ring-primary-focus/20 focus:border-primary-focus disabled:opacity-disabled"
6323
- }
6324
- ) })
6325
6179
  ] })
6326
- ] }),
6327
- /* @__PURE__ */ jsxs31("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
6328
- /* @__PURE__ */ jsx33("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Publish summary" }),
6329
- /* @__PURE__ */ jsxs31("div", { className: "flex items-start gap-sm rounded-sm bg-primary/10 border border-primary/30 p-sm", children: [
6330
- /* @__PURE__ */ jsx33("span", { className: "text-primary flex-shrink-0 mt-xxs", children: /* @__PURE__ */ jsx33(InfoIcon, {}) }),
6331
- /* @__PURE__ */ jsxs31("div", { children: [
6332
- /* @__PURE__ */ jsx33("p", { className: "text-body-sm font-weight-heading-sm text-primary", children: isProduction ? "Ready to publish" : "Ready to link" }),
6333
- /* @__PURE__ */ jsx33("p", { className: "text-body-sm text-body", children: isProduction ? `This will publish version ${nextVersion} to the npm registry.` : `This will link ${packageName} for local development.` })
6334
- ] })
6335
- ] }),
6336
- /* @__PURE__ */ jsx33("div", { className: "space-y-sm", children: summaryItems.map((item) => /* @__PURE__ */ jsxs31("div", { className: "flex items-start gap-sm", children: [
6337
- /* @__PURE__ */ jsx33("span", { className: "text-semantic-success flex-shrink-0 mt-xxs", children: /* @__PURE__ */ jsx33(CheckCircleIcon, {}) }),
6338
- /* @__PURE__ */ jsxs31("div", { children: [
6339
- /* @__PURE__ */ jsx33("p", { className: "text-body-sm font-weight-heading-sm text-ink", children: item.title }),
6340
- /* @__PURE__ */ jsx33("p", { className: "text-body-sm text-muted", children: item.desc })
6341
- ] })
6342
- ] }, item.title)) })
6180
+ ] }) : /* @__PURE__ */ jsxs31("div", { className: "space-y-xxs", children: [
6181
+ /* @__PURE__ */ jsx33("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Link command" }),
6182
+ /* @__PURE__ */ jsxs31("p", { className: "rounded-sm bg-surface-soft border border-hairline px-sm py-xs text-body-sm font-mono text-body", children: [
6183
+ "npm link ",
6184
+ packageName
6185
+ ] })
6343
6186
  ] })
6344
6187
  ] }),
6345
6188
  /* @__PURE__ */ jsxs31("div", { className: "flex items-center gap-sm rounded-md bg-surface-soft border border-hairline p-base", children: [
6346
- /* @__PURE__ */ jsx33("span", { className: "flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-sm bg-primary text-on-primary", children: /* @__PURE__ */ jsx33(LockIcon, {}) }),
6189
+ /* @__PURE__ */ jsx33("span", { className: "flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-sm bg-primary text-on-primary", children: /* @__PURE__ */ jsx33(Icon, { name: "lock-padlock", size: 16 }) }),
6347
6190
  /* @__PURE__ */ jsx33("p", { className: "text-body-sm text-body", children: noticeText })
6348
6191
  ] })
6349
6192
  ] })
package/dist/styles.css CHANGED
@@ -442,9 +442,6 @@
442
442
  .\!mr-xs {
443
443
  margin-right: var(--spacing-xs) !important;
444
444
  }
445
- .-mb-px {
446
- margin-bottom: -1px;
447
- }
448
445
  .mb-0 {
449
446
  margin-bottom: 0;
450
447
  }
@@ -842,9 +839,6 @@
842
839
  .rotate-0 {
843
840
  rotate: 0deg;
844
841
  }
845
- .rotate-90 {
846
- rotate: 90deg;
847
- }
848
842
  .rotate-180 {
849
843
  rotate: 180deg;
850
844
  }
@@ -1159,12 +1153,6 @@
1159
1153
  .border-primary-disabled {
1160
1154
  border-color: var(--color-primary-disabled);
1161
1155
  }
1162
- .border-primary\/30 {
1163
- border-color: color-mix(in srgb, #6B63D6 30%, transparent);
1164
- @supports (color: color-mix(in lab, red, red)) {
1165
- border-color: color-mix(in oklab, var(--color-primary) 30%, transparent);
1166
- }
1167
- }
1168
1156
  .border-semantic-error {
1169
1157
  border-color: var(--color-semantic-error);
1170
1158
  }
@@ -1225,12 +1213,6 @@
1225
1213
  .bg-primary-hover {
1226
1214
  background-color: var(--color-primary-hover);
1227
1215
  }
1228
- .bg-primary\/10 {
1229
- background-color: color-mix(in srgb, #6B63D6 10%, transparent);
1230
- @supports (color: color-mix(in lab, red, red)) {
1231
- background-color: color-mix(in oklab, var(--color-primary) 10%, transparent);
1232
- }
1233
- }
1234
1216
  .bg-semantic-error {
1235
1217
  background-color: var(--color-semantic-error);
1236
1218
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-v6",
3
- "version": "1.20.13",
3
+ "version": "1.20.14",
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",
@@ -62,6 +62,7 @@ export const ICON_REGISTRY = {
62
62
  "minus-indeterminate": { viewBox: "0 0 24 24", paths: ["M5 12h14"] },
63
63
  "cloud": { viewBox: "0 0 24 24", paths: ["M17.5 19a4.5 4.5 0 0 0 0-9 5.5 5.5 0 0 0-10.8-1.5A4 4 0 0 0 6.5 16", "M8 19h9.5"] },
64
64
  "download": { viewBox: "0 0 24 24", paths: ["M12 3v12", "M7 10l5 5 5-5", "M5 21h14"] },
65
+ "refresh": { viewBox: "0 0 24 24", paths: ["M4 4v5h5", "M20 20v-5h-5", "M5.5 9A7 7 0 0 1 19 12", "M18.5 15A7 7 0 0 1 5 12"] },
65
66
  } as const;
66
67
 
67
68
  export type IconName = keyof typeof ICON_REGISTRY;
@@ -3,6 +3,7 @@ import { Modal } from "../Modal";
3
3
  import { Button } from "../Button";
4
4
  import { Input } from "../Input";
5
5
  import { Chip } from "../Chip";
6
+ import { Icon } from "../Icon";
6
7
 
7
8
  export type PublishTarget = "production" | "local";
8
9
 
@@ -19,84 +20,12 @@ export interface PublishModalProps {
19
20
  currentVersion?: string;
20
21
  /** Suggested next version (editable) */
21
22
  defaultNextVersion?: string;
22
- /** Which tab is selected by default */
23
+ /** The env-determined publish target. There is no in-modal switcher — this is the target. */
23
24
  defaultTarget?: PublishTarget;
24
- /** When true, the publish action is in-flight: disables the tabs, Cancel, and shows a spinner on the submit button */
25
+ /** When true, the publish action is in-flight: disables inputs and Cancel, and shows a spinner on the submit button */
25
26
  loading?: boolean;
26
27
  }
27
28
 
28
- const GlobeIcon = () => (
29
- <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
30
- <circle cx="12" cy="12" r="9" />
31
- <path d="M3 12h18" />
32
- <path d="M12 3a13.5 13.5 0 0 1 0 18" />
33
- <path d="M12 3a13.5 13.5 0 0 0 0 18" />
34
- </svg>
35
- );
36
-
37
- const LinkIcon = () => (
38
- <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
39
- <path d="M9 17H7A5 5 0 0 1 7 7h2" />
40
- <path d="M15 7h2a5 5 0 1 1 0 10h-2" />
41
- <line x1="8" y1="12" x2="16" y2="12" />
42
- </svg>
43
- );
44
-
45
- const InfoIcon = () => (
46
- <svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true">
47
- <circle cx="12" cy="12" r="10" opacity="0.15" />
48
- <circle cx="12" cy="7.5" r="1.15" />
49
- <rect x="11" y="10.5" width="2" height="7" rx="1" />
50
- </svg>
51
- );
52
-
53
- const CheckCircleIcon = () => (
54
- <svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
55
- <circle cx="12" cy="12" r="9" />
56
- <path d="M8.5 12.5l2.2 2.2 4.8-5" />
57
- </svg>
58
- );
59
-
60
- const LockIcon = () => (
61
- <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
62
- <rect x="5" y="10" width="14" height="10" rx="2" />
63
- <path d="M8 10V7a4 4 0 0 1 8 0v3" />
64
- </svg>
65
- );
66
-
67
- const RefreshIcon = () => (
68
- <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
69
- <path d="M4 4v5h5" />
70
- <path d="M20 20v-5h-5" />
71
- <path d="M5.5 9A7 7 0 0 1 19 12" />
72
- <path d="M18.5 15A7 7 0 0 1 5 12" />
73
- </svg>
74
- );
75
-
76
- const ChevronIcon = ({ open }: { open: boolean }) => (
77
- <svg
78
- viewBox="0 0 24 24"
79
- width="14"
80
- height="14"
81
- fill="none"
82
- stroke="currentColor"
83
- strokeWidth="2"
84
- strokeLinecap="round"
85
- strokeLinejoin="round"
86
- aria-hidden="true"
87
- className={["transition-transform duration-150", open ? "rotate-90" : ""].join(" ")}
88
- >
89
- <path d="M9 6l6 6-6 6" />
90
- </svg>
91
- );
92
-
93
- const SpinnerIcon = () => (
94
- <svg viewBox="0 0 24 24" width="16" height="16" fill="none" aria-hidden="true" className="animate-spin">
95
- <circle cx="12" cy="12" r="9" stroke="currentColor" strokeWidth="2" opacity="0.25" />
96
- <path d="M21 12a9 9 0 0 0-9-9" stroke="currentColor" strokeWidth="2" strokeLinecap="round" />
97
- </svg>
98
- );
99
-
100
29
  function bumpMinor(version: string): string {
101
30
  const parts = version.split(".").map((n) => parseInt(n, 10) || 0);
102
31
  const [major = 0, minor = 0] = parts;
@@ -117,26 +46,16 @@ export const PublishModal = React.forwardRef<HTMLDivElement, PublishModalProps>(
117
46
  },
118
47
  ref
119
48
  ) => {
120
- const [target, setTarget] = useState<PublishTarget>(defaultTarget);
49
+ const target = defaultTarget;
121
50
  const [nextVersion, setNextVersion] = useState(
122
51
  defaultNextVersion ?? bumpMinor(currentVersion)
123
52
  );
124
- const [notesOpen, setNotesOpen] = useState(false);
125
- const [notes, setNotes] = useState("");
126
53
 
127
54
  const isProduction = target === "production";
128
55
 
129
- const summaryItems = isProduction
130
- ? [
131
- { title: "Package validated", desc: "All required fields are valid." },
132
- { title: "No breaking changes", desc: "Compatible with previous versions." },
133
- { title: "Access", desc: "You have publish access to this package." },
134
- ]
135
- : [
136
- { title: "Package built", desc: "Local build artifacts are up to date." },
137
- { title: "Link target resolved", desc: "A local npm link target was found." },
138
- { title: "No global conflicts", desc: "No other project links this package name." },
139
- ];
56
+ const introText = isProduction
57
+ ? "Publish your package to the npm registry so others can install and use it."
58
+ : "Publish this package locally with npm link for testing and internal use before a real release.";
140
59
 
141
60
  const noticeText = isProduction
142
61
  ? "Publishing to npm registry makes your package publicly available to the world. Make sure you're ready to release this version."
@@ -164,7 +83,7 @@ export const PublishModal = React.forwardRef<HTMLDivElement, PublishModalProps>(
164
83
  >
165
84
  {loading ? (
166
85
  <>
167
- <SpinnerIcon />
86
+ <Icon name="loading-spinner" size={16} className="animate-spin" />
168
87
  {isProduction ? "Publishing…" : "Linking…"}
169
88
  </>
170
89
  ) : isProduction ? (
@@ -177,189 +96,72 @@ export const PublishModal = React.forwardRef<HTMLDivElement, PublishModalProps>(
177
96
  }
178
97
  >
179
98
  <div className="w-full space-y-lg">
180
- <p className="text-body-md text-muted">
181
- Publish your package to npm so others can install and use it.
182
- Choose between a production release to the npm registry or a
183
- local publish for testing and internal use.
184
- </p>
99
+ <p className="text-body-md text-muted">{introText}</p>
185
100
 
186
- {/* Tabs — underline style */}
187
- <div
188
- role="tablist"
189
- aria-label="Publish target"
190
- className="flex items-center gap-lg border-b border-hairline"
191
- >
192
- <Button
193
- type="button"
194
- role="tab"
195
- aria-selected={isProduction}
196
- variant="ghost"
197
- size="sm"
198
- onClick={() => setTarget("production")}
199
- disabled={loading}
200
- className={[
201
- "!rounded-none border-b-2 -mb-px",
202
- isProduction
203
- ? "text-primary border-primary"
204
- : "text-muted border-transparent hover:text-ink",
205
- ].join(" ")}
206
- >
207
- <GlobeIcon />
208
- Production (npm registry)
209
- </Button>
210
- <Button
211
- type="button"
212
- role="tab"
213
- aria-selected={!isProduction}
214
- variant="ghost"
215
- size="sm"
216
- onClick={() => setTarget("local")}
217
- disabled={loading}
218
- className={[
219
- "!rounded-none border-b-2 -mb-px",
220
- !isProduction
221
- ? "text-primary border-primary"
222
- : "text-muted border-transparent hover:text-ink",
223
- ].join(" ")}
224
- >
225
- <LinkIcon />
226
- Local (npm link)
227
- </Button>
228
- </div>
101
+ {/* Package details */}
102
+ <div className="rounded-md border border-hairline p-base space-y-base">
103
+ <p className="text-body-md font-weight-heading-sm text-ink">
104
+ Package details
105
+ </p>
229
106
 
230
- {/* Two-column detail grid */}
231
- <div className="grid grid-cols-1 md:grid-cols-2 gap-md">
232
- {/* Package details */}
233
- <div className="rounded-md border border-hairline p-base space-y-base">
234
- <p className="text-body-md font-weight-heading-sm text-ink">
235
- Package details
107
+ <div className="space-y-xxs">
108
+ <p className="text-caption uppercase tracking-wide text-muted">
109
+ Package
236
110
  </p>
111
+ <p className="text-body-md text-ink font-mono">{packageName}</p>
112
+ </div>
237
113
 
238
- <div className="space-y-xxs">
239
- <p className="text-caption uppercase tracking-wide text-muted">
240
- Package
241
- </p>
242
- <p className="text-body-md text-ink font-mono">{packageName}</p>
114
+ <div className="space-y-xxs">
115
+ <p className="text-caption uppercase tracking-wide text-muted">
116
+ Current version
117
+ </p>
118
+ <div className="flex items-center gap-xs">
119
+ <p className="text-body-md text-ink font-mono">{currentVersion}</p>
120
+ <Chip label="Latest" variant="primary" size="sm" />
243
121
  </div>
122
+ </div>
244
123
 
124
+ {isProduction ? (
245
125
  <div className="space-y-xxs">
246
126
  <p className="text-caption uppercase tracking-wide text-muted">
247
- Current version
127
+ Next version
248
128
  </p>
249
129
  <div className="flex items-center gap-xs">
250
- <p className="text-body-md text-ink font-mono">{currentVersion}</p>
251
- <Chip label="Latest" variant="primary" size="sm" />
130
+ <Input
131
+ aria-label="Next version"
132
+ value={nextVersion}
133
+ onChange={(e) => setNextVersion(e.target.value)}
134
+ fullWidth
135
+ disabled={loading}
136
+ />
137
+ <Button
138
+ variant="secondary"
139
+ size="md"
140
+ aria-label="Reset to suggested version"
141
+ onClick={() => setNextVersion(bumpMinor(currentVersion))}
142
+ disabled={loading}
143
+ className="!px-sm"
144
+ >
145
+ <Icon name="refresh" size={16} />
146
+ </Button>
252
147
  </div>
253
148
  </div>
254
-
255
- {isProduction ? (
256
- <div className="space-y-xxs">
257
- <p className="text-caption uppercase tracking-wide text-muted">
258
- Next version
259
- </p>
260
- <div className="flex items-center gap-xs">
261
- <Input
262
- aria-label="Next version"
263
- value={nextVersion}
264
- onChange={(e) => setNextVersion(e.target.value)}
265
- fullWidth
266
- disabled={loading}
267
- />
268
- <Button
269
- variant="secondary"
270
- size="md"
271
- aria-label="Reset to suggested version"
272
- onClick={() => setNextVersion(bumpMinor(currentVersion))}
273
- disabled={loading}
274
- className="!px-sm"
275
- >
276
- <RefreshIcon />
277
- </Button>
278
- </div>
279
- </div>
280
- ) : (
281
- <div className="space-y-xxs">
282
- <p className="text-caption uppercase tracking-wide text-muted">
283
- Link command
284
- </p>
285
- <p className="rounded-sm bg-surface-soft border border-hairline px-sm py-xs text-body-sm font-mono text-body">
286
- npm link {packageName}
287
- </p>
288
- </div>
289
- )}
290
-
291
- <div className="border border-hairline rounded-sm">
292
- <Button
293
- type="button"
294
- variant="ghost"
295
- size="sm"
296
- onClick={() => setNotesOpen((v) => !v)}
297
- aria-expanded={notesOpen}
298
- disabled={loading}
299
- className="w-full !justify-start !rounded-none gap-xs text-body"
300
- >
301
- <ChevronIcon open={notesOpen} />
302
- Release notes (optional)
303
- </Button>
304
- {notesOpen && (
305
- <div className="px-sm pb-sm">
306
- <textarea
307
- value={notes}
308
- onChange={(e) => setNotes(e.target.value)}
309
- placeholder="What changed in this release?"
310
- rows={3}
311
- disabled={loading}
312
- className="w-full resize-none rounded-sm border border-hairline bg-surface px-sm py-xs text-body-sm text-ink placeholder:text-muted-soft outline-none focus:ring-2 focus:ring-primary-focus/20 focus:border-primary-focus disabled:opacity-disabled"
313
- />
314
- </div>
315
- )}
316
- </div>
317
- </div>
318
-
319
- {/* Publish summary */}
320
- <div className="rounded-md border border-hairline p-base space-y-base">
321
- <p className="text-body-md font-weight-heading-sm text-ink">
322
- Publish summary
323
- </p>
324
-
325
- <div className="flex items-start gap-sm rounded-sm bg-primary/10 border border-primary/30 p-sm">
326
- <span className="text-primary flex-shrink-0 mt-xxs">
327
- <InfoIcon />
328
- </span>
329
- <div>
330
- <p className="text-body-sm font-weight-heading-sm text-primary">
331
- {isProduction ? "Ready to publish" : "Ready to link"}
332
- </p>
333
- <p className="text-body-sm text-body">
334
- {isProduction
335
- ? `This will publish version ${nextVersion} to the npm registry.`
336
- : `This will link ${packageName} for local development.`}
337
- </p>
338
- </div>
339
- </div>
340
-
341
- <div className="space-y-sm">
342
- {summaryItems.map((item) => (
343
- <div key={item.title} className="flex items-start gap-sm">
344
- <span className="text-semantic-success flex-shrink-0 mt-xxs">
345
- <CheckCircleIcon />
346
- </span>
347
- <div>
348
- <p className="text-body-sm font-weight-heading-sm text-ink">
349
- {item.title}
350
- </p>
351
- <p className="text-body-sm text-muted">{item.desc}</p>
352
- </div>
353
- </div>
354
- ))}
149
+ ) : (
150
+ <div className="space-y-xxs">
151
+ <p className="text-caption uppercase tracking-wide text-muted">
152
+ Link command
153
+ </p>
154
+ <p className="rounded-sm bg-surface-soft border border-hairline px-sm py-xs text-body-sm font-mono text-body">
155
+ npm link {packageName}
156
+ </p>
355
157
  </div>
356
- </div>
158
+ )}
357
159
  </div>
358
160
 
359
161
  {/* Notice */}
360
162
  <div className="flex items-center gap-sm rounded-md bg-surface-soft border border-hairline p-base">
361
163
  <span className="flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-sm bg-primary text-on-primary">
362
- <LockIcon />
164
+ <Icon name="lock-padlock" size={16} />
363
165
  </span>
364
166
  <p className="text-body-sm text-body">{noticeText}</p>
365
167
  </div>