@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.
- package/NOTICE +11 -19
- package/README.md +49 -25
- package/dist/accessibility-P89UG9-r.js +25 -0
- package/dist/agent.js +1 -0
- package/dist/ai.js +50 -44
- package/dist/{categorical-values-BECG-J6R.js → categorical-values-DnGR_pQx.js} +3 -3
- package/dist/{chart-frame-CJFnI39T.js → chart-frame-BsyI1Zc8.js} +58 -57
- package/dist/{chart-input-DwAobO8Y.js → chart-input-r4S3-QCT.js} +2 -2
- package/dist/chart-navigation-D7OkLdSx.js +119 -0
- package/dist/charts/cartesian.js +560 -583
- package/dist/charts/distribution.js +218 -218
- package/dist/charts/graph.js +86 -85
- package/dist/charts/hierarchy.js +4 -4
- package/dist/charts/matrix.js +148 -147
- package/dist/charts/timeline.js +77 -76
- package/dist/charts.js +2 -2
- package/dist/code-block-C4K1sM9O.js +255 -0
- package/dist/collections.js +828 -607
- package/dist/constants.stylex-BILvnwUk.js +84 -0
- 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 +184 -77
- package/dist/{content-link-B3ObdyZY.js → content-link-CBDqSvgP.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/control-styles-D3q_Qyxi.js +179 -0
- package/dist/csp.js +14 -1
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +359 -245
- package/dist/forms-I-WMHTkr.js +139 -0
- package/dist/forms.js +3 -3
- package/dist/index.js +1 -1
- package/dist/layout.js +271 -241
- package/dist/navigation/commands.js +87 -76
- package/dist/{navigation-D2_sGy3C.js → navigation-CveMIuXI.js} +1 -1
- package/dist/navigation.js +2 -2
- package/dist/overlays.js +1 -1
- package/dist/packages/ai/src/message-action.d.ts +1 -1
- package/dist/packages/charts/src/chart-navigation.d.ts +18 -2
- package/dist/packages/charts/src/chart-surface.d.ts +23 -0
- package/dist/packages/charts/src/distribution/distribution-plot.d.ts +3 -2
- package/dist/packages/collections/src/data-table.d.ts +7 -2
- package/dist/packages/collections/src/index.d.ts +4 -1
- package/dist/packages/collections/src/query-controls.d.ts +18 -0
- package/dist/packages/collections/src/table-query.d.ts +64 -0
- package/dist/packages/collections/src/use-collection-controls.d.ts +3 -8
- package/dist/packages/content/src/pierre-theme.d.ts +0 -1
- package/dist/packages/core/src/actions.d.ts +15 -13
- package/dist/packages/core/src/copy-value.d.ts +3 -2
- package/dist/packages/core/src/disclosure.d.ts +14 -11
- package/dist/packages/feedback/src/notifications.d.ts +15 -15
- package/dist/packages/feedback/src/toast.d.ts +9 -3
- package/dist/packages/forms/src/combobox.d.ts +31 -41
- 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/field-styles.d.ts +0 -19
- package/dist/packages/forms/src/form-controls.d.ts +26 -24
- package/dist/packages/forms/src/forms.d.ts +17 -14
- package/dist/packages/forms/src/select-control.d.ts +6 -4
- package/dist/packages/forms/src/select.d.ts +14 -18
- package/dist/packages/forms/src/selection-state.d.ts +11 -0
- package/dist/packages/forms/src/selection-styles.d.ts +3 -0
- package/dist/packages/forms/src/selection.d.ts +21 -19
- package/dist/packages/foundations/src/agent/index.d.ts +2 -0
- package/dist/packages/foundations/src/control-state.d.ts +2 -3
- package/dist/packages/foundations/src/control-styles.d.ts +19 -0
- package/dist/packages/foundations/src/csp/index.d.ts +1 -1
- package/dist/packages/foundations/src/csp/provider.d.ts +3 -0
- package/dist/packages/foundations/src/style-composition.d.ts +4 -1
- package/dist/packages/layout/src/app-shell.d.ts +12 -1
- package/dist/packages/layout/src/index.d.ts +1 -1
- package/dist/packages/layout/src/navigation-rail.d.ts +15 -2
- package/dist/packages/layout/src/resizable.d.ts +2 -2
- package/dist/packages/layout/src/sidebar.d.ts +4 -3
- package/dist/packages/navigation/src/tab-styles.d.ts +1 -1
- package/dist/packages/navigation/src/tabs.d.ts +12 -10
- package/dist/packages/overlays/src/alert-dialog.d.ts +19 -13
- package/dist/packages/overlays/src/dialog.d.ts +39 -24
- package/dist/packages/overlays/src/drawer.d.ts +16 -26
- package/dist/packages/overlays/src/menu.d.ts +37 -44
- package/dist/packages/overlays/src/overlay-root.d.ts +10 -0
- package/dist/packages/overlays/src/popover.d.ts +11 -20
- package/dist/packages/overlays/src/preview.d.ts +6 -13
- package/dist/packages/overlays/src/tooltip.d.ts +12 -15
- package/dist/{pierre-diff-CaPsfQRo.js → pierre-diff-DJ3oOfPX.js} +5 -5
- package/dist/{src-DPRmO-JY.js → src-CNV1ewzb.js} +379 -407
- package/dist/{src-CSWIG_op.js → src-CQQvXi7a.js} +58 -81
- package/dist/{src-DWjAoOyd.js → src-D2OHco8V.js} +42 -41
- package/dist/src-DfOAlAd2.js +750 -0
- package/dist/src-na2DdkKI.js +561 -0
- package/dist/{src-C-Sx37kz.js → src-s3tWwnN4.js} +361 -518
- package/dist/styles.js +3 -0
- package/dist/{elements.css → styles2.css} +195 -97
- package/dist/tokens.js +3 -1
- package/dist/{tokens.stylex-CJbIDPB9.js → tokens.stylex-dF5CACEJ.js} +13 -93
- package/package.json +8 -9
- package/skills/elements-workspace/SKILL.md +12 -0
- package/dist/accessibility-C-aIZ1Yx.js +0 -15
- package/dist/chart-navigation-CBIeNtJq.js +0 -67
- package/dist/code-block-aC0Htt4N.js +0 -184
- package/dist/forms-BQQFas9g.js +0 -118
- package/dist/foundations.css +0 -7
- package/dist/packages/content/src/tree/pierre-tree.d.ts +0 -3
- package/dist/pierre-theme-BpNaWn1x.js +0 -126
- package/dist/pierre-tree-CYCRjdGG.js +0 -106
- package/dist/src-d7EAi61b.js +0 -617
- package/dist/src-nkgFDl-g.js +0 -1171
- package/dist/style-composition-uYlczSsB.js +0 -9
- package/styles.css +0 -2
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { i as
|
|
4
|
-
import {
|
|
5
|
-
import * as
|
|
6
|
-
import {
|
|
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
|
|
10
|
-
import { Radio as C } from "@
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { Slider as
|
|
16
|
-
import
|
|
17
|
-
import { Checkbox as
|
|
18
|
-
import { Switch as
|
|
19
|
-
import { Toggle as
|
|
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
|
|
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
|
-
},
|
|
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
|
|
174
|
-
return /* @__PURE__ */ _(
|
|
175
|
-
value: e,
|
|
176
|
-
children: /* @__PURE__ */ _(S.
|
|
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
|
|
180
|
-
let
|
|
181
|
-
return /* @__PURE__ */ _(
|
|
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
|
|
191
|
-
return /* @__PURE__ */ _(S.
|
|
186
|
+
function de({ className: e, style: t, ...n }) {
|
|
187
|
+
return /* @__PURE__ */ _(S.ComboboxLabel, {
|
|
192
188
|
...n,
|
|
193
|
-
...
|
|
189
|
+
...a({
|
|
194
190
|
className: e,
|
|
195
191
|
style: t,
|
|
196
|
-
styles:
|
|
192
|
+
styles: f.props(r.label)
|
|
197
193
|
})
|
|
198
194
|
});
|
|
199
195
|
}
|
|
200
|
-
function
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
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:
|
|
210
|
-
styles:
|
|
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
|
|
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, ...
|
|
218
|
-
let
|
|
219
|
-
return /* @__PURE__ */ _(S.
|
|
220
|
-
...
|
|
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
|
-
...
|
|
215
|
+
...a({
|
|
223
216
|
className: n,
|
|
224
217
|
style: r,
|
|
225
|
-
styles:
|
|
218
|
+
styles: f.props(i[s], G.action)
|
|
226
219
|
}),
|
|
227
220
|
children: e
|
|
228
221
|
});
|
|
229
222
|
}
|
|
230
|
-
function
|
|
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, ...
|
|
234
|
-
let
|
|
235
|
-
return /* @__PURE__ */ _(S.
|
|
236
|
-
...
|
|
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
|
-
...
|
|
231
|
+
...a({
|
|
239
232
|
className: n,
|
|
240
233
|
style: r,
|
|
241
|
-
styles:
|
|
234
|
+
styles: f.props(i[s], G.action)
|
|
242
235
|
}),
|
|
243
236
|
children: e
|
|
244
237
|
});
|
|
245
238
|
}
|
|
246
|
-
function
|
|
247
|
-
return /* @__PURE__ */ _(S.
|
|
239
|
+
function he({ className: e, style: t, xstyle: n, sideOffset: r = 4, ...i }) {
|
|
240
|
+
return /* @__PURE__ */ _(S.ComboboxContent, {
|
|
248
241
|
...i,
|
|
249
|
-
sideOffset:
|
|
250
|
-
...
|
|
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:
|
|
246
|
+
styles: f.props(U.popup, U.positioner, n)
|
|
264
247
|
})
|
|
265
248
|
});
|
|
266
249
|
}
|
|
267
|
-
function
|
|
268
|
-
return /* @__PURE__ */ _(S.
|
|
250
|
+
function ge({ className: e, style: t, ...n }) {
|
|
251
|
+
return /* @__PURE__ */ _(S.ComboboxList, {
|
|
269
252
|
...n,
|
|
270
|
-
...
|
|
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
|
|
278
|
-
return /* @__PURE__ */ _(S.
|
|
260
|
+
function _e({ className: e, style: t, ...n }) {
|
|
261
|
+
return /* @__PURE__ */ _(S.ComboboxItem, {
|
|
279
262
|
...n,
|
|
280
|
-
...
|
|
263
|
+
...a({
|
|
281
264
|
className: e,
|
|
282
265
|
style: t,
|
|
283
|
-
styles:
|
|
266
|
+
styles: f.props(U.option)
|
|
284
267
|
})
|
|
285
268
|
});
|
|
286
269
|
}
|
|
287
|
-
function
|
|
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.
|
|
274
|
+
return /* @__PURE__ */ _(S.ComboboxItemIndicator, {
|
|
292
275
|
...r,
|
|
293
|
-
...
|
|
276
|
+
...a({
|
|
294
277
|
className: t,
|
|
295
278
|
style: n,
|
|
296
|
-
styles:
|
|
279
|
+
styles: f.props(U.icon)
|
|
297
280
|
}),
|
|
298
281
|
children: e
|
|
299
282
|
});
|
|
300
283
|
}
|
|
301
|
-
function
|
|
302
|
-
return /* @__PURE__ */ _(S.
|
|
284
|
+
function ye({ className: e, style: t, ...n }) {
|
|
285
|
+
return /* @__PURE__ */ _(S.ComboboxEmpty, {
|
|
303
286
|
...n,
|
|
304
|
-
...
|
|
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
|
|
312
|
-
return /* @__PURE__ */ _(S.
|
|
294
|
+
function be({ className: e, style: t, ...n }) {
|
|
295
|
+
return /* @__PURE__ */ _(S.ComboboxStatus, {
|
|
313
296
|
...n,
|
|
314
|
-
...
|
|
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
|
|
322
|
-
return /* @__PURE__ */ _(S.
|
|
304
|
+
function xe({ className: e, style: t, ...n }) {
|
|
305
|
+
return /* @__PURE__ */ _(S.ComboboxGroupLabel, {
|
|
323
306
|
...n,
|
|
324
|
-
...
|
|
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
|
|
332
|
-
return /* @__PURE__ */ _(S.
|
|
314
|
+
function Se({ className: e, style: t, ...n }) {
|
|
315
|
+
return /* @__PURE__ */ _(S.ComboboxChips, {
|
|
333
316
|
...n,
|
|
334
|
-
...
|
|
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
|
|
342
|
-
let
|
|
343
|
-
return /* @__PURE__ */ _(S.
|
|
344
|
-
...
|
|
345
|
-
...
|
|
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:
|
|
331
|
+
styles: f.props(r.group, t[o], G.chip)
|
|
349
332
|
})
|
|
350
333
|
});
|
|
351
334
|
}
|
|
352
|
-
function
|
|
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
|
|
357
|
-
return /* @__PURE__ */ _(S.
|
|
339
|
+
let o = h(W);
|
|
340
|
+
return /* @__PURE__ */ _(S.ComboboxChipRemove, {
|
|
358
341
|
...r,
|
|
359
|
-
...
|
|
342
|
+
...a({
|
|
360
343
|
className: t,
|
|
361
344
|
style: n,
|
|
362
|
-
styles:
|
|
345
|
+
styles: f.props(i[o], G.action)
|
|
363
346
|
}),
|
|
364
347
|
children: e
|
|
365
348
|
});
|
|
366
349
|
}
|
|
367
|
-
var
|
|
368
|
-
Root:
|
|
369
|
-
Label:
|
|
370
|
-
InputGroup:
|
|
371
|
-
Input:
|
|
372
|
-
Trigger:
|
|
373
|
-
Clear:
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
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
|
|
392
|
-
let
|
|
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__ */ _(
|
|
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:
|
|
396
|
+
id: r,
|
|
417
397
|
className: "x153jb6y xy8obcc xas2l8k xk4h15q",
|
|
418
398
|
children: "Shape"
|
|
419
399
|
}), /* @__PURE__ */ _(w, {
|
|
420
|
-
"aria-labelledby":
|
|
400
|
+
"aria-labelledby": r,
|
|
421
401
|
value: e.shape,
|
|
422
|
-
onValueChange: (n) =>
|
|
423
|
-
|
|
424
|
-
|
|
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:
|
|
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__ */ _(
|
|
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:
|
|
429
|
+
id: i,
|
|
448
430
|
className: "x153jb6y xy8obcc xas2l8k xk4h15q",
|
|
449
431
|
children: "Color"
|
|
450
432
|
}), /* @__PURE__ */ _(w, {
|
|
451
|
-
"aria-labelledby":
|
|
433
|
+
"aria-labelledby": i,
|
|
452
434
|
value: e.color,
|
|
453
|
-
onValueChange: (n) =>
|
|
454
|
-
|
|
455
|
-
|
|
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:
|
|
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__ */ _(
|
|
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
|
-
},
|
|
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
|
-
},
|
|
568
|
+
}, Oe = {
|
|
585
569
|
standard: Y.standard,
|
|
586
570
|
compact: Y.compact
|
|
587
571
|
};
|
|
588
|
-
function
|
|
589
|
-
return /* @__PURE__ */ _(
|
|
572
|
+
function ke({ className: e, style: t, xstyle: n, ...r }) {
|
|
573
|
+
return /* @__PURE__ */ _(ne, {
|
|
590
574
|
...r,
|
|
591
|
-
...
|
|
575
|
+
...a({
|
|
592
576
|
className: e,
|
|
593
577
|
style: t,
|
|
594
|
-
styles:
|
|
578
|
+
styles: f.props(J.fieldset, n)
|
|
595
579
|
})
|
|
596
580
|
});
|
|
597
581
|
}
|
|
598
|
-
function
|
|
599
|
-
return /* @__PURE__ */ _(
|
|
582
|
+
function Ae({ className: e, style: t, ...n }) {
|
|
583
|
+
return /* @__PURE__ */ _(te, {
|
|
600
584
|
...n,
|
|
601
|
-
...
|
|
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
|
|
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__ */ _(
|
|
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
|
|
605
|
+
function Me(e) {
|
|
615
606
|
let t = h(K);
|
|
616
|
-
return /* @__PURE__ */ _("span", { ...f
|
|
607
|
+
return /* @__PURE__ */ _("span", { ...E(f.props(J.addon, De[t]), e) });
|
|
617
608
|
}
|
|
618
|
-
function
|
|
619
|
-
let
|
|
620
|
-
return /* @__PURE__ */ _(
|
|
621
|
-
...
|
|
622
|
-
|
|
623
|
-
|
|
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
|
|
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__ */ _(
|
|
633
|
-
...
|
|
634
|
-
...
|
|
620
|
+
children: /* @__PURE__ */ _(ae, {
|
|
621
|
+
...o,
|
|
622
|
+
...a({
|
|
635
623
|
className: t,
|
|
636
624
|
style: n,
|
|
637
|
-
styles:
|
|
625
|
+
styles: f.props(r.fieldRoot, i)
|
|
638
626
|
})
|
|
639
627
|
})
|
|
640
628
|
});
|
|
641
629
|
}
|
|
642
|
-
function
|
|
643
|
-
let
|
|
644
|
-
return /* @__PURE__ */ _(
|
|
645
|
-
...
|
|
646
|
-
...
|
|
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:
|
|
637
|
+
styles: f.props(r.group, t[o])
|
|
650
638
|
})
|
|
651
639
|
});
|
|
652
640
|
}
|
|
653
|
-
function
|
|
654
|
-
let
|
|
655
|
-
return /* @__PURE__ */ _(
|
|
656
|
-
...
|
|
657
|
-
...
|
|
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:
|
|
660
|
-
styles:
|
|
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
|
|
665
|
-
let
|
|
666
|
-
return /* @__PURE__ */ _(
|
|
667
|
-
...
|
|
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
|
-
...
|
|
657
|
+
...a({
|
|
670
658
|
className: n,
|
|
671
659
|
style: r,
|
|
672
|
-
styles:
|
|
660
|
+
styles: f.props(i[s], J.stepper)
|
|
673
661
|
}),
|
|
674
662
|
children: e
|
|
675
663
|
});
|
|
676
664
|
}
|
|
677
|
-
function
|
|
678
|
-
let
|
|
679
|
-
return /* @__PURE__ */ _(
|
|
680
|
-
...
|
|
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
|
-
...
|
|
670
|
+
...a({
|
|
683
671
|
className: n,
|
|
684
672
|
style: r,
|
|
685
|
-
styles:
|
|
673
|
+
styles: f.props(i[s], J.stepper)
|
|
686
674
|
}),
|
|
687
675
|
children: e
|
|
688
676
|
});
|
|
689
677
|
}
|
|
690
|
-
function
|
|
691
|
-
|
|
678
|
+
function ze({ className: e, style: t, xstyle: n, ...r }) {
|
|
679
|
+
let i = re(), o = /* @__PURE__ */ _(A, {
|
|
692
680
|
...r,
|
|
693
|
-
...
|
|
681
|
+
...a({
|
|
694
682
|
className: e,
|
|
695
683
|
style: t,
|
|
696
|
-
styles:
|
|
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
|
|
701
|
-
return /* @__PURE__ */ _(
|
|
692
|
+
function Be({ className: e, style: t, ...n }) {
|
|
693
|
+
return /* @__PURE__ */ _(j, {
|
|
702
694
|
...n,
|
|
703
|
-
...
|
|
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
|
|
711
|
-
return /* @__PURE__ */ _(
|
|
702
|
+
function Ve({ className: e, style: t, ...n }) {
|
|
703
|
+
return /* @__PURE__ */ _(P, {
|
|
712
704
|
...n,
|
|
713
|
-
...
|
|
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
|
|
721
|
-
return /* @__PURE__ */ _(
|
|
712
|
+
function He({ className: e, style: t, ...n }) {
|
|
713
|
+
return /* @__PURE__ */ _(M, {
|
|
722
714
|
...n,
|
|
723
|
-
...
|
|
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
|
|
731
|
-
return /* @__PURE__ */ _(
|
|
722
|
+
function Ue({ className: e, style: t, ...n }) {
|
|
723
|
+
return /* @__PURE__ */ _(N, {
|
|
732
724
|
...n,
|
|
733
|
-
...
|
|
725
|
+
...a({
|
|
734
726
|
className: e,
|
|
735
727
|
style: t,
|
|
736
|
-
styles: { className: "x1lliihq x9f619 x1kky2od xlup9mm xmkeg23 x1y0btm7 x159tnba x1ok0vyi xpvm0e4 x18vtl6o x13rtz23
|
|
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
|
|
741
|
-
return /* @__PURE__ */ _(
|
|
732
|
+
function We({ className: e, style: t, ...n }) {
|
|
733
|
+
return /* @__PURE__ */ _(ee, {
|
|
742
734
|
...n,
|
|
743
|
-
...
|
|
735
|
+
...a({
|
|
744
736
|
className: e,
|
|
745
737
|
style: t,
|
|
746
|
-
styles:
|
|
738
|
+
styles: f.props(r.label)
|
|
747
739
|
})
|
|
748
740
|
});
|
|
749
741
|
}
|
|
750
|
-
function
|
|
751
|
-
return /* @__PURE__ */ _(
|
|
742
|
+
function Ge({ className: e, style: t, ...n }) {
|
|
743
|
+
return /* @__PURE__ */ _(F, {
|
|
752
744
|
...n,
|
|
753
|
-
...
|
|
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
|
|
761
|
-
return /* @__PURE__ */ _(
|
|
762
|
-
...
|
|
752
|
+
function Ke({ density: t = "standard", className: i, style: o, xstyle: s, ...c }) {
|
|
753
|
+
return /* @__PURE__ */ _(O, {
|
|
754
|
+
...c,
|
|
763
755
|
type: "file",
|
|
764
|
-
...
|
|
765
|
-
className:
|
|
766
|
-
style:
|
|
767
|
-
styles:
|
|
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
|
|
772
|
-
Root:
|
|
773
|
-
Legend:
|
|
774
|
-
},
|
|
775
|
-
Root:
|
|
776
|
-
Addon:
|
|
777
|
-
Input:
|
|
778
|
-
},
|
|
779
|
-
Root:
|
|
780
|
-
Group:
|
|
781
|
-
Input:
|
|
782
|
-
Increment:
|
|
783
|
-
Decrement:
|
|
784
|
-
},
|
|
785
|
-
Root:
|
|
786
|
-
Label:
|
|
787
|
-
Value:
|
|
788
|
-
Control:
|
|
789
|
-
Track:
|
|
790
|
-
Indicator:
|
|
791
|
-
Thumb:
|
|
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
|
-
},
|
|
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
|
|
810
|
+
function Qe({ children: e, align: t = "end", hasSeparator: n = !1, xstyle: r }) {
|
|
819
811
|
return /* @__PURE__ */ _("div", {
|
|
820
|
-
...
|
|
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
|
|
826
|
-
outline:
|
|
827
|
-
ghost:
|
|
817
|
+
var $e = {
|
|
818
|
+
outline: U.outlined,
|
|
819
|
+
ghost: U.ghost
|
|
828
820
|
};
|
|
829
|
-
function
|
|
830
|
-
return /* @__PURE__ */ _(
|
|
821
|
+
function et(e) {
|
|
822
|
+
return e.multiple, /* @__PURE__ */ _(I.Select, { ...e });
|
|
831
823
|
}
|
|
832
|
-
function
|
|
833
|
-
return /* @__PURE__ */ _(
|
|
834
|
-
...
|
|
835
|
-
...
|
|
836
|
-
className:
|
|
837
|
-
style:
|
|
838
|
-
styles:
|
|
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
|
|
843
|
-
return /* @__PURE__ */ _(
|
|
834
|
+
function nt({ className: e, style: t, xstyle: n, ...r }) {
|
|
835
|
+
return /* @__PURE__ */ _(I.SelectValue, {
|
|
844
836
|
...r,
|
|
845
|
-
...
|
|
837
|
+
...a({
|
|
846
838
|
className: e,
|
|
847
839
|
style: t,
|
|
848
|
-
styles:
|
|
840
|
+
styles: f.props(U.value, n)
|
|
849
841
|
})
|
|
850
842
|
});
|
|
851
843
|
}
|
|
852
|
-
function
|
|
853
|
-
return /* @__PURE__ */ _(
|
|
854
|
-
|
|
855
|
-
...
|
|
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
|
|
863
|
-
return /* @__PURE__ */ _(
|
|
864
|
-
...
|
|
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
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
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
|
|
885
|
-
return /* @__PURE__ */ _(
|
|
861
|
+
function at({ className: e, style: t, ...n }) {
|
|
862
|
+
return /* @__PURE__ */ _(I.SelectItem, {
|
|
886
863
|
...n,
|
|
887
|
-
...
|
|
864
|
+
...a({
|
|
888
865
|
className: e,
|
|
889
866
|
style: t,
|
|
890
|
-
styles:
|
|
867
|
+
styles: f.props(U.option)
|
|
891
868
|
})
|
|
892
869
|
});
|
|
893
870
|
}
|
|
894
|
-
function
|
|
895
|
-
return /* @__PURE__ */ _(
|
|
871
|
+
function ot({ className: e, style: t, ...n }) {
|
|
872
|
+
return /* @__PURE__ */ _(I.SelectItemText, {
|
|
896
873
|
...n,
|
|
897
|
-
...
|
|
874
|
+
...a({
|
|
898
875
|
className: e,
|
|
899
876
|
style: t,
|
|
900
|
-
styles:
|
|
877
|
+
styles: f.props(U.optionText)
|
|
901
878
|
})
|
|
902
879
|
});
|
|
903
880
|
}
|
|
904
|
-
function
|
|
905
|
-
return /* @__PURE__ */ _(
|
|
881
|
+
function st({ className: e, style: t, ...n }) {
|
|
882
|
+
return /* @__PURE__ */ _(I.SelectItemIndicator, {
|
|
906
883
|
...n,
|
|
907
|
-
...
|
|
884
|
+
...a({
|
|
908
885
|
className: e,
|
|
909
886
|
style: t,
|
|
910
|
-
styles:
|
|
887
|
+
styles: f.props(U.icon)
|
|
911
888
|
})
|
|
912
889
|
});
|
|
913
890
|
}
|
|
914
891
|
var Z = {
|
|
915
|
-
Root:
|
|
916
|
-
Trigger:
|
|
917
|
-
Value:
|
|
918
|
-
Icon:
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
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
|
|
929
|
-
let
|
|
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
|
-
|
|
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
|
-
...
|
|
941
|
-
items: t,
|
|
942
|
-
name:
|
|
943
|
-
form:
|
|
944
|
-
required:
|
|
945
|
-
autoComplete:
|
|
946
|
-
|
|
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
|
-
...
|
|
951
|
-
id:
|
|
922
|
+
...p,
|
|
923
|
+
id: c,
|
|
952
924
|
"aria-label": e,
|
|
953
|
-
disabled:
|
|
954
|
-
|
|
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.
|
|
930
|
+
}), /* @__PURE__ */ _(Z.Popup, {
|
|
968
931
|
align: r,
|
|
969
|
-
children: /* @__PURE__ */ _(Z.
|
|
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
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
...
|
|
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:
|
|
1061
|
+
styles: f.props(Q.choice, n)
|
|
1095
1062
|
})
|
|
1096
1063
|
});
|
|
1097
1064
|
}
|
|
1098
|
-
function
|
|
1099
|
-
return /* @__PURE__ */ _(
|
|
1065
|
+
function ut({ children: e, className: t, style: n, ...r }) {
|
|
1066
|
+
return /* @__PURE__ */ _(R, {
|
|
1100
1067
|
...r,
|
|
1101
|
-
...
|
|
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
|
|
1079
|
+
function dt({ className: e, style: t, xstyle: n, onValueChange: r, ...i }) {
|
|
1113
1080
|
return /* @__PURE__ */ _(w, {
|
|
1114
|
-
...
|
|
1115
|
-
|
|
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:
|
|
1088
|
+
styles: f.props(Q.group, n)
|
|
1119
1089
|
})
|
|
1120
1090
|
});
|
|
1121
1091
|
}
|
|
1122
|
-
function
|
|
1123
|
-
return /* @__PURE__ */ _(C
|
|
1092
|
+
function ft({ className: e, style: t, xstyle: n, ...r }) {
|
|
1093
|
+
return /* @__PURE__ */ _(C, {
|
|
1124
1094
|
...r,
|
|
1125
|
-
...
|
|
1095
|
+
...a({
|
|
1126
1096
|
className: e,
|
|
1127
1097
|
style: t,
|
|
1128
|
-
styles:
|
|
1098
|
+
styles: f.props(Q.choice, Q.radio, n)
|
|
1129
1099
|
})
|
|
1130
1100
|
});
|
|
1131
1101
|
}
|
|
1132
|
-
function
|
|
1133
|
-
return /* @__PURE__ */ _(
|
|
1102
|
+
function $({ className: e, style: t, ...n }) {
|
|
1103
|
+
return /* @__PURE__ */ _(T, {
|
|
1134
1104
|
...n,
|
|
1135
|
-
...
|
|
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
|
|
1143
|
-
return /* @__PURE__ */ _(
|
|
1112
|
+
function pt({ className: e, style: t, xstyle: n, ...r }) {
|
|
1113
|
+
return /* @__PURE__ */ _(z, {
|
|
1144
1114
|
...r,
|
|
1145
|
-
...
|
|
1115
|
+
...a({
|
|
1146
1116
|
className: e,
|
|
1147
1117
|
style: t,
|
|
1148
|
-
styles:
|
|
1118
|
+
styles: f.props(Q.switch, n)
|
|
1149
1119
|
})
|
|
1150
1120
|
});
|
|
1151
1121
|
}
|
|
1152
|
-
function
|
|
1153
|
-
return /* @__PURE__ */ _(
|
|
1122
|
+
function mt({ className: e, style: t, ...n }) {
|
|
1123
|
+
return /* @__PURE__ */ _(B, {
|
|
1154
1124
|
...n,
|
|
1155
|
-
...
|
|
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
|
|
1163
|
-
return /* @__PURE__ */ _(
|
|
1164
|
-
...
|
|
1165
|
-
...
|
|
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:
|
|
1140
|
+
styles: f.props(Q.toggles, n)
|
|
1169
1141
|
})
|
|
1170
1142
|
});
|
|
1171
1143
|
}
|
|
1172
|
-
function
|
|
1173
|
-
return /* @__PURE__ */ _(
|
|
1144
|
+
function gt({ className: e, style: t, ...n }) {
|
|
1145
|
+
return /* @__PURE__ */ _(V, {
|
|
1174
1146
|
...n,
|
|
1175
|
-
...
|
|
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
|
|
1183
|
-
Root:
|
|
1184
|
-
Indicator:
|
|
1185
|
-
},
|
|
1186
|
-
Root:
|
|
1187
|
-
Item:
|
|
1188
|
-
Indicator:
|
|
1189
|
-
},
|
|
1190
|
-
Root:
|
|
1191
|
-
Thumb:
|
|
1192
|
-
},
|
|
1193
|
-
Root:
|
|
1194
|
-
Item:
|
|
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
|
|
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
|
|
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__ */ _(
|
|
1203
|
+
children: [/* @__PURE__ */ _(c, {
|
|
1232
1204
|
id: r,
|
|
1233
1205
|
children: e
|
|
1234
|
-
}), t !== void 0 && /* @__PURE__ */ _(
|
|
1206
|
+
}), t !== void 0 && /* @__PURE__ */ _(s, { children: t })]
|
|
1235
1207
|
}), /* @__PURE__ */ _("div", { children: n })]
|
|
1236
1208
|
});
|
|
1237
1209
|
}
|
|
1238
|
-
export {
|
|
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 };
|