jenosize-ui 0.2.2 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +183 -63
- package/THIRD-PARTY-NOTICES.md +95 -0
- package/dist/GradientPicker-Bv3V3vL_.d.ts +144 -0
- package/dist/{PaymentInput-Dn5WVQVy.d.ts → PaymentInput-s7_s3UDi.d.ts} +1 -1
- package/dist/{Select-Dt5ARIH8.d.ts → Select-r233iMaU.d.ts} +15 -1
- package/dist/{TagInput-BaBeve6L.d.ts → TagInput-w_l9Fp5i.d.ts} +1 -1
- package/dist/area-chart.d.ts +2 -2
- package/dist/area-chart.js +8 -6
- package/dist/at-least-one-BZ2dsck-.d.ts +18 -0
- package/dist/avatar.d.ts +1 -1
- package/dist/avatar.js +12 -10
- package/dist/badge.d.ts +1 -1
- package/dist/badge.js +7 -6
- package/dist/bar-chart.d.ts +2 -2
- package/dist/bar-chart.js +8 -6
- package/dist/breadcrumb.d.ts +1 -1
- package/dist/breadcrumb.js +5 -4
- package/dist/button.d.ts +1 -1
- package/dist/button.js +12 -10
- package/dist/calendar.d.ts +1 -1
- package/dist/calendar.js +16 -14
- package/dist/callout.d.ts +4 -2
- package/dist/callout.js +13 -11
- package/dist/card.d.ts +59 -3
- package/dist/card.js +4 -3
- package/dist/carousel.d.ts +169 -0
- package/dist/carousel.js +10 -0
- package/dist/catalog.json +11976 -0
- package/dist/checkbox.js +9 -7
- package/dist/{chunk-AIARANKE.js → chunk-2EUVBRKG.js} +4 -4
- package/dist/{chunk-5ZEUTSCV.js → chunk-2RRPWOKT.js} +6 -6
- package/dist/{chunk-DD5KJVFV.js → chunk-3JFSKCVU.js} +19 -19
- package/dist/{chunk-OACWA4TC.js → chunk-3ZZZPT5G.js} +6 -6
- package/dist/{chunk-LQURV7HQ.js → chunk-47EOHGXM.js} +4 -4
- package/dist/{chunk-CGHYXWTT.js → chunk-4KRCT3Q2.js} +4 -4
- package/dist/chunk-4P3JA653.js +1129 -0
- package/dist/{chunk-FWRHBMWT.js → chunk-4Y32RIC7.js} +5 -19
- package/dist/{chunk-BBKE4W3B.js → chunk-5Z26DU23.js} +7 -7
- package/dist/{chunk-7QXOGAN6.js → chunk-6CJYVYVN.js} +87 -538
- package/dist/{chunk-3HOHLQVP.js → chunk-6FGLABYH.js} +3 -3
- package/dist/{chunk-GQRSABRN.js → chunk-6Q4VVBFO.js} +4 -4
- package/dist/{chunk-MCQG4H6T.js → chunk-6T3QAO5K.js} +12 -4
- package/dist/chunk-7JOW3LEH.js +4852 -0
- package/dist/{chunk-AFYXSZGW.js → chunk-7LSUUEAF.js} +7 -5
- package/dist/{chunk-7VLYQR4D.js → chunk-7OFGPDYJ.js} +3 -3
- package/dist/{chunk-7GUPNTAH.js → chunk-7RD5RTHU.js} +7 -7
- package/dist/{chunk-X2VMIBK5.js → chunk-A36W77MQ.js} +4 -4
- package/dist/chunk-AZFHRLYF.js +67 -0
- package/dist/{chunk-CFFWYXDW.js → chunk-B6LYO33Y.js} +5 -5
- package/dist/{chunk-P6CON2R2.js → chunk-BH32X25C.js} +3 -3
- package/dist/{chunk-KHGW72BM.js → chunk-CH2XMCWX.js} +3 -3
- package/dist/{chunk-FNQJJO63.js → chunk-D46OKHTH.js} +4 -4
- package/dist/{chunk-LE44X5GS.js → chunk-D4YGYNNY.js} +9 -9
- package/dist/{chunk-T5574MXM.js → chunk-D7WD4SUC.js} +8 -8
- package/dist/{chunk-33TOK7ES.js → chunk-DCKVNHV5.js} +5 -5
- package/dist/chunk-EBZNUQ6E.js +525 -0
- package/dist/{chunk-22M75A3N.js → chunk-ED5UCYAV.js} +14 -11
- package/dist/{chunk-IQNVSQRK.js → chunk-EDVYLO2N.js} +5 -5
- package/dist/{chunk-N3RVMBPX.js → chunk-EJKQGUUM.js} +4 -4
- package/dist/{chunk-POQTE7JI.js → chunk-EKQLIUV5.js} +7 -7
- package/dist/{chunk-ULGCGKOE.js → chunk-EKV3CVTY.js} +4 -4
- package/dist/{chunk-LCG34A5T.js → chunk-EVINS473.js} +5 -3
- package/dist/{chunk-ZZSNTCCL.js → chunk-G7B2QUQP.js} +4 -4
- package/dist/{chunk-SB3DG572.js → chunk-GHRZC5LS.js} +6 -6
- package/dist/{chunk-5YWH2ANQ.js → chunk-GIC6T647.js} +11 -10
- package/dist/{chunk-7ZM7SNCZ.js → chunk-GPHGPY6T.js} +3 -3
- package/dist/chunk-GV2KTRRP.js +325 -0
- package/dist/{chunk-4RBIWI2Q.js → chunk-GYL4KOPT.js} +3 -3
- package/dist/{chunk-5KSD4WKN.js → chunk-HB6UA6EF.js} +5 -5
- package/dist/{chunk-CGZXQ7PA.js → chunk-HNNNJP3A.js} +3 -3
- package/dist/chunk-HTWGTTSF.js +1011 -0
- package/dist/chunk-IH2F5UNQ.js +109 -0
- package/dist/{chunk-QNIKRB62.js → chunk-INYUL4DX.js} +4 -4
- package/dist/{chunk-SKRR3ZMP.js → chunk-IUB5TSSH.js} +3 -3
- package/dist/chunk-JGGSRKHW.js +344 -0
- package/dist/{chunk-ZR6HNKSN.js → chunk-JHHJNIW2.js} +3 -3
- package/dist/chunk-KBI442IB.js +113 -0
- package/dist/chunk-KBQJIVUB.js +33 -0
- package/dist/{chunk-3QXLIZIX.js → chunk-KNGJ3CSB.js} +3 -3
- package/dist/chunk-KNKR5TUM.js +183 -0
- package/dist/{chunk-KZP6B6B3.js → chunk-KTWTYK5U.js} +16 -5
- package/dist/{chunk-5XPMY2LF.js → chunk-LKUAVDWP.js} +5 -5
- package/dist/{chunk-YHBI52P2.js → chunk-LPWSP523.js} +3 -3
- package/dist/{chunk-GLKFFA7N.js → chunk-LY7IJOUF.js} +5 -5
- package/dist/{chunk-R4Z7BINC.js → chunk-LYWQD5KL.js} +8 -8
- package/dist/{chunk-LLPWQDF7.js → chunk-MTOTPAYZ.js} +3 -3
- package/dist/{chunk-AZ7DKRBY.js → chunk-MVF7FA4D.js} +5 -5
- package/dist/{chunk-AIGYMTCU.js → chunk-MVUNB43J.js} +3 -3
- package/dist/{chunk-T4ZFZTY6.js → chunk-N7DLNDER.js} +4 -4
- package/dist/{chunk-E2YZ7IMT.js → chunk-NDRQETOQ.js} +15 -11
- package/dist/{chunk-ZD3MOLIB.js → chunk-O7CPRU67.js} +4 -4
- package/dist/{chunk-OLLD2BZN.js → chunk-OEYKTHG7.js} +3 -3
- package/dist/{chunk-TX57TNJS.js → chunk-OG3H3RP2.js} +9 -9
- package/dist/{chunk-UGBNYSBN.js → chunk-PFKPKE6O.js} +20 -34
- package/dist/chunk-PRWPFBA5.js +619 -0
- package/dist/{chunk-QDKETK7D.js → chunk-S55JKMG7.js} +5 -5
- package/dist/{chunk-QDYE5LVT.js → chunk-SF3HCW4G.js} +45 -4
- package/dist/{chunk-6MMBQVRO.js → chunk-TDKKZA63.js} +9 -9
- package/dist/{chunk-HHYEAFCL.js → chunk-TDXHBS2C.js} +11 -11
- package/dist/{chunk-74AIU53R.js → chunk-THGGU64E.js} +3 -3
- package/dist/chunk-UHSGD4CD.js +364 -0
- package/dist/{chunk-HV2W6HUR.js → chunk-URAURI6G.js} +10 -10
- package/dist/{chunk-D6XO4JVM.js → chunk-UU6KUS5O.js} +42 -20
- package/dist/{chunk-NKG4N6HA.js → chunk-V7KEEDSF.js} +5 -4
- package/dist/{chunk-IEAWNA3V.js → chunk-VDFWWWLL.js} +3 -3
- package/dist/chunk-VHAA22YE.js +11 -0
- package/dist/chunk-WJB5GWAZ.js +20 -0
- package/dist/{chunk-KJ5JUS53.js → chunk-WM6DGNIA.js} +9 -9
- package/dist/{chunk-MFFA5MXY.js → chunk-WUXMLJEC.js} +5 -5
- package/dist/{chunk-YPNL2NBD.js → chunk-XNXBO44X.js} +33 -11
- package/dist/chunk-XPY3XT7L.js +5671 -0
- package/dist/{chunk-54SIZR63.js → chunk-XVFRDKZJ.js} +7 -7
- package/dist/{chunk-LYXPJERB.js → chunk-YDD46AX2.js} +5 -5
- package/dist/{chunk-NC63TYNW.js → chunk-YHQJGNXD.js} +7 -7
- package/dist/{chunk-I6WMNXC7.js → chunk-YKRE5NIH.js} +6 -6
- package/dist/{chunk-RJTVCA62.js → chunk-ZIEGUI25.js} +3 -3
- package/dist/{chunk-5DP7W5HX.js → chunk-ZLDWYTDA.js} +3 -3
- package/dist/color-input.d.ts +93 -0
- package/dist/color-input.js +36 -0
- package/dist/color-picker.d.ts +268 -0
- package/dist/color-picker.js +29 -0
- package/dist/color-value-DYzChVOW.d.ts +129 -0
- package/dist/combobox.d.ts +1 -1
- package/dist/combobox.js +14 -12
- package/dist/data-map.d.ts +1673 -0
- package/dist/data-map.js +36 -0
- package/dist/date-calendar.d.ts +49 -0
- package/dist/date-calendar.js +13 -0
- package/dist/date-input.d.ts +1 -1
- package/dist/date-input.js +12 -10
- package/dist/date-picker.d.ts +15 -131
- package/dist/date-picker.js +26 -21
- package/dist/date-types-CLZek3W2.d.ts +100 -0
- package/dist/dialog.d.ts +1 -1
- package/dist/dialog.js +10 -9
- package/dist/drawer.d.ts +1 -1
- package/dist/drawer.js +9 -8
- package/dist/dropdown-menu.d.ts +1 -1
- package/dist/dropdown-menu.js +5 -4
- package/dist/dropzone.d.ts +3 -3
- package/dist/dropzone.js +18 -16
- package/dist/file-trigger.js +1 -0
- package/dist/form.d.ts +15 -5
- package/dist/form.js +75 -35
- package/dist/header-navigation.d.ts +2 -2
- package/dist/header-navigation.js +20 -18
- package/dist/helper.d.ts +1 -1
- package/dist/helper.js +1 -0
- package/dist/illustration.js +1 -0
- package/dist/index.d.ts +26 -11
- package/dist/index.js +92 -77
- package/dist/indicator.js +5 -4
- package/dist/inline-banner.d.ts +68 -0
- package/dist/inline-banner.js +21 -0
- package/dist/input.d.ts +1 -1
- package/dist/input.js +11 -9
- package/dist/kanban-board.d.ts +2 -2
- package/dist/kanban-board.js +15 -13
- package/dist/labels-CuSlirP_.d.ts +1381 -0
- package/dist/line-chart.d.ts +2 -2
- package/dist/line-chart.js +8 -6
- package/dist/mcp.js +231 -0
- package/dist/number-input.d.ts +1 -1
- package/dist/number-input.js +11 -9
- package/dist/pagination.d.ts +1 -1
- package/dist/pagination.js +15 -13
- package/dist/{card-D56VxyAe.d.ts → panel-CUGm_Mxy.d.ts} +9 -57
- package/dist/payment-input.d.ts +3 -3
- package/dist/payment-input.js +11 -9
- package/dist/picker-draft-BPV3MUPY.d.ts +9 -0
- package/dist/pie-chart.d.ts +2 -2
- package/dist/pie-chart.js +8 -6
- package/dist/popover.d.ts +65 -4
- package/dist/popover.js +9 -8
- package/dist/progress-steps.js +5 -4
- package/dist/progress.js +4 -3
- package/dist/provider.d.ts +1 -1
- package/dist/provider.js +4 -3
- package/dist/qr-code.d.ts +227 -0
- package/dist/qr-code.js +20 -0
- package/dist/radar-chart.d.ts +2 -2
- package/dist/radar-chart.js +8 -6
- package/dist/radial-chart.d.ts +2 -2
- package/dist/radial-chart.js +8 -6
- package/dist/radio.js +9 -7
- package/dist/rich-text-editor.d.ts +624 -0
- package/dist/rich-text-editor.js +52 -0
- package/dist/rich-text-highlight.d.ts +11 -0
- package/dist/rich-text-highlight.js +65 -0
- package/dist/rich-text-sanitize.d.ts +17 -0
- package/dist/rich-text-sanitize.js +176 -0
- package/dist/scroll-area.js +1 -0
- package/dist/select.d.ts +2 -2
- package/dist/select.js +17 -15
- package/dist/separator.js +3 -2
- package/dist/shared-CGf2D8ZX.d.ts +20 -0
- package/dist/sidebar-navigation.d.ts +73 -32
- package/dist/sidebar-navigation.js +15 -13
- package/dist/sidebar-state.d.ts +76 -0
- package/dist/sidebar-state.js +27 -0
- package/dist/skeleton.js +3 -2
- package/dist/slider.d.ts +321 -0
- package/dist/slider.js +14 -0
- package/dist/styles.css +1 -1
- package/dist/switch.d.ts +1 -1
- package/dist/switch.js +3 -2
- package/dist/table.d.ts +3 -19
- package/dist/table.js +34 -32
- package/dist/tabs.js +3 -2
- package/dist/tag-input.d.ts +3 -3
- package/dist/tag-input.js +14 -12
- package/dist/tag.d.ts +1 -1
- package/dist/tag.js +5 -4
- package/dist/textarea.js +9 -7
- package/dist/theme.css +965 -0
- package/dist/theme.js +13 -11
- package/dist/toast.d.ts +1 -1
- package/dist/toast.js +13 -11
- package/dist/tooltip.js +5 -3
- package/dist/tree.d.ts +1 -1
- package/dist/tree.js +7 -6
- package/dist/{types-DR9rAEy1.d.ts → types-BoZ6XeLB.d.ts} +1 -1
- package/dist/{use-uploads-KaPqDklo.d.ts → use-uploads-cHo2p7Gn.d.ts} +1 -1
- package/dist/verification-code-input.js +11 -9
- package/package.json +105 -8
- package/dist/chunk-BLIZ3CL3.js +0 -49
- package/dist/labels-DPrh0se9.d.ts +0 -627
- package/dist/panel-El4oI68p.d.ts +0 -9
- package/dist/shared-BYXJPnsN.d.ts +0 -11
package/dist/line-chart.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { C as CartesianChartBaseProps, b as ChartCurve } from './types-
|
|
3
|
-
import './labels-
|
|
2
|
+
import { C as CartesianChartBaseProps, b as ChartCurve } from './types-BoZ6XeLB.js';
|
|
3
|
+
import './labels-CuSlirP_.js';
|
|
4
4
|
import './tooltip-surface-C2I9o2QM.js';
|
|
5
5
|
|
|
6
6
|
interface LineChartProps<T extends object> extends CartesianChartBaseProps<T> {
|
package/dist/line-chart.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
"use client";export { LineChart } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
"use client";export { LineChart } from './chunk-LPWSP523.js';
|
|
2
|
+
import './chunk-ZLDWYTDA.js';
|
|
3
|
+
import './chunk-ED5UCYAV.js';
|
|
4
|
+
import './chunk-7LSUUEAF.js';
|
|
5
5
|
import './chunk-ZSNJ6UA3.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
6
|
+
import './chunk-ZIEGUI25.js';
|
|
7
|
+
import './chunk-SF3HCW4G.js';
|
|
8
|
+
import './chunk-3ZEEGXYF.js';
|
|
9
|
+
import './chunk-VHAA22YE.js';
|
|
8
10
|
//# sourceMappingURL=line-chart.js.map
|
|
9
11
|
//# sourceMappingURL=line-chart.js.map
|
package/dist/mcp.js
ADDED
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// scripts/mcp/bin.mjs
|
|
4
|
+
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
5
|
+
import { dirname, join as join2 } from "path";
|
|
6
|
+
import process2 from "process";
|
|
7
|
+
import { fileURLToPath, pathToFileURL } from "url";
|
|
8
|
+
|
|
9
|
+
// scripts/mcp/rpc.mjs
|
|
10
|
+
var SUPPORTED = ["2025-06-18", "2025-03-26", "2024-11-05"];
|
|
11
|
+
var isPlainObject = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
12
|
+
var PARSE_ERROR = -32700;
|
|
13
|
+
var INVALID_REQUEST = -32600;
|
|
14
|
+
var METHOD_NOT_FOUND = -32601;
|
|
15
|
+
var INTERNAL_ERROR = -32603;
|
|
16
|
+
function serve({ serverInfo, tools: tools2, input = process.stdin, output = process.stdout }) {
|
|
17
|
+
const send = (message) => output.write(`${JSON.stringify(message)}
|
|
18
|
+
`);
|
|
19
|
+
const result = (id, value) => send({ jsonrpc: "2.0", id, result: value });
|
|
20
|
+
const failure = (id, code, message) => send({ jsonrpc: "2.0", id, error: { code, message } });
|
|
21
|
+
const callTool = (params) => {
|
|
22
|
+
const name = params?.name;
|
|
23
|
+
const tool = Object.hasOwn(tools2, name) ? tools2[name] : void 0;
|
|
24
|
+
if (!tool) return { content: [{ type: "text", text: `Unknown tool "${name}". Available: ${Object.keys(tools2).join(", ")}` }], isError: true };
|
|
25
|
+
try {
|
|
26
|
+
return tool.run(params?.arguments ?? {});
|
|
27
|
+
} catch (error) {
|
|
28
|
+
return { content: [{ type: "text", text: `Error: ${error?.message ?? String(error)}` }], isError: true };
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const handle = (message) => {
|
|
32
|
+
if (!isPlainObject(message)) return failure(null, INVALID_REQUEST, "Expected a JSON-RPC object.");
|
|
33
|
+
const { id, method } = message;
|
|
34
|
+
const isNotification = id === void 0 || id === null;
|
|
35
|
+
if (typeof method !== "string") return isNotification ? void 0 : failure(id, INVALID_REQUEST, "Missing `method`.");
|
|
36
|
+
switch (method) {
|
|
37
|
+
case "initialize": {
|
|
38
|
+
const asked = message.params?.protocolVersion;
|
|
39
|
+
return result(id, {
|
|
40
|
+
protocolVersion: SUPPORTED.includes(asked) ? asked : SUPPORTED[0],
|
|
41
|
+
capabilities: { tools: {} },
|
|
42
|
+
serverInfo
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
case "ping":
|
|
46
|
+
return result(id, {});
|
|
47
|
+
case "tools/list":
|
|
48
|
+
return result(id, {
|
|
49
|
+
tools: Object.entries(tools2).map(([name, t]) => ({ name, description: t.description, inputSchema: t.inputSchema }))
|
|
50
|
+
});
|
|
51
|
+
case "tools/call":
|
|
52
|
+
return result(id, callTool(message.params));
|
|
53
|
+
default:
|
|
54
|
+
return isNotification ? void 0 : failure(id, METHOD_NOT_FOUND, `Unknown method "${method}".`);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
return new Promise((resolve) => {
|
|
58
|
+
let buffer = "";
|
|
59
|
+
input.setEncoding("utf8");
|
|
60
|
+
input.on("data", (chunk) => {
|
|
61
|
+
buffer += chunk;
|
|
62
|
+
let cut;
|
|
63
|
+
while ((cut = buffer.indexOf("\n")) !== -1) {
|
|
64
|
+
const line = buffer.slice(0, cut).trim();
|
|
65
|
+
buffer = buffer.slice(cut + 1);
|
|
66
|
+
if (!line) continue;
|
|
67
|
+
let parsed;
|
|
68
|
+
try {
|
|
69
|
+
parsed = JSON.parse(line);
|
|
70
|
+
} catch {
|
|
71
|
+
failure(null, PARSE_ERROR, "Invalid JSON.");
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
try {
|
|
75
|
+
if (Array.isArray(parsed)) for (const one of parsed) handle(one);
|
|
76
|
+
else handle(parsed);
|
|
77
|
+
} catch (error) {
|
|
78
|
+
failure(isPlainObject(parsed) ? parsed.id ?? null : null, INTERNAL_ERROR, error?.message ?? String(error));
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
input.on("end", resolve);
|
|
83
|
+
input.on("close", resolve);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// scripts/mcp/tools.mjs
|
|
88
|
+
import { existsSync, readFileSync } from "fs";
|
|
89
|
+
import { join } from "path";
|
|
90
|
+
var text = (value) => ({
|
|
91
|
+
content: [{ type: "text", text: typeof value === "string" ? value : JSON.stringify(value, null, 2) }]
|
|
92
|
+
});
|
|
93
|
+
function createTools({ catalog: catalog2, galleryDir: galleryDir2, demoBase }) {
|
|
94
|
+
const bySlug = new Map(catalog2.components.map((c) => [c.slug, c]));
|
|
95
|
+
const slugList = catalog2.components.map((c) => c.slug);
|
|
96
|
+
const notFound = (slug) => ({
|
|
97
|
+
content: [{ type: "text", text: `Unknown component "${slug}". Available: ${slugList.join(", ")}` }],
|
|
98
|
+
isError: true
|
|
99
|
+
});
|
|
100
|
+
const slugInput = {
|
|
101
|
+
type: "object",
|
|
102
|
+
properties: { slug: { type: "string", description: `Component slug, one of: ${slugList.join(", ")}` } },
|
|
103
|
+
required: ["slug"],
|
|
104
|
+
additionalProperties: false
|
|
105
|
+
};
|
|
106
|
+
const demoUrl = (slug, theme) => `${demoBase}/components/${slug}?theme=${theme}`;
|
|
107
|
+
return {
|
|
108
|
+
list_components: {
|
|
109
|
+
description: "List every jenosize-ui component with its slug, title, import path, status, and one-line summary. Call this first to discover what the library ships.",
|
|
110
|
+
inputSchema: { type: "object", properties: {}, additionalProperties: false },
|
|
111
|
+
run: () => text(
|
|
112
|
+
catalog2.components.map((c) => ({
|
|
113
|
+
slug: c.slug,
|
|
114
|
+
title: c.title,
|
|
115
|
+
import: c.import,
|
|
116
|
+
status: c.status,
|
|
117
|
+
summary: c.spec?.summary ?? null
|
|
118
|
+
}))
|
|
119
|
+
)
|
|
120
|
+
},
|
|
121
|
+
get_component: {
|
|
122
|
+
description: "Full catalog entry for one component: import statement, summary, prop tables, usage code, and the narrative sections (variants, states, accessibility, what is deliberately NOT exposed, do/don't). Use before generating code with a component.",
|
|
123
|
+
inputSchema: slugInput,
|
|
124
|
+
run: ({ slug }) => bySlug.has(slug) ? text(bySlug.get(slug)) : notFound(slug)
|
|
125
|
+
},
|
|
126
|
+
get_props: {
|
|
127
|
+
description: "Just the prop schema for a component \u2014 one group per (sub-)component, each row = { prop, type, default, description }. For when an agent only needs the API surface.",
|
|
128
|
+
inputSchema: slugInput,
|
|
129
|
+
run: ({ slug }) => {
|
|
130
|
+
const c = bySlug.get(slug);
|
|
131
|
+
return c ? text({ slug, import: c.import, props: c.spec?.props ?? [] }) : notFound(slug);
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
get_usage: {
|
|
135
|
+
description: "The copy-paste usage example (real tsx) for a component, plus its import statement.",
|
|
136
|
+
inputSchema: slugInput,
|
|
137
|
+
run: ({ slug }) => {
|
|
138
|
+
const c = bySlug.get(slug);
|
|
139
|
+
return c ? text({ slug, import: c.import, usage: c.spec?.usage ?? null }) : notFound(slug);
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
search_components: {
|
|
143
|
+
description: "Find components whose slug, title, or summary matches a query (case-insensitive substring). Use to locate the right component from an intent like 'dropdown' or 'date'.",
|
|
144
|
+
inputSchema: {
|
|
145
|
+
type: "object",
|
|
146
|
+
properties: { query: { type: "string", description: "Search term, e.g. 'select' or 'overlay'." } },
|
|
147
|
+
required: ["query"],
|
|
148
|
+
additionalProperties: false
|
|
149
|
+
},
|
|
150
|
+
run: ({ query }) => {
|
|
151
|
+
const q = String(query ?? "").toLowerCase();
|
|
152
|
+
const hits = catalog2.components.filter(
|
|
153
|
+
(c) => c.slug.includes(q) || c.title.toLowerCase().includes(q) || (c.spec?.summary ?? "").toLowerCase().includes(q)
|
|
154
|
+
);
|
|
155
|
+
return text(hits.map((c) => ({ slug: c.slug, title: c.title, import: c.import, summary: c.spec?.summary ?? null })));
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
/* ONE tool, two behaviours, chosen by what is actually on disk.
|
|
159
|
+
*
|
|
160
|
+
* In a checkout the gallery is a local file that costs nothing to serve, and an `image` content
|
|
161
|
+
* block is strictly better than a link: the model SEES the component. Installed from npm there
|
|
162
|
+
* is no gallery — shipping 12 MB of PNGs would octuple the download, and they would go stale
|
|
163
|
+
* per release with no gate able to notice (that failure already happened once: 27 of 55 slugs
|
|
164
|
+
* silently had no shot). So the fallback is the live demo, which cannot go stale because it is
|
|
165
|
+
* the deployed site. The description is built from the same condition, so `tools/list` always
|
|
166
|
+
* states which of the two this process will do. */
|
|
167
|
+
screenshot_component: {
|
|
168
|
+
description: galleryDir2 ? "Return a PNG screenshot of a component's hero example so the agent can SEE how it looks. Themes: 'light' (default) or 'dark'. Capture the gallery first with `pnpm gallery`." : "Return a URL to the component's live demo page, theme pinned, so an agent that can open a page will SEE how it looks. Themes: 'light' (default) or 'dark'.",
|
|
169
|
+
inputSchema: {
|
|
170
|
+
type: "object",
|
|
171
|
+
properties: {
|
|
172
|
+
slug: { type: "string", description: `Component slug, one of: ${slugList.join(", ")}` },
|
|
173
|
+
theme: { type: "string", enum: ["light", "dark"], description: "Colour scheme (default light)." }
|
|
174
|
+
},
|
|
175
|
+
required: ["slug"],
|
|
176
|
+
additionalProperties: false
|
|
177
|
+
},
|
|
178
|
+
run: ({ slug, theme }) => {
|
|
179
|
+
if (!bySlug.has(slug)) return notFound(slug);
|
|
180
|
+
const t = theme === "dark" ? "dark" : "light";
|
|
181
|
+
if (!galleryDir2) return text({ slug, theme: t, url: demoUrl(slug, t), note: "Open this page to see the component rendered." });
|
|
182
|
+
const file = join(galleryDir2, `${slug}.${t}.png`);
|
|
183
|
+
if (!existsSync(file))
|
|
184
|
+
return {
|
|
185
|
+
content: [{ type: "text", text: `No ${t} screenshot for "${slug}" yet. Run \`pnpm gallery ${slug}\`, or open ${demoUrl(slug, t)}.` }],
|
|
186
|
+
isError: true
|
|
187
|
+
};
|
|
188
|
+
return { content: [{ type: "image", data: readFileSync(file).toString("base64"), mimeType: "image/png" }] };
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// scripts/mcp/bin.mjs
|
|
195
|
+
var HERE = dirname(fileURLToPath(import.meta.url));
|
|
196
|
+
var DEMO_BASE = process2.env.JENOSIZE_UI_DEMO_BASE ?? "https://jenosize-dev-ai-05.github.io/jenosize-ui";
|
|
197
|
+
var findUp = (from, test, depth = 4) => {
|
|
198
|
+
let dir = from;
|
|
199
|
+
for (let i = 0; i <= depth; i++) {
|
|
200
|
+
if (test(dir)) return dir;
|
|
201
|
+
const up = dirname(dir);
|
|
202
|
+
if (up === dir) break;
|
|
203
|
+
dir = up;
|
|
204
|
+
}
|
|
205
|
+
return null;
|
|
206
|
+
};
|
|
207
|
+
var readJson = (file) => JSON.parse(readFileSync2(file, "utf8"));
|
|
208
|
+
var repoRoot = findUp(HERE, (d) => existsSync2(join2(d, "playground/components-registry.ts")) && existsSync2(join2(d, "scripts/catalog-lib.mjs")));
|
|
209
|
+
async function loadCatalog() {
|
|
210
|
+
if (repoRoot) {
|
|
211
|
+
const { buildCatalog } = await import(pathToFileURL(join2(repoRoot, "scripts/catalog-lib.mjs")).href);
|
|
212
|
+
return { catalog: buildCatalog(repoRoot), source: "live (registry + docs)" };
|
|
213
|
+
}
|
|
214
|
+
const snapshot = [join2(HERE, "catalog.json"), join2(HERE, "..", "catalog.json"), join2(HERE, "..", "..", "catalog.json")].find((f) => existsSync2(f));
|
|
215
|
+
if (!snapshot) {
|
|
216
|
+
console.error(
|
|
217
|
+
"[jenosize-ui-mcp] no catalog found. Expected dist/catalog.json beside this bundle (installed), or a checkout with playground/components-registry.ts (source). Reinstall jenosize-ui, or run `pnpm catalog` in a checkout."
|
|
218
|
+
);
|
|
219
|
+
process2.exit(1);
|
|
220
|
+
}
|
|
221
|
+
return { catalog: readJson(snapshot), source: `snapshot (${snapshot.replace(`${HERE}/`, "")})` };
|
|
222
|
+
}
|
|
223
|
+
var pkgFile = findUp(HERE, (d) => existsSync2(join2(d, "package.json")) && readJson(join2(d, "package.json")).name === "jenosize-ui");
|
|
224
|
+
var version = pkgFile ? readJson(join2(pkgFile, "package.json")).version : "0.0.0";
|
|
225
|
+
var { catalog, source } = await loadCatalog();
|
|
226
|
+
var galleryDir = repoRoot && existsSync2(join2(repoRoot, "gallery")) ? join2(repoRoot, "gallery") : null;
|
|
227
|
+
var shot = galleryDir ? catalog.components.filter((c) => existsSync2(join2(galleryDir, `${c.slug}.light.png`)) && existsSync2(join2(galleryDir, `${c.slug}.dark.png`))) : [];
|
|
228
|
+
var gallery = !galleryDir ? `screenshots \u2192 ${DEMO_BASE}` : shot.length === catalog.components.length ? `gallery complete (${shot.length}\xD72)` : `gallery ${shot.length}/${catalog.components.length} \u2014 run \`pnpm gallery\` (missing: ${catalog.components.filter((c) => !shot.includes(c)).map((c) => c.slug).join(", ")})`;
|
|
229
|
+
var tools = createTools({ catalog, galleryDir, demoBase: DEMO_BASE });
|
|
230
|
+
console.error(`[jenosize-ui-mcp] v${version} \u2014 ${catalog.components.length} components from ${source}, ${Object.keys(tools).length} tools, ${gallery}.`);
|
|
231
|
+
await serve({ serverInfo: { name: "jenosize-ui", version }, tools });
|
package/dist/number-input.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NumberFieldRootProps } from '@base-ui/react/number-field';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { N as NumberInputLabels } from './labels-
|
|
3
|
+
import { N as NumberInputLabels } from './labels-CuSlirP_.js';
|
|
4
4
|
|
|
5
5
|
type NumberInputSize = "sm" | "md" | "lg";
|
|
6
6
|
type NumberInputVariant = "horizontal" | "vertical";
|
package/dist/number-input.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
"use client";export { NumberInput } from './chunk-
|
|
1
|
+
"use client";export { NumberInput } from './chunk-5Z26DU23.js';
|
|
2
2
|
import './chunk-7EUAMHMU.js';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-A36W77MQ.js';
|
|
4
4
|
import './chunk-O2LG3PNI.js';
|
|
5
5
|
import './chunk-EDSK6FEH.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
6
|
+
import './chunk-HB6UA6EF.js';
|
|
7
|
+
import './chunk-GPHGPY6T.js';
|
|
8
8
|
import './chunk-52IFGFTL.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
import './chunk-KTWTYK5U.js';
|
|
10
|
+
import './chunk-7LSUUEAF.js';
|
|
11
11
|
import './chunk-O4GRKO3I.js';
|
|
12
|
-
import './chunk-
|
|
12
|
+
import './chunk-KBI442IB.js';
|
|
13
13
|
import './chunk-ZSNJ6UA3.js';
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
14
|
+
import './chunk-ZIEGUI25.js';
|
|
15
|
+
import './chunk-SF3HCW4G.js';
|
|
16
|
+
import './chunk-3ZEEGXYF.js';
|
|
17
|
+
import './chunk-VHAA22YE.js';
|
|
16
18
|
//# sourceMappingURL=number-input.js.map
|
|
17
19
|
//# sourceMappingURL=number-input.js.map
|
package/dist/pagination.d.ts
CHANGED
package/dist/pagination.js
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
"use client";export { Pagination, pageWindow } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
1
|
+
"use client";export { Pagination, pageWindow } from './chunk-TDKKZA63.js';
|
|
2
|
+
import './chunk-7OFGPDYJ.js';
|
|
3
|
+
import './chunk-EVINS473.js';
|
|
4
|
+
import './chunk-YKRE5NIH.js';
|
|
5
|
+
import './chunk-7RD5RTHU.js';
|
|
6
6
|
import './chunk-7EUAMHMU.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-A36W77MQ.js';
|
|
8
8
|
import './chunk-O2LG3PNI.js';
|
|
9
9
|
import './chunk-EDSK6FEH.js';
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
10
|
+
import './chunk-HB6UA6EF.js';
|
|
11
|
+
import './chunk-GPHGPY6T.js';
|
|
12
12
|
import './chunk-52IFGFTL.js';
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
13
|
+
import './chunk-KTWTYK5U.js';
|
|
14
|
+
import './chunk-7LSUUEAF.js';
|
|
15
15
|
import './chunk-O4GRKO3I.js';
|
|
16
|
-
import './chunk-
|
|
16
|
+
import './chunk-KBI442IB.js';
|
|
17
17
|
import './chunk-ZSNJ6UA3.js';
|
|
18
|
-
import './chunk-
|
|
19
|
-
import './chunk-
|
|
18
|
+
import './chunk-ZIEGUI25.js';
|
|
19
|
+
import './chunk-SF3HCW4G.js';
|
|
20
|
+
import './chunk-3ZEEGXYF.js';
|
|
21
|
+
import './chunk-VHAA22YE.js';
|
|
20
22
|
//# sourceMappingURL=pagination.js.map
|
|
21
23
|
//# sourceMappingURL=pagination.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { P as PanelDividers } from './panel-El4oI68p.js';
|
|
1
|
+
import { R as RuleTexture } from './rule-BqzaIwJy.js';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* The **in-flow card surface** — one recipe for every bordered/rounded panel that sits in the
|
|
@@ -65,59 +64,12 @@ declare const CARD_SURFACE_VARIANTS: readonly CardSurfaceVariant[];
|
|
|
65
64
|
type SurfaceShadow = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
66
65
|
declare const SURFACE_SHADOWS: readonly SurfaceShadow[];
|
|
67
66
|
|
|
68
|
-
|
|
69
|
-
type
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
* `subtle` is a sunken well that reads as background rather than as an object. The two differ by
|
|
76
|
-
* FILL, in both themes and at every `shadow` step, so no two combinations paint the same box.
|
|
77
|
-
* @default "outlined"
|
|
78
|
-
*/
|
|
79
|
-
variant?: CardVariant;
|
|
80
|
-
/**
|
|
81
|
-
* How far the card lifts, over the design system's published scale — `none` (flat) · `xs` · `sm` ·
|
|
82
|
-
* `md` · `lg` · `xl` · `2xl`. Any step other than `none` draws `theme.css`'s `--shadow-*` **and**
|
|
83
|
-
* raises `outlined`'s fill one stop to `bg-primary_alt`, because a black shadow at 3–18% opacity
|
|
84
|
-
* composites to a 1/255 step on dark: in light the shadow carries the lift, in dark the fill does.
|
|
85
|
-
* `subtle` is a well, so it takes the shadow but never the lifted fill. @default "none"
|
|
86
|
-
*/
|
|
87
|
-
shadow?: CardShadow;
|
|
88
|
-
/**
|
|
89
|
-
* Inner gutter. `none` hands ALL spacing to the caller — use it for full-bleed content that must
|
|
90
|
-
* reach the radius (a table, a media header). @default "md"
|
|
91
|
-
*/
|
|
92
|
-
padding?: CardPadding;
|
|
93
|
-
/**
|
|
94
|
-
* Full-bleed rule between the header and body, and the body and footer — in the library-wide
|
|
95
|
-
* texture vocabulary (`line` · `dot` · `dashed`), with `"none"` naming the off state. All three
|
|
96
|
-
* draw the same token; the texture changes the ink, never the colour. See `docs/rule-policy.md`.
|
|
97
|
-
* @default "none"
|
|
98
|
-
*/
|
|
99
|
-
dividers?: PanelDividers;
|
|
100
|
-
/**
|
|
101
|
-
* The card's headline. A `ReactNode`, so pass a heading element (`<h3>`) when the card should sit
|
|
102
|
-
* in the document outline — the wrapper is a `<div>` precisely so that stays valid HTML.
|
|
103
|
-
*/
|
|
104
|
-
title?: React.ReactNode;
|
|
105
|
-
/** One supporting line under the title. */
|
|
106
|
-
description?: React.ReactNode;
|
|
107
|
-
/** Leading header node — an `<Avatar>`, an icon. The node keeps its own a11y semantics. */
|
|
108
|
-
leading?: React.ReactNode;
|
|
109
|
-
/** Trailing header node — a `<Badge>`, a `<DropdownMenu>` trigger, an action `<Button>`. */
|
|
110
|
-
trailing?: React.ReactNode;
|
|
111
|
-
/** Footer row, below the body. */
|
|
112
|
-
footer?: React.ReactNode;
|
|
113
|
-
/** **Layout/spacing only** (width, margin, grid/flex), merged via `cn()`. Never restyles the surface. */
|
|
114
|
-
className?: string;
|
|
115
|
-
/** The body. */
|
|
116
|
-
children?: React.ReactNode;
|
|
117
|
-
}
|
|
118
|
-
declare function Card({ variant, shadow, padding, dividers, title, description, leading, trailing, footer, className, children, ...rest }: CardProps): React.JSX.Element;
|
|
119
|
-
declare namespace Card {
|
|
120
|
-
var displayName: string;
|
|
121
|
-
}
|
|
67
|
+
/** The gutter step. Shared with `SURFACE_PADDING` so a panel's padding and a surface's are one scale. */
|
|
68
|
+
type PanelPadding = SurfacePadding;
|
|
69
|
+
/**
|
|
70
|
+
* How a panel's header/footer rules are drawn — the library-wide texture vocabulary plus the named
|
|
71
|
+
* off state. See {@link PanelChromeProps.dividers}.
|
|
72
|
+
*/
|
|
73
|
+
type PanelDividers = RuleTexture | "none";
|
|
122
74
|
|
|
123
|
-
export { CARD_SURFACE_VARIANTS as C,
|
|
75
|
+
export { CARD_SURFACE_VARIANTS as C, type PanelDividers as P, SURFACE_PADDINGS as S, type CardSurfaceVariant as a, SURFACE_SHADOWS as b, type SurfacePadding as c, type SurfaceShadow as d, type PanelPadding as e };
|
package/dist/payment-input.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as CardType } from './PaymentInput-
|
|
2
|
-
export { C as CardNumberEdit, D as DEFAULT_MAX_DIGITS, P as PaymentInput, b as PaymentInputChangeMeta, c as PaymentInputProps, d as PaymentInputSize, e as applyCardNumberEdit, f as detectCardType, g as formatCardNumber, h as hasChecksumError, i as isCompleteCardNumber, j as isLengthSettled, l as luhnValid, o as onlyDigits } from './PaymentInput-
|
|
1
|
+
import { a as CardType } from './PaymentInput-s7_s3UDi.js';
|
|
2
|
+
export { C as CardNumberEdit, D as DEFAULT_MAX_DIGITS, P as PaymentInput, b as PaymentInputChangeMeta, c as PaymentInputProps, d as PaymentInputSize, e as applyCardNumberEdit, f as detectCardType, g as formatCardNumber, h as hasChecksumError, i as isCompleteCardNumber, j as isLengthSettled, l as luhnValid, o as onlyDigits } from './PaymentInput-s7_s3UDi.js';
|
|
3
3
|
import 'react';
|
|
4
|
-
import './labels-
|
|
4
|
+
import './labels-CuSlirP_.js';
|
|
5
5
|
|
|
6
6
|
declare const CARD_ICON: Record<CardType, React.ReactNode>;
|
|
7
7
|
|
package/dist/payment-input.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
"use client";export { CARD_ICON, DEFAULT_MAX_DIGITS, PaymentInput, applyCardNumberEdit, detectCardType, formatCardNumber, hasChecksumError, isCompleteCardNumber, isLengthSettled, luhnValid, onlyDigits } from './chunk-
|
|
1
|
+
"use client";export { CARD_ICON, DEFAULT_MAX_DIGITS, PaymentInput, applyCardNumberEdit, detectCardType, formatCardNumber, hasChecksumError, isCompleteCardNumber, isLengthSettled, luhnValid, onlyDigits } from './chunk-GHRZC5LS.js';
|
|
2
2
|
import './chunk-7EUAMHMU.js';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-A36W77MQ.js';
|
|
4
4
|
import './chunk-O2LG3PNI.js';
|
|
5
5
|
import './chunk-EDSK6FEH.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
6
|
+
import './chunk-HB6UA6EF.js';
|
|
7
|
+
import './chunk-GPHGPY6T.js';
|
|
8
8
|
import './chunk-52IFGFTL.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
import './chunk-KTWTYK5U.js';
|
|
10
|
+
import './chunk-7LSUUEAF.js';
|
|
11
11
|
import './chunk-O4GRKO3I.js';
|
|
12
|
-
import './chunk-
|
|
12
|
+
import './chunk-KBI442IB.js';
|
|
13
13
|
import './chunk-ZSNJ6UA3.js';
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
14
|
+
import './chunk-ZIEGUI25.js';
|
|
15
|
+
import './chunk-SF3HCW4G.js';
|
|
16
|
+
import './chunk-3ZEEGXYF.js';
|
|
17
|
+
import './chunk-VHAA22YE.js';
|
|
16
18
|
//# sourceMappingURL=payment-input.js.map
|
|
17
19
|
//# sourceMappingURL=payment-input.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* When a change reaches the caller.
|
|
3
|
+
*
|
|
4
|
+
* ONE union rather than a `staged?: boolean`, so the "neither" state has a name and the default is a
|
|
5
|
+
* real member. `DateCommit` is a published alias of this type.
|
|
6
|
+
*/
|
|
7
|
+
type CommitMode = "instant" | "confirm";
|
|
8
|
+
|
|
9
|
+
export type { CommitMode as C };
|
package/dist/pie-chart.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { C as ChartLabels } from './labels-
|
|
3
|
-
import { c as ChartDatum, P as PieDonut, g as ChartSize, e as ChartPalette, d as ChartLegendPlacement } from './types-
|
|
2
|
+
import { C as ChartLabels } from './labels-CuSlirP_.js';
|
|
3
|
+
import { c as ChartDatum, P as PieDonut, g as ChartSize, e as ChartPalette, d as ChartLegendPlacement } from './types-BoZ6XeLB.js';
|
|
4
4
|
import { T as TooltipTone } from './tooltip-surface-C2I9o2QM.js';
|
|
5
5
|
|
|
6
6
|
interface PieChartProps {
|
package/dist/pie-chart.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
"use client";export { PieChart } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
"use client";export { PieChart } from './chunk-N7DLNDER.js';
|
|
2
|
+
import './chunk-OEYKTHG7.js';
|
|
3
|
+
import './chunk-ED5UCYAV.js';
|
|
4
|
+
import './chunk-7LSUUEAF.js';
|
|
5
5
|
import './chunk-ZSNJ6UA3.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
6
|
+
import './chunk-ZIEGUI25.js';
|
|
7
|
+
import './chunk-SF3HCW4G.js';
|
|
8
|
+
import './chunk-3ZEEGXYF.js';
|
|
9
|
+
import './chunk-VHAA22YE.js';
|
|
8
10
|
//# sourceMappingURL=pie-chart.js.map
|
|
9
11
|
//# sourceMappingURL=pie-chart.js.map
|
package/dist/popover.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { P as PanelDividers } from './panel-
|
|
2
|
+
import { a as PopoverAnchor, c as PopoverSide, P as PopoverAlign, d as PopoverSize, b as PopoverFooter } from './shared-CGf2D8ZX.js';
|
|
3
|
+
import { e as PanelPadding, P as PanelDividers } from './panel-CUGm_Mxy.js';
|
|
4
|
+
import '@base-ui/react/popover';
|
|
4
5
|
import './rule-BqzaIwJy.js';
|
|
5
6
|
|
|
6
7
|
interface PopoverProps {
|
|
@@ -13,6 +14,16 @@ interface PopoverProps {
|
|
|
13
14
|
defaultOpen?: boolean;
|
|
14
15
|
/** Fires whenever the popover requests to open or close. */
|
|
15
16
|
onOpenChange?: (open: boolean) => void;
|
|
17
|
+
/**
|
|
18
|
+
* What to position against when there is no `trigger` — an element, a ref, a getter, or a virtual
|
|
19
|
+
* `{ getBoundingClientRect }` element (how you anchor to a text range rather than a control).
|
|
20
|
+
*
|
|
21
|
+
* **A trigger-less popover REQUIRES this**, and that is not a style preference: with neither, Base
|
|
22
|
+
* UI has no rect to measure, parks the positioner at the viewport origin and paints it at
|
|
23
|
+
* `opacity: 0`. The surface opens, takes focus, and is invisible — so the control that opened it
|
|
24
|
+
* reads as doing nothing at all. Ignored when `trigger` is set, which already anchors itself.
|
|
25
|
+
*/
|
|
26
|
+
anchor?: PopoverAnchor;
|
|
16
27
|
/** Side of the trigger to place the surface on. Flips automatically on collision. @default "bottom" */
|
|
17
28
|
side?: PopoverSide;
|
|
18
29
|
/** Alignment along that side. @default "center" */
|
|
@@ -21,8 +32,39 @@ interface PopoverProps {
|
|
|
21
32
|
sideOffset?: number;
|
|
22
33
|
/** Extra shift along the alignment axis, in px. @default 0 */
|
|
23
34
|
alignOffset?: number;
|
|
24
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* How the surface is BOUNDED — width and height together, because a listbox and a content panel
|
|
37
|
+
* disagree about both.
|
|
38
|
+
*
|
|
39
|
+
* `sm` 16rem · `md` 20rem · `lg` 24rem wide, each capped at `min(--available-height, 24rem)` tall,
|
|
40
|
+
* with overflow scrolling in the body. That is the listbox-shaped surface: a column of rows.
|
|
41
|
+
*
|
|
42
|
+
* **`panel` is content-shaped instead** — no house cap on either axis, bounded only by the real
|
|
43
|
+
* viewport space Base UI measures (`--available-width` / `--available-height`). The surface is
|
|
44
|
+
* `w-max`, so it hugs its content. Take it for a surface that is a PANEL rather than a list — a
|
|
45
|
+
* calendar, a colour picker, anything whose own rows decide its size; the 24rem height cap would
|
|
46
|
+
* otherwise make the body scroll, which clips a calendar's last week and moves a slider's track
|
|
47
|
+
* mid-drag. Usually paired with `padding="none"` when the child pads its own rows.
|
|
48
|
+
* @default "md"
|
|
49
|
+
*/
|
|
25
50
|
size?: PopoverSize;
|
|
51
|
+
/**
|
|
52
|
+
* The body gutter — the same `PanelChrome` scale `Card`, `Dialog` and `Drawer` take.
|
|
53
|
+
*
|
|
54
|
+
* **`"none"` is what makes a full-bleed child possible AT ALL inside a popover.** The body is a
|
|
55
|
+
* real scroll container (`scrollBody`, whose viewport carries inline `overflow: scroll`), so no
|
|
56
|
+
* descendant can bleed past the gutter: a `-mx-4` row grows `scrollWidth` and loses its left half
|
|
57
|
+
* past the scroll origin, and an outsetting `after:-inset-x-4` is clipped by the same box. Both
|
|
58
|
+
* hacks are mechanically impossible here — so a panel whose rows must run edge to edge takes the
|
|
59
|
+
* gutter away instead and pads its own rows (`<ColorPicker>` is built that way). `"none"` also
|
|
60
|
+
* zeroes the divider bleed and the footer gutter, which is what gives a `dividers` seam no
|
|
61
|
+
* overhang.
|
|
62
|
+
*
|
|
63
|
+
* It does NOT zero the close button's inset, so pair it with `showClose` only deliberately — the
|
|
64
|
+
* ✕ lands in the corner and a dev warning says so.
|
|
65
|
+
* @default "md"
|
|
66
|
+
*/
|
|
67
|
+
padding?: PanelPadding;
|
|
26
68
|
/** Render the top-right close icon button. A popover already dismisses on outside-press
|
|
27
69
|
* and Esc and sits beside its trigger, so this is off unless you ask for it. @default false */
|
|
28
70
|
showClose?: boolean;
|
|
@@ -41,6 +83,25 @@ interface PopoverProps {
|
|
|
41
83
|
keepMounted?: boolean;
|
|
42
84
|
/** Allow closing via outside-press and `Esc`. The close icon and footer still close when `false`. @default true */
|
|
43
85
|
dismissible?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Whether the surface TAKES focus when it opens — and gives it back when it closes.
|
|
88
|
+
*
|
|
89
|
+
* On (the default) is what a popover with a field or a button in it needs: focus lands inside, `Tab`
|
|
90
|
+
* walks the body, and closing returns focus to the trigger. Turn it **off** for a surface that
|
|
91
|
+
* annotates something the user is still working in — a formatting strip over a text selection, a
|
|
92
|
+
* suggestion list under a caret. There, focus moving is not a nicety that is lost, it is the feature
|
|
93
|
+
* breaking: a contenteditable collapses its selection when it blurs, and a list the user filters by
|
|
94
|
+
* TYPING cannot take the keyboard from what they are typing into.
|
|
95
|
+
*
|
|
96
|
+
* It governs both ends deliberately. Skipping only the initial focus would leave the close returning
|
|
97
|
+
* focus to a trigger the user never left — yanking the caret out of the surface they are actually
|
|
98
|
+
* in, which is the same yank `NO_RETURN_FOCUS` exists to prevent for outside presses.
|
|
99
|
+
*
|
|
100
|
+
* A surface that does not take focus is only reachable by keyboard through whatever opened it, so it
|
|
101
|
+
* owes its own key handling (↑/↓/Enter/Esc) and an `aria-activedescendant` on the element that DOES
|
|
102
|
+
* hold focus. @default true
|
|
103
|
+
*/
|
|
104
|
+
autoFocus?: boolean;
|
|
44
105
|
/** Title text (wired to `aria-labelledby`). Provide this or `aria-label`. */
|
|
45
106
|
title?: React.ReactNode;
|
|
46
107
|
/** Supporting description (wired to `aria-describedby`). */
|
|
@@ -63,4 +124,4 @@ declare namespace Popover {
|
|
|
63
124
|
var displayName: string;
|
|
64
125
|
}
|
|
65
126
|
|
|
66
|
-
export { Popover, PopoverAlign, PopoverFooter, type PopoverProps, PopoverSide, PopoverSize };
|
|
127
|
+
export { Popover, PopoverAlign, PopoverAnchor, PopoverFooter, type PopoverProps, PopoverSide, PopoverSize };
|
package/dist/popover.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
"use client";export { Popover } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
"use client";export { Popover } from './chunk-XNXBO44X.js';
|
|
2
|
+
import './chunk-INYUL4DX.js';
|
|
3
|
+
import './chunk-HNNNJP3A.js';
|
|
4
|
+
import './chunk-EVINS473.js';
|
|
4
5
|
import './chunk-S7NNXWIN.js';
|
|
5
6
|
import './chunk-SKJC2KYD.js';
|
|
6
7
|
import './chunk-45Y2ZGNK.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-CGHYXWTT.js';
|
|
8
|
+
import './chunk-4KRCT3Q2.js';
|
|
9
9
|
import './chunk-O2LG3PNI.js';
|
|
10
10
|
import './chunk-EDSK6FEH.js';
|
|
11
11
|
import './chunk-52IFGFTL.js';
|
|
12
12
|
import './chunk-O4GRKO3I.js';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-KBI442IB.js';
|
|
14
14
|
import './chunk-ZSNJ6UA3.js';
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
15
|
+
import './chunk-ZIEGUI25.js';
|
|
16
|
+
import './chunk-SF3HCW4G.js';
|
|
17
|
+
import './chunk-VHAA22YE.js';
|
|
17
18
|
//# sourceMappingURL=popover.js.map
|
|
18
19
|
//# sourceMappingURL=popover.js.map
|
package/dist/progress-steps.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
"use client";export { ProgressSteps, StepPanel, buildStepMap, firstEnabledStep, resolveStepStatus, useSteps } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
"use client";export { ProgressSteps, StepPanel, buildStepMap, firstEnabledStep, resolveStepStatus, useSteps } from './chunk-EDVYLO2N.js';
|
|
2
|
+
import './chunk-EVINS473.js';
|
|
3
|
+
import './chunk-6T3QAO5K.js';
|
|
4
4
|
import './chunk-DWKILXHE.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-KBI442IB.js';
|
|
6
6
|
import './chunk-ZSNJ6UA3.js';
|
|
7
|
+
import './chunk-VHAA22YE.js';
|
|
7
8
|
//# sourceMappingURL=progress-steps.js.map
|
|
8
9
|
//# sourceMappingURL=progress-steps.js.map
|