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