@mechane-ai/elements 0.8.0 → 0.10.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 (94) hide show
  1. package/NOTICE +24 -0
  2. package/README.md +67 -40
  3. package/dist/ai.js +274 -209
  4. package/dist/{categorical-values-dGbaZ0tp.js → categorical-values-DLRE4EEW.js} +4 -4
  5. package/dist/{chart-frame-DgPdIguO.js → chart-frame-et6f6Vhg.js} +22 -14
  6. package/dist/{chart-input-Sac4StHN.js → chart-input-CdLkFomi.js} +2 -2
  7. package/dist/charts/cartesian.js +529 -450
  8. package/dist/charts/distribution.js +302 -261
  9. package/dist/charts/graph.js +137 -103
  10. package/dist/charts/hierarchy.js +7 -7
  11. package/dist/charts/matrix.js +187 -174
  12. package/dist/charts/timeline.js +118 -92
  13. package/dist/charts.js +1 -1
  14. package/dist/code-block-D77maJBB.js +180 -0
  15. package/dist/collections.js +388 -300
  16. package/dist/content/code.js +1 -1
  17. package/dist/content/diff.js +81 -63
  18. package/dist/content/link.js +1 -1
  19. package/dist/content/markdown.js +115 -96
  20. package/dist/content/tree.js +43 -38
  21. package/dist/{content-link-Dd8gapwc.js → content-link-BpSZeTNK.js} +6 -2
  22. package/dist/content.js +169 -150
  23. package/dist/{assets/stylex.css → elements.css} +862 -338
  24. package/dist/feedback.js +1 -1
  25. package/dist/forms/dates.js +31 -31
  26. package/dist/forms.js +1 -1
  27. package/dist/index.js +1 -1
  28. package/dist/layout.js +286 -187
  29. package/dist/navigation/commands.js +45 -42
  30. package/dist/{navigation-yxK3iQXo.js → navigation-D2_sGy3C.js} +2 -2
  31. package/dist/navigation.js +10 -10
  32. package/dist/overlays.js +1 -1
  33. package/dist/packages/ai/src/conversation.d.ts +2 -1
  34. package/dist/packages/ai/src/index.d.ts +4 -0
  35. package/dist/packages/ai/src/message-action.d.ts +10 -0
  36. package/dist/packages/ai/src/message-boundary.d.ts +6 -0
  37. package/dist/packages/ai/src/message.d.ts +2 -1
  38. package/dist/packages/charts/src/cartesian/bar-chart.d.ts +5 -0
  39. package/dist/packages/charts/src/cartesian/index.d.ts +2 -2
  40. package/dist/packages/charts/src/chart-frame.d.ts +3 -0
  41. package/dist/packages/charts/src/chart-theme.d.ts +2 -1
  42. package/dist/packages/charts/src/distribution/distribution-plot.d.ts +22 -2
  43. package/dist/packages/collections/src/collection-scroll.d.ts +2 -1
  44. package/dist/packages/collections/src/data-table.d.ts +6 -0
  45. package/dist/packages/collections/src/index.d.ts +2 -2
  46. package/dist/packages/collections/src/timeline.d.ts +10 -3
  47. package/dist/packages/content/src/diff/pierre-diff.d.ts +2 -1
  48. package/dist/packages/content/src/viewer-styles.d.ts +64 -0
  49. package/dist/packages/core/src/actions.d.ts +7 -0
  50. package/dist/packages/core/src/agent-avatar-glyphs.d.ts +5 -0
  51. package/dist/packages/core/src/agent-avatar.d.ts +17 -0
  52. package/dist/packages/core/src/copy-value.d.ts +2 -1
  53. package/dist/packages/core/src/index.d.ts +6 -2
  54. package/dist/packages/core/src/surfaces.d.ts +5 -0
  55. package/dist/packages/feedback/src/index.d.ts +4 -1
  56. package/dist/packages/feedback/src/toast.d.ts +5 -27
  57. package/dist/packages/forms/src/agent-avatar-picker.d.ts +8 -0
  58. package/dist/packages/forms/src/field-styles.d.ts +28 -0
  59. package/dist/packages/forms/src/forms.d.ts +2 -1
  60. package/dist/packages/forms/src/index.d.ts +2 -0
  61. package/dist/packages/forms/src/selection-styles.d.ts +18 -2
  62. package/dist/packages/foundations/src/overlay-styles.d.ts +3 -1
  63. package/dist/packages/foundations/src/popup-styles.d.ts +7 -0
  64. package/dist/packages/foundations/src/tokens.stylex.d.ts +61 -0
  65. package/dist/packages/layout/src/app-shell.d.ts +2 -1
  66. package/dist/packages/layout/src/frame.stylex.d.ts +1 -0
  67. package/dist/packages/layout/src/index.d.ts +2 -1
  68. package/dist/packages/layout/src/page-toolbar.d.ts +3 -1
  69. package/dist/packages/layout/src/sidebar.d.ts +7 -1
  70. package/dist/packages/layout/src/view-stack.d.ts +13 -0
  71. package/dist/packages/layout/src/workbench.d.ts +5 -2
  72. package/dist/packages/overlays/src/alert-dialog.d.ts +5 -2
  73. package/dist/packages/overlays/src/dialog.d.ts +7 -3
  74. package/dist/pierre-diff--zsiHCCB.js +71 -0
  75. package/dist/pierre-theme-D9hnHv3Z.js +126 -0
  76. package/dist/{pierre-tree-DdE1boiT.js → pierre-tree-BFxEuxwb.js} +3 -3
  77. package/dist/src-Be7NLG8c.js +1242 -0
  78. package/dist/src-CBspCKfO.js +969 -0
  79. package/dist/src-Cs0dRc4X.js +617 -0
  80. package/dist/src-sU9b0oZW.js +1168 -0
  81. package/dist/theme.js +1 -1
  82. package/dist/tokens.js +69 -10
  83. package/dist/viewer-styles-CpHqp5Qv.js +70 -0
  84. package/package.json +2 -1
  85. package/packages/foundations/src/tokens.stylex.ts +61 -0
  86. package/styles.css +1 -1
  87. package/dist/code-block-BRNdtTaP.js +0 -175
  88. package/dist/pierre-diff-CZdzgiYm.js +0 -66
  89. package/dist/pierre-theme-BpESNIsV.js +0 -96
  90. package/dist/popup-styles-CvtZDE2t.js +0 -135
  91. package/dist/src-Bc5sEhdO.js +0 -680
  92. package/dist/src-CfDf8TY8.js +0 -466
  93. package/dist/src-DV0BNk1M.js +0 -360
  94. package/dist/src-Eg_ytPjv.js +0 -1107
