@mechane-ai/elements 0.39.0 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/NOTICE +11 -19
  2. package/README.md +49 -25
  3. package/dist/accessibility-P89UG9-r.js +25 -0
  4. package/dist/agent.js +1 -0
  5. package/dist/ai.js +50 -44
  6. package/dist/{categorical-values-BECG-J6R.js → categorical-values-DnGR_pQx.js} +3 -3
  7. package/dist/{chart-frame-CJFnI39T.js → chart-frame-BsyI1Zc8.js} +58 -57
  8. package/dist/{chart-input-DwAobO8Y.js → chart-input-r4S3-QCT.js} +2 -2
  9. package/dist/chart-navigation-D7OkLdSx.js +119 -0
  10. package/dist/charts/cartesian.js +560 -583
  11. package/dist/charts/distribution.js +218 -218
  12. package/dist/charts/graph.js +86 -85
  13. package/dist/charts/hierarchy.js +4 -4
  14. package/dist/charts/matrix.js +148 -147
  15. package/dist/charts/timeline.js +77 -76
  16. package/dist/charts.js +2 -2
  17. package/dist/code-block-C4K1sM9O.js +255 -0
  18. package/dist/collections.js +828 -607
  19. package/dist/constants.stylex-BILvnwUk.js +84 -0
  20. package/dist/content/code.js +1 -1
  21. package/dist/content/diff.js +3 -3
  22. package/dist/content/link.js +1 -1
  23. package/dist/content/markdown.js +2 -2
  24. package/dist/content/tree.js +184 -77
  25. package/dist/{content-link-B3ObdyZY.js → content-link-CBDqSvgP.js} +1 -1
  26. package/dist/content.js +1 -1
  27. package/dist/control-styles-D3q_Qyxi.js +179 -0
  28. package/dist/csp.js +14 -1
  29. package/dist/feedback.js +1 -1
  30. package/dist/forms/dates.js +359 -245
  31. package/dist/forms-I-WMHTkr.js +139 -0
  32. package/dist/forms.js +3 -3
  33. package/dist/index.js +1 -1
  34. package/dist/layout.js +271 -241
  35. package/dist/navigation/commands.js +87 -76
  36. package/dist/{navigation-D2_sGy3C.js → navigation-CveMIuXI.js} +1 -1
  37. package/dist/navigation.js +2 -2
  38. package/dist/overlays.js +1 -1
  39. package/dist/packages/ai/src/message-action.d.ts +1 -1
  40. package/dist/packages/charts/src/chart-navigation.d.ts +18 -2
  41. package/dist/packages/charts/src/chart-surface.d.ts +23 -0
  42. package/dist/packages/charts/src/distribution/distribution-plot.d.ts +3 -2
  43. package/dist/packages/collections/src/data-table.d.ts +7 -2
  44. package/dist/packages/collections/src/index.d.ts +4 -1
  45. package/dist/packages/collections/src/query-controls.d.ts +18 -0
  46. package/dist/packages/collections/src/table-query.d.ts +64 -0
  47. package/dist/packages/collections/src/use-collection-controls.d.ts +3 -8
  48. package/dist/packages/content/src/pierre-theme.d.ts +0 -1
  49. package/dist/packages/core/src/actions.d.ts +15 -13
  50. package/dist/packages/core/src/copy-value.d.ts +3 -2
  51. package/dist/packages/core/src/disclosure.d.ts +14 -11
  52. package/dist/packages/feedback/src/notifications.d.ts +15 -15
  53. package/dist/packages/feedback/src/toast.d.ts +9 -3
  54. package/dist/packages/forms/src/combobox.d.ts +31 -41
  55. package/dist/packages/forms/src/dates/event-month.d.ts +17 -0
  56. package/dist/packages/forms/src/dates/index.d.ts +2 -0
  57. package/dist/packages/forms/src/field-styles.d.ts +0 -19
  58. package/dist/packages/forms/src/form-controls.d.ts +26 -24
  59. package/dist/packages/forms/src/forms.d.ts +17 -14
  60. package/dist/packages/forms/src/select-control.d.ts +6 -4
  61. package/dist/packages/forms/src/select.d.ts +14 -18
  62. package/dist/packages/forms/src/selection-state.d.ts +11 -0
  63. package/dist/packages/forms/src/selection-styles.d.ts +3 -0
  64. package/dist/packages/forms/src/selection.d.ts +21 -19
  65. package/dist/packages/foundations/src/agent/index.d.ts +2 -0
  66. package/dist/packages/foundations/src/control-state.d.ts +2 -3
  67. package/dist/packages/foundations/src/control-styles.d.ts +19 -0
  68. package/dist/packages/foundations/src/csp/index.d.ts +1 -1
  69. package/dist/packages/foundations/src/csp/provider.d.ts +3 -0
  70. package/dist/packages/foundations/src/style-composition.d.ts +4 -1
  71. package/dist/packages/layout/src/app-shell.d.ts +12 -1
  72. package/dist/packages/layout/src/index.d.ts +1 -1
  73. package/dist/packages/layout/src/navigation-rail.d.ts +15 -2
  74. package/dist/packages/layout/src/resizable.d.ts +2 -2
  75. package/dist/packages/layout/src/sidebar.d.ts +4 -3
  76. package/dist/packages/navigation/src/tab-styles.d.ts +1 -1
  77. package/dist/packages/navigation/src/tabs.d.ts +12 -10
  78. package/dist/packages/overlays/src/alert-dialog.d.ts +19 -13
  79. package/dist/packages/overlays/src/dialog.d.ts +39 -24
  80. package/dist/packages/overlays/src/drawer.d.ts +16 -26
  81. package/dist/packages/overlays/src/menu.d.ts +37 -44
  82. package/dist/packages/overlays/src/overlay-root.d.ts +10 -0
  83. package/dist/packages/overlays/src/popover.d.ts +11 -20
  84. package/dist/packages/overlays/src/preview.d.ts +6 -13
  85. package/dist/packages/overlays/src/tooltip.d.ts +12 -15
  86. package/dist/{pierre-diff-CaPsfQRo.js → pierre-diff-DJ3oOfPX.js} +5 -5
  87. package/dist/{src-DPRmO-JY.js → src-CNV1ewzb.js} +379 -407
  88. package/dist/{src-CSWIG_op.js → src-CQQvXi7a.js} +58 -81
  89. package/dist/{src-DWjAoOyd.js → src-D2OHco8V.js} +42 -41
  90. package/dist/src-DfOAlAd2.js +750 -0
  91. package/dist/src-na2DdkKI.js +561 -0
  92. package/dist/{src-C-Sx37kz.js → src-s3tWwnN4.js} +361 -518
  93. package/dist/styles.js +3 -0
  94. package/dist/{elements.css → styles2.css} +195 -97
  95. package/dist/tokens.js +3 -1
  96. package/dist/{tokens.stylex-CJbIDPB9.js → tokens.stylex-dF5CACEJ.js} +13 -93
  97. package/package.json +8 -9
  98. package/skills/elements-workspace/SKILL.md +12 -0
  99. package/dist/accessibility-C-aIZ1Yx.js +0 -15
  100. package/dist/chart-navigation-CBIeNtJq.js +0 -67
  101. package/dist/code-block-aC0Htt4N.js +0 -184
  102. package/dist/forms-BQQFas9g.js +0 -118
  103. package/dist/foundations.css +0 -7
  104. package/dist/packages/content/src/tree/pierre-tree.d.ts +0 -3
  105. package/dist/pierre-theme-BpNaWn1x.js +0 -126
  106. package/dist/pierre-tree-CYCRjdGG.js +0 -106
  107. package/dist/src-d7EAi61b.js +0 -617
  108. package/dist/src-nkgFDl-g.js +0 -1171
  109. package/dist/style-composition-uYlczSsB.js +0 -9
  110. package/styles.css +0 -2
