jenosize-ui 0.2.1 → 0.3.0

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.
Files changed (225) hide show
  1. package/README.md +183 -63
  2. package/THIRD-PARTY-NOTICES.md +15 -0
  3. package/dist/GradientPicker-CQm3GT7F.d.ts +144 -0
  4. package/dist/{PaymentInput-Dn5WVQVy.d.ts → PaymentInput-Cz5jFB3p.d.ts} +1 -1
  5. package/dist/{Select-Dt5ARIH8.d.ts → Select-CXOAMlk7.d.ts} +15 -1
  6. package/dist/{TagInput-BaBeve6L.d.ts → TagInput-CzIrONr-.d.ts} +1 -1
  7. package/dist/area-chart.d.ts +2 -2
  8. package/dist/area-chart.js +7 -6
  9. package/dist/at-least-one-BZ2dsck-.d.ts +18 -0
  10. package/dist/avatar.d.ts +1 -1
  11. package/dist/avatar.js +12 -11
  12. package/dist/badge.d.ts +1 -1
  13. package/dist/badge.js +6 -6
  14. package/dist/bar-chart.d.ts +2 -2
  15. package/dist/bar-chart.js +7 -6
  16. package/dist/breadcrumb.d.ts +1 -1
  17. package/dist/breadcrumb.js +4 -4
  18. package/dist/button.d.ts +1 -1
  19. package/dist/button.js +11 -10
  20. package/dist/calendar.d.ts +1 -1
  21. package/dist/calendar.js +16 -15
  22. package/dist/callout.d.ts +4 -2
  23. package/dist/callout.js +12 -11
  24. package/dist/card.d.ts +59 -3
  25. package/dist/card.js +4 -4
  26. package/dist/carousel.d.ts +169 -0
  27. package/dist/carousel.js +9 -0
  28. package/dist/catalog.json +11180 -0
  29. package/dist/checkbox.js +8 -7
  30. package/dist/{chunk-MVG5MABV.js → chunk-26XQU3TC.js} +8 -8
  31. package/dist/{chunk-X2X7Q7NW.js → chunk-2R3QWWOT.js} +3 -3
  32. package/dist/{chunk-AIARANKE.js → chunk-3JQKVC2K.js} +4 -4
  33. package/dist/chunk-3P3QZPHV.js +109 -0
  34. package/dist/{chunk-GLKFFA7N.js → chunk-44AWXIQK.js} +5 -5
  35. package/dist/{chunk-FWRHBMWT.js → chunk-4Y32RIC7.js} +5 -19
  36. package/dist/{chunk-5XPMY2LF.js → chunk-5ECTNYKU.js} +5 -5
  37. package/dist/{chunk-6B6BWTXC.js → chunk-5GBA6X6A.js} +5 -5
  38. package/dist/{chunk-UGKELBNC.js → chunk-5SGF47TZ.js} +9 -9
  39. package/dist/{chunk-POQTE7JI.js → chunk-5XSR757T.js} +7 -7
  40. package/dist/{chunk-GZMDZF2V.js → chunk-6FGLABYH.js} +3 -3
  41. package/dist/{chunk-MCQG4H6T.js → chunk-6T3QAO5K.js} +12 -4
  42. package/dist/{chunk-SKRR3ZMP.js → chunk-737A4YNC.js} +3 -3
  43. package/dist/{chunk-AFYXSZGW.js → chunk-7LSUUEAF.js} +7 -5
  44. package/dist/{chunk-7VLYQR4D.js → chunk-7OFGPDYJ.js} +3 -3
  45. package/dist/{chunk-54SIZR63.js → chunk-7UCKFULR.js} +7 -7
  46. package/dist/{chunk-LQURV7HQ.js → chunk-7ZA3QZRP.js} +4 -4
  47. package/dist/{chunk-X2VMIBK5.js → chunk-A4YPUS6C.js} +4 -4
  48. package/dist/{chunk-5ZEUTSCV.js → chunk-B4OVIE2X.js} +6 -6
  49. package/dist/{chunk-P6CON2R2.js → chunk-BH32X25C.js} +3 -3
  50. package/dist/{chunk-667ZHY3T.js → chunk-BJHLW25G.js} +85 -538
  51. package/dist/{chunk-ULGCGKOE.js → chunk-BKBINQJZ.js} +4 -4
  52. package/dist/{chunk-CFFWYXDW.js → chunk-BXQFBFT7.js} +5 -5
  53. package/dist/{chunk-I6WMNXC7.js → chunk-CQGMOPLG.js} +6 -6
  54. package/dist/{chunk-FNQJJO63.js → chunk-CUONE6LA.js} +4 -4
  55. package/dist/{chunk-FFMTYQXE.js → chunk-CVCS5G3E.js} +43 -21
  56. package/dist/{chunk-33TOK7ES.js → chunk-DCKVNHV5.js} +5 -5
  57. package/dist/{chunk-A323V6AI.js → chunk-DYRGHXT5.js} +3 -3
  58. package/dist/{chunk-T4ZFZTY6.js → chunk-EHML2DLR.js} +4 -4
  59. package/dist/{chunk-N3RVMBPX.js → chunk-EJKQGUUM.js} +4 -4
  60. package/dist/{chunk-E2YZ7IMT.js → chunk-ESDSTS5N.js} +6 -6
  61. package/dist/{chunk-LCG34A5T.js → chunk-EVINS473.js} +5 -3
  62. package/dist/chunk-EXRVOGJ5.js +325 -0
  63. package/dist/{chunk-YHBI52P2.js → chunk-GDW6NFYN.js} +3 -3
  64. package/dist/chunk-GOCO45FF.js +619 -0
  65. package/dist/{chunk-7ZM7SNCZ.js → chunk-GPHGPY6T.js} +3 -3
  66. package/dist/{chunk-PO2TYK3C.js → chunk-GWYDOZGQ.js} +3 -3
  67. package/dist/{chunk-LO22VQL5.js → chunk-HNNNJP3A.js} +4 -4
  68. package/dist/{chunk-ZZSNTCCL.js → chunk-IESEBPYA.js} +4 -4
  69. package/dist/{chunk-3H444OJA.js → chunk-JZ4HGFWK.js} +3 -3
  70. package/dist/chunk-KBQJIVUB.js +33 -0
  71. package/dist/{chunk-CKMWBVRR.js → chunk-KCM4KEZ2.js} +4 -4
  72. package/dist/{chunk-3QXLIZIX.js → chunk-KNGJ3CSB.js} +3 -3
  73. package/dist/{chunk-FH7Z7SGQ.js → chunk-KNW3IUWX.js} +12 -11
  74. package/dist/{chunk-KZP6B6B3.js → chunk-KTWTYK5U.js} +16 -5
  75. package/dist/{chunk-LYXPJERB.js → chunk-L7Z6XGBU.js} +5 -5
  76. package/dist/{chunk-ZHAT2XZ4.js → chunk-LLUWBQK6.js} +10 -10
  77. package/dist/{chunk-QHH6AUR3.js → chunk-MDKVYC6R.js} +7 -7
  78. package/dist/{chunk-22M75A3N.js → chunk-MS6DY4CE.js} +14 -11
  79. package/dist/{chunk-LLPWQDF7.js → chunk-MTOTPAYZ.js} +3 -3
  80. package/dist/{chunk-AZ7DKRBY.js → chunk-MVF7FA4D.js} +5 -5
  81. package/dist/{chunk-AIGYMTCU.js → chunk-MVUNB43J.js} +3 -3
  82. package/dist/{chunk-ZMFY7WAY.js → chunk-O24HHIQG.js} +41 -39
  83. package/dist/{chunk-NKG4N6HA.js → chunk-O5EHNNPS.js} +4 -4
  84. package/dist/{chunk-5DP7W5HX.js → chunk-OIPFTJS6.js} +3 -3
  85. package/dist/{chunk-U4WSJAYK.js → chunk-OXNIEIOY.js} +20 -20
  86. package/dist/chunk-P2BGR77C.js +344 -0
  87. package/dist/{chunk-CGHYXWTT.js → chunk-PFAFTLN3.js} +4 -4
  88. package/dist/{chunk-4RBIWI2Q.js → chunk-Q2KR7PSX.js} +3 -3
  89. package/dist/{chunk-7GUPNTAH.js → chunk-QSOLK2I2.js} +7 -7
  90. package/dist/chunk-QTWRR7IS.js +1129 -0
  91. package/dist/{chunk-OLLD2BZN.js → chunk-QZHAL4BL.js} +3 -3
  92. package/dist/{chunk-OACWA4TC.js → chunk-R25NHHYT.js} +6 -6
  93. package/dist/{chunk-QDKETK7D.js → chunk-S55JKMG7.js} +5 -5
  94. package/dist/{chunk-S5TEWPWW.js → chunk-S5LLA36K.js} +10 -10
  95. package/dist/{chunk-QDYE5LVT.js → chunk-SF3HCW4G.js} +45 -4
  96. package/dist/{chunk-KHGW72BM.js → chunk-SGMVB7HD.js} +3 -3
  97. package/dist/{chunk-FKVPAEJ6.js → chunk-SKJC2KYD.js} +4 -3
  98. package/dist/chunk-SKPKL47Y.js +5671 -0
  99. package/dist/{chunk-6MMBQVRO.js → chunk-TCTTZHUS.js} +9 -9
  100. package/dist/chunk-U5X3MLM5.js +67 -0
  101. package/dist/chunk-UHSGD4CD.js +364 -0
  102. package/dist/chunk-UJ4WEQHR.js +525 -0
  103. package/dist/{chunk-6H4LNWQ7.js → chunk-VDFWWWLL.js} +9 -4
  104. package/dist/{chunk-5KSD4WKN.js → chunk-VIKV25VP.js} +5 -5
  105. package/dist/chunk-WJB5GWAZ.js +20 -0
  106. package/dist/{chunk-HHYEAFCL.js → chunk-XAQQ4LYL.js} +11 -11
  107. package/dist/{chunk-4VGEJG4M.js → chunk-XCFFM2C7.js} +9 -9
  108. package/dist/chunk-XKTD3X6Z.js +183 -0
  109. package/dist/{chunk-GQRSABRN.js → chunk-XWXXKEG6.js} +4 -4
  110. package/dist/chunk-YGFTNICV.js +110 -0
  111. package/dist/{chunk-T5574MXM.js → chunk-YGJL7QS7.js} +8 -8
  112. package/dist/{chunk-SB3DG572.js → chunk-YKPTUANT.js} +6 -6
  113. package/dist/{chunk-YQYVGWIC.js → chunk-YQAYAJ2T.js} +33 -11
  114. package/dist/chunk-YXYZW6WU.js +998 -0
  115. package/dist/{chunk-IQNVSQRK.js → chunk-Z6NSOC6T.js} +5 -5
  116. package/dist/{chunk-BBKE4W3B.js → chunk-ZAWGG4H2.js} +7 -7
  117. package/dist/{chunk-BFVJHH7S.js → chunk-ZF362B2X.js} +5 -5
  118. package/dist/{chunk-RJTVCA62.js → chunk-ZJIY642R.js} +3 -3
  119. package/dist/color-input.d.ts +93 -0
  120. package/dist/color-input.js +35 -0
  121. package/dist/color-picker.d.ts +268 -0
  122. package/dist/color-picker.js +28 -0
  123. package/dist/color-value-DYzChVOW.d.ts +129 -0
  124. package/dist/combobox.d.ts +1 -1
  125. package/dist/combobox.js +13 -12
  126. package/dist/date-calendar.d.ts +49 -0
  127. package/dist/date-calendar.js +12 -0
  128. package/dist/date-input.d.ts +1 -1
  129. package/dist/date-input.js +11 -10
  130. package/dist/date-picker.d.ts +15 -131
  131. package/dist/date-picker.js +26 -22
  132. package/dist/date-types-DrDdF6WJ.d.ts +100 -0
  133. package/dist/dialog.d.ts +1 -1
  134. package/dist/dialog.js +10 -10
  135. package/dist/drawer.d.ts +1 -1
  136. package/dist/drawer.js +9 -9
  137. package/dist/dropdown-menu.d.ts +1 -1
  138. package/dist/dropdown-menu.js +6 -6
  139. package/dist/dropzone.d.ts +3 -3
  140. package/dist/dropzone.js +17 -16
  141. package/dist/form.d.ts +15 -5
  142. package/dist/form.js +75 -36
  143. package/dist/header-navigation.d.ts +2 -2
  144. package/dist/header-navigation.js +21 -20
  145. package/dist/helper.d.ts +1 -1
  146. package/dist/index.d.ts +25 -11
  147. package/dist/index.js +92 -79
  148. package/dist/indicator.js +4 -4
  149. package/dist/inline-banner.d.ts +68 -0
  150. package/dist/inline-banner.js +20 -0
  151. package/dist/input.d.ts +1 -1
  152. package/dist/input.js +10 -9
  153. package/dist/kanban-board.d.ts +2 -2
  154. package/dist/kanban-board.js +16 -15
  155. package/dist/labels-C992bt7G.d.ts +1160 -0
  156. package/dist/line-chart.d.ts +2 -2
  157. package/dist/line-chart.js +7 -6
  158. package/dist/mcp.js +231 -0
  159. package/dist/number-input.d.ts +1 -1
  160. package/dist/number-input.js +10 -9
  161. package/dist/pagination.d.ts +1 -1
  162. package/dist/pagination.js +14 -13
  163. package/dist/{card-D56VxyAe.d.ts → panel-CUGm_Mxy.d.ts} +9 -57
  164. package/dist/payment-input.d.ts +3 -3
  165. package/dist/payment-input.js +10 -9
  166. package/dist/picker-draft-BPV3MUPY.d.ts +9 -0
  167. package/dist/pie-chart.d.ts +2 -2
  168. package/dist/pie-chart.js +7 -6
  169. package/dist/popover.d.ts +65 -4
  170. package/dist/popover.js +9 -9
  171. package/dist/progress-steps.js +4 -4
  172. package/dist/progress.js +3 -3
  173. package/dist/provider.d.ts +1 -1
  174. package/dist/provider.js +3 -3
  175. package/dist/qr-code.d.ts +227 -0
  176. package/dist/qr-code.js +19 -0
  177. package/dist/radar-chart.d.ts +2 -2
  178. package/dist/radar-chart.js +7 -6
  179. package/dist/radial-chart.d.ts +2 -2
  180. package/dist/radial-chart.js +7 -6
  181. package/dist/radio.js +8 -7
  182. package/dist/rich-text-editor.d.ts +624 -0
  183. package/dist/rich-text-editor.js +51 -0
  184. package/dist/rich-text-highlight.d.ts +11 -0
  185. package/dist/rich-text-highlight.js +65 -0
  186. package/dist/rich-text-sanitize.d.ts +17 -0
  187. package/dist/rich-text-sanitize.js +176 -0
  188. package/dist/scroll-area.js +2 -2
  189. package/dist/select.d.ts +2 -2
  190. package/dist/select.js +17 -16
  191. package/dist/separator.js +2 -2
  192. package/dist/shared-CGf2D8ZX.d.ts +20 -0
  193. package/dist/sidebar-navigation.d.ts +76 -27
  194. package/dist/sidebar-navigation.js +16 -15
  195. package/dist/sidebar-state.d.ts +76 -0
  196. package/dist/sidebar-state.js +27 -0
  197. package/dist/skeleton.js +2 -2
  198. package/dist/slider.d.ts +321 -0
  199. package/dist/slider.js +13 -0
  200. package/dist/styles.css +1 -1
  201. package/dist/switch.d.ts +1 -1
  202. package/dist/switch.js +2 -2
  203. package/dist/table.d.ts +3 -19
  204. package/dist/table.js +34 -33
  205. package/dist/tabs.js +2 -2
  206. package/dist/tag-input.d.ts +3 -3
  207. package/dist/tag-input.js +13 -12
  208. package/dist/tag.d.ts +1 -1
  209. package/dist/tag.js +4 -4
  210. package/dist/textarea.js +8 -7
  211. package/dist/theme.css +965 -0
  212. package/dist/theme.js +12 -11
  213. package/dist/toast.d.ts +1 -1
  214. package/dist/toast.js +12 -11
  215. package/dist/tooltip.js +4 -3
  216. package/dist/tree.d.ts +1 -1
  217. package/dist/tree.js +6 -6
  218. package/dist/{types-DR9rAEy1.d.ts → types-DYFl0CEB.d.ts} +1 -1
  219. package/dist/{use-uploads-KaPqDklo.d.ts → use-uploads-2E7n0PWT.d.ts} +1 -1
  220. package/dist/verification-code-input.js +10 -9
  221. package/package.json +92 -8
  222. package/dist/chunk-BLIZ3CL3.js +0 -49
  223. package/dist/labels-DPrh0se9.d.ts +0 -627
  224. package/dist/panel-El4oI68p.d.ts +0 -9
  225. package/dist/shared-BYXJPnsN.d.ts +0 -11
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { C as CartesianChartBaseProps, b as ChartCurve } from './types-DR9rAEy1.js';
3
- import './labels-DPrh0se9.js';
2
+ import { C as CartesianChartBaseProps, b as ChartCurve } from './types-DYFl0CEB.js';
3
+ import './labels-C992bt7G.js';
4
4
  import './tooltip-surface-C2I9o2QM.js';
