@skeletonlabs/skeleton-react 4.8.0 → 4.10.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/dist/index.d.mts +340 -267
- package/dist/index.mjs +284 -101
- package/package.json +30 -29
package/dist/index.mjs
CHANGED
|
@@ -3,29 +3,30 @@ import { connect, machine, splitItemProps, splitProps } from "@zag-js/accordion"
|
|
|
3
3
|
import { Portal as Portal$1, mergeProps, normalizeProps, useMachine } from "@zag-js/react";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { connect as connect$1, machine as machine$1, splitProps as splitProps$1 } from "@zag-js/avatar";
|
|
6
|
-
import { connect as connect$2, machine as machine$2, splitProps as splitProps$2 } from "@zag-js/
|
|
7
|
-
import { connect as connect$3, machine as machine$3,
|
|
8
|
-
import { connect as connect$4, machine as machine$4,
|
|
9
|
-
import { connect as connect$5, machine as machine$5, splitProps as splitProps$5 } from "@zag-js/
|
|
10
|
-
import { connect as connect$6, machine as machine$6,
|
|
11
|
-
import { connect as connect$7, machine as machine$7, splitProps as splitProps$7
|
|
12
|
-
import { connect as connect$8, machine as machine$8,
|
|
13
|
-
import { connect as connect$9, machine as machine$9, splitItemGroupLabelProps as splitItemGroupLabelProps$
|
|
14
|
-
import { connect as connect$10, machine as machine$10,
|
|
15
|
-
import { connect as connect$11, machine as machine$11, splitProps as splitProps$11 } from "@zag-js/
|
|
6
|
+
import { connect as connect$2, machine as machine$2, splitIndicatorProps, splitItemProps as splitItemProps$1, splitProps as splitProps$2 } from "@zag-js/carousel";
|
|
7
|
+
import { connect as connect$3, machine as machine$3, splitProps as splitProps$3 } from "@zag-js/collapsible";
|
|
8
|
+
import { connect as connect$4, machine as machine$4, splitItemGroupLabelProps, splitItemGroupProps, splitItemProps as splitItemProps$2, splitProps as splitProps$4 } from "@zag-js/combobox";
|
|
9
|
+
import { connect as connect$5, machine as machine$5, parse as parseDate, splitInputProps, splitPresetTriggerProps, splitProps as splitProps$5, splitTableCellProps, splitViewProps } from "@zag-js/date-picker";
|
|
10
|
+
import { connect as connect$6, machine as machine$6, splitProps as splitProps$6 } from "@zag-js/dialog";
|
|
11
|
+
import { connect as connect$7, machine as machine$7, splitItemProps as splitItemProps$3, splitProps as splitProps$7 } from "@zag-js/file-upload";
|
|
12
|
+
import { connect as connect$8, machine as machine$8, splitProps as splitProps$8, splitResizeTriggerProps } from "@zag-js/floating-panel";
|
|
13
|
+
import { connect as connect$9, machine as machine$9, splitItemGroupLabelProps as splitItemGroupLabelProps$1, splitItemGroupProps as splitItemGroupProps$1, splitItemProps as splitItemProps$4, splitProps as splitProps$9 } from "@zag-js/listbox";
|
|
14
|
+
import { connect as connect$10, machine as machine$10, splitItemGroupLabelProps as splitItemGroupLabelProps$2, splitItemGroupProps as splitItemGroupProps$2, splitItemProps as splitItemProps$5, splitOptionItemProps, splitProps as splitProps$10 } from "@zag-js/menu";
|
|
15
|
+
import { connect as connect$11, machine as machine$11, splitEllipsisProps, splitItemProps as splitItemProps$6, splitProps as splitProps$11 } from "@zag-js/pagination";
|
|
16
|
+
import { connect as connect$12, machine as machine$12, splitProps as splitProps$12 } from "@zag-js/popover";
|
|
16
17
|
import { createPortal } from "react-dom";
|
|
17
|
-
import { connect as connect$
|
|
18
|
-
import { connect as connect$
|
|
19
|
-
import { connect as connect$
|
|
20
|
-
import { connect as connect$
|
|
21
|
-
import { connect as connect$
|
|
22
|
-
import { connect as connect$
|
|
23
|
-
import { connect as connect$
|
|
24
|
-
import { connect as connect$
|
|
25
|
-
import { connect as connect$
|
|
26
|
-
import { connect as connect$
|
|
27
|
-
import { connect as connect$
|
|
28
|
-
import { collection as createTreeViewCollection, connect as connect$
|
|
18
|
+
import { connect as connect$13, machine as machine$13, splitProps as splitProps$13 } from "@zag-js/progress";
|
|
19
|
+
import { connect as connect$14, machine as machine$14, splitItemProps as splitItemProps$7, splitProps as splitProps$14 } from "@zag-js/rating-group";
|
|
20
|
+
import { connect as connect$15, machine as machine$15, splitItemProps as splitItemProps$8, splitProps as splitProps$15 } from "@zag-js/radio-group";
|
|
21
|
+
import { connect as connect$16, machine as machine$16, splitProps as splitProps$16, splitThumbProps } from "@zag-js/slider";
|
|
22
|
+
import { connect as connect$17, machine as machine$17, splitProps as splitProps$17 } from "@zag-js/steps";
|
|
23
|
+
import { connect as connect$18, machine as machine$18, splitProps as splitProps$18 } from "@zag-js/switch";
|
|
24
|
+
import { connect as connect$19, machine as machine$19, splitContentProps, splitProps as splitProps$19, splitTriggerProps } from "@zag-js/tabs";
|
|
25
|
+
import { connect as connect$20, machine as machine$20, splitItemProps as splitItemProps$9, splitProps as splitProps$20 } from "@zag-js/tags-input";
|
|
26
|
+
import { connect as connect$21, createStore as createToaster, group, machine as machine$21 } from "@zag-js/toast";
|
|
27
|
+
import { connect as connect$22, machine as machine$22, splitItemProps as splitItemProps$10, splitProps as splitProps$21 } from "@zag-js/toggle-group";
|
|
28
|
+
import { connect as connect$23, machine as machine$23, splitProps as splitProps$22 } from "@zag-js/tooltip";
|
|
29
|
+
import { collection as createTreeViewCollection, connect as connect$24, machine as machine$24, splitProps as splitProps$23 } from "@zag-js/tree-view";
|
|
29
30
|
import { ListCollection } from "@zag-js/collection";
|
|
30
31
|
|
|
31
32
|
//#region src/internal/create-context.ts
|
|
@@ -48,12 +49,12 @@ function useAccordion(props = {}) {
|
|
|
48
49
|
|
|
49
50
|
//#endregion
|
|
50
51
|
//#region src/components/accordion/modules/root-context.ts
|
|
51
|
-
const RootContext$
|
|
52
|
+
const RootContext$50 = createContext$1();
|
|
52
53
|
|
|
53
54
|
//#endregion
|
|
54
55
|
//#region src/components/accordion/anatomy/item-content.tsx
|
|
55
56
|
function ItemContent(props) {
|
|
56
|
-
const accordion = use(RootContext$
|
|
57
|
+
const accordion = use(RootContext$50);
|
|
57
58
|
const itemProps = use(ItemContext$7);
|
|
58
59
|
const { element, children, ...rest } = props;
|
|
59
60
|
const attributes = mergeProps(accordion.getItemContentProps(itemProps), rest);
|
|
@@ -66,7 +67,7 @@ function ItemContent(props) {
|
|
|
66
67
|
//#endregion
|
|
67
68
|
//#region src/components/accordion/anatomy/item-indicator.tsx
|
|
68
69
|
function ItemIndicator$3(props) {
|
|
69
|
-
const accordion = use(RootContext$
|
|
70
|
+
const accordion = use(RootContext$50);
|
|
70
71
|
const itemProps = use(ItemContext$7);
|
|
71
72
|
const { element, children, ...rest } = props;
|
|
72
73
|
const attributes = mergeProps(accordion.getItemIndicatorProps(itemProps), rest);
|
|
@@ -79,7 +80,7 @@ function ItemIndicator$3(props) {
|
|
|
79
80
|
//#endregion
|
|
80
81
|
//#region src/components/accordion/anatomy/item-trigger.tsx
|
|
81
82
|
function ItemTrigger(props) {
|
|
82
|
-
const accordion = use(RootContext$
|
|
83
|
+
const accordion = use(RootContext$50);
|
|
83
84
|
const itemProps = use(ItemContext$7);
|
|
84
85
|
const { element, children, ...rest } = props;
|
|
85
86
|
const attributes = mergeProps(accordion.getItemTriggerProps(itemProps), rest);
|
|
@@ -91,8 +92,8 @@ function ItemTrigger(props) {
|
|
|
91
92
|
|
|
92
93
|
//#endregion
|
|
93
94
|
//#region src/components/accordion/anatomy/item.tsx
|
|
94
|
-
function Item$
|
|
95
|
-
const accordion = use(RootContext$
|
|
95
|
+
function Item$12(props) {
|
|
96
|
+
const accordion = use(RootContext$50);
|
|
96
97
|
const [itemProps, componentProps] = splitItemProps(props);
|
|
97
98
|
const { element, children, ...rest } = componentProps;
|
|
98
99
|
const attributes = mergeProps(accordion.getItemProps(itemProps), rest);
|
|
@@ -107,18 +108,18 @@ function Item$11(props) {
|
|
|
107
108
|
|
|
108
109
|
//#endregion
|
|
109
110
|
//#region src/components/accordion/anatomy/root-context.tsx
|
|
110
|
-
function RootContext$
|
|
111
|
-
const accordion = use(RootContext$
|
|
111
|
+
function RootContext$49(props) {
|
|
112
|
+
const accordion = use(RootContext$50);
|
|
112
113
|
const { children } = props;
|
|
113
114
|
return children(accordion);
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
//#endregion
|
|
117
118
|
//#region src/components/accordion/anatomy/root-provider.tsx
|
|
118
|
-
function RootProvider$
|
|
119
|
+
function RootProvider$18(props) {
|
|
119
120
|
const { element, children, value: accordion, ...rest } = props;
|
|
120
121
|
const attributes = mergeProps(accordion.getRootProps(), rest);
|
|
121
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
122
|
+
return /* @__PURE__ */ jsx(RootContext$50.Provider, {
|
|
122
123
|
value: accordion,
|
|
123
124
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
124
125
|
...attributes,
|
|
@@ -129,12 +130,12 @@ function RootProvider$17(props) {
|
|
|
129
130
|
|
|
130
131
|
//#endregion
|
|
131
132
|
//#region src/components/accordion/anatomy/root.tsx
|
|
132
|
-
function Root$
|
|
133
|
+
function Root$19(props) {
|
|
133
134
|
const [accordionProps, componentProps] = splitProps(props);
|
|
134
135
|
const { element, children, ...rest } = componentProps;
|
|
135
136
|
const accordion = useAccordion(accordionProps);
|
|
136
137
|
const attributes = mergeProps(accordion.getRootProps(), rest);
|
|
137
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
138
|
+
return /* @__PURE__ */ jsx(RootContext$50.Provider, {
|
|
138
139
|
value: accordion,
|
|
139
140
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
140
141
|
...attributes,
|
|
@@ -145,10 +146,10 @@ function Root$18(props) {
|
|
|
145
146
|
|
|
146
147
|
//#endregion
|
|
147
148
|
//#region src/components/accordion/modules/anatomy.ts
|
|
148
|
-
const Accordion = Object.assign(Root$
|
|
149
|
-
Provider: RootProvider$
|
|
150
|
-
Context: RootContext$
|
|
151
|
-
Item: Item$
|
|
149
|
+
const Accordion = Object.assign(Root$19, {
|
|
150
|
+
Provider: RootProvider$18,
|
|
151
|
+
Context: RootContext$49,
|
|
152
|
+
Item: Item$12,
|
|
152
153
|
ItemTrigger,
|
|
153
154
|
ItemIndicator: ItemIndicator$3,
|
|
154
155
|
ItemContent
|
|
@@ -235,12 +236,12 @@ const AppBar = Object.assign(AppBarRoot, {
|
|
|
235
236
|
|
|
236
237
|
//#endregion
|
|
237
238
|
//#region src/components/avatar/modules/root-context.ts
|
|
238
|
-
const RootContext$
|
|
239
|
+
const RootContext$48 = createContext$1();
|
|
239
240
|
|
|
240
241
|
//#endregion
|
|
241
242
|
//#region src/components/avatar/anatomy/fallback.tsx
|
|
242
243
|
function Fallback(props) {
|
|
243
|
-
const avatar = use(RootContext$
|
|
244
|
+
const avatar = use(RootContext$48);
|
|
244
245
|
const { element, children, ...rest } = props;
|
|
245
246
|
const attributes = mergeProps(avatar.getFallbackProps(), rest);
|
|
246
247
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
@@ -252,7 +253,7 @@ function Fallback(props) {
|
|
|
252
253
|
//#endregion
|
|
253
254
|
//#region src/components/avatar/anatomy/image.tsx
|
|
254
255
|
function Image(props) {
|
|
255
|
-
const avatar = use(RootContext$
|
|
256
|
+
const avatar = use(RootContext$48);
|
|
256
257
|
const { element, ...rest } = props;
|
|
257
258
|
const attributes = mergeProps(avatar.getImageProps(), rest);
|
|
258
259
|
return element ? element(attributes) : /* @__PURE__ */ jsx("img", { ...attributes });
|
|
@@ -260,8 +261,8 @@ function Image(props) {
|
|
|
260
261
|
|
|
261
262
|
//#endregion
|
|
262
263
|
//#region src/components/avatar/anatomy/root-context.tsx
|
|
263
|
-
function RootContext$
|
|
264
|
-
const avatar = use(RootContext$
|
|
264
|
+
function RootContext$47(props) {
|
|
265
|
+
const avatar = use(RootContext$48);
|
|
265
266
|
const { children } = props;
|
|
266
267
|
return children(avatar);
|
|
267
268
|
}
|
|
@@ -271,7 +272,7 @@ function RootContext$45(props) {
|
|
|
271
272
|
function AvatarRootProvider(props) {
|
|
272
273
|
const { element, children, value: avatar, ...rest } = props;
|
|
273
274
|
const attributes = mergeProps(avatar.getRootProps(), rest);
|
|
274
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
275
|
+
return /* @__PURE__ */ jsx(RootContext$48.Provider, {
|
|
275
276
|
value: avatar,
|
|
276
277
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
277
278
|
...attributes,
|
|
@@ -296,7 +297,7 @@ function AvatarRoot(props) {
|
|
|
296
297
|
const { element, children, ...rest } = componentProps;
|
|
297
298
|
const avatar = useAvatar(avatarProps);
|
|
298
299
|
const attributes = mergeProps(avatar.getRootProps(), rest);
|
|
299
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
300
|
+
return /* @__PURE__ */ jsx(RootContext$48.Provider, {
|
|
300
301
|
value: avatar,
|
|
301
302
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
302
303
|
...attributes,
|
|
@@ -309,11 +310,193 @@ function AvatarRoot(props) {
|
|
|
309
310
|
//#region src/components/avatar/modules/anatomy.ts
|
|
310
311
|
const Avatar = Object.assign(AvatarRoot, {
|
|
311
312
|
Provider: AvatarRootProvider,
|
|
312
|
-
Context: RootContext$
|
|
313
|
+
Context: RootContext$47,
|
|
313
314
|
Image,
|
|
314
315
|
Fallback
|
|
315
316
|
});
|
|
316
317
|
|
|
318
|
+
//#endregion
|
|
319
|
+
//#region src/components/carousel/modules/root-context.ts
|
|
320
|
+
const RootContext$46 = createContext$1();
|
|
321
|
+
|
|
322
|
+
//#endregion
|
|
323
|
+
//#region src/components/carousel/anatomy/autoplay-trigger.tsx
|
|
324
|
+
function AutoplayTrigger(props) {
|
|
325
|
+
const carousel = use(RootContext$46);
|
|
326
|
+
const { element, children, ...rest } = props;
|
|
327
|
+
const attributes = mergeProps(carousel.getAutoplayTriggerProps(), rest);
|
|
328
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
329
|
+
...attributes,
|
|
330
|
+
children
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
//#endregion
|
|
335
|
+
//#region src/components/carousel/anatomy/control.tsx
|
|
336
|
+
function Control$8(props) {
|
|
337
|
+
const carousel = use(RootContext$46);
|
|
338
|
+
const { element, children, ...rest } = props;
|
|
339
|
+
const attributes = mergeProps(carousel.getControlProps(), rest);
|
|
340
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
341
|
+
...attributes,
|
|
342
|
+
children
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
//#endregion
|
|
347
|
+
//#region src/components/carousel/anatomy/indicator.tsx
|
|
348
|
+
function Indicator$5(props) {
|
|
349
|
+
const carousel = use(RootContext$46);
|
|
350
|
+
const [indicatorProps, componentProps] = splitIndicatorProps(props);
|
|
351
|
+
const { element, children, ...rest } = componentProps;
|
|
352
|
+
const attributes = mergeProps(carousel.getIndicatorProps(indicatorProps), rest);
|
|
353
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
354
|
+
...attributes,
|
|
355
|
+
children
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
//#endregion
|
|
360
|
+
//#region src/components/carousel/anatomy/indicator-group.tsx
|
|
361
|
+
function IndicatorGroup(props) {
|
|
362
|
+
const carousel = use(RootContext$46);
|
|
363
|
+
const { element, children, ...rest } = props;
|
|
364
|
+
const attributes = mergeProps(carousel.getIndicatorGroupProps(), rest);
|
|
365
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
366
|
+
...attributes,
|
|
367
|
+
children
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
//#endregion
|
|
372
|
+
//#region src/components/carousel/anatomy/item.tsx
|
|
373
|
+
function Item$11(props) {
|
|
374
|
+
const carousel = use(RootContext$46);
|
|
375
|
+
const [itemProps, componentProps] = splitItemProps$1(props);
|
|
376
|
+
const { element, children, ...rest } = componentProps;
|
|
377
|
+
const attributes = mergeProps(carousel.getItemProps(itemProps), rest);
|
|
378
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
379
|
+
...attributes,
|
|
380
|
+
children
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
//#endregion
|
|
385
|
+
//#region src/components/carousel/anatomy/item-group.tsx
|
|
386
|
+
function ItemGroup$4(props) {
|
|
387
|
+
const carousel = use(RootContext$46);
|
|
388
|
+
const { element, children, ...rest } = props;
|
|
389
|
+
const attributes = mergeProps(carousel.getItemGroupProps(), rest);
|
|
390
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
391
|
+
...attributes,
|
|
392
|
+
children
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
//#endregion
|
|
397
|
+
//#region src/components/carousel/anatomy/next-trigger.tsx
|
|
398
|
+
function NextTrigger$3(props) {
|
|
399
|
+
const carousel = use(RootContext$46);
|
|
400
|
+
const { element, children, ...rest } = props;
|
|
401
|
+
const attributes = mergeProps(carousel.getNextTriggerProps(), rest);
|
|
402
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
403
|
+
...attributes,
|
|
404
|
+
children
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
//#endregion
|
|
409
|
+
//#region src/components/carousel/anatomy/prev-trigger.tsx
|
|
410
|
+
function PrevTrigger$3(props) {
|
|
411
|
+
const carousel = use(RootContext$46);
|
|
412
|
+
const { element, children, ...rest } = props;
|
|
413
|
+
const attributes = mergeProps(carousel.getPrevTriggerProps(), rest);
|
|
414
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
415
|
+
...attributes,
|
|
416
|
+
children
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
//#endregion
|
|
421
|
+
//#region src/components/carousel/anatomy/progress-text.tsx
|
|
422
|
+
function ProgressText(props) {
|
|
423
|
+
const carousel = use(RootContext$46);
|
|
424
|
+
const { element, children, ...rest } = props;
|
|
425
|
+
const attributes = mergeProps(carousel.getProgressTextProps(), rest);
|
|
426
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
427
|
+
...attributes,
|
|
428
|
+
children
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
//#endregion
|
|
433
|
+
//#region src/components/carousel/anatomy/root-context.tsx
|
|
434
|
+
function RootContext$45(props) {
|
|
435
|
+
const carousel = use(RootContext$46);
|
|
436
|
+
const { children } = props;
|
|
437
|
+
return children(carousel);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
//#endregion
|
|
441
|
+
//#region src/components/carousel/anatomy/root-provider.tsx
|
|
442
|
+
function RootProvider$17(props) {
|
|
443
|
+
const { element, children, value: carousel, ...rest } = props;
|
|
444
|
+
const attributes = mergeProps(carousel.getRootProps(), rest);
|
|
445
|
+
return /* @__PURE__ */ jsx(RootContext$46.Provider, {
|
|
446
|
+
value: carousel,
|
|
447
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
448
|
+
...attributes,
|
|
449
|
+
children
|
|
450
|
+
})
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
//#endregion
|
|
455
|
+
//#region src/components/carousel/modules/provider.ts
|
|
456
|
+
function useCarousel(props) {
|
|
457
|
+
const { slideCount, ...rest } = props;
|
|
458
|
+
return connect$2(useMachine(machine$2, {
|
|
459
|
+
id: useId(),
|
|
460
|
+
slideCount: slideCount ?? 0,
|
|
461
|
+
...rest
|
|
462
|
+
}), normalizeProps);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
//#endregion
|
|
466
|
+
//#region src/components/carousel/anatomy/root.tsx
|
|
467
|
+
function Root$18(props) {
|
|
468
|
+
const [carouselProps, componentProps] = splitProps$2(props);
|
|
469
|
+
const { element, children, ...rest } = componentProps;
|
|
470
|
+
const carousel = useCarousel({
|
|
471
|
+
...carouselProps,
|
|
472
|
+
slideCount: props.slideCount
|
|
473
|
+
});
|
|
474
|
+
const attributes = mergeProps(carousel.getRootProps(), rest);
|
|
475
|
+
return /* @__PURE__ */ jsx(RootContext$46.Provider, {
|
|
476
|
+
value: carousel,
|
|
477
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
478
|
+
...attributes,
|
|
479
|
+
children
|
|
480
|
+
})
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
//#endregion
|
|
485
|
+
//#region src/components/carousel/modules/anatomy.ts
|
|
486
|
+
const Carousel = Object.assign(Root$18, {
|
|
487
|
+
Provider: RootProvider$17,
|
|
488
|
+
Context: RootContext$45,
|
|
489
|
+
Control: Control$8,
|
|
490
|
+
ItemGroup: ItemGroup$4,
|
|
491
|
+
Item: Item$11,
|
|
492
|
+
PrevTrigger: PrevTrigger$3,
|
|
493
|
+
NextTrigger: NextTrigger$3,
|
|
494
|
+
AutoplayTrigger,
|
|
495
|
+
IndicatorGroup,
|
|
496
|
+
Indicator: Indicator$5,
|
|
497
|
+
ProgressText
|
|
498
|
+
});
|
|
499
|
+
|
|
317
500
|
//#endregion
|
|
318
501
|
//#region src/components/collapsible/modules/root-context.ts
|
|
319
502
|
const RootContext$44 = createContext$1();
|
|
@@ -367,7 +550,7 @@ function CollapsibleRootProvider(props) {
|
|
|
367
550
|
//#endregion
|
|
368
551
|
//#region src/components/collapsible/modules/provider.ts
|
|
369
552
|
function useCollapsible(props = {}) {
|
|
370
|
-
return connect$
|
|
553
|
+
return connect$3(useMachine(machine$3, {
|
|
371
554
|
id: useId(),
|
|
372
555
|
...props
|
|
373
556
|
}), normalizeProps);
|
|
@@ -376,7 +559,7 @@ function useCollapsible(props = {}) {
|
|
|
376
559
|
//#endregion
|
|
377
560
|
//#region src/components/collapsible/anatomy/root.tsx
|
|
378
561
|
function CollapsibleRoot(props) {
|
|
379
|
-
const [collapsibleProps, componentProps] = splitProps$
|
|
562
|
+
const [collapsibleProps, componentProps] = splitProps$3(props);
|
|
380
563
|
const { element, children, ...rest } = componentProps;
|
|
381
564
|
const collapsible = useCollapsible(collapsibleProps);
|
|
382
565
|
const attributes = mergeProps(collapsible.getRootProps(), rest);
|
|
@@ -553,7 +736,7 @@ function ItemText$4(props) {
|
|
|
553
736
|
//#region src/components/combobox/anatomy/item.tsx
|
|
554
737
|
function Item$10(props) {
|
|
555
738
|
const combobox = use(RootContext$42);
|
|
556
|
-
const [itemProps, componentProps] = splitItemProps$
|
|
739
|
+
const [itemProps, componentProps] = splitItemProps$2(props);
|
|
557
740
|
const { element, children, ...rest } = componentProps;
|
|
558
741
|
const attributes = mergeProps(combobox.getItemProps(itemProps), rest);
|
|
559
742
|
return /* @__PURE__ */ jsx(ItemContext$6.Provider, {
|
|
@@ -600,7 +783,7 @@ function RootContext$41(props) {
|
|
|
600
783
|
//#endregion
|
|
601
784
|
//#region src/components/combobox/modules/provider.ts
|
|
602
785
|
function useCombobox(props = {}) {
|
|
603
|
-
return connect$
|
|
786
|
+
return connect$4(useMachine(machine$4, {
|
|
604
787
|
id: useId(),
|
|
605
788
|
...props
|
|
606
789
|
}), normalizeProps);
|
|
@@ -623,7 +806,7 @@ function RootProvider$16(props) {
|
|
|
623
806
|
//#endregion
|
|
624
807
|
//#region src/components/combobox/anatomy/root.tsx
|
|
625
808
|
function Root$17(props) {
|
|
626
|
-
const [comboboxProps, componentProps] = splitProps$
|
|
809
|
+
const [comboboxProps, componentProps] = splitProps$4(props);
|
|
627
810
|
const { element, children, ...rest } = componentProps;
|
|
628
811
|
const combobox = useCombobox(comboboxProps);
|
|
629
812
|
const attributes = mergeProps(combobox.getRootProps(), rest);
|
|
@@ -871,7 +1054,7 @@ function RootContext$39(props) {
|
|
|
871
1054
|
//#endregion
|
|
872
1055
|
//#region src/components/date-picker/modules/provider.ts
|
|
873
1056
|
function useDatePicker(props = {}) {
|
|
874
|
-
return connect$
|
|
1057
|
+
return connect$5(useMachine(machine$5, {
|
|
875
1058
|
id: useId(),
|
|
876
1059
|
...props
|
|
877
1060
|
}), normalizeProps);
|
|
@@ -894,7 +1077,7 @@ function RootProvider$15(props) {
|
|
|
894
1077
|
//#endregion
|
|
895
1078
|
//#region src/components/date-picker/anatomy/root.tsx
|
|
896
1079
|
function Root$16(props) {
|
|
897
|
-
const [datePickerProps, componentProps] = splitProps$
|
|
1080
|
+
const [datePickerProps, componentProps] = splitProps$5(props);
|
|
898
1081
|
const { element, children, ...rest } = componentProps;
|
|
899
1082
|
const datePicker = useDatePicker(datePickerProps);
|
|
900
1083
|
const attributes = mergeProps(datePicker.getRootProps(), rest);
|
|
@@ -1232,7 +1415,7 @@ function RootProvider$14(props) {
|
|
|
1232
1415
|
//#endregion
|
|
1233
1416
|
//#region src/components/dialog/modules/provider.ts
|
|
1234
1417
|
function useDialog(props = {}) {
|
|
1235
|
-
return connect$
|
|
1418
|
+
return connect$6(useMachine(machine$6, {
|
|
1236
1419
|
id: useId(),
|
|
1237
1420
|
...props
|
|
1238
1421
|
}), normalizeProps);
|
|
@@ -1241,7 +1424,7 @@ function useDialog(props = {}) {
|
|
|
1241
1424
|
//#endregion
|
|
1242
1425
|
//#region src/components/dialog/anatomy/root.tsx
|
|
1243
1426
|
function Root$15(props) {
|
|
1244
|
-
const [dialogProps, componentProps] = splitProps$
|
|
1427
|
+
const [dialogProps, componentProps] = splitProps$6(props);
|
|
1245
1428
|
const { children } = componentProps;
|
|
1246
1429
|
const dialog = useDialog(dialogProps);
|
|
1247
1430
|
return /* @__PURE__ */ jsx(RootContext$38.Provider, {
|
|
@@ -1384,7 +1567,7 @@ function ItemSizeText(props) {
|
|
|
1384
1567
|
//#region src/components/file-upload/anatomy/item.tsx
|
|
1385
1568
|
function Item$9(props) {
|
|
1386
1569
|
const fileUpload = use(RootContext$36);
|
|
1387
|
-
const [itemProps, componentProps] = splitItemProps$
|
|
1570
|
+
const [itemProps, componentProps] = splitItemProps$3(props);
|
|
1388
1571
|
const { element, children, ...rest } = componentProps;
|
|
1389
1572
|
const attributes = mergeProps(fileUpload.getItemProps(itemProps), rest);
|
|
1390
1573
|
return /* @__PURE__ */ jsx(ItemContext$5.Provider, {
|
|
@@ -1433,7 +1616,7 @@ function RootProvider$13(props) {
|
|
|
1433
1616
|
//#endregion
|
|
1434
1617
|
//#region src/components/file-upload/modules/provider.ts
|
|
1435
1618
|
function useFileUpload(props = {}) {
|
|
1436
|
-
return connect$
|
|
1619
|
+
return connect$7(useMachine(machine$7, {
|
|
1437
1620
|
id: useId(),
|
|
1438
1621
|
...props
|
|
1439
1622
|
}), normalizeProps);
|
|
@@ -1442,7 +1625,7 @@ function useFileUpload(props = {}) {
|
|
|
1442
1625
|
//#endregion
|
|
1443
1626
|
//#region src/components/file-upload/anatomy/root.tsx
|
|
1444
1627
|
function Root$14(props) {
|
|
1445
|
-
const [fileUploadProps, componentProps] = splitProps$
|
|
1628
|
+
const [fileUploadProps, componentProps] = splitProps$7(props);
|
|
1446
1629
|
const { element, children, ...rest } = componentProps;
|
|
1447
1630
|
const fileUpload = useFileUpload(fileUploadProps);
|
|
1448
1631
|
const attributes = mergeProps(fileUpload.getRootProps(), rest);
|
|
@@ -1606,7 +1789,7 @@ function RootProvider$12(props) {
|
|
|
1606
1789
|
//#endregion
|
|
1607
1790
|
//#region src/components/floating-panel/modules/provider.ts
|
|
1608
1791
|
function useFloatingPanel(props = {}) {
|
|
1609
|
-
return connect$
|
|
1792
|
+
return connect$8(useMachine(machine$8, {
|
|
1610
1793
|
id: useId(),
|
|
1611
1794
|
...props
|
|
1612
1795
|
}), normalizeProps);
|
|
@@ -1615,7 +1798,7 @@ function useFloatingPanel(props = {}) {
|
|
|
1615
1798
|
//#endregion
|
|
1616
1799
|
//#region src/components/floating-panel/anatomy/root.tsx
|
|
1617
1800
|
function Root$13(props) {
|
|
1618
|
-
const [floatingPanelProps, componentProps] = splitProps$
|
|
1801
|
+
const [floatingPanelProps, componentProps] = splitProps$8(props);
|
|
1619
1802
|
const { children } = componentProps;
|
|
1620
1803
|
const floatingPanel = useFloatingPanel(floatingPanelProps);
|
|
1621
1804
|
return /* @__PURE__ */ jsx(RootContext$34.Provider, {
|
|
@@ -1776,7 +1959,7 @@ function ItemText$3(props) {
|
|
|
1776
1959
|
//#region src/components/listbox/anatomy/item.tsx
|
|
1777
1960
|
function Item$8(props) {
|
|
1778
1961
|
const listbox = use(RootContext$32);
|
|
1779
|
-
const [itemProps, componentProps] = splitItemProps$
|
|
1962
|
+
const [itemProps, componentProps] = splitItemProps$4(props);
|
|
1780
1963
|
const { element, children, ...rest } = componentProps;
|
|
1781
1964
|
const attributes = mergeProps(listbox.getItemProps(itemProps), rest);
|
|
1782
1965
|
return /* @__PURE__ */ jsx(ItemContext$4.Provider, {
|
|
@@ -1811,7 +1994,7 @@ function RootContext$31(props) {
|
|
|
1811
1994
|
//#endregion
|
|
1812
1995
|
//#region src/components/listbox/modules/provider.ts
|
|
1813
1996
|
function useListbox(props) {
|
|
1814
|
-
return connect$
|
|
1997
|
+
return connect$9(useMachine(machine$9, {
|
|
1815
1998
|
id: useId(),
|
|
1816
1999
|
...props
|
|
1817
2000
|
}), normalizeProps);
|
|
@@ -1834,7 +2017,7 @@ function RootProvider$11(props) {
|
|
|
1834
2017
|
//#endregion
|
|
1835
2018
|
//#region src/components/listbox/anatomy/root.tsx
|
|
1836
2019
|
function Root$12(props) {
|
|
1837
|
-
const [listboxProps, componentProps] = splitProps$
|
|
2020
|
+
const [listboxProps, componentProps] = splitProps$9(props);
|
|
1838
2021
|
const { element, children, ...rest } = componentProps;
|
|
1839
2022
|
const listbox = useListbox(listboxProps);
|
|
1840
2023
|
const attributes = mergeProps(listbox.getRootProps(), rest);
|
|
@@ -1999,7 +2182,7 @@ function ItemText$2(props) {
|
|
|
1999
2182
|
//#region src/components/menu/anatomy/item.tsx
|
|
2000
2183
|
function Item$7(props) {
|
|
2001
2184
|
const menu = use(RootContext$30);
|
|
2002
|
-
const [itemProps, componentProps] = splitItemProps$
|
|
2185
|
+
const [itemProps, componentProps] = splitItemProps$5(props);
|
|
2003
2186
|
const { element, children, ...rest } = componentProps;
|
|
2004
2187
|
const attributes = mergeProps(menu.getItemProps(itemProps), rest);
|
|
2005
2188
|
return /* @__PURE__ */ jsx(ItemContext$3.Provider, {
|
|
@@ -2073,12 +2256,12 @@ function RootProvider$10(props) {
|
|
|
2073
2256
|
//#endregion
|
|
2074
2257
|
//#region src/components/menu/modules/provider.ts
|
|
2075
2258
|
function useMenu(props = {}) {
|
|
2076
|
-
const service = useMachine(machine$
|
|
2259
|
+
const service = useMachine(machine$10, {
|
|
2077
2260
|
id: useId(),
|
|
2078
2261
|
...props
|
|
2079
2262
|
});
|
|
2080
2263
|
return {
|
|
2081
|
-
...connect$
|
|
2264
|
+
...connect$10(service, normalizeProps),
|
|
2082
2265
|
service
|
|
2083
2266
|
};
|
|
2084
2267
|
}
|
|
@@ -2087,7 +2270,7 @@ function useMenu(props = {}) {
|
|
|
2087
2270
|
//#region src/components/menu/anatomy/root.tsx
|
|
2088
2271
|
function Root$11(props) {
|
|
2089
2272
|
const parentMenu = use(RootContext$30);
|
|
2090
|
-
const [menuProps, componentProps] = splitProps$
|
|
2273
|
+
const [menuProps, componentProps] = splitProps$10(props);
|
|
2091
2274
|
const { children } = componentProps;
|
|
2092
2275
|
const menu = useMenu(menuProps);
|
|
2093
2276
|
useEffect(() => {
|
|
@@ -2117,7 +2300,7 @@ function Separator$1(props) {
|
|
|
2117
2300
|
//#region src/components/menu/anatomy/trigger-item.tsx
|
|
2118
2301
|
function TriggerItem(props) {
|
|
2119
2302
|
const triggerItemProps = use(TriggerItemContext);
|
|
2120
|
-
const [itemProps, componentProps] = splitItemProps$
|
|
2303
|
+
const [itemProps, componentProps] = splitItemProps$5(props);
|
|
2121
2304
|
const { element, children, ...rest } = componentProps;
|
|
2122
2305
|
const attributes = mergeProps(triggerItemProps, rest);
|
|
2123
2306
|
return /* @__PURE__ */ jsx(ItemContext$3.Provider, {
|
|
@@ -2377,7 +2560,7 @@ function FirstTrigger(props) {
|
|
|
2377
2560
|
//#region src/components/pagination/anatomy/item.tsx
|
|
2378
2561
|
function Item$6(props) {
|
|
2379
2562
|
const pagination = use(RootContext$27);
|
|
2380
|
-
const [itemProps, componentProps] = splitItemProps$
|
|
2563
|
+
const [itemProps, componentProps] = splitItemProps$6(props);
|
|
2381
2564
|
const { element, children, ...rest } = componentProps;
|
|
2382
2565
|
const attributes = mergeProps(pagination.getItemProps(itemProps), rest);
|
|
2383
2566
|
return element ? element(attributes) : /* @__PURE__ */ jsx("a", {
|
|
@@ -2447,7 +2630,7 @@ function PaginationRootProvider(props) {
|
|
|
2447
2630
|
//#endregion
|
|
2448
2631
|
//#region src/components/pagination/modules/provider.ts
|
|
2449
2632
|
function usePagination(props = {}) {
|
|
2450
|
-
return connect$
|
|
2633
|
+
return connect$11(useMachine(machine$11, {
|
|
2451
2634
|
id: useId(),
|
|
2452
2635
|
...props
|
|
2453
2636
|
}), normalizeProps);
|
|
@@ -2456,7 +2639,7 @@ function usePagination(props = {}) {
|
|
|
2456
2639
|
//#endregion
|
|
2457
2640
|
//#region src/components/pagination/anatomy/root.tsx
|
|
2458
2641
|
function PaginationRoot(props) {
|
|
2459
|
-
const [paginationProps, componentProps] = splitProps$
|
|
2642
|
+
const [paginationProps, componentProps] = splitProps$11(props);
|
|
2460
2643
|
const { element, children, ...rest } = componentProps;
|
|
2461
2644
|
const pagination = usePagination(paginationProps);
|
|
2462
2645
|
const attributes = mergeProps(pagination.getRootProps(), rest);
|
|
@@ -2591,7 +2774,7 @@ function RootProvider$9(props) {
|
|
|
2591
2774
|
//#endregion
|
|
2592
2775
|
//#region src/components/popover/modules/provider.ts
|
|
2593
2776
|
function usePopover(props = {}) {
|
|
2594
|
-
return connect$
|
|
2777
|
+
return connect$12(useMachine(machine$12, {
|
|
2595
2778
|
id: useId(),
|
|
2596
2779
|
...props
|
|
2597
2780
|
}), normalizeProps);
|
|
@@ -2600,7 +2783,7 @@ function usePopover(props = {}) {
|
|
|
2600
2783
|
//#endregion
|
|
2601
2784
|
//#region src/components/popover/anatomy/root.tsx
|
|
2602
2785
|
function Root$10(props) {
|
|
2603
|
-
const [popoverProps, componentProps] = splitProps$
|
|
2786
|
+
const [popoverProps, componentProps] = splitProps$12(props);
|
|
2604
2787
|
const { children } = componentProps;
|
|
2605
2788
|
const popover = usePopover(popoverProps);
|
|
2606
2789
|
return /* @__PURE__ */ jsx(RootContext$25.Provider, {
|
|
@@ -2741,7 +2924,7 @@ function RootProvider$8(props) {
|
|
|
2741
2924
|
//#endregion
|
|
2742
2925
|
//#region src/components/progress/modules/provider.ts
|
|
2743
2926
|
function useProgress(props = {}) {
|
|
2744
|
-
return connect$
|
|
2927
|
+
return connect$13(useMachine(machine$13, {
|
|
2745
2928
|
id: useId(),
|
|
2746
2929
|
...props
|
|
2747
2930
|
}), normalizeProps);
|
|
@@ -2750,7 +2933,7 @@ function useProgress(props = {}) {
|
|
|
2750
2933
|
//#endregion
|
|
2751
2934
|
//#region src/components/progress/anatomy/root.tsx
|
|
2752
2935
|
function Root$8(props) {
|
|
2753
|
-
const [progressProps, componentProps] = splitProps$
|
|
2936
|
+
const [progressProps, componentProps] = splitProps$13(props);
|
|
2754
2937
|
const { element, children, ...rest } = componentProps;
|
|
2755
2938
|
const progress = useProgress(progressProps);
|
|
2756
2939
|
const attributes = mergeProps(progress.getRootProps(), rest);
|
|
@@ -2908,7 +3091,7 @@ function StarHalf(props) {
|
|
|
2908
3091
|
//#region src/components/rating-group/anatomy/item.tsx
|
|
2909
3092
|
function Item$5(props) {
|
|
2910
3093
|
const ratingGroup = use(RootContext$21);
|
|
2911
|
-
const [itemProps, componentProps] = splitItemProps$
|
|
3094
|
+
const [itemProps, componentProps] = splitItemProps$7(props);
|
|
2912
3095
|
const { element, children, empty = /* @__PURE__ */ jsx(StarEmpty, {}), half = /* @__PURE__ */ jsx(StarHalf, {}), full = /* @__PURE__ */ jsx(StarFull, {}), ...rest } = componentProps;
|
|
2913
3096
|
const itemState = ratingGroup.getItemState(itemProps);
|
|
2914
3097
|
const attributes = mergeProps(ratingGroup.getItemProps(itemProps), rest);
|
|
@@ -2955,7 +3138,7 @@ function RootProvider$7(props) {
|
|
|
2955
3138
|
//#endregion
|
|
2956
3139
|
//#region src/components/rating-group/modules/provider.ts
|
|
2957
3140
|
function useRatingGroup(props = {}) {
|
|
2958
|
-
return connect$
|
|
3141
|
+
return connect$14(useMachine(machine$14, {
|
|
2959
3142
|
id: useId(),
|
|
2960
3143
|
...props
|
|
2961
3144
|
}), normalizeProps);
|
|
@@ -2964,7 +3147,7 @@ function useRatingGroup(props = {}) {
|
|
|
2964
3147
|
//#endregion
|
|
2965
3148
|
//#region src/components/rating-group/anatomy/root.tsx
|
|
2966
3149
|
function Root$7(props) {
|
|
2967
|
-
const [ratingGroupProps, componentProps] = splitProps$
|
|
3150
|
+
const [ratingGroupProps, componentProps] = splitProps$14(props);
|
|
2968
3151
|
const { element, children, ...rest } = componentProps;
|
|
2969
3152
|
const ratingGroup = useRatingGroup(ratingGroupProps);
|
|
2970
3153
|
const attributes = mergeProps(ratingGroup.getRootProps(), rest);
|
|
@@ -3046,7 +3229,7 @@ function ItemText$1(props) {
|
|
|
3046
3229
|
//#region src/components/segmented-control/anatomy/item.tsx
|
|
3047
3230
|
function Item$4(props) {
|
|
3048
3231
|
const segmentedControl = use(RootContext$19);
|
|
3049
|
-
const [itemProps, componentProps] = splitItemProps$
|
|
3232
|
+
const [itemProps, componentProps] = splitItemProps$8(props);
|
|
3050
3233
|
const { element, children, ...rest } = componentProps;
|
|
3051
3234
|
const attributes = mergeProps(segmentedControl.getItemProps(itemProps), rest);
|
|
3052
3235
|
return /* @__PURE__ */ jsx(ItemContext$2.Provider, {
|
|
@@ -3095,7 +3278,7 @@ function RootProvider$6(props) {
|
|
|
3095
3278
|
//#endregion
|
|
3096
3279
|
//#region src/components/segmented-control/modules/provider.ts
|
|
3097
3280
|
function useSegmentedControl(props = {}) {
|
|
3098
|
-
return connect$
|
|
3281
|
+
return connect$15(useMachine(machine$15, {
|
|
3099
3282
|
id: useId(),
|
|
3100
3283
|
orientation: "horizontal",
|
|
3101
3284
|
...props
|
|
@@ -3105,7 +3288,7 @@ function useSegmentedControl(props = {}) {
|
|
|
3105
3288
|
//#endregion
|
|
3106
3289
|
//#region src/components/segmented-control/anatomy/root.tsx
|
|
3107
3290
|
function Root$6(props) {
|
|
3108
|
-
const [segmentedControlProps, componentProps] = splitProps$
|
|
3291
|
+
const [segmentedControlProps, componentProps] = splitProps$15(props);
|
|
3109
3292
|
const { element, children, ...rest } = componentProps;
|
|
3110
3293
|
const segmentedControl = useSegmentedControl(segmentedControlProps);
|
|
3111
3294
|
const attributes = mergeProps(segmentedControl.getRootProps(), rest);
|
|
@@ -3234,7 +3417,7 @@ function SliderRootProvider(props) {
|
|
|
3234
3417
|
//#endregion
|
|
3235
3418
|
//#region src/components/slider/modules/provider.ts
|
|
3236
3419
|
function useSlider(props = {}) {
|
|
3237
|
-
return connect$
|
|
3420
|
+
return connect$16(useMachine(machine$16, {
|
|
3238
3421
|
id: useId(),
|
|
3239
3422
|
...props
|
|
3240
3423
|
}), normalizeProps);
|
|
@@ -3243,7 +3426,7 @@ function useSlider(props = {}) {
|
|
|
3243
3426
|
//#endregion
|
|
3244
3427
|
//#region src/components/slider/anatomy/root.tsx
|
|
3245
3428
|
function SliderRoot$1(props) {
|
|
3246
|
-
const [sliderProps, componentProps] = splitProps$
|
|
3429
|
+
const [sliderProps, componentProps] = splitProps$16(props);
|
|
3247
3430
|
const { element, children, ...rest } = componentProps;
|
|
3248
3431
|
const slider = useSlider(sliderProps);
|
|
3249
3432
|
const attributes = mergeProps(slider.getRootProps(), rest);
|
|
@@ -3422,7 +3605,7 @@ function RootProvider$5(props) {
|
|
|
3422
3605
|
//#endregion
|
|
3423
3606
|
//#region src/components/steps/modules/provider.ts
|
|
3424
3607
|
function useSteps(props = {}) {
|
|
3425
|
-
return connect$
|
|
3608
|
+
return connect$17(useMachine(machine$17, {
|
|
3426
3609
|
id: useId(),
|
|
3427
3610
|
...props
|
|
3428
3611
|
}), normalizeProps);
|
|
@@ -3431,7 +3614,7 @@ function useSteps(props = {}) {
|
|
|
3431
3614
|
//#endregion
|
|
3432
3615
|
//#region src/components/steps/anatomy/root.tsx
|
|
3433
3616
|
function SliderRoot(props) {
|
|
3434
|
-
const [stepsProps, componentProps] = splitProps$
|
|
3617
|
+
const [stepsProps, componentProps] = splitProps$17(props);
|
|
3435
3618
|
const { element, children, ...rest } = componentProps;
|
|
3436
3619
|
const steps = useSteps(stepsProps);
|
|
3437
3620
|
const attributes = mergeProps(steps.getRootProps(), rest);
|
|
@@ -3547,7 +3730,7 @@ function RootProvider$4(props) {
|
|
|
3547
3730
|
//#endregion
|
|
3548
3731
|
//#region src/components/switch/modules/provider.ts
|
|
3549
3732
|
function useSwitch(props = {}) {
|
|
3550
|
-
return connect$
|
|
3733
|
+
return connect$18(useMachine(machine$18, {
|
|
3551
3734
|
id: useId(),
|
|
3552
3735
|
...props
|
|
3553
3736
|
}), normalizeProps);
|
|
@@ -3556,7 +3739,7 @@ function useSwitch(props = {}) {
|
|
|
3556
3739
|
//#endregion
|
|
3557
3740
|
//#region src/components/switch/anatomy/root.tsx
|
|
3558
3741
|
function Root$5(props) {
|
|
3559
|
-
const [switchProps, componentProps] = splitProps$
|
|
3742
|
+
const [switchProps, componentProps] = splitProps$18(props);
|
|
3560
3743
|
const { element, children, ...rest } = componentProps;
|
|
3561
3744
|
const switch_ = useSwitch(switchProps);
|
|
3562
3745
|
const attributes = mergeProps(switch_.getRootProps(), rest);
|
|
@@ -3655,7 +3838,7 @@ function RootProvider$3(props) {
|
|
|
3655
3838
|
//#endregion
|
|
3656
3839
|
//#region src/components/tabs/modules/provider.ts
|
|
3657
3840
|
function useTabs(props = {}) {
|
|
3658
|
-
return connect$
|
|
3841
|
+
return connect$19(useMachine(machine$19, {
|
|
3659
3842
|
id: useId(),
|
|
3660
3843
|
...props
|
|
3661
3844
|
}), normalizeProps);
|
|
@@ -3664,7 +3847,7 @@ function useTabs(props = {}) {
|
|
|
3664
3847
|
//#endregion
|
|
3665
3848
|
//#region src/components/tabs/anatomy/root.tsx
|
|
3666
3849
|
function Root$4(props) {
|
|
3667
|
-
const [tabsProps, componentProps] = splitProps$
|
|
3850
|
+
const [tabsProps, componentProps] = splitProps$19(props);
|
|
3668
3851
|
const { element, children, ...rest } = componentProps;
|
|
3669
3852
|
const tabs = useTabs(tabsProps);
|
|
3670
3853
|
const attributes = mergeProps(tabs.getRootProps(), rest);
|
|
@@ -3804,7 +3987,7 @@ function ItemText(props) {
|
|
|
3804
3987
|
//#region src/components/tags-input/anatomy/item.tsx
|
|
3805
3988
|
function Item$2(props) {
|
|
3806
3989
|
const tagsInput = use(RootContext$9);
|
|
3807
|
-
const [itemProps, componentProps] = splitItemProps$
|
|
3990
|
+
const [itemProps, componentProps] = splitItemProps$9(props);
|
|
3808
3991
|
const { element, children, ...rest } = componentProps;
|
|
3809
3992
|
const attributes = mergeProps(tagsInput.getItemProps(itemProps), rest);
|
|
3810
3993
|
return /* @__PURE__ */ jsx(ItemContext.Provider, {
|
|
@@ -3853,7 +4036,7 @@ function RootProvider$2(props) {
|
|
|
3853
4036
|
//#endregion
|
|
3854
4037
|
//#region src/components/tags-input/modules/provider.ts
|
|
3855
4038
|
function useTagsInput(props = {}) {
|
|
3856
|
-
return connect$
|
|
4039
|
+
return connect$20(useMachine(machine$20, {
|
|
3857
4040
|
id: useId(),
|
|
3858
4041
|
...props
|
|
3859
4042
|
}), normalizeProps);
|
|
@@ -3862,7 +4045,7 @@ function useTagsInput(props = {}) {
|
|
|
3862
4045
|
//#endregion
|
|
3863
4046
|
//#region src/components/tags-input/anatomy/root.tsx
|
|
3864
4047
|
function Root$3(props) {
|
|
3865
|
-
const [tagsInputProps, componentProps] = splitProps$
|
|
4048
|
+
const [tagsInputProps, componentProps] = splitProps$20(props);
|
|
3866
4049
|
const { element, children, ...rest } = componentProps;
|
|
3867
4050
|
const tagsInput = useTagsInput(tagsInputProps);
|
|
3868
4051
|
const attributes = mergeProps(tagsInput.getRootProps(), rest);
|
|
@@ -4002,7 +4185,7 @@ function RootContext$6(props) {
|
|
|
4002
4185
|
function Root$2(props) {
|
|
4003
4186
|
const group$1 = use(GroupContext);
|
|
4004
4187
|
const { element, children, toast: toastProps, ...rest } = props;
|
|
4005
|
-
const toast = connect$
|
|
4188
|
+
const toast = connect$21(useMachine(machine$21, {
|
|
4006
4189
|
...toastProps,
|
|
4007
4190
|
parent: group$1
|
|
4008
4191
|
}), normalizeProps);
|
|
@@ -4052,7 +4235,7 @@ const RootContext$5 = createContext$1();
|
|
|
4052
4235
|
//#region src/components/toggle-group/anatomy/item.tsx
|
|
4053
4236
|
function Item$1(props) {
|
|
4054
4237
|
const toggleGroup = use(RootContext$5);
|
|
4055
|
-
const [itemProps, componentProps] = splitItemProps$
|
|
4238
|
+
const [itemProps, componentProps] = splitItemProps$10(props);
|
|
4056
4239
|
const { element, children, ...rest } = componentProps;
|
|
4057
4240
|
const attributes = mergeProps(toggleGroup.getItemProps(itemProps), rest);
|
|
4058
4241
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -4086,7 +4269,7 @@ function ToggleGroupRootProvider(props) {
|
|
|
4086
4269
|
//#endregion
|
|
4087
4270
|
//#region src/components/toggle-group/modules/provider.ts
|
|
4088
4271
|
function useToggleGroup(props = {}) {
|
|
4089
|
-
return connect$
|
|
4272
|
+
return connect$22(useMachine(machine$22, {
|
|
4090
4273
|
id: useId(),
|
|
4091
4274
|
...props
|
|
4092
4275
|
}), normalizeProps);
|
|
@@ -4095,7 +4278,7 @@ function useToggleGroup(props = {}) {
|
|
|
4095
4278
|
//#endregion
|
|
4096
4279
|
//#region src/components/toggle-group/anatomy/root.tsx
|
|
4097
4280
|
function ToggleGroupRoot(props) {
|
|
4098
|
-
const [toggleGroupProps, componentProps] = splitProps$
|
|
4281
|
+
const [toggleGroupProps, componentProps] = splitProps$21(props);
|
|
4099
4282
|
const { element, children, ...rest } = componentProps;
|
|
4100
4283
|
const toggleGroup = useToggleGroup(toggleGroupProps);
|
|
4101
4284
|
const attributes = mergeProps(toggleGroup.getRootProps(), rest);
|
|
@@ -4189,7 +4372,7 @@ function RootProvider$1(props) {
|
|
|
4189
4372
|
//#endregion
|
|
4190
4373
|
//#region src/components/tooltip/modules/provider.ts
|
|
4191
4374
|
function useTooltip(props = {}) {
|
|
4192
|
-
return connect$
|
|
4375
|
+
return connect$23(useMachine(machine$23, {
|
|
4193
4376
|
id: useId(),
|
|
4194
4377
|
...props
|
|
4195
4378
|
}), normalizeProps);
|
|
@@ -4198,7 +4381,7 @@ function useTooltip(props = {}) {
|
|
|
4198
4381
|
//#endregion
|
|
4199
4382
|
//#region src/components/tooltip/anatomy/root.tsx
|
|
4200
4383
|
function Root$1(props) {
|
|
4201
|
-
const [tooltipProps, componentProps] = splitProps$
|
|
4384
|
+
const [tooltipProps, componentProps] = splitProps$22(props);
|
|
4202
4385
|
const { children } = componentProps;
|
|
4203
4386
|
const tooltip = useTooltip(tooltipProps);
|
|
4204
4387
|
return /* @__PURE__ */ jsx(RootContext$3.Provider, {
|
|
@@ -4386,7 +4569,7 @@ function RootProvider(props) {
|
|
|
4386
4569
|
//#endregion
|
|
4387
4570
|
//#region src/components/tree-view/modules/provider.ts
|
|
4388
4571
|
function useTreeView(props = {}) {
|
|
4389
|
-
return connect$
|
|
4572
|
+
return connect$24(useMachine(machine$24, {
|
|
4390
4573
|
id: useId(),
|
|
4391
4574
|
...props
|
|
4392
4575
|
}), normalizeProps);
|
|
@@ -4395,7 +4578,7 @@ function useTreeView(props = {}) {
|
|
|
4395
4578
|
//#endregion
|
|
4396
4579
|
//#region src/components/tree-view/anatomy/root.tsx
|
|
4397
4580
|
function Root(props) {
|
|
4398
|
-
const [treeViewProps, componentProps] = splitProps$
|
|
4581
|
+
const [treeViewProps, componentProps] = splitProps$23(props);
|
|
4399
4582
|
const { element, children, ...rest } = componentProps;
|
|
4400
4583
|
const treeView = useTreeView(treeViewProps);
|
|
4401
4584
|
const attributes = mergeProps(treeView.getRootProps(), rest);
|
|
@@ -4445,4 +4628,4 @@ function useListCollection(options) {
|
|
|
4445
4628
|
}
|
|
4446
4629
|
|
|
4447
4630
|
//#endregion
|
|
4448
|
-
export { Accordion, AppBar, Avatar, Collapsible, Combobox, DatePicker, Dialog, FileUpload, FloatingPanel, Listbox, Menu, Navigation, Pagination, Popover, Portal, Progress, RatingGroup, SegmentedControl, Slider, Steps, Switch, Tabs, TagsInput, Toast, ToggleGroup, Tooltip, TreeView, createToaster, createTreeViewCollection, parseDate, useAccordion, useAvatar, useCollapsible, useCombobox, useDatePicker, useDialog, useFileUpload, useFloatingPanel, useListCollection, useListbox, useMenu, usePagination, usePopover, useProgress, useRatingGroup, useSegmentedControl, useSlider, useSteps, useSwitch, useTabs, useTagsInput, useToggleGroup, useTooltip, useTreeView };
|
|
4631
|
+
export { Accordion, AppBar, Avatar, Carousel, Collapsible, Combobox, DatePicker, Dialog, FileUpload, FloatingPanel, Listbox, Menu, Navigation, Pagination, Popover, Portal, Progress, RatingGroup, SegmentedControl, Slider, Steps, Switch, Tabs, TagsInput, Toast, ToggleGroup, Tooltip, TreeView, createToaster, createTreeViewCollection, parseDate, useAccordion, useAvatar, useCarousel, useCollapsible, useCombobox, useDatePicker, useDialog, useFileUpload, useFloatingPanel, useListCollection, useListbox, useMenu, usePagination, usePopover, useProgress, useRatingGroup, useSegmentedControl, useSlider, useSteps, useSwitch, useTabs, useTagsInput, useToggleGroup, useTooltip, useTreeView };
|