@@ -1,25 +1,25 @@
1
- import { A as e, M as t, N as n, S as r, i, j as a, k as o, s, x as c, y as l } from "./src-C-Sx37kz.js";
2
- import { t as u } from "./style-composition-uYlczSsB.js";
3
- import { i as d } from "./forms-BQQFas9g.js";
4
- import { mergeProps as f } from "@base-ui/react/merge-props";
5
- import * as p from "@stylexjs/stylex";
6
- import { createContext as m, useContext as h, useId as g, useRef as ee } from "react";
1
+ import { a as e, i as t, n, r, t as i } from "./control-styles-D3q_Qyxi.js";
2
+ import { n as a } from "./accessibility-P89UG9-r.js";
3
+ import { S as o, i as s, s as c, x as l, y as u } from "./src-s3tWwnN4.js";
4
+ import { r as d } from "./forms-I-WMHTkr.js";
5
+ import * as f from "@stylexjs/stylex";
6
+ import { mergeProps as p } from "@ui-sdk/react/primitive";
7
+ import { createContext as m, useContext as h, useId as g } from "react";
7
8
  import { jsx as _, jsxs as v } from "react/jsx-runtime";
8
9
  import { Check as y, ChevronDown as b, X as x } from "lucide-react";
9
- import { Combobox as S } from "@base-ui/react/combobox";
10
- import { Radio as C } from "@base-ui/react/radio";
11
- import { RadioGroup as w } from "@base-ui/react/radio-group";
12
- import { Fieldset as T } from "@base-ui/react/fieldset";
13
- import { Input as E } from "@base-ui/react/input";
14
- import { NumberField as D } from "@base-ui/react/number-field";
15
- import { Slider as O } from "@base-ui/react/slider";
16
- import { Select as k } from "@base-ui/react/select";
17
- import { Checkbox as A } from "@base-ui/react/checkbox";
18
- import { Switch as j } from "@base-ui/react/switch";
19
- import { Toggle as te } from "@base-ui/react/toggle";
20
- import { ToggleGroup as ne } from "@base-ui/react/toggle-group";
10
+ import * as S from "@ui-sdk/react/combobox";
11
+ import { Radio as C, RadioGroup as w, RadioIndicator as T } from "@ui-sdk/react/radio";
12
+ import { mergeProps as E } from "@base-ui/react/merge-props";
13
+ import { Field as D, FieldControl as O, FieldLabel as ee, FieldLegend as te, FieldSet as ne, useFieldControl as re } from "@ui-sdk/react/field";
14
+ import { InputGroup as ie } from "@ui-sdk/react/input";
15
+ import { NumberInput as ae, NumberInputControl as oe, NumberInputDecrement as se, NumberInputGroup as ce, NumberInputIncrement as k } from "@ui-sdk/react/number-input";
16
+ import { Slider as A, SliderControl as j, SliderIndicator as M, SliderThumb as N, SliderTrack as P, SliderValue as F } from "@ui-sdk/react/slider";
17
+ import * as I from "@ui-sdk/react/select";
18
+ import { Checkbox as L, CheckboxIndicator as R } from "@ui-sdk/react/checkbox";
19
+ import { Switch as z, SwitchThumb as B } from "@ui-sdk/react/switch";
20
+ import { Toggle as V, ToggleGroup as H } from "@ui-sdk/react/toggle";
21
21
  // packages/forms/src/selection-styles.ts