@@ -0,0 +1,1168 @@
1
+ import { t as e } from "./style-composition-uYlczSsB.js";
2
+ import { t } from "./accessibility-C-aIZ1Yx.js";
3
+ import { Button as n } from "@base-ui/react/button";
4
+ import { mergeProps as r } from "@base-ui/react/merge-props";
5
+ import { useRender as i } from "@base-ui/react/use-render";
6
+ import * as a from "@stylexjs/stylex";
7
+ import { useEffect as o, useId as s, useRef as c, useState as l } from "react";
8
+ import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
9
+ import { Avatar as p } from "@base-ui/react/avatar";
10
+ import { Check as m, ChevronDown as h, Circle as g, CircleCheck as _, CircleX as v, Clock as y, Copy as b } from "lucide-react";
11
+ import { Accordion as x } from "@base-ui/react/accordion";
12
+ import { Collapsible as S } from "@base-ui/react/collapsible";
13
+ // packages/core/src/actions.tsx
14
+ var C = {
15
+ button: {
16
+ k1xSpc: "x3nfvp2",
17
+ kB7OPa: "x9f619",
18
+ kGNEyG: "x6s0dn4",
19
+ kjj79g: "xl56j7k",
20
+ kOIVth: "xbgj81g",
21
+ k8WAf4: "x1hmw7ec",
22
+ kg3NbH: "x1atzlso",
23
+ kaIpWk: "x1ok0vyi",
24
+ kMzoRj: "xmkeg23",
25
+ ksu8eU: "x1y0btm7",
26
+ kMv6JI: "x1hz01jw",
27
+ khiITx: "xvmahel",
28
+ k63SB2: "xk4h15q",
29
+ kGuDYH: "xtqrqnz",
30
+ kLWn49: "x1778rvt",
31
+ kMnn75: "xkrqix3",
32
+ kkrTdU: "x1ypdohk",
33
+ k7Eaqz: "xeuugli",
34
+ ks0D6T: "x193iq5w",
35
+ kHjlTd: "xj0a0fe",
36
+ k9WMMc: "x2b8uid",
37
+ kUfY9r: "xdibjt2",
38
+ kxHhyo: "xwpgcpl",
39
+ kL1HnH: "xknznnm",
40
+ kPJHz1: "x13qnu6",
41
+ k7shQP: "x9v5kkp",
42
+ kZs9gx: "x19rmrnh",
43
+ kiEn40: "x7s97pk",
44
+ $$css: !0
45
+ },
46
+ sm: {
47
+ kAzted: "xaeotn9 xwu7q15",
48
+ $$css: !0
49
+ },
50
+ md: {
51
+ kAzted: "x1uey4wk xwu7q15",
52
+ $$css: !0
53
+ },
54
+ solidNeutral: {
55
+ kWkggS: "x1pt885t",
56
+ kVAM5u: "x159tnba",
57
+ kMwMTN: "x1ymx3u3",
58
+ kGGynd: "x443sj4",
59
+ k2wZ5d: "x4gy2so",
60
+ $$css: !0
61
+ },
62
+ outlineNeutral: {
63
+ kWkggS: "x1r7kqkb",
64
+ kVAM5u: "x1ey3b81",
65
+ kMwMTN: "xbixft",
66
+ kGGynd: "x1od0s29",
67
+ k2wZ5d: "x1480za7",
68
+ $$css: !0
69
+ },
70
+ ghostNeutral: {
71
+ kWkggS: "xjbqb8w",
72
+ kVAM5u: "x9r1u3d",
73
+ kMzoRj: "xc342km",
74
+ kMwMTN: "xbixft",
75
+ k63SB2: "xj57cvi",
76
+ kvyT6O: "x19fjeqo",
77
+ k2wZ5d: "x1480za7",
78
+ $$css: !0
79
+ },
80
+ solidDanger: {
81
+ kWkggS: "xqtq5zq",
82
+ kVAM5u: "x1oddvo6",
83
+ kMwMTN: "x1ymx3u3",
84
+ kGGynd: "x1nru5f5",
85
+ k2wZ5d: "x96ohg0",
86
+ $$css: !0
87
+ },
88
+ outlineDanger: {
89
+ kWkggS: "xpvm0e4",
90
+ kVAM5u: "x1oddvo6",
91
+ kMwMTN: "xr5kp14",
92
+ kGGynd: "xvxq6zk",
93
+ k2wZ5d: "x14u6bge",
94
+ $$css: !0
95
+ },
96
+ ghostDanger: {
97
+ kWkggS: "xjbqb8w",
98
+ kVAM5u: "x9r1u3d",
99
+ kMzoRj: "xc342km",
100
+ kMwMTN: "xr5kp14",
101
+ k63SB2: "xj57cvi",
102
+ kGGynd: "xvxq6zk",
103
+ k2wZ5d: "x14u6bge",
104
+ $$css: !0
105
+ },
106
+ iconSm: {
107
+ k7Eaqz: "x1udcv4t xidce53",
108
+ kg3NbH: "xnjsko4",
109
+ $$css: !0
110
+ },
111
+ iconMd: {
112
+ k7Eaqz: "xelkyza xidce53",
113
+ kg3NbH: "xnjsko4",
114
+ $$css: !0
115
+ },
116
+ text: {
117
+ k1xSpc: "x1rg5ohu",
118
+ kB7OPa: "x9f619",
119
+ kAzted: "x16exltd xwu7q15",
120
+ k7Eaqz: "xeuugli",
121
+ k8WAf4: "xt970qd",
122
+ kg3NbH: "xnjsko4",
123
+ kMzoRj: "xc342km",
124
+ kaIpWk: "x2u8bby",
125
+ kWkggS: "xjbqb8w",
126
+ kMv6JI: "x1hz01jw",
127
+ khiITx: "xvmahel",
128
+ kGuDYH: "xtqrqnz",
129
+ kLWn49: "x1778rvt",
130
+ k63SB2: "xj57cvi",
131
+ ks0D6T: "x193iq5w",
132
+ kVQacm: "xb3r6kr",
133
+ kg5iWk: "xlyipyv",
134
+ kXLuUW: "xxymvpz",
135
+ kkrTdU: "x1ypdohk",
136
+ kqIQ8: "xtcyz2r",
137
+ kC4hMs: "x10n9q27",
138
+ kUfY9r: "xdibjt2",
139
+ kxHhyo: "xwpgcpl",
140
+ kL1HnH: "xknznnm",
141
+ kPJHz1: "x13qnu6",
142
+ k7shQP: "x9v5kkp",
143
+ kZs9gx: "x19rmrnh",
144
+ kiEn40: "x7s97pk",
145
+ $$css: !0
146
+ },
147
+ neutralText: {
148
+ kMwMTN: "xbixft",
149
+ kEZPYj: "x1d2pjik",
150
+ $$css: !0
151
+ },
152
+ dangerText: {
153
+ kMwMTN: "xr5kp14",
154
+ kEZPYj: "x1vwga6f",
155
+ $$css: !0
156
+ },
157
+ link: {
158
+ kMv6JI: "x1hz01jw",
159
+ khiITx: "xvmahel",
160
+ kMwMTN: "xbixft",
161
+ kMnn75: "xkrqix3",
162
+ kdSwXR: "x9p3ypd",
163
+ kc7ZrP: "x15klc50",
164
+ kM5EO1: "xnoqg6i",
165
+ kPJHz1: "x13qnu6",
166
+ k7shQP: "x9v5kkp",
167
+ kZs9gx: "x19rmrnh",
168
+ kiEn40: "x7s97pk",
169
+ $$css: !0
170
+ }
171
+ }, w = {
172
+ neutral: {
173
+ solid: C.solidNeutral,
174
+ outline: C.outlineNeutral,
175
+ ghost: C.ghostNeutral
176
+ },
177
+ danger: {
178
+ solid: C.solidDanger,
179
+ outline: C.outlineDanger,
180
+ ghost: C.ghostDanger
181
+ }
182
+ }, T = {
183
+ sm: C.sm,
184
+ md: C.md
185
+ }, E = {
186
+ sm: C.iconSm,
187
+ md: C.iconMd
188
+ }, D = {
189
+ neutral: C.neutralText,
190
+ danger: C.dangerText
191
+ };
192
+ function O({ id: e, children: t, pending: n = !1, pendingLabel: r }) {
193
+ return r === void 0 ? t : /* @__PURE__ */ f("span", {
194
+ id: e,
195
+ className: "xwz0xwf xeuugli x193iq5w",
196
+ children: [/* @__PURE__ */ d("span", {
197
+ "aria-hidden": n,
198
+ ...{
199
+ 0: { className: "x15r89dc xeuugli" },
200
+ 1: { className: "x15r89dc xeuugli xlshs6z" }
201
+ }[!!n | 0],
202
+ children: t
203
+ }), /* @__PURE__ */ d("span", {
204
+ "aria-hidden": !n,
205
+ ...{
206
+ 0: { className: "x15r89dc xeuugli" },
207
+ 1: { className: "x15r89dc xeuugli xlshs6z" }
208
+ }[!n | 0],
209
+ children: r
210
+ })]
211
+ });
212
+ }
213
+ function k({ variant: t = "outline", tone: r = "neutral", size: i = "sm", pending: o = !1, pendingLabel: c, children: l, className: u, style: f, xstyle: p, disabled: m = !1, ...h }) {
214
+ let g = s(), _ = a.props(C.button, T[i], w[r][t], p);
215
+ return /* @__PURE__ */ d(n, {
216
+ ...h,
217
+ ...e({
218
+ className: u,
219
+ style: f,
220
+ styles: _
221
+ }),
222
+ disabled: m || o,
223
+ focusableWhenDisabled: o || h.focusableWhenDisabled,
224
+ "aria-labelledby": h["aria-labelledby"] ?? (h["aria-label"] === void 0 && c !== void 0 ? g : void 0),
225
+ "aria-busy": o || h["aria-busy"],
226
+ children: /* @__PURE__ */ d(O, {
227
+ id: g,
228
+ pending: o,
229
+ pendingLabel: c,
230
+ children: l
231
+ })
232
+ });
233
+ }
234
+ function A({ size: e = "sm", children: t, xstyle: n, ...r }) {
235
+ return /* @__PURE__ */ d(k, {
236
+ ...r,
237
+ size: e,
238
+ xstyle: [E[e], n],
239
+ children: /* @__PURE__ */ d("span", {
240
+ "aria-hidden": !0,
241
+ className: "xtwnzbg x18utl2x x2lah0s x3nfvp2",
242
+ children: t
243
+ })
244
+ });
245
+ }
246
+ function ee({ tone: t = "neutral", pending: r = !1, pendingLabel: i, children: o, className: c, style: l, xstyle: u, disabled: f = !1, ...p }) {
247
+ let m = s(), h = a.props(C.text, D[t], u);
248
+ return /* @__PURE__ */ d(n, {
249
+ ...p,
250
+ ...e({
251
+ className: c,
252
+ style: l,
253
+ styles: h
254
+ }),
255
+ disabled: f || r,
256
+ focusableWhenDisabled: r || p.focusableWhenDisabled,
257
+ "aria-labelledby": p["aria-labelledby"] ?? (p["aria-label"] === void 0 && i !== void 0 ? m : void 0),
258
+ "aria-busy": r || p["aria-busy"],
259
+ children: /* @__PURE__ */ d(O, {
260
+ id: m,
261
+ pending: r,
262
+ pendingLabel: i,
263
+ children: o
264
+ })
265
+ });
266
+ }
267
+ function j({ xstyle: e, ...t }) {
268
+ return /* @__PURE__ */ d("a", { ...r(a.props(C.link, e), t) });
269
+ }
270
+ function M({ size: e = "sm", children: t, xstyle: n, render: o, ref: s, ...c }) {
271
+ return i({
272
+ defaultTagName: "a",
273
+ render: o,
274
+ ref: s,
275
+ props: r(a.props(C.button, T[e], C.ghostNeutral, E[e], n), c, { children: /* @__PURE__ */ d("span", {
276
+ className: "xtwnzbg x18utl2x x2lah0s x3nfvp2",
277
+ children: t
278
+ }) })
279
+ });
280
+ }
281
+ // packages/core/src/avatar.tsx
282
+ var N = {
283
+ avatar: {
284
+ k1xSpc: "x3nfvp2",
285
+ kmuXW: "x2lah0s",
286
+ kGNEyG: "x6s0dn4",
287
+ kjj79g: "xl56j7k",
288
+ kVQacm: "xb3r6kr",
289
+ kMzoRj: "xmkeg23",
290
+ ksu8eU: "x1y0btm7",
291
+ kVAM5u: "x1ey3b81",
292
+ kaIpWk: "x1ok0vyi",
293
+ kWkggS: "x1r7kqkb",
294
+ kMwMTN: "x153jb6y",
295
+ kMv6JI: "x1hz01jw",
296
+ kGuDYH: "xy8obcc",
297
+ kLWn49: "xas2l8k",
298
+ k63SB2: "xk4h15q",
299
+ $$css: !0
300
+ },
301
+ small: {
302
+ kzqmXN: "xvy4d1p",
303
+ kZKoxP: "xxk0z11",
304
+ $$css: !0
305
+ },
306
+ medium: {
307
+ kzqmXN: "x1td3qas",
308
+ kZKoxP: "x10w6t97",
309
+ $$css: !0
310
+ },
311
+ large: {
312
+ kzqmXN: "x100vrsf",
313
+ kZKoxP: "x1vqgdyp",
314
+ $$css: !0
315
+ }
316
+ }, te = {
317
+ sm: N.small,
318
+ md: N.medium,
319
+ lg: N.large
320
+ };
321
+ function ne({ label: e, fallback: t, src: n, size: r = "md" }) {
322
+ return /* @__PURE__ */ f(p.Root, {
323
+ role: "img",
324
+ "aria-label": e,
325
+ ...a.props(N.avatar, te[r]),
326
+ children: [n !== void 0 && /* @__PURE__ */ d(p.Image, {
327
+ src: n,
328
+ alt: "",
329
+ className: "xh8yej3 x5yr21d xl1xv1r"
330
+ }), /* @__PURE__ */ d(p.Fallback, {
331
+ "aria-hidden": !0,
332
+ children: t
333
+ })]
334
+ });
335
+ }
336
+ // packages/core/src/agent-avatar-glyphs.tsx
337
+ var P = Object.freeze(/* @__PURE__ */ "spark.facet.orbit.loop.clover.petal.wheel.compass.grid.steps.chevron.wave.ripple.arch.bridge.peak.zigzag.helix.kite.cube.prism.frame.brackets.diamond.hexagon.signal.crest.bolt.link.split.aster.portal".split(".")), F = Object.freeze([...P]), I = {
338
+ spark: /* @__PURE__ */ d("path", {
339
+ d: "M12 2 14.6 8.4 21 11 14.6 13.6 12 20 9.4 13.6 3 11 9.4 8.4Z",
340
+ fill: "currentColor",
341
+ stroke: "none"
342
+ }),
343
+ facet: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "m12 2 9 7-9 13L3 9Z" }), /* @__PURE__ */ d("path", { d: "m3 9 9 4 9-4M12 2v11l-5-7m5 7 5-7" })] }),
344
+ orbit: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("ellipse", {
345
+ cx: "12",
346
+ cy: "12",
347
+ rx: "10",
348
+ ry: "5",
349
+ transform: "rotate(-35 12 12)"
350
+ }), /* @__PURE__ */ d("circle", {
351
+ cx: "12",
352
+ cy: "12",
353
+ r: "3",
354
+ fill: "currentColor",
355
+ stroke: "none"
356
+ })] }),
357
+ loop: /* @__PURE__ */ d("path", { d: "M12 7C7-1 1 7 5 12s7 9 11 7 7-8 3-11-7 3-7 7S5 20 4 15 8 7 12 7Zm0 0c5 0 8 4 7 8" }),
358
+ clover: /* @__PURE__ */ d("path", {
359
+ d: "M12 9C2-4-4 12 9 12-4 22 12 28 12 15c10 13 16-3 3-3C28 2 12-4 12 9Z",
360
+ fill: "currentColor",
361
+ stroke: "none",
362
+ transform: "translate(2 2) scale(.83)"
363
+ }),
364
+ petal: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "M12 21C1 15 2 6 5 3c4 1 7 5 7 9 0-4 3-8 7-9 3 3 4 12-7 18Z" }), /* @__PURE__ */ d("path", { d: "M12 12v9M5 3l7 9 7-9" })] }),
365
+ wheel: /* @__PURE__ */ f(u, { children: [
366
+ /* @__PURE__ */ d("circle", {
367
+ cx: "12",
368
+ cy: "12",
369
+ r: "8.5"
370
+ }),
371
+ /* @__PURE__ */ d("path", { d: "M12 3.5V9m0 6v5.5M3.5 12H9m6 0h5.5M6 6l4 4m4 4 4 4M6 18l4-4m4-4 4-4" }),
372
+ /* @__PURE__ */ d("circle", {
373
+ cx: "12",
374
+ cy: "12",
375
+ r: "2",
376
+ fill: "currentColor",
377
+ stroke: "none"
378
+ })
379
+ ] }),
380
+ compass: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "m12 2 4 6 6 4-6 4-4 6-4-6-6-4 6-4Z" }), /* @__PURE__ */ d("path", {
381
+ d: "m12 6 2 6-2 6-2-6Z",
382
+ fill: "currentColor",
383
+ stroke: "none"
384
+ })] }),
385
+ grid: /* @__PURE__ */ f(u, { children: [
386
+ /* @__PURE__ */ d("rect", {
387
+ x: "3",
388
+ y: "3",
389
+ width: "7",
390
+ height: "7",
391
+ rx: "1",
392
+ fill: "currentColor",
393
+ stroke: "none"
394
+ }),
395
+ /* @__PURE__ */ d("rect", {
396
+ x: "14",
397
+ y: "3",
398
+ width: "7",
399
+ height: "7",
400
+ rx: "1"
401
+ }),
402
+ /* @__PURE__ */ d("rect", {
403
+ x: "3",
404
+ y: "14",
405
+ width: "7",
406
+ height: "7",
407
+ rx: "1"
408
+ }),
409
+ /* @__PURE__ */ d("rect", {
410
+ x: "14",
411
+ y: "14",
412
+ width: "7",
413
+ height: "7",
414
+ rx: "1",
415
+ fill: "currentColor",
416
+ stroke: "none"
417
+ })
418
+ ] }),
419
+ steps: /* @__PURE__ */ d("path", { d: "M3 21V9h6V3h12v6h-6v6H9v6ZM9 9h6v6" }),
420
+ chevron: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "m3 6 9 6 9-6M3 12l9 6 9-6" }), /* @__PURE__ */ d("path", {
421
+ d: "m3 3 9 6 9-6",
422
+ opacity: ".5"
423
+ })] }),
424
+ wave: /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("path", { d: "M2 7c4-8 7 8 11 0s7 8 9 0M2 12c4-8 7 8 11 0s7 8 9 0M2 17c4-8 7 8 11 0s7 8 9 0" }) }),
425
+ ripple: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "M3 18a9 9 0 1 1 18 0M7 18a5 5 0 1 1 10 0" }), /* @__PURE__ */ d("circle", {
426
+ cx: "12",
427
+ cy: "17",
428
+ r: "1.5",
429
+ fill: "currentColor",
430
+ stroke: "none"
431
+ })] }),
432
+ arch: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "M3 21V11a9 9 0 0 1 18 0v10h-6V11a3 3 0 0 0-6 0v10Z" }), /* @__PURE__ */ d("path", { d: "M3 16h6m6-9 5-2" })] }),
433
+ bridge: /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("path", {
434
+ d: "M3 20V4h5v5h8V4h5v16h-5v-6H8v6Z",
435
+ fill: "currentColor",
436
+ stroke: "none"
437
+ }) }),
438
+ peak: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "M2 20 9 4l5 10 3-6 5 12Z" }), /* @__PURE__ */ d("path", { d: "m6 11 3 3 3-3M14 20l3-6 3 6" })] }),
439
+ zigzag: /* @__PURE__ */ d("path", { d: "M3 3h7l4 6 4-6h4l-8 12-4-6-3 4 7 8H7l-6-8 6-8" }),
440
+ helix: /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("path", { d: "M5 2c18 6-4 14 14 20M19 2C1 8 23 16 5 22M8 5h8M8 19h8M9 10h6m-6 4h6" }) }),
441
+ kite: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "m12 2 8 9-8 11-8-11Z" }), /* @__PURE__ */ d("path", { d: "M12 2v20M4 11h16" })] }),
442
+ cube: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "m12 2 9 5v10l-9 5-9-5V7Z" }), /* @__PURE__ */ d("path", { d: "m3 7 9 5 9-5M12 12v10" })] }),
443
+ prism: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "M3 20 12 3l9 17Z" }), /* @__PURE__ */ d("path", { d: "m12 3 2 17M3 20l8-7 10 7" })] }),
444
+ frame: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "M3 9V3h6m6 0h6v6m0 6v6h-6m-6 0H3v-6" }), /* @__PURE__ */ d("rect", {
445
+ x: "8",
446
+ y: "8",
447
+ width: "8",
448
+ height: "8",
449
+ rx: "2",
450
+ fill: "currentColor",
451
+ stroke: "none"
452
+ })] }),
453
+ brackets: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "m8 3-6 9 6 9m8-18 6 9-6 9" }), /* @__PURE__ */ d("path", { d: "m14 6-4 12" })] }),
454
+ diamond: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "m12 2 10 10-10 10L2 12Z" }), /* @__PURE__ */ d("path", {
455
+ d: "m12 7 5 5-5 5-5-5Z",
456
+ fill: "currentColor",
457
+ stroke: "none"
458
+ })] }),
459
+ hexagon: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "m7 3 10 0 5 9-5 9H7l-5-9Z" }), /* @__PURE__ */ d("path", { d: "M7 3v9l10 9V12ZM2 12h5m10 0h5" })] }),
460
+ signal: /* @__PURE__ */ f(u, { children: [
461
+ /* @__PURE__ */ d("rect", {
462
+ x: "3",
463
+ y: "13",
464
+ width: "4",
465
+ height: "8",
466
+ rx: "1",
467
+ fill: "currentColor",
468
+ stroke: "none"
469
+ }),
470
+ /* @__PURE__ */ d("rect", {
471
+ x: "10",
472
+ y: "8",
473
+ width: "4",
474
+ height: "13",
475
+ rx: "1",
476
+ fill: "currentColor",
477
+ stroke: "none"
478
+ }),
479
+ /* @__PURE__ */ d("rect", {
480
+ x: "17",
481
+ y: "3",
482
+ width: "4",
483
+ height: "18",
484
+ rx: "1",
485
+ fill: "currentColor",
486
+ stroke: "none"
487
+ })
488
+ ] }),
489
+ crest: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "M3 4h18v7c0 5-5 9-9 11-4-2-9-6-9-11Z" }), /* @__PURE__ */ d("path", { d: "M7 8h10M7 12h10m-10 4h7" })] }),
490
+ bolt: /* @__PURE__ */ d("path", {
491
+ d: "M13 2 3 14h7l-1 8L21 9h-8Z",
492
+ fill: "currentColor",
493
+ stroke: "none"
494
+ }),
495
+ link: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", {
496
+ d: "m9 15-3 3a4 4 0 0 1-6-6l6-6a4 4 0 0 1 6 0m0 3 3-3a4 4 0 0 1 6 6l-6 6a4 4 0 0 1-6 0",
497
+ transform: "translate(1.5 0)"
498
+ }), /* @__PURE__ */ d("path", { d: "m8 16 8-8" })] }),
499
+ split: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", {
500
+ d: "M3 3h8v8H3Zm10 10h8v8h-8Z",
501
+ fill: "currentColor",
502
+ stroke: "none"
503
+ }), /* @__PURE__ */ d("path", { d: "m14 3 7 7m-7-7v7h7M3 14l7 7m-7-7v7h7" })] }),
504
+ aster: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", {
505
+ d: "M12 2v20M3.3 7l17.4 10M3.3 17 20.7 7",
506
+ strokeWidth: "3.5"
507
+ }), /* @__PURE__ */ d("circle", {
508
+ cx: "12",
509
+ cy: "12",
510
+ r: "3",
511
+ fill: "currentColor",
512
+ stroke: "none"
513
+ })] }),
514
+ portal: /* @__PURE__ */ f(u, { children: [
515
+ /* @__PURE__ */ d("ellipse", {
516
+ cx: "12",
517
+ cy: "12",
518
+ rx: "9",
519
+ ry: "10"
520
+ }),
521
+ /* @__PURE__ */ d("ellipse", {
522
+ cx: "12",
523
+ cy: "12",
524
+ rx: "4",
525
+ ry: "10"
526
+ }),
527
+ /* @__PURE__ */ d("path", { d: "M3 12h18" })
528
+ ] })
529
+ }, L = Object.freeze([
530
+ "ember",
531
+ "coral",
532
+ "rose",
533
+ "berry",
534
+ "plum",
535
+ "orchid",
536
+ "violet",
537
+ "indigo",
538
+ "iris",
539
+ "cobalt",
540
+ "blue",
541
+ "sky",
542
+ "cyan",
543
+ "lagoon",
544
+ "teal",
545
+ "jade",
546
+ "mint",
547
+ "forest",
548
+ "leaf",
549
+ "moss",
550
+ "olive",
551
+ "ochre",
552
+ "amber",
553
+ "copper"
554
+ ]), R = L, z = {
555
+ root: {
556
+ k1xSpc: "x3nfvp2",
557
+ kmuXW: "x2lah0s",
558
+ kXLuUW: "xxymvpz",
559
+ $$css: !0
560
+ },
561
+ xs: {
562
+ kzqmXN: "x1kky2od",
563
+ kZKoxP: "xlup9mm",
564
+ $$css: !0
565
+ },
566
+ sm: {
567
+ kzqmXN: "xw4jnvo",
568
+ kZKoxP: "x1qx5ct2",
569
+ $$css: !0
570
+ },
571
+ md: {
572
+ kzqmXN: "xvy4d1p",
573
+ kZKoxP: "xxk0z11",
574
+ $$css: !0
575
+ },
576
+ lg: {
577
+ kzqmXN: "x100vrsf",
578
+ kZKoxP: "x1vqgdyp",
579
+ $$css: !0
580
+ },
581
+ ember: {
582
+ kMwMTN: "xc1rks8",
583
+ $$css: !0
584
+ },
585
+ coral: {
586
+ kMwMTN: "xxelmfz",
587
+ $$css: !0
588
+ },
589
+ rose: {
590
+ kMwMTN: "x74odtm",
591
+ $$css: !0
592
+ },
593
+ berry: {
594
+ kMwMTN: "x1g2ccfw",
595
+ $$css: !0
596
+ },
597
+ plum: {
598
+ kMwMTN: "x6pms0m",
599
+ $$css: !0
600
+ },
601
+ orchid: {
602
+ kMwMTN: "x1jkipek",
603
+ $$css: !0
604
+ },
605
+ violet: {
606
+ kMwMTN: "x1i8ffmr",
607
+ $$css: !0
608
+ },
609
+ indigo: {
610
+ kMwMTN: "xaldbr7",
611
+ $$css: !0
612
+ },
613
+ iris: {
614
+ kMwMTN: "xluaxyv",
615
+ $$css: !0
616
+ },
617
+ cobalt: {
618
+ kMwMTN: "x1gp8k07",
619
+ $$css: !0
620
+ },
621
+ blue: {
622
+ kMwMTN: "xhr7b8t",
623
+ $$css: !0
624
+ },
625
+ sky: {
626
+ kMwMTN: "xti44e0",
627
+ $$css: !0
628
+ },
629
+ cyan: {
630
+ kMwMTN: "x169v04l",
631
+ $$css: !0
632
+ },
633
+ lagoon: {
634
+ kMwMTN: "x1uqv9wq",
635
+ $$css: !0
636
+ },
637
+ teal: {
638
+ kMwMTN: "xifw4fl",
639
+ $$css: !0
640
+ },
641
+ jade: {
642
+ kMwMTN: "xwu6q0j",
643
+ $$css: !0
644
+ },
645
+ mint: {
646
+ kMwMTN: "x15uohq4",
647
+ $$css: !0
648
+ },
649
+ forest: {
650
+ kMwMTN: "xt31ejz",
651
+ $$css: !0
652
+ },
653
+ leaf: {
654
+ kMwMTN: "xj8eo06",
655
+ $$css: !0
656
+ },
657
+ moss: {
658
+ kMwMTN: "x1138u24",
659
+ $$css: !0
660
+ },
661
+ olive: {
662
+ kMwMTN: "x1lay6ol",
663
+ $$css: !0
664
+ },
665
+ ochre: {
666
+ kMwMTN: "xh1iifm",
667
+ $$css: !0
668
+ },
669
+ amber: {
670
+ kMwMTN: "xodba46",
671
+ $$css: !0
672
+ },
673
+ copper: {
674
+ kMwMTN: "x1b59cz5",
675
+ $$css: !0
676
+ }
677
+ }, B = {
678
+ xs: z.xs,
679
+ sm: z.sm,
680
+ md: z.md,
681
+ lg: z.lg
682
+ }, V = {
683
+ ember: z.ember,
684
+ coral: z.coral,
685
+ rose: z.rose,
686
+ berry: z.berry,
687
+ plum: z.plum,
688
+ orchid: z.orchid,
689
+ violet: z.violet,
690
+ indigo: z.indigo,
691
+ iris: z.iris,
692
+ cobalt: z.cobalt,
693
+ blue: z.blue,
694
+ sky: z.sky,
695
+ cyan: z.cyan,
696
+ lagoon: z.lagoon,
697
+ teal: z.teal,
698
+ jade: z.jade,
699
+ mint: z.mint,
700
+ forest: z.forest,
701
+ leaf: z.leaf,
702
+ moss: z.moss,
703
+ olive: z.olive,
704
+ ochre: z.ochre,
705
+ amber: z.amber,
706
+ copper: z.copper
707
+ };
708
+ function H(e) {
709
+ let t = Array.from(e).reduce((e, t) => (e * 31 + (t.codePointAt(0) ?? 0)) % 2147483647, 0);
710
+ return {
711
+ shape: P[t % P.length] ?? "spark",
712
+ color: L[Math.floor(t / P.length) % L.length] ?? "ember"
713
+ };
714
+ }
715
+ function U({ seed: e, appearance: t, size: n = "sm", label: r }) {
716
+ let i = t ?? H(e);
717
+ return /* @__PURE__ */ d("svg", {
718
+ viewBox: "0 0 24 24",
719
+ fill: "none",
720
+ stroke: "currentColor",
721
+ strokeWidth: "1.75",
722
+ strokeLinecap: "round",
723
+ strokeLinejoin: "round",
724
+ role: r === void 0 ? void 0 : "img",
725
+ "aria-label": r,
726
+ "aria-hidden": r === void 0 || void 0,
727
+ ...a.props(z.root, B[n], V[i.color]),
728
+ children: I[i.shape]
729
+ });
730
+ }
731
+ // packages/core/src/copy-value.tsx
732
+ var W = {
733
+ value: {
734
+ kJuA4N: "x15r89dc",
735
+ k7Eaqz: "xeuugli",
736
+ kHjlTd: "xj0a0fe",
737
+ kcqcaj: "xss6m8b",
738
+ kfSwDN: "x1hx0egp",
739
+ $$css: !0
740
+ },
741
+ visible: { $$css: !0 },
742
+ hidden: {
743
+ k33iCy: "xlshs6z",
744
+ $$css: !0
745
+ }
746
+ }, G = 1600, K = /* @__PURE__ */ new Set(["copied", "failed"]), q = {
747
+ idle: W.visible,
748
+ pending: W.visible,
749
+ copied: W.hidden,
750
+ failed: W.visible
751
+ }, J = {
752
+ idle: W.hidden,
753
+ pending: W.hidden,
754
+ copied: W.visible,
755
+ failed: W.hidden
756
+ };
757
+ function Y({ value: i, label: s, display: u = "value", children: p, className: h, style: g, disabled: _ = !1, onClick: v, render: y, ...x }) {
758
+ let [S, C] = l({
759
+ value: i,
760
+ status: "idle"
761
+ }), w = c(0), T = S.value === i ? S.status : "idle";
762
+ o(() => () => {
763
+ w.current += 1;
764
+ }, [i]), o(() => {
765
+ if (!K.has(S.status)) return;
766
+ let e = globalThis.setTimeout(() => {
767
+ C((e) => e === S ? {
768
+ value: i,
769
+ status: "idle"
770
+ } : e);
771
+ }, G);
772
+ return () => globalThis.clearTimeout(e);
773
+ }, [S, i]);
774
+ async function E() {
775
+ w.current += 1;
776
+ let e = w.current;
777
+ C({
778
+ value: i,
779
+ status: "pending"
780
+ });
781
+ try {
782
+ await navigator.clipboard.writeText(typeof i == "string" ? i : i()), w.current === e && C({
783
+ value: i,
784
+ status: "copied"
785
+ });
786
+ } catch {
787
+ w.current === e && C({
788
+ value: i,
789
+ status: "failed"
790
+ });
791
+ }
792
+ }
793
+ let D = T === "copied" ? m : b, O = {
794
+ idle: "",
795
+ pending: "",
796
+ copied: `${s} copied`,
797
+ failed: `Could not copy ${s}. Select and copy the value.`
798
+ }, k = r({ onClick: () => {
799
+ E();
800
+ } }, { onClick: v });
801
+ return /* @__PURE__ */ f(n, {
802
+ ...x,
803
+ render: y,
804
+ ...k,
805
+ ...e({
806
+ className: h,
807
+ style: g,
808
+ styles: {
809
+ 0: {},
810
+ 1: { className: "x3nfvp2 x6s0dn4 x193iq5w x16exltd xwu7q15 xbgj81g x1717udv xc342km xjbqb8w x153jb6y x1hz01jw xj57cvi xvmahel xtqrqnz x1778rvt x1yc453h x1ypdohk x1wlwa7r xoqm7u7 xdibjt2 xwpgcpl xknznnm x19rmrnh x9v5kkp x13qnu6 x7s97pk" }
811
+ }[y === void 0 | 0]
812
+ }),
813
+ type: "button",
814
+ "aria-label": `Copy ${s}`,
815
+ "aria-busy": T === "pending" || x["aria-busy"],
816
+ disabled: _ || T === "pending",
817
+ focusableWhenDisabled: T === "pending" || x.focusableWhenDisabled,
818
+ title: x.title ?? (typeof i == "string" ? i : s),
819
+ children: [
820
+ u === "value" && /* @__PURE__ */ f("span", {
821
+ className: "xwz0xwf xeuugli",
822
+ children: [/* @__PURE__ */ d("span", {
823
+ "aria-hidden": T === "copied",
824
+ ...a.props(W.value, q[T]),
825
+ children: p ?? (typeof i == "string" ? i : s)
826
+ }), /* @__PURE__ */ d("span", {
827
+ "aria-hidden": T !== "copied",
828
+ ...a.props(W.value, J[T]),
829
+ children: "Copied"
830
+ })]
831
+ }),
832
+ /* @__PURE__ */ d(D, {
833
+ size: u === "icon" ? 16 : 12,
834
+ "aria-hidden": !0,
835
+ className: "x2lah0s"
836
+ }),
837
+ /* @__PURE__ */ d("span", {
838
+ role: "status",
839
+ ...a.props(t.hidden),
840
+ children: O[T]
841
+ })
842
+ ]
843
+ });
844
+ }
845
+ // packages/core/src/disclosure.tsx
846
+ function X({ className: t, style: n, ...r }) {
847
+ return /* @__PURE__ */ d(x.Root, {
848
+ ...r,
849
+ ...e({
850
+ className: t,
851
+ style: n,
852
+ styles: { className: "xeuugli x1hz01jw xvmahel xtqrqnz x1778rvt xj57cvi xbixft" }
853
+ })
854
+ });
855
+ }
856
+ function Z({ className: t, style: n, ...r }) {
857
+ return /* @__PURE__ */ d(x.Item, {
858
+ ...r,
859
+ ...e({
860
+ className: t,
861
+ style: n,
862
+ styles: { className: "xso031l x1q0q8m5 x1qndepd" }
863
+ })
864
+ });
865
+ }
866
+ function re({ className: t, style: n, ...r }) {
867
+ return /* @__PURE__ */ d(x.Header, {
868
+ ...r,
869
+ ...e({
870
+ className: t,
871
+ style: n,
872
+ styles: { className: "x1ghz6dp x1qlqyl8 x1pd3egz" }
873
+ })
874
+ });
875
+ }
876
+ function ie({ className: t, style: n, children: r, ...i }) {
877
+ return /* @__PURE__ */ f(x.Trigger, {
878
+ ...i,
879
+ ...e({
880
+ className: t,
881
+ style: n,
882
+ styles: { className: "x78zum5 x6s0dn4 x1qughib x1hnptsi xh8yej3 x1uey4wk xwu7q15 xnjsko4 xn9t2bk xc342km xjbqb8w xvwfb5p xyg3wme xjb2p0i x1qlqyl8 x15bjb6t xk4h15q x1heor9g x1yc453h xj0a0fe x1ypdohk xwj21n9 x1m8qfh3 x13qnu6 x9v5kkp x19rmrnh x7s97pk x-default-marker" }
883
+ }),
884
+ children: [r, /* @__PURE__ */ d(h, {
885
+ "aria-hidden": !0,
886
+ className: "x2lah0s xtwnzbg x18utl2x x153jb6y x9tu13d x1felao3"
887
+ })]
888
+ });
889
+ }
890
+ function ae({ className: t, style: n, ...r }) {
891
+ return /* @__PURE__ */ d(x.Panel, {
892
+ ...r,
893
+ ...e({
894
+ className: t,
895
+ style: n,
896
+ styles: { className: "x1wpizpg xj0a0fe" }
897
+ })
898
+ });
899
+ }
900
+ function oe({ className: t, style: n, ...r }) {
901
+ return /* @__PURE__ */ d(S.Root, {
902
+ ...r,
903
+ ...e({
904
+ className: t,
905
+ style: n,
906
+ styles: { className: "xeuugli x1hz01jw xvmahel xtqrqnz x1778rvt xj57cvi xbixft" }
907
+ })
908
+ });
909
+ }
910
+ function se({ className: t, style: n, children: r, ...i }) {
911
+ return /* @__PURE__ */ f(S.Trigger, {
912
+ ...i,
913
+ ...e({
914
+ className: t,
915
+ style: n,
916
+ styles: { className: "x78zum5 x6s0dn4 x1qughib x1hnptsi xh8yej3 x1uey4wk xwu7q15 xnjsko4 xn9t2bk xc342km xjbqb8w xvwfb5p xyg3wme xjb2p0i x1qlqyl8 x15bjb6t xk4h15q x1heor9g x1yc453h xj0a0fe x1ypdohk xwj21n9 x1m8qfh3 x13qnu6 x9v5kkp x19rmrnh x7s97pk x-default-marker" }
917
+ }),
918
+ children: [r, /* @__PURE__ */ d(h, {
919
+ "aria-hidden": !0,
920
+ className: "x2lah0s xtwnzbg x18utl2x x153jb6y x9tu13d x1felao3"
921
+ })]
922
+ });
923
+ }
924
+ function ce({ className: t, style: n, ...r }) {
925
+ return /* @__PURE__ */ d(S.Panel, {
926
+ ...r,
927
+ ...e({
928
+ className: t,
929
+ style: n,
930
+ styles: { className: "x1wpizpg xj0a0fe" }
931
+ })
932
+ });
933
+ }
934
+ var le = {
935
+ Root: X,
936
+ Item: Z,
937
+ Header: re,
938
+ Trigger: ie,
939
+ Panel: ae
940
+ }, ue = {
941
+ Root: oe,
942
+ Trigger: se,
943
+ Panel: ce
944
+ }, de = { link: {
945
+ k1xSpc: "x1lliihq",
946
+ kB7OPa: "x9f619",
947
+ k7Eaqz: "xeuugli",
948
+ kAzted: "x2lwn1j xwu7q15",
949
+ kaIpWk: "x1pjcqnp",
950
+ kWkggS: "xjbqb8w",
951
+ kMwMTN: "xbixft",
952
+ kMv6JI: "x1hz01jw",
953
+ k63SB2: "xj57cvi",
954
+ kGuDYH: "xtqrqnz",
955
+ kLWn49: "x1778rvt",
956
+ khiITx: "xvmahel",
957
+ kMnn75: "xkrqix3",
958
+ kHjlTd: "xj0a0fe",
959
+ ko0ZBZ: "x13nmlw8",
960
+ kSReZ0: "x1ecmtor",
961
+ kPJHz1: "x13qnu6",
962
+ k7shQP: "x9v5kkp",
963
+ kZs9gx: "x19rmrnh",
964
+ kiEn40: "x8fq8g9",
965
+ $$css: !0
966
+ } };
967
+ function fe({ padded: e = !0, ...t }) {
968
+ return /* @__PURE__ */ d("section", { ...r({
969
+ 0: { className: "xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xb3r6kr x1hz01jw xj57cvi xtqrqnz x1778rvt xbixft xvmahel" },
970
+ 1: { className: "xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xb3r6kr x1hz01jw xj57cvi xtqrqnz x1778rvt xbixft xvmahel x1jvlu93" }
971
+ }[!!e | 0], t) });
972
+ }
973
+ function pe({ xstyle: e, ...t }) {
974
+ return /* @__PURE__ */ d("a", { ...r(a.props(de.link, e), t) });
975
+ }
976
+ function me({ between: e = !1, ...t }) {
977
+ return /* @__PURE__ */ d("div", { ...r({
978
+ 0: { className: "x78zum5 x6s0dn4 x1hnptsi x1a02dak xeuugli" },
979
+ 1: { className: "x78zum5 x6s0dn4 x1hnptsi x1a02dak xeuugli x1qughib" }
980
+ }[!!e | 0], t) });
981
+ }
982
+ function he({ compact: e = !1, ...t }) {
983
+ return /* @__PURE__ */ d("div", { ...r({
984
+ 0: { className: "x78zum5 xdt5ytf x1j825kq xeuugli" },
985
+ 1: { className: "x78zum5 xdt5ytf xeuugli x1hnptsi" }
986
+ }[!!e | 0], t) });
987
+ }
988
+ function ge(e) {
989
+ return /* @__PURE__ */ d("div", { ...r({ className: "xrvj5dj xhuszhj x1m6b44x xeuugli" }, e) });
990
+ }
991
+ function _e(e) {
992
+ return /* @__PURE__ */ d("hr", { ...r({ className: "xc342km x178xt8z x1y0btm7 x1ey3b81 x1ghz6dp" }, e) });
993
+ }
994
+ // packages/core/src/text.tsx
995
+ var Q = {
996
+ text: {
997
+ kogj98: "x1ghz6dp",
998
+ kMv6JI: "x1hz01jw",
999
+ k63SB2: "xj57cvi",
1000
+ khiITx: "xvmahel",
1001
+ kHjlTd: "xj0a0fe",
1002
+ $$css: !0
1003
+ },
1004
+ body: {
1005
+ kGuDYH: "xtqrqnz",
1006
+ kLWn49: "x1778rvt",
1007
+ $$css: !0
1008
+ },
1009
+ caption: {
1010
+ kGuDYH: "xy8obcc",
1011
+ kLWn49: "xas2l8k",
1012
+ $$css: !0
1013
+ },
1014
+ ink: {
1015
+ kMwMTN: "xbixft",
1016
+ $$css: !0
1017
+ },
1018
+ muted: {
1019
+ kMwMTN: "x153jb6y",
1020
+ $$css: !0
1021
+ },
1022
+ mono: {
1023
+ kMv6JI: "xiard35",
1024
+ kGuDYH: "xy8obcc",
1025
+ kLWn49: "x1778rvt",
1026
+ kHjlTd: "xj0a0fe",
1027
+ $$css: !0
1028
+ },
1029
+ prose: {
1030
+ ks0D6T: "x1ewvobj",
1031
+ khDVqt: "x126k92a",
1032
+ kHjlTd: "xj0a0fe",
1033
+ kGuDYH: "x12myhf4",
1034
+ kLWn49: "x1ytb0s6",
1035
+ $$css: !0
1036
+ },
1037
+ badge: {
1038
+ k1xSpc: "x3nfvp2",
1039
+ kmuXW: "x2lah0s",
1040
+ kGNEyG: "x6s0dn4",
1041
+ kOIVth: "xunmzkg",
1042
+ kaIpWk: "x1ok0vyi",
1043
+ k8WAf4: "x10dazmo",
1044
+ kg3NbH: "x5g2kb4",
1045
+ kMv6JI: "x1hz01jw",
1046
+ khiITx: "xvmahel",
1047
+ kGuDYH: "xy8obcc",
1048
+ kLWn49: "x1778rvt",
1049
+ k63SB2: "xk4h15q",
1050
+ ks0D6T: "x193iq5w",
1051
+ kB7OPa: "x9f619",
1052
+ kzqmXN: "xeq5yr9",
1053
+ $$css: !0
1054
+ },
1055
+ neutral: {
1056
+ kMwMTN: "x153jb6y",
1057
+ kWkggS: "x1r7kqkb",
1058
+ $$css: !0
1059
+ },
1060
+ positive: {
1061
+ kMwMTN: "x7ixh4y",
1062
+ kWkggS: "x1r8u7ye",
1063
+ $$css: !0
1064
+ },
1065
+ warning: {
1066
+ kMwMTN: "x1f9ixgr",
1067
+ kWkggS: "x1dqe72f",
1068
+ $$css: !0
1069
+ },
1070
+ negative: {
1071
+ kMwMTN: "xr5kp14",
1072
+ kWkggS: "xcqwzn",
1073
+ $$css: !0
1074
+ },
1075
+ statusIcon: {
1076
+ kmuXW: "x2lah0s",
1077
+ $$css: !0
1078
+ },
1079
+ neutralIcon: {
1080
+ kMwMTN: "x153jb6y",
1081
+ $$css: !0
1082
+ },
1083
+ positiveIcon: {
1084
+ kMwMTN: "x7ixh4y",
1085
+ $$css: !0
1086
+ },
1087
+ warningIcon: {
1088
+ kMwMTN: "x1f9ixgr",
1089
+ $$css: !0
1090
+ },
1091
+ negativeIcon: {
1092
+ kMwMTN: "xr5kp14",
1093
+ $$css: !0
1094
+ }
1095
+ }, ve = {
1096
+ body: Q.body,
1097
+ caption: Q.caption,
1098
+ mono: Q.mono,
1099
+ prose: Q.prose
1100
+ }, ye = {
1101
+ ink: Q.ink,
1102
+ muted: Q.muted
1103
+ }, be = {
1104
+ neutral: Q.neutral,
1105
+ positive: Q.positive,
1106
+ warning: Q.warning,
1107
+ negative: Q.negative
1108
+ }, xe = {
1109
+ neutral: Q.neutralIcon,
1110
+ positive: Q.positiveIcon,
1111
+ warning: Q.warningIcon,
1112
+ negative: Q.negativeIcon
1113
+ }, Se = {
1114
+ neutral: g,
1115
+ positive: _,
1116
+ warning: y,
1117
+ negative: v
1118
+ };
1119
+ function $({ variant: e = "body", tone: t = "ink", xstyle: n, ...i }) {
1120
+ return /* @__PURE__ */ d("span", { ...r(a.props(Q.text, ve[e], ye[t], n), i) });
1121
+ }
1122
+ function Ce({ compact: e = !1, ...t }) {
1123
+ return /* @__PURE__ */ d("h1", { ...r({
1124
+ 0: { className: "x1ghz6dp x1hz01jw xvmahel xc0f4dz x1sfszr9 xzju6ct x197eox2 x1b5ytql x1wjjqco xbixft xj0a0fe" },
1125
+ 1: { className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1b5ytql xbixft xj0a0fe" }
1126
+ }[!!e | 0], t) });
1127
+ }
1128
+ function we(e) {
1129
+ return /* @__PURE__ */ d("h2", { ...r({ className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1b5ytql xbixft xj0a0fe" }, e) });
1130
+ }
1131
+ function Te(e) {
1132
+ return /* @__PURE__ */ d("p", { ...r({ className: "x1ghz6dp x1hz01jw xj57cvi xvmahel xj0a0fe xtqrqnz x1778rvt x153jb6y" }, e) });
1133
+ }
1134
+ function Ee(e) {
1135
+ return /* @__PURE__ */ d("span", { ...r({ className: "x1ghz6dp xj57cvi xvmahel xiard35 xy8obcc x1778rvt xj0a0fe x153jb6y" }, e) });
1136
+ }
1137
+ function De(e) {
1138
+ return /* @__PURE__ */ d("pre", { ...r({ className: "x1ghz6dp x1hz01jw xj57cvi xvmahel x1ewvobj x126k92a xj0a0fe x12myhf4 x1ytb0s6 xbixft" }, e) });
1139
+ }
1140
+ function Oe({ children: e, tone: t = "neutral", ...n }) {
1141
+ return /* @__PURE__ */ f("span", {
1142
+ ...r(a.props(Q.badge, be[t]), n),
1143
+ children: [/* @__PURE__ */ d(g, {
1144
+ size: 5,
1145
+ fill: "currentColor",
1146
+ "aria-hidden": !0,
1147
+ className: "x2lah0s"
1148
+ }), /* @__PURE__ */ d("span", {
1149
+ className: "xeuugli xj0a0fe",
1150
+ children: e
1151
+ })]
1152
+ });
1153
+ }
1154
+ function ke({ children: e, tone: t = "neutral", ...n }) {
1155
+ let i = Se[t];
1156
+ return /* @__PURE__ */ f("span", {
1157
+ ...r({ className: "x3nfvp2 x6s0dn4 xbgj81g xbixft x1hz01jw xvmahel xtqrqnz x1778rvt xj57cvi x193iq5w" }, n),
1158
+ children: [/* @__PURE__ */ d(i, {
1159
+ size: 14,
1160
+ "aria-hidden": !0,
1161
+ ...a.props(Q.statusIcon, xe[t])
1162
+ }), /* @__PURE__ */ d("span", {
1163
+ className: "xeuugli xj0a0fe",
1164
+ children: e
1165
+ })]
1166
+ });
1167
+ }
1168
+ export { k as C, j as D, ee as E, ne as S, M as T, Y as _, De as a, R as b, $ as c, fe as d, me as f, ue as g, le as h, Te as i, ge as l, pe as m, Ce as n, ke as o, he as p, Ee as r, we as s, Oe as t, _e as u, U as v, A as w, F as x, H as y };