@designa8/vibedesign-v6 1.20.12 → 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/dist/index.js CHANGED
@@ -75,7 +75,10 @@ var ICON_REGISTRY = {
75
75
  "image-placeholder-dashed-frame": { viewBox: "0 0 72 72", paths: ["M4 4h64v64H4z", "M14 14h20v20H14z", "M38 14h20v20H38z", "M14 38h44v12H14z"] },
76
76
  "image-photo-picture": { viewBox: "0 0 24 24", paths: ["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Z", "M11 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z", "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"] },
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
- "minus-indeterminate": { viewBox: "0 0 24 24", paths: ["M5 12h14"] }
78
+ "minus-indeterminate": { viewBox: "0 0 24 24", paths: ["M5 12h14"] },
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"] },
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"] }
79
82
  };
80
83
 
81
84
  // virtual-pkg:src/atoms/Icon/Icon.tsx
@@ -5102,7 +5105,7 @@ var Dropdown = React24.forwardRef(
5102
5105
  Dropdown.displayName = "Dropdown";
5103
5106
 
5104
5107
  // virtual-pkg:src/atoms/ExportDesignMdModal/ExportDesignMdModal.tsx
5105
- import React26, { useState as useState6 } from "react";
5108
+ import React26 from "react";
5106
5109
 
5107
5110
  // virtual-pkg:src/atoms/Typography/Typography.tsx
5108
5111
  import React25 from "react";
@@ -5192,113 +5195,20 @@ var defaultLines = [
5192
5195
  { text: "muted: {colors.muted}" },
5193
5196
  { text: "hairline: {colors.hairline}" }
5194
5197
  ];
5195
- var CloudIcon = () => /* @__PURE__ */ jsxs24(
5196
- "svg",
5197
- {
5198
- viewBox: "0 0 24 24",
5199
- width: "16",
5200
- height: "16",
5201
- fill: "none",
5202
- stroke: "currentColor",
5203
- strokeWidth: "2",
5204
- strokeLinecap: "round",
5205
- strokeLinejoin: "round",
5206
- "aria-hidden": "true",
5207
- children: [
5208
- /* @__PURE__ */ jsx26("path", { d: "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" }),
5209
- /* @__PURE__ */ jsx26("path", { d: "M8 19h9.5" })
5210
- ]
5211
- }
5212
- );
5213
- var LinkIcon = () => /* @__PURE__ */ jsxs24(
5214
- "svg",
5215
- {
5216
- viewBox: "0 0 24 24",
5217
- width: "16",
5218
- height: "16",
5219
- fill: "none",
5220
- stroke: "currentColor",
5221
- strokeWidth: "2",
5222
- strokeLinecap: "round",
5223
- strokeLinejoin: "round",
5224
- "aria-hidden": "true",
5225
- children: [
5226
- /* @__PURE__ */ jsx26("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }),
5227
- /* @__PURE__ */ jsx26("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }),
5228
- /* @__PURE__ */ jsx26("line", { x1: "8", y1: "12", x2: "16", y2: "12" })
5229
- ]
5230
- }
5231
- );
5232
- var CopyIcon = () => /* @__PURE__ */ jsxs24(
5233
- "svg",
5234
- {
5235
- viewBox: "0 0 24 24",
5236
- width: "14",
5237
- height: "14",
5238
- fill: "none",
5239
- stroke: "currentColor",
5240
- strokeWidth: "2",
5241
- strokeLinecap: "round",
5242
- strokeLinejoin: "round",
5243
- "aria-hidden": "true",
5244
- children: [
5245
- /* @__PURE__ */ jsx26("rect", { x: "9", y: "9", width: "11", height: "11", rx: "2" }),
5246
- /* @__PURE__ */ jsx26("path", { d: "M5 15V5a2 2 0 0 1 2-2h10" })
5247
- ]
5248
- }
5249
- );
5250
- var DownloadIcon = () => /* @__PURE__ */ jsxs24(
5251
- "svg",
5252
- {
5253
- viewBox: "0 0 24 24",
5254
- width: "14",
5255
- height: "14",
5256
- fill: "none",
5257
- stroke: "currentColor",
5258
- strokeWidth: "2",
5259
- strokeLinecap: "round",
5260
- strokeLinejoin: "round",
5261
- "aria-hidden": "true",
5262
- children: [
5263
- /* @__PURE__ */ jsx26("path", { d: "M12 3v12" }),
5264
- /* @__PURE__ */ jsx26("path", { d: "M7 10l5 5 5-5" }),
5265
- /* @__PURE__ */ jsx26("path", { d: "M5 21h14" })
5266
- ]
5267
- }
5268
- );
5269
- var SpinnerIcon = () => /* @__PURE__ */ jsxs24(
5270
- "svg",
5271
- {
5272
- viewBox: "0 0 24 24",
5273
- width: "20",
5274
- height: "20",
5275
- fill: "none",
5276
- className: "animate-spin text-primary",
5277
- "aria-hidden": "true",
5278
- children: [
5279
- /* @__PURE__ */ jsx26(
5280
- "circle",
5281
- {
5282
- cx: "12",
5283
- cy: "12",
5284
- r: "9",
5285
- stroke: "currentColor",
5286
- strokeWidth: "2.5",
5287
- strokeOpacity: "0.25"
5288
- }
5289
- ),
5290
- /* @__PURE__ */ jsx26(
5291
- "path",
5292
- {
5293
- d: "M21 12a9 9 0 0 0-9-9",
5294
- stroke: "currentColor",
5295
- strokeWidth: "2.5",
5296
- strokeLinecap: "round"
5297
- }
5298
- )
5299
- ]
5198
+ var SOURCE_INFO = {
5199
+ production: {
5200
+ icon: "cloud",
5201
+ title: "Production (npm install)",
5202
+ description: "Generated for public npm registry consumption.",
5203
+ helper: "Consumer apps install from the public npm registry ('npm install')."
5204
+ },
5205
+ local: {
5206
+ icon: "external-link-arrow-up-right",
5207
+ title: "Local (npm link)",
5208
+ description: "Generated for local development with npm link.",
5209
+ helper: "Consumer apps resolve the package via a local 'npm link' during development."
5300
5210
  }
5301
- );
5211
+ };
5302
5212
  var ExportDesignMdModal = React26.forwardRef(
5303
5213
  ({
5304
5214
  isOpen,
@@ -5306,17 +5216,13 @@ var ExportDesignMdModal = React26.forwardRef(
5306
5216
  onExport,
5307
5217
  onDownload,
5308
5218
  onCopy,
5309
- onSourceChange,
5310
5219
  designSystemName = "Design System",
5311
5220
  defaultSource = "production",
5312
5221
  lines = defaultLines,
5313
5222
  loading = false
5314
5223
  }, ref) => {
5315
- const [source, setSource] = useState6(defaultSource);
5316
- const changeSource = (next) => {
5317
- setSource(next);
5318
- onSourceChange?.(next);
5319
- };
5224
+ const source = defaultSource;
5225
+ const info = SOURCE_INFO[source];
5320
5226
  const handleCopy = () => {
5321
5227
  const text = lines.map((l) => l.text).join("\n");
5322
5228
  if (typeof navigator !== "undefined" && navigator.clipboard) {
@@ -5335,7 +5241,7 @@ var ExportDesignMdModal = React26.forwardRef(
5335
5241
  size: "xl",
5336
5242
  footer: /* @__PURE__ */ jsxs24("div", { className: "flex w-full items-center justify-between", children: [
5337
5243
  /* @__PURE__ */ jsxs24(Button, { variant: "secondary", size: "sm", onClick: onDownload, children: [
5338
- /* @__PURE__ */ jsx26(DownloadIcon, {}),
5244
+ /* @__PURE__ */ jsx26(Icon, { name: "download" }),
5339
5245
  "Download .md"
5340
5246
  ] }),
5341
5247
  /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-sm", children: [
@@ -5345,35 +5251,15 @@ var ExportDesignMdModal = React26.forwardRef(
5345
5251
  ] }),
5346
5252
  children: /* @__PURE__ */ jsxs24("div", { className: "w-full space-y-lg", children: [
5347
5253
  /* @__PURE__ */ jsx26(Typography, { role: "body-md", color: "muted", children: "Generate and export the DESIGN.md file for handoff to AI coding agents or your team." }),
5348
- /* @__PURE__ */ jsxs24("div", { className: "flex flex-wrap items-center justify-between gap-md", children: [
5349
- /* @__PURE__ */ jsxs24("div", { className: "inline-flex items-center gap-xs p-xxs bg-surface-soft border border-hairline rounded-md", children: [
5350
- /* @__PURE__ */ jsxs24(
5351
- Button,
5352
- {
5353
- variant: source === "production" ? "primary" : "ghost",
5354
- size: "sm",
5355
- onClick: () => changeSource("production"),
5356
- children: [
5357
- /* @__PURE__ */ jsx26(CloudIcon, {}),
5358
- "Production"
5359
- ]
5360
- }
5361
- ),
5362
- /* @__PURE__ */ jsxs24(
5363
- Button,
5364
- {
5365
- variant: source === "local" ? "primary" : "ghost",
5366
- size: "sm",
5367
- onClick: () => changeSource("local"),
5368
- children: [
5369
- /* @__PURE__ */ jsx26(LinkIcon, {}),
5370
- "Local (npm link)"
5371
- ]
5372
- }
5373
- )
5254
+ /* @__PURE__ */ jsxs24("div", { className: "flex w-full items-center gap-md p-md bg-surface-soft border border-hairline rounded-md", children: [
5255
+ /* @__PURE__ */ jsx26("span", { className: "flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-sm bg-surface border border-hairline text-primary", children: /* @__PURE__ */ jsx26(Icon, { name: info.icon }) }),
5256
+ /* @__PURE__ */ jsxs24("div", { className: "min-w-0 flex-1", children: [
5257
+ /* @__PURE__ */ jsx26(Typography, { role: "body-md", color: "ink", className: "font-weight-heading-sm", children: info.title }),
5258
+ /* @__PURE__ */ jsx26(Typography, { role: "body-sm", color: "muted", children: info.description })
5374
5259
  ] }),
5375
- /* @__PURE__ */ jsx26(Typography, { role: "body-sm", color: "muted", className: "flex-1 min-w-[16rem]", children: source === "production" ? "Consumer apps install from the public npm registry ('npm install')." : "Consumer apps resolve the package via a local 'npm link' during development." })
5260
+ /* @__PURE__ */ jsx26(Chip, { label: "Active", variant: "primary", size: "sm" })
5376
5261
  ] }),
5262
+ /* @__PURE__ */ jsx26(Typography, { role: "body-sm", color: "muted", children: info.helper }),
5377
5263
  /* @__PURE__ */ jsxs24("div", { children: [
5378
5264
  /* @__PURE__ */ jsx26(
5379
5265
  Typography,
@@ -5394,7 +5280,7 @@ var ExportDesignMdModal = React26.forwardRef(
5394
5280
  onClick: handleCopy,
5395
5281
  className: "absolute top-sm right-sm",
5396
5282
  children: [
5397
- /* @__PURE__ */ jsx26(CopyIcon, {}),
5283
+ /* @__PURE__ */ jsx26(Icon, { name: "copy-clipboard" }),
5398
5284
  "Copy"
5399
5285
  ]
5400
5286
  }
@@ -5417,46 +5303,12 @@ var ExportDesignMdModal = React26.forwardRef(
5417
5303
  "aria-label": "Loading preview",
5418
5304
  className: "absolute inset-0 flex items-center justify-center gap-sm bg-canvas opacity-90",
5419
5305
  children: [
5420
- /* @__PURE__ */ jsx26(SpinnerIcon, {}),
5306
+ /* @__PURE__ */ jsx26(Icon, { name: "loading-spinner", className: "animate-spin text-primary" }),
5421
5307
  /* @__PURE__ */ jsx26(Typography, { role: "body-sm", color: "muted", children: "Loading preview\u2026" })
5422
5308
  ]
5423
5309
  }
5424
5310
  ) : null
5425
5311
  ] })
5426
- ] }),
5427
- /* @__PURE__ */ jsxs24("div", { className: "w-full space-y-sm", children: [
5428
- /* @__PURE__ */ jsxs24("div", { className: "flex w-full items-center gap-md p-md bg-surface-soft border border-hairline rounded-md", children: [
5429
- /* @__PURE__ */ jsx26("span", { className: "flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-sm bg-surface border border-hairline text-primary", children: /* @__PURE__ */ jsx26(CloudIcon, {}) }),
5430
- /* @__PURE__ */ jsxs24("div", { className: "min-w-0 flex-1", children: [
5431
- /* @__PURE__ */ jsx26(Typography, { role: "body-md", color: "ink", className: "font-weight-heading-sm", children: "Production (npm install)" }),
5432
- /* @__PURE__ */ jsx26(Typography, { role: "body-sm", color: "muted", children: "Generated for public npm registry consumption." })
5433
- ] }),
5434
- source === "production" ? /* @__PURE__ */ jsx26(Chip, { label: "Active", variant: "primary", size: "sm" }) : /* @__PURE__ */ jsx26(
5435
- Button,
5436
- {
5437
- variant: "secondary",
5438
- size: "sm",
5439
- onClick: () => changeSource("production"),
5440
- children: "Switch"
5441
- }
5442
- )
5443
- ] }),
5444
- /* @__PURE__ */ jsxs24("div", { className: "flex w-full items-center gap-md p-md bg-surface-soft border border-hairline rounded-md", children: [
5445
- /* @__PURE__ */ jsx26("span", { className: "flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-sm bg-surface border border-hairline text-muted", children: /* @__PURE__ */ jsx26(LinkIcon, {}) }),
5446
- /* @__PURE__ */ jsxs24("div", { className: "min-w-0 flex-1", children: [
5447
- /* @__PURE__ */ jsx26(Typography, { role: "body-md", color: "ink", className: "font-weight-heading-sm", children: "Local (npm link)" }),
5448
- /* @__PURE__ */ jsx26(Typography, { role: "body-sm", color: "muted", children: "Generated for local development with npm link." })
5449
- ] }),
5450
- source === "local" ? /* @__PURE__ */ jsx26(Chip, { label: "Active", variant: "primary", size: "sm" }) : /* @__PURE__ */ jsx26(
5451
- Button,
5452
- {
5453
- variant: "secondary",
5454
- size: "sm",
5455
- onClick: () => changeSource("local"),
5456
- children: "Switch"
5457
- }
5458
- )
5459
- ] })
5460
5312
  ] })
5461
5313
  ] })
5462
5314
  }
@@ -6234,58 +6086,8 @@ var PricingPageTemplate = React32.forwardRef(
6234
6086
  PricingPageTemplate.displayName = "PricingPageTemplate";
6235
6087
 
6236
6088
  // virtual-pkg:src/atoms/PublishModal/PublishModal.tsx
6237
- import React33, { useState as useState7 } from "react";
6089
+ import React33, { useState as useState6 } from "react";
6238
6090
  import { Fragment as Fragment5, jsx as jsx33, jsxs as jsxs31 } from "react/jsx-runtime";
6239
- 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: [
6240
- /* @__PURE__ */ jsx33("circle", { cx: "12", cy: "12", r: "9" }),
6241
- /* @__PURE__ */ jsx33("path", { d: "M3 12h18" }),
6242
- /* @__PURE__ */ jsx33("path", { d: "M12 3a13.5 13.5 0 0 1 0 18" }),
6243
- /* @__PURE__ */ jsx33("path", { d: "M12 3a13.5 13.5 0 0 0 0 18" })
6244
- ] });
6245
- var LinkIcon2 = () => /* @__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: [
6246
- /* @__PURE__ */ jsx33("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }),
6247
- /* @__PURE__ */ jsx33("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }),
6248
- /* @__PURE__ */ jsx33("line", { x1: "8", y1: "12", x2: "16", y2: "12" })
6249
- ] });
6250
- var InfoIcon = () => /* @__PURE__ */ jsxs31("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "currentColor", "aria-hidden": "true", children: [
6251
- /* @__PURE__ */ jsx33("circle", { cx: "12", cy: "12", r: "10", opacity: "0.15" }),
6252
- /* @__PURE__ */ jsx33("circle", { cx: "12", cy: "7.5", r: "1.15" }),
6253
- /* @__PURE__ */ jsx33("rect", { x: "11", y: "10.5", width: "2", height: "7", rx: "1" })
6254
- ] });
6255
- 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: [
6256
- /* @__PURE__ */ jsx33("circle", { cx: "12", cy: "12", r: "9" }),
6257
- /* @__PURE__ */ jsx33("path", { d: "M8.5 12.5l2.2 2.2 4.8-5" })
6258
- ] });
6259
- 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: [
6260
- /* @__PURE__ */ jsx33("rect", { x: "5", y: "10", width: "14", height: "10", rx: "2" }),
6261
- /* @__PURE__ */ jsx33("path", { d: "M8 10V7a4 4 0 0 1 8 0v3" })
6262
- ] });
6263
- 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: [
6264
- /* @__PURE__ */ jsx33("path", { d: "M4 4v5h5" }),
6265
- /* @__PURE__ */ jsx33("path", { d: "M20 20v-5h-5" }),
6266
- /* @__PURE__ */ jsx33("path", { d: "M5.5 9A7 7 0 0 1 19 12" }),
6267
- /* @__PURE__ */ jsx33("path", { d: "M18.5 15A7 7 0 0 1 5 12" })
6268
- ] });
6269
- var ChevronIcon2 = ({ open }) => /* @__PURE__ */ jsx33(
6270
- "svg",
6271
- {
6272
- viewBox: "0 0 24 24",
6273
- width: "14",
6274
- height: "14",
6275
- fill: "none",
6276
- stroke: "currentColor",
6277
- strokeWidth: "2",
6278
- strokeLinecap: "round",
6279
- strokeLinejoin: "round",
6280
- "aria-hidden": "true",
6281
- className: ["transition-transform duration-150", open ? "rotate-90" : ""].join(" "),
6282
- children: /* @__PURE__ */ jsx33("path", { d: "M9 6l6 6-6 6" })
6283
- }
6284
- );
6285
- var SpinnerIcon2 = () => /* @__PURE__ */ jsxs31("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", "aria-hidden": "true", className: "animate-spin", children: [
6286
- /* @__PURE__ */ jsx33("circle", { cx: "12", cy: "12", r: "9", stroke: "currentColor", strokeWidth: "2", opacity: "0.25" }),
6287
- /* @__PURE__ */ jsx33("path", { d: "M21 12a9 9 0 0 0-9-9", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
6288
- ] });
6289
6091
  function bumpMinor(version) {
6290
6092
  const parts = version.split(".").map((n) => parseInt(n, 10) || 0);
6291
6093
  const [major = 0, minor = 0] = parts;
@@ -6302,22 +6104,12 @@ var PublishModal = React33.forwardRef(
6302
6104
  defaultTarget = "production",
6303
6105
  loading = false
6304
6106
  }, ref) => {
6305
- const [target, setTarget] = useState7(defaultTarget);
6306
- const [nextVersion, setNextVersion] = useState7(
6107
+ const target = defaultTarget;
6108
+ const [nextVersion, setNextVersion] = useState6(
6307
6109
  defaultNextVersion ?? bumpMinor(currentVersion)
6308
6110
  );
6309
- const [notesOpen, setNotesOpen] = useState7(false);
6310
- const [notes, setNotes] = useState7("");
6311
6111
  const isProduction = target === "production";
6312
- const summaryItems = isProduction ? [
6313
- { title: "Package validated", desc: "All required fields are valid." },
6314
- { title: "No breaking changes", desc: "Compatible with previous versions." },
6315
- { title: "Access", desc: "You have publish access to this package." }
6316
- ] : [
6317
- { title: "Package built", desc: "Local build artifacts are up to date." },
6318
- { title: "Link target resolved", desc: "A local npm link target was found." },
6319
- { title: "No global conflicts", desc: "No other project links this package name." }
6320
- ];
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.";
6321
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.";
6322
6114
  const handlePublish = () => onPublish?.(target, nextVersion);
6323
6115
  return /* @__PURE__ */ jsx33(
@@ -6338,161 +6130,63 @@ var PublishModal = React33.forwardRef(
6338
6130
  disabled: loading,
6339
6131
  "aria-busy": loading,
6340
6132
  children: loading ? /* @__PURE__ */ jsxs31(Fragment5, { children: [
6341
- /* @__PURE__ */ jsx33(SpinnerIcon2, {}),
6133
+ /* @__PURE__ */ jsx33(Icon, { name: "loading-spinner", size: 16, className: "animate-spin" }),
6342
6134
  isProduction ? "Publishing\u2026" : "Linking\u2026"
6343
6135
  ] }) : isProduction ? "Publish to npm registry" : "Publish locally (npm link)"
6344
6136
  }
6345
6137
  )
6346
6138
  ] }),
6347
6139
  children: /* @__PURE__ */ jsxs31("div", { className: "w-full space-y-lg", children: [
6348
- /* @__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." }),
6349
- /* @__PURE__ */ jsxs31(
6350
- "div",
6351
- {
6352
- role: "tablist",
6353
- "aria-label": "Publish target",
6354
- className: "flex items-center gap-lg border-b border-hairline",
6355
- children: [
6356
- /* @__PURE__ */ jsxs31(
6357
- 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,
6358
6159
  {
6359
- type: "button",
6360
- role: "tab",
6361
- "aria-selected": isProduction,
6362
- variant: "ghost",
6363
- size: "sm",
6364
- onClick: () => setTarget("production"),
6365
- disabled: loading,
6366
- className: [
6367
- "!rounded-none border-b-2 -mb-px",
6368
- isProduction ? "text-primary border-primary" : "text-muted border-transparent hover:text-ink"
6369
- ].join(" "),
6370
- children: [
6371
- /* @__PURE__ */ jsx33(GlobeIcon, {}),
6372
- "Production (npm registry)"
6373
- ]
6160
+ "aria-label": "Next version",
6161
+ value: nextVersion,
6162
+ onChange: (e) => setNextVersion(e.target.value),
6163
+ fullWidth: true,
6164
+ disabled: loading
6374
6165
  }
6375
6166
  ),
6376
- /* @__PURE__ */ jsxs31(
6167
+ /* @__PURE__ */ jsx33(
6377
6168
  Button,
6378
6169
  {
6379
- type: "button",
6380
- role: "tab",
6381
- "aria-selected": !isProduction,
6382
- variant: "ghost",
6383
- size: "sm",
6384
- onClick: () => setTarget("local"),
6170
+ variant: "secondary",
6171
+ size: "md",
6172
+ "aria-label": "Reset to suggested version",
6173
+ onClick: () => setNextVersion(bumpMinor(currentVersion)),
6385
6174
  disabled: loading,
6386
- className: [
6387
- "!rounded-none border-b-2 -mb-px",
6388
- !isProduction ? "text-primary border-primary" : "text-muted border-transparent hover:text-ink"
6389
- ].join(" "),
6390
- children: [
6391
- /* @__PURE__ */ jsx33(LinkIcon2, {}),
6392
- "Local (npm link)"
6393
- ]
6175
+ className: "!px-sm",
6176
+ children: /* @__PURE__ */ jsx33(Icon, { name: "refresh", size: 16 })
6394
6177
  }
6395
6178
  )
6396
- ]
6397
- }
6398
- ),
6399
- /* @__PURE__ */ jsxs31("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-md", children: [
6400
- /* @__PURE__ */ jsxs31("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
6401
- /* @__PURE__ */ jsx33("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Package details" }),
6402
- /* @__PURE__ */ jsxs31("div", { className: "space-y-xxs", children: [
6403
- /* @__PURE__ */ jsx33("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Package" }),
6404
- /* @__PURE__ */ jsx33("p", { className: "text-body-md text-ink font-mono", children: packageName })
6405
- ] }),
6406
- /* @__PURE__ */ jsxs31("div", { className: "space-y-xxs", children: [
6407
- /* @__PURE__ */ jsx33("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Current version" }),
6408
- /* @__PURE__ */ jsxs31("div", { className: "flex items-center gap-xs", children: [
6409
- /* @__PURE__ */ jsx33("p", { className: "text-body-md text-ink font-mono", children: currentVersion }),
6410
- /* @__PURE__ */ jsx33(Chip, { label: "Latest", variant: "primary", size: "sm" })
6411
- ] })
6412
- ] }),
6413
- isProduction ? /* @__PURE__ */ jsxs31("div", { className: "space-y-xxs", children: [
6414
- /* @__PURE__ */ jsx33("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Next version" }),
6415
- /* @__PURE__ */ jsxs31("div", { className: "flex items-center gap-xs", children: [
6416
- /* @__PURE__ */ jsx33(
6417
- Input,
6418
- {
6419
- "aria-label": "Next version",
6420
- value: nextVersion,
6421
- onChange: (e) => setNextVersion(e.target.value),
6422
- fullWidth: true,
6423
- disabled: loading
6424
- }
6425
- ),
6426
- /* @__PURE__ */ jsx33(
6427
- Button,
6428
- {
6429
- variant: "secondary",
6430
- size: "md",
6431
- "aria-label": "Reset to suggested version",
6432
- onClick: () => setNextVersion(bumpMinor(currentVersion)),
6433
- disabled: loading,
6434
- className: "!px-sm",
6435
- children: /* @__PURE__ */ jsx33(RefreshIcon, {})
6436
- }
6437
- )
6438
- ] })
6439
- ] }) : /* @__PURE__ */ jsxs31("div", { className: "space-y-xxs", children: [
6440
- /* @__PURE__ */ jsx33("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Link command" }),
6441
- /* @__PURE__ */ jsxs31("p", { className: "rounded-sm bg-surface-soft border border-hairline px-sm py-xs text-body-sm font-mono text-body", children: [
6442
- "npm link ",
6443
- packageName
6444
- ] })
6445
- ] }),
6446
- /* @__PURE__ */ jsxs31("div", { className: "border border-hairline rounded-sm", children: [
6447
- /* @__PURE__ */ jsxs31(
6448
- Button,
6449
- {
6450
- type: "button",
6451
- variant: "ghost",
6452
- size: "sm",
6453
- onClick: () => setNotesOpen((v) => !v),
6454
- "aria-expanded": notesOpen,
6455
- disabled: loading,
6456
- className: "w-full !justify-start !rounded-none gap-xs text-body",
6457
- children: [
6458
- /* @__PURE__ */ jsx33(ChevronIcon2, { open: notesOpen }),
6459
- "Release notes (optional)"
6460
- ]
6461
- }
6462
- ),
6463
- notesOpen && /* @__PURE__ */ jsx33("div", { className: "px-sm pb-sm", children: /* @__PURE__ */ jsx33(
6464
- "textarea",
6465
- {
6466
- value: notes,
6467
- onChange: (e) => setNotes(e.target.value),
6468
- placeholder: "What changed in this release?",
6469
- rows: 3,
6470
- disabled: loading,
6471
- 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"
6472
- }
6473
- ) })
6474
6179
  ] })
6475
- ] }),
6476
- /* @__PURE__ */ jsxs31("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
6477
- /* @__PURE__ */ jsx33("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Publish summary" }),
6478
- /* @__PURE__ */ jsxs31("div", { className: "flex items-start gap-sm rounded-sm bg-primary/10 border border-primary/30 p-sm", children: [
6479
- /* @__PURE__ */ jsx33("span", { className: "text-primary flex-shrink-0 mt-xxs", children: /* @__PURE__ */ jsx33(InfoIcon, {}) }),
6480
- /* @__PURE__ */ jsxs31("div", { children: [
6481
- /* @__PURE__ */ jsx33("p", { className: "text-body-sm font-weight-heading-sm text-primary", children: isProduction ? "Ready to publish" : "Ready to link" }),
6482
- /* @__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.` })
6483
- ] })
6484
- ] }),
6485
- /* @__PURE__ */ jsx33("div", { className: "space-y-sm", children: summaryItems.map((item) => /* @__PURE__ */ jsxs31("div", { className: "flex items-start gap-sm", children: [
6486
- /* @__PURE__ */ jsx33("span", { className: "text-semantic-success flex-shrink-0 mt-xxs", children: /* @__PURE__ */ jsx33(CheckCircleIcon, {}) }),
6487
- /* @__PURE__ */ jsxs31("div", { children: [
6488
- /* @__PURE__ */ jsx33("p", { className: "text-body-sm font-weight-heading-sm text-ink", children: item.title }),
6489
- /* @__PURE__ */ jsx33("p", { className: "text-body-sm text-muted", children: item.desc })
6490
- ] })
6491
- ] }, 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
+ ] })
6492
6186
  ] })
6493
6187
  ] }),
6494
6188
  /* @__PURE__ */ jsxs31("div", { className: "flex items-center gap-sm rounded-md bg-surface-soft border border-hairline p-base", children: [
6495
- /* @__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 }) }),
6496
6190
  /* @__PURE__ */ jsx33("p", { className: "text-body-sm text-body", children: noticeText })
6497
6191
  ] })
6498
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,7 +1,7 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-v6",
3
- "version": "1.20.12",
4
- "description": "Design system \"Plasma Design System\" generated by atom-server.",
3
+ "version": "1.20.14",
4
+ "description": "Complete design system \"Plasma Design System\" generated by Atoms Design.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
7
7
  "types": "src/index.ts",