@mechane-ai/elements 0.45.0 → 0.46.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 +48 -18
- package/bin/mechane-elements-catalog.mjs +42 -4
- package/dist/ai.js +268 -202
- package/dist/catalog.json +91 -31
- package/dist/categorical-values-BXi-rJuv.js +74 -0
- package/dist/chart-cursor-1mFd48Jc.js +23 -0
- package/dist/chart-data-CIJVWCYt.js +21 -0
- package/dist/{chart-frame-Ztktqs1b.js → chart-frame-BaxKn_MB.js} +22 -41
- package/dist/{chart-input-BO3BqlFO.js → chart-input-Bm82_9Rd.js} +2 -2
- package/dist/chart-theme-4zprJ3rW.js +404 -0
- package/dist/charts/cartesian.js +1598 -1432
- package/dist/charts/distribution.js +476 -404
- package/dist/charts/graph.js +363 -349
- package/dist/charts/hierarchy.js +103 -94
- package/dist/charts/matrix.js +340 -333
- package/dist/charts/timeline.js +167 -134
- package/dist/charts.js +3 -3
- package/dist/{code-block-Cpfr7B6a.js → code-block-DioAM2bZ.js} +67 -52
- package/dist/collections.js +1648 -1188
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +67 -66
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +2 -2
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-CGeFFb9F.js → content-link-NWuHp5rC.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/csp.js +6 -11
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +274 -214
- package/dist/{forms-DeU0Tiv3.js → forms-CEbwzlRR.js} +50 -41
- package/dist/forms.js +3 -3
- package/dist/index.js +1 -1
- package/dist/layout.js +207 -207
- package/dist/navigation.js +4 -3
- package/dist/packages/ai/src/conversation.d.ts +2 -0
- package/dist/packages/ai/src/prompt-input.d.ts +7 -2
- package/dist/packages/charts/src/cartesian/composition-bars.d.ts +2 -2
- package/dist/packages/charts/src/cartesian/index.d.ts +3 -2
- package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +8 -2
- package/dist/packages/charts/src/cartesian/time-series.d.ts +11 -1
- package/dist/packages/charts/src/categorical-values.d.ts +14 -9
- package/dist/packages/charts/src/chart-frame.d.ts +7 -9
- package/dist/packages/charts/src/chart-inspection.d.ts +1 -2
- package/dist/packages/charts/src/chart-range.d.ts +33 -0
- package/dist/packages/charts/src/chart-rows.d.ts +20 -0
- package/dist/packages/charts/src/chart-theme.d.ts +17 -0
- package/dist/packages/charts/src/chart.d.ts +81 -0
- package/dist/packages/charts/src/distribution/distribution-plot.d.ts +4 -4
- package/dist/packages/charts/src/index.d.ts +1 -0
- package/dist/packages/charts/src/matrix/matrix-strip.d.ts +3 -3
- package/dist/packages/charts/src/plot-width.d.ts +0 -1
- package/dist/packages/charts/src/timeline/index.d.ts +1 -1
- package/dist/packages/charts/src/timeline/waterfall.d.ts +6 -2
- package/dist/packages/collections/src/collection-controls.d.ts +5 -1
- package/dist/packages/collections/src/collection-filters.d.ts +4 -1
- package/dist/packages/collections/src/control-toolbar.d.ts +13 -0
- package/dist/packages/collections/src/data-table-layout.d.ts +78 -0
- package/dist/packages/collections/src/data-table-rows.d.ts +54 -0
- package/dist/packages/collections/src/data-table-styles.d.ts +340 -0
- package/dist/packages/collections/src/data-table-text.d.ts +13 -0
- package/dist/packages/collections/src/data-table-trigger.d.ts +23 -0
- package/dist/packages/collections/src/data-table.d.ts +3 -85
- package/dist/packages/collections/src/index.d.ts +11 -6
- package/dist/packages/collections/src/query-controls.d.ts +6 -2
- package/dist/packages/collections/src/table-results.d.ts +47 -13
- package/dist/packages/collections/src/timeline.d.ts +1 -0
- package/dist/packages/collections/src/use-collection-controls.d.ts +2 -1
- package/dist/packages/collections/src/use-table-window.d.ts +25 -0
- package/dist/packages/content/src/viewer.d.ts +8 -0
- package/dist/packages/core/src/disclosure.d.ts +9 -1
- package/dist/packages/core/src/index.d.ts +1 -0
- package/dist/packages/core/src/route-link.d.ts +11 -0
- package/dist/packages/forms/src/dates/date-inputs.d.ts +3 -1
- package/dist/packages/forms/src/file-picker.d.ts +15 -0
- package/dist/packages/forms/src/form-controls.d.ts +1 -6
- package/dist/packages/forms/src/forms.d.ts +4 -1
- package/dist/packages/forms/src/index.d.ts +4 -2
- package/dist/packages/forms/src/selection.d.ts +14 -0
- package/dist/packages/foundations/src/csp/index.d.ts +1 -1
- package/dist/packages/foundations/src/csp/provider.d.ts +7 -2
- package/dist/packages/navigation/src/index.d.ts +1 -1
- package/dist/{pierre-diff-B3tD3-6z.js → pierre-diff-DlvjyuJn.js} +1 -1
- package/dist/plot-width-v2c_rA20.js +63 -0
- package/dist/{src-gqEebHEa.js → src-1EHkSFS-.js} +395 -274
- package/dist/{src-DBNncL7_.js → src-BPTDJqt0.js} +48 -68
- package/dist/src-CGc_hjxJ.js +409 -0
- package/dist/{src-DcW_gMX8.js → src-CpdJlDhO.js} +480 -362
- package/dist/{src-Dcs3SZ9V.js → src-DVHlknB6.js} +1 -1
- package/dist/styles2.css +136 -114
- package/package.json +1 -4
- package/skills/extend-elements/SKILL.md +74 -0
- package/skills/review-elements/SKILL.md +76 -0
- package/skills/upgrade-elements/SKILL.md +34 -0
- package/skills/upgrade-elements/references/releases.md +58 -0
- package/skills/use-elements/SKILL.md +64 -13
- package/skills/use-elements/references/agent.md +57 -0
- package/skills/use-elements/references/charts.md +63 -0
- package/skills/use-elements/references/collections.md +89 -0
- package/skills/use-elements/references/conversations.md +47 -0
- package/skills/use-elements/references/forms.md +81 -0
- package/skills/use-elements/references/styling.md +70 -0
- package/skills/use-elements/references/workspace.md +3 -3
- package/dist/categorical-values-DZLGQVW1.js +0 -63
- package/dist/chart-navigation-BAbb5PV9.js +0 -154
- package/dist/header-styles-COxCYFZx.js +0 -90
- package/dist/packages/charts/src/chart-navigation.d.ts +0 -39
- package/dist/packages/charts/src/chart-surface.d.ts +0 -27
- package/dist/packages/navigation/src/route-link.d.ts +0 -2
- package/dist/plot-width-CIqBiHcd.js +0 -105
- package/dist/src-Bk7M67zy.js +0 -396
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { a as e, i as t, n, r, t as i } from "./control-styles-D3q_Qyxi.js";
|
|
2
2
|
import { n as a } from "./accessibility-P89UG9-r.js";
|
|
3
|
-
import {
|
|
4
|
-
import { r as
|
|
5
|
-
import * as
|
|
6
|
-
import { createParts as
|
|
7
|
-
import { createContext as g, useContext as _, useId as v } from "react";
|
|
3
|
+
import { C as o, D as s, S as c, b as l, i as u, o as d, s as f } from "./src-CpdJlDhO.js";
|
|
4
|
+
import { r as p } from "./forms-CEbwzlRR.js";
|
|
5
|
+
import * as m from "@stylexjs/stylex";
|
|
6
|
+
import { createParts as ee, mergeProps as h } from "@ui-sdk/react/primitive";
|
|
7
|
+
import { createContext as g, useContext as _, useId as v, useState as te } from "react";
|
|
8
|
+
import { definePrimitive as ne } from "@ui-sdk/core";
|
|
8
9
|
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
9
|
-
import { Check as x, ChevronDown as S, X as C } from "lucide-react";
|
|
10
|
+
import { Check as x, ChevronDown as S, File as re, X as C } from "lucide-react";
|
|
10
11
|
import * as w from "@ui-sdk/react/combobox";
|
|
11
|
-
import { Radio as T, RadioGroup as E, RadioIndicator as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import { Switch as
|
|
21
|
-
import { Toggle as
|
|
12
|
+
import { Radio as T, RadioGroup as E, RadioIndicator as ie } from "@ui-sdk/react/radio";
|
|
13
|
+
import { Field as ae, FieldLabel as oe, FieldLegend as se, FieldSet as ce, useFieldControl as le } from "@ui-sdk/react/field";
|
|
14
|
+
import { InputGroup as ue } from "@ui-sdk/react/input";
|
|
15
|
+
import { NumberInput as de, NumberInputControl as fe, NumberInputDecrement as pe, NumberInputGroup as me, NumberInputIncrement as he } from "@ui-sdk/react/number-input";
|
|
16
|
+
import { Slider as D, SliderControl as O, SliderIndicator as k, SliderThumb as A, SliderTrack as j, SliderValue as M } from "@ui-sdk/react/slider";
|
|
17
|
+
import { FileInput as N, FileInputDropzone as P, FileInputItem as F, FileInputItemRemove as I, FileInputList as L, FileInputTrigger as R } from "@ui-sdk/react/file-input";
|
|
18
|
+
import * as z from "@ui-sdk/react/select";
|
|
19
|
+
import { Checkbox as ge, CheckboxIndicator as _e } from "@ui-sdk/react/checkbox";
|
|
20
|
+
import { SegmentedControl as ve, SegmentedControlIndicator as ye, SegmentedControlItem as be } from "@ui-sdk/react/segmented-control";
|
|
21
|
+
import { Switch as xe, SwitchThumb as Se } from "@ui-sdk/react/switch";
|
|
22
|
+
import { Toggle as Ce, ToggleGroup as we } from "@ui-sdk/react/toggle";
|
|
22
23
|
// packages/forms/src/selection-styles.ts
|
|
23
|
-
var
|
|
24
|
+
var B = {
|
|
24
25
|
trigger: {
|
|
25
26
|
k1xSpc: "x3nfvp2",
|
|
26
27
|
kGNEyG: "x6s0dn4",
|
|
@@ -122,7 +123,7 @@ var H = {
|
|
|
122
123
|
kHjlTd: "xj0a0fe",
|
|
123
124
|
$$css: !0
|
|
124
125
|
}
|
|
125
|
-
},
|
|
126
|
+
}, V = g("standard"), H = {
|
|
126
127
|
inputGroup: {
|
|
127
128
|
kOIVth: "xunmzkg",
|
|
128
129
|
$$css: !0
|
|
@@ -174,81 +175,81 @@ var H = {
|
|
|
174
175
|
$$css: !0
|
|
175
176
|
}
|
|
176
177
|
};
|
|
177
|
-
function
|
|
178
|
-
return /* @__PURE__ */ y(
|
|
178
|
+
function Te(e) {
|
|
179
|
+
return /* @__PURE__ */ y(V, {
|
|
179
180
|
value: e.density ?? "standard",
|
|
180
181
|
children: (e.multiple, /* @__PURE__ */ y(w.Combobox, { ...e }))
|
|
181
182
|
});
|
|
182
183
|
}
|
|
183
|
-
function
|
|
184
|
-
let i = _(
|
|
185
|
-
return /* @__PURE__ */ y("div", { ...h(
|
|
184
|
+
function Ee({ xstyle: e, ...n }) {
|
|
185
|
+
let i = _(V);
|
|
186
|
+
return /* @__PURE__ */ y("div", { ...h(m.props(r.group, t[i], H.inputGroup, e), n) });
|
|
186
187
|
}
|
|
187
|
-
function
|
|
188
|
+
function De({ className: e, style: t, ...n }) {
|
|
188
189
|
return /* @__PURE__ */ y(w.ComboboxLabel, {
|
|
189
190
|
...n,
|
|
190
191
|
...a({
|
|
191
192
|
className: e,
|
|
192
193
|
style: t,
|
|
193
|
-
styles:
|
|
194
|
+
styles: m.props(r.label)
|
|
194
195
|
})
|
|
195
196
|
});
|
|
196
197
|
}
|
|
197
|
-
function
|
|
198
|
-
let s = _(
|
|
198
|
+
function Oe({ className: t, style: i, ...o }) {
|
|
199
|
+
let s = _(V);
|
|
199
200
|
return /* @__PURE__ */ y(w.ComboboxInput, {
|
|
200
201
|
...o,
|
|
201
202
|
...a({
|
|
202
203
|
className: t,
|
|
203
204
|
style: i,
|
|
204
|
-
styles:
|
|
205
|
+
styles: m.props(r.base, r.field, r.singleLineField, r.textFieldState, n[s], e[s], r.embedded, H.input)
|
|
205
206
|
})
|
|
206
207
|
});
|
|
207
208
|
}
|
|
208
|
-
function
|
|
209
|
+
function ke({ children: e = /* @__PURE__ */ y(S, {
|
|
209
210
|
size: 16,
|
|
210
211
|
"aria-hidden": "true"
|
|
211
212
|
}), "aria-label": t = "Show options", className: n, style: r, ...o }) {
|
|
212
|
-
let s = _(
|
|
213
|
+
let s = _(V);
|
|
213
214
|
return /* @__PURE__ */ y(w.ComboboxTrigger, {
|
|
214
215
|
...o,
|
|
215
216
|
"aria-label": t,
|
|
216
217
|
...a({
|
|
217
218
|
className: n,
|
|
218
219
|
style: r,
|
|
219
|
-
styles:
|
|
220
|
+
styles: m.props(i[s], H.action)
|
|
220
221
|
}),
|
|
221
222
|
children: e
|
|
222
223
|
});
|
|
223
224
|
}
|
|
224
|
-
function
|
|
225
|
+
function Ae({ children: e = /* @__PURE__ */ y(C, {
|
|
225
226
|
size: 16,
|
|
226
227
|
"aria-hidden": "true"
|
|
227
228
|
}), "aria-label": t = "Clear selection", className: n, style: r, ...o }) {
|
|
228
|
-
let s = _(
|
|
229
|
+
let s = _(V);
|
|
229
230
|
return /* @__PURE__ */ y(w.ComboboxClear, {
|
|
230
231
|
...o,
|
|
231
232
|
"aria-label": t,
|
|
232
233
|
...a({
|
|
233
234
|
className: n,
|
|
234
235
|
style: r,
|
|
235
|
-
styles:
|
|
236
|
+
styles: m.props(i[s], H.action)
|
|
236
237
|
}),
|
|
237
238
|
children: e
|
|
238
239
|
});
|
|
239
240
|
}
|
|
240
|
-
function
|
|
241
|
+
function je({ className: e, style: t, xstyle: n, sideOffset: r = 4, ...i }) {
|
|
241
242
|
return /* @__PURE__ */ y(w.ComboboxContent, {
|
|
242
243
|
...i,
|
|
243
244
|
sideOffset: r,
|
|
244
245
|
...a({
|
|
245
246
|
className: e,
|
|
246
247
|
style: t,
|
|
247
|
-
styles:
|
|
248
|
+
styles: m.props(B.popup, B.positioner, n)
|
|
248
249
|
})
|
|
249
250
|
});
|
|
250
251
|
}
|
|
251
|
-
function
|
|
252
|
+
function Me({ className: e, style: t, ...n }) {
|
|
252
253
|
return /* @__PURE__ */ y(w.ComboboxList, {
|
|
253
254
|
...n,
|
|
254
255
|
...a({
|
|
@@ -258,17 +259,17 @@ function be({ className: e, style: t, ...n }) {
|
|
|
258
259
|
})
|
|
259
260
|
});
|
|
260
261
|
}
|
|
261
|
-
function
|
|
262
|
+
function Ne({ className: e, style: t, ...n }) {
|
|
262
263
|
return /* @__PURE__ */ y(w.ComboboxItem, {
|
|
263
264
|
...n,
|
|
264
265
|
...a({
|
|
265
266
|
className: e,
|
|
266
267
|
style: t,
|
|
267
|
-
styles:
|
|
268
|
+
styles: m.props(B.option)
|
|
268
269
|
})
|
|
269
270
|
});
|
|
270
271
|
}
|
|
271
|
-
function
|
|
272
|
+
function Pe({ children: e = /* @__PURE__ */ y(x, {
|
|
272
273
|
size: 16,
|
|
273
274
|
"aria-hidden": "true"
|
|
274
275
|
}), className: t, style: n, ...r }) {
|
|
@@ -277,12 +278,12 @@ function Se({ children: e = /* @__PURE__ */ y(x, {
|
|
|
277
278
|
...a({
|
|
278
279
|
className: t,
|
|
279
280
|
style: n,
|
|
280
|
-
styles:
|
|
281
|
+
styles: m.props(B.icon)
|
|
281
282
|
}),
|
|
282
283
|
children: e
|
|
283
284
|
});
|
|
284
285
|
}
|
|
285
|
-
function
|
|
286
|
+
function Fe({ className: e, style: t, ...n }) {
|
|
286
287
|
return /* @__PURE__ */ y(w.ComboboxEmpty, {
|
|
287
288
|
...n,
|
|
288
289
|
...a({
|
|
@@ -292,7 +293,7 @@ function Ce({ className: e, style: t, ...n }) {
|
|
|
292
293
|
})
|
|
293
294
|
});
|
|
294
295
|
}
|
|
295
|
-
function
|
|
296
|
+
function Ie({ className: e, style: t, ...n }) {
|
|
296
297
|
return /* @__PURE__ */ y(w.ComboboxStatus, {
|
|
297
298
|
...n,
|
|
298
299
|
...a({
|
|
@@ -302,7 +303,7 @@ function we({ className: e, style: t, ...n }) {
|
|
|
302
303
|
})
|
|
303
304
|
});
|
|
304
305
|
}
|
|
305
|
-
function
|
|
306
|
+
function Le({ className: e, style: t, ...n }) {
|
|
306
307
|
return /* @__PURE__ */ y(w.ComboboxGroupLabel, {
|
|
307
308
|
...n,
|
|
308
309
|
...a({
|
|
@@ -312,7 +313,7 @@ function Te({ className: e, style: t, ...n }) {
|
|
|
312
313
|
})
|
|
313
314
|
});
|
|
314
315
|
}
|
|
315
|
-
function
|
|
316
|
+
function Re({ className: e, style: t, ...n }) {
|
|
316
317
|
return /* @__PURE__ */ y(w.ComboboxChips, {
|
|
317
318
|
...n,
|
|
318
319
|
...a({
|
|
@@ -322,61 +323,61 @@ function Ee({ className: e, style: t, ...n }) {
|
|
|
322
323
|
})
|
|
323
324
|
});
|
|
324
325
|
}
|
|
325
|
-
function
|
|
326
|
-
let o = _(
|
|
326
|
+
function ze({ className: e, style: n, ...i }) {
|
|
327
|
+
let o = _(V);
|
|
327
328
|
return /* @__PURE__ */ y(w.ComboboxChip, {
|
|
328
329
|
...i,
|
|
329
330
|
...a({
|
|
330
331
|
className: e,
|
|
331
332
|
style: n,
|
|
332
|
-
styles:
|
|
333
|
+
styles: m.props(r.group, t[o], H.chip)
|
|
333
334
|
})
|
|
334
335
|
});
|
|
335
336
|
}
|
|
336
|
-
function
|
|
337
|
+
function Be({ children: e = /* @__PURE__ */ y(C, {
|
|
337
338
|
size: 16,
|
|
338
339
|
"aria-hidden": "true"
|
|
339
340
|
}), className: t, style: n, ...r }) {
|
|
340
|
-
let o = _(
|
|
341
|
+
let o = _(V);
|
|
341
342
|
return /* @__PURE__ */ y(w.ComboboxChipRemove, {
|
|
342
343
|
...r,
|
|
343
344
|
...a({
|
|
344
345
|
className: t,
|
|
345
346
|
style: n,
|
|
346
|
-
styles:
|
|
347
|
+
styles: m.props(i[o], H.action)
|
|
347
348
|
}),
|
|
348
349
|
children: e
|
|
349
350
|
});
|
|
350
351
|
}
|
|
351
|
-
var
|
|
352
|
-
Root:
|
|
353
|
-
Label:
|
|
354
|
-
InputGroup:
|
|
355
|
-
Input:
|
|
356
|
-
Trigger:
|
|
357
|
-
Clear:
|
|
358
|
-
Popup:
|
|
359
|
-
List:
|
|
360
|
-
Item:
|
|
361
|
-
ItemIndicator:
|
|
362
|
-
Empty:
|
|
363
|
-
Status:
|
|
352
|
+
var Ve = {
|
|
353
|
+
Root: Te,
|
|
354
|
+
Label: De,
|
|
355
|
+
InputGroup: Ee,
|
|
356
|
+
Input: Oe,
|
|
357
|
+
Trigger: ke,
|
|
358
|
+
Clear: Ae,
|
|
359
|
+
Popup: je,
|
|
360
|
+
List: Me,
|
|
361
|
+
Item: Ne,
|
|
362
|
+
ItemIndicator: Pe,
|
|
363
|
+
Empty: Fe,
|
|
364
|
+
Status: Ie,
|
|
364
365
|
Group: w.ComboboxGroup,
|
|
365
|
-
GroupLabel:
|
|
366
|
-
Chips:
|
|
367
|
-
Chip:
|
|
368
|
-
ChipRemove:
|
|
366
|
+
GroupLabel: Le,
|
|
367
|
+
Chips: Re,
|
|
368
|
+
Chip: ze,
|
|
369
|
+
ChipRemove: Be,
|
|
369
370
|
Value: w.ComboboxValue
|
|
370
371
|
};
|
|
371
372
|
// packages/forms/src/agent-avatar-picker.tsx
|
|
372
|
-
function
|
|
373
|
+
function He({ value: e, onValueChange: t, disabled: n = !1 }) {
|
|
373
374
|
let r = v(), i = v();
|
|
374
375
|
return /* @__PURE__ */ b("div", {
|
|
375
376
|
className: "x78zum5 xdt5ytf xaml1ju x1hz01jw xj57cvi xeuugli x193iq5w x16m5f1z",
|
|
376
377
|
children: [
|
|
377
378
|
/* @__PURE__ */ b("div", {
|
|
378
379
|
className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli",
|
|
379
|
-
children: [/* @__PURE__ */ y(
|
|
380
|
+
children: [/* @__PURE__ */ y(l, {
|
|
380
381
|
seed: "preview",
|
|
381
382
|
appearance: e,
|
|
382
383
|
size: "lg"
|
|
@@ -413,7 +414,7 @@ function Ae({ value: e, onValueChange: t, disabled: n = !1 }) {
|
|
|
413
414
|
"aria-label": t,
|
|
414
415
|
title: t,
|
|
415
416
|
className: "x3nfvp2 x6s0dn4 xl56j7k x9f619 x16opp91 x1gjsuxi x17tes2r x17oiadl x1s01oa9 xmkeg23 x1y0btm7 x9r1u3d xy32g2j xjbqb8w x1ypdohk x1bn55bi xgm7wsc x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x7s97pk x1m8qfh3 xwj21n9",
|
|
416
|
-
children: /* @__PURE__ */ y(
|
|
417
|
+
children: /* @__PURE__ */ y(l, {
|
|
417
418
|
seed: t,
|
|
418
419
|
appearance: {
|
|
419
420
|
...e,
|
|
@@ -441,12 +442,12 @@ function Ae({ value: e, onValueChange: t, disabled: n = !1 }) {
|
|
|
441
442
|
},
|
|
442
443
|
disabled: n,
|
|
443
444
|
className: "xrvj5dj x10yxpwy x15eknm3 xunmzkg",
|
|
444
|
-
children:
|
|
445
|
+
children: c.map((t) => /* @__PURE__ */ y(T, {
|
|
445
446
|
value: t,
|
|
446
447
|
"aria-label": t,
|
|
447
448
|
title: t,
|
|
448
449
|
className: "x3nfvp2 x6s0dn4 xl56j7k x9f619 x16opp91 x1gjsuxi x17tes2r x17oiadl x1s01oa9 xmkeg23 x1y0btm7 x9r1u3d xy32g2j xjbqb8w x1ypdohk x1bn55bi xgm7wsc x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x7s97pk x1m8qfh3 xwj21n9",
|
|
449
|
-
children: /* @__PURE__ */ y(
|
|
450
|
+
children: /* @__PURE__ */ y(l, {
|
|
450
451
|
seed: t,
|
|
451
452
|
appearance: {
|
|
452
453
|
...e,
|
|
@@ -461,7 +462,7 @@ function Ae({ value: e, onValueChange: t, disabled: n = !1 }) {
|
|
|
461
462
|
});
|
|
462
463
|
}
|
|
463
464
|
// packages/forms/src/form-controls.tsx
|
|
464
|
-
var
|
|
465
|
+
var U = g("standard"), W = g("standard"), G = {
|
|
465
466
|
fieldset: {
|
|
466
467
|
k1xSpc: "x78zum5",
|
|
467
468
|
kXwgrk: "xdt5ytf",
|
|
@@ -527,61 +528,26 @@ var G = g("standard"), K = g("standard"), q = {
|
|
|
527
528
|
kMwMTN: "xbixft",
|
|
528
529
|
kk7Lky: "xwj21n9",
|
|
529
530
|
$$css: !0
|
|
530
|
-
},
|
|
531
|
-
file: {
|
|
532
|
-
k8WAf4: "xt970qd",
|
|
533
|
-
kg3NbH: "xnjsko4",
|
|
534
|
-
kLWn49: "xasj1m4 x1fj8ryy",
|
|
535
|
-
kihK3i: "x1k5xxp6",
|
|
536
|
-
kzuhEi: "x1svwz4r",
|
|
537
|
-
kov1hC: "xrc8akj",
|
|
538
|
-
kSflKP: "x1rcvzx2 xhjjd6e",
|
|
539
|
-
kws8Wn: "xoo4nqz",
|
|
540
|
-
kp0OWX: "xt3cggl",
|
|
541
|
-
kagsqe: "x1aypxx0",
|
|
542
|
-
kgq3TX: "x1i3c8xy",
|
|
543
|
-
kyhJmN: "x19tzrcj",
|
|
544
|
-
k958Fn: "x1wc3fni",
|
|
545
|
-
kZa55i: "xtqkasz",
|
|
546
|
-
knelA6: "x2hdjra",
|
|
547
|
-
k1g6Oj: "xns5ekw xnws22w",
|
|
548
|
-
kWNeyc: "xjmbuqf",
|
|
549
|
-
kq66xQ: "x1k4m713",
|
|
550
|
-
kFMQdI: "x9qipvy",
|
|
551
|
-
ka6B6R: "x1hr67oa",
|
|
552
|
-
kedk6p: "xysgshy",
|
|
553
|
-
$$css: !0
|
|
554
531
|
}
|
|
555
|
-
},
|
|
532
|
+
}, Ue = {
|
|
556
533
|
standard: { $$css: !0 },
|
|
557
534
|
compact: {
|
|
558
535
|
kg3NbH: "xbsbsya",
|
|
559
536
|
$$css: !0
|
|
560
537
|
}
|
|
561
|
-
}, J = {
|
|
562
|
-
standard: { $$css: !0 },
|
|
563
|
-
compact: {
|
|
564
|
-
kLWn49: "x1p8ddxc x1fj8ryy",
|
|
565
|
-
kov1hC: "xmrrhut",
|
|
566
|
-
kSflKP: "x11rbrfk xhjjd6e",
|
|
567
|
-
$$css: !0
|
|
568
|
-
}
|
|
569
|
-
}, Me = {
|
|
570
|
-
standard: J.standard,
|
|
571
|
-
compact: J.compact
|
|
572
538
|
};
|
|
573
|
-
function
|
|
574
|
-
return /* @__PURE__ */ y(
|
|
539
|
+
function We({ className: e, style: t, xstyle: n, ...r }) {
|
|
540
|
+
return /* @__PURE__ */ y(ce, {
|
|
575
541
|
...r,
|
|
576
542
|
...a({
|
|
577
543
|
className: e,
|
|
578
544
|
style: t,
|
|
579
|
-
styles:
|
|
545
|
+
styles: m.props(G.fieldset, n)
|
|
580
546
|
})
|
|
581
547
|
});
|
|
582
548
|
}
|
|
583
|
-
function
|
|
584
|
-
return /* @__PURE__ */ y(
|
|
549
|
+
function Ge({ className: e, style: t, ...n }) {
|
|
550
|
+
return /* @__PURE__ */ y(se, {
|
|
585
551
|
...n,
|
|
586
552
|
...a({
|
|
587
553
|
className: e,
|
|
@@ -590,108 +556,108 @@ function Pe({ className: e, style: t, ...n }) {
|
|
|
590
556
|
})
|
|
591
557
|
});
|
|
592
558
|
}
|
|
593
|
-
function
|
|
594
|
-
return /* @__PURE__ */ y(
|
|
559
|
+
function Ke({ density: e = "standard", className: n, style: i, xstyle: o, ...s }) {
|
|
560
|
+
return /* @__PURE__ */ y(U, {
|
|
595
561
|
value: e,
|
|
596
|
-
children: /* @__PURE__ */ y(
|
|
562
|
+
children: /* @__PURE__ */ y(ue, {
|
|
597
563
|
...s,
|
|
598
564
|
...a({
|
|
599
565
|
className: n,
|
|
600
566
|
style: i,
|
|
601
|
-
styles:
|
|
567
|
+
styles: m.props(r.group, t[e], o)
|
|
602
568
|
})
|
|
603
569
|
})
|
|
604
570
|
});
|
|
605
571
|
}
|
|
606
|
-
function
|
|
607
|
-
let t = _(
|
|
608
|
-
return /* @__PURE__ */ y("span", { ...
|
|
572
|
+
function qe(e) {
|
|
573
|
+
let t = _(U);
|
|
574
|
+
return /* @__PURE__ */ y("span", { ...h(m.props(G.addon, Ue[t]), e) });
|
|
609
575
|
}
|
|
610
|
-
function
|
|
611
|
-
let t = _(
|
|
612
|
-
return /* @__PURE__ */ y(
|
|
576
|
+
function Je(e) {
|
|
577
|
+
let t = _(U);
|
|
578
|
+
return /* @__PURE__ */ y(p, {
|
|
613
579
|
...e,
|
|
614
580
|
density: t,
|
|
615
581
|
isEmbedded: !0
|
|
616
582
|
});
|
|
617
583
|
}
|
|
618
|
-
function
|
|
619
|
-
return /* @__PURE__ */ y(
|
|
584
|
+
function Ye({ density: e = "standard", className: t, style: n, xstyle: i, ...o }) {
|
|
585
|
+
return /* @__PURE__ */ y(W, {
|
|
620
586
|
value: e,
|
|
621
|
-
children: /* @__PURE__ */ y(
|
|
587
|
+
children: /* @__PURE__ */ y(de, {
|
|
622
588
|
...o,
|
|
623
589
|
...a({
|
|
624
590
|
className: t,
|
|
625
591
|
style: n,
|
|
626
|
-
styles:
|
|
592
|
+
styles: m.props(r.fieldRoot, i)
|
|
627
593
|
})
|
|
628
594
|
})
|
|
629
595
|
});
|
|
630
596
|
}
|
|
631
|
-
function
|
|
632
|
-
let o = _(
|
|
633
|
-
return /* @__PURE__ */ y(
|
|
597
|
+
function Xe({ className: e, style: n, ...i }) {
|
|
598
|
+
let o = _(W);
|
|
599
|
+
return /* @__PURE__ */ y(me, {
|
|
634
600
|
...i,
|
|
635
601
|
...a({
|
|
636
602
|
className: e,
|
|
637
603
|
style: n,
|
|
638
|
-
styles:
|
|
604
|
+
styles: m.props(r.group, t[o])
|
|
639
605
|
})
|
|
640
606
|
});
|
|
641
607
|
}
|
|
642
|
-
function
|
|
643
|
-
let s = _(
|
|
644
|
-
return /* @__PURE__ */ y(
|
|
608
|
+
function Ze({ className: t, style: i, ...o }) {
|
|
609
|
+
let s = _(W);
|
|
610
|
+
return /* @__PURE__ */ y(fe, {
|
|
645
611
|
...o,
|
|
646
612
|
...a({
|
|
647
613
|
className: t,
|
|
648
614
|
style: i,
|
|
649
|
-
styles:
|
|
615
|
+
styles: m.props(r.base, r.field, r.singleLineField, r.textFieldState, n[s], e[s], r.embedded, G.numberInput)
|
|
650
616
|
})
|
|
651
617
|
});
|
|
652
618
|
}
|
|
653
|
-
function
|
|
654
|
-
let s = _(
|
|
655
|
-
return /* @__PURE__ */ y(
|
|
619
|
+
function Qe({ children: e = "+", "aria-label": t = "Increase", className: n, style: r, ...o }) {
|
|
620
|
+
let s = _(W);
|
|
621
|
+
return /* @__PURE__ */ y(he, {
|
|
656
622
|
...o,
|
|
657
623
|
"aria-label": t,
|
|
658
624
|
...a({
|
|
659
625
|
className: n,
|
|
660
626
|
style: r,
|
|
661
|
-
styles:
|
|
627
|
+
styles: m.props(i[s], G.stepper)
|
|
662
628
|
}),
|
|
663
629
|
children: e
|
|
664
630
|
});
|
|
665
631
|
}
|
|
666
|
-
function
|
|
667
|
-
let s = _(
|
|
668
|
-
return /* @__PURE__ */ y(
|
|
632
|
+
function $e({ children: e = "−", "aria-label": t = "Decrease", className: n, style: r, ...o }) {
|
|
633
|
+
let s = _(W);
|
|
634
|
+
return /* @__PURE__ */ y(pe, {
|
|
669
635
|
...o,
|
|
670
636
|
"aria-label": t,
|
|
671
637
|
...a({
|
|
672
638
|
className: n,
|
|
673
639
|
style: r,
|
|
674
|
-
styles:
|
|
640
|
+
styles: m.props(i[s], G.stepper)
|
|
675
641
|
}),
|
|
676
642
|
children: e
|
|
677
643
|
});
|
|
678
644
|
}
|
|
679
|
-
function
|
|
680
|
-
let i =
|
|
645
|
+
function et({ className: e, style: t, xstyle: n, ...r }) {
|
|
646
|
+
let i = le(), o = /* @__PURE__ */ y(D, {
|
|
681
647
|
...r,
|
|
682
648
|
...a({
|
|
683
649
|
className: e,
|
|
684
650
|
style: t,
|
|
685
|
-
styles:
|
|
651
|
+
styles: m.props(G.slider, n)
|
|
686
652
|
})
|
|
687
653
|
});
|
|
688
|
-
return i === null ? /* @__PURE__ */ y(
|
|
654
|
+
return i === null ? /* @__PURE__ */ y(ae, {
|
|
689
655
|
className: "xjp7ctv",
|
|
690
656
|
children: o
|
|
691
657
|
}) : o;
|
|
692
658
|
}
|
|
693
|
-
function
|
|
694
|
-
return /* @__PURE__ */ y(
|
|
659
|
+
function tt({ className: e, style: t, ...n }) {
|
|
660
|
+
return /* @__PURE__ */ y(O, {
|
|
695
661
|
...n,
|
|
696
662
|
...a({
|
|
697
663
|
className: e,
|
|
@@ -700,8 +666,8 @@ function We({ className: e, style: t, ...n }) {
|
|
|
700
666
|
})
|
|
701
667
|
});
|
|
702
668
|
}
|
|
703
|
-
function
|
|
704
|
-
return /* @__PURE__ */ y(
|
|
669
|
+
function nt({ className: e, style: t, ...n }) {
|
|
670
|
+
return /* @__PURE__ */ y(j, {
|
|
705
671
|
...n,
|
|
706
672
|
...a({
|
|
707
673
|
className: e,
|
|
@@ -710,8 +676,8 @@ function Ge({ className: e, style: t, ...n }) {
|
|
|
710
676
|
})
|
|
711
677
|
});
|
|
712
678
|
}
|
|
713
|
-
function
|
|
714
|
-
return /* @__PURE__ */ y(
|
|
679
|
+
function rt({ className: e, style: t, ...n }) {
|
|
680
|
+
return /* @__PURE__ */ y(k, {
|
|
715
681
|
...n,
|
|
716
682
|
...a({
|
|
717
683
|
className: e,
|
|
@@ -720,8 +686,8 @@ function Ke({ className: e, style: t, ...n }) {
|
|
|
720
686
|
})
|
|
721
687
|
});
|
|
722
688
|
}
|
|
723
|
-
function
|
|
724
|
-
return /* @__PURE__ */ y(
|
|
689
|
+
function it({ className: e, style: t, ...n }) {
|
|
690
|
+
return /* @__PURE__ */ y(A, {
|
|
725
691
|
...n,
|
|
726
692
|
...a({
|
|
727
693
|
className: e,
|
|
@@ -730,18 +696,18 @@ function qe({ className: e, style: t, ...n }) {
|
|
|
730
696
|
})
|
|
731
697
|
});
|
|
732
698
|
}
|
|
733
|
-
function
|
|
734
|
-
return /* @__PURE__ */ y(
|
|
699
|
+
function at({ className: e, style: t, ...n }) {
|
|
700
|
+
return /* @__PURE__ */ y(oe, {
|
|
735
701
|
...n,
|
|
736
702
|
...a({
|
|
737
703
|
className: e,
|
|
738
704
|
style: t,
|
|
739
|
-
styles:
|
|
705
|
+
styles: m.props(r.label)
|
|
740
706
|
})
|
|
741
707
|
});
|
|
742
708
|
}
|
|
743
|
-
function
|
|
744
|
-
return /* @__PURE__ */ y(
|
|
709
|
+
function ot({ className: e, style: t, ...n }) {
|
|
710
|
+
return /* @__PURE__ */ y(M, {
|
|
745
711
|
...n,
|
|
746
712
|
...a({
|
|
747
713
|
className: e,
|
|
@@ -750,39 +716,161 @@ function Ye({ className: e, style: t, ...n }) {
|
|
|
750
716
|
})
|
|
751
717
|
});
|
|
752
718
|
}
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
719
|
+
var st = {
|
|
720
|
+
Root: We,
|
|
721
|
+
Legend: Ge
|
|
722
|
+
}, ct = {
|
|
723
|
+
Root: Ke,
|
|
724
|
+
Addon: qe,
|
|
725
|
+
Input: Je
|
|
726
|
+
}, lt = {
|
|
727
|
+
Root: Ye,
|
|
728
|
+
Group: Xe,
|
|
729
|
+
Input: Ze,
|
|
730
|
+
Increment: Qe,
|
|
731
|
+
Decrement: $e
|
|
732
|
+
}, ut = {
|
|
733
|
+
Root: et,
|
|
734
|
+
Label: at,
|
|
735
|
+
Value: ot,
|
|
736
|
+
Control: tt,
|
|
737
|
+
Track: nt,
|
|
738
|
+
Indicator: rt,
|
|
739
|
+
Thumb: it
|
|
740
|
+
}, K = {
|
|
741
|
+
root: {
|
|
742
|
+
k1xSpc: "x78zum5",
|
|
743
|
+
kXwgrk: "xdt5ytf",
|
|
744
|
+
kOIVth: "x1hnptsi",
|
|
745
|
+
k7Eaqz: "xeuugli",
|
|
746
|
+
$$css: !0
|
|
747
|
+
},
|
|
748
|
+
dropzone: {
|
|
749
|
+
k1xSpc: "x78zum5",
|
|
750
|
+
kGNEyG: "x1qjc9v5",
|
|
751
|
+
k8WAf4: "xt970qd",
|
|
752
|
+
kg3NbH: "xnjsko4",
|
|
753
|
+
kVQacm: "xb3r6kr",
|
|
754
|
+
k1RO1p: "x3d0qbt",
|
|
755
|
+
kD6Saa: "xcx2lv2",
|
|
756
|
+
kO07LJ: "x1ugjnuv",
|
|
757
|
+
krA4I7: "x1u8w8hx",
|
|
758
|
+
kXImzq: "x14xc8xn",
|
|
759
|
+
kpj6Ty: "x1nvizq4",
|
|
760
|
+
kfQpEX: "xjy7s37",
|
|
761
|
+
$$css: !0
|
|
762
|
+
},
|
|
763
|
+
trigger: {
|
|
764
|
+
kmuXW: "x2lah0s",
|
|
765
|
+
k8WAf4: "xt970qd",
|
|
766
|
+
kMzoRj: "xc342km",
|
|
767
|
+
ke9TFa: "x1lun4ml",
|
|
768
|
+
ksu8eU: "x1y0btm7",
|
|
769
|
+
kVAM5u: "x1ey3b81",
|
|
770
|
+
kWkggS: "x1r7kqkb x1aoer5t xzro3xz",
|
|
771
|
+
kMwMTN: "xbixft x19mxcj1",
|
|
772
|
+
kMv6JI: "x1hz01jw",
|
|
773
|
+
k63SB2: "xj57cvi",
|
|
774
|
+
kGuDYH: "xtqrqnz xwqnu5x",
|
|
775
|
+
kkrTdU: "x1ypdohk x1s07b3s",
|
|
776
|
+
k3XXqK: "x1t137rt",
|
|
777
|
+
$$css: !0
|
|
778
|
+
}
|
|
779
|
+
}, dt = {
|
|
780
|
+
standard: {
|
|
781
|
+
kg3NbH: "x1atzlso",
|
|
782
|
+
$$css: !0
|
|
783
|
+
},
|
|
784
|
+
compact: {
|
|
785
|
+
kg3NbH: "xbsbsya",
|
|
786
|
+
$$css: !0
|
|
787
|
+
}
|
|
788
|
+
}, q = 1024, J = [
|
|
789
|
+
"bytes",
|
|
790
|
+
"KiB",
|
|
791
|
+
"MiB",
|
|
792
|
+
"GiB"
|
|
793
|
+
];
|
|
794
|
+
function ft(e) {
|
|
795
|
+
let t = Math.min(J.length - 1, Math.floor(Math.log(Math.max(e, 1)) / Math.log(q))), n = e / q ** t;
|
|
796
|
+
return t === 0 ? e === 1 ? "1 byte" : `${e} bytes` : `${n.toFixed(1)} ${J[t]}`;
|
|
797
|
+
}
|
|
798
|
+
var pt = {
|
|
799
|
+
"file-type": "is not an accepted type",
|
|
800
|
+
"file-too-large": "is too large",
|
|
801
|
+
"file-too-small": "is too small",
|
|
802
|
+
"too-many-files": "is more than this field takes"
|
|
803
|
+
};
|
|
804
|
+
function mt({ density: t = "standard", xstyle: i, multiple: a = !1, onValueChange: o, onReject: c, ...l }) {
|
|
805
|
+
let [u, d] = te([]);
|
|
806
|
+
return /* @__PURE__ */ b(N, {
|
|
807
|
+
...l,
|
|
808
|
+
multiple: a,
|
|
809
|
+
onValueChange: (e, t) => {
|
|
810
|
+
d(t.rejected), o?.(e, t);
|
|
811
|
+
},
|
|
812
|
+
onReject: (e, t) => {
|
|
813
|
+
d(e), c?.(e, t);
|
|
814
|
+
},
|
|
815
|
+
...m.props(K.root, i),
|
|
816
|
+
children: [
|
|
817
|
+
/* @__PURE__ */ b(P, {
|
|
818
|
+
...m.props(r.base, r.field, r.singleLineField, n[t], e[t], K.dropzone),
|
|
819
|
+
children: [/* @__PURE__ */ y(R, {
|
|
820
|
+
...m.props(K.trigger, dt[t]),
|
|
821
|
+
children: a ? "Choose files" : "Choose a file"
|
|
822
|
+
}), /* @__PURE__ */ y("span", {
|
|
823
|
+
className: "xamitd3 xeuugli x5g2kb4 x153jb6y xb3r6kr xlyipyv xuxw1ft",
|
|
824
|
+
children: a ? "or drop files here" : "or drop a file here"
|
|
825
|
+
})]
|
|
826
|
+
}),
|
|
827
|
+
/* @__PURE__ */ y(L, {
|
|
828
|
+
className: "x78zum5 xdt5ytf xunmzkg xeuugli xjl7jj",
|
|
829
|
+
children: /* @__PURE__ */ y(F, { render: (e, { file: t }) => /* @__PURE__ */ b("div", {
|
|
830
|
+
...e,
|
|
831
|
+
className: "x78zum5 x6s0dn4 x1hnptsi xeuugli xyibt8p xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 x1hz01jw xtqrqnz x1778rvt x1t137rt x13qnu6 x9v5kkp x19rmrnh x13iak60",
|
|
832
|
+
children: [
|
|
833
|
+
/* @__PURE__ */ y(re, {
|
|
834
|
+
size: 16,
|
|
835
|
+
"aria-hidden": !0,
|
|
836
|
+
className: "x2lah0s x153jb6y"
|
|
837
|
+
}),
|
|
838
|
+
/* @__PURE__ */ y("span", {
|
|
839
|
+
className: "x12lumcd xeuugli xb3r6kr xlyipyv xuxw1ft",
|
|
840
|
+
children: t.name
|
|
841
|
+
}),
|
|
842
|
+
" ",
|
|
843
|
+
/* @__PURE__ */ y("span", {
|
|
844
|
+
className: "x2lah0s x153jb6y xy8obcc xss6m8b",
|
|
845
|
+
children: ft(t.size)
|
|
846
|
+
}),
|
|
847
|
+
/* @__PURE__ */ y(I, {
|
|
848
|
+
render: /* @__PURE__ */ y(s, {
|
|
849
|
+
"aria-label": `Remove ${t.name}`,
|
|
850
|
+
density: "compact"
|
|
851
|
+
}),
|
|
852
|
+
children: /* @__PURE__ */ y(C, {
|
|
853
|
+
size: 14,
|
|
854
|
+
"aria-hidden": !0
|
|
855
|
+
})
|
|
856
|
+
})
|
|
857
|
+
]
|
|
858
|
+
}) })
|
|
859
|
+
}),
|
|
860
|
+
u.length > 0 && /* @__PURE__ */ y("ul", {
|
|
861
|
+
className: "x1ghz6dp x1717udv xe8uvvx xr5kp14 x1hz01jw xy8obcc xas2l8k xj0a0fe",
|
|
862
|
+
children: u.map(({ file: e, reasons: t }) => /* @__PURE__ */ b("li", { children: [
|
|
863
|
+
e.name,
|
|
864
|
+
" ",
|
|
865
|
+
t.map((e) => pt[e] ?? e).join(" and "),
|
|
866
|
+
"."
|
|
867
|
+
] }, `${e.name}-${e.size}`))
|
|
868
|
+
})
|
|
869
|
+
]
|
|
762
870
|
});
|
|
763
871
|
}
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
Legend: Pe
|
|
767
|
-
}, Qe = {
|
|
768
|
-
Root: Fe,
|
|
769
|
-
Addon: Ie,
|
|
770
|
-
Input: Le
|
|
771
|
-
}, $e = {
|
|
772
|
-
Root: Re,
|
|
773
|
-
Group: ze,
|
|
774
|
-
Input: Be,
|
|
775
|
-
Increment: Ve,
|
|
776
|
-
Decrement: He
|
|
777
|
-
}, et = {
|
|
778
|
-
Root: Ue,
|
|
779
|
-
Label: Je,
|
|
780
|
-
Value: Ye,
|
|
781
|
-
Control: We,
|
|
782
|
-
Track: Ge,
|
|
783
|
-
Indicator: Ke,
|
|
784
|
-
Thumb: qe
|
|
785
|
-
}, Y = {
|
|
872
|
+
// packages/forms/src/form-actions.tsx
|
|
873
|
+
var Y = {
|
|
786
874
|
root: {
|
|
787
875
|
k1xSpc: "x78zum5",
|
|
788
876
|
kwnvtZ: "x1a02dak",
|
|
@@ -798,7 +886,7 @@ var Ze = {
|
|
|
798
886
|
kLZC3w: "xhjagg4",
|
|
799
887
|
$$css: !0
|
|
800
888
|
}
|
|
801
|
-
},
|
|
889
|
+
}, ht = {
|
|
802
890
|
start: {
|
|
803
891
|
kjj79g: "x1nhvcw1",
|
|
804
892
|
$$css: !0
|
|
@@ -808,9 +896,9 @@ var Ze = {
|
|
|
808
896
|
$$css: !0
|
|
809
897
|
}
|
|
810
898
|
};
|
|
811
|
-
function
|
|
899
|
+
function gt({ children: e, align: t = "end", hasSeparator: n = !1, xstyle: r }) {
|
|
812
900
|
return /* @__PURE__ */ y("div", {
|
|
813
|
-
...
|
|
901
|
+
...m.props(Y.root, ht[t], n && Y.separated, r),
|
|
814
902
|
children: e
|
|
815
903
|
});
|
|
816
904
|
}
|
|
@@ -821,7 +909,7 @@ function X({ status: e, message: t }) {
|
|
|
821
909
|
message: t
|
|
822
910
|
};
|
|
823
911
|
}
|
|
824
|
-
var
|
|
912
|
+
var _t = ne({
|
|
825
913
|
name: "form-status",
|
|
826
914
|
options: {
|
|
827
915
|
status: "string",
|
|
@@ -833,108 +921,108 @@ var rt = P({
|
|
|
833
921
|
api: () => ({}),
|
|
834
922
|
slots: (e) => ({ root: e({}) }),
|
|
835
923
|
agent: { actions: [] }
|
|
836
|
-
}),
|
|
924
|
+
}), vt = ee(_t, { root: "span" }), yt = {
|
|
837
925
|
pending: "warning",
|
|
838
926
|
error: "negative",
|
|
839
927
|
success: "positive"
|
|
840
928
|
};
|
|
841
|
-
function
|
|
842
|
-
return /* @__PURE__ */ y(
|
|
929
|
+
function bt({ status: e, message: t }) {
|
|
930
|
+
return /* @__PURE__ */ y(vt.Root, {
|
|
843
931
|
status: e,
|
|
844
932
|
message: t,
|
|
845
933
|
role: e === "error" ? "alert" : "status",
|
|
846
|
-
render: /* @__PURE__ */ y(
|
|
934
|
+
render: /* @__PURE__ */ y(d, { tone: yt[e] }),
|
|
847
935
|
children: t
|
|
848
936
|
});
|
|
849
937
|
}
|
|
850
938
|
// packages/forms/src/select.tsx
|
|
851
|
-
var
|
|
852
|
-
outline:
|
|
853
|
-
ghost:
|
|
939
|
+
var xt = {
|
|
940
|
+
outline: B.outlined,
|
|
941
|
+
ghost: B.ghost
|
|
854
942
|
};
|
|
855
|
-
function
|
|
856
|
-
return e.multiple, /* @__PURE__ */ y(
|
|
943
|
+
function St(e) {
|
|
944
|
+
return e.multiple, /* @__PURE__ */ y(z.Select, { ...e });
|
|
857
945
|
}
|
|
858
|
-
function
|
|
859
|
-
return /* @__PURE__ */ y(
|
|
946
|
+
function Ct({ variant: e = "outline", density: t = "standard", className: o, style: s, xstyle: c, ...l }) {
|
|
947
|
+
return /* @__PURE__ */ y(z.SelectTrigger, {
|
|
860
948
|
...l,
|
|
861
949
|
...a({
|
|
862
950
|
className: o,
|
|
863
951
|
style: s,
|
|
864
|
-
styles:
|
|
952
|
+
styles: m.props(r.base, B.trigger, xt[e], n[t], i[t], c)
|
|
865
953
|
})
|
|
866
954
|
});
|
|
867
955
|
}
|
|
868
|
-
function
|
|
869
|
-
return /* @__PURE__ */ y(
|
|
956
|
+
function wt({ className: e, style: t, xstyle: n, ...r }) {
|
|
957
|
+
return /* @__PURE__ */ y(z.SelectValue, {
|
|
870
958
|
...r,
|
|
871
959
|
...a({
|
|
872
960
|
className: e,
|
|
873
961
|
style: t,
|
|
874
|
-
styles:
|
|
962
|
+
styles: m.props(B.value, n)
|
|
875
963
|
})
|
|
876
964
|
});
|
|
877
965
|
}
|
|
878
|
-
function
|
|
966
|
+
function Tt(e) {
|
|
879
967
|
return /* @__PURE__ */ y("span", {
|
|
880
968
|
"aria-hidden": !0,
|
|
881
|
-
...h(
|
|
969
|
+
...h(m.props(B.icon), e)
|
|
882
970
|
});
|
|
883
971
|
}
|
|
884
|
-
function
|
|
885
|
-
return /* @__PURE__ */ y(
|
|
972
|
+
function Et({ xstyle: e, className: t, style: n, sideOffset: r = 4, ...i }) {
|
|
973
|
+
return /* @__PURE__ */ y(z.SelectContent, {
|
|
886
974
|
...i,
|
|
887
975
|
sideOffset: r,
|
|
888
976
|
...a({
|
|
889
977
|
className: t,
|
|
890
978
|
style: n,
|
|
891
|
-
styles:
|
|
979
|
+
styles: m.props(B.popup, B.positioner, e)
|
|
892
980
|
})
|
|
893
981
|
});
|
|
894
982
|
}
|
|
895
|
-
function
|
|
896
|
-
return /* @__PURE__ */ y(
|
|
983
|
+
function Dt({ className: e, style: t, ...n }) {
|
|
984
|
+
return /* @__PURE__ */ y(z.SelectItem, {
|
|
897
985
|
...n,
|
|
898
986
|
...a({
|
|
899
987
|
className: e,
|
|
900
988
|
style: t,
|
|
901
|
-
styles:
|
|
989
|
+
styles: m.props(B.option)
|
|
902
990
|
})
|
|
903
991
|
});
|
|
904
992
|
}
|
|
905
|
-
function
|
|
906
|
-
return /* @__PURE__ */ y(
|
|
993
|
+
function Ot({ className: e, style: t, ...n }) {
|
|
994
|
+
return /* @__PURE__ */ y(z.SelectItemText, {
|
|
907
995
|
...n,
|
|
908
996
|
...a({
|
|
909
997
|
className: e,
|
|
910
998
|
style: t,
|
|
911
|
-
styles:
|
|
999
|
+
styles: m.props(B.optionText)
|
|
912
1000
|
})
|
|
913
1001
|
});
|
|
914
1002
|
}
|
|
915
|
-
function
|
|
916
|
-
return /* @__PURE__ */ y(
|
|
1003
|
+
function kt({ className: e, style: t, ...n }) {
|
|
1004
|
+
return /* @__PURE__ */ y(z.SelectItemIndicator, {
|
|
917
1005
|
...n,
|
|
918
1006
|
...a({
|
|
919
1007
|
className: e,
|
|
920
1008
|
style: t,
|
|
921
|
-
styles:
|
|
1009
|
+
styles: m.props(B.icon)
|
|
922
1010
|
})
|
|
923
1011
|
});
|
|
924
1012
|
}
|
|
925
1013
|
var Z = {
|
|
926
|
-
Root:
|
|
927
|
-
Trigger:
|
|
928
|
-
Value:
|
|
929
|
-
Icon:
|
|
930
|
-
Popup:
|
|
931
|
-
List:
|
|
932
|
-
Item:
|
|
933
|
-
ItemText:
|
|
934
|
-
ItemIndicator:
|
|
1014
|
+
Root: St,
|
|
1015
|
+
Trigger: Ct,
|
|
1016
|
+
Value: wt,
|
|
1017
|
+
Icon: Tt,
|
|
1018
|
+
Popup: Et,
|
|
1019
|
+
List: z.SelectList,
|
|
1020
|
+
Item: Dt,
|
|
1021
|
+
ItemText: Ot,
|
|
1022
|
+
ItemIndicator: kt
|
|
935
1023
|
};
|
|
936
1024
|
// packages/forms/src/select-control.tsx
|
|
937
|
-
function
|
|
1025
|
+
function At({ label: e, items: t, placeholder: n, align: r = "start", value: i, readOnly: a, onValueChange: o, disabled: s, id: c, name: l, form: u, required: d, autoComplete: f, ...p }) {
|
|
938
1026
|
let m = a === !0 ? {
|
|
939
1027
|
value: i,
|
|
940
1028
|
readOnly: !0
|
|
@@ -1066,6 +1154,7 @@ var Q = {
|
|
|
1066
1154
|
k1xSpc: "x3nfvp2",
|
|
1067
1155
|
kGNEyG: "x6s0dn4",
|
|
1068
1156
|
kwnvtZ: "x1a02dak",
|
|
1157
|
+
kzqmXN: "xeq5yr9",
|
|
1069
1158
|
k7Eaqz: "xeuugli",
|
|
1070
1159
|
ks0D6T: "x193iq5w",
|
|
1071
1160
|
kB7OPa: "x9f619",
|
|
@@ -1080,11 +1169,16 @@ var Q = {
|
|
|
1080
1169
|
kCfx3h: "x16yzcw2",
|
|
1081
1170
|
kaFHyV: "x1it17vb",
|
|
1082
1171
|
$$css: !0
|
|
1172
|
+
},
|
|
1173
|
+
segments: {
|
|
1174
|
+
kVAEAm: "x1n2onr6",
|
|
1175
|
+
kHBbk8: "xc8icb0",
|
|
1176
|
+
$$css: !0
|
|
1083
1177
|
}
|
|
1084
1178
|
};
|
|
1085
|
-
function
|
|
1179
|
+
function jt({ className: e, style: t, xstyle: n, indeterminate: r = !1, checked: i, defaultChecked: o, onCheckedChange: s, ...c }) {
|
|
1086
1180
|
let l = r ? "indeterminate" : i;
|
|
1087
|
-
return /* @__PURE__ */ y(
|
|
1181
|
+
return /* @__PURE__ */ y(ge, {
|
|
1088
1182
|
...c,
|
|
1089
1183
|
...l !== void 0 && { checked: l },
|
|
1090
1184
|
...l === void 0 && o !== void 0 && { defaultChecked: o },
|
|
@@ -1092,12 +1186,12 @@ function _t({ className: e, style: t, xstyle: n, indeterminate: r = !1, checked:
|
|
|
1092
1186
|
...a({
|
|
1093
1187
|
className: e,
|
|
1094
1188
|
style: t,
|
|
1095
|
-
styles:
|
|
1189
|
+
styles: m.props(Q.choice, n)
|
|
1096
1190
|
})
|
|
1097
1191
|
});
|
|
1098
1192
|
}
|
|
1099
|
-
function
|
|
1100
|
-
return /* @__PURE__ */ y(
|
|
1193
|
+
function Mt({ children: e, className: t, style: n, ...r }) {
|
|
1194
|
+
return /* @__PURE__ */ y(_e, {
|
|
1101
1195
|
...r,
|
|
1102
1196
|
...a({
|
|
1103
1197
|
className: t,
|
|
@@ -1110,7 +1204,7 @@ function vt({ children: e, className: t, style: n, ...r }) {
|
|
|
1110
1204
|
children: e
|
|
1111
1205
|
});
|
|
1112
1206
|
}
|
|
1113
|
-
function
|
|
1207
|
+
function Nt({ className: e, style: t, xstyle: n, onValueChange: r, ...i }) {
|
|
1114
1208
|
return /* @__PURE__ */ y(E, {
|
|
1115
1209
|
...i,
|
|
1116
1210
|
onValueChange: (e, t) => {
|
|
@@ -1119,7 +1213,7 @@ function yt({ className: e, style: t, xstyle: n, onValueChange: r, ...i }) {
|
|
|
1119
1213
|
...a({
|
|
1120
1214
|
className: e,
|
|
1121
1215
|
style: t,
|
|
1122
|
-
styles:
|
|
1216
|
+
styles: m.props(Q.group, n)
|
|
1123
1217
|
})
|
|
1124
1218
|
});
|
|
1125
1219
|
}
|
|
@@ -1129,12 +1223,12 @@ function $({ className: e, style: t, xstyle: n, ...r }) {
|
|
|
1129
1223
|
...a({
|
|
1130
1224
|
className: e,
|
|
1131
1225
|
style: t,
|
|
1132
|
-
styles:
|
|
1226
|
+
styles: m.props(Q.choice, Q.radio, n)
|
|
1133
1227
|
})
|
|
1134
1228
|
});
|
|
1135
1229
|
}
|
|
1136
|
-
function
|
|
1137
|
-
return /* @__PURE__ */ y(
|
|
1230
|
+
function Pt({ className: e, style: t, ...n }) {
|
|
1231
|
+
return /* @__PURE__ */ y(ie, {
|
|
1138
1232
|
...n,
|
|
1139
1233
|
...a({
|
|
1140
1234
|
className: e,
|
|
@@ -1143,18 +1237,18 @@ function bt({ className: e, style: t, ...n }) {
|
|
|
1143
1237
|
})
|
|
1144
1238
|
});
|
|
1145
1239
|
}
|
|
1146
|
-
function
|
|
1147
|
-
return /* @__PURE__ */ y(
|
|
1240
|
+
function Ft({ className: e, style: t, xstyle: n, ...r }) {
|
|
1241
|
+
return /* @__PURE__ */ y(xe, {
|
|
1148
1242
|
...r,
|
|
1149
1243
|
...a({
|
|
1150
1244
|
className: e,
|
|
1151
1245
|
style: t,
|
|
1152
|
-
styles:
|
|
1246
|
+
styles: m.props(Q.switch, n)
|
|
1153
1247
|
})
|
|
1154
1248
|
});
|
|
1155
1249
|
}
|
|
1156
|
-
function
|
|
1157
|
-
return /* @__PURE__ */ y(
|
|
1250
|
+
function It({ className: e, style: t, ...n }) {
|
|
1251
|
+
return /* @__PURE__ */ y(Se, {
|
|
1158
1252
|
...n,
|
|
1159
1253
|
...a({
|
|
1160
1254
|
className: e,
|
|
@@ -1163,20 +1257,20 @@ function St({ className: e, style: t, ...n }) {
|
|
|
1163
1257
|
})
|
|
1164
1258
|
});
|
|
1165
1259
|
}
|
|
1166
|
-
function
|
|
1167
|
-
return /* @__PURE__ */ y(
|
|
1260
|
+
function Lt({ className: e, style: t, xstyle: n, value: r, defaultValue: i, ...o }) {
|
|
1261
|
+
return /* @__PURE__ */ y(we, {
|
|
1168
1262
|
...o,
|
|
1169
1263
|
...r !== void 0 && { value: [...r] },
|
|
1170
1264
|
...i !== void 0 && { defaultValue: [...i] },
|
|
1171
1265
|
...a({
|
|
1172
1266
|
className: e,
|
|
1173
1267
|
style: t,
|
|
1174
|
-
styles:
|
|
1268
|
+
styles: m.props(Q.toggles, n)
|
|
1175
1269
|
})
|
|
1176
1270
|
});
|
|
1177
1271
|
}
|
|
1178
|
-
function
|
|
1179
|
-
return /* @__PURE__ */ y(
|
|
1272
|
+
function Rt({ className: e, style: t, ...n }) {
|
|
1273
|
+
return /* @__PURE__ */ y(Ce, {
|
|
1180
1274
|
...n,
|
|
1181
1275
|
...a({
|
|
1182
1276
|
className: e,
|
|
@@ -1185,22 +1279,49 @@ function wt({ className: e, style: t, ...n }) {
|
|
|
1185
1279
|
})
|
|
1186
1280
|
});
|
|
1187
1281
|
}
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1282
|
+
function zt({ className: e, style: t, xstyle: n, children: r, onValueChange: i, ...o }) {
|
|
1283
|
+
return /* @__PURE__ */ b(ve, {
|
|
1284
|
+
...o,
|
|
1285
|
+
onValueChange: (e, t) => {
|
|
1286
|
+
e !== null && i?.(e, t);
|
|
1287
|
+
},
|
|
1288
|
+
...a({
|
|
1289
|
+
className: e,
|
|
1290
|
+
style: t,
|
|
1291
|
+
styles: m.props(Q.toggles, Q.segments, n)
|
|
1292
|
+
}),
|
|
1293
|
+
children: [/* @__PURE__ */ y(ye, { className: "x10l6tqk x8knxv4 x13vifvy xu96u03 x1u1fgkt xg7szsh x1eza64o x1ok0vyi x1r7kqkb x47corl x11xpdln x1faw7qm xtitasy xsn8rav x17ba671" }), r]
|
|
1294
|
+
});
|
|
1295
|
+
}
|
|
1296
|
+
function Bt({ className: e, style: t, ...n }) {
|
|
1297
|
+
return /* @__PURE__ */ y(be, {
|
|
1298
|
+
...n,
|
|
1299
|
+
...a({
|
|
1300
|
+
className: e,
|
|
1301
|
+
style: t,
|
|
1302
|
+
styles: { className: "x3nfvp2 x6s0dn4 xl56j7k xunmzkg x16opp91 x1gjsuxi x17tes2r x17oiadl x193iq5w xt970qd x1atzlso xc342km x1ok0vyi x1hz01jw xj57cvi xtqrqnz x1778rvt xj0a0fe x153jb6y xjbqb8w x1ypdohk xhtu79c x1lf1diw x17lu4q8 x1480za7 xwj21n9 x5ezrf1 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1xrsc44" }
|
|
1303
|
+
})
|
|
1304
|
+
});
|
|
1305
|
+
}
|
|
1306
|
+
var Vt = {
|
|
1307
|
+
Root: jt,
|
|
1308
|
+
Indicator: Mt
|
|
1309
|
+
}, Ht = {
|
|
1310
|
+
Root: Nt,
|
|
1193
1311
|
Item: $,
|
|
1194
|
-
Indicator:
|
|
1195
|
-
},
|
|
1196
|
-
Root:
|
|
1197
|
-
Thumb:
|
|
1198
|
-
},
|
|
1199
|
-
Root:
|
|
1200
|
-
Item:
|
|
1312
|
+
Indicator: Pt
|
|
1313
|
+
}, Ut = {
|
|
1314
|
+
Root: Ft,
|
|
1315
|
+
Thumb: It
|
|
1316
|
+
}, Wt = {
|
|
1317
|
+
Root: Lt,
|
|
1318
|
+
Item: Rt
|
|
1319
|
+
}, Gt = {
|
|
1320
|
+
Root: zt,
|
|
1321
|
+
Item: Bt
|
|
1201
1322
|
};
|
|
1202
1323
|
// packages/forms/src/settings-row.tsx
|
|
1203
|
-
function
|
|
1324
|
+
function Kt({ label: e, description: t, controlId: n, isPlaceholder: r = !1, children: i }) {
|
|
1204
1325
|
let a = v(), o = `${n ?? a}-description`;
|
|
1205
1326
|
return /* @__PURE__ */ b("div", {
|
|
1206
1327
|
role: "group",
|
|
@@ -1227,18 +1348,18 @@ function kt({ label: e, description: t, controlId: n, isPlaceholder: r = !1, chi
|
|
|
1227
1348
|
});
|
|
1228
1349
|
}
|
|
1229
1350
|
// packages/forms/src/settings-section.tsx
|
|
1230
|
-
function
|
|
1351
|
+
function qt({ title: e, description: t, children: n }) {
|
|
1231
1352
|
let r = v();
|
|
1232
1353
|
return /* @__PURE__ */ b("section", {
|
|
1233
1354
|
"aria-labelledby": r,
|
|
1234
1355
|
className: "xrvj5dj x1mkdm3x x1n8ia3y xeuugli",
|
|
1235
1356
|
children: [/* @__PURE__ */ b("header", {
|
|
1236
1357
|
className: "xrvj5dj xunmzkg xeuugli",
|
|
1237
|
-
children: [/* @__PURE__ */ y(
|
|
1358
|
+
children: [/* @__PURE__ */ y(f, {
|
|
1238
1359
|
id: r,
|
|
1239
1360
|
children: e
|
|
1240
|
-
}), t !== void 0 && /* @__PURE__ */ y(
|
|
1361
|
+
}), t !== void 0 && /* @__PURE__ */ y(u, { children: t })]
|
|
1241
1362
|
}), /* @__PURE__ */ y("div", { children: n })]
|
|
1242
1363
|
});
|
|
1243
1364
|
}
|
|
1244
|
-
export {
|
|
1365
|
+
export { He as _, Gt as a, At as c, gt as d, mt as f, ut as g, lt as h, Ht as i, Z as l, ct as m, Kt as n, Ut as o, st as p, Vt as r, Wt as s, qt as t, bt as u, Ve as v };
|