@mechane-ai/elements 0.40.0 → 0.42.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 +41 -10
- package/bin/catalog.d.mts +17 -0
- package/bin/mechane-elements-catalog.mjs +60 -0
- package/dist/agent.js +1 -1
- package/dist/ai.js +23 -23
- package/dist/catalog.json +1896 -0
- package/dist/{categorical-values-DnGR_pQx.js → categorical-values-B6lGI7BH.js} +3 -3
- package/dist/{chart-frame-BsyI1Zc8.js → chart-frame-D0enjyj9.js} +1 -1
- package/dist/{chart-input-r4S3-QCT.js → chart-input-D4_Awave.js} +2 -2
- package/dist/{chart-navigation-D7OkLdSx.js → chart-navigation-D4-pdgpj.js} +12 -1
- package/dist/charts/cartesian.js +263 -243
- package/dist/charts/distribution.js +4 -4
- package/dist/charts/graph.js +4 -4
- package/dist/charts/hierarchy.js +4 -4
- package/dist/charts/matrix.js +4 -4
- package/dist/charts/timeline.js +3 -3
- package/dist/charts.js +2 -2
- package/dist/{code-block-C4K1sM9O.js → code-block-Cpfr7B6a.js} +1 -1
- package/dist/collections.js +475 -354
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +3 -3
- 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-CBDqSvgP.js → content-link-CGeFFb9F.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +89 -12
- package/dist/{forms-I-WMHTkr.js → forms-DeU0Tiv3.js} +6 -2
- package/dist/forms.js +3 -3
- package/dist/index.js +1 -1
- package/dist/layout.js +275 -249
- package/dist/mechane-elements-catalog.mjs +4 -0
- package/dist/navigation.js +2 -2
- package/dist/packages/charts/src/chart-inspection.d.ts +1 -0
- package/dist/packages/charts/src/chart-navigation.d.ts +2 -0
- package/dist/packages/charts/src/chart-surface.d.ts +2 -0
- package/dist/packages/collections/src/collection-controls.d.ts +2 -1
- package/dist/packages/collections/src/data-table.d.ts +12 -8
- package/dist/packages/collections/src/index.d.ts +1 -0
- package/dist/packages/collections/src/table-results.d.ts +26 -0
- package/dist/packages/core/src/actions.d.ts +6 -0
- package/dist/packages/core/src/index.d.ts +1 -1
- package/dist/packages/forms/src/dates/event-month.d.ts +17 -0
- package/dist/packages/forms/src/dates/index.d.ts +2 -0
- package/dist/packages/forms/src/form-status.d.ts +7 -0
- package/dist/packages/forms/src/forms.d.ts +3 -1
- package/dist/packages/forms/src/index.d.ts +2 -0
- package/dist/packages/foundations/src/agent/index.d.ts +2 -2
- package/dist/packages/layout/src/page-context.d.ts +4 -0
- package/dist/packages/navigation/src/index.d.ts +1 -0
- package/dist/packages/navigation/src/route-link.d.ts +2 -0
- package/dist/{pierre-diff-DJ3oOfPX.js → pierre-diff-B3tD3-6z.js} +1 -1
- package/dist/{src-D2OHco8V.js → src-Bk7M67zy.js} +3 -3
- package/dist/{src-DfOAlAd2.js → src-BpvnBWrF.js} +1 -1
- package/dist/{src-CQQvXi7a.js → src-DBNncL7_.js} +70 -50
- package/dist/{src-s3tWwnN4.js → src-DcW_gMX8.js} +178 -168
- package/dist/{src-CNV1ewzb.js → src-gqEebHEa.js} +319 -285
- package/dist/styles2.css +18 -0
- package/package.json +9 -2
- package/recipes/consequential-form.tsx +132 -0
- package/recipes/searchable-collection.tsx +106 -0
- package/recipes/sectioned-report.tsx +58 -0
- package/recipes/tabbed-workspace.tsx +84 -0
- package/skills/extend-elements/SKILL.md +28 -0
- package/skills/use-elements/SKILL.md +36 -0
- package/skills/{elements-presentation/SKILL.md → use-elements/references/reports.md} +0 -6
- package/skills/{elements-workspace/SKILL.md → use-elements/references/workspace.md} +3 -6
|
@@ -1,25 +1,26 @@
|
|
|
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 { S as o, i as s,
|
|
4
|
-
import { r as
|
|
5
|
-
import * as
|
|
6
|
-
import { mergeProps as
|
|
7
|
-
import { createContext as
|
|
8
|
-
import { jsx as
|
|
9
|
-
import { Check as
|
|
10
|
-
import * as
|
|
11
|
-
import { Radio as
|
|
12
|
-
import { mergeProps as
|
|
13
|
-
import { Field as
|
|
14
|
-
import { InputGroup as
|
|
15
|
-
import { NumberInput as
|
|
16
|
-
import { Slider as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
3
|
+
import { S as o, i as s, o as c, s as l, x as u, y as d } from "./src-DcW_gMX8.js";
|
|
4
|
+
import { r as f } from "./forms-DeU0Tiv3.js";
|
|
5
|
+
import * as p from "@stylexjs/stylex";
|
|
6
|
+
import { createParts as m, mergeProps as h } from "@ui-sdk/react/primitive";
|
|
7
|
+
import { createContext as g, useContext as _, useId as v } from "react";
|
|
8
|
+
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 * as w from "@ui-sdk/react/combobox";
|
|
11
|
+
import { Radio as T, RadioGroup as E, RadioIndicator as D } from "@ui-sdk/react/radio";
|
|
12
|
+
import { mergeProps as ee } from "@base-ui/react/merge-props";
|
|
13
|
+
import { Field as te, FieldControl as ne, FieldLabel as re, FieldLegend as ie, FieldSet as ae, useFieldControl as oe } from "@ui-sdk/react/field";
|
|
14
|
+
import { InputGroup as se } from "@ui-sdk/react/input";
|
|
15
|
+
import { NumberInput as ce, NumberInputControl as le, NumberInputDecrement as ue, NumberInputGroup as de, NumberInputIncrement as fe } from "@ui-sdk/react/number-input";
|
|
16
|
+
import { Slider as O, SliderControl as k, SliderIndicator as A, SliderThumb as j, SliderTrack as M, SliderValue as N } from "@ui-sdk/react/slider";
|
|
17
|
+
import { definePrimitive as P } from "@ui-sdk/core";
|
|
18
|
+
import * as F from "@ui-sdk/react/select";
|
|
19
|
+
import { Checkbox as I, CheckboxIndicator as L } from "@ui-sdk/react/checkbox";
|
|
20
|
+
import { Switch as R, SwitchThumb as z } from "@ui-sdk/react/switch";
|
|
21
|
+
import { Toggle as B, ToggleGroup as V } from "@ui-sdk/react/toggle";
|
|
21
22
|
// packages/forms/src/selection-styles.ts
|
|
22
|
-
var
|
|
23
|
+
var H = {
|
|
23
24
|
trigger: {
|
|
24
25
|
k1xSpc: "x3nfvp2",
|
|
25
26
|
kGNEyG: "x6s0dn4",
|
|
@@ -121,7 +122,7 @@ var U = {
|
|
|
121
122
|
kHjlTd: "xj0a0fe",
|
|
122
123
|
$$css: !0
|
|
123
124
|
}
|
|
124
|
-
},
|
|
125
|
+
}, U = g("standard"), W = {
|
|
125
126
|
inputGroup: {
|
|
126
127
|
kOIVth: "xunmzkg",
|
|
127
128
|
$$css: !0
|
|
@@ -173,82 +174,82 @@ var U = {
|
|
|
173
174
|
$$css: !0
|
|
174
175
|
}
|
|
175
176
|
};
|
|
176
|
-
function
|
|
177
|
-
return /* @__PURE__ */
|
|
177
|
+
function pe(e) {
|
|
178
|
+
return /* @__PURE__ */ y(U, {
|
|
178
179
|
value: e.density ?? "standard",
|
|
179
|
-
children: (e.multiple, /* @__PURE__ */
|
|
180
|
+
children: (e.multiple, /* @__PURE__ */ y(w.Combobox, { ...e }))
|
|
180
181
|
});
|
|
181
182
|
}
|
|
182
|
-
function
|
|
183
|
-
let i =
|
|
184
|
-
return /* @__PURE__ */
|
|
183
|
+
function me({ xstyle: e, ...n }) {
|
|
184
|
+
let i = _(U);
|
|
185
|
+
return /* @__PURE__ */ y("div", { ...h(p.props(r.group, t[i], W.inputGroup, e), n) });
|
|
185
186
|
}
|
|
186
|
-
function
|
|
187
|
-
return /* @__PURE__ */
|
|
187
|
+
function he({ className: e, style: t, ...n }) {
|
|
188
|
+
return /* @__PURE__ */ y(w.ComboboxLabel, {
|
|
188
189
|
...n,
|
|
189
190
|
...a({
|
|
190
191
|
className: e,
|
|
191
192
|
style: t,
|
|
192
|
-
styles:
|
|
193
|
+
styles: p.props(r.label)
|
|
193
194
|
})
|
|
194
195
|
});
|
|
195
196
|
}
|
|
196
|
-
function
|
|
197
|
-
let s =
|
|
198
|
-
return /* @__PURE__ */
|
|
197
|
+
function ge({ className: t, style: i, ...o }) {
|
|
198
|
+
let s = _(U);
|
|
199
|
+
return /* @__PURE__ */ y(w.ComboboxInput, {
|
|
199
200
|
...o,
|
|
200
201
|
...a({
|
|
201
202
|
className: t,
|
|
202
203
|
style: i,
|
|
203
|
-
styles:
|
|
204
|
+
styles: p.props(r.base, r.field, r.singleLineField, r.textFieldState, n[s], e[s], r.embedded, W.input)
|
|
204
205
|
})
|
|
205
206
|
});
|
|
206
207
|
}
|
|
207
|
-
function
|
|
208
|
+
function _e({ children: e = /* @__PURE__ */ y(S, {
|
|
208
209
|
size: 16,
|
|
209
210
|
"aria-hidden": "true"
|
|
210
211
|
}), "aria-label": t = "Show options", className: n, style: r, ...o }) {
|
|
211
|
-
let s =
|
|
212
|
-
return /* @__PURE__ */
|
|
212
|
+
let s = _(U);
|
|
213
|
+
return /* @__PURE__ */ y(w.ComboboxTrigger, {
|
|
213
214
|
...o,
|
|
214
215
|
"aria-label": t,
|
|
215
216
|
...a({
|
|
216
217
|
className: n,
|
|
217
218
|
style: r,
|
|
218
|
-
styles:
|
|
219
|
+
styles: p.props(i[s], W.action)
|
|
219
220
|
}),
|
|
220
221
|
children: e
|
|
221
222
|
});
|
|
222
223
|
}
|
|
223
|
-
function
|
|
224
|
+
function ve({ children: e = /* @__PURE__ */ y(C, {
|
|
224
225
|
size: 16,
|
|
225
226
|
"aria-hidden": "true"
|
|
226
227
|
}), "aria-label": t = "Clear selection", className: n, style: r, ...o }) {
|
|
227
|
-
let s =
|
|
228
|
-
return /* @__PURE__ */
|
|
228
|
+
let s = _(U);
|
|
229
|
+
return /* @__PURE__ */ y(w.ComboboxClear, {
|
|
229
230
|
...o,
|
|
230
231
|
"aria-label": t,
|
|
231
232
|
...a({
|
|
232
233
|
className: n,
|
|
233
234
|
style: r,
|
|
234
|
-
styles:
|
|
235
|
+
styles: p.props(i[s], W.action)
|
|
235
236
|
}),
|
|
236
237
|
children: e
|
|
237
238
|
});
|
|
238
239
|
}
|
|
239
|
-
function
|
|
240
|
-
return /* @__PURE__ */
|
|
240
|
+
function ye({ className: e, style: t, xstyle: n, sideOffset: r = 4, ...i }) {
|
|
241
|
+
return /* @__PURE__ */ y(w.ComboboxContent, {
|
|
241
242
|
...i,
|
|
242
243
|
sideOffset: r,
|
|
243
244
|
...a({
|
|
244
245
|
className: e,
|
|
245
246
|
style: t,
|
|
246
|
-
styles:
|
|
247
|
+
styles: p.props(H.popup, H.positioner, n)
|
|
247
248
|
})
|
|
248
249
|
});
|
|
249
250
|
}
|
|
250
|
-
function
|
|
251
|
-
return /* @__PURE__ */
|
|
251
|
+
function be({ className: e, style: t, ...n }) {
|
|
252
|
+
return /* @__PURE__ */ y(w.ComboboxList, {
|
|
252
253
|
...n,
|
|
253
254
|
...a({
|
|
254
255
|
className: e,
|
|
@@ -257,32 +258,32 @@ function ge({ className: e, style: t, ...n }) {
|
|
|
257
258
|
})
|
|
258
259
|
});
|
|
259
260
|
}
|
|
260
|
-
function
|
|
261
|
-
return /* @__PURE__ */
|
|
261
|
+
function xe({ className: e, style: t, ...n }) {
|
|
262
|
+
return /* @__PURE__ */ y(w.ComboboxItem, {
|
|
262
263
|
...n,
|
|
263
264
|
...a({
|
|
264
265
|
className: e,
|
|
265
266
|
style: t,
|
|
266
|
-
styles:
|
|
267
|
+
styles: p.props(H.option)
|
|
267
268
|
})
|
|
268
269
|
});
|
|
269
270
|
}
|
|
270
|
-
function
|
|
271
|
+
function Se({ children: e = /* @__PURE__ */ y(x, {
|
|
271
272
|
size: 16,
|
|
272
273
|
"aria-hidden": "true"
|
|
273
274
|
}), className: t, style: n, ...r }) {
|
|
274
|
-
return /* @__PURE__ */
|
|
275
|
+
return /* @__PURE__ */ y(w.ComboboxItemIndicator, {
|
|
275
276
|
...r,
|
|
276
277
|
...a({
|
|
277
278
|
className: t,
|
|
278
279
|
style: n,
|
|
279
|
-
styles:
|
|
280
|
+
styles: p.props(H.icon)
|
|
280
281
|
}),
|
|
281
282
|
children: e
|
|
282
283
|
});
|
|
283
284
|
}
|
|
284
|
-
function
|
|
285
|
-
return /* @__PURE__ */
|
|
285
|
+
function Ce({ className: e, style: t, ...n }) {
|
|
286
|
+
return /* @__PURE__ */ y(w.ComboboxEmpty, {
|
|
286
287
|
...n,
|
|
287
288
|
...a({
|
|
288
289
|
className: e,
|
|
@@ -291,8 +292,8 @@ function ye({ className: e, style: t, ...n }) {
|
|
|
291
292
|
})
|
|
292
293
|
});
|
|
293
294
|
}
|
|
294
|
-
function
|
|
295
|
-
return /* @__PURE__ */
|
|
295
|
+
function we({ className: e, style: t, ...n }) {
|
|
296
|
+
return /* @__PURE__ */ y(w.ComboboxStatus, {
|
|
296
297
|
...n,
|
|
297
298
|
...a({
|
|
298
299
|
className: e,
|
|
@@ -301,8 +302,8 @@ function be({ className: e, style: t, ...n }) {
|
|
|
301
302
|
})
|
|
302
303
|
});
|
|
303
304
|
}
|
|
304
|
-
function
|
|
305
|
-
return /* @__PURE__ */
|
|
305
|
+
function Te({ className: e, style: t, ...n }) {
|
|
306
|
+
return /* @__PURE__ */ y(w.ComboboxGroupLabel, {
|
|
306
307
|
...n,
|
|
307
308
|
...a({
|
|
308
309
|
className: e,
|
|
@@ -311,8 +312,8 @@ function xe({ className: e, style: t, ...n }) {
|
|
|
311
312
|
})
|
|
312
313
|
});
|
|
313
314
|
}
|
|
314
|
-
function
|
|
315
|
-
return /* @__PURE__ */
|
|
315
|
+
function Ee({ className: e, style: t, ...n }) {
|
|
316
|
+
return /* @__PURE__ */ y(w.ComboboxChips, {
|
|
316
317
|
...n,
|
|
317
318
|
...a({
|
|
318
319
|
className: e,
|
|
@@ -321,82 +322,82 @@ function Se({ className: e, style: t, ...n }) {
|
|
|
321
322
|
})
|
|
322
323
|
});
|
|
323
324
|
}
|
|
324
|
-
function
|
|
325
|
-
let o =
|
|
326
|
-
return /* @__PURE__ */
|
|
325
|
+
function De({ className: e, style: n, ...i }) {
|
|
326
|
+
let o = _(U);
|
|
327
|
+
return /* @__PURE__ */ y(w.ComboboxChip, {
|
|
327
328
|
...i,
|
|
328
329
|
...a({
|
|
329
330
|
className: e,
|
|
330
331
|
style: n,
|
|
331
|
-
styles:
|
|
332
|
+
styles: p.props(r.group, t[o], W.chip)
|
|
332
333
|
})
|
|
333
334
|
});
|
|
334
335
|
}
|
|
335
|
-
function
|
|
336
|
+
function Oe({ children: e = /* @__PURE__ */ y(C, {
|
|
336
337
|
size: 16,
|
|
337
338
|
"aria-hidden": "true"
|
|
338
339
|
}), className: t, style: n, ...r }) {
|
|
339
|
-
let o =
|
|
340
|
-
return /* @__PURE__ */
|
|
340
|
+
let o = _(U);
|
|
341
|
+
return /* @__PURE__ */ y(w.ComboboxChipRemove, {
|
|
341
342
|
...r,
|
|
342
343
|
...a({
|
|
343
344
|
className: t,
|
|
344
345
|
style: n,
|
|
345
|
-
styles:
|
|
346
|
+
styles: p.props(i[o], W.action)
|
|
346
347
|
}),
|
|
347
348
|
children: e
|
|
348
349
|
});
|
|
349
350
|
}
|
|
350
|
-
var
|
|
351
|
-
Root:
|
|
352
|
-
Label:
|
|
353
|
-
InputGroup:
|
|
354
|
-
Input:
|
|
355
|
-
Trigger:
|
|
356
|
-
Clear:
|
|
357
|
-
Popup:
|
|
358
|
-
List:
|
|
359
|
-
Item:
|
|
360
|
-
ItemIndicator:
|
|
361
|
-
Empty:
|
|
362
|
-
Status:
|
|
363
|
-
Group:
|
|
364
|
-
GroupLabel:
|
|
365
|
-
Chips:
|
|
366
|
-
Chip:
|
|
367
|
-
ChipRemove:
|
|
368
|
-
Value:
|
|
351
|
+
var ke = {
|
|
352
|
+
Root: pe,
|
|
353
|
+
Label: he,
|
|
354
|
+
InputGroup: me,
|
|
355
|
+
Input: ge,
|
|
356
|
+
Trigger: _e,
|
|
357
|
+
Clear: ve,
|
|
358
|
+
Popup: ye,
|
|
359
|
+
List: be,
|
|
360
|
+
Item: xe,
|
|
361
|
+
ItemIndicator: Se,
|
|
362
|
+
Empty: Ce,
|
|
363
|
+
Status: we,
|
|
364
|
+
Group: w.ComboboxGroup,
|
|
365
|
+
GroupLabel: Te,
|
|
366
|
+
Chips: Ee,
|
|
367
|
+
Chip: De,
|
|
368
|
+
ChipRemove: Oe,
|
|
369
|
+
Value: w.ComboboxValue
|
|
369
370
|
};
|
|
370
371
|
// packages/forms/src/agent-avatar-picker.tsx
|
|
371
|
-
function
|
|
372
|
-
let r =
|
|
373
|
-
return /* @__PURE__ */
|
|
372
|
+
function Ae({ value: e, onValueChange: t, disabled: n = !1 }) {
|
|
373
|
+
let r = v(), i = v();
|
|
374
|
+
return /* @__PURE__ */ b("div", {
|
|
374
375
|
className: "x78zum5 xdt5ytf xaml1ju x1hz01jw xj57cvi xeuugli x193iq5w x16m5f1z",
|
|
375
376
|
children: [
|
|
376
|
-
/* @__PURE__ */
|
|
377
|
+
/* @__PURE__ */ b("div", {
|
|
377
378
|
className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli",
|
|
378
|
-
children: [/* @__PURE__ */
|
|
379
|
+
children: [/* @__PURE__ */ y(d, {
|
|
379
380
|
seed: "preview",
|
|
380
381
|
appearance: e,
|
|
381
382
|
size: "lg"
|
|
382
|
-
}), /* @__PURE__ */
|
|
383
|
+
}), /* @__PURE__ */ b("div", {
|
|
383
384
|
className: "x78zum5 xdt5ytf xeuugli",
|
|
384
|
-
children: [/* @__PURE__ */
|
|
385
|
+
children: [/* @__PURE__ */ y("span", {
|
|
385
386
|
className: "xbixft xtqrqnz xk4h15q x1778rvt xn80e1m",
|
|
386
387
|
children: e.shape
|
|
387
|
-
}), /* @__PURE__ */
|
|
388
|
+
}), /* @__PURE__ */ y("span", {
|
|
388
389
|
className: "x153jb6y xy8obcc xas2l8k xn80e1m",
|
|
389
390
|
children: e.color
|
|
390
391
|
})]
|
|
391
392
|
})]
|
|
392
393
|
}),
|
|
393
|
-
/* @__PURE__ */
|
|
394
|
+
/* @__PURE__ */ b("div", {
|
|
394
395
|
className: "x78zum5 xdt5ytf x1hnptsi xeuugli",
|
|
395
|
-
children: [/* @__PURE__ */
|
|
396
|
+
children: [/* @__PURE__ */ y("span", {
|
|
396
397
|
id: r,
|
|
397
398
|
className: "x153jb6y xy8obcc xas2l8k xk4h15q",
|
|
398
399
|
children: "Shape"
|
|
399
|
-
}), /* @__PURE__ */
|
|
400
|
+
}), /* @__PURE__ */ y(E, {
|
|
400
401
|
"aria-labelledby": r,
|
|
401
402
|
value: e.shape,
|
|
402
403
|
onValueChange: (n) => {
|
|
@@ -407,12 +408,12 @@ function Ee({ value: e, onValueChange: t, disabled: n = !1 }) {
|
|
|
407
408
|
},
|
|
408
409
|
disabled: n,
|
|
409
410
|
className: "xrvj5dj x10yxpwy x15eknm3 xunmzkg",
|
|
410
|
-
children: o.map((t) => /* @__PURE__ */
|
|
411
|
+
children: o.map((t) => /* @__PURE__ */ y(T, {
|
|
411
412
|
value: t,
|
|
412
413
|
"aria-label": t,
|
|
413
414
|
title: t,
|
|
414
415
|
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",
|
|
415
|
-
children: /* @__PURE__ */
|
|
416
|
+
children: /* @__PURE__ */ y(d, {
|
|
416
417
|
seed: t,
|
|
417
418
|
appearance: {
|
|
418
419
|
...e,
|
|
@@ -423,13 +424,13 @@ function Ee({ value: e, onValueChange: t, disabled: n = !1 }) {
|
|
|
423
424
|
}, t))
|
|
424
425
|
})]
|
|
425
426
|
}),
|
|
426
|
-
/* @__PURE__ */
|
|
427
|
+
/* @__PURE__ */ b("div", {
|
|
427
428
|
className: "x78zum5 xdt5ytf x1hnptsi xeuugli",
|
|
428
|
-
children: [/* @__PURE__ */
|
|
429
|
+
children: [/* @__PURE__ */ y("span", {
|
|
429
430
|
id: i,
|
|
430
431
|
className: "x153jb6y xy8obcc xas2l8k xk4h15q",
|
|
431
432
|
children: "Color"
|
|
432
|
-
}), /* @__PURE__ */
|
|
433
|
+
}), /* @__PURE__ */ y(E, {
|
|
433
434
|
"aria-labelledby": i,
|
|
434
435
|
value: e.color,
|
|
435
436
|
onValueChange: (n) => {
|
|
@@ -440,12 +441,12 @@ function Ee({ value: e, onValueChange: t, disabled: n = !1 }) {
|
|
|
440
441
|
},
|
|
441
442
|
disabled: n,
|
|
442
443
|
className: "xrvj5dj x10yxpwy x15eknm3 xunmzkg",
|
|
443
|
-
children:
|
|
444
|
+
children: u.map((t) => /* @__PURE__ */ y(T, {
|
|
444
445
|
value: t,
|
|
445
446
|
"aria-label": t,
|
|
446
447
|
title: t,
|
|
447
448
|
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",
|
|
448
|
-
children: /* @__PURE__ */
|
|
449
|
+
children: /* @__PURE__ */ y(d, {
|
|
449
450
|
seed: t,
|
|
450
451
|
appearance: {
|
|
451
452
|
...e,
|
|
@@ -460,7 +461,7 @@ function Ee({ value: e, onValueChange: t, disabled: n = !1 }) {
|
|
|
460
461
|
});
|
|
461
462
|
}
|
|
462
463
|
// packages/forms/src/form-controls.tsx
|
|
463
|
-
var
|
|
464
|
+
var G = g("standard"), K = g("standard"), q = {
|
|
464
465
|
fieldset: {
|
|
465
466
|
k1xSpc: "x78zum5",
|
|
466
467
|
kXwgrk: "xdt5ytf",
|
|
@@ -551,13 +552,13 @@ var K = m("standard"), q = m("standard"), J = {
|
|
|
551
552
|
kedk6p: "xysgshy",
|
|
552
553
|
$$css: !0
|
|
553
554
|
}
|
|
554
|
-
},
|
|
555
|
+
}, je = {
|
|
555
556
|
standard: { $$css: !0 },
|
|
556
557
|
compact: {
|
|
557
558
|
kg3NbH: "xbsbsya",
|
|
558
559
|
$$css: !0
|
|
559
560
|
}
|
|
560
|
-
},
|
|
561
|
+
}, J = {
|
|
561
562
|
standard: { $$css: !0 },
|
|
562
563
|
compact: {
|
|
563
564
|
kLWn49: "x1p8ddxc x1fj8ryy",
|
|
@@ -565,22 +566,22 @@ var K = m("standard"), q = m("standard"), J = {
|
|
|
565
566
|
kSflKP: "x11rbrfk xhjjd6e",
|
|
566
567
|
$$css: !0
|
|
567
568
|
}
|
|
568
|
-
},
|
|
569
|
-
standard:
|
|
570
|
-
compact:
|
|
569
|
+
}, Me = {
|
|
570
|
+
standard: J.standard,
|
|
571
|
+
compact: J.compact
|
|
571
572
|
};
|
|
572
|
-
function
|
|
573
|
-
return /* @__PURE__ */
|
|
573
|
+
function Ne({ className: e, style: t, xstyle: n, ...r }) {
|
|
574
|
+
return /* @__PURE__ */ y(ae, {
|
|
574
575
|
...r,
|
|
575
576
|
...a({
|
|
576
577
|
className: e,
|
|
577
578
|
style: t,
|
|
578
|
-
styles:
|
|
579
|
+
styles: p.props(q.fieldset, n)
|
|
579
580
|
})
|
|
580
581
|
});
|
|
581
582
|
}
|
|
582
|
-
function
|
|
583
|
-
return /* @__PURE__ */
|
|
583
|
+
function Pe({ className: e, style: t, ...n }) {
|
|
584
|
+
return /* @__PURE__ */ y(ie, {
|
|
584
585
|
...n,
|
|
585
586
|
...a({
|
|
586
587
|
className: e,
|
|
@@ -589,108 +590,108 @@ function Ae({ className: e, style: t, ...n }) {
|
|
|
589
590
|
})
|
|
590
591
|
});
|
|
591
592
|
}
|
|
592
|
-
function
|
|
593
|
-
return /* @__PURE__ */
|
|
593
|
+
function Fe({ density: e = "standard", className: n, style: i, xstyle: o, ...s }) {
|
|
594
|
+
return /* @__PURE__ */ y(G, {
|
|
594
595
|
value: e,
|
|
595
|
-
children: /* @__PURE__ */
|
|
596
|
+
children: /* @__PURE__ */ y(se, {
|
|
596
597
|
...s,
|
|
597
598
|
...a({
|
|
598
599
|
className: n,
|
|
599
600
|
style: i,
|
|
600
|
-
styles:
|
|
601
|
+
styles: p.props(r.group, t[e], o)
|
|
601
602
|
})
|
|
602
603
|
})
|
|
603
604
|
});
|
|
604
605
|
}
|
|
605
|
-
function
|
|
606
|
-
let t =
|
|
607
|
-
return /* @__PURE__ */
|
|
606
|
+
function Ie(e) {
|
|
607
|
+
let t = _(G);
|
|
608
|
+
return /* @__PURE__ */ y("span", { ...ee(p.props(q.addon, je[t]), e) });
|
|
608
609
|
}
|
|
609
|
-
function
|
|
610
|
-
let t =
|
|
611
|
-
return /* @__PURE__ */
|
|
610
|
+
function Le(e) {
|
|
611
|
+
let t = _(G);
|
|
612
|
+
return /* @__PURE__ */ y(f, {
|
|
612
613
|
...e,
|
|
613
614
|
density: t,
|
|
614
615
|
isEmbedded: !0
|
|
615
616
|
});
|
|
616
617
|
}
|
|
617
|
-
function
|
|
618
|
-
return /* @__PURE__ */
|
|
618
|
+
function Re({ density: e = "standard", className: t, style: n, xstyle: i, ...o }) {
|
|
619
|
+
return /* @__PURE__ */ y(K, {
|
|
619
620
|
value: e,
|
|
620
|
-
children: /* @__PURE__ */
|
|
621
|
+
children: /* @__PURE__ */ y(ce, {
|
|
621
622
|
...o,
|
|
622
623
|
...a({
|
|
623
624
|
className: t,
|
|
624
625
|
style: n,
|
|
625
|
-
styles:
|
|
626
|
+
styles: p.props(r.fieldRoot, i)
|
|
626
627
|
})
|
|
627
628
|
})
|
|
628
629
|
});
|
|
629
630
|
}
|
|
630
|
-
function
|
|
631
|
-
let o =
|
|
632
|
-
return /* @__PURE__ */
|
|
631
|
+
function ze({ className: e, style: n, ...i }) {
|
|
632
|
+
let o = _(K);
|
|
633
|
+
return /* @__PURE__ */ y(de, {
|
|
633
634
|
...i,
|
|
634
635
|
...a({
|
|
635
636
|
className: e,
|
|
636
637
|
style: n,
|
|
637
|
-
styles:
|
|
638
|
+
styles: p.props(r.group, t[o])
|
|
638
639
|
})
|
|
639
640
|
});
|
|
640
641
|
}
|
|
641
|
-
function
|
|
642
|
-
let s =
|
|
643
|
-
return /* @__PURE__ */
|
|
642
|
+
function Be({ className: t, style: i, ...o }) {
|
|
643
|
+
let s = _(K);
|
|
644
|
+
return /* @__PURE__ */ y(le, {
|
|
644
645
|
...o,
|
|
645
646
|
...a({
|
|
646
647
|
className: t,
|
|
647
648
|
style: i,
|
|
648
|
-
styles:
|
|
649
|
+
styles: p.props(r.base, r.field, r.singleLineField, r.textFieldState, n[s], e[s], r.embedded, q.numberInput)
|
|
649
650
|
})
|
|
650
651
|
});
|
|
651
652
|
}
|
|
652
|
-
function
|
|
653
|
-
let s =
|
|
654
|
-
return /* @__PURE__ */
|
|
653
|
+
function Ve({ children: e = "+", "aria-label": t = "Increase", className: n, style: r, ...o }) {
|
|
654
|
+
let s = _(K);
|
|
655
|
+
return /* @__PURE__ */ y(fe, {
|
|
655
656
|
...o,
|
|
656
657
|
"aria-label": t,
|
|
657
658
|
...a({
|
|
658
659
|
className: n,
|
|
659
660
|
style: r,
|
|
660
|
-
styles:
|
|
661
|
+
styles: p.props(i[s], q.stepper)
|
|
661
662
|
}),
|
|
662
663
|
children: e
|
|
663
664
|
});
|
|
664
665
|
}
|
|
665
|
-
function
|
|
666
|
-
let s =
|
|
667
|
-
return /* @__PURE__ */
|
|
666
|
+
function He({ children: e = "−", "aria-label": t = "Decrease", className: n, style: r, ...o }) {
|
|
667
|
+
let s = _(K);
|
|
668
|
+
return /* @__PURE__ */ y(ue, {
|
|
668
669
|
...o,
|
|
669
670
|
"aria-label": t,
|
|
670
671
|
...a({
|
|
671
672
|
className: n,
|
|
672
673
|
style: r,
|
|
673
|
-
styles:
|
|
674
|
+
styles: p.props(i[s], q.stepper)
|
|
674
675
|
}),
|
|
675
676
|
children: e
|
|
676
677
|
});
|
|
677
678
|
}
|
|
678
|
-
function
|
|
679
|
-
let i =
|
|
679
|
+
function Ue({ className: e, style: t, xstyle: n, ...r }) {
|
|
680
|
+
let i = oe(), o = /* @__PURE__ */ y(O, {
|
|
680
681
|
...r,
|
|
681
682
|
...a({
|
|
682
683
|
className: e,
|
|
683
684
|
style: t,
|
|
684
|
-
styles:
|
|
685
|
+
styles: p.props(q.slider, n)
|
|
685
686
|
})
|
|
686
687
|
});
|
|
687
|
-
return i === null ? /* @__PURE__ */
|
|
688
|
+
return i === null ? /* @__PURE__ */ y(te, {
|
|
688
689
|
className: "xjp7ctv",
|
|
689
690
|
children: o
|
|
690
691
|
}) : o;
|
|
691
692
|
}
|
|
692
|
-
function
|
|
693
|
-
return /* @__PURE__ */
|
|
693
|
+
function We({ className: e, style: t, ...n }) {
|
|
694
|
+
return /* @__PURE__ */ y(k, {
|
|
694
695
|
...n,
|
|
695
696
|
...a({
|
|
696
697
|
className: e,
|
|
@@ -699,8 +700,8 @@ function Be({ className: e, style: t, ...n }) {
|
|
|
699
700
|
})
|
|
700
701
|
});
|
|
701
702
|
}
|
|
702
|
-
function
|
|
703
|
-
return /* @__PURE__ */
|
|
703
|
+
function Ge({ className: e, style: t, ...n }) {
|
|
704
|
+
return /* @__PURE__ */ y(M, {
|
|
704
705
|
...n,
|
|
705
706
|
...a({
|
|
706
707
|
className: e,
|
|
@@ -709,8 +710,8 @@ function Ve({ className: e, style: t, ...n }) {
|
|
|
709
710
|
})
|
|
710
711
|
});
|
|
711
712
|
}
|
|
712
|
-
function
|
|
713
|
-
return /* @__PURE__ */
|
|
713
|
+
function Ke({ className: e, style: t, ...n }) {
|
|
714
|
+
return /* @__PURE__ */ y(A, {
|
|
714
715
|
...n,
|
|
715
716
|
...a({
|
|
716
717
|
className: e,
|
|
@@ -719,8 +720,8 @@ function He({ className: e, style: t, ...n }) {
|
|
|
719
720
|
})
|
|
720
721
|
});
|
|
721
722
|
}
|
|
722
|
-
function
|
|
723
|
-
return /* @__PURE__ */
|
|
723
|
+
function qe({ className: e, style: t, ...n }) {
|
|
724
|
+
return /* @__PURE__ */ y(j, {
|
|
724
725
|
...n,
|
|
725
726
|
...a({
|
|
726
727
|
className: e,
|
|
@@ -729,18 +730,18 @@ function Ue({ className: e, style: t, ...n }) {
|
|
|
729
730
|
})
|
|
730
731
|
});
|
|
731
732
|
}
|
|
732
|
-
function
|
|
733
|
-
return /* @__PURE__ */
|
|
733
|
+
function Je({ className: e, style: t, ...n }) {
|
|
734
|
+
return /* @__PURE__ */ y(re, {
|
|
734
735
|
...n,
|
|
735
736
|
...a({
|
|
736
737
|
className: e,
|
|
737
738
|
style: t,
|
|
738
|
-
styles:
|
|
739
|
+
styles: p.props(r.label)
|
|
739
740
|
})
|
|
740
741
|
});
|
|
741
742
|
}
|
|
742
|
-
function
|
|
743
|
-
return /* @__PURE__ */
|
|
743
|
+
function Ye({ className: e, style: t, ...n }) {
|
|
744
|
+
return /* @__PURE__ */ y(N, {
|
|
744
745
|
...n,
|
|
745
746
|
...a({
|
|
746
747
|
className: e,
|
|
@@ -749,39 +750,39 @@ function Ge({ className: e, style: t, ...n }) {
|
|
|
749
750
|
})
|
|
750
751
|
});
|
|
751
752
|
}
|
|
752
|
-
function
|
|
753
|
-
return /* @__PURE__ */
|
|
753
|
+
function Xe({ density: t = "standard", className: i, style: o, xstyle: s, ...c }) {
|
|
754
|
+
return /* @__PURE__ */ y(ne, {
|
|
754
755
|
...c,
|
|
755
756
|
type: "file",
|
|
756
757
|
...a({
|
|
757
758
|
className: i,
|
|
758
759
|
style: o,
|
|
759
|
-
styles:
|
|
760
|
+
styles: p.props(r.base, r.field, r.singleLineField, r.textFieldState, n[t], e[t], q.file, Me[t], s)
|
|
760
761
|
})
|
|
761
762
|
});
|
|
762
763
|
}
|
|
763
|
-
var
|
|
764
|
-
Root:
|
|
765
|
-
Legend:
|
|
766
|
-
},
|
|
767
|
-
Root:
|
|
768
|
-
Addon:
|
|
769
|
-
Input:
|
|
770
|
-
},
|
|
771
|
-
Root:
|
|
772
|
-
Group:
|
|
773
|
-
Input:
|
|
774
|
-
Increment:
|
|
775
|
-
Decrement:
|
|
776
|
-
},
|
|
777
|
-
Root:
|
|
778
|
-
Label:
|
|
779
|
-
Value:
|
|
780
|
-
Control:
|
|
781
|
-
Track:
|
|
782
|
-
Indicator:
|
|
783
|
-
Thumb:
|
|
784
|
-
},
|
|
764
|
+
var Ze = {
|
|
765
|
+
Root: Ne,
|
|
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 = {
|
|
785
786
|
root: {
|
|
786
787
|
k1xSpc: "x78zum5",
|
|
787
788
|
kwnvtZ: "x1a02dak",
|
|
@@ -797,7 +798,7 @@ var qe = {
|
|
|
797
798
|
kLZC3w: "xhjagg4",
|
|
798
799
|
$$css: !0
|
|
799
800
|
}
|
|
800
|
-
},
|
|
801
|
+
}, tt = {
|
|
801
802
|
start: {
|
|
802
803
|
kjj79g: "x1nhvcw1",
|
|
803
804
|
$$css: !0
|
|
@@ -807,100 +808,133 @@ var qe = {
|
|
|
807
808
|
$$css: !0
|
|
808
809
|
}
|
|
809
810
|
};
|
|
810
|
-
function
|
|
811
|
-
return /* @__PURE__ */
|
|
812
|
-
...
|
|
811
|
+
function nt({ children: e, align: t = "end", hasSeparator: n = !1, xstyle: r }) {
|
|
812
|
+
return /* @__PURE__ */ y("div", {
|
|
813
|
+
...p.props(Y.root, tt[t], n && Y.separated, r),
|
|
813
814
|
children: e
|
|
814
815
|
});
|
|
815
816
|
}
|
|
817
|
+
// packages/forms/src/form-status.tsx
|
|
818
|
+
function X({ status: e, message: t }) {
|
|
819
|
+
return {
|
|
820
|
+
status: e,
|
|
821
|
+
message: t
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
var rt = P({
|
|
825
|
+
name: "form-status",
|
|
826
|
+
options: {
|
|
827
|
+
status: "string",
|
|
828
|
+
message: "string"
|
|
829
|
+
},
|
|
830
|
+
state: X,
|
|
831
|
+
sync: X,
|
|
832
|
+
controlled: ["status", "message"],
|
|
833
|
+
api: () => ({}),
|
|
834
|
+
slots: (e) => ({ root: e({}) }),
|
|
835
|
+
agent: { actions: [] }
|
|
836
|
+
}), it = m(rt, { root: "span" }), at = {
|
|
837
|
+
pending: "warning",
|
|
838
|
+
error: "negative",
|
|
839
|
+
success: "positive"
|
|
840
|
+
};
|
|
841
|
+
function ot({ status: e, message: t }) {
|
|
842
|
+
return /* @__PURE__ */ y(it.Root, {
|
|
843
|
+
status: e,
|
|
844
|
+
message: t,
|
|
845
|
+
role: e === "error" ? "alert" : "status",
|
|
846
|
+
render: /* @__PURE__ */ y(c, { tone: at[e] }),
|
|
847
|
+
children: t
|
|
848
|
+
});
|
|
849
|
+
}
|
|
816
850
|
// packages/forms/src/select.tsx
|
|
817
|
-
var
|
|
818
|
-
outline:
|
|
819
|
-
ghost:
|
|
851
|
+
var st = {
|
|
852
|
+
outline: H.outlined,
|
|
853
|
+
ghost: H.ghost
|
|
820
854
|
};
|
|
821
|
-
function
|
|
822
|
-
return e.multiple, /* @__PURE__ */
|
|
855
|
+
function ct(e) {
|
|
856
|
+
return e.multiple, /* @__PURE__ */ y(F.Select, { ...e });
|
|
823
857
|
}
|
|
824
|
-
function
|
|
825
|
-
return /* @__PURE__ */
|
|
858
|
+
function lt({ variant: e = "outline", density: t = "standard", className: o, style: s, xstyle: c, ...l }) {
|
|
859
|
+
return /* @__PURE__ */ y(F.SelectTrigger, {
|
|
826
860
|
...l,
|
|
827
861
|
...a({
|
|
828
862
|
className: o,
|
|
829
863
|
style: s,
|
|
830
|
-
styles:
|
|
864
|
+
styles: p.props(r.base, H.trigger, st[e], n[t], i[t], c)
|
|
831
865
|
})
|
|
832
866
|
});
|
|
833
867
|
}
|
|
834
|
-
function
|
|
835
|
-
return /* @__PURE__ */
|
|
868
|
+
function ut({ className: e, style: t, xstyle: n, ...r }) {
|
|
869
|
+
return /* @__PURE__ */ y(F.SelectValue, {
|
|
836
870
|
...r,
|
|
837
871
|
...a({
|
|
838
872
|
className: e,
|
|
839
873
|
style: t,
|
|
840
|
-
styles:
|
|
874
|
+
styles: p.props(H.value, n)
|
|
841
875
|
})
|
|
842
876
|
});
|
|
843
877
|
}
|
|
844
|
-
function
|
|
845
|
-
return /* @__PURE__ */
|
|
878
|
+
function dt(e) {
|
|
879
|
+
return /* @__PURE__ */ y("span", {
|
|
846
880
|
"aria-hidden": !0,
|
|
847
|
-
...p
|
|
881
|
+
...h(p.props(H.icon), e)
|
|
848
882
|
});
|
|
849
883
|
}
|
|
850
|
-
function
|
|
851
|
-
return /* @__PURE__ */
|
|
884
|
+
function ft({ xstyle: e, className: t, style: n, sideOffset: r = 4, ...i }) {
|
|
885
|
+
return /* @__PURE__ */ y(F.SelectContent, {
|
|
852
886
|
...i,
|
|
853
887
|
sideOffset: r,
|
|
854
888
|
...a({
|
|
855
889
|
className: t,
|
|
856
890
|
style: n,
|
|
857
|
-
styles:
|
|
891
|
+
styles: p.props(H.popup, H.positioner, e)
|
|
858
892
|
})
|
|
859
893
|
});
|
|
860
894
|
}
|
|
861
|
-
function
|
|
862
|
-
return /* @__PURE__ */
|
|
895
|
+
function pt({ className: e, style: t, ...n }) {
|
|
896
|
+
return /* @__PURE__ */ y(F.SelectItem, {
|
|
863
897
|
...n,
|
|
864
898
|
...a({
|
|
865
899
|
className: e,
|
|
866
900
|
style: t,
|
|
867
|
-
styles:
|
|
901
|
+
styles: p.props(H.option)
|
|
868
902
|
})
|
|
869
903
|
});
|
|
870
904
|
}
|
|
871
|
-
function
|
|
872
|
-
return /* @__PURE__ */
|
|
905
|
+
function mt({ className: e, style: t, ...n }) {
|
|
906
|
+
return /* @__PURE__ */ y(F.SelectItemText, {
|
|
873
907
|
...n,
|
|
874
908
|
...a({
|
|
875
909
|
className: e,
|
|
876
910
|
style: t,
|
|
877
|
-
styles:
|
|
911
|
+
styles: p.props(H.optionText)
|
|
878
912
|
})
|
|
879
913
|
});
|
|
880
914
|
}
|
|
881
|
-
function
|
|
882
|
-
return /* @__PURE__ */
|
|
915
|
+
function ht({ className: e, style: t, ...n }) {
|
|
916
|
+
return /* @__PURE__ */ y(F.SelectItemIndicator, {
|
|
883
917
|
...n,
|
|
884
918
|
...a({
|
|
885
919
|
className: e,
|
|
886
920
|
style: t,
|
|
887
|
-
styles:
|
|
921
|
+
styles: p.props(H.icon)
|
|
888
922
|
})
|
|
889
923
|
});
|
|
890
924
|
}
|
|
891
925
|
var Z = {
|
|
892
|
-
Root:
|
|
893
|
-
Trigger:
|
|
894
|
-
Value:
|
|
895
|
-
Icon:
|
|
896
|
-
Popup:
|
|
897
|
-
List:
|
|
898
|
-
Item:
|
|
899
|
-
ItemText:
|
|
900
|
-
ItemIndicator:
|
|
926
|
+
Root: ct,
|
|
927
|
+
Trigger: lt,
|
|
928
|
+
Value: ut,
|
|
929
|
+
Icon: dt,
|
|
930
|
+
Popup: ft,
|
|
931
|
+
List: F.SelectList,
|
|
932
|
+
Item: pt,
|
|
933
|
+
ItemText: mt,
|
|
934
|
+
ItemIndicator: ht
|
|
901
935
|
};
|
|
902
936
|
// packages/forms/src/select-control.tsx
|
|
903
|
-
function
|
|
937
|
+
function gt({ 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 }) {
|
|
904
938
|
let m = a === !0 ? {
|
|
905
939
|
value: i,
|
|
906
940
|
readOnly: !0
|
|
@@ -910,7 +944,7 @@ function ct({ label: e, items: t, placeholder: n, align: r = "start", value: i,
|
|
|
910
944
|
e === null || t.some((t) => t.value === e && t.disabled !== !0) ? o?.(e, n) : n.cancel();
|
|
911
945
|
}
|
|
912
946
|
};
|
|
913
|
-
return /* @__PURE__ */
|
|
947
|
+
return /* @__PURE__ */ b(Z.Root, {
|
|
914
948
|
...m,
|
|
915
949
|
items: [...t],
|
|
916
950
|
...l !== void 0 && { name: l },
|
|
@@ -918,21 +952,21 @@ function ct({ label: e, items: t, placeholder: n, align: r = "start", value: i,
|
|
|
918
952
|
required: d ?? !1,
|
|
919
953
|
...f !== void 0 && { autoComplete: f },
|
|
920
954
|
disabled: s ?? !1,
|
|
921
|
-
children: [/* @__PURE__ */
|
|
955
|
+
children: [/* @__PURE__ */ b(Z.Trigger, {
|
|
922
956
|
...p,
|
|
923
957
|
id: c,
|
|
924
958
|
"aria-label": e,
|
|
925
959
|
disabled: s ?? !1,
|
|
926
|
-
children: [/* @__PURE__ */
|
|
960
|
+
children: [/* @__PURE__ */ y(Z.Value, { placeholder: n ?? "" }), /* @__PURE__ */ y(Z.Icon, { children: /* @__PURE__ */ y(S, {
|
|
927
961
|
size: 16,
|
|
928
962
|
"aria-hidden": !0
|
|
929
963
|
}) })]
|
|
930
|
-
}), /* @__PURE__ */
|
|
964
|
+
}), /* @__PURE__ */ y(Z.Popup, {
|
|
931
965
|
align: r,
|
|
932
|
-
children: /* @__PURE__ */
|
|
966
|
+
children: /* @__PURE__ */ y(Z.List, { children: t.map((e) => /* @__PURE__ */ b(Z.Item, {
|
|
933
967
|
value: e.value,
|
|
934
968
|
disabled: e.disabled ?? !1,
|
|
935
|
-
children: [/* @__PURE__ */
|
|
969
|
+
children: [/* @__PURE__ */ y(Z.ItemText, { children: e.label }), /* @__PURE__ */ y(Z.ItemIndicator, { children: /* @__PURE__ */ y(x, {
|
|
936
970
|
size: 16,
|
|
937
971
|
"aria-hidden": !0
|
|
938
972
|
}) })]
|
|
@@ -1048,9 +1082,9 @@ var Q = {
|
|
|
1048
1082
|
$$css: !0
|
|
1049
1083
|
}
|
|
1050
1084
|
};
|
|
1051
|
-
function
|
|
1085
|
+
function _t({ className: e, style: t, xstyle: n, indeterminate: r = !1, checked: i, defaultChecked: o, onCheckedChange: s, ...c }) {
|
|
1052
1086
|
let l = r ? "indeterminate" : i;
|
|
1053
|
-
return /* @__PURE__ */
|
|
1087
|
+
return /* @__PURE__ */ y(I, {
|
|
1054
1088
|
...c,
|
|
1055
1089
|
...l !== void 0 && { checked: l },
|
|
1056
1090
|
...l === void 0 && o !== void 0 && { defaultChecked: o },
|
|
@@ -1058,12 +1092,12 @@ function lt({ className: e, style: t, xstyle: n, indeterminate: r = !1, checked:
|
|
|
1058
1092
|
...a({
|
|
1059
1093
|
className: e,
|
|
1060
1094
|
style: t,
|
|
1061
|
-
styles:
|
|
1095
|
+
styles: p.props(Q.choice, n)
|
|
1062
1096
|
})
|
|
1063
1097
|
});
|
|
1064
1098
|
}
|
|
1065
|
-
function
|
|
1066
|
-
return /* @__PURE__ */
|
|
1099
|
+
function vt({ children: e, className: t, style: n, ...r }) {
|
|
1100
|
+
return /* @__PURE__ */ y(L, {
|
|
1067
1101
|
...r,
|
|
1068
1102
|
...a({
|
|
1069
1103
|
className: t,
|
|
@@ -1076,8 +1110,8 @@ function ut({ children: e, className: t, style: n, ...r }) {
|
|
|
1076
1110
|
children: e
|
|
1077
1111
|
});
|
|
1078
1112
|
}
|
|
1079
|
-
function
|
|
1080
|
-
return /* @__PURE__ */
|
|
1113
|
+
function yt({ className: e, style: t, xstyle: n, onValueChange: r, ...i }) {
|
|
1114
|
+
return /* @__PURE__ */ y(E, {
|
|
1081
1115
|
...i,
|
|
1082
1116
|
onValueChange: (e, t) => {
|
|
1083
1117
|
e !== null && r?.(e, t);
|
|
@@ -1085,22 +1119,22 @@ function dt({ className: e, style: t, xstyle: n, onValueChange: r, ...i }) {
|
|
|
1085
1119
|
...a({
|
|
1086
1120
|
className: e,
|
|
1087
1121
|
style: t,
|
|
1088
|
-
styles:
|
|
1122
|
+
styles: p.props(Q.group, n)
|
|
1089
1123
|
})
|
|
1090
1124
|
});
|
|
1091
1125
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return /* @__PURE__ */
|
|
1126
|
+
function $({ className: e, style: t, xstyle: n, ...r }) {
|
|
1127
|
+
return /* @__PURE__ */ y(T, {
|
|
1094
1128
|
...r,
|
|
1095
1129
|
...a({
|
|
1096
1130
|
className: e,
|
|
1097
1131
|
style: t,
|
|
1098
|
-
styles:
|
|
1132
|
+
styles: p.props(Q.choice, Q.radio, n)
|
|
1099
1133
|
})
|
|
1100
1134
|
});
|
|
1101
1135
|
}
|
|
1102
|
-
function
|
|
1103
|
-
return /* @__PURE__ */
|
|
1136
|
+
function bt({ className: e, style: t, ...n }) {
|
|
1137
|
+
return /* @__PURE__ */ y(D, {
|
|
1104
1138
|
...n,
|
|
1105
1139
|
...a({
|
|
1106
1140
|
className: e,
|
|
@@ -1109,18 +1143,18 @@ function $({ className: e, style: t, ...n }) {
|
|
|
1109
1143
|
})
|
|
1110
1144
|
});
|
|
1111
1145
|
}
|
|
1112
|
-
function
|
|
1113
|
-
return /* @__PURE__ */
|
|
1146
|
+
function xt({ className: e, style: t, xstyle: n, ...r }) {
|
|
1147
|
+
return /* @__PURE__ */ y(R, {
|
|
1114
1148
|
...r,
|
|
1115
1149
|
...a({
|
|
1116
1150
|
className: e,
|
|
1117
1151
|
style: t,
|
|
1118
|
-
styles:
|
|
1152
|
+
styles: p.props(Q.switch, n)
|
|
1119
1153
|
})
|
|
1120
1154
|
});
|
|
1121
1155
|
}
|
|
1122
|
-
function
|
|
1123
|
-
return /* @__PURE__ */
|
|
1156
|
+
function St({ className: e, style: t, ...n }) {
|
|
1157
|
+
return /* @__PURE__ */ y(z, {
|
|
1124
1158
|
...n,
|
|
1125
1159
|
...a({
|
|
1126
1160
|
className: e,
|
|
@@ -1129,20 +1163,20 @@ function mt({ className: e, style: t, ...n }) {
|
|
|
1129
1163
|
})
|
|
1130
1164
|
});
|
|
1131
1165
|
}
|
|
1132
|
-
function
|
|
1133
|
-
return /* @__PURE__ */
|
|
1166
|
+
function Ct({ className: e, style: t, xstyle: n, value: r, defaultValue: i, ...o }) {
|
|
1167
|
+
return /* @__PURE__ */ y(V, {
|
|
1134
1168
|
...o,
|
|
1135
1169
|
...r !== void 0 && { value: [...r] },
|
|
1136
1170
|
...i !== void 0 && { defaultValue: [...i] },
|
|
1137
1171
|
...a({
|
|
1138
1172
|
className: e,
|
|
1139
1173
|
style: t,
|
|
1140
|
-
styles:
|
|
1174
|
+
styles: p.props(Q.toggles, n)
|
|
1141
1175
|
})
|
|
1142
1176
|
});
|
|
1143
1177
|
}
|
|
1144
|
-
function
|
|
1145
|
-
return /* @__PURE__ */
|
|
1178
|
+
function wt({ className: e, style: t, ...n }) {
|
|
1179
|
+
return /* @__PURE__ */ y(B, {
|
|
1146
1180
|
...n,
|
|
1147
1181
|
...a({
|
|
1148
1182
|
className: e,
|
|
@@ -1151,60 +1185,60 @@ function gt({ className: e, style: t, ...n }) {
|
|
|
1151
1185
|
})
|
|
1152
1186
|
});
|
|
1153
1187
|
}
|
|
1154
|
-
var
|
|
1155
|
-
Root:
|
|
1156
|
-
Indicator:
|
|
1157
|
-
},
|
|
1158
|
-
Root:
|
|
1159
|
-
Item:
|
|
1160
|
-
Indicator:
|
|
1161
|
-
},
|
|
1162
|
-
Root:
|
|
1163
|
-
Thumb:
|
|
1164
|
-
},
|
|
1165
|
-
Root:
|
|
1166
|
-
Item:
|
|
1188
|
+
var Tt = {
|
|
1189
|
+
Root: _t,
|
|
1190
|
+
Indicator: vt
|
|
1191
|
+
}, Et = {
|
|
1192
|
+
Root: yt,
|
|
1193
|
+
Item: $,
|
|
1194
|
+
Indicator: bt
|
|
1195
|
+
}, Dt = {
|
|
1196
|
+
Root: xt,
|
|
1197
|
+
Thumb: St
|
|
1198
|
+
}, Ot = {
|
|
1199
|
+
Root: Ct,
|
|
1200
|
+
Item: wt
|
|
1167
1201
|
};
|
|
1168
1202
|
// packages/forms/src/settings-row.tsx
|
|
1169
|
-
function
|
|
1170
|
-
let a =
|
|
1171
|
-
return /* @__PURE__ */
|
|
1203
|
+
function kt({ label: e, description: t, controlId: n, isPlaceholder: r = !1, children: i }) {
|
|
1204
|
+
let a = v(), o = `${n ?? a}-description`;
|
|
1205
|
+
return /* @__PURE__ */ b("div", {
|
|
1172
1206
|
role: "group",
|
|
1173
1207
|
"aria-labelledby": a,
|
|
1174
1208
|
"aria-hidden": r || void 0,
|
|
1175
1209
|
inert: r || void 0,
|
|
1176
1210
|
className: "x12h1iku x180ayaa x78zum5 x1a02dak x6s0dn4 x1qughib xaml1ju x1ydxw8w xso031l x1q0q8m5 x1qndepd x1hz01jw xj57cvi xtqrqnz x1778rvt xbixft",
|
|
1177
|
-
children: [/* @__PURE__ */
|
|
1211
|
+
children: [/* @__PURE__ */ b("div", {
|
|
1178
1212
|
className: "x78zum5 xdt5ytf xunmzkg xeuugli xk30mkq",
|
|
1179
|
-
children: [/* @__PURE__ */
|
|
1213
|
+
children: [/* @__PURE__ */ y("label", {
|
|
1180
1214
|
id: a,
|
|
1181
1215
|
htmlFor: n,
|
|
1182
1216
|
className: "xk4h15q xj0a0fe",
|
|
1183
1217
|
children: e
|
|
1184
|
-
}), t !== void 0 && /* @__PURE__ */
|
|
1218
|
+
}), t !== void 0 && /* @__PURE__ */ y("p", {
|
|
1185
1219
|
id: o,
|
|
1186
1220
|
className: "x1ghz6dp x153jb6y xj0a0fe",
|
|
1187
1221
|
children: t
|
|
1188
1222
|
})]
|
|
1189
|
-
}), /* @__PURE__ */
|
|
1223
|
+
}), /* @__PURE__ */ y("div", {
|
|
1190
1224
|
className: "xrvj5dj x6s0dn4 x1mkdm3x x1so1ns2 x2nl74q xeuugli x193iq5w x2lah0s x18ssw31",
|
|
1191
1225
|
children: i
|
|
1192
1226
|
})]
|
|
1193
1227
|
});
|
|
1194
1228
|
}
|
|
1195
1229
|
// packages/forms/src/settings-section.tsx
|
|
1196
|
-
function
|
|
1197
|
-
let r =
|
|
1198
|
-
return /* @__PURE__ */
|
|
1230
|
+
function At({ title: e, description: t, children: n }) {
|
|
1231
|
+
let r = v();
|
|
1232
|
+
return /* @__PURE__ */ b("section", {
|
|
1199
1233
|
"aria-labelledby": r,
|
|
1200
1234
|
className: "xrvj5dj x1mkdm3x x1n8ia3y xeuugli",
|
|
1201
|
-
children: [/* @__PURE__ */
|
|
1235
|
+
children: [/* @__PURE__ */ b("header", {
|
|
1202
1236
|
className: "xrvj5dj xunmzkg xeuugli",
|
|
1203
|
-
children: [/* @__PURE__ */
|
|
1237
|
+
children: [/* @__PURE__ */ y(l, {
|
|
1204
1238
|
id: r,
|
|
1205
1239
|
children: e
|
|
1206
|
-
}), t !== void 0 && /* @__PURE__ */
|
|
1207
|
-
}), /* @__PURE__ */
|
|
1240
|
+
}), t !== void 0 && /* @__PURE__ */ y(s, { children: t })]
|
|
1241
|
+
}), /* @__PURE__ */ y("div", { children: n })]
|
|
1208
1242
|
});
|
|
1209
1243
|
}
|
|
1210
|
-
export {
|
|
1244
|
+
export { ke as _, Dt as a, Z as c, Ze as d, Xe as f, Ae as g, et as h, Et as i, ot as l, $e as m, kt as n, Ot as o, Qe as p, Tt as r, gt as s, At as t, nt as u };
|