22
- var M = {
22
+ var U = {
23
23
  trigger: {
24
24
  k1xSpc: "x3nfvp2",
25
25
  kGNEyG: "x6s0dn4",
@@ -93,6 +93,7 @@ var M = {
93
93
  },
94
94
  option: {
95
95
  k1xSpc: "x78zum5",
96
+ kVKVCy: "xvgho8r",
96
97
  kB7OPa: "x9f619",
97
98
  kGNEyG: "x6s0dn4",
98
99
  kOIVth: "x1hnptsi",
@@ -120,7 +121,7 @@ var M = {
120
121
  kHjlTd: "xj0a0fe",
121
122
  $$css: !0
122
123
  }
123
- }, N = m("standard"), P = {
124
+ }, W = m("standard"), G = {
124
125
  inputGroup: {
125
126
  kOIVth: "xunmzkg",
126
127
  $$css: !0
@@ -132,6 +133,7 @@ var M = {
132
133
  },
133
134
  action: {
134
135
  k1xSpc: "x3nfvp2",
136
+ kVKVCy: "xvgho8r",
135
137
  kGNEyG: "x6s0dn4",
136
138
  kjj79g: "xl56j7k",
137
139
  kmuXW: "x2lah0s",
@@ -154,6 +156,7 @@ var M = {
154
156
  },
155
157
  chip: {
156
158
  k1xSpc: "x3nfvp2",
159
+ kVKVCy: "xvgho8r",
157
160
  kGNEyG: "x6s0dn4",
158
161
  kOIVth: "xunmzkg",
159
162
  k7Eaqz: "xeuugli",
@@ -170,232 +173,209 @@ var M = {
170
173
  $$css: !0
171
174
  }
172
175
  };
173
- function re({ density: e = "standard", ...t }) {
174
- return /* @__PURE__ */ _(N, {
175
- value: e,
176
- children: /* @__PURE__ */ _(S.Root, { ...t })
176
+ function le(e) {
177
+ return /* @__PURE__ */ _(W, {
178
+ value: e.density ?? "standard",
179
+ children: (e.multiple, /* @__PURE__ */ _(S.Combobox, { ...e }))
177
180
  });
178
181
  }
179
- function ie({ className: e, style: n, xstyle: r, ...i }) {
180
- let o = h(N);
181
- return /* @__PURE__ */ _(S.InputGroup, {
182
- ...i,
183
- ...u({
184
- className: e,
185
- style: n,
186
- styles: p.props(a.group, t[o], P.inputGroup, r)
187
- })
188
- });
182
+ function ue({ xstyle: e, ...n }) {
183
+ let i = h(W);
184
+ return /* @__PURE__ */ _("div", { ...p(f.props(r.group, t[i], G.inputGroup, e), n) });
189
185
  }
190
- function ae({ className: e, style: t, ...n }) {
191
- return /* @__PURE__ */ _(S.Label, {
186
+ function de({ className: e, style: t, ...n }) {
187
+ return /* @__PURE__ */ _(S.ComboboxLabel, {
192
188
  ...n,
193
- ...u({
189
+ ...a({
194
190
  className: e,
195
191
  style: t,
196
- styles: p.props(a.label)
192
+ styles: f.props(r.label)
197
193
  })
198
194
  });
199
195
  }
200
- function oe(e) {
201
- return /* @__PURE__ */ _(S.Value, { ...e });
202
- }
203
- function se({ className: t, style: r, ...i }) {
204
- let o = h(N);
205
- return /* @__PURE__ */ _(S.Input, {
206
- ...i,
207
- ...u({
196
+ function fe({ className: t, style: i, ...o }) {
197
+ let s = h(W);
198
+ return /* @__PURE__ */ _(S.ComboboxInput, {
199
+ ...o,
200
+ ...a({
208
201
  className: t,
209
- style: r,
210
- styles: p.props(a.base, a.field, a.singleLineField, d.input, e[o], n[o], a.embedded, P.input)
202
+ style: i,
203
+ styles: f.props(r.base, r.field, r.singleLineField, r.textFieldState, n[s], e[s], r.embedded, G.input)
211
204
  })
212
205
  });
213
206
  }
214
- function ce({ children: e = /* @__PURE__ */ _(b, {
207
+ function pe({ children: e = /* @__PURE__ */ _(b, {
215
208
  size: 16,
216
209
  "aria-hidden": "true"
217
- }), "aria-label": t = "Show options", className: n, style: r, ...i }) {
218
- let a = h(N);
219
- return /* @__PURE__ */ _(S.Trigger, {
220
- ...i,
210
+ }), "aria-label": t = "Show options", className: n, style: r, ...o }) {
211
+ let s = h(W);
212
+ return /* @__PURE__ */ _(S.ComboboxTrigger, {
213
+ ...o,
221
214
  "aria-label": t,
222
- ...u({
215
+ ...a({
223
216
  className: n,
224
217
  style: r,
225
- styles: p.props(o[a], P.action)
218
+ styles: f.props(i[s], G.action)
226
219
  }),
227
220
  children: e
228
221
  });
229
222
  }
230
- function F({ children: e = /* @__PURE__ */ _(x, {
223
+ function me({ children: e = /* @__PURE__ */ _(x, {
231
224
  size: 16,
232
225
  "aria-hidden": "true"
233
- }), "aria-label": t = "Clear selection", className: n, style: r, ...i }) {
234
- let a = h(N);
235
- return /* @__PURE__ */ _(S.Clear, {
236
- ...i,
226
+ }), "aria-label": t = "Clear selection", className: n, style: r, ...o }) {
227
+ let s = h(W);
228
+ return /* @__PURE__ */ _(S.ComboboxClear, {
229
+ ...o,
237
230
  "aria-label": t,
238
- ...u({
231
+ ...a({
239
232
  className: n,
240
233
  style: r,
241
- styles: p.props(o[a], P.action)
234
+ styles: f.props(i[s], G.action)
242
235
  }),
243
236
  children: e
244
237
  });
245
238
  }
246
- function I({ sideOffset: e = 4, className: t, style: n, xstyle: r, ...i }) {
247
- return /* @__PURE__ */ _(S.Positioner, {
239
+ function he({ className: e, style: t, xstyle: n, sideOffset: r = 4, ...i }) {
240
+ return /* @__PURE__ */ _(S.ComboboxContent, {
248
241
  ...i,
249
- sideOffset: e,
250
- ...u({
251
- className: t,
252
- style: n,
253
- styles: p.props(M.positioner, r)
254
- })
255
- });
256
- }
257
- function L({ className: e, style: t, ...n }) {
258
- return /* @__PURE__ */ _(S.Popup, {
259
- ...n,
260
- ...u({
242
+ sideOffset: r,
243
+ ...a({
261
244
  className: e,
262
245
  style: t,
263
- styles: p.props(M.popup)
246
+ styles: f.props(U.popup, U.positioner, n)
264
247
  })
265
248
  });
266
249
  }
267
- function R({ className: e, style: t, ...n }) {
268
- return /* @__PURE__ */ _(S.List, {
250
+ function ge({ className: e, style: t, ...n }) {
251
+ return /* @__PURE__ */ _(S.ComboboxList, {
269
252
  ...n,
270
- ...u({
253
+ ...a({
271
254
  className: e,
272
255
  style: t,
273
256
  styles: { className: "x1717udv x1ghz6dp x1h9acoj x1odjw0f xish69e x1k57tk5" }
274
257
  })
275
258
  });
276
259
  }
277
- function z({ className: e, style: t, ...n }) {
278
- return /* @__PURE__ */ _(S.Item, {
260
+ function _e({ className: e, style: t, ...n }) {
261
+ return /* @__PURE__ */ _(S.ComboboxItem, {
279
262
  ...n,
280
- ...u({
263
+ ...a({
281
264
  className: e,
282
265
  style: t,
283
- styles: p.props(M.option)
266
+ styles: f.props(U.option)
284
267
  })
285
268
  });
286
269
  }
287
- function B({ children: e = /* @__PURE__ */ _(y, {
270
+ function ve({ children: e = /* @__PURE__ */ _(y, {
288
271
  size: 16,
289
272
  "aria-hidden": "true"
290
273
  }), className: t, style: n, ...r }) {
291
- return /* @__PURE__ */ _(S.ItemIndicator, {
274
+ return /* @__PURE__ */ _(S.ComboboxItemIndicator, {
292
275
  ...r,
293
- ...u({
276
+ ...a({
294
277
  className: t,
295
278
  style: n,
296
- styles: p.props(M.icon)
279
+ styles: f.props(U.icon)
297
280
  }),
298
281
  children: e
299
282
  });
300
283
  }
301
- function V({ className: e, style: t, ...n }) {
302
- return /* @__PURE__ */ _(S.Empty, {
284
+ function ye({ className: e, style: t, ...n }) {
285
+ return /* @__PURE__ */ _(S.ComboboxEmpty, {
303
286
  ...n,
304
- ...u({
287
+ ...a({
305
288
  className: e,
306
289
  style: t,
307
290
  styles: { className: "x1ghz6dp x69ldcm x153jb6y xtqrqnz x1778rvt x1uad7yq" }
308
291
  })
309
292
  });
310
293
  }
311
- function H({ className: e, style: t, ...n }) {
312
- return /* @__PURE__ */ _(S.Status, {
294
+ function be({ className: e, style: t, ...n }) {
295
+ return /* @__PURE__ */ _(S.ComboboxStatus, {
313
296
  ...n,
314
- ...u({
297
+ ...a({
315
298
  className: e,
316
299
  style: t,
317
300
  styles: { className: "x1ghz6dp x69ldcm x153jb6y xtqrqnz x1778rvt x1uad7yq" }
318
301
  })
319
302
  });
320
303
  }
321
- function U({ className: e, style: t, ...n }) {
322
- return /* @__PURE__ */ _(S.GroupLabel, {
304
+ function xe({ className: e, style: t, ...n }) {
305
+ return /* @__PURE__ */ _(S.ComboboxGroupLabel, {
323
306
  ...n,
324
- ...u({
307
+ ...a({
325
308
  className: e,
326
309
  style: t,
327
310
  styles: { className: "x1hmw7ec x5g2kb4 x153jb6y xy8obcc xas2l8k xk4h15q" }
328
311
  })
329
312
  });
330
313
  }
331
- function W({ className: e, style: t, ...n }) {
332
- return /* @__PURE__ */ _(S.Chips, {
314
+ function Se({ className: e, style: t, ...n }) {
315
+ return /* @__PURE__ */ _(S.ComboboxChips, {
333
316
  ...n,
334
- ...u({
317
+ ...a({
335
318
  className: e,
336
319
  style: t,
337
320
  styles: { className: "x78zum5 x98rzlu x6s0dn4 x1a02dak xunmzkg xeuugli x14w6jbu" }
338
321
  })
339
322
  });
340
323
  }
341
- function G({ className: e, style: n, ...r }) {
342
- let i = h(N);
343
- return /* @__PURE__ */ _(S.Chip, {
344
- ...r,
345
- ...u({
324
+ function Ce({ className: e, style: n, ...i }) {
325
+ let o = h(W);
326
+ return /* @__PURE__ */ _(S.ComboboxChip, {
327
+ ...i,
328
+ ...a({
346
329
  className: e,
347
330
  style: n,
348
- styles: p.props(a.group, t[i], P.chip)
331
+ styles: f.props(r.group, t[o], G.chip)
349
332
  })
350
333
  });
351
334
  }
352
- function le({ children: e = /* @__PURE__ */ _(x, {
335
+ function we({ children: e = /* @__PURE__ */ _(x, {
353
336
  size: 16,
354
337
  "aria-hidden": "true"
355
338
  }), className: t, style: n, ...r }) {
356
- let i = h(N);
357
- return /* @__PURE__ */ _(S.ChipRemove, {
339
+ let o = h(W);
340
+ return /* @__PURE__ */ _(S.ComboboxChipRemove, {
358
341
  ...r,
359
- ...u({
342
+ ...a({
360
343
  className: t,
361
344
  style: n,
362
- styles: p.props(o[i], P.action)
345
+ styles: f.props(i[o], G.action)
363
346
  }),
364
347
  children: e
365
348
  });
366
349
  }
367
- var ue = {
368
- Root: re,
369
- Label: ae,
370
- InputGroup: ie,
371
- Input: se,
372
- Trigger: ce,
373
- Clear: F,
374
- Portal: S.Portal,
375
- Positioner: I,
376
- Popup: L,
377
- List: R,
378
- Item: z,
379
- ItemIndicator: B,
380
- Empty: V,
381
- Status: H,
382
- Group: S.Group,
383
- GroupLabel: U,
384
- Chips: W,
385
- Chip: G,
386
- ChipRemove: le,
387
- Value: oe,
388
- Collection: S.Collection
350
+ var Te = {
351
+ Root: le,
352
+ Label: de,
353
+ InputGroup: ue,
354
+ Input: fe,
355
+ Trigger: pe,
356
+ Clear: me,
357
+ Popup: he,
358
+ List: ge,
359
+ Item: _e,
360
+ ItemIndicator: ve,
361
+ Empty: ye,
362
+ Status: be,
363
+ Group: S.ComboboxGroup,
364
+ GroupLabel: xe,
365
+ Chips: Se,
366
+ Chip: Ce,
367
+ ChipRemove: we,
368
+ Value: S.ComboboxValue
389
369
  };
390
370
  // packages/forms/src/agent-avatar-picker.tsx
391
- function de({ value: e, onValueChange: t, disabled: n = !1 }) {
392
- let i = g(), a = g();
371
+ function Ee({ value: e, onValueChange: t, disabled: n = !1 }) {
372
+ let r = g(), i = g();
393
373
  return /* @__PURE__ */ v("div", {
394
374
  className: "x78zum5 xdt5ytf xaml1ju x1hz01jw xj57cvi xeuugli x193iq5w x16m5f1z",
395
375
  children: [
396
376
  /* @__PURE__ */ v("div", {
397
377
  className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli",
398
- children: [/* @__PURE__ */ _(l, {
378
+ children: [/* @__PURE__ */ _(u, {
399
379
  seed: "preview",
400
380
  appearance: e,
401
381
  size: "lg"
@@ -413,24 +393,26 @@ function de({ value: e, onValueChange: t, disabled: n = !1 }) {
413
393
  /* @__PURE__ */ v("div", {
414
394
  className: "x78zum5 xdt5ytf x1hnptsi xeuugli",
415
395
  children: [/* @__PURE__ */ _("span", {
416
- id: i,
396
+ id: r,
417
397
  className: "x153jb6y xy8obcc xas2l8k xk4h15q",
418
398
  children: "Shape"
419
399
  }), /* @__PURE__ */ _(w, {
420
- "aria-labelledby": i,
400
+ "aria-labelledby": r,
421
401
  value: e.shape,
422
- onValueChange: (n) => t({
423
- ...e,
424
- shape: n
425
- }),
402
+ onValueChange: (n) => {
403
+ n !== null && t({
404
+ ...e,
405
+ shape: n
406
+ });
407
+ },
426
408
  disabled: n,
427
409
  className: "xrvj5dj x10yxpwy x15eknm3 xunmzkg",
428
- children: r.map((t) => /* @__PURE__ */ _(C.Root, {
410
+ children: o.map((t) => /* @__PURE__ */ _(C, {
429
411
  value: t,
430
412
  "aria-label": t,
431
413
  title: t,
432
414
  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",
433
- children: /* @__PURE__ */ _(l, {
415
+ children: /* @__PURE__ */ _(u, {
434
416
  seed: t,
435
417
  appearance: {
436
418
  ...e,
@@ -444,24 +426,26 @@ function de({ value: e, onValueChange: t, disabled: n = !1 }) {
444
426
  /* @__PURE__ */ v("div", {
445
427
  className: "x78zum5 xdt5ytf x1hnptsi xeuugli",
446
428
  children: [/* @__PURE__ */ _("span", {
447
- id: a,
429
+ id: i,
448
430
  className: "x153jb6y xy8obcc xas2l8k xk4h15q",
449
431
  children: "Color"
450
432
  }), /* @__PURE__ */ _(w, {
451
- "aria-labelledby": a,
433
+ "aria-labelledby": i,
452
434
  value: e.color,
453
- onValueChange: (n) => t({
454
- ...e,
455
- color: n
456
- }),
435
+ onValueChange: (n) => {
436
+ n !== null && t({
437
+ ...e,
438
+ color: n
439
+ });
440
+ },
457
441
  disabled: n,
458
442
  className: "xrvj5dj x10yxpwy x15eknm3 xunmzkg",
459
- children: c.map((t) => /* @__PURE__ */ _(C.Root, {
443
+ children: l.map((t) => /* @__PURE__ */ _(C, {
460
444
  value: t,
461
445
  "aria-label": t,
462
446
  title: t,
463
447
  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",
464
- children: /* @__PURE__ */ _(l, {
448
+ children: /* @__PURE__ */ _(u, {
465
449
  seed: t,
466
450
  appearance: {
467
451
  ...e,
@@ -567,7 +551,7 @@ var K = m("standard"), q = m("standard"), J = {
567
551
  kedk6p: "xysgshy",
568
552
  $$css: !0
569
553
  }
570
- }, fe = {
554
+ }, De = {
571
555
  standard: { $$css: !0 },
572
556
  compact: {
573
557
  kg3NbH: "xbsbsya",
@@ -581,214 +565,222 @@ var K = m("standard"), q = m("standard"), J = {
581
565
  kSflKP: "x11rbrfk xhjjd6e",
582
566
  $$css: !0
583
567
  }
584
- }, pe = {
568
+ }, Oe = {
585
569
  standard: Y.standard,
586
570
  compact: Y.compact
587
571
  };
588
- function me({ className: e, style: t, xstyle: n, ...r }) {
589
- return /* @__PURE__ */ _(T.Root, {
572
+ function ke({ className: e, style: t, xstyle: n, ...r }) {
573
+ return /* @__PURE__ */ _(ne, {
590
574
  ...r,
591
- ...u({
575
+ ...a({
592
576
  className: e,
593
577
  style: t,
594
- styles: p.props(J.fieldset, n)
578
+ styles: f.props(J.fieldset, n)
595
579
  })
596
580
  });
597
581
  }
598
- function he({ className: e, style: t, ...n }) {
599
- return /* @__PURE__ */ _(T.Legend, {
582
+ function Ae({ className: e, style: t, ...n }) {
583
+ return /* @__PURE__ */ _(te, {
600
584
  ...n,
601
- ...u({
585
+ ...a({
602
586
  className: e,
603
587
  style: t,
604
588
  styles: { className: "x1717udv x14yccmi x1hz01jw xtqrqnz x1778rvt x1b5ytql xbixft xj0a0fe" }
605
589
  })
606
590
  });
607
591
  }
608
- function ge({ density: e = "standard", xstyle: n, ...r }) {
592
+ function je({ density: e = "standard", className: n, style: i, xstyle: o, ...s }) {
609
593
  return /* @__PURE__ */ _(K, {
610
594
  value: e,
611
- children: /* @__PURE__ */ _("div", { ...f(p.props(a.group, t[e], n), r) })
595
+ children: /* @__PURE__ */ _(ie, {
596
+ ...s,
597
+ ...a({
598
+ className: n,
599
+ style: i,
600
+ styles: f.props(r.group, t[e], o)
601
+ })
602
+ })
612
603
  });
613
604
  }
614
- function _e(e) {
605
+ function Me(e) {
615
606
  let t = h(K);
616
- return /* @__PURE__ */ _("span", { ...f(p.props(J.addon, fe[t]), e) });
607
+ return /* @__PURE__ */ _("span", { ...E(f.props(J.addon, De[t]), e) });
617
608
  }
618
- function ve({ className: t, style: r, xstyle: i, ...o }) {
619
- let s = h(K);
620
- return /* @__PURE__ */ _(E, {
621
- ...o,
622
- ...u({
623
- className: t,
624
- style: r,
625
- styles: p.props(a.base, a.field, a.singleLineField, d.input, e[s], n[s], a.embedded, i)
626
- })
609
+ function Ne(e) {
610
+ let t = h(K);
611
+ return /* @__PURE__ */ _(d, {
612
+ ...e,
613
+ density: t,
614
+ isEmbedded: !0
627
615
  });
628
616
  }
629
- function ye({ density: e = "standard", className: t, style: n, xstyle: r, ...i }) {
617
+ function Pe({ density: e = "standard", className: t, style: n, xstyle: i, ...o }) {
630
618
  return /* @__PURE__ */ _(q, {
631
619
  value: e,
632
- children: /* @__PURE__ */ _(D.Root, {
633
- ...i,
634
- ...u({
620
+ children: /* @__PURE__ */ _(ae, {
621
+ ...o,
622
+ ...a({
635
623
  className: t,
636
624
  style: n,
637
- styles: p.props(a.fieldRoot, r)
625
+ styles: f.props(r.fieldRoot, i)
638
626
  })
639
627
  })
640
628
  });
641
629
  }
642
- function be({ className: e, style: n, ...r }) {
643
- let i = h(q);
644
- return /* @__PURE__ */ _(D.Group, {
645
- ...r,
646
- ...u({
630
+ function Fe({ className: e, style: n, ...i }) {
631
+ let o = h(q);
632
+ return /* @__PURE__ */ _(ce, {
633
+ ...i,
634
+ ...a({
647
635
  className: e,
648
636
  style: n,
649
- styles: p.props(a.group, t[i])
637
+ styles: f.props(r.group, t[o])
650
638
  })
651
639
  });
652
640
  }
653
- function xe({ className: t, style: r, ...i }) {
654
- let o = h(q);
655
- return /* @__PURE__ */ _(D.Input, {
656
- ...i,
657
- ...u({
641
+ function Ie({ className: t, style: i, ...o }) {
642
+ let s = h(q);
643
+ return /* @__PURE__ */ _(oe, {
644
+ ...o,
645
+ ...a({
658
646
  className: t,
659
- style: r,
660
- styles: p.props(a.base, a.field, a.singleLineField, d.input, e[o], n[o], a.embedded, J.numberInput)
647
+ style: i,
648
+ styles: f.props(r.base, r.field, r.singleLineField, r.textFieldState, n[s], e[s], r.embedded, J.numberInput)
661
649
  })
662
650
  });
663
651
  }
664
- function Se({ children: e = "+", "aria-label": t = "Increase", className: n, style: r, ...i }) {
665
- let a = h(q);
666
- return /* @__PURE__ */ _(D.Increment, {
667
- ...i,
652
+ function Le({ children: e = "+", "aria-label": t = "Increase", className: n, style: r, ...o }) {
653
+ let s = h(q);
654
+ return /* @__PURE__ */ _(k, {
655
+ ...o,
668
656
  "aria-label": t,
669
- ...u({
657
+ ...a({
670
658
  className: n,
671
659
  style: r,
672
- styles: p.props(o[a], J.stepper)
660
+ styles: f.props(i[s], J.stepper)
673
661
  }),
674
662
  children: e
675
663
  });
676
664
  }
677
- function Ce({ children: e = "−", "aria-label": t = "Decrease", className: n, style: r, ...i }) {
678
- let a = h(q);
679
- return /* @__PURE__ */ _(D.Decrement, {
680
- ...i,
665
+ function Re({ children: e = "−", "aria-label": t = "Decrease", className: n, style: r, ...o }) {
666
+ let s = h(q);
667
+ return /* @__PURE__ */ _(se, {
668
+ ...o,
681
669
  "aria-label": t,
682
- ...u({
670
+ ...a({
683
671
  className: n,
684
672
  style: r,
685
- styles: p.props(o[a], J.stepper)
673
+ styles: f.props(i[s], J.stepper)
686
674
  }),
687
675
  children: e
688
676
  });
689
677
  }
690
- function we({ className: e, style: t, xstyle: n, ...r }) {
691
- return /* @__PURE__ */ _(O.Root, {
678
+ function ze({ className: e, style: t, xstyle: n, ...r }) {
679
+ let i = re(), o = /* @__PURE__ */ _(A, {
692
680
  ...r,
693
- ...u({
681
+ ...a({
694
682
  className: e,
695
683
  style: t,
696
- styles: p.props(J.slider, n)
684
+ styles: f.props(J.slider, n)
697
685
  })
698
686
  });
687
+ return i === null ? /* @__PURE__ */ _(D, {
688
+ className: "xjp7ctv",
689
+ children: o
690
+ }) : o;
699
691
  }
700
- function Te({ className: e, style: t, ...n }) {
701
- return /* @__PURE__ */ _(O.Control, {
692
+ function Be({ className: e, style: t, ...n }) {
693
+ return /* @__PURE__ */ _(j, {
702
694
  ...n,
703
- ...u({
695
+ ...a({
704
696
  className: e,
705
697
  style: t,
706
698
  styles: { className: "x1n2onr6 x78zum5 x6s0dn4 xeuugli x17tes2r x17oiadl x5ve5x3 x87ps6o xclew9j x1aah0cb x1w0yyvy" }
707
699
  })
708
700
  });
709
701
  }
710
- function Ee({ className: e, style: t, ...n }) {
711
- return /* @__PURE__ */ _(O.Track, {
702
+ function Ve({ className: e, style: t, ...n }) {
703
+ return /* @__PURE__ */ _(P, {
712
704
  ...n,
713
- ...u({
705
+ ...a({
714
706
  className: e,
715
707
  style: t,
716
708
  styles: { className: "x1n2onr6 xh8yej3 xuoj239 x1fa40ue x1ok0vyi xz6fryc xqmlo60 x1aah0cb" }
717
709
  })
718
710
  });
719
711
  }
720
- function De({ className: e, style: t, ...n }) {
721
- return /* @__PURE__ */ _(O.Indicator, {
712
+ function He({ className: e, style: t, ...n }) {
713
+ return /* @__PURE__ */ _(M, {
722
714
  ...n,
723
- ...u({
715
+ ...a({
724
716
  className: e,
725
717
  style: t,
726
718
  styles: { className: "x10l6tqk x5yr21d x1ok0vyi x1pt885t x1g487ut x60x5n0" }
727
719
  })
728
720
  });
729
721
  }
730
- function Oe({ className: e, style: t, ...n }) {
731
- return /* @__PURE__ */ _(O.Thumb, {
722
+ function Ue({ className: e, style: t, ...n }) {
723
+ return /* @__PURE__ */ _(N, {
732
724
  ...n,
733
- ...u({
725
+ ...a({
734
726
  className: e,
735
727
  style: t,
736
- styles: { className: "x1lliihq x9f619 x1kky2od xlup9mm xmkeg23 x1y0btm7 x159tnba x1ok0vyi xpvm0e4 x18vtl6o x13rtz23 x13qnu6 x9v5kkp x19rmrnh x7s97pk x1s928wv x1j6awrg xoqv437 x16v8oms x128ww4c x10wh5f8 x1s4ve4b" }
728
+ styles: { className: "x1lliihq x9f619 x1kky2od xlup9mm xmkeg23 x1y0btm7 x159tnba x1ok0vyi xpvm0e4 x18vtl6o x13rtz23 x1885yjv xnnj0qo xdo2bxc xdjuwb3 x1s928wv x1j6awrg xoqv437 x16v8oms x128ww4c x10wh5f8 x1s4ve4b" }
737
729
  })
738
730
  });
739
731
  }
740
- function ke({ className: e, style: t, ...n }) {
741
- return /* @__PURE__ */ _(O.Label, {
732
+ function We({ className: e, style: t, ...n }) {
733
+ return /* @__PURE__ */ _(ee, {
742
734
  ...n,
743
- ...u({
735
+ ...a({
744
736
  className: e,
745
737
  style: t,
746
- styles: p.props(a.label)
738
+ styles: f.props(r.label)
747
739
  })
748
740
  });
749
741
  }
750
- function Ae({ className: e, style: t, ...n }) {
751
- return /* @__PURE__ */ _(O.Value, {
742
+ function Ge({ className: e, style: t, ...n }) {
743
+ return /* @__PURE__ */ _(F, {
752
744
  ...n,
753
- ...u({
745
+ ...a({
754
746
  className: e,
755
747
  style: t,
756
748
  styles: { className: "x1hz01jw xtqrqnz x1778rvt xss6m8b x153jb6y" }
757
749
  })
758
750
  });
759
751
  }
760
- function je({ density: t = "standard", className: r, style: i, xstyle: o, ...s }) {
761
- return /* @__PURE__ */ _(E, {
762
- ...s,
752
+ function Ke({ density: t = "standard", className: i, style: o, xstyle: s, ...c }) {
753
+ return /* @__PURE__ */ _(O, {
754
+ ...c,
763
755
  type: "file",
764
- ...u({
765
- className: r,
766
- style: i,
767
- styles: p.props(a.base, a.field, a.singleLineField, d.input, e[t], n[t], J.file, pe[t], o)
756
+ ...a({
757
+ className: i,
758
+ style: o,
759
+ styles: f.props(r.base, r.field, r.singleLineField, r.textFieldState, n[t], e[t], J.file, Oe[t], s)
768
760
  })
769
761
  });
770
762
  }
771
- var Me = {
772
- Root: me,
773
- Legend: he
774
- }, Ne = {
775
- Root: ge,
776
- Addon: _e,
777
- Input: ve
778
- }, Pe = {
779
- Root: ye,
780
- Group: be,
781
- Input: xe,
782
- Increment: Se,
783
- Decrement: Ce
784
- }, Fe = {
785
- Root: we,
786
- Label: ke,
787
- Value: Ae,
788
- Control: Te,
789
- Track: Ee,
790
- Indicator: De,
791
- Thumb: Oe
763
+ var qe = {
764
+ Root: ke,
765
+ Legend: Ae
766
+ }, Je = {
767
+ Root: je,
768
+ Addon: Me,
769
+ Input: Ne
770
+ }, Ye = {
771
+ Root: Pe,
772
+ Group: Fe,
773
+ Input: Ie,
774
+ Increment: Le,
775
+ Decrement: Re
776
+ }, Xe = {
777
+ Root: ze,
778
+ Label: We,
779
+ Value: Ge,
780
+ Control: Be,
781
+ Track: Ve,
782
+ Indicator: He,
783
+ Thumb: Ue
792
784
  }, X = {
793
785
  root: {
794
786
  k1xSpc: "x78zum5",
@@ -805,7 +797,7 @@ var Me = {
805
797
  kLZC3w: "xhjagg4",
806
798
  $$css: !0
807
799
  }
808
- }, Ie = {
800
+ }, Ze = {
809
801
  start: {
810
802
  kjj79g: "x1nhvcw1",
811
803
  $$css: !0
@@ -815,166 +807,137 @@ var Me = {
815
807
  $$css: !0
816
808
  }
817
809
  };
818
- function Le({ children: e, align: t = "end", hasSeparator: n = !1, xstyle: r }) {
810
+ function Qe({ children: e, align: t = "end", hasSeparator: n = !1, xstyle: r }) {
819
811
  return /* @__PURE__ */ _("div", {
820
- ...p.props(X.root, Ie[t], n && X.separated, r),
812
+ ...f.props(X.root, Ze[t], n && X.separated, r),
821
813
  children: e
822
814
  });
823
815
  }
824
816
  // packages/forms/src/select.tsx
825
- var Re = {
826
- outline: M.outlined,
827
- ghost: M.ghost
817
+ var $e = {
818
+ outline: U.outlined,
819
+ ghost: U.ghost
828
820
  };
829
- function ze(e) {
830
- return /* @__PURE__ */ _(k.Root, { ...e });
821
+ function et(e) {
822
+ return e.multiple, /* @__PURE__ */ _(I.Select, { ...e });
831
823
  }
832
- function Be({ variant: t = "outline", density: n = "standard", className: r, style: i, xstyle: s, ...c }) {
833
- return /* @__PURE__ */ _(k.Trigger, {
834
- ...c,
835
- ...u({
836
- className: r,
837
- style: i,
838
- styles: p.props(a.base, M.trigger, Re[t], e[n], o[n], s)
824
+ function tt({ variant: e = "outline", density: t = "standard", className: o, style: s, xstyle: c, ...l }) {
825
+ return /* @__PURE__ */ _(I.SelectTrigger, {
826
+ ...l,
827
+ ...a({
828
+ className: o,
829
+ style: s,
830
+ styles: f.props(r.base, U.trigger, $e[e], n[t], i[t], c)
839
831
  })
840
832
  });
841
833
  }
842
- function Ve({ className: e, style: t, xstyle: n, ...r }) {
843
- return /* @__PURE__ */ _(k.Value, {
834
+ function nt({ className: e, style: t, xstyle: n, ...r }) {
835
+ return /* @__PURE__ */ _(I.SelectValue, {
844
836
  ...r,
845
- ...u({
837
+ ...a({
846
838
  className: e,
847
839
  style: t,
848
- styles: p.props(M.value, n)
840
+ styles: f.props(U.value, n)
849
841
  })
850
842
  });
851
843
  }
852
- function He({ className: e, style: t, ...n }) {
853
- return /* @__PURE__ */ _(k.Icon, {
854
- ...n,
855
- ...u({
856
- className: e,
857
- style: t,
858
- styles: p.props(M.icon)
859
- })
844
+ function rt(e) {
845
+ return /* @__PURE__ */ _("span", {
846
+ "aria-hidden": !0,
847
+ ...p(f.props(U.icon), e)
860
848
  });
861
849
  }
862
- function Ue({ className: e, style: t, xstyle: n, sideOffset: r = 4, alignItemWithTrigger: i = !1, ...a }) {
863
- return /* @__PURE__ */ _(k.Positioner, {
864
- ...a,
850
+ function it({ xstyle: e, className: t, style: n, sideOffset: r = 4, ...i }) {
851
+ return /* @__PURE__ */ _(I.SelectContent, {
852
+ ...i,
865
853
  sideOffset: r,
866
- alignItemWithTrigger: i,
867
- ...u({
868
- className: e,
869
- style: t,
870
- styles: p.props(M.positioner, n)
871
- })
872
- });
873
- }
874
- function We({ className: e, style: t, ...n }) {
875
- return /* @__PURE__ */ _(k.Popup, {
876
- ...n,
877
- ...u({
878
- className: e,
879
- style: t,
880
- styles: p.props(M.popup)
854
+ ...a({
855
+ className: t,
856
+ style: n,
857
+ styles: f.props(U.popup, U.positioner, e)
881
858
  })
882
859
  });
883
860
  }
884
- function Ge({ className: e, style: t, ...n }) {
885
- return /* @__PURE__ */ _(k.Item, {
861
+ function at({ className: e, style: t, ...n }) {
862
+ return /* @__PURE__ */ _(I.SelectItem, {
886
863
  ...n,
887
- ...u({
864
+ ...a({
888
865
  className: e,
889
866
  style: t,
890
- styles: p.props(M.option)
867
+ styles: f.props(U.option)
891
868
  })
892
869
  });
893
870
  }
894
- function Ke({ className: e, style: t, ...n }) {
895
- return /* @__PURE__ */ _(k.ItemText, {
871
+ function ot({ className: e, style: t, ...n }) {
872
+ return /* @__PURE__ */ _(I.SelectItemText, {
896
873
  ...n,
897
- ...u({
874
+ ...a({
898
875
  className: e,
899
876
  style: t,
900
- styles: p.props(M.optionText)
877
+ styles: f.props(U.optionText)
901
878
  })
902
879
  });
903
880
  }
904
- function qe({ className: e, style: t, ...n }) {
905
- return /* @__PURE__ */ _(k.ItemIndicator, {
881
+ function st({ className: e, style: t, ...n }) {
882
+ return /* @__PURE__ */ _(I.SelectItemIndicator, {
906
883
  ...n,
907
- ...u({
884
+ ...a({
908
885
  className: e,
909
886
  style: t,
910
- styles: p.props(M.icon)
887
+ styles: f.props(U.icon)
911
888
  })
912
889
  });
913
890
  }
914
891
  var Z = {
915
- Root: ze,
916
- Trigger: Be,
917
- Value: Ve,
918
- Icon: He,
919
- Portal: k.Portal,
920
- Positioner: Ue,
921
- Popup: We,
922
- List: k.List,
923
- Item: Ge,
924
- ItemText: Ke,
925
- ItemIndicator: qe
892
+ Root: et,
893
+ Trigger: tt,
894
+ Value: nt,
895
+ Icon: rt,
896
+ Popup: it,
897
+ List: I.SelectList,
898
+ Item: at,
899
+ ItemText: ot,
900
+ ItemIndicator: st
926
901
  };
927
902
  // packages/forms/src/select-control.tsx
928
- function Je({ label: e, items: t, placeholder: n, align: r = "start", value: i, readOnly: a, onValueChange: o, name: s, form: c, required: l, autoComplete: u, inputRef: d, disabled: f, id: p, onKeyDown: m, ...h }) {
929
- let g = ee(null), x = a === !0 ? {
903
+ function ct({ 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
+ let m = a === !0 ? {
930
905
  value: i,
931
906
  readOnly: !0
932
907
  } : {
933
908
  value: i,
934
909
  onValueChange: (e, n) => {
935
- let r = n.reason === "none" && n.event.type === "base-ui", i = r && g.current === null, a = e === null || t.some((t) => t.value === e && t.disabled !== !0);
936
- i || !a ? n.cancel() : (r && (g.current = null), o?.(e, n));
910
+ e === null || t.some((t) => t.value === e && t.disabled !== !0) ? o?.(e, n) : n.cancel();
937
911
  }
938
912
  };
939
913
  return /* @__PURE__ */ v(Z.Root, {
940
- ...x,
941
- items: t,
942
- name: s,
943
- form: c,
944
- required: l,
945
- autoComplete: u,
946
- inputRef: d,
947
- disabled: f,
948
- id: p,
914
+ ...m,
915
+ items: [...t],
916
+ ...l !== void 0 && { name: l },
917
+ ...u !== void 0 && { form: u },
918
+ required: d ?? !1,
919
+ ...f !== void 0 && { autoComplete: f },
920
+ disabled: s ?? !1,
949
921
  children: [/* @__PURE__ */ v(Z.Trigger, {
950
- ...h,
951
- id: p,
922
+ ...p,
923
+ id: c,
952
924
  "aria-label": e,
953
- disabled: f,
954
- onKeyDown: (e) => {
955
- m?.(e);
956
- let t = e.ctrlKey || e.metaKey || e.altKey;
957
- if (e.defaultPrevented || e.key.length !== 1 || t) return;
958
- let n = e.nativeEvent;
959
- g.current = n, queueMicrotask(() => {
960
- g.current === n && (g.current = null);
961
- });
962
- },
963
- children: [/* @__PURE__ */ _(Z.Value, { placeholder: n }), /* @__PURE__ */ _(Z.Icon, { children: /* @__PURE__ */ _(b, {
925
+ disabled: s ?? !1,
926
+ children: [/* @__PURE__ */ _(Z.Value, { placeholder: n ?? "" }), /* @__PURE__ */ _(Z.Icon, { children: /* @__PURE__ */ _(b, {
964
927
  size: 16,
965
928
  "aria-hidden": !0
966
929
  }) })]
967
- }), /* @__PURE__ */ _(Z.Portal, { children: /* @__PURE__ */ _(Z.Positioner, {
930
+ }), /* @__PURE__ */ _(Z.Popup, {
968
931
  align: r,
969
- children: /* @__PURE__ */ _(Z.Popup, { children: /* @__PURE__ */ _(Z.List, { children: t.map((e) => /* @__PURE__ */ v(Z.Item, {
932
+ children: /* @__PURE__ */ _(Z.List, { children: t.map((e) => /* @__PURE__ */ v(Z.Item, {
970
933
  value: e.value,
971
- disabled: e.disabled,
934
+ disabled: e.disabled ?? !1,
972
935
  children: [/* @__PURE__ */ _(Z.ItemText, { children: e.label }), /* @__PURE__ */ _(Z.ItemIndicator, { children: /* @__PURE__ */ _(y, {
973
936
  size: 16,
974
937
  "aria-hidden": !0
975
938
  }) })]
976
- }, e.value)) }) })
977
- }) })]
939
+ }, e.value)) })
940
+ })]
978
941
  });
979
942
  }
980
943
  // packages/forms/src/selection.tsx
@@ -1085,20 +1048,24 @@ var Q = {
1085
1048
  $$css: !0
1086
1049
  }
1087
1050
  };
1088
- function $({ className: e, style: t, xstyle: n, ...r }) {
1089
- return /* @__PURE__ */ _(A.Root, {
1090
- ...r,
1091
- ...u({
1051
+ function lt({ className: e, style: t, xstyle: n, indeterminate: r = !1, checked: i, defaultChecked: o, onCheckedChange: s, ...c }) {
1052
+ let l = r ? "indeterminate" : i;
1053
+ return /* @__PURE__ */ _(L, {
1054
+ ...c,
1055
+ ...l !== void 0 && { checked: l },
1056
+ ...l === void 0 && o !== void 0 && { defaultChecked: o },
1057
+ onCheckedChange: (e, t) => s?.(e === !0, t),
1058
+ ...a({
1092
1059
  className: e,
1093
1060
  style: t,
1094
- styles: p.props(Q.choice, n)
1061
+ styles: f.props(Q.choice, n)
1095
1062
  })
1096
1063
  });
1097
1064
  }
1098
- function Ye({ children: e, className: t, style: n, ...r }) {
1099
- return /* @__PURE__ */ _(A.Indicator, {
1065
+ function ut({ children: e, className: t, style: n, ...r }) {
1066
+ return /* @__PURE__ */ _(R, {
1100
1067
  ...r,
1101
- ...u({
1068
+ ...a({
1102
1069
  className: t,
1103
1070
  style: n,
1104
1071
  styles: {
@@ -1109,92 +1076,97 @@ function Ye({ children: e, className: t, style: n, ...r }) {
1109
1076
  children: e
1110
1077
  });
1111
1078
  }
1112
- function Xe({ className: e, style: t, xstyle: n, ...r }) {
1079
+ function dt({ className: e, style: t, xstyle: n, onValueChange: r, ...i }) {
1113
1080
  return /* @__PURE__ */ _(w, {
1114
- ...r,
1115
- ...u({
1081
+ ...i,
1082
+ onValueChange: (e, t) => {
1083
+ e !== null && r?.(e, t);
1084
+ },
1085
+ ...a({
1116
1086
  className: e,
1117
1087
  style: t,
1118
- styles: p.props(Q.group, n)
1088
+ styles: f.props(Q.group, n)
1119
1089
  })
1120
1090
  });
1121
1091
  }
1122
- function Ze({ className: e, style: t, xstyle: n, ...r }) {
1123
- return /* @__PURE__ */ _(C.Root, {
1092
+ function ft({ className: e, style: t, xstyle: n, ...r }) {
1093
+ return /* @__PURE__ */ _(C, {
1124
1094
  ...r,
1125
- ...u({
1095
+ ...a({
1126
1096
  className: e,
1127
1097
  style: t,
1128
- styles: p.props(Q.choice, Q.radio, n)
1098
+ styles: f.props(Q.choice, Q.radio, n)
1129
1099
  })
1130
1100
  });
1131
1101
  }
1132
- function Qe({ className: e, style: t, ...n }) {
1133
- return /* @__PURE__ */ _(C.Indicator, {
1102
+ function $({ className: e, style: t, ...n }) {
1103
+ return /* @__PURE__ */ _(T, {
1134
1104
  ...n,
1135
- ...u({
1105
+ ...a({
1136
1106
  className: e,
1137
1107
  style: t,
1138
1108
  styles: { className: "x1n2onr6 x3nfvp2 x6s0dn4 xl56j7k x1f6aaap x1v4s8kt xols6we x16rqkct x1g9zx2t" }
1139
1109
  })
1140
1110
  });
1141
1111
  }
1142
- function $e({ className: e, style: t, xstyle: n, ...r }) {
1143
- return /* @__PURE__ */ _(j.Root, {
1112
+ function pt({ className: e, style: t, xstyle: n, ...r }) {
1113
+ return /* @__PURE__ */ _(z, {
1144
1114
  ...r,
1145
- ...u({
1115
+ ...a({
1146
1116
  className: e,
1147
1117
  style: t,
1148
- styles: p.props(Q.switch, n)
1118
+ styles: f.props(Q.switch, n)
1149
1119
  })
1150
1120
  });
1151
1121
  }
1152
- function et({ className: e, style: t, ...n }) {
1153
- return /* @__PURE__ */ _(j.Thumb, {
1122
+ function mt({ className: e, style: t, ...n }) {
1123
+ return /* @__PURE__ */ _(B, {
1154
1124
  ...n,
1155
- ...u({
1125
+ ...a({
1156
1126
  className: e,
1157
1127
  style: t,
1158
1128
  styles: { className: "x1n2onr6 x6jxa94 x1v9usgg x7phf20 x1cum3z5 xpvm0e4 xs8k099" }
1159
1129
  })
1160
1130
  });
1161
1131
  }
1162
- function tt({ className: e, style: t, xstyle: n, ...r }) {
1163
- return /* @__PURE__ */ _(ne, {
1164
- ...r,
1165
- ...u({
1132
+ function ht({ className: e, style: t, xstyle: n, value: r, defaultValue: i, ...o }) {
1133
+ return /* @__PURE__ */ _(H, {
1134
+ ...o,
1135
+ ...r !== void 0 && { value: [...r] },
1136
+ ...i !== void 0 && { defaultValue: [...i] },
1137
+ ...a({
1166
1138
  className: e,
1167
1139
  style: t,
1168
- styles: p.props(Q.toggles, n)
1140
+ styles: f.props(Q.toggles, n)
1169
1141
  })
1170
1142
  });
1171
1143
  }
1172
- function nt({ className: e, style: t, ...n }) {
1173
- return /* @__PURE__ */ _(te, {
1144
+ function gt({ className: e, style: t, ...n }) {
1145
+ return /* @__PURE__ */ _(V, {
1174
1146
  ...n,
1175
- ...u({
1147
+ ...a({
1176
1148
  className: e,
1177
1149
  style: t,
1178
1150
  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" }
1179
1151
  })
1180
1152
  });
1181
1153
  }
1182
- var rt = {
1183
- Root: $,
1184
- Indicator: Ye
1185
- }, it = {
1186
- Root: Xe,
1187
- Item: Ze,
1188
- Indicator: Qe
1189
- }, at = {
1190
- Root: $e,
1191
- Thumb: et
1192
- }, ot = {
1193
- Root: tt,
1194
- Item: nt
1154
+ var _t = {
1155
+ Root: lt,
1156
+ Indicator: ut
1157
+ }, vt = {
1158
+ Root: dt,
1159
+ Item: ft,
1160
+ Indicator: $
1161
+ }, yt = {
1162
+ Root: pt,
1163
+ Thumb: mt
1164
+ }, bt = {
1165
+ Root: ht,
1166
+ Item: gt
1195
1167
  };
1196
1168
  // packages/forms/src/settings-row.tsx
1197
- function st({ label: e, description: t, controlId: n, isPlaceholder: r = !1, children: i }) {
1169
+ function xt({ label: e, description: t, controlId: n, isPlaceholder: r = !1, children: i }) {
1198
1170
  let a = g(), o = `${n ?? a}-description`;
1199
1171
  return /* @__PURE__ */ v("div", {
1200
1172
  role: "group",
@@ -1221,18 +1193,18 @@ function st({ label: e, description: t, controlId: n, isPlaceholder: r = !1, chi
1221
1193
  });
1222
1194
  }
1223
1195
  // packages/forms/src/settings-section.tsx
1224
- function ct({ title: e, description: t, children: n }) {
1196
+ function St({ title: e, description: t, children: n }) {
1225
1197
  let r = g();
1226
1198
  return /* @__PURE__ */ v("section", {
1227
1199
  "aria-labelledby": r,
1228
1200
  className: "xrvj5dj x1mkdm3x x1n8ia3y xeuugli",
1229
1201
  children: [/* @__PURE__ */ v("header", {
1230
1202
  className: "xrvj5dj xunmzkg xeuugli",
1231
- children: [/* @__PURE__ */ _(s, {
1203
+ children: [/* @__PURE__ */ _(c, {
1232
1204
  id: r,
1233
1205
  children: e
1234
- }), t !== void 0 && /* @__PURE__ */ _(i, { children: t })]
1206
+ }), t !== void 0 && /* @__PURE__ */ _(s, { children: t })]
1235
1207
  }), /* @__PURE__ */ _("div", { children: n })]
1236
1208
  });
1237
1209
  }
1238
- export { at as a, Z as c, je as d, Ne as f, ue as g, de as h, it as i, Le as l, Fe as m, st as n, ot as o, Pe as p, rt as r, Je as s, ct as t, Me as u };
1210
+ export { yt as a, Z as c, Ke as d, Je as f, Te as g, Ee as h, vt as i, Qe as l, Xe as m, xt as n, bt as o, Ye as p, _t as r, ct as s, St as t, qe as u };