@mechane-ai/elements 0.4.1 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +40 -30
  2. package/dist/ai.js +6 -6
  3. package/dist/assets/stylex.css +92 -0
  4. package/dist/{categorical-values-cMX7Mykq.js → categorical-values-BfAEQUd0.js} +1 -1
  5. package/dist/{chart-input-qnM44oen.js → chart-input--VSrlMl-.js} +1 -1
  6. package/dist/charts/cartesian.js +49 -49
  7. package/dist/charts/distribution.js +1 -1
  8. package/dist/charts/graph.js +1 -1
  9. package/dist/charts/hierarchy.js +2 -2
  10. package/dist/charts/matrix.js +1 -1
  11. package/dist/collections.js +439 -214
  12. package/dist/content/diff.js +13 -11
  13. package/dist/content/markdown.js +151 -80
  14. package/dist/content/tree.js +1 -1
  15. package/dist/csp.js +1 -0
  16. package/dist/feedback.js +1 -1
  17. package/dist/forms.js +1 -1
  18. package/dist/layout.js +210 -136
  19. package/dist/navigation/commands.js +1 -1
  20. package/dist/navigation.js +36 -11
  21. package/dist/packages/collections/src/collection-scroll.d.ts +19 -0
  22. package/dist/packages/collections/src/data-table.d.ts +20 -3
  23. package/dist/packages/collections/src/index.d.ts +3 -1
  24. package/dist/packages/collections/src/use-end-reached.d.ts +9 -0
  25. package/dist/packages/content/src/markdown/index.d.ts +2 -0
  26. package/dist/packages/content/src/markdown/markdown-options.d.ts +2 -0
  27. package/dist/packages/content/src/markdown/markdown-preview.d.ts +5 -0
  28. package/dist/packages/content/src/markdown/markdown.d.ts +4 -1
  29. package/dist/packages/feedback/src/async-region.d.ts +17 -0
  30. package/dist/packages/feedback/src/index.d.ts +2 -0
  31. package/dist/packages/feedback/src/skeleton.d.ts +4 -3
  32. package/dist/packages/forms/src/index.d.ts +2 -0
  33. package/dist/packages/forms/src/settings-section.d.ts +7 -0
  34. package/dist/packages/foundations/src/csp/index.d.ts +2 -0
  35. package/dist/packages/layout/src/app-shell.d.ts +2 -1
  36. package/dist/packages/layout/src/frame.stylex.d.ts +2 -0
  37. package/dist/packages/layout/src/index.d.ts +2 -0
  38. package/dist/packages/layout/src/record-page.d.ts +42 -0
  39. package/dist/packages/layout/src/sidebar.d.ts +1 -0
  40. package/dist/packages/navigation/src/index.d.ts +2 -0
  41. package/dist/packages/navigation/src/page-navigation.d.ts +14 -0
  42. package/dist/{pierre-tree-qZVvI5c1.js → pierre-tree-LY7PGy-7.js} +1 -1
  43. package/dist/src-CbJTK9oP.js +360 -0
  44. package/dist/{src-CvpS9XIR.js → src-CjnbzSgq.js} +353 -336
  45. package/package.json +11 -1
  46. package/dist/src-BfvOOeA3.js +0 -272
@@ -1,24 +1,25 @@
1
1
  import { t as e } from "./style-composition-uYlczSsB.js";
2
- import { mergeProps as t } from "@base-ui/react/merge-props";
3
- import * as n from "@stylexjs/stylex";
4
- import { useId as r } from "react";
5
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
- import { Check as o, ChevronDown as s, X as c } from "lucide-react";
7
- import { Combobox as l } from "@base-ui/react/combobox";
8
- import { Fieldset as u } from "@base-ui/react/fieldset";
9
- import { Input as d } from "@base-ui/react/input";
10
- import { NumberField as f } from "@base-ui/react/number-field";
11
- import { Slider as p } from "@base-ui/react/slider";
12
- import { Field as m } from "@base-ui/react/field";
13
- import { Select as h } from "@base-ui/react/select";
14
- import { Checkbox as g } from "@base-ui/react/checkbox";
15
- import { Radio as _ } from "@base-ui/react/radio";
16
- import { RadioGroup as v } from "@base-ui/react/radio-group";
17
- import { Switch as y } from "@base-ui/react/switch";
2
+ import { i as t, s as n } from "./src-CbYaLvhD.js";
3
+ import { mergeProps as r } from "@base-ui/react/merge-props";
4
+ import * as i from "@stylexjs/stylex";
5
+ import { useId as a } from "react";
6
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
7
+ import { Check as c, ChevronDown as l, X as u } from "lucide-react";
8
+ import { Combobox as d } from "@base-ui/react/combobox";
9
+ import { Fieldset as f } from "@base-ui/react/fieldset";
10
+ import { Input as p } from "@base-ui/react/input";
11
+ import { NumberField as m } from "@base-ui/react/number-field";
12
+ import { Slider as h } from "@base-ui/react/slider";
13
+ import { Field as g } from "@base-ui/react/field";
14
+ import { Select as _ } from "@base-ui/react/select";
15
+ import { Checkbox as v } from "@base-ui/react/checkbox";
16
+ import { Radio as y } from "@base-ui/react/radio";
17
+ import { RadioGroup as b } from "@base-ui/react/radio-group";
18
+ import { Switch as x } from "@base-ui/react/switch";
18
19
  import { Toggle as ee } from "@base-ui/react/toggle";
19
20
  import { ToggleGroup as te } from "@base-ui/react/toggle-group";
20
21
  // packages/forms/src/field-styles.ts
