@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/README.md +6 -32
- package/dist/index.cjs +70 -376
- package/dist/index.js +73 -379
- package/dist/styles.css +0 -18
- package/package.json +2 -2
- package/src/atoms/ExportDesignMdModal/ExportDesignMdModal.tsx +46 -185
- package/src/atoms/ExportDesignMdModal/preview.tsx +24 -8
- package/src/atoms/Icon/icons.data.ts +3 -0
- package/src/atoms/PublishModal/PublishModal.tsx +56 -254
package/README.md
CHANGED
|
@@ -1,51 +1,25 @@
|
|
|
1
1
|
# @plasma/vibedesign-v6
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Complete design system generated by Atoms Design, version **1.20.14**.
|
|
4
|
+
Tokens, atoms, molecules, organisms, and templates — import from the package root;
|
|
5
|
+
never hardcode visual values in consumer code.
|
|
4
6
|
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
From this directory:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm link
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Then, in the consumer app:
|
|
7
|
+
## Install
|
|
14
8
|
|
|
15
9
|
```bash
|
|
16
|
-
npm
|
|
10
|
+
npm install @plasma/vibedesign-v6
|
|
17
11
|
```
|
|
18
12
|
|
|
19
13
|
## Imports
|
|
20
14
|
|
|
21
15
|
```ts
|
|
22
|
-
import {
|
|
16
|
+
import { Button, Input } from "@plasma/vibedesign-v6";
|
|
23
17
|
```
|
|
24
18
|
|
|
25
19
|
The CSS (design tokens, Tailwind utilities, and the design system font loaded
|
|
26
20
|
from Google Fonts) is bundled into the package entry point and injected
|
|
27
21
|
automatically by your bundler — no separate CSS import needed.
|
|
28
22
|
|
|
29
|
-
## Vite configuration (local npm link only)
|
|
30
|
-
|
|
31
|
-
When using `npm link`, the package fonts live outside your project root and
|
|
32
|
-
Vite's dev server will block them by default. Add `server.fs.allow` to your
|
|
33
|
-
`vite.config.js` / `vite.config.ts`:
|
|
34
|
-
|
|
35
|
-
```js
|
|
36
|
-
export default defineConfig({
|
|
37
|
-
server: {
|
|
38
|
-
fs: {
|
|
39
|
-
allow: ['..', '/path/to/.published-packages'],
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
})
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
Replace `/path/to/.published-packages` with the absolute path printed by
|
|
46
|
-
`npm link` (the directory that contains this package folder).
|
|
47
|
-
This step is not needed when the package is installed from a real registry.
|
|
48
|
-
|
|
49
23
|
## Global CSS compatibility
|
|
50
24
|
|
|
51
25
|
The package's utility classes (spacing, colours, border-radius, etc.) are
|
package/dist/index.cjs
CHANGED
|
@@ -142,7 +142,10 @@ var ICON_REGISTRY = {
|
|
|
142
142
|
"image-placeholder-dashed-frame": { viewBox: "0 0 72 72", paths: ["M4 4h64v64H4z", "M14 14h20v20H14z", "M38 14h20v20H38z", "M14 38h44v12H14z"] },
|
|
143
143
|
"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"] },
|
|
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
|
-
"minus-indeterminate": { viewBox: "0 0 24 24", paths: ["M5 12h14"] }
|
|
145
|
+
"minus-indeterminate": { viewBox: "0 0 24 24", paths: ["M5 12h14"] },
|
|
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"] },
|
|
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"] }
|
|
146
149
|
};
|
|
147
150
|
|
|
148
151
|
// virtual-pkg:src/atoms/Icon/Icon.tsx
|
|
@@ -5259,113 +5262,20 @@ var defaultLines = [
|
|
|
5259
5262
|
{ text: "muted: {colors.muted}" },
|
|
5260
5263
|
{ text: "hairline: {colors.hairline}" }
|
|
5261
5264
|
];
|
|
5262
|
-
var
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
children: [
|
|
5275
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("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" }),
|
|
5276
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("path", { d: "M8 19h9.5" })
|
|
5277
|
-
]
|
|
5278
|
-
}
|
|
5279
|
-
);
|
|
5280
|
-
var LinkIcon = () => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
5281
|
-
"svg",
|
|
5282
|
-
{
|
|
5283
|
-
viewBox: "0 0 24 24",
|
|
5284
|
-
width: "16",
|
|
5285
|
-
height: "16",
|
|
5286
|
-
fill: "none",
|
|
5287
|
-
stroke: "currentColor",
|
|
5288
|
-
strokeWidth: "2",
|
|
5289
|
-
strokeLinecap: "round",
|
|
5290
|
-
strokeLinejoin: "round",
|
|
5291
|
-
"aria-hidden": "true",
|
|
5292
|
-
children: [
|
|
5293
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }),
|
|
5294
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }),
|
|
5295
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("line", { x1: "8", y1: "12", x2: "16", y2: "12" })
|
|
5296
|
-
]
|
|
5297
|
-
}
|
|
5298
|
-
);
|
|
5299
|
-
var CopyIcon = () => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
5300
|
-
"svg",
|
|
5301
|
-
{
|
|
5302
|
-
viewBox: "0 0 24 24",
|
|
5303
|
-
width: "14",
|
|
5304
|
-
height: "14",
|
|
5305
|
-
fill: "none",
|
|
5306
|
-
stroke: "currentColor",
|
|
5307
|
-
strokeWidth: "2",
|
|
5308
|
-
strokeLinecap: "round",
|
|
5309
|
-
strokeLinejoin: "round",
|
|
5310
|
-
"aria-hidden": "true",
|
|
5311
|
-
children: [
|
|
5312
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("rect", { x: "9", y: "9", width: "11", height: "11", rx: "2" }),
|
|
5313
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("path", { d: "M5 15V5a2 2 0 0 1 2-2h10" })
|
|
5314
|
-
]
|
|
5315
|
-
}
|
|
5316
|
-
);
|
|
5317
|
-
var DownloadIcon = () => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
5318
|
-
"svg",
|
|
5319
|
-
{
|
|
5320
|
-
viewBox: "0 0 24 24",
|
|
5321
|
-
width: "14",
|
|
5322
|
-
height: "14",
|
|
5323
|
-
fill: "none",
|
|
5324
|
-
stroke: "currentColor",
|
|
5325
|
-
strokeWidth: "2",
|
|
5326
|
-
strokeLinecap: "round",
|
|
5327
|
-
strokeLinejoin: "round",
|
|
5328
|
-
"aria-hidden": "true",
|
|
5329
|
-
children: [
|
|
5330
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("path", { d: "M12 3v12" }),
|
|
5331
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("path", { d: "M7 10l5 5 5-5" }),
|
|
5332
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("path", { d: "M5 21h14" })
|
|
5333
|
-
]
|
|
5334
|
-
}
|
|
5335
|
-
);
|
|
5336
|
-
var SpinnerIcon = () => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
5337
|
-
"svg",
|
|
5338
|
-
{
|
|
5339
|
-
viewBox: "0 0 24 24",
|
|
5340
|
-
width: "20",
|
|
5341
|
-
height: "20",
|
|
5342
|
-
fill: "none",
|
|
5343
|
-
className: "animate-spin text-primary",
|
|
5344
|
-
"aria-hidden": "true",
|
|
5345
|
-
children: [
|
|
5346
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
5347
|
-
"circle",
|
|
5348
|
-
{
|
|
5349
|
-
cx: "12",
|
|
5350
|
-
cy: "12",
|
|
5351
|
-
r: "9",
|
|
5352
|
-
stroke: "currentColor",
|
|
5353
|
-
strokeWidth: "2.5",
|
|
5354
|
-
strokeOpacity: "0.25"
|
|
5355
|
-
}
|
|
5356
|
-
),
|
|
5357
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
5358
|
-
"path",
|
|
5359
|
-
{
|
|
5360
|
-
d: "M21 12a9 9 0 0 0-9-9",
|
|
5361
|
-
stroke: "currentColor",
|
|
5362
|
-
strokeWidth: "2.5",
|
|
5363
|
-
strokeLinecap: "round"
|
|
5364
|
-
}
|
|
5365
|
-
)
|
|
5366
|
-
]
|
|
5265
|
+
var SOURCE_INFO = {
|
|
5266
|
+
production: {
|
|
5267
|
+
icon: "cloud",
|
|
5268
|
+
title: "Production (npm install)",
|
|
5269
|
+
description: "Generated for public npm registry consumption.",
|
|
5270
|
+
helper: "Consumer apps install from the public npm registry ('npm install')."
|
|
5271
|
+
},
|
|
5272
|
+
local: {
|
|
5273
|
+
icon: "external-link-arrow-up-right",
|
|
5274
|
+
title: "Local (npm link)",
|
|
5275
|
+
description: "Generated for local development with npm link.",
|
|
5276
|
+
helper: "Consumer apps resolve the package via a local 'npm link' during development."
|
|
5367
5277
|
}
|
|
5368
|
-
|
|
5278
|
+
};
|
|
5369
5279
|
var ExportDesignMdModal = import_react23.default.forwardRef(
|
|
5370
5280
|
({
|
|
5371
5281
|
isOpen,
|
|
@@ -5373,17 +5283,13 @@ var ExportDesignMdModal = import_react23.default.forwardRef(
|
|
|
5373
5283
|
onExport,
|
|
5374
5284
|
onDownload,
|
|
5375
5285
|
onCopy,
|
|
5376
|
-
onSourceChange,
|
|
5377
5286
|
designSystemName = "Design System",
|
|
5378
5287
|
defaultSource = "production",
|
|
5379
5288
|
lines = defaultLines,
|
|
5380
5289
|
loading = false
|
|
5381
5290
|
}, ref) => {
|
|
5382
|
-
const
|
|
5383
|
-
const
|
|
5384
|
-
setSource(next);
|
|
5385
|
-
onSourceChange?.(next);
|
|
5386
|
-
};
|
|
5291
|
+
const source = defaultSource;
|
|
5292
|
+
const info = SOURCE_INFO[source];
|
|
5387
5293
|
const handleCopy = () => {
|
|
5388
5294
|
const text = lines.map((l) => l.text).join("\n");
|
|
5389
5295
|
if (typeof navigator !== "undefined" && navigator.clipboard) {
|
|
@@ -5402,7 +5308,7 @@ var ExportDesignMdModal = import_react23.default.forwardRef(
|
|
|
5402
5308
|
size: "xl",
|
|
5403
5309
|
footer: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex w-full items-center justify-between", children: [
|
|
5404
5310
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Button, { variant: "secondary", size: "sm", onClick: onDownload, children: [
|
|
5405
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
5311
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon, { name: "download" }),
|
|
5406
5312
|
"Download .md"
|
|
5407
5313
|
] }),
|
|
5408
5314
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex items-center gap-sm", children: [
|
|
@@ -5412,35 +5318,15 @@ var ExportDesignMdModal = import_react23.default.forwardRef(
|
|
|
5412
5318
|
] }),
|
|
5413
5319
|
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "w-full space-y-lg", children: [
|
|
5414
5320
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typography, { role: "body-md", color: "muted", children: "Generate and export the DESIGN.md file for handoff to AI coding agents or your team." }),
|
|
5415
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex
|
|
5416
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
variant: source === "production" ? "primary" : "ghost",
|
|
5421
|
-
size: "sm",
|
|
5422
|
-
onClick: () => changeSource("production"),
|
|
5423
|
-
children: [
|
|
5424
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CloudIcon, {}),
|
|
5425
|
-
"Production"
|
|
5426
|
-
]
|
|
5427
|
-
}
|
|
5428
|
-
),
|
|
5429
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
5430
|
-
Button,
|
|
5431
|
-
{
|
|
5432
|
-
variant: source === "local" ? "primary" : "ghost",
|
|
5433
|
-
size: "sm",
|
|
5434
|
-
onClick: () => changeSource("local"),
|
|
5435
|
-
children: [
|
|
5436
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(LinkIcon, {}),
|
|
5437
|
-
"Local (npm link)"
|
|
5438
|
-
]
|
|
5439
|
-
}
|
|
5440
|
-
)
|
|
5321
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex w-full items-center gap-md p-md bg-surface-soft border border-hairline rounded-md", children: [
|
|
5322
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("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__ */ (0, import_jsx_runtime26.jsx)(Icon, { name: info.icon }) }),
|
|
5323
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
5324
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typography, { role: "body-md", color: "ink", className: "font-weight-heading-sm", children: info.title }),
|
|
5325
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typography, { role: "body-sm", color: "muted", children: info.description })
|
|
5441
5326
|
] }),
|
|
5442
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
5327
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Chip, { label: "Active", variant: "primary", size: "sm" })
|
|
5443
5328
|
] }),
|
|
5329
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typography, { role: "body-sm", color: "muted", children: info.helper }),
|
|
5444
5330
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { children: [
|
|
5445
5331
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
5446
5332
|
Typography,
|
|
@@ -5461,7 +5347,7 @@ var ExportDesignMdModal = import_react23.default.forwardRef(
|
|
|
5461
5347
|
onClick: handleCopy,
|
|
5462
5348
|
className: "absolute top-sm right-sm",
|
|
5463
5349
|
children: [
|
|
5464
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
5350
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon, { name: "copy-clipboard" }),
|
|
5465
5351
|
"Copy"
|
|
5466
5352
|
]
|
|
5467
5353
|
}
|
|
@@ -5484,46 +5370,12 @@ var ExportDesignMdModal = import_react23.default.forwardRef(
|
|
|
5484
5370
|
"aria-label": "Loading preview",
|
|
5485
5371
|
className: "absolute inset-0 flex items-center justify-center gap-sm bg-canvas opacity-90",
|
|
5486
5372
|
children: [
|
|
5487
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
5373
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon, { name: "loading-spinner", className: "animate-spin text-primary" }),
|
|
5488
5374
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typography, { role: "body-sm", color: "muted", children: "Loading preview\u2026" })
|
|
5489
5375
|
]
|
|
5490
5376
|
}
|
|
5491
5377
|
) : null
|
|
5492
5378
|
] })
|
|
5493
|
-
] }),
|
|
5494
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "w-full space-y-sm", children: [
|
|
5495
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex w-full items-center gap-md p-md bg-surface-soft border border-hairline rounded-md", children: [
|
|
5496
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("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__ */ (0, import_jsx_runtime26.jsx)(CloudIcon, {}) }),
|
|
5497
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
5498
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typography, { role: "body-md", color: "ink", className: "font-weight-heading-sm", children: "Production (npm install)" }),
|
|
5499
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typography, { role: "body-sm", color: "muted", children: "Generated for public npm registry consumption." })
|
|
5500
|
-
] }),
|
|
5501
|
-
source === "production" ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Chip, { label: "Active", variant: "primary", size: "sm" }) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
5502
|
-
Button,
|
|
5503
|
-
{
|
|
5504
|
-
variant: "secondary",
|
|
5505
|
-
size: "sm",
|
|
5506
|
-
onClick: () => changeSource("production"),
|
|
5507
|
-
children: "Switch"
|
|
5508
|
-
}
|
|
5509
|
-
)
|
|
5510
|
-
] }),
|
|
5511
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex w-full items-center gap-md p-md bg-surface-soft border border-hairline rounded-md", children: [
|
|
5512
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("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__ */ (0, import_jsx_runtime26.jsx)(LinkIcon, {}) }),
|
|
5513
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
5514
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typography, { role: "body-md", color: "ink", className: "font-weight-heading-sm", children: "Local (npm link)" }),
|
|
5515
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typography, { role: "body-sm", color: "muted", children: "Generated for local development with npm link." })
|
|
5516
|
-
] }),
|
|
5517
|
-
source === "local" ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Chip, { label: "Active", variant: "primary", size: "sm" }) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
5518
|
-
Button,
|
|
5519
|
-
{
|
|
5520
|
-
variant: "secondary",
|
|
5521
|
-
size: "sm",
|
|
5522
|
-
onClick: () => changeSource("local"),
|
|
5523
|
-
children: "Switch"
|
|
5524
|
-
}
|
|
5525
|
-
)
|
|
5526
|
-
] })
|
|
5527
5379
|
] })
|
|
5528
5380
|
] })
|
|
5529
5381
|
}
|
|
@@ -6303,56 +6155,6 @@ PricingPageTemplate.displayName = "PricingPageTemplate";
|
|
|
6303
6155
|
// virtual-pkg:src/atoms/PublishModal/PublishModal.tsx
|
|
6304
6156
|
var import_react30 = __toESM(require("react"));
|
|
6305
6157
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
6306
|
-
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: [
|
|
6307
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
6308
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M3 12h18" }),
|
|
6309
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M12 3a13.5 13.5 0 0 1 0 18" }),
|
|
6310
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M12 3a13.5 13.5 0 0 0 0 18" })
|
|
6311
|
-
] });
|
|
6312
|
-
var LinkIcon2 = () => /* @__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: [
|
|
6313
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }),
|
|
6314
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }),
|
|
6315
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("line", { x1: "8", y1: "12", x2: "16", y2: "12" })
|
|
6316
|
-
] });
|
|
6317
|
-
var InfoIcon = () => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "currentColor", "aria-hidden": "true", children: [
|
|
6318
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("circle", { cx: "12", cy: "12", r: "10", opacity: "0.15" }),
|
|
6319
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("circle", { cx: "12", cy: "7.5", r: "1.15" }),
|
|
6320
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("rect", { x: "11", y: "10.5", width: "2", height: "7", rx: "1" })
|
|
6321
|
-
] });
|
|
6322
|
-
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: [
|
|
6323
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
6324
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M8.5 12.5l2.2 2.2 4.8-5" })
|
|
6325
|
-
] });
|
|
6326
|
-
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: [
|
|
6327
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("rect", { x: "5", y: "10", width: "14", height: "10", rx: "2" }),
|
|
6328
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M8 10V7a4 4 0 0 1 8 0v3" })
|
|
6329
|
-
] });
|
|
6330
|
-
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: [
|
|
6331
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M4 4v5h5" }),
|
|
6332
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M20 20v-5h-5" }),
|
|
6333
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M5.5 9A7 7 0 0 1 19 12" }),
|
|
6334
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M18.5 15A7 7 0 0 1 5 12" })
|
|
6335
|
-
] });
|
|
6336
|
-
var ChevronIcon2 = ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
6337
|
-
"svg",
|
|
6338
|
-
{
|
|
6339
|
-
viewBox: "0 0 24 24",
|
|
6340
|
-
width: "14",
|
|
6341
|
-
height: "14",
|
|
6342
|
-
fill: "none",
|
|
6343
|
-
stroke: "currentColor",
|
|
6344
|
-
strokeWidth: "2",
|
|
6345
|
-
strokeLinecap: "round",
|
|
6346
|
-
strokeLinejoin: "round",
|
|
6347
|
-
"aria-hidden": "true",
|
|
6348
|
-
className: ["transition-transform duration-150", open ? "rotate-90" : ""].join(" "),
|
|
6349
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M9 6l6 6-6 6" })
|
|
6350
|
-
}
|
|
6351
|
-
);
|
|
6352
|
-
var SpinnerIcon2 = () => /* @__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: [
|
|
6353
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("circle", { cx: "12", cy: "12", r: "9", stroke: "currentColor", strokeWidth: "2", opacity: "0.25" }),
|
|
6354
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M21 12a9 9 0 0 0-9-9", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
|
|
6355
|
-
] });
|
|
6356
6158
|
function bumpMinor(version) {
|
|
6357
6159
|
const parts = version.split(".").map((n) => parseInt(n, 10) || 0);
|
|
6358
6160
|
const [major = 0, minor = 0] = parts;
|
|
@@ -6369,22 +6171,12 @@ var PublishModal = import_react30.default.forwardRef(
|
|
|
6369
6171
|
defaultTarget = "production",
|
|
6370
6172
|
loading = false
|
|
6371
6173
|
}, ref) => {
|
|
6372
|
-
const
|
|
6174
|
+
const target = defaultTarget;
|
|
6373
6175
|
const [nextVersion, setNextVersion] = (0, import_react30.useState)(
|
|
6374
6176
|
defaultNextVersion ?? bumpMinor(currentVersion)
|
|
6375
6177
|
);
|
|
6376
|
-
const [notesOpen, setNotesOpen] = (0, import_react30.useState)(false);
|
|
6377
|
-
const [notes, setNotes] = (0, import_react30.useState)("");
|
|
6378
6178
|
const isProduction = target === "production";
|
|
6379
|
-
const
|
|
6380
|
-
{ title: "Package validated", desc: "All required fields are valid." },
|
|
6381
|
-
{ title: "No breaking changes", desc: "Compatible with previous versions." },
|
|
6382
|
-
{ title: "Access", desc: "You have publish access to this package." }
|
|
6383
|
-
] : [
|
|
6384
|
-
{ title: "Package built", desc: "Local build artifacts are up to date." },
|
|
6385
|
-
{ title: "Link target resolved", desc: "A local npm link target was found." },
|
|
6386
|
-
{ title: "No global conflicts", desc: "No other project links this package name." }
|
|
6387
|
-
];
|
|
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.";
|
|
6388
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.";
|
|
6389
6181
|
const handlePublish = () => onPublish?.(target, nextVersion);
|
|
6390
6182
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
@@ -6405,161 +6197,63 @@ var PublishModal = import_react30.default.forwardRef(
|
|
|
6405
6197
|
disabled: loading,
|
|
6406
6198
|
"aria-busy": loading,
|
|
6407
6199
|
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
|
|
6408
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
6200
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { name: "loading-spinner", size: 16, className: "animate-spin" }),
|
|
6409
6201
|
isProduction ? "Publishing\u2026" : "Linking\u2026"
|
|
6410
6202
|
] }) : isProduction ? "Publish to npm registry" : "Publish locally (npm link)"
|
|
6411
6203
|
}
|
|
6412
6204
|
)
|
|
6413
6205
|
] }),
|
|
6414
6206
|
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "w-full space-y-lg", children: [
|
|
6415
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-md text-muted", children:
|
|
6416
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
6417
|
-
"
|
|
6418
|
-
{
|
|
6419
|
-
|
|
6420
|
-
"
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
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,
|
|
6425
6226
|
{
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
onClick: () => setTarget("production"),
|
|
6432
|
-
disabled: loading,
|
|
6433
|
-
className: [
|
|
6434
|
-
"!rounded-none border-b-2 -mb-px",
|
|
6435
|
-
isProduction ? "text-primary border-primary" : "text-muted border-transparent hover:text-ink"
|
|
6436
|
-
].join(" "),
|
|
6437
|
-
children: [
|
|
6438
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(GlobeIcon, {}),
|
|
6439
|
-
"Production (npm registry)"
|
|
6440
|
-
]
|
|
6227
|
+
"aria-label": "Next version",
|
|
6228
|
+
value: nextVersion,
|
|
6229
|
+
onChange: (e) => setNextVersion(e.target.value),
|
|
6230
|
+
fullWidth: true,
|
|
6231
|
+
disabled: loading
|
|
6441
6232
|
}
|
|
6442
6233
|
),
|
|
6443
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.
|
|
6234
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
6444
6235
|
Button,
|
|
6445
6236
|
{
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
"aria-
|
|
6449
|
-
|
|
6450
|
-
size: "sm",
|
|
6451
|
-
onClick: () => setTarget("local"),
|
|
6237
|
+
variant: "secondary",
|
|
6238
|
+
size: "md",
|
|
6239
|
+
"aria-label": "Reset to suggested version",
|
|
6240
|
+
onClick: () => setNextVersion(bumpMinor(currentVersion)),
|
|
6452
6241
|
disabled: loading,
|
|
6453
|
-
className:
|
|
6454
|
-
|
|
6455
|
-
!isProduction ? "text-primary border-primary" : "text-muted border-transparent hover:text-ink"
|
|
6456
|
-
].join(" "),
|
|
6457
|
-
children: [
|
|
6458
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(LinkIcon2, {}),
|
|
6459
|
-
"Local (npm link)"
|
|
6460
|
-
]
|
|
6242
|
+
className: "!px-sm",
|
|
6243
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { name: "refresh", size: 16 })
|
|
6461
6244
|
}
|
|
6462
6245
|
)
|
|
6463
|
-
]
|
|
6464
|
-
}
|
|
6465
|
-
),
|
|
6466
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-md", children: [
|
|
6467
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
|
|
6468
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Package details" }),
|
|
6469
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-xxs", children: [
|
|
6470
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Package" }),
|
|
6471
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-md text-ink font-mono", children: packageName })
|
|
6472
|
-
] }),
|
|
6473
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-xxs", children: [
|
|
6474
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Current version" }),
|
|
6475
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-xs", children: [
|
|
6476
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-md text-ink font-mono", children: currentVersion }),
|
|
6477
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Chip, { label: "Latest", variant: "primary", size: "sm" })
|
|
6478
|
-
] })
|
|
6479
|
-
] }),
|
|
6480
|
-
isProduction ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-xxs", children: [
|
|
6481
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Next version" }),
|
|
6482
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-xs", children: [
|
|
6483
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
6484
|
-
Input,
|
|
6485
|
-
{
|
|
6486
|
-
"aria-label": "Next version",
|
|
6487
|
-
value: nextVersion,
|
|
6488
|
-
onChange: (e) => setNextVersion(e.target.value),
|
|
6489
|
-
fullWidth: true,
|
|
6490
|
-
disabled: loading
|
|
6491
|
-
}
|
|
6492
|
-
),
|
|
6493
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
6494
|
-
Button,
|
|
6495
|
-
{
|
|
6496
|
-
variant: "secondary",
|
|
6497
|
-
size: "md",
|
|
6498
|
-
"aria-label": "Reset to suggested version",
|
|
6499
|
-
onClick: () => setNextVersion(bumpMinor(currentVersion)),
|
|
6500
|
-
disabled: loading,
|
|
6501
|
-
className: "!px-sm",
|
|
6502
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(RefreshIcon, {})
|
|
6503
|
-
}
|
|
6504
|
-
)
|
|
6505
|
-
] })
|
|
6506
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-xxs", children: [
|
|
6507
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Link command" }),
|
|
6508
|
-
/* @__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: [
|
|
6509
|
-
"npm link ",
|
|
6510
|
-
packageName
|
|
6511
|
-
] })
|
|
6512
|
-
] }),
|
|
6513
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "border border-hairline rounded-sm", children: [
|
|
6514
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
6515
|
-
Button,
|
|
6516
|
-
{
|
|
6517
|
-
type: "button",
|
|
6518
|
-
variant: "ghost",
|
|
6519
|
-
size: "sm",
|
|
6520
|
-
onClick: () => setNotesOpen((v) => !v),
|
|
6521
|
-
"aria-expanded": notesOpen,
|
|
6522
|
-
disabled: loading,
|
|
6523
|
-
className: "w-full !justify-start !rounded-none gap-xs text-body",
|
|
6524
|
-
children: [
|
|
6525
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ChevronIcon2, { open: notesOpen }),
|
|
6526
|
-
"Release notes (optional)"
|
|
6527
|
-
]
|
|
6528
|
-
}
|
|
6529
|
-
),
|
|
6530
|
-
notesOpen && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "px-sm pb-sm", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
6531
|
-
"textarea",
|
|
6532
|
-
{
|
|
6533
|
-
value: notes,
|
|
6534
|
-
onChange: (e) => setNotes(e.target.value),
|
|
6535
|
-
placeholder: "What changed in this release?",
|
|
6536
|
-
rows: 3,
|
|
6537
|
-
disabled: loading,
|
|
6538
|
-
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"
|
|
6539
|
-
}
|
|
6540
|
-
) })
|
|
6541
6246
|
] })
|
|
6542
|
-
] }),
|
|
6543
|
-
|
|
6544
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
/* @__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" }),
|
|
6549
|
-
/* @__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.` })
|
|
6550
|
-
] })
|
|
6551
|
-
] }),
|
|
6552
|
-
/* @__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: [
|
|
6553
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-semantic-success flex-shrink-0 mt-xxs", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CheckCircleIcon, {}) }),
|
|
6554
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { children: [
|
|
6555
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-sm font-weight-heading-sm text-ink", children: item.title }),
|
|
6556
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-sm text-muted", children: item.desc })
|
|
6557
|
-
] })
|
|
6558
|
-
] }, 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
|
+
] })
|
|
6559
6253
|
] })
|
|
6560
6254
|
] }),
|
|
6561
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: [
|
|
6562
|
-
/* @__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)(
|
|
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 }) }),
|
|
6563
6257
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-sm text-body", children: noticeText })
|
|
6564
6258
|
] })
|
|
6565
6259
|
] })
|