@designa8/vibedesign-v6 1.20.15 → 1.20.16

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.15**.
3
+ Complete design system generated by Atoms Design, version **1.20.16**.
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
@@ -6155,11 +6155,6 @@ PricingPageTemplate.displayName = "PricingPageTemplate";
6155
6155
  // virtual-pkg:src/atoms/PublishModal/PublishModal.tsx
6156
6156
  var import_react30 = __toESM(require("react"));
6157
6157
  var import_jsx_runtime33 = require("react/jsx-runtime");
6158
- function bumpMinor(version) {
6159
- const parts = version.split(".").map((n) => parseInt(n, 10) || 0);
6160
- const [major = 0, minor = 0] = parts;
6161
- return `${major}.${minor + 1}.0`;
6162
- }
6163
6158
  var PublishModal = import_react30.default.forwardRef(
6164
6159
  ({
6165
6160
  isOpen,
@@ -6172,13 +6167,11 @@ var PublishModal = import_react30.default.forwardRef(
6172
6167
  loading = false
6173
6168
  }, ref) => {
6174
6169
  const target = defaultTarget;
6175
- const [nextVersion, setNextVersion] = (0, import_react30.useState)(
6176
- defaultNextVersion ?? bumpMinor(currentVersion)
6177
- );
6170
+ const version = defaultNextVersion ?? currentVersion;
6178
6171
  const isProduction = target === "production";
6179
6172
  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.";
6180
6173
  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.";
6181
- const handlePublish = () => onPublish?.(target, nextVersion);
6174
+ const handlePublish = () => onPublish?.(target, version);
6182
6175
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6183
6176
  Modal,
6184
6177
  {
@@ -6188,18 +6181,27 @@ var PublishModal = import_react30.default.forwardRef(
6188
6181
  title: "Publish package",
6189
6182
  size: "lg",
6190
6183
  footer: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex w-full items-center justify-end gap-sm", children: [
6191
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Button, { variant: "secondary", onClick: onClose, disabled: loading, children: "Cancel" }),
6192
6184
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6193
6185
  Button,
6194
6186
  {
6187
+ type: "button",
6188
+ variant: "secondary",
6189
+ onClick: onClose,
6190
+ disabled: loading,
6191
+ children: "Cancel"
6192
+ }
6193
+ ),
6194
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6195
+ Button,
6196
+ {
6197
+ type: "button",
6195
6198
  variant: "primary",
6196
6199
  onClick: handlePublish,
6197
6200
  disabled: loading,
6201
+ loading,
6202
+ pushEffect: false,
6198
6203
  "aria-busy": loading,
6199
- children: loading ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
6200
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { name: "loading-spinner", size: 16, className: "animate-spin" }),
6201
- isProduction ? "Publishing\u2026" : "Linking\u2026"
6202
- ] }) : isProduction ? "Publish to npm registry" : "Publish locally (npm link)"
6204
+ children: isProduction ? "Publish to npm registry" : "Publish locally (npm link)"
6203
6205
  }
6204
6206
  )
6205
6207
  ] }),
@@ -6218,33 +6220,7 @@ var PublishModal = import_react30.default.forwardRef(
6218
6220
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Chip, { label: "Latest", variant: "primary", size: "sm" })
6219
6221
  ] })