21
- var b = {
22
+ var S = {
22
23
  root: {
23
24
  k1xSpc: "x78zum5",
24
25
  kXwgrk: "xdt5ytf",
@@ -80,7 +81,7 @@ var b = {
80
81
  kLWn49: "x1gj8gu9",
81
82
  $$css: !0
82
83
  }
83
- }, x = {
84
+ }, C = {
84
85
  trigger: {
85
86
  k1xSpc: "x3nfvp2",
86
87
  kB7OPa: "x9f619",
@@ -182,7 +183,7 @@ var b = {
182
183
  kHjlTd: "xj0a0fe",
183
184
  $$css: !0
184
185
  }
185
- }, S = {
186
+ }, w = {
186
187
  inputGroup: {
187
188
  kVAEAm: "x1n2onr6",
188
189
  k1xSpc: "x78zum5",
@@ -207,94 +208,94 @@ var b = {
207
208
  }
208
209
  };
209
210
  function ne(e) {
210
- return /* @__PURE__ */ i(l.Root, { ...e });
211
+ return /* @__PURE__ */ o(d.Root, { ...e });
211
212
  }
212
- function C({ className: t, style: r, xstyle: a, ...o }) {
213
- return /* @__PURE__ */ i(l.InputGroup, {
214
- ...o,
213
+ function T({ className: t, style: n, xstyle: r, ...a }) {
214
+ return /* @__PURE__ */ o(d.InputGroup, {
215
+ ...a,
215
216
  ...e({
216
217
  className: t,
217
- style: r,
218
- styles: n.props(S.inputGroup, a)
218
+ style: n,
219
+ styles: i.props(w.inputGroup, r)
219
220
  })
220
221
  });
221
222
  }
222
- function w({ className: t, style: r, ...a }) {
223
- return /* @__PURE__ */ i(l.Label, {
224
- ...a,
223
+ function E({ className: t, style: n, ...r }) {
224
+ return /* @__PURE__ */ o(d.Label, {
225
+ ...r,
225
226
  ...e({
226
227
  className: t,
227
- style: r,
228
- styles: n.props(b.label)
228
+ style: n,
229
+ styles: i.props(S.label)
229
230
  })
230
231
  });
231
232
  }
232
- function T(e) {
233
- return /* @__PURE__ */ i(l.Value, { ...e });
233
+ function D(e) {
234
+ return /* @__PURE__ */ o(d.Value, { ...e });
234
235
  }
235
- function E({ className: t, style: r, ...a }) {
236
- return /* @__PURE__ */ i(l.Input, {
237
- ...a,
236
+ function O({ className: t, style: n, ...r }) {
237
+ return /* @__PURE__ */ o(d.Input, {
238
+ ...r,
238
239
  ...e({
239
240
  className: t,
240
- style: r,
241
- styles: n.props(b.input, S.input)
241
+ style: n,
242
+ styles: i.props(S.input, w.input)
242
243
  })
243
244
  });
244
245
  }
245
- function D({ children: t = /* @__PURE__ */ i(s, {
246
+ function k({ children: t = /* @__PURE__ */ o(l, {
246
247
  size: 16,
247
248
  "aria-hidden": "true"
248
- }), "aria-label": n = "Show options", className: r, style: a, ...o }) {
249
- return /* @__PURE__ */ i(l.Trigger, {
250
- ...o,
249
+ }), "aria-label": n = "Show options", className: r, style: i, ...a }) {
250
+ return /* @__PURE__ */ o(d.Trigger, {
251
+ ...a,
251
252
  "aria-label": n,
252
253
  ...e({
253
254
  className: r,
254
- style: a,
255
+ style: i,
255
256
  styles: { className: "x3nfvp2 x6s0dn4 xl56j7k x2lah0s xifnfrx xi5vo7p x1uey4wk xwu7q15 xc342km x1ok0vyi x1717udv xjbqb8w x153jb6y x1ypdohk xvwfb5p xwj21n9 x5ezrf1 x13qnu6 x9v5kkp x19rmrnh x1bqaal" }
256
257
  }),
257
258
  children: t
258
259
  });
259
260
  }
260
- function O({ children: t = /* @__PURE__ */ i(c, {
261
+ function A({ children: t = /* @__PURE__ */ o(u, {
261
262
  size: 16,
262
263
  "aria-hidden": "true"
263
- }), "aria-label": n = "Clear selection", className: r, style: a, ...o }) {
264
- return /* @__PURE__ */ i(l.Clear, {
265
- ...o,
264
+ }), "aria-label": n = "Clear selection", className: r, style: i, ...a }) {
265
+ return /* @__PURE__ */ o(d.Clear, {
266
+ ...a,
266
267
  "aria-label": n,
267
268
  ...e({
268
269
  className: r,
269
- style: a,
270
+ style: i,
270
271
  styles: { className: "x3nfvp2 x6s0dn4 xl56j7k x2lah0s xifnfrx xi5vo7p x1uey4wk xwu7q15 xc342km x1ok0vyi x1717udv xjbqb8w x153jb6y x1ypdohk xvwfb5p xwj21n9 x5ezrf1 x13qnu6 x9v5kkp x19rmrnh x1bqaal" }
271
272
  }),
272
273
  children: t
273
274
  });
274
275
  }
275
- function k({ sideOffset: t = 4, className: r, style: a, xstyle: o, ...s }) {
276
- return /* @__PURE__ */ i(l.Positioner, {
276
+ function j({ sideOffset: t = 4, className: n, style: r, xstyle: a, ...s }) {
277
+ return /* @__PURE__ */ o(d.Positioner, {
277
278
  ...s,
278
279
  sideOffset: t,
279
280
  ...e({
280
- className: r,
281
- style: a,
282
- styles: n.props(x.positioner, o)
281
+ className: n,
282
+ style: r,
283
+ styles: i.props(C.positioner, a)
283
284
  })
284
285
  });
285
286
  }
286
- function A({ className: t, style: r, ...a }) {
287
- return /* @__PURE__ */ i(l.Popup, {
288
- ...a,
287
+ function M({ className: t, style: n, ...r }) {
288
+ return /* @__PURE__ */ o(d.Popup, {
289
+ ...r,
289
290
  ...e({
290
291
  className: t,
291
- style: r,
292
- styles: n.props(x.popup)
292
+ style: n,
293
+ styles: i.props(C.popup)
293
294
  })
294
295
  });
295
296
  }
296
- function j({ className: t, style: n, ...r }) {
297
- return /* @__PURE__ */ i(l.List, {
297
+ function N({ className: t, style: n, ...r }) {
298
+ return /* @__PURE__ */ o(d.List, {
298
299
  ...r,
299
300
  ...e({
300
301
  className: t,
@@ -303,32 +304,32 @@ function j({ className: t, style: n, ...r }) {
303
304
  })
304
305
  });
305
306
  }
306
- function M({ className: t, style: r, ...a }) {
307
- return /* @__PURE__ */ i(l.Item, {
308
- ...a,
307
+ function P({ className: t, style: n, ...r }) {
308
+ return /* @__PURE__ */ o(d.Item, {
309
+ ...r,
309
310
  ...e({
310
311
  className: t,
311
- style: r,
312
- styles: n.props(x.option)
312
+ style: n,
313
+ styles: i.props(C.option)
313
314
  })
314
315
  });
315
316
  }
316
- function N({ children: t = /* @__PURE__ */ i(o, {
317
+ function F({ children: t = /* @__PURE__ */ o(c, {
317
318
  size: 16,
318
319
  "aria-hidden": "true"
319
- }), className: r, style: a, ...s }) {
320
- return /* @__PURE__ */ i(l.ItemIndicator, {
321
- ...s,
320
+ }), className: n, style: r, ...a }) {
321
+ return /* @__PURE__ */ o(d.ItemIndicator, {
322
+ ...a,
322
323
  ...e({
323
- className: r,
324
- style: a,
325
- styles: n.props(x.icon)
324
+ className: n,
325
+ style: r,
326
+ styles: i.props(C.icon)
326
327
  }),
327
328
  children: t
328
329
  });
329
330
  }
330
- function P({ className: t, style: n, ...r }) {
331
- return /* @__PURE__ */ i(l.Empty, {
331
+ function I({ className: t, style: n, ...r }) {
332
+ return /* @__PURE__ */ o(d.Empty, {
332
333
  ...r,
333
334
  ...e({
334
335
  className: t,
@@ -337,8 +338,8 @@ function P({ className: t, style: n, ...r }) {
337
338
  })
338
339
  });
339
340
  }
340
- function F({ className: t, style: n, ...r }) {
341
- return /* @__PURE__ */ i(l.Status, {
341
+ function L({ className: t, style: n, ...r }) {
342
+ return /* @__PURE__ */ o(d.Status, {
342
343
  ...r,
343
344
  ...e({
344
345
  className: t,
@@ -347,8 +348,8 @@ function F({ className: t, style: n, ...r }) {
347
348
  })
348
349
  });
349
350
  }
350
- function I({ className: t, style: n, ...r }) {
351
- return /* @__PURE__ */ i(l.GroupLabel, {
351
+ function R({ className: t, style: n, ...r }) {
352
+ return /* @__PURE__ */ o(d.GroupLabel, {
352
353
  ...r,
353
354
  ...e({
354
355
  className: t,
@@ -357,8 +358,8 @@ function I({ className: t, style: n, ...r }) {
357
358
  })
358
359
  });
359
360
  }
360
- function L({ className: t, style: n, ...r }) {
361
- return /* @__PURE__ */ i(l.Chips, {
361
+ function z({ className: t, style: n, ...r }) {
362
+ return /* @__PURE__ */ o(d.Chips, {
362
363
  ...r,
363
364
  ...e({
364
365
  className: t,
@@ -367,8 +368,8 @@ function L({ className: t, style: n, ...r }) {
367
368
  })
368
369
  });
369
370
  }
370
- function R({ className: t, style: n, ...r }) {
371
- return /* @__PURE__ */ i(l.Chip, {
371
+ function B({ className: t, style: n, ...r }) {
372
+ return /* @__PURE__ */ o(d.Chip, {
372
373
  ...r,
373
374
  ...e({
374
375
  className: t,
@@ -377,12 +378,12 @@ function R({ className: t, style: n, ...r }) {
377
378
  })
378
379
  });
379
380
  }
380
- function z({ children: t = /* @__PURE__ */ i(c, {
381
+ function V({ children: t = /* @__PURE__ */ o(u, {
381
382
  size: 14,
382
383
  "aria-hidden": "true"
383
- }), className: n, style: r, ...a }) {
384
- return /* @__PURE__ */ i(l.ChipRemove, {
385
- ...a,
384
+ }), className: n, style: r, ...i }) {
385
+ return /* @__PURE__ */ o(d.ChipRemove, {
386
+ ...i,
386
387
  ...e({
387
388
  className: n,
388
389
  style: r,
@@ -391,29 +392,29 @@ function z({ children: t = /* @__PURE__ */ i(c, {
391
392
  children: t
392
393
  });
393
394
  }
394
- var B = {
395
+ var H = {
395
396
  Root: ne,
396
- Label: w,
397
- InputGroup: C,
398
- Input: E,
399
- Trigger: D,
400
- Clear: O,
401
- Portal: l.Portal,
402
- Positioner: k,
403
- Popup: A,
404
- List: j,
405
- Item: M,
406
- ItemIndicator: N,
407
- Empty: P,
408
- Status: F,
409
- Group: l.Group,
410
- GroupLabel: I,
411
- Chips: L,
412
- Chip: R,
413
- ChipRemove: z,
414
- Value: T,
415
- Collection: l.Collection
416
- }, V = {
397
+ Label: E,
398
+ InputGroup: T,
399
+ Input: O,
400
+ Trigger: k,
401
+ Clear: A,
402
+ Portal: d.Portal,
403
+ Positioner: j,
404
+ Popup: M,
405
+ List: N,
406
+ Item: P,
407
+ ItemIndicator: F,
408
+ Empty: I,
409
+ Status: L,
410
+ Group: d.Group,
411
+ GroupLabel: R,
412
+ Chips: z,
413
+ Chip: B,
414
+ ChipRemove: V,
415
+ Value: D,
416
+ Collection: d.Collection
417
+ }, U = {
417
418
  fieldset: {
418
419
  k1xSpc: "x78zum5",
419
420
  kXwgrk: "xdt5ytf",
@@ -479,18 +480,18 @@ var B = {
479
480
  $$css: !0
480
481
  }
481
482
  };
482
- function H({ className: t, style: r, xstyle: a, ...o }) {
483
- return /* @__PURE__ */ i(u.Root, {
484
- ...o,
483
+ function W({ className: t, style: n, xstyle: r, ...a }) {
484
+ return /* @__PURE__ */ o(f.Root, {
485
+ ...a,
485
486
  ...e({
486
487
  className: t,
487
- style: r,
488
- styles: n.props(V.fieldset, a)
488
+ style: n,
489
+ styles: i.props(U.fieldset, r)
489
490
  })
490
491
  });
491
492
  }
492
- function U({ className: t, style: n, ...r }) {
493
- return /* @__PURE__ */ i(u.Legend, {
493
+ function G({ className: t, style: n, ...r }) {
494
+ return /* @__PURE__ */ o(f.Legend, {
494
495
  ...r,
495
496
  ...e({
496
497
  className: t,
@@ -499,34 +500,34 @@ function U({ className: t, style: n, ...r }) {
499
500
  })
500
501
  });
501
502
  }
502
- function W({ xstyle: e, ...r }) {
503
- return /* @__PURE__ */ i("div", { ...t(n.props(V.inputGroup, e), r) });
503
+ function K({ xstyle: e, ...t }) {
504
+ return /* @__PURE__ */ o("div", { ...r(i.props(U.inputGroup, e), t) });
504
505
  }
505
- function G(e) {
506
- return /* @__PURE__ */ i("span", { ...t({ className: "x3nfvp2 x2lah0s x6s0dn4 x1atzlso x153jb6y x1hz01jw xtqrqnz x1778rvt" }, e) });
506
+ function q(e) {
507
+ return /* @__PURE__ */ o("span", { ...r({ className: "x3nfvp2 x2lah0s x6s0dn4 x1atzlso x153jb6y x1hz01jw xtqrqnz x1778rvt" }, e) });
507
508
  }
508
- function K({ className: t, style: r, xstyle: a, ...o }) {
509
- return /* @__PURE__ */ i(d, {
510
- ...o,
509
+ function J({ className: t, style: n, xstyle: r, ...a }) {
510
+ return /* @__PURE__ */ o(p, {
511
+ ...a,
511
512
  ...e({
512
513
  className: t,
513
- style: r,
514
- styles: n.props(b.input, V.embedded, a)
514
+ style: n,
515
+ styles: i.props(S.input, U.embedded, r)
515
516
  })
516
517
  });
517
518
  }
518
- function q({ className: t, style: r, xstyle: a, ...o }) {
519
- return /* @__PURE__ */ i(f.Root, {
520
- ...o,
519
+ function Y({ className: t, style: n, xstyle: r, ...a }) {
520
+ return /* @__PURE__ */ o(m.Root, {
521
+ ...a,
521
522
  ...e({
522
523
  className: t,
523
- style: r,
524
- styles: n.props(b.root, a)
524
+ style: n,
525
+ styles: i.props(S.root, r)
525
526
  })
526
527
  });
527
528
  }
528
- function J({ className: t, style: n, ...r }) {
529
- return /* @__PURE__ */ i(f.Group, {
529
+ function X({ className: t, style: n, ...r }) {
530
+ return /* @__PURE__ */ o(m.Group, {
530
531
  ...r,
531
532
  ...e({
532
533
  className: t,
@@ -535,52 +536,52 @@ function J({ className: t, style: n, ...r }) {
535
536
  })
536
537
  });
537
538
  }
538
- function Y({ className: t, style: r, ...a }) {
539
- return /* @__PURE__ */ i(f.Input, {
540
- ...a,
539
+ function Z({ className: t, style: n, ...r }) {
540
+ return /* @__PURE__ */ o(m.Input, {
541
+ ...r,
541
542
  ...e({
542
543
  className: t,
543
- style: r,
544
- styles: n.props(b.input, V.embedded, V.numberInput)
544
+ style: n,
545
+ styles: i.props(S.input, U.embedded, U.numberInput)
545
546
  })
546
547
  });
547
548
  }
548
- function X({ children: t = "+", "aria-label": n = "Increase", className: r, style: a, ...o }) {
549
- return /* @__PURE__ */ i(f.Increment, {
550
- ...o,
549
+ function re({ children: t = "+", "aria-label": n = "Increase", className: r, style: i, ...a }) {
550
+ return /* @__PURE__ */ o(m.Increment, {
551
+ ...a,
551
552
  "aria-label": n,
552
553
  ...e({
553
554
  className: r,
554
- style: a,
555
+ style: i,
555
556
  styles: { className: "x3nfvp2 x2lah0s x6s0dn4 xl56j7k xifnfrx xi5vo7p x1uey4wk xwu7q15 x1717udv xc342km x1ok0vyi xjbqb8w xbixft x1hz01jw x1i2cqwi x1ypdohk xvwfb5p xwj21n9 x5ezrf1 x13qnu6 x9v5kkp x19rmrnh x1bqaal" }
556
557
  }),
557
558
  children: t
558
559
  });
559
560
  }
560
- function Z({ children: t = "−", "aria-label": n = "Decrease", className: r, style: a, ...o }) {
561
- return /* @__PURE__ */ i(f.Decrement, {
562
- ...o,
561
+ function ie({ children: t = "−", "aria-label": n = "Decrease", className: r, style: i, ...a }) {
562
+ return /* @__PURE__ */ o(m.Decrement, {
563
+ ...a,
563
564
  "aria-label": n,
564
565
  ...e({
565
566
  className: r,
566
- style: a,
567
+ style: i,
567
568
  styles: { className: "x3nfvp2 x2lah0s x6s0dn4 xl56j7k xifnfrx xi5vo7p x1uey4wk xwu7q15 x1717udv xc342km x1ok0vyi xjbqb8w xbixft x1hz01jw x1i2cqwi x1ypdohk xvwfb5p xwj21n9 x5ezrf1 x13qnu6 x9v5kkp x19rmrnh x1bqaal" }
568
569
  }),
569
570
  children: t
570
571
  });
571
572
  }
572
- function re({ className: t, style: r, xstyle: a, ...o }) {
573
- return /* @__PURE__ */ i(p.Root, {
574
- ...o,
573
+ function ae({ className: t, style: n, xstyle: r, ...a }) {
574
+ return /* @__PURE__ */ o(h.Root, {
575
+ ...a,
575
576
  ...e({
576
577
  className: t,
577
- style: r,
578
- styles: n.props(V.slider, a)
578
+ style: n,
579
+ styles: i.props(U.slider, r)
579
580
  })
580
581
  });
581
582
  }
582
- function ie({ className: t, style: n, ...r }) {
583
- return /* @__PURE__ */ i(p.Control, {
583
+ function oe({ className: t, style: n, ...r }) {
584
+ return /* @__PURE__ */ o(h.Control, {
584
585
  ...r,
585
586
  ...e({
586
587
  className: t,
@@ -589,8 +590,8 @@ function ie({ className: t, style: n, ...r }) {
589
590
  })
590
591
  });
591
592
  }
592
- function ae({ className: t, style: n, ...r }) {
593
- return /* @__PURE__ */ i(p.Track, {
593
+ function se({ className: t, style: n, ...r }) {
594
+ return /* @__PURE__ */ o(h.Track, {
594
595
  ...r,
595
596
  ...e({
596
597
  className: t,
@@ -599,8 +600,8 @@ function ae({ className: t, style: n, ...r }) {
599
600
  })
600
601
  });
601
602
  }
602
- function oe({ className: t, style: n, ...r }) {
603
- return /* @__PURE__ */ i(p.Indicator, {
603
+ function ce({ className: t, style: n, ...r }) {
604
+ return /* @__PURE__ */ o(h.Indicator, {
604
605
  ...r,
605
606
  ...e({
606
607
  className: t,
@@ -609,8 +610,8 @@ function oe({ className: t, style: n, ...r }) {
609
610
  })
610
611
  });
611
612
  }
612
- function se({ className: t, style: n, ...r }) {
613
- return /* @__PURE__ */ i(p.Thumb, {
613
+ function le({ className: t, style: n, ...r }) {
614
+ return /* @__PURE__ */ o(h.Thumb, {
614
615
  ...r,
615
616
  ...e({
616
617
  className: t,
@@ -619,18 +620,18 @@ function se({ className: t, style: n, ...r }) {
619
620
  })
620
621
  });
621
622
  }
622
- function ce({ className: t, style: r, ...a }) {
623
- return /* @__PURE__ */ i(p.Label, {
624
- ...a,
623
+ function ue({ className: t, style: n, ...r }) {
624
+ return /* @__PURE__ */ o(h.Label, {
625
+ ...r,
625
626
  ...e({
626
627
  className: t,
627
- style: r,
628
- styles: n.props(b.label)
628
+ style: n,
629
+ styles: i.props(S.label)
629
630
  })
630
631
  });
631
632
  }
632
- function le({ className: t, style: n, ...r }) {
633
- return /* @__PURE__ */ i(p.Value, {
633
+ function de({ className: t, style: n, ...r }) {
634
+ return /* @__PURE__ */ o(h.Value, {
634
635
  ...r,
635
636
  ...e({
636
637
  className: t,
@@ -639,215 +640,215 @@ function le({ className: t, style: n, ...r }) {
639
640
  })
640
641
  });
641
642
  }
642
- function ue({ className: t, style: r, xstyle: a, ...o }) {
643
- return /* @__PURE__ */ i(d, {
644
- ...o,
643
+ function fe({ className: t, style: n, xstyle: r, ...a }) {
644
+ return /* @__PURE__ */ o(p, {
645
+ ...a,
645
646
  type: "file",
646
647
  ...e({
647
648
  className: t,
648
- style: r,
649
- styles: n.props(b.input, V.file, a)
649
+ style: n,
650
+ styles: i.props(S.input, U.file, r)
650
651
  })
651
652
  });
652
653
  }
653
- var de = {
654
- Root: H,
655
- Legend: U
656
- }, fe = {
654
+ var pe = {
657
655
  Root: W,
658
- Addon: G,
659
- Input: K
660
- }, pe = {
661
- Root: q,
662
- Group: J,
663
- Input: Y,
664
- Increment: X,
665
- Decrement: Z
656
+ Legend: G
666
657
  }, me = {
667
- Root: re,
668
- Label: ce,
669
- Value: le,
670
- Control: ie,
671
- Track: ae,
672
- Indicator: oe,
673
- Thumb: se
658
+ Root: K,
659
+ Addon: q,
660
+ Input: J
661
+ }, he = {
662
+ Root: Y,
663
+ Group: X,
664
+ Input: Z,
665
+ Increment: re,
666
+ Decrement: ie
667
+ }, ge = {
668
+ Root: ae,
669
+ Label: ue,
670
+ Value: de,
671
+ Control: oe,
672
+ Track: se,
673
+ Indicator: ce,
674
+ Thumb: le
674
675
  };
675
676
  // packages/forms/src/forms.tsx
676
- function he({ className: t, style: r, xstyle: a, ...o }) {
677
- return /* @__PURE__ */ i(m.Root, {
678
- ...o,
677
+ function _e({ className: t, style: n, xstyle: r, ...a }) {
678
+ return /* @__PURE__ */ o(g.Root, {
679
+ ...a,
679
680
  ...e({
680
681
  className: t,
681
- style: r,
682
- styles: n.props(b.root, a)
682
+ style: n,
683
+ styles: i.props(S.root, r)
683
684
  })
684
685
  });
685
686
  }
686
- function ge({ className: t, style: r, ...a }) {
687
- return /* @__PURE__ */ i(m.Label, {
688
- ...a,
687
+ function ve({ className: t, style: n, ...r }) {
688
+ return /* @__PURE__ */ o(g.Label, {
689
+ ...r,
689
690
  ...e({
690
691
  className: t,
691
- style: r,
692
- styles: n.props(b.label)
692
+ style: n,
693
+ styles: i.props(S.label)
693
694
  })
694
695
  });
695
696
  }
696
- function _e({ className: t, style: r, ...a }) {
697
- return /* @__PURE__ */ i(m.Description, {
698
- ...a,
697
+ function ye({ className: t, style: n, ...r }) {
698
+ return /* @__PURE__ */ o(g.Description, {
699
+ ...r,
699
700
  ...e({
700
701
  className: t,
701
- style: r,
702
- styles: n.props(b.description)
702
+ style: n,
703
+ styles: i.props(S.description)
703
704
  })
704
705
  });
705
706
  }
706
- function ve({ className: t, style: r, ...a }) {
707
- return /* @__PURE__ */ i(m.Error, {
708
- ...a,
707
+ function be({ className: t, style: n, ...r }) {
708
+ return /* @__PURE__ */ o(g.Error, {
709
+ ...r,
709
710
  ...e({
710
711
  className: t,
711
- style: r,
712
- styles: n.props(b.error)
712
+ style: n,
713
+ styles: i.props(S.error)
713
714
  })
714
715
  });
715
716
  }
716
- var ye = {
717
- Root: he,
718
- Label: ge,
719
- Description: _e,
720
- Error: ve
717
+ var xe = {
718
+ Root: _e,
719
+ Label: ve,
720
+ Description: ye,
721
+ Error: be
721
722
  };
722
- function be({ className: t, style: r, xstyle: a, ...o }) {
723
- return /* @__PURE__ */ i(d, {
724
- ...o,
723
+ function Se({ className: t, style: n, xstyle: r, ...a }) {
724
+ return /* @__PURE__ */ o(p, {
725
+ ...a,
725
726
  ...e({
726
727
  className: t,
727
- style: r,
728
- styles: n.props(b.input, a)
728
+ style: n,
729
+ styles: i.props(S.input, r)
729
730
  })
730
731
  });
731
732
  }
732
- function xe({ value: t, defaultValue: r, onValueChange: a, name: o, disabled: s, readOnly: c, required: l, className: u, style: d, xstyle: f, ...p }) {
733
- return /* @__PURE__ */ i(m.Control, {
733
+ function Ce({ value: t, defaultValue: n, onValueChange: r, name: a, disabled: s, readOnly: c, required: l, className: u, style: d, xstyle: f, ...p }) {
734
+ return /* @__PURE__ */ o(g.Control, {
734
735
  value: t,
735
- defaultValue: r,
736
- onValueChange: a,
737
- name: o,
736
+ defaultValue: n,
737
+ onValueChange: r,
738
+ name: a,
738
739
  disabled: s,
739
740
  readOnly: c,
740
741
  required: l,
741
- render: /* @__PURE__ */ i("textarea", { ...p }),
742
+ render: /* @__PURE__ */ o("textarea", { ...p }),
742
743
  ...e({
743
744
  className: u,
744
745
  style: d,
745
- styles: n.props(b.input, b.textarea, f)
746
+ styles: i.props(S.input, S.textarea, f)
746
747
  })
747
748
  });
748
749
  }
749
750
  // packages/forms/src/select.tsx
750
- var Se = {
751
- outline: x.outlined,
752
- ghost: x.ghost
751
+ var we = {
752
+ outline: C.outlined,
753
+ ghost: C.ghost
753
754
  };
754
- function Ce(e) {
755
- return /* @__PURE__ */ i(h.Root, { ...e });
755
+ function Te(e) {
756
+ return /* @__PURE__ */ o(_.Root, { ...e });
756
757
  }
757
- function we({ variant: t = "outline", className: r, style: a, xstyle: o, ...s }) {
758
- return /* @__PURE__ */ i(h.Trigger, {
758
+ function Ee({ variant: t = "outline", className: n, style: r, xstyle: a, ...s }) {
759
+ return /* @__PURE__ */ o(_.Trigger, {
759
760
  ...s,
760
761
  ...e({
761
- className: r,
762
- style: a,
763
- styles: n.props(x.trigger, Se[t], o)
762
+ className: n,
763
+ style: r,
764
+ styles: i.props(C.trigger, we[t], a)
764
765
  })
765
766
  });
766
767
  }
767
- function Te({ className: t, style: r, xstyle: a, ...o }) {
768
- return /* @__PURE__ */ i(h.Value, {
769
- ...o,
768
+ function De({ className: t, style: n, xstyle: r, ...a }) {
769
+ return /* @__PURE__ */ o(_.Value, {
770
+ ...a,
770
771
  ...e({
771
772
  className: t,
772
- style: r,
773
- styles: n.props(x.value, a)
773
+ style: n,
774
+ styles: i.props(C.value, r)
774
775
  })
775
776
  });
776
777
  }
777
- function Ee({ className: t, style: r, ...a }) {
778
- return /* @__PURE__ */ i(h.Icon, {
779
- ...a,
778
+ function Oe({ className: t, style: n, ...r }) {
779
+ return /* @__PURE__ */ o(_.Icon, {
780
+ ...r,
780
781
  ...e({
781
782
  className: t,
782
- style: r,
783
- styles: n.props(x.icon)
783
+ style: n,
784
+ styles: i.props(C.icon)
784
785
  })
785
786
  });
786
787
  }
787
- function De({ className: t, style: r, xstyle: a, sideOffset: o = 4, alignItemWithTrigger: s = !1, ...c }) {
788
- return /* @__PURE__ */ i(h.Positioner, {
788
+ function ke({ className: t, style: n, xstyle: r, sideOffset: a = 4, alignItemWithTrigger: s = !1, ...c }) {
789
+ return /* @__PURE__ */ o(_.Positioner, {
789
790
  ...c,
790
- sideOffset: o,
791
+ sideOffset: a,
791
792
  alignItemWithTrigger: s,
792
793
  ...e({
793
794
  className: t,
794
- style: r,
795
- styles: n.props(x.positioner, a)
795
+ style: n,
796
+ styles: i.props(C.positioner, r)
796
797
  })
797
798
  });
798
799
  }
799
- function Oe({ className: t, style: r, ...a }) {
800
- return /* @__PURE__ */ i(h.Popup, {
801
- ...a,
800
+ function Ae({ className: t, style: n, ...r }) {
801
+ return /* @__PURE__ */ o(_.Popup, {
802
+ ...r,
802
803
  ...e({
803
804
  className: t,
804
- style: r,
805
- styles: n.props(x.popup)
805
+ style: n,
806
+ styles: i.props(C.popup)
806
807
  })
807
808
  });
808
809
  }
809
- function ke({ className: t, style: r, ...a }) {
810
- return /* @__PURE__ */ i(h.Item, {
811
- ...a,
810
+ function je({ className: t, style: n, ...r }) {
811
+ return /* @__PURE__ */ o(_.Item, {
812
+ ...r,
812
813
  ...e({
813
814
  className: t,
814
- style: r,
815
- styles: n.props(x.option)
815
+ style: n,
816
+ styles: i.props(C.option)
816
817
  })
817
818
  });
818
819
  }
819
- function Ae({ className: t, style: r, ...a }) {
820
- return /* @__PURE__ */ i(h.ItemText, {
821
- ...a,
820
+ function Me({ className: t, style: n, ...r }) {
821
+ return /* @__PURE__ */ o(_.ItemText, {
822
+ ...r,
822
823
  ...e({
823
824
  className: t,
824
- style: r,
825
- styles: n.props(x.optionText)
825
+ style: n,
826
+ styles: i.props(C.optionText)
826
827
  })
827
828
  });
828
829
  }
829
- function je({ className: t, style: r, ...a }) {
830
- return /* @__PURE__ */ i(h.ItemIndicator, {
831
- ...a,
830
+ function Ne({ className: t, style: n, ...r }) {
831
+ return /* @__PURE__ */ o(_.ItemIndicator, {
832
+ ...r,
832
833
  ...e({
833
834
  className: t,
834
- style: r,
835
- styles: n.props(x.icon)
835
+ style: n,
836
+ styles: i.props(C.icon)
836
837
  })
837
838
  });
838
839
  }
839
- var Me = {
840
- Root: Ce,
841
- Trigger: we,
842
- Value: Te,
843
- Icon: Ee,
844
- Portal: h.Portal,
845
- Positioner: De,
846
- Popup: Oe,
847
- List: h.List,
848
- Item: ke,
849
- ItemText: Ae,
850
- ItemIndicator: je
840
+ var Pe = {
841
+ Root: Te,
842
+ Trigger: Ee,
843
+ Value: De,
844
+ Icon: Oe,
845
+ Portal: _.Portal,
846
+ Positioner: ke,
847
+ Popup: Ae,
848
+ List: _.List,
849
+ Item: je,
850
+ ItemText: Me,
851
+ ItemIndicator: Ne
851
852
  }, Q = {
852
853
  choice: {
853
854
  kVAEAm: "x1n2onr6",
@@ -942,19 +943,19 @@ var Me = {
942
943
  $$css: !0
943
944
  }
944
945
  };
945
- function Ne({ className: t, style: r, xstyle: a, ...o }) {
946
- return /* @__PURE__ */ i(g.Root, {
947
- ...o,
946
+ function $({ className: t, style: n, xstyle: r, ...a }) {
947
+ return /* @__PURE__ */ o(v.Root, {
948
+ ...a,
948
949
  ...e({
949
950
  className: t,
950
- style: r,
951
- styles: n.props(Q.choice, a)
951
+ style: n,
952
+ styles: i.props(Q.choice, r)
952
953
  })
953
954
  });
954
955
  }
955
- function Pe({ children: t, className: n, style: r, ...a }) {
956
- return /* @__PURE__ */ i(g.Indicator, {
957
- ...a,
956
+ function Fe({ children: t, className: n, style: r, ...i }) {
957
+ return /* @__PURE__ */ o(v.Indicator, {
958
+ ...i,
958
959
  ...e({
959
960
  className: n,
960
961
  style: r,
@@ -966,28 +967,28 @@ function Pe({ children: t, className: n, style: r, ...a }) {
966
967
  children: t
967
968
  });
968
969
  }
969
- function $({ className: t, style: r, xstyle: a, ...o }) {
970
- return /* @__PURE__ */ i(v, {
971
- ...o,
970
+ function Ie({ className: t, style: n, xstyle: r, ...a }) {
971
+ return /* @__PURE__ */ o(b, {
972
+ ...a,
972
973
  ...e({
973
974
  className: t,
974
- style: r,
975
- styles: n.props(Q.group, a)
975
+ style: n,
976
+ styles: i.props(Q.group, r)
976
977
  })
977
978
  });
978
979
  }
979
- function Fe({ className: t, style: r, xstyle: a, ...o }) {
980
- return /* @__PURE__ */ i(_.Root, {
981
- ...o,
980
+ function Le({ className: t, style: n, xstyle: r, ...a }) {
981
+ return /* @__PURE__ */ o(y.Root, {
982
+ ...a,
982
983
  ...e({
983
984
  className: t,
984
- style: r,
985
- styles: n.props(Q.choice, Q.radio, a)
985
+ style: n,
986
+ styles: i.props(Q.choice, Q.radio, r)
986
987
  })
987
988
  });
988
989
  }
989
- function Ie({ className: t, style: n, ...r }) {
990
- return /* @__PURE__ */ i(_.Indicator, {
990
+ function Re({ className: t, style: n, ...r }) {
991
+ return /* @__PURE__ */ o(y.Indicator, {
991
992
  ...r,
992
993
  ...e({
993
994
  className: t,
@@ -996,18 +997,18 @@ function Ie({ className: t, style: n, ...r }) {
996
997
  })
997
998
  });
998
999
  }
999
- function Le({ className: t, style: r, xstyle: a, ...o }) {
1000
- return /* @__PURE__ */ i(y.Root, {
1001
- ...o,
1000
+ function ze({ className: t, style: n, xstyle: r, ...a }) {
1001
+ return /* @__PURE__ */ o(x.Root, {
1002
+ ...a,
1002
1003
  ...e({
1003
1004
  className: t,
1004
- style: r,
1005
- styles: n.props(Q.switch, a)
1005
+ style: n,
1006
+ styles: i.props(Q.switch, r)
1006
1007
  })
1007
1008
  });
1008
1009
  }
1009
- function Re({ className: t, style: n, ...r }) {
1010
- return /* @__PURE__ */ i(y.Thumb, {
1010
+ function Be({ className: t, style: n, ...r }) {
1011
+ return /* @__PURE__ */ o(x.Thumb, {
1011
1012
  ...r,
1012
1013
  ...e({
1013
1014
  className: t,
@@ -1016,18 +1017,18 @@ function Re({ className: t, style: n, ...r }) {
1016
1017
  })
1017
1018
  });
1018
1019
  }
1019
- function ze({ className: t, style: r, xstyle: a, ...o }) {
1020
- return /* @__PURE__ */ i(te, {
1021
- ...o,
1020
+ function Ve({ className: t, style: n, xstyle: r, ...a }) {
1021
+ return /* @__PURE__ */ o(te, {
1022
+ ...a,
1022
1023
  ...e({
1023
1024
  className: t,
1024
- style: r,
1025
- styles: n.props(Q.toggles, a)
1025
+ style: n,
1026
+ styles: i.props(Q.toggles, r)
1026
1027
  })
1027
1028
  });
1028
1029
  }
1029
- function Be({ className: t, style: n, ...r }) {
1030
- return /* @__PURE__ */ i(ee, {
1030
+ function He({ className: t, style: n, ...r }) {
1031
+ return /* @__PURE__ */ o(ee, {
1031
1032
  ...r,
1032
1033
  ...e({
1033
1034
  className: t,
@@ -1036,42 +1037,58 @@ function Be({ className: t, style: n, ...r }) {
1036
1037
  })
1037
1038
  });
1038
1039
  }
1039
- var Ve = {
1040
- Root: Ne,
1041
- Indicator: Pe
1042
- }, He = {
1040
+ var Ue = {
1043
1041
  Root: $,
1044
- Item: Fe,
1045
- Indicator: Ie
1046
- }, Ue = {
1047
- Root: Le,
1048
- Thumb: Re
1042
+ Indicator: Fe
1049
1043
  }, We = {
1044
+ Root: Ie,
1045
+ Item: Le,
1046
+ Indicator: Re
1047
+ }, Ge = {
1050
1048
  Root: ze,
1051
- Item: Be
1049
+ Thumb: Be
1050
+ }, Ke = {
1051
+ Root: Ve,
1052
+ Item: He
1052
1053
  };
1053
1054
  // packages/forms/src/settings-row.tsx
1054
- function Ge({ label: e, description: t, controlId: n, children: o }) {
1055
- let s = r();
1056
- return /* @__PURE__ */ a("div", {
1055
+ function qe({ label: e, description: t, controlId: n, children: r }) {
1056
+ let i = a();
1057
+ return /* @__PURE__ */ s("div", {
1057
1058
  role: "group",
1058
- "aria-labelledby": s,
1059
+ "aria-labelledby": i,
1059
1060
  className: "x78zum5 x1a02dak x6s0dn4 x1qughib xaml1ju x1ydxw8w xso031l x1q0q8m5 x1qndepd x1hz01jw xtqrqnz x1778rvt xbixft",
1060
- children: [/* @__PURE__ */ a("div", {
1061
+ children: [/* @__PURE__ */ s("div", {
1061
1062
  className: "x78zum5 xdt5ytf xunmzkg xeuugli xk30mkq",
1062
- children: [/* @__PURE__ */ i("label", {
1063
- id: s,
1063
+ children: [/* @__PURE__ */ o("label", {
1064
+ id: i,
1064
1065
  htmlFor: n,
1065
1066
  className: "xk50ysn",
1066
1067
  children: e
1067
- }), t !== void 0 && /* @__PURE__ */ i("p", {
1068
+ }), t !== void 0 && /* @__PURE__ */ o("p", {
1069
+ id: `${n}-description`,
1068
1070
  className: "x1ghz6dp x153jb6y xj0a0fe",
1069
1071
  children: t
1070
1072
  })]
1071
- }), /* @__PURE__ */ i("div", {
1073
+ }), /* @__PURE__ */ o("div", {
1072
1074
  className: "xeuugli x2lah0s",
1073
- children: o
1075
+ children: r
1074
1076
  })]
1075
1077
  });
1076
1078
  }
1077
- export { We as a, be as c, ue as d, fe as f, B as h, Ue as i, xe as l, me as m, Ve as n, Me as o, pe as p, He as r, ye as s, Ge as t, de as u };
1079
+ // packages/forms/src/settings-section.tsx
1080
+ function Je({ title: e, description: r, children: i }) {
1081
+ let c = a();
1082
+ return /* @__PURE__ */ s("section", {
1083
+ "aria-labelledby": c,
1084
+ className: "xrvj5dj x1n8ia3y xeuugli",
1085
+ children: [/* @__PURE__ */ s("header", {
1086
+ className: "xrvj5dj xunmzkg xeuugli",
1087
+ children: [/* @__PURE__ */ o(n, {
1088
+ id: c,
1089
+ children: e
1090
+ }), r !== void 0 && /* @__PURE__ */ o(t, { children: r })]
1091
+ }), /* @__PURE__ */ o("div", { children: i })]
1092
+ });
1093
+ }
1094
+ export { Ge as a, xe as c, pe as d, fe as f, H as g, ge as h, We as i, Se as l, he as m, qe as n, Ke as o, me as p, Ue as r, Pe as s, Je as t, Ce as u };