5
5
 
6
6
  interface LineChartProps<T extends object> extends CartesianChartBaseProps<T> {
@@ -1,9 +1,10 @@
1
- "use client";export { LineChart } from './chunk-YHBI52P2.js';
2
- import './chunk-5DP7W5HX.js';
3
- import './chunk-22M75A3N.js';
4
- import './chunk-AFYXSZGW.js';
1
+ "use client";export { LineChart } from './chunk-GDW6NFYN.js';
2
+ import './chunk-OIPFTJS6.js';
3
+ import './chunk-MS6DY4CE.js';
4
+ import './chunk-7LSUUEAF.js';
5
5
  import './chunk-ZSNJ6UA3.js';
6
- import './chunk-RJTVCA62.js';
7
- import './chunk-QDYE5LVT.js';
6
+ import './chunk-ZJIY642R.js';
7
+ import './chunk-SF3HCW4G.js';
8
+ import './chunk-3ZEEGXYF.js';
8
9
  //# sourceMappingURL=line-chart.js.map
9
10
  //# 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 });
@@ -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-DPrh0se9.js';
3
+ import { N as NumberInputLabels } from './labels-C992bt7G.js';
4
4
 
5
5
  type NumberInputSize = "sm" | "md" | "lg";
6
6
  type NumberInputVariant = "horizontal" | "vertical";
@@ -1,17 +1,18 @@
1
- "use client";export { NumberInput } from './chunk-BBKE4W3B.js';
1
+ "use client";export { NumberInput } from './chunk-ZAWGG4H2.js';
2
2
  import './chunk-7EUAMHMU.js';
3
- import './chunk-X2VMIBK5.js';
3
+ import './chunk-A4YPUS6C.js';
4
4
  import './chunk-O2LG3PNI.js';
5
5
  import './chunk-EDSK6FEH.js';
6
- import './chunk-5KSD4WKN.js';
7
- import './chunk-7ZM7SNCZ.js';
6
+ import './chunk-VIKV25VP.js';
7
+ import './chunk-GPHGPY6T.js';
8
8
  import './chunk-52IFGFTL.js';
9
- import './chunk-KZP6B6B3.js';
10
- import './chunk-AFYXSZGW.js';
9
+ import './chunk-KTWTYK5U.js';
10
+ import './chunk-7LSUUEAF.js';
11
11
  import './chunk-O4GRKO3I.js';
12
- import './chunk-BLIZ3CL3.js';
12
+ import './chunk-YGFTNICV.js';
13
13
  import './chunk-ZSNJ6UA3.js';
14
- import './chunk-RJTVCA62.js';
15
- import './chunk-QDYE5LVT.js';
14
+ import './chunk-ZJIY642R.js';
15
+ import './chunk-SF3HCW4G.js';
16
+ import './chunk-3ZEEGXYF.js';
16
17
  //# sourceMappingURL=number-input.js.map
17
18
  //# sourceMappingURL=number-input.js.map
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { P as PaginationLabels } from './labels-DPrh0se9.js';
2
+ import { P as PaginationLabels } from './labels-C992bt7G.js';
3
3
 
4
4
  /**
5
5
  * Page navigation for a table, a card grid, or any paged list.
@@ -1,21 +1,22 @@
1
- "use client";export { Pagination, pageWindow } from './chunk-6MMBQVRO.js';
2
- import './chunk-I6WMNXC7.js';
3
- import './chunk-7VLYQR4D.js';
4
- import './chunk-LCG34A5T.js';
5
- import './chunk-7GUPNTAH.js';
1
+ "use client";export { Pagination, pageWindow } from './chunk-TCTTZHUS.js';
2
+ import './chunk-7OFGPDYJ.js';
3
+ import './chunk-EVINS473.js';
4
+ import './chunk-CQGMOPLG.js';
5
+ import './chunk-QSOLK2I2.js';
6
6
  import './chunk-7EUAMHMU.js';
7
- import './chunk-X2VMIBK5.js';
7
+ import './chunk-A4YPUS6C.js';
8
8
  import './chunk-O2LG3PNI.js';
9
9
  import './chunk-EDSK6FEH.js';
10
- import './chunk-5KSD4WKN.js';
11
- import './chunk-7ZM7SNCZ.js';
10
+ import './chunk-VIKV25VP.js';
11
+ import './chunk-GPHGPY6T.js';
12
12
  import './chunk-52IFGFTL.js';
13
- import './chunk-KZP6B6B3.js';
14
- import './chunk-AFYXSZGW.js';
13
+ import './chunk-KTWTYK5U.js';
14
+ import './chunk-7LSUUEAF.js';
15
15
  import './chunk-O4GRKO3I.js';
16
- import './chunk-BLIZ3CL3.js';
16
+ import './chunk-YGFTNICV.js';
17
17
  import './chunk-ZSNJ6UA3.js';
18
- import './chunk-RJTVCA62.js';
19
- import './chunk-QDYE5LVT.js';
18
+ import './chunk-ZJIY642R.js';
19
+ import './chunk-SF3HCW4G.js';
20
+ import './chunk-3ZEEGXYF.js';
20
21
  //# sourceMappingURL=pagination.js.map
21
22
  //# sourceMappingURL=pagination.js.map
@@ -1,5 +1,4 @@
1
- import * as React from 'react';
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
- type CardVariant = CardSurfaceVariant;
69
- type CardPadding = SurfacePadding;
70
- type CardShadow = SurfaceShadow;
71
- /** `title` is a `ReactNode` here, which collides with the DOM's `title?: string` tooltip attribute. */
72
- interface CardProps extends Omit<React.ComponentPropsWithoutRef<"div">, "title"> {
73
- /**
74
- * Edge + fill — **not** the lift, which is `shadow`. `outlined` sits flush with the page ·
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, SURFACE_PADDINGS as S, Card as a, type CardPadding as b, type CardProps as c, type CardShadow as d, type CardSurfaceVariant as e, type CardVariant as f, SURFACE_SHADOWS as g, type SurfacePadding as h, type SurfaceShadow as i };
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 };
@@ -1,7 +1,7 @@
1
- import { a as CardType } from './PaymentInput-Dn5WVQVy.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-Dn5WVQVy.js';
1
+ import { a as CardType } from './PaymentInput-Cz5jFB3p.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-Cz5jFB3p.js';
3
3
  import 'react';
4
- import './labels-DPrh0se9.js';
4
+ import './labels-C992bt7G.js';
5
5
 
6
6
  declare const CARD_ICON: Record<CardType, React.ReactNode>;
7
7
 
@@ -1,17 +1,18 @@
1
- "use client";export { CARD_ICON, DEFAULT_MAX_DIGITS, PaymentInput, applyCardNumberEdit, detectCardType, formatCardNumber, hasChecksumError, isCompleteCardNumber, isLengthSettled, luhnValid, onlyDigits } from './chunk-SB3DG572.js';
1
+ "use client";export { CARD_ICON, DEFAULT_MAX_DIGITS, PaymentInput, applyCardNumberEdit, detectCardType, formatCardNumber, hasChecksumError, isCompleteCardNumber, isLengthSettled, luhnValid, onlyDigits } from './chunk-YKPTUANT.js';
2
2
  import './chunk-7EUAMHMU.js';
3
- import './chunk-X2VMIBK5.js';
3
+ import './chunk-A4YPUS6C.js';
4
4
  import './chunk-O2LG3PNI.js';
5
5
  import './chunk-EDSK6FEH.js';
6
- import './chunk-5KSD4WKN.js';
7
- import './chunk-7ZM7SNCZ.js';
6
+ import './chunk-VIKV25VP.js';
7
+ import './chunk-GPHGPY6T.js';
8
8
  import './chunk-52IFGFTL.js';
9
- import './chunk-KZP6B6B3.js';
10
- import './chunk-AFYXSZGW.js';
9
+ import './chunk-KTWTYK5U.js';
10
+ import './chunk-7LSUUEAF.js';
11
11
  import './chunk-O4GRKO3I.js';
12
- import './chunk-BLIZ3CL3.js';
12
+ import './chunk-YGFTNICV.js';
13
13
  import './chunk-ZSNJ6UA3.js';
14
- import './chunk-RJTVCA62.js';
15
- import './chunk-QDYE5LVT.js';
14
+ import './chunk-ZJIY642R.js';
15
+ import './chunk-SF3HCW4G.js';
16
+ import './chunk-3ZEEGXYF.js';
16
17
  //# sourceMappingURL=payment-input.js.map
17
18
  //# 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 };
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { C as ChartLabels } from './labels-DPrh0se9.js';
3
- import { c as ChartDatum, P as PieDonut, g as ChartSize, e as ChartPalette, d as ChartLegendPlacement } from './types-DR9rAEy1.js';
2
+ import { C as ChartLabels } from './labels-C992bt7G.js';
3
+ import { c as ChartDatum, P as PieDonut, g as ChartSize, e as ChartPalette, d as ChartLegendPlacement } from './types-DYFl0CEB.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,10 @@
1
- "use client";export { PieChart } from './chunk-T4ZFZTY6.js';
2
- import './chunk-OLLD2BZN.js';
3
- import './chunk-22M75A3N.js';
4
- import './chunk-AFYXSZGW.js';
1
+ "use client";export { PieChart } from './chunk-EHML2DLR.js';
2
+ import './chunk-QZHAL4BL.js';
3
+ import './chunk-MS6DY4CE.js';
4
+ import './chunk-7LSUUEAF.js';
5
5
  import './chunk-ZSNJ6UA3.js';
6
- import './chunk-RJTVCA62.js';
7
- import './chunk-QDYE5LVT.js';
6
+ import './chunk-ZJIY642R.js';
7
+ import './chunk-SF3HCW4G.js';
8
+ import './chunk-3ZEEGXYF.js';
8
9
  //# sourceMappingURL=pie-chart.js.map
9
10
  //# sourceMappingURL=pie-chart.js.map
package/dist/popover.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
- import { b as PopoverSide, P as PopoverAlign, c as PopoverSize, a as PopoverFooter } from './shared-BYXJPnsN.js';
3
- import { P as PanelDividers } from './panel-El4oI68p.js';
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
- /** Max width of the surface: `sm` 16rem · `md` 20rem · `lg` 24rem. @default "md" */
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,18 @@
1
- "use client";export { Popover } from './chunk-YQYVGWIC.js';
2
- import './chunk-CKMWBVRR.js';
3
- import './chunk-LO22VQL5.js';
1
+ "use client";export { Popover } from './chunk-YQAYAJ2T.js';
2
+ import './chunk-KCM4KEZ2.js';
3
+ import './chunk-HNNNJP3A.js';
4
+ import './chunk-EVINS473.js';
4
5
  import './chunk-S7NNXWIN.js';
5
- import './chunk-FKVPAEJ6.js';
6
+ import './chunk-SKJC2KYD.js';
6
7
  import './chunk-45Y2ZGNK.js';
7
- import './chunk-LCG34A5T.js';
8
- import './chunk-CGHYXWTT.js';
8
+ import './chunk-PFAFTLN3.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-BLIZ3CL3.js';
13
+ import './chunk-YGFTNICV.js';
14
14
  import './chunk-ZSNJ6UA3.js';
15
- import './chunk-RJTVCA62.js';
16
- import './chunk-QDYE5LVT.js';
15
+ import './chunk-ZJIY642R.js';
16
+ import './chunk-SF3HCW4G.js';
17
17
  //# sourceMappingURL=popover.js.map
18
18
  //# sourceMappingURL=popover.js.map
@@ -1,8 +1,8 @@
1
- "use client";export { ProgressSteps, StepPanel, buildStepMap, firstEnabledStep, resolveStepStatus, useSteps } from './chunk-IQNVSQRK.js';
2
- import './chunk-LCG34A5T.js';
3
- import './chunk-MCQG4H6T.js';
1
+ "use client";export { ProgressSteps, StepPanel, buildStepMap, firstEnabledStep, resolveStepStatus, useSteps } from './chunk-Z6NSOC6T.js';
2
+ import './chunk-EVINS473.js';
3
+ import './chunk-6T3QAO5K.js';
4
4
  import './chunk-DWKILXHE.js';
5
- import './chunk-BLIZ3CL3.js';
5
+ import './chunk-YGFTNICV.js';
6
6
  import './chunk-ZSNJ6UA3.js';
7
7
  //# sourceMappingURL=progress-steps.js.map
8
8
  //# sourceMappingURL=progress-steps.js.map