@skeletonlabs/skeleton-react 4.7.4 → 4.9.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 +418 -331
- package/dist/index.mjs +336 -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, {
|
|
@@ -2263,6 +2446,55 @@ function NavigationMenu(props) {
|
|
|
2263
2446
|
});
|
|
2264
2447
|
}
|
|
2265
2448
|
|
|
2449
|
+
//#endregion
|
|
2450
|
+
//#region src/components/navigation/anatomy/trigger.tsx
|
|
2451
|
+
function NavigationTrigger(props) {
|
|
2452
|
+
const { element, children, ...rest } = props;
|
|
2453
|
+
const navigation = use(RootContext$28);
|
|
2454
|
+
const attributes = mergeProps({
|
|
2455
|
+
"data-scope": "navigation",
|
|
2456
|
+
"data-part": "trigger",
|
|
2457
|
+
"data-layout": navigation.layout,
|
|
2458
|
+
type: "button"
|
|
2459
|
+
}, rest);
|
|
2460
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
2461
|
+
...attributes,
|
|
2462
|
+
children
|
|
2463
|
+
});
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2466
|
+
//#endregion
|
|
2467
|
+
//#region src/components/navigation/anatomy/trigger-anchor.tsx
|
|
2468
|
+
function NavigationTriggerAnchor(props) {
|
|
2469
|
+
const { element, children, ...rest } = props;
|
|
2470
|
+
const navigation = use(RootContext$28);
|
|
2471
|
+
const attributes = mergeProps({
|
|
2472
|
+
"data-scope": "navigation",
|
|
2473
|
+
"data-part": "trigger-anchor",
|
|
2474
|
+
"data-layout": navigation.layout
|
|
2475
|
+
}, rest);
|
|
2476
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("a", {
|
|
2477
|
+
...attributes,
|
|
2478
|
+
children
|
|
2479
|
+
});
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
//#endregion
|
|
2483
|
+
//#region src/components/navigation/anatomy/trigger-text.tsx
|
|
2484
|
+
function NavigationTriggerText(props) {
|
|
2485
|
+
const { element, children, ...rest } = props;
|
|
2486
|
+
const navigation = use(RootContext$28);
|
|
2487
|
+
const attributes = mergeProps({
|
|
2488
|
+
"data-scope": "navigation",
|
|
2489
|
+
"data-part": "trigger-text",
|
|
2490
|
+
"data-layout": navigation.layout
|
|
2491
|
+
}, rest);
|
|
2492
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
2493
|
+
...attributes,
|
|
2494
|
+
children
|
|
2495
|
+
});
|
|
2496
|
+
}
|
|
2497
|
+
|
|
2266
2498
|
//#endregion
|
|
2267
2499
|
//#region src/components/navigation/anatomy/root.tsx
|
|
2268
2500
|
function NavigationRoot(props) {
|
|
@@ -2289,6 +2521,9 @@ const Navigation = Object.assign(NavigationRoot, {
|
|
|
2289
2521
|
Group: NavigationGroup,
|
|
2290
2522
|
Label: NavigationLabel,
|
|
2291
2523
|
Menu: NavigationMenu,
|
|
2524
|
+
Trigger: NavigationTrigger,
|
|
2525
|
+
TriggerAnchor: NavigationTriggerAnchor,
|
|
2526
|
+
TriggerText: NavigationTriggerText,
|
|
2292
2527
|
Footer: NavigationFooter
|
|
2293
2528
|
});
|
|
2294
2529
|
|
|
@@ -2325,7 +2560,7 @@ function FirstTrigger(props) {
|
|
|
2325
2560
|
//#region src/components/pagination/anatomy/item.tsx
|
|
2326
2561
|
function Item$6(props) {
|
|
2327
2562
|
const pagination = use(RootContext$27);
|
|
2328
|
-
const [itemProps, componentProps] = splitItemProps$
|
|
2563
|
+
const [itemProps, componentProps] = splitItemProps$6(props);
|
|
2329
2564
|
const { element, children, ...rest } = componentProps;
|
|
2330
2565
|
const attributes = mergeProps(pagination.getItemProps(itemProps), rest);
|
|
2331
2566
|
return element ? element(attributes) : /* @__PURE__ */ jsx("a", {
|
|
@@ -2395,7 +2630,7 @@ function PaginationRootProvider(props) {
|
|
|
2395
2630
|
//#endregion
|
|
2396
2631
|
//#region src/components/pagination/modules/provider.ts
|
|
2397
2632
|
function usePagination(props = {}) {
|
|
2398
|
-
return connect$
|
|
2633
|
+
return connect$11(useMachine(machine$11, {
|
|
2399
2634
|
id: useId(),
|
|
2400
2635
|
...props
|
|
2401
2636
|
}), normalizeProps);
|
|
@@ -2404,7 +2639,7 @@ function usePagination(props = {}) {
|
|
|
2404
2639
|
//#endregion
|
|
2405
2640
|
//#region src/components/pagination/anatomy/root.tsx
|
|
2406
2641
|
function PaginationRoot(props) {
|
|
2407
|
-
const [paginationProps, componentProps] = splitProps$
|
|
2642
|
+
const [paginationProps, componentProps] = splitProps$11(props);
|
|
2408
2643
|
const { element, children, ...rest } = componentProps;
|
|
2409
2644
|
const pagination = usePagination(paginationProps);
|
|
2410
2645
|
const attributes = mergeProps(pagination.getRootProps(), rest);
|
|
@@ -2539,7 +2774,7 @@ function RootProvider$9(props) {
|
|
|
2539
2774
|
//#endregion
|
|
2540
2775
|
//#region src/components/popover/modules/provider.ts
|
|
2541
2776
|
function usePopover(props = {}) {
|
|
2542
|
-
return connect$
|
|
2777
|
+
return connect$12(useMachine(machine$12, {
|
|
2543
2778
|
id: useId(),
|
|
2544
2779
|
...props
|
|
2545
2780
|
}), normalizeProps);
|
|
@@ -2548,7 +2783,7 @@ function usePopover(props = {}) {
|
|
|
2548
2783
|
//#endregion
|
|
2549
2784
|
//#region src/components/popover/anatomy/root.tsx
|
|
2550
2785
|
function Root$10(props) {
|
|
2551
|
-
const [popoverProps, componentProps] = splitProps$
|
|
2786
|
+
const [popoverProps, componentProps] = splitProps$12(props);
|
|
2552
2787
|
const { children } = componentProps;
|
|
2553
2788
|
const popover = usePopover(popoverProps);
|
|
2554
2789
|
return /* @__PURE__ */ jsx(RootContext$25.Provider, {
|
|
@@ -2689,7 +2924,7 @@ function RootProvider$8(props) {
|
|
|
2689
2924
|
//#endregion
|
|
2690
2925
|
//#region src/components/progress/modules/provider.ts
|
|
2691
2926
|
function useProgress(props = {}) {
|
|
2692
|
-
return connect$
|
|
2927
|
+
return connect$13(useMachine(machine$13, {
|
|
2693
2928
|
id: useId(),
|
|
2694
2929
|
...props
|
|
2695
2930
|
}), normalizeProps);
|
|
@@ -2698,7 +2933,7 @@ function useProgress(props = {}) {
|
|
|
2698
2933
|
//#endregion
|
|
2699
2934
|
//#region src/components/progress/anatomy/root.tsx
|
|
2700
2935
|
function Root$8(props) {
|
|
2701
|
-
const [progressProps, componentProps] = splitProps$
|
|
2936
|
+
const [progressProps, componentProps] = splitProps$13(props);
|
|
2702
2937
|
const { element, children, ...rest } = componentProps;
|
|
2703
2938
|
const progress = useProgress(progressProps);
|
|
2704
2939
|
const attributes = mergeProps(progress.getRootProps(), rest);
|
|
@@ -2856,7 +3091,7 @@ function StarHalf(props) {
|
|
|
2856
3091
|
//#region src/components/rating-group/anatomy/item.tsx
|
|
2857
3092
|
function Item$5(props) {
|
|
2858
3093
|
const ratingGroup = use(RootContext$21);
|
|
2859
|
-
const [itemProps, componentProps] = splitItemProps$
|
|
3094
|
+
const [itemProps, componentProps] = splitItemProps$7(props);
|
|
2860
3095
|
const { element, children, empty = /* @__PURE__ */ jsx(StarEmpty, {}), half = /* @__PURE__ */ jsx(StarHalf, {}), full = /* @__PURE__ */ jsx(StarFull, {}), ...rest } = componentProps;
|
|
2861
3096
|
const itemState = ratingGroup.getItemState(itemProps);
|
|
2862
3097
|
const attributes = mergeProps(ratingGroup.getItemProps(itemProps), rest);
|
|
@@ -2903,7 +3138,7 @@ function RootProvider$7(props) {
|
|
|
2903
3138
|
//#endregion
|
|
2904
3139
|
//#region src/components/rating-group/modules/provider.ts
|
|
2905
3140
|
function useRatingGroup(props = {}) {
|
|
2906
|
-
return connect$
|
|
3141
|
+
return connect$14(useMachine(machine$14, {
|
|
2907
3142
|
id: useId(),
|
|
2908
3143
|
...props
|
|
2909
3144
|
}), normalizeProps);
|
|
@@ -2912,7 +3147,7 @@ function useRatingGroup(props = {}) {
|
|
|
2912
3147
|
//#endregion
|
|
2913
3148
|
//#region src/components/rating-group/anatomy/root.tsx
|
|
2914
3149
|
function Root$7(props) {
|
|
2915
|
-
const [ratingGroupProps, componentProps] = splitProps$
|
|
3150
|
+
const [ratingGroupProps, componentProps] = splitProps$14(props);
|
|
2916
3151
|
const { element, children, ...rest } = componentProps;
|
|
2917
3152
|
const ratingGroup = useRatingGroup(ratingGroupProps);
|
|
2918
3153
|
const attributes = mergeProps(ratingGroup.getRootProps(), rest);
|
|
@@ -2994,7 +3229,7 @@ function ItemText$1(props) {
|
|
|
2994
3229
|
//#region src/components/segmented-control/anatomy/item.tsx
|
|
2995
3230
|
function Item$4(props) {
|
|
2996
3231
|
const segmentedControl = use(RootContext$19);
|
|
2997
|
-
const [itemProps, componentProps] = splitItemProps$
|
|
3232
|
+
const [itemProps, componentProps] = splitItemProps$8(props);
|
|
2998
3233
|
const { element, children, ...rest } = componentProps;
|
|
2999
3234
|
const attributes = mergeProps(segmentedControl.getItemProps(itemProps), rest);
|
|
3000
3235
|
return /* @__PURE__ */ jsx(ItemContext$2.Provider, {
|
|
@@ -3043,7 +3278,7 @@ function RootProvider$6(props) {
|
|
|
3043
3278
|
//#endregion
|
|
3044
3279
|
//#region src/components/segmented-control/modules/provider.ts
|
|
3045
3280
|
function useSegmentedControl(props = {}) {
|
|
3046
|
-
return connect$
|
|
3281
|
+
return connect$15(useMachine(machine$15, {
|
|
3047
3282
|
id: useId(),
|
|
3048
3283
|
orientation: "horizontal",
|
|
3049
3284
|
...props
|
|
@@ -3053,7 +3288,7 @@ function useSegmentedControl(props = {}) {
|
|
|
3053
3288
|
//#endregion
|
|
3054
3289
|
//#region src/components/segmented-control/anatomy/root.tsx
|
|
3055
3290
|
function Root$6(props) {
|
|
3056
|
-
const [segmentedControlProps, componentProps] = splitProps$
|
|
3291
|
+
const [segmentedControlProps, componentProps] = splitProps$15(props);
|
|
3057
3292
|
const { element, children, ...rest } = componentProps;
|
|
3058
3293
|
const segmentedControl = useSegmentedControl(segmentedControlProps);
|
|
3059
3294
|
const attributes = mergeProps(segmentedControl.getRootProps(), rest);
|
|
@@ -3182,7 +3417,7 @@ function SliderRootProvider(props) {
|
|
|
3182
3417
|
//#endregion
|
|
3183
3418
|
//#region src/components/slider/modules/provider.ts
|
|
3184
3419
|
function useSlider(props = {}) {
|
|
3185
|
-
return connect$
|
|
3420
|
+
return connect$16(useMachine(machine$16, {
|
|
3186
3421
|
id: useId(),
|
|
3187
3422
|
...props
|
|
3188
3423
|
}), normalizeProps);
|
|
@@ -3191,7 +3426,7 @@ function useSlider(props = {}) {
|
|
|
3191
3426
|
//#endregion
|
|
3192
3427
|
//#region src/components/slider/anatomy/root.tsx
|
|
3193
3428
|
function SliderRoot$1(props) {
|
|
3194
|
-
const [sliderProps, componentProps] = splitProps$
|
|
3429
|
+
const [sliderProps, componentProps] = splitProps$16(props);
|
|
3195
3430
|
const { element, children, ...rest } = componentProps;
|
|
3196
3431
|
const slider = useSlider(sliderProps);
|
|
3197
3432
|
const attributes = mergeProps(slider.getRootProps(), rest);
|
|
@@ -3370,7 +3605,7 @@ function RootProvider$5(props) {
|
|
|
3370
3605
|
//#endregion
|
|
3371
3606
|
//#region src/components/steps/modules/provider.ts
|
|
3372
3607
|
function useSteps(props = {}) {
|
|
3373
|
-
return connect$
|
|
3608
|
+
return connect$17(useMachine(machine$17, {
|
|
3374
3609
|
id: useId(),
|
|
3375
3610
|
...props
|
|
3376
3611
|
}), normalizeProps);
|
|
@@ -3379,7 +3614,7 @@ function useSteps(props = {}) {
|
|
|
3379
3614
|
//#endregion
|
|
3380
3615
|
//#region src/components/steps/anatomy/root.tsx
|
|
3381
3616
|
function SliderRoot(props) {
|
|
3382
|
-
const [stepsProps, componentProps] = splitProps$
|
|
3617
|
+
const [stepsProps, componentProps] = splitProps$17(props);
|
|
3383
3618
|
const { element, children, ...rest } = componentProps;
|
|
3384
3619
|
const steps = useSteps(stepsProps);
|
|
3385
3620
|
const attributes = mergeProps(steps.getRootProps(), rest);
|
|
@@ -3495,7 +3730,7 @@ function RootProvider$4(props) {
|
|
|
3495
3730
|
//#endregion
|
|
3496
3731
|
//#region src/components/switch/modules/provider.ts
|
|
3497
3732
|
function useSwitch(props = {}) {
|
|
3498
|
-
return connect$
|
|
3733
|
+
return connect$18(useMachine(machine$18, {
|
|
3499
3734
|
id: useId(),
|
|
3500
3735
|
...props
|
|
3501
3736
|
}), normalizeProps);
|
|
@@ -3504,7 +3739,7 @@ function useSwitch(props = {}) {
|
|
|
3504
3739
|
//#endregion
|
|
3505
3740
|
//#region src/components/switch/anatomy/root.tsx
|
|
3506
3741
|
function Root$5(props) {
|
|
3507
|
-
const [switchProps, componentProps] = splitProps$
|
|
3742
|
+
const [switchProps, componentProps] = splitProps$18(props);
|
|
3508
3743
|
const { element, children, ...rest } = componentProps;
|
|
3509
3744
|
const switch_ = useSwitch(switchProps);
|
|
3510
3745
|
const attributes = mergeProps(switch_.getRootProps(), rest);
|
|
@@ -3603,7 +3838,7 @@ function RootProvider$3(props) {
|
|
|
3603
3838
|
//#endregion
|
|
3604
3839
|
//#region src/components/tabs/modules/provider.ts
|
|
3605
3840
|
function useTabs(props = {}) {
|
|
3606
|
-
return connect$
|
|
3841
|
+
return connect$19(useMachine(machine$19, {
|
|
3607
3842
|
id: useId(),
|
|
3608
3843
|
...props
|
|
3609
3844
|
}), normalizeProps);
|
|
@@ -3612,7 +3847,7 @@ function useTabs(props = {}) {
|
|
|
3612
3847
|
//#endregion
|
|
3613
3848
|
//#region src/components/tabs/anatomy/root.tsx
|
|
3614
3849
|
function Root$4(props) {
|
|
3615
|
-
const [tabsProps, componentProps] = splitProps$
|
|
3850
|
+
const [tabsProps, componentProps] = splitProps$19(props);
|
|
3616
3851
|
const { element, children, ...rest } = componentProps;
|
|
3617
3852
|
const tabs = useTabs(tabsProps);
|
|
3618
3853
|
const attributes = mergeProps(tabs.getRootProps(), rest);
|
|
@@ -3752,7 +3987,7 @@ function ItemText(props) {
|
|
|
3752
3987
|
//#region src/components/tags-input/anatomy/item.tsx
|
|
3753
3988
|
function Item$2(props) {
|
|
3754
3989
|
const tagsInput = use(RootContext$9);
|
|
3755
|
-
const [itemProps, componentProps] = splitItemProps$
|
|
3990
|
+
const [itemProps, componentProps] = splitItemProps$9(props);
|
|
3756
3991
|
const { element, children, ...rest } = componentProps;
|
|
3757
3992
|
const attributes = mergeProps(tagsInput.getItemProps(itemProps), rest);
|
|
3758
3993
|
return /* @__PURE__ */ jsx(ItemContext.Provider, {
|
|
@@ -3801,7 +4036,7 @@ function RootProvider$2(props) {
|
|
|
3801
4036
|
//#endregion
|
|
3802
4037
|
//#region src/components/tags-input/modules/provider.ts
|
|
3803
4038
|
function useTagsInput(props = {}) {
|
|
3804
|
-
return connect$
|
|
4039
|
+
return connect$20(useMachine(machine$20, {
|
|
3805
4040
|
id: useId(),
|
|
3806
4041
|
...props
|
|
3807
4042
|
}), normalizeProps);
|
|
@@ -3810,7 +4045,7 @@ function useTagsInput(props = {}) {
|
|
|
3810
4045
|
//#endregion
|
|
3811
4046
|
//#region src/components/tags-input/anatomy/root.tsx
|
|
3812
4047
|
function Root$3(props) {
|
|
3813
|
-
const [tagsInputProps, componentProps] = splitProps$
|
|
4048
|
+
const [tagsInputProps, componentProps] = splitProps$20(props);
|
|
3814
4049
|
const { element, children, ...rest } = componentProps;
|
|
3815
4050
|
const tagsInput = useTagsInput(tagsInputProps);
|
|
3816
4051
|
const attributes = mergeProps(tagsInput.getRootProps(), rest);
|
|
@@ -3950,7 +4185,7 @@ function RootContext$6(props) {
|
|
|
3950
4185
|
function Root$2(props) {
|
|
3951
4186
|
const group$1 = use(GroupContext);
|
|
3952
4187
|
const { element, children, toast: toastProps, ...rest } = props;
|
|
3953
|
-
const toast = connect$
|
|
4188
|
+
const toast = connect$21(useMachine(machine$21, {
|
|
3954
4189
|
...toastProps,
|
|
3955
4190
|
parent: group$1
|
|
3956
4191
|
}), normalizeProps);
|
|
@@ -4000,7 +4235,7 @@ const RootContext$5 = createContext$1();
|
|
|
4000
4235
|
//#region src/components/toggle-group/anatomy/item.tsx
|
|
4001
4236
|
function Item$1(props) {
|
|
4002
4237
|
const toggleGroup = use(RootContext$5);
|
|
4003
|
-
const [itemProps, componentProps] = splitItemProps$
|
|
4238
|
+
const [itemProps, componentProps] = splitItemProps$10(props);
|
|
4004
4239
|
const { element, children, ...rest } = componentProps;
|
|
4005
4240
|
const attributes = mergeProps(toggleGroup.getItemProps(itemProps), rest);
|
|
4006
4241
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -4034,7 +4269,7 @@ function ToggleGroupRootProvider(props) {
|
|
|
4034
4269
|
//#endregion
|
|
4035
4270
|
//#region src/components/toggle-group/modules/provider.ts
|
|
4036
4271
|
function useToggleGroup(props = {}) {
|
|
4037
|
-
return connect$
|
|
4272
|
+
return connect$22(useMachine(machine$22, {
|
|
4038
4273
|
id: useId(),
|
|
4039
4274
|
...props
|
|
4040
4275
|
}), normalizeProps);
|
|
@@ -4043,7 +4278,7 @@ function useToggleGroup(props = {}) {
|
|
|
4043
4278
|
//#endregion
|
|
4044
4279
|
//#region src/components/toggle-group/anatomy/root.tsx
|
|
4045
4280
|
function ToggleGroupRoot(props) {
|
|
4046
|
-
const [toggleGroupProps, componentProps] = splitProps$
|
|
4281
|
+
const [toggleGroupProps, componentProps] = splitProps$21(props);
|
|
4047
4282
|
const { element, children, ...rest } = componentProps;
|
|
4048
4283
|
const toggleGroup = useToggleGroup(toggleGroupProps);
|
|
4049
4284
|
const attributes = mergeProps(toggleGroup.getRootProps(), rest);
|
|
@@ -4137,7 +4372,7 @@ function RootProvider$1(props) {
|
|
|
4137
4372
|
//#endregion
|
|
4138
4373
|
//#region src/components/tooltip/modules/provider.ts
|
|
4139
4374
|
function useTooltip(props = {}) {
|
|
4140
|
-
return connect$
|
|
4375
|
+
return connect$23(useMachine(machine$23, {
|
|
4141
4376
|
id: useId(),
|
|
4142
4377
|
...props
|
|
4143
4378
|
}), normalizeProps);
|
|
@@ -4146,7 +4381,7 @@ function useTooltip(props = {}) {
|
|
|
4146
4381
|
//#endregion
|
|
4147
4382
|
//#region src/components/tooltip/anatomy/root.tsx
|
|
4148
4383
|
function Root$1(props) {
|
|
4149
|
-
const [tooltipProps, componentProps] = splitProps$
|
|
4384
|
+
const [tooltipProps, componentProps] = splitProps$22(props);
|
|
4150
4385
|
const { children } = componentProps;
|
|
4151
4386
|
const tooltip = useTooltip(tooltipProps);
|
|
4152
4387
|
return /* @__PURE__ */ jsx(RootContext$3.Provider, {
|
|
@@ -4334,7 +4569,7 @@ function RootProvider(props) {
|
|
|
4334
4569
|
//#endregion
|
|
4335
4570
|
//#region src/components/tree-view/modules/provider.ts
|
|
4336
4571
|
function useTreeView(props = {}) {
|
|
4337
|
-
return connect$
|
|
4572
|
+
return connect$24(useMachine(machine$24, {
|
|
4338
4573
|
id: useId(),
|
|
4339
4574
|
...props
|
|
4340
4575
|
}), normalizeProps);
|
|
@@ -4343,7 +4578,7 @@ function useTreeView(props = {}) {
|
|
|
4343
4578
|
//#endregion
|
|
4344
4579
|
//#region src/components/tree-view/anatomy/root.tsx
|
|
4345
4580
|
function Root(props) {
|
|
4346
|
-
const [treeViewProps, componentProps] = splitProps$
|
|
4581
|
+
const [treeViewProps, componentProps] = splitProps$23(props);
|
|
4347
4582
|
const { element, children, ...rest } = componentProps;
|
|
4348
4583
|
const treeView = useTreeView(treeViewProps);
|
|
4349
4584
|
const attributes = mergeProps(treeView.getRootProps(), rest);
|
|
@@ -4393,4 +4628,4 @@ function useListCollection(options) {
|
|
|
4393
4628
|
}
|
|
4394
4629
|
|
|
4395
4630
|
//#endregion
|
|
4396
|
-
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 };
|