6220
6222
  ] }),
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,
6226
- {
6227
- "aria-label": "Next version",
6228
- value: nextVersion,
6229
- onChange: (e) => setNextVersion(e.target.value),
6230
- fullWidth: true,
6231
- disabled: loading
6232
- }
6233
- ),
6234
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6235
- Button,
6236
- {
6237
- variant: "secondary",
6238
- size: "md",
6239
- "aria-label": "Reset to suggested version",
6240
- onClick: () => setNextVersion(bumpMinor(currentVersion)),
6241
- disabled: loading,
6242
- className: "!px-sm",
6243
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { name: "refresh", size: 16 })
6244
- }
6245
- )
6246
- ] })
6247
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-xxs", children: [
6223
+ !isProduction && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-xxs", children: [
6248
6224
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Link command" }),
6249
6225
  /* @__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
6226
  "npm link ",
package/dist/index.js CHANGED
@@ -6086,13 +6086,8 @@ var PricingPageTemplate = React32.forwardRef(
6086
6086
  PricingPageTemplate.displayName = "PricingPageTemplate";
6087
6087
 
6088
6088
  // virtual-pkg:src/atoms/PublishModal/PublishModal.tsx
6089
- import React33, { useState as useState6 } from "react";
6090
- import { Fragment as Fragment5, jsx as jsx33, jsxs as jsxs31 } from "react/jsx-runtime";
6091
- function bumpMinor(version) {
6092
- const parts = version.split(".").map((n) => parseInt(n, 10) || 0);
6093
- const [major = 0, minor = 0] = parts;
6094
- return `${major}.${minor + 1}.0`;
6095
- }
6089
+ import React33 from "react";
6090
+ import { jsx as jsx33, jsxs as jsxs31 } from "react/jsx-runtime";
6096
6091
  var PublishModal = React33.forwardRef(
6097
6092
  ({
6098
6093
  isOpen,
@@ -6105,13 +6100,11 @@ var PublishModal = React33.forwardRef(
6105
6100
  loading = false
6106
6101
  }, ref) => {
6107
6102
  const target = defaultTarget;
6108
- const [nextVersion, setNextVersion] = useState6(
6109
- defaultNextVersion ?? bumpMinor(currentVersion)
6110
- );
6103
+ const version = defaultNextVersion ?? currentVersion;
6111
6104
  const isProduction = target === "production";
6112
6105
  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.";
6113
6106
  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.";
6114
- const handlePublish = () => onPublish?.(target, nextVersion);
6107
+ const handlePublish = () => onPublish?.(target, version);
6115
6108
  return /* @__PURE__ */ jsx33(
6116
6109
  Modal,
6117
6110
  {
@@ -6121,18 +6114,27 @@ var PublishModal = React33.forwardRef(
6121
6114
  title: "Publish package",
6122
6115
  size: "lg",
6123
6116
  footer: /* @__PURE__ */ jsxs31("div", { className: "flex w-full items-center justify-end gap-sm", children: [
6124
- /* @__PURE__ */ jsx33(Button, { variant: "secondary", onClick: onClose, disabled: loading, children: "Cancel" }),
6125
6117
  /* @__PURE__ */ jsx33(
6126
6118
  Button,
6127
6119
  {
6120
+ type: "button",
6121
+ variant: "secondary",
6122
+ onClick: onClose,
6123
+ disabled: loading,
6124
+ children: "Cancel"
6125
+ }
6126
+ ),
6127
+ /* @__PURE__ */ jsx33(
6128
+ Button,
6129
+ {
6130
+ type: "button",
6128
6131
  variant: "primary",
6129
6132
  onClick: handlePublish,
6130
6133
  disabled: loading,
6134
+ loading,
6135
+ pushEffect: false,
6131
6136
  "aria-busy": loading,
6132
- children: loading ? /* @__PURE__ */ jsxs31(Fragment5, { children: [
6133
- /* @__PURE__ */ jsx33(Icon, { name: "loading-spinner", size: 16, className: "animate-spin" }),
6134
- isProduction ? "Publishing\u2026" : "Linking\u2026"
6135
- ] }) : isProduction ? "Publish to npm registry" : "Publish locally (npm link)"
6137
+ children: isProduction ? "Publish to npm registry" : "Publish locally (npm link)"
6136
6138
  }
6137
6139
  )
6138
6140
  ] }),
@@ -6151,33 +6153,7 @@ var PublishModal = React33.forwardRef(
6151
6153
  /* @__PURE__ */ jsx33(Chip, { label: "Latest", variant: "primary", size: "sm" })
6152
6154
  ] })
6153
6155
  ] }),
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,
6159
- {
6160
- "aria-label": "Next version",
6161
- value: nextVersion,
6162
- onChange: (e) => setNextVersion(e.target.value),
6163
- fullWidth: true,
6164
- disabled: loading
6165
- }
6166
- ),
6167
- /* @__PURE__ */ jsx33(
6168
- Button,
6169
- {
6170
- variant: "secondary",
6171
- size: "md",
6172
- "aria-label": "Reset to suggested version",
6173
- onClick: () => setNextVersion(bumpMinor(currentVersion)),
6174
- disabled: loading,
6175
- className: "!px-sm",
6176
- children: /* @__PURE__ */ jsx33(Icon, { name: "refresh", size: 16 })
6177
- }
6178
- )
6179
- ] })
6180
- ] }) : /* @__PURE__ */ jsxs31("div", { className: "space-y-xxs", children: [
6156
+ !isProduction && /* @__PURE__ */ jsxs31("div", { className: "space-y-xxs", children: [
6181
6157
  /* @__PURE__ */ jsx33("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Link command" }),
6182
6158
  /* @__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
6159
  "npm link ",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-v6",
3
- "version": "1.20.15",
3
+ "version": "1.20.16",
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",
@@ -1,7 +1,6 @@
1
- import React, { useState } from "react";
1
+ import React from "react";
2
2
  import { Modal } from "../Modal";
3
3
  import { Button } from "../Button";
4
- import { Input } from "../Input";
5
4
  import { Chip } from "../Chip";
6
5
  import { Icon } from "../Icon";
7
6
 
@@ -18,20 +17,14 @@ export interface PublishModalProps {
18
17
  packageName?: string;
19
18
  /** Currently published version */
20
19
  currentVersion?: string;
21
- /** Suggested next version (editable) */
20
+ /** Suggested next version. Kept for backwards compatibility; version bumping is automatic server-side and no longer editable in this UI. */
22
21
  defaultNextVersion?: string;
23
22
  /** The env-determined publish target. There is no in-modal switcher — this is the target. */
24
23
  defaultTarget?: PublishTarget;
25
- /** When true, the publish action is in-flight: disables inputs and Cancel, and shows a spinner on the submit button */
24
+ /** When true, the publish action is in-flight: disables Cancel and shows a spinner on the submit button */
26
25
  loading?: boolean;
27
26
  }
28
27
 
29
- function bumpMinor(version: string): string {
30
- const parts = version.split(".").map((n) => parseInt(n, 10) || 0);
31
- const [major = 0, minor = 0] = parts;
32
- return `${major}.${minor + 1}.0`;
33
- }
34
-
35
28
  export const PublishModal = React.forwardRef<HTMLDivElement, PublishModalProps>(
36
29
  (
37
30
  {
@@ -47,9 +40,7 @@ export const PublishModal = React.forwardRef<HTMLDivElement, PublishModalProps>(
47
40
  ref
48
41
  ) => {
49
42
  const target = defaultTarget;
50
- const [nextVersion, setNextVersion] = useState(
51
- defaultNextVersion ?? bumpMinor(currentVersion)
52
- );
43
+ const version = defaultNextVersion ?? currentVersion;
53
44
 
54
45
  const isProduction = target === "production";
55
46
 
@@ -61,7 +52,7 @@ export const PublishModal = React.forwardRef<HTMLDivElement, PublishModalProps>(
61
52
  ? "Publishing to npm registry makes your package publicly available to the world. Make sure you're ready to release this version."
62
53
  : "Local publish creates an npm link only visible on this machine, for testing and internal use before a real release.";
63
54
 
64
- const handlePublish = () => onPublish?.(target, nextVersion);
55
+ const handlePublish = () => onPublish?.(target, version);
65
56
 
66
57
  return (
67
58
  <Modal
@@ -72,25 +63,24 @@ export const PublishModal = React.forwardRef<HTMLDivElement, PublishModalProps>(
72
63
  size="lg"
73
64
  footer={
74
65
  <div className="flex w-full items-center justify-end gap-sm">
75
- <Button variant="secondary" onClick={onClose} disabled={loading}>
66
+ <Button
67
+ type="button"
68
+ variant="secondary"
69
+ onClick={onClose}
70
+ disabled={loading}
71
+ >
76
72
  Cancel
77
73
  </Button>
78
74
  <Button
75
+ type="button"
79
76
  variant="primary"
80
77
  onClick={handlePublish}
81
78
  disabled={loading}
79
+ loading={loading}
80
+ pushEffect={false}
82
81
  aria-busy={loading}
83
82
  >
84
- {loading ? (
85
- <>
86
- <Icon name="loading-spinner" size={16} className="animate-spin" />
87
- {isProduction ? "Publishing…" : "Linking…"}
88
- </>
89
- ) : isProduction ? (
90
- "Publish to npm registry"
91
- ) : (
92
- "Publish locally (npm link)"
93
- )}
83
+ {isProduction ? "Publish to npm registry" : "Publish locally (npm link)"}
94
84
  </Button>
95
85
  </div>
96
86
  }
@@ -121,32 +111,7 @@ export const PublishModal = React.forwardRef<HTMLDivElement, PublishModalProps>(
121
111
  </div>
122
112
  </div>
123
113
 
124
- {isProduction ? (
125
- <div className="space-y-xxs">
126
- <p className="text-caption uppercase tracking-wide text-muted">
127
- Next version
128
- </p>
129
- <div className="flex items-center gap-xs">
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>
147
- </div>
148
- </div>
149
- ) : (
114
+ {!isProduction && (
150
115
  <div className="space-y-xxs">
151
116
  <p className="text-caption uppercase tracking-wide text-muted">
152
117
  Link command