@skeletonlabs/skeleton-react 4.6.1 → 4.7.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 +354 -288
- package/dist/index.mjs +552 -378
- package/package.json +3 -2
package/dist/index.mjs
CHANGED
|
@@ -19,13 +19,14 @@ import { connect as connect$12, machine as machine$12, splitProps as splitProps$
|
|
|
19
19
|
import { connect as connect$13, machine as machine$13, splitItemProps as splitItemProps$6, splitProps as splitProps$13 } from "@zag-js/rating-group";
|
|
20
20
|
import { connect as connect$14, machine as machine$14, splitItemProps as splitItemProps$7, splitProps as splitProps$14 } from "@zag-js/radio-group";
|
|
21
21
|
import { connect as connect$15, machine as machine$15, splitProps as splitProps$15, splitThumbProps } from "@zag-js/slider";
|
|
22
|
-
import { connect as connect$16, machine as machine$16, splitProps as splitProps$16 } from "@zag-js/
|
|
23
|
-
import { connect as connect$17, machine as machine$17,
|
|
24
|
-
import { connect as connect$18, machine as machine$18,
|
|
25
|
-
import { connect as connect$19,
|
|
26
|
-
import { connect as connect$20,
|
|
27
|
-
import { connect as connect$21, machine as machine$21, splitProps as splitProps$20 } from "@zag-js/
|
|
28
|
-
import {
|
|
22
|
+
import { connect as connect$16, machine as machine$16, splitProps as splitProps$16 } from "@zag-js/steps";
|
|
23
|
+
import { connect as connect$17, machine as machine$17, splitProps as splitProps$17 } from "@zag-js/switch";
|
|
24
|
+
import { connect as connect$18, machine as machine$18, splitContentProps, splitProps as splitProps$18, splitTriggerProps } from "@zag-js/tabs";
|
|
25
|
+
import { connect as connect$19, machine as machine$19, splitItemProps as splitItemProps$8, splitProps as splitProps$19 } from "@zag-js/tags-input";
|
|
26
|
+
import { connect as connect$20, createStore as createToaster, group, machine as machine$20 } from "@zag-js/toast";
|
|
27
|
+
import { connect as connect$21, machine as machine$21, splitItemProps as splitItemProps$9, splitProps as splitProps$20 } from "@zag-js/toggle-group";
|
|
28
|
+
import { connect as connect$22, machine as machine$22, splitProps as splitProps$21 } from "@zag-js/tooltip";
|
|
29
|
+
import { collection as createTreeViewCollection, connect as connect$23, machine as machine$23, splitProps as splitProps$22 } from "@zag-js/tree-view";
|
|
29
30
|
import { ListCollection } from "@zag-js/collection";
|
|
30
31
|
|
|
31
32
|
//#region src/internal/create-context.ts
|
|
@@ -35,7 +36,7 @@ function createContext$1(defaultValue) {
|
|
|
35
36
|
|
|
36
37
|
//#endregion
|
|
37
38
|
//#region src/components/accordion/modules/item-context.ts
|
|
38
|
-
const ItemContext$
|
|
39
|
+
const ItemContext$7 = createContext$1();
|
|
39
40
|
|
|
40
41
|
//#endregion
|
|
41
42
|
//#region src/components/accordion/modules/provider.ts
|
|
@@ -48,13 +49,13 @@ function useAccordion(props = {}) {
|
|
|
48
49
|
|
|
49
50
|
//#endregion
|
|
50
51
|
//#region src/components/accordion/modules/root-context.ts
|
|
51
|
-
const RootContext$
|
|
52
|
+
const RootContext$48 = 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 itemProps = use(ItemContext$
|
|
57
|
+
const accordion = use(RootContext$48);
|
|
58
|
+
const itemProps = use(ItemContext$7);
|
|
58
59
|
const { element, children, ...rest } = props;
|
|
59
60
|
const attributes = mergeProps(accordion.getItemContentProps(itemProps), { className: classes.accordion.itemContent }, rest);
|
|
60
61
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -66,8 +67,8 @@ 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 itemProps = use(ItemContext$
|
|
70
|
+
const accordion = use(RootContext$48);
|
|
71
|
+
const itemProps = use(ItemContext$7);
|
|
71
72
|
const { element, children, ...rest } = props;
|
|
72
73
|
const attributes = mergeProps(accordion.getItemIndicatorProps(itemProps), { className: classes.accordion.itemIndicator }, rest);
|
|
73
74
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -79,8 +80,8 @@ 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 itemProps = use(ItemContext$
|
|
83
|
+
const accordion = use(RootContext$48);
|
|
84
|
+
const itemProps = use(ItemContext$7);
|
|
84
85
|
const { element, children, ...rest } = props;
|
|
85
86
|
const attributes = mergeProps(accordion.getItemTriggerProps(itemProps), { className: classes.accordion.itemTrigger }, rest);
|
|
86
87
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -91,12 +92,12 @@ 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$11(props) {
|
|
96
|
+
const accordion = use(RootContext$48);
|
|
96
97
|
const [itemProps, componentProps] = splitItemProps(props);
|
|
97
98
|
const { element, children, ...rest } = componentProps;
|
|
98
99
|
const attributes = mergeProps(accordion.getItemProps(itemProps), { className: classes.accordion.item }, rest);
|
|
99
|
-
return /* @__PURE__ */ jsx(ItemContext$
|
|
100
|
+
return /* @__PURE__ */ jsx(ItemContext$7.Provider, {
|
|
100
101
|
value: itemProps,
|
|
101
102
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
102
103
|
...attributes,
|
|
@@ -107,18 +108,18 @@ function Item$10(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$47(props) {
|
|
112
|
+
const accordion = use(RootContext$48);
|
|
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$17(props) {
|
|
119
120
|
const { element, children, value: accordion, ...rest } = props;
|
|
120
121
|
const attributes = mergeProps(accordion.getRootProps(), { className: classes.accordion.root }, rest);
|
|
121
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
122
|
+
return /* @__PURE__ */ jsx(RootContext$48.Provider, {
|
|
122
123
|
value: accordion,
|
|
123
124
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
124
125
|
...attributes,
|
|
@@ -134,7 +135,7 @@ function Root$18(props) {
|
|
|
134
135
|
const { element, children, ...rest } = componentProps;
|
|
135
136
|
const accordion = useAccordion(accordionProps);
|
|
136
137
|
const attributes = mergeProps(accordion.getRootProps(), { className: classes.accordion.root }, rest);
|
|
137
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
138
|
+
return /* @__PURE__ */ jsx(RootContext$48.Provider, {
|
|
138
139
|
value: accordion,
|
|
139
140
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
140
141
|
...attributes,
|
|
@@ -146,9 +147,9 @@ function Root$18(props) {
|
|
|
146
147
|
//#endregion
|
|
147
148
|
//#region src/components/accordion/modules/anatomy.ts
|
|
148
149
|
const Accordion = Object.assign(Root$18, {
|
|
149
|
-
Provider: RootProvider$
|
|
150
|
-
Context: RootContext$
|
|
151
|
-
Item: Item$
|
|
150
|
+
Provider: RootProvider$17,
|
|
151
|
+
Context: RootContext$47,
|
|
152
|
+
Item: Item$11,
|
|
152
153
|
ItemTrigger,
|
|
153
154
|
ItemIndicator: ItemIndicator$3,
|
|
154
155
|
ItemContent
|
|
@@ -220,12 +221,12 @@ const AppBar = Object.assign(AppBarRoot, {
|
|
|
220
221
|
|
|
221
222
|
//#endregion
|
|
222
223
|
//#region src/components/avatar/modules/root-context.ts
|
|
223
|
-
const RootContext$
|
|
224
|
+
const RootContext$46 = createContext$1();
|
|
224
225
|
|
|
225
226
|
//#endregion
|
|
226
227
|
//#region src/components/avatar/anatomy/fallback.tsx
|
|
227
228
|
function Fallback(props) {
|
|
228
|
-
const avatar = use(RootContext$
|
|
229
|
+
const avatar = use(RootContext$46);
|
|
229
230
|
const { element, children, ...rest } = props;
|
|
230
231
|
const attributes = mergeProps(avatar.getFallbackProps(), { className: classes.avatar.fallback }, rest);
|
|
231
232
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
@@ -237,7 +238,7 @@ function Fallback(props) {
|
|
|
237
238
|
//#endregion
|
|
238
239
|
//#region src/components/avatar/anatomy/image.tsx
|
|
239
240
|
function Image(props) {
|
|
240
|
-
const avatar = use(RootContext$
|
|
241
|
+
const avatar = use(RootContext$46);
|
|
241
242
|
const { element, ...rest } = props;
|
|
242
243
|
const attributes = mergeProps(avatar.getImageProps(), { className: classes.avatar.image }, rest);
|
|
243
244
|
return element ? element(attributes) : /* @__PURE__ */ jsx("img", { ...attributes });
|
|
@@ -245,8 +246,8 @@ function Image(props) {
|
|
|
245
246
|
|
|
246
247
|
//#endregion
|
|
247
248
|
//#region src/components/avatar/anatomy/root-context.tsx
|
|
248
|
-
function RootContext$
|
|
249
|
-
const avatar = use(RootContext$
|
|
249
|
+
function RootContext$45(props) {
|
|
250
|
+
const avatar = use(RootContext$46);
|
|
250
251
|
const { children } = props;
|
|
251
252
|
return children(avatar);
|
|
252
253
|
}
|
|
@@ -256,7 +257,7 @@ function RootContext$43(props) {
|
|
|
256
257
|
function AvatarRootProvider(props) {
|
|
257
258
|
const { element, children, value: avatar, ...rest } = props;
|
|
258
259
|
const attributes = mergeProps(avatar.getRootProps(), { className: classes.avatar.root }, rest);
|
|
259
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
260
|
+
return /* @__PURE__ */ jsx(RootContext$46.Provider, {
|
|
260
261
|
value: avatar,
|
|
261
262
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
262
263
|
...attributes,
|
|
@@ -281,7 +282,7 @@ function AvatarRoot(props) {
|
|
|
281
282
|
const { element, children, ...rest } = componentProps;
|
|
282
283
|
const avatar = useAvatar(avatarProps);
|
|
283
284
|
const attributes = mergeProps(avatar.getRootProps(), { className: classes.avatar.root }, rest);
|
|
284
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
285
|
+
return /* @__PURE__ */ jsx(RootContext$46.Provider, {
|
|
285
286
|
value: avatar,
|
|
286
287
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
287
288
|
...attributes,
|
|
@@ -294,19 +295,19 @@ function AvatarRoot(props) {
|
|
|
294
295
|
//#region src/components/avatar/modules/anatomy.ts
|
|
295
296
|
const Avatar = Object.assign(AvatarRoot, {
|
|
296
297
|
Provider: AvatarRootProvider,
|
|
297
|
-
Context: RootContext$
|
|
298
|
+
Context: RootContext$45,
|
|
298
299
|
Image,
|
|
299
300
|
Fallback
|
|
300
301
|
});
|
|
301
302
|
|
|
302
303
|
//#endregion
|
|
303
304
|
//#region src/components/collapsible/modules/root-context.ts
|
|
304
|
-
const RootContext$
|
|
305
|
+
const RootContext$44 = createContext$1();
|
|
305
306
|
|
|
306
307
|
//#endregion
|
|
307
308
|
//#region src/components/collapsible/anatomy/content.tsx
|
|
308
|
-
function Content$
|
|
309
|
-
const collapsible = use(RootContext$
|
|
309
|
+
function Content$10(props) {
|
|
310
|
+
const collapsible = use(RootContext$44);
|
|
310
311
|
const { element, children, ...rest } = props;
|
|
311
312
|
const attributes = mergeProps(collapsible.getContentProps(), { className: classes.collapsible.content }, rest);
|
|
312
313
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -317,8 +318,8 @@ function Content$9(props) {
|
|
|
317
318
|
|
|
318
319
|
//#endregion
|
|
319
320
|
//#region src/components/collapsible/anatomy/indicator.tsx
|
|
320
|
-
function Indicator$
|
|
321
|
-
const collapsible = use(RootContext$
|
|
321
|
+
function Indicator$4(props) {
|
|
322
|
+
const collapsible = use(RootContext$44);
|
|
322
323
|
const { element, children, ...rest } = props;
|
|
323
324
|
const attributes = mergeProps(collapsible.getIndicatorProps(), { className: classes.collapsible.indicator }, rest);
|
|
324
325
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -329,8 +330,8 @@ function Indicator$3(props) {
|
|
|
329
330
|
|
|
330
331
|
//#endregion
|
|
331
332
|
//#region src/components/collapsible/anatomy/root-context.tsx
|
|
332
|
-
function RootContext$
|
|
333
|
-
const collapsible = use(RootContext$
|
|
333
|
+
function RootContext$43(props) {
|
|
334
|
+
const collapsible = use(RootContext$44);
|
|
334
335
|
const { children } = props;
|
|
335
336
|
return children(collapsible);
|
|
336
337
|
}
|
|
@@ -340,7 +341,7 @@ function RootContext$41(props) {
|
|
|
340
341
|
function CollapsibleRootProvider(props) {
|
|
341
342
|
const { element, children, value: collapsible, ...rest } = props;
|
|
342
343
|
const attributes = mergeProps(collapsible.getRootProps(), { className: classes.collapsible.root }, rest);
|
|
343
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
344
|
+
return /* @__PURE__ */ jsx(RootContext$44.Provider, {
|
|
344
345
|
value: collapsible,
|
|
345
346
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
346
347
|
...attributes,
|
|
@@ -365,7 +366,7 @@ function CollapsibleRoot(props) {
|
|
|
365
366
|
const { element, children, ...rest } = componentProps;
|
|
366
367
|
const collapsible = useCollapsible(collapsibleProps);
|
|
367
368
|
const attributes = mergeProps(collapsible.getRootProps(), { className: classes.collapsible.root }, rest);
|
|
368
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
369
|
+
return /* @__PURE__ */ jsx(RootContext$44.Provider, {
|
|
369
370
|
value: collapsible,
|
|
370
371
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
371
372
|
...attributes,
|
|
@@ -376,8 +377,8 @@ function CollapsibleRoot(props) {
|
|
|
376
377
|
|
|
377
378
|
//#endregion
|
|
378
379
|
//#region src/components/collapsible/anatomy/trigger.tsx
|
|
379
|
-
function Trigger$
|
|
380
|
-
const collapsible = use(RootContext$
|
|
380
|
+
function Trigger$10(props) {
|
|
381
|
+
const collapsible = use(RootContext$44);
|
|
381
382
|
const { element, children, ...rest } = props;
|
|
382
383
|
const attributes = mergeProps(collapsible.getTriggerProps(), { className: classes.collapsible.trigger }, rest);
|
|
383
384
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -390,20 +391,20 @@ function Trigger$9(props) {
|
|
|
390
391
|
//#region src/components/collapsible/modules/anatomy.ts
|
|
391
392
|
const Collapsible = Object.assign(CollapsibleRoot, {
|
|
392
393
|
Provider: CollapsibleRootProvider,
|
|
393
|
-
Context: RootContext$
|
|
394
|
-
Trigger: Trigger$
|
|
395
|
-
Indicator: Indicator$
|
|
396
|
-
Content: Content$
|
|
394
|
+
Context: RootContext$43,
|
|
395
|
+
Trigger: Trigger$10,
|
|
396
|
+
Indicator: Indicator$4,
|
|
397
|
+
Content: Content$10
|
|
397
398
|
});
|
|
398
399
|
|
|
399
400
|
//#endregion
|
|
400
401
|
//#region src/components/combobox/modules/root-context.ts
|
|
401
|
-
const RootContext$
|
|
402
|
+
const RootContext$42 = createContext$1();
|
|
402
403
|
|
|
403
404
|
//#endregion
|
|
404
405
|
//#region src/components/combobox/anatomy/clear-trigger.tsx
|
|
405
406
|
function ClearTrigger$2(props) {
|
|
406
|
-
const combobox = use(RootContext$
|
|
407
|
+
const combobox = use(RootContext$42);
|
|
407
408
|
const { element, children, ...rest } = props;
|
|
408
409
|
const attributes = mergeProps(combobox.getClearTriggerProps(), { className: classes.combobox.clearTrigger }, rest);
|
|
409
410
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -414,8 +415,8 @@ function ClearTrigger$2(props) {
|
|
|
414
415
|
|
|
415
416
|
//#endregion
|
|
416
417
|
//#region src/components/combobox/anatomy/content.tsx
|
|
417
|
-
function Content$
|
|
418
|
-
const combobox = use(RootContext$
|
|
418
|
+
function Content$9(props) {
|
|
419
|
+
const combobox = use(RootContext$42);
|
|
419
420
|
const { element, children, ...rest } = props;
|
|
420
421
|
const attributes = mergeProps(combobox.getContentProps(), { className: classes.combobox.content }, rest);
|
|
421
422
|
return element ? element(attributes) : /* @__PURE__ */ jsx("ul", {
|
|
@@ -427,7 +428,7 @@ function Content$8(props) {
|
|
|
427
428
|
//#endregion
|
|
428
429
|
//#region src/components/combobox/anatomy/control.tsx
|
|
429
430
|
function Control$7(props) {
|
|
430
|
-
const combobox = use(RootContext$
|
|
431
|
+
const combobox = use(RootContext$42);
|
|
431
432
|
const { element, children, ...rest } = props;
|
|
432
433
|
const attributes = mergeProps(combobox.getControlProps(), { className: classes.combobox.control }, rest);
|
|
433
434
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -439,7 +440,7 @@ function Control$7(props) {
|
|
|
439
440
|
//#endregion
|
|
440
441
|
//#region src/components/combobox/anatomy/input.tsx
|
|
441
442
|
function Input$3(props) {
|
|
442
|
-
const combobox = use(RootContext$
|
|
443
|
+
const combobox = use(RootContext$42);
|
|
443
444
|
const { element, ...rest } = props;
|
|
444
445
|
const attributes = mergeProps(combobox.getInputProps(), { className: classes.combobox.input }, rest);
|
|
445
446
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
@@ -452,7 +453,7 @@ const ItemGroupContext$2 = createContext$1();
|
|
|
452
453
|
//#endregion
|
|
453
454
|
//#region src/components/combobox/anatomy/item-group-label.tsx
|
|
454
455
|
function ItemGroupLabel$2(props) {
|
|
455
|
-
const combobox = use(RootContext$
|
|
456
|
+
const combobox = use(RootContext$42);
|
|
456
457
|
const [itemGroupLabelProps, componentProps] = splitItemGroupLabelProps({
|
|
457
458
|
htmlFor: use(ItemGroupContext$2).id,
|
|
458
459
|
...props
|
|
@@ -468,7 +469,7 @@ function ItemGroupLabel$2(props) {
|
|
|
468
469
|
//#endregion
|
|
469
470
|
//#region src/components/combobox/anatomy/item-group.tsx
|
|
470
471
|
function ItemGroup$3(props) {
|
|
471
|
-
const combobox = use(RootContext$
|
|
472
|
+
const combobox = use(RootContext$42);
|
|
472
473
|
const [itemGroupProps, componentProps] = splitItemGroupProps({
|
|
473
474
|
id: useId(),
|
|
474
475
|
...props
|
|
@@ -506,13 +507,13 @@ function Check(props) {
|
|
|
506
507
|
|
|
507
508
|
//#endregion
|
|
508
509
|
//#region src/components/combobox/modules/item-context.ts
|
|
509
|
-
const ItemContext$
|
|
510
|
+
const ItemContext$6 = createContext$1();
|
|
510
511
|
|
|
511
512
|
//#endregion
|
|
512
513
|
//#region src/components/combobox/anatomy/item-indicator.tsx
|
|
513
514
|
function ItemIndicator$2(props) {
|
|
514
|
-
const combobox = use(RootContext$
|
|
515
|
-
const itemProps = use(ItemContext$
|
|
515
|
+
const combobox = use(RootContext$42);
|
|
516
|
+
const itemProps = use(ItemContext$6);
|
|
516
517
|
const { element, children = /* @__PURE__ */ jsx(Check, { className: "size-4" }), ...rest } = props;
|
|
517
518
|
const attributes = mergeProps(combobox.getItemIndicatorProps(itemProps), { className: classes.combobox.itemIndicator }, rest);
|
|
518
519
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -524,8 +525,8 @@ function ItemIndicator$2(props) {
|
|
|
524
525
|
//#endregion
|
|
525
526
|
//#region src/components/combobox/anatomy/item-text.tsx
|
|
526
527
|
function ItemText$4(props) {
|
|
527
|
-
const combobox = use(RootContext$
|
|
528
|
-
const itemProps = use(ItemContext$
|
|
528
|
+
const combobox = use(RootContext$42);
|
|
529
|
+
const itemProps = use(ItemContext$6);
|
|
529
530
|
const { element, children, ...rest } = props;
|
|
530
531
|
const attributes = mergeProps(combobox.getItemTextProps(itemProps), { className: classes.combobox.itemText }, rest);
|
|
531
532
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
@@ -536,12 +537,12 @@ function ItemText$4(props) {
|
|
|
536
537
|
|
|
537
538
|
//#endregion
|
|
538
539
|
//#region src/components/combobox/anatomy/item.tsx
|
|
539
|
-
function Item$
|
|
540
|
-
const combobox = use(RootContext$
|
|
540
|
+
function Item$10(props) {
|
|
541
|
+
const combobox = use(RootContext$42);
|
|
541
542
|
const [itemProps, componentProps] = splitItemProps$1(props);
|
|
542
543
|
const { element, children, ...rest } = componentProps;
|
|
543
544
|
const attributes = mergeProps(combobox.getItemProps(itemProps), { className: classes.combobox.item }, rest);
|
|
544
|
-
return /* @__PURE__ */ jsx(ItemContext$
|
|
545
|
+
return /* @__PURE__ */ jsx(ItemContext$6.Provider, {
|
|
545
546
|
value: itemProps,
|
|
546
547
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("li", {
|
|
547
548
|
...attributes,
|
|
@@ -553,7 +554,7 @@ function Item$9(props) {
|
|
|
553
554
|
//#endregion
|
|
554
555
|
//#region src/components/combobox/anatomy/label.tsx
|
|
555
556
|
function Label$10(props) {
|
|
556
|
-
const combobox = use(RootContext$
|
|
557
|
+
const combobox = use(RootContext$42);
|
|
557
558
|
const { element, children, ...rest } = props;
|
|
558
559
|
const attributes = mergeProps(combobox.getLabelProps(), { className: classes.combobox.label }, rest);
|
|
559
560
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
@@ -565,7 +566,7 @@ function Label$10(props) {
|
|
|
565
566
|
//#endregion
|
|
566
567
|
//#region src/components/combobox/anatomy/positioner.tsx
|
|
567
568
|
function Positioner$6(props) {
|
|
568
|
-
const combobox = use(RootContext$
|
|
569
|
+
const combobox = use(RootContext$42);
|
|
569
570
|
const { element, children, ...rest } = props;
|
|
570
571
|
const attributes = mergeProps(combobox.getPositionerProps(), { className: classes.combobox.positioner }, rest);
|
|
571
572
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -576,8 +577,8 @@ function Positioner$6(props) {
|
|
|
576
577
|
|
|
577
578
|
//#endregion
|
|
578
579
|
//#region src/components/combobox/anatomy/root-context.tsx
|
|
579
|
-
function RootContext$
|
|
580
|
-
const combobox = use(RootContext$
|
|
580
|
+
function RootContext$41(props) {
|
|
581
|
+
const combobox = use(RootContext$42);
|
|
581
582
|
const { children } = props;
|
|
582
583
|
return children(combobox);
|
|
583
584
|
}
|
|
@@ -593,10 +594,10 @@ function useCombobox(props = {}) {
|
|
|
593
594
|
|
|
594
595
|
//#endregion
|
|
595
596
|
//#region src/components/combobox/anatomy/root-provider.tsx
|
|
596
|
-
function RootProvider$
|
|
597
|
+
function RootProvider$16(props) {
|
|
597
598
|
const { element, children, value: combobox, ...rest } = props;
|
|
598
599
|
const attributes = mergeProps(combobox.getRootProps(), { className: classes.combobox.root }, rest);
|
|
599
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
600
|
+
return /* @__PURE__ */ jsx(RootContext$42.Provider, {
|
|
600
601
|
value: combobox,
|
|
601
602
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
602
603
|
...attributes,
|
|
@@ -612,7 +613,7 @@ function Root$17(props) {
|
|
|
612
613
|
const { element, children, ...rest } = componentProps;
|
|
613
614
|
const combobox = useCombobox(comboboxProps);
|
|
614
615
|
const attributes = mergeProps(combobox.getRootProps(), { className: classes.combobox.root }, rest);
|
|
615
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
616
|
+
return /* @__PURE__ */ jsx(RootContext$42.Provider, {
|
|
616
617
|
value: combobox,
|
|
617
618
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
618
619
|
...attributes,
|
|
@@ -643,8 +644,8 @@ function ChevronDown(props) {
|
|
|
643
644
|
|
|
644
645
|
//#endregion
|
|
645
646
|
//#region src/components/combobox/anatomy/trigger.tsx
|
|
646
|
-
function Trigger$
|
|
647
|
-
const combobox = use(RootContext$
|
|
647
|
+
function Trigger$9(props) {
|
|
648
|
+
const combobox = use(RootContext$42);
|
|
648
649
|
const { element, children = /* @__PURE__ */ jsx(ChevronDown, {}), ...rest } = props;
|
|
649
650
|
const attributes = mergeProps(combobox.getTriggerProps(), { className: classes.combobox.trigger }, rest);
|
|
650
651
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -656,30 +657,30 @@ function Trigger$8(props) {
|
|
|
656
657
|
//#endregion
|
|
657
658
|
//#region src/components/combobox/modules/anatomy.ts
|
|
658
659
|
const Combobox = Object.assign(Root$17, {
|
|
659
|
-
Provider: RootProvider$
|
|
660
|
-
Context: RootContext$
|
|
660
|
+
Provider: RootProvider$16,
|
|
661
|
+
Context: RootContext$41,
|
|
661
662
|
Label: Label$10,
|
|
662
663
|
Control: Control$7,
|
|
663
664
|
Input: Input$3,
|
|
664
|
-
Trigger: Trigger$
|
|
665
|
+
Trigger: Trigger$9,
|
|
665
666
|
ClearTrigger: ClearTrigger$2,
|
|
666
667
|
Positioner: Positioner$6,
|
|
667
|
-
Content: Content$
|
|
668
|
+
Content: Content$9,
|
|
668
669
|
ItemGroup: ItemGroup$3,
|
|
669
670
|
ItemGroupLabel: ItemGroupLabel$2,
|
|
670
|
-
Item: Item$
|
|
671
|
+
Item: Item$10,
|
|
671
672
|
ItemText: ItemText$4,
|
|
672
673
|
ItemIndicator: ItemIndicator$2
|
|
673
674
|
});
|
|
674
675
|
|
|
675
676
|
//#endregion
|
|
676
677
|
//#region src/components/date-picker/modules/root-context.ts
|
|
677
|
-
const RootContext$
|
|
678
|
+
const RootContext$40 = createContext$1();
|
|
678
679
|
|
|
679
680
|
//#endregion
|
|
680
681
|
//#region src/components/date-picker/anatomy/content.tsx
|
|
681
|
-
function Content$
|
|
682
|
-
const datePicker = use(RootContext$
|
|
682
|
+
function Content$8(props) {
|
|
683
|
+
const datePicker = use(RootContext$40);
|
|
683
684
|
const { element, children, ...rest } = props;
|
|
684
685
|
const attributes = mergeProps(datePicker.getContentProps(), { className: classes.datePicker.content }, rest);
|
|
685
686
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -691,7 +692,7 @@ function Content$7(props) {
|
|
|
691
692
|
//#endregion
|
|
692
693
|
//#region src/components/date-picker/anatomy/control.tsx
|
|
693
694
|
function Control$6(props) {
|
|
694
|
-
const datePicker = use(RootContext$
|
|
695
|
+
const datePicker = use(RootContext$40);
|
|
695
696
|
const { element, children, ...rest } = props;
|
|
696
697
|
const attributes = mergeProps(datePicker.getControlProps(), { className: classes.datePicker.control }, rest);
|
|
697
698
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -703,7 +704,7 @@ function Control$6(props) {
|
|
|
703
704
|
//#endregion
|
|
704
705
|
//#region src/components/date-picker/anatomy/input.tsx
|
|
705
706
|
function Input$2(props) {
|
|
706
|
-
const datePicker = use(RootContext$
|
|
707
|
+
const datePicker = use(RootContext$40);
|
|
707
708
|
const [inputProps, componentProps] = splitInputProps(props);
|
|
708
709
|
const { element, ...rest } = componentProps;
|
|
709
710
|
const attributes = mergeProps(datePicker.getInputProps(inputProps), { className: classes.datePicker.input }, rest);
|
|
@@ -713,7 +714,7 @@ function Input$2(props) {
|
|
|
713
714
|
//#endregion
|
|
714
715
|
//#region src/components/date-picker/anatomy/label.tsx
|
|
715
716
|
function Label$9(props) {
|
|
716
|
-
const datePicker = use(RootContext$
|
|
717
|
+
const datePicker = use(RootContext$40);
|
|
717
718
|
const { element, children, ...rest } = props;
|
|
718
719
|
const attributes = mergeProps(datePicker.getLabelProps(), { className: classes.datePicker.label }, rest);
|
|
719
720
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
@@ -725,7 +726,7 @@ function Label$9(props) {
|
|
|
725
726
|
//#endregion
|
|
726
727
|
//#region src/components/date-picker/anatomy/month-select.tsx
|
|
727
728
|
function MonthSelect(props) {
|
|
728
|
-
const datePicker = use(RootContext$
|
|
729
|
+
const datePicker = use(RootContext$40);
|
|
729
730
|
const { element, ...rest } = props;
|
|
730
731
|
const attributes = mergeProps(datePicker.getMonthSelectProps(), { className: classes.datePicker.monthSelect }, rest);
|
|
731
732
|
return element ? element(attributes) : /* @__PURE__ */ jsx("select", {
|
|
@@ -763,8 +764,8 @@ const ViewContext = createContext$1({ view: "day" });
|
|
|
763
764
|
|
|
764
765
|
//#endregion
|
|
765
766
|
//#region src/components/date-picker/anatomy/next-trigger.tsx
|
|
766
|
-
function NextTrigger$
|
|
767
|
-
const datePicker = use(RootContext$
|
|
767
|
+
function NextTrigger$2(props) {
|
|
768
|
+
const datePicker = use(RootContext$40);
|
|
768
769
|
const viewProps = use(ViewContext);
|
|
769
770
|
const { element, children = /* @__PURE__ */ jsx(ChevronRight, {}), ...rest } = props;
|
|
770
771
|
const attributes = mergeProps(datePicker.getNextTriggerProps(viewProps), { className: classes.datePicker.nextTrigger }, rest);
|
|
@@ -777,7 +778,7 @@ function NextTrigger$1(props) {
|
|
|
777
778
|
//#endregion
|
|
778
779
|
//#region src/components/date-picker/anatomy/positioner.tsx
|
|
779
780
|
function Positioner$5(props) {
|
|
780
|
-
const datePicker = use(RootContext$
|
|
781
|
+
const datePicker = use(RootContext$40);
|
|
781
782
|
const { element, children, ...rest } = props;
|
|
782
783
|
const attributes = mergeProps(datePicker.getPositionerProps(), { className: classes.datePicker.positioner }, rest);
|
|
783
784
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -789,7 +790,7 @@ function Positioner$5(props) {
|
|
|
789
790
|
//#endregion
|
|
790
791
|
//#region src/components/date-picker/anatomy/preset-trigger.tsx
|
|
791
792
|
function PresetTrigger(props) {
|
|
792
|
-
const datePicker = use(RootContext$
|
|
793
|
+
const datePicker = use(RootContext$40);
|
|
793
794
|
const [presetTriggerProps, componentProps] = splitPresetTriggerProps(props);
|
|
794
795
|
const { element, children, ...rest } = componentProps;
|
|
795
796
|
const attributes = mergeProps(datePicker.getPresetTriggerProps(presetTriggerProps), { className: classes.datePicker.presetTrigger }, rest);
|
|
@@ -821,8 +822,8 @@ function ChevronLeft(props) {
|
|
|
821
822
|
|
|
822
823
|
//#endregion
|
|
823
824
|
//#region src/components/date-picker/anatomy/prev-trigger.tsx
|
|
824
|
-
function PrevTrigger$
|
|
825
|
-
const datePicker = use(RootContext$
|
|
825
|
+
function PrevTrigger$2(props) {
|
|
826
|
+
const datePicker = use(RootContext$40);
|
|
826
827
|
const viewProps = use(ViewContext);
|
|
827
828
|
const { element, children = /* @__PURE__ */ jsx(ChevronLeft, {}), ...rest } = props;
|
|
828
829
|
const attributes = mergeProps(datePicker.getPrevTriggerProps(viewProps), { className: classes.datePicker.prevTrigger }, rest);
|
|
@@ -835,7 +836,7 @@ function PrevTrigger$1(props) {
|
|
|
835
836
|
//#endregion
|
|
836
837
|
//#region src/components/date-picker/anatomy/range-text.tsx
|
|
837
838
|
function RangeText(props) {
|
|
838
|
-
const datePicker = use(RootContext$
|
|
839
|
+
const datePicker = use(RootContext$40);
|
|
839
840
|
const rangeText = Array.from(new Set([datePicker.visibleRangeText.start, datePicker.visibleRangeText.end])).join(" - ");
|
|
840
841
|
const { element, children = rangeText, ...rest } = props;
|
|
841
842
|
const attributes = mergeProps(datePicker.getRangeTextProps(), { className: classes.datePicker.rangeText }, rest);
|
|
@@ -847,8 +848,8 @@ function RangeText(props) {
|
|
|
847
848
|
|
|
848
849
|
//#endregion
|
|
849
850
|
//#region src/components/date-picker/anatomy/root-context.tsx
|
|
850
|
-
function RootContext$
|
|
851
|
-
const datePicker = use(RootContext$
|
|
851
|
+
function RootContext$39(props) {
|
|
852
|
+
const datePicker = use(RootContext$40);
|
|
852
853
|
const { children } = props;
|
|
853
854
|
return children(datePicker);
|
|
854
855
|
}
|
|
@@ -864,10 +865,10 @@ function useDatePicker(props = {}) {
|
|
|
864
865
|
|
|
865
866
|
//#endregion
|
|
866
867
|
//#region src/components/date-picker/anatomy/root-provider.tsx
|
|
867
|
-
function RootProvider$
|
|
868
|
+
function RootProvider$15(props) {
|
|
868
869
|
const { element, children, value: datePicker, ...rest } = props;
|
|
869
870
|
const attributes = mergeProps(datePicker.getRootProps(), { className: classes.datePicker.root }, rest);
|
|
870
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
871
|
+
return /* @__PURE__ */ jsx(RootContext$40.Provider, {
|
|
871
872
|
value: datePicker,
|
|
872
873
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
873
874
|
...attributes,
|
|
@@ -883,7 +884,7 @@ function Root$16(props) {
|
|
|
883
884
|
const { element, children, ...rest } = componentProps;
|
|
884
885
|
const datePicker = useDatePicker(datePickerProps);
|
|
885
886
|
const attributes = mergeProps(datePicker.getRootProps(), { className: classes.datePicker.root }, rest);
|
|
886
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
887
|
+
return /* @__PURE__ */ jsx(RootContext$40.Provider, {
|
|
887
888
|
value: datePicker,
|
|
888
889
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
889
890
|
...attributes,
|
|
@@ -895,7 +896,7 @@ function Root$16(props) {
|
|
|
895
896
|
//#endregion
|
|
896
897
|
//#region src/components/date-picker/anatomy/table-body.tsx
|
|
897
898
|
function TableBody(props) {
|
|
898
|
-
const datePicker = use(RootContext$
|
|
899
|
+
const datePicker = use(RootContext$40);
|
|
899
900
|
const viewProps = use(ViewContext);
|
|
900
901
|
const { element, children, ...rest } = props;
|
|
901
902
|
const attributes = mergeProps(datePicker.getTableBodyProps(viewProps), { className: classes.datePicker.tableBody }, rest);
|
|
@@ -912,7 +913,7 @@ const TableCellContext = createContext$1();
|
|
|
912
913
|
//#endregion
|
|
913
914
|
//#region src/components/date-picker/anatomy/table-cell-trigger.tsx
|
|
914
915
|
function TableCellTrigger(props) {
|
|
915
|
-
const datePicker = use(RootContext$
|
|
916
|
+
const datePicker = use(RootContext$40);
|
|
916
917
|
const viewProps = use(ViewContext);
|
|
917
918
|
const tableCellProps = use(TableCellContext);
|
|
918
919
|
const { element, children, ...rest } = props;
|
|
@@ -933,7 +934,7 @@ function TableCellTrigger(props) {
|
|
|
933
934
|
//#endregion
|
|
934
935
|
//#region src/components/date-picker/anatomy/table-cell.tsx
|
|
935
936
|
function TableCell(props) {
|
|
936
|
-
const datePicker = use(RootContext$
|
|
937
|
+
const datePicker = use(RootContext$40);
|
|
937
938
|
const viewProps = use(ViewContext);
|
|
938
939
|
const [tableCellProps, componentProps] = splitTableCellProps(props);
|
|
939
940
|
const { element, children, ...rest } = componentProps;
|
|
@@ -957,7 +958,7 @@ function TableCell(props) {
|
|
|
957
958
|
//#endregion
|
|
958
959
|
//#region src/components/date-picker/anatomy/table-head.tsx
|
|
959
960
|
function TableHead(props) {
|
|
960
|
-
const datePicker = use(RootContext$
|
|
961
|
+
const datePicker = use(RootContext$40);
|
|
961
962
|
const viewProps = use(ViewContext);
|
|
962
963
|
const { element, children, ...rest } = props;
|
|
963
964
|
const attributes = mergeProps(datePicker.getTableHeadProps(viewProps), { className: classes.datePicker.tableHead }, rest);
|
|
@@ -970,7 +971,7 @@ function TableHead(props) {
|
|
|
970
971
|
//#endregion
|
|
971
972
|
//#region src/components/date-picker/anatomy/table-header.tsx
|
|
972
973
|
function TableHeader(props) {
|
|
973
|
-
const datePicker = use(RootContext$
|
|
974
|
+
const datePicker = use(RootContext$40);
|
|
974
975
|
const viewProps = use(ViewContext);
|
|
975
976
|
const { element, children, ...rest } = props;
|
|
976
977
|
const attributes = mergeProps(datePicker.getTableHeaderProps(viewProps), { className: classes.datePicker.tableHeader }, rest);
|
|
@@ -983,7 +984,7 @@ function TableHeader(props) {
|
|
|
983
984
|
//#endregion
|
|
984
985
|
//#region src/components/date-picker/anatomy/table-row.tsx
|
|
985
986
|
function TableRow(props) {
|
|
986
|
-
const datePicker = use(RootContext$
|
|
987
|
+
const datePicker = use(RootContext$40);
|
|
987
988
|
const viewProps = use(ViewContext);
|
|
988
989
|
const { element, children, ...rest } = props;
|
|
989
990
|
const attributes = mergeProps(datePicker.getTableRowProps(viewProps), { className: classes.datePicker.tableRow }, rest);
|
|
@@ -996,7 +997,7 @@ function TableRow(props) {
|
|
|
996
997
|
//#endregion
|
|
997
998
|
//#region src/components/date-picker/anatomy/table.tsx
|
|
998
999
|
function Table(props) {
|
|
999
|
-
const datePicker = use(RootContext$
|
|
1000
|
+
const datePicker = use(RootContext$40);
|
|
1000
1001
|
const viewProps = use(ViewContext);
|
|
1001
1002
|
const { element, children, ...rest } = props;
|
|
1002
1003
|
const attributes = mergeProps(datePicker.getTableProps(viewProps), { className: classes.datePicker.table }, rest);
|
|
@@ -1039,8 +1040,8 @@ function Calendar(props) {
|
|
|
1039
1040
|
|
|
1040
1041
|
//#endregion
|
|
1041
1042
|
//#region src/components/date-picker/anatomy/trigger.tsx
|
|
1042
|
-
function Trigger$
|
|
1043
|
-
const datePicker = use(RootContext$
|
|
1043
|
+
function Trigger$8(props) {
|
|
1044
|
+
const datePicker = use(RootContext$40);
|
|
1044
1045
|
const { element, children = /* @__PURE__ */ jsx(Calendar, {}), ...rest } = props;
|
|
1045
1046
|
const attributes = mergeProps(datePicker.getTriggerProps(), { className: classes.datePicker.trigger }, rest);
|
|
1046
1047
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -1052,7 +1053,7 @@ function Trigger$7(props) {
|
|
|
1052
1053
|
//#endregion
|
|
1053
1054
|
//#region src/components/date-picker/anatomy/view-control.tsx
|
|
1054
1055
|
function ViewControl(props) {
|
|
1055
|
-
const datePicker = use(RootContext$
|
|
1056
|
+
const datePicker = use(RootContext$40);
|
|
1056
1057
|
const viewProps = use(ViewContext);
|
|
1057
1058
|
const { element, children, ...rest } = props;
|
|
1058
1059
|
const attributes = mergeProps(datePicker.getViewControlProps(viewProps), { className: classes.datePicker.viewControl }, rest);
|
|
@@ -1065,7 +1066,7 @@ function ViewControl(props) {
|
|
|
1065
1066
|
//#endregion
|
|
1066
1067
|
//#region src/components/date-picker/anatomy/view-trigger.tsx
|
|
1067
1068
|
function ViewTrigger(props) {
|
|
1068
|
-
const datePicker = use(RootContext$
|
|
1069
|
+
const datePicker = use(RootContext$40);
|
|
1069
1070
|
const viewProps = use(ViewContext);
|
|
1070
1071
|
const { element, children, ...rest } = props;
|
|
1071
1072
|
const attributes = mergeProps(datePicker.getViewTriggerProps(viewProps), { className: classes.datePicker.viewTrigger }, rest);
|
|
@@ -1078,7 +1079,7 @@ function ViewTrigger(props) {
|
|
|
1078
1079
|
//#endregion
|
|
1079
1080
|
//#region src/components/date-picker/anatomy/view.tsx
|
|
1080
1081
|
function View(props) {
|
|
1081
|
-
const datePicker = use(RootContext$
|
|
1082
|
+
const datePicker = use(RootContext$40);
|
|
1082
1083
|
const [viewProps, componentProps] = splitViewProps(props);
|
|
1083
1084
|
const { element, children, ...rest } = componentProps;
|
|
1084
1085
|
const attributes = mergeProps(datePicker.getViewProps(viewProps), { className: classes.datePicker.view }, rest);
|
|
@@ -1094,7 +1095,7 @@ function View(props) {
|
|
|
1094
1095
|
//#endregion
|
|
1095
1096
|
//#region src/components/date-picker/anatomy/year-select.tsx
|
|
1096
1097
|
function YearSelect(props) {
|
|
1097
|
-
const datePicker = use(RootContext$
|
|
1098
|
+
const datePicker = use(RootContext$40);
|
|
1098
1099
|
const { element, ...rest } = props;
|
|
1099
1100
|
const attributes = mergeProps(datePicker.getYearSelectProps(), { className: classes.datePicker.yearSelect }, rest);
|
|
1100
1101
|
return element ? element(attributes) : /* @__PURE__ */ jsx("select", {
|
|
@@ -1109,23 +1110,23 @@ function YearSelect(props) {
|
|
|
1109
1110
|
//#endregion
|
|
1110
1111
|
//#region src/components/date-picker/modules/anatomy.ts
|
|
1111
1112
|
const DatePicker = Object.assign(Root$16, {
|
|
1112
|
-
Provider: RootProvider$
|
|
1113
|
-
Context: RootContext$
|
|
1113
|
+
Provider: RootProvider$15,
|
|
1114
|
+
Context: RootContext$39,
|
|
1114
1115
|
Label: Label$9,
|
|
1115
1116
|
Control: Control$6,
|
|
1116
1117
|
PresetTrigger,
|
|
1117
1118
|
Input: Input$2,
|
|
1118
|
-
Trigger: Trigger$
|
|
1119
|
+
Trigger: Trigger$8,
|
|
1119
1120
|
Positioner: Positioner$5,
|
|
1120
|
-
Content: Content$
|
|
1121
|
+
Content: Content$8,
|
|
1121
1122
|
YearSelect,
|
|
1122
1123
|
MonthSelect,
|
|
1123
1124
|
View,
|
|
1124
1125
|
ViewControl,
|
|
1125
|
-
PrevTrigger: PrevTrigger$
|
|
1126
|
+
PrevTrigger: PrevTrigger$2,
|
|
1126
1127
|
ViewTrigger,
|
|
1127
1128
|
RangeText,
|
|
1128
|
-
NextTrigger: NextTrigger$
|
|
1129
|
+
NextTrigger: NextTrigger$2,
|
|
1129
1130
|
Table,
|
|
1130
1131
|
TableHead,
|
|
1131
1132
|
TableRow,
|
|
@@ -1137,12 +1138,12 @@ const DatePicker = Object.assign(Root$16, {
|
|
|
1137
1138
|
|
|
1138
1139
|
//#endregion
|
|
1139
1140
|
//#region src/components/dialog/modules/root-context.ts
|
|
1140
|
-
const RootContext$
|
|
1141
|
+
const RootContext$38 = createContext$1();
|
|
1141
1142
|
|
|
1142
1143
|
//#endregion
|
|
1143
1144
|
//#region src/components/dialog/anatomy/backdrop.tsx
|
|
1144
1145
|
function Backdrop(props) {
|
|
1145
|
-
const dialog = use(RootContext$
|
|
1146
|
+
const dialog = use(RootContext$38);
|
|
1146
1147
|
const { element, ...rest } = props;
|
|
1147
1148
|
const attributes = mergeProps(dialog.getBackdropProps(), { className: classes.dialog.backdrop }, rest);
|
|
1148
1149
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
|
|
@@ -1151,7 +1152,7 @@ function Backdrop(props) {
|
|
|
1151
1152
|
//#endregion
|
|
1152
1153
|
//#region src/components/dialog/anatomy/close-trigger.tsx
|
|
1153
1154
|
function CloseTrigger$3(props) {
|
|
1154
|
-
const dialog = use(RootContext$
|
|
1155
|
+
const dialog = use(RootContext$38);
|
|
1155
1156
|
const { element, children, ...rest } = props;
|
|
1156
1157
|
const attributes = mergeProps(dialog.getCloseTriggerProps(), { className: classes.dialog.closeTrigger }, rest);
|
|
1157
1158
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -1162,8 +1163,8 @@ function CloseTrigger$3(props) {
|
|
|
1162
1163
|
|
|
1163
1164
|
//#endregion
|
|
1164
1165
|
//#region src/components/dialog/anatomy/content.tsx
|
|
1165
|
-
function Content$
|
|
1166
|
-
const dialog = use(RootContext$
|
|
1166
|
+
function Content$7(props) {
|
|
1167
|
+
const dialog = use(RootContext$38);
|
|
1167
1168
|
const { element, children, ...rest } = props;
|
|
1168
1169
|
const attributes = mergeProps(dialog.getContentProps(), { className: classes.dialog.content }, rest);
|
|
1169
1170
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1175,7 +1176,7 @@ function Content$6(props) {
|
|
|
1175
1176
|
//#endregion
|
|
1176
1177
|
//#region src/components/dialog/anatomy/description.tsx
|
|
1177
1178
|
function Description$2(props) {
|
|
1178
|
-
const dialog = use(RootContext$
|
|
1179
|
+
const dialog = use(RootContext$38);
|
|
1179
1180
|
const { element, children, ...rest } = props;
|
|
1180
1181
|
const attributes = mergeProps(dialog.getDescriptionProps(), { className: classes.dialog.description }, rest);
|
|
1181
1182
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1187,7 +1188,7 @@ function Description$2(props) {
|
|
|
1187
1188
|
//#endregion
|
|
1188
1189
|
//#region src/components/dialog/anatomy/positioner.tsx
|
|
1189
1190
|
function Positioner$4(props) {
|
|
1190
|
-
const dialog = use(RootContext$
|
|
1191
|
+
const dialog = use(RootContext$38);
|
|
1191
1192
|
const { element, children, ...rest } = props;
|
|
1192
1193
|
const attributes = mergeProps(dialog.getPositionerProps(), { className: classes.dialog.positioner }, rest);
|
|
1193
1194
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1198,17 +1199,17 @@ function Positioner$4(props) {
|
|
|
1198
1199
|
|
|
1199
1200
|
//#endregion
|
|
1200
1201
|
//#region src/components/dialog/anatomy/root-context.tsx
|
|
1201
|
-
function RootContext$
|
|
1202
|
-
const dialog = use(RootContext$
|
|
1202
|
+
function RootContext$37(props) {
|
|
1203
|
+
const dialog = use(RootContext$38);
|
|
1203
1204
|
const { children } = props;
|
|
1204
1205
|
return children(dialog);
|
|
1205
1206
|
}
|
|
1206
1207
|
|
|
1207
1208
|
//#endregion
|
|
1208
1209
|
//#region src/components/dialog/anatomy/root-provider.tsx
|
|
1209
|
-
function RootProvider$
|
|
1210
|
+
function RootProvider$14(props) {
|
|
1210
1211
|
const { children, value: dialog } = props;
|
|
1211
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
1212
|
+
return /* @__PURE__ */ jsx(RootContext$38.Provider, {
|
|
1212
1213
|
value: dialog,
|
|
1213
1214
|
children
|
|
1214
1215
|
});
|
|
@@ -1229,7 +1230,7 @@ function Root$15(props) {
|
|
|
1229
1230
|
const [dialogProps, componentProps] = splitProps$5(props);
|
|
1230
1231
|
const { children } = componentProps;
|
|
1231
1232
|
const dialog = useDialog(dialogProps);
|
|
1232
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
1233
|
+
return /* @__PURE__ */ jsx(RootContext$38.Provider, {
|
|
1233
1234
|
value: dialog,
|
|
1234
1235
|
children
|
|
1235
1236
|
});
|
|
@@ -1238,7 +1239,7 @@ function Root$15(props) {
|
|
|
1238
1239
|
//#endregion
|
|
1239
1240
|
//#region src/components/dialog/anatomy/title.tsx
|
|
1240
1241
|
function Title$3(props) {
|
|
1241
|
-
const dialog = use(RootContext$
|
|
1242
|
+
const dialog = use(RootContext$38);
|
|
1242
1243
|
const { element, children, ...rest } = props;
|
|
1243
1244
|
const attributes = mergeProps(dialog.getTitleProps(), { className: classes.dialog.title }, rest);
|
|
1244
1245
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1249,8 +1250,8 @@ function Title$3(props) {
|
|
|
1249
1250
|
|
|
1250
1251
|
//#endregion
|
|
1251
1252
|
//#region src/components/dialog/anatomy/trigger.tsx
|
|
1252
|
-
function Trigger$
|
|
1253
|
-
const dialog = use(RootContext$
|
|
1253
|
+
function Trigger$7(props) {
|
|
1254
|
+
const dialog = use(RootContext$38);
|
|
1254
1255
|
const { element, children, ...rest } = props;
|
|
1255
1256
|
const attributes = mergeProps(dialog.getTriggerProps(), { className: classes.dialog.trigger }, rest);
|
|
1256
1257
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -1262,12 +1263,12 @@ function Trigger$6(props) {
|
|
|
1262
1263
|
//#endregion
|
|
1263
1264
|
//#region src/components/dialog/modules/anatomy.ts
|
|
1264
1265
|
const Dialog = Object.assign(Root$15, {
|
|
1265
|
-
Provider: RootProvider$
|
|
1266
|
-
Context: RootContext$
|
|
1267
|
-
Trigger: Trigger$
|
|
1266
|
+
Provider: RootProvider$14,
|
|
1267
|
+
Context: RootContext$37,
|
|
1268
|
+
Trigger: Trigger$7,
|
|
1268
1269
|
Backdrop,
|
|
1269
1270
|
Positioner: Positioner$4,
|
|
1270
|
-
Content: Content$
|
|
1271
|
+
Content: Content$7,
|
|
1271
1272
|
Title: Title$3,
|
|
1272
1273
|
Description: Description$2,
|
|
1273
1274
|
CloseTrigger: CloseTrigger$3
|
|
@@ -1275,12 +1276,12 @@ const Dialog = Object.assign(Root$15, {
|
|
|
1275
1276
|
|
|
1276
1277
|
//#endregion
|
|
1277
1278
|
//#region src/components/file-upload/modules/root-context.ts
|
|
1278
|
-
const RootContext$
|
|
1279
|
+
const RootContext$36 = createContext$1();
|
|
1279
1280
|
|
|
1280
1281
|
//#endregion
|
|
1281
1282
|
//#region src/components/file-upload/anatomy/clear-trigger.tsx
|
|
1282
1283
|
function ClearTrigger$1(props) {
|
|
1283
|
-
const fileUpload = use(RootContext$
|
|
1284
|
+
const fileUpload = use(RootContext$36);
|
|
1284
1285
|
const { element, children, ...rest } = props;
|
|
1285
1286
|
const attributes = mergeProps(fileUpload.getClearTriggerProps(), { className: classes.fileUpload.clearTrigger }, rest);
|
|
1286
1287
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -1292,7 +1293,7 @@ function ClearTrigger$1(props) {
|
|
|
1292
1293
|
//#endregion
|
|
1293
1294
|
//#region src/components/file-upload/anatomy/dropzone.tsx
|
|
1294
1295
|
function Dropzone(props) {
|
|
1295
|
-
const fileUpload = use(RootContext$
|
|
1296
|
+
const fileUpload = use(RootContext$36);
|
|
1296
1297
|
const { element, children, ...rest } = props;
|
|
1297
1298
|
const attributes = mergeProps(fileUpload.getDropzoneProps(), { className: classes.fileUpload.dropzone }, rest);
|
|
1298
1299
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1304,7 +1305,7 @@ function Dropzone(props) {
|
|
|
1304
1305
|
//#endregion
|
|
1305
1306
|
//#region src/components/file-upload/anatomy/hidden-input.tsx
|
|
1306
1307
|
function HiddenInput$4(props) {
|
|
1307
|
-
const fileUpload = use(RootContext$
|
|
1308
|
+
const fileUpload = use(RootContext$36);
|
|
1308
1309
|
const { element, ...rest } = props;
|
|
1309
1310
|
const attributes = mergeProps(fileUpload.getHiddenInputProps(), { className: classes.fileUpload.hiddenInput }, rest);
|
|
1310
1311
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
@@ -1312,13 +1313,13 @@ function HiddenInput$4(props) {
|
|
|
1312
1313
|
|
|
1313
1314
|
//#endregion
|
|
1314
1315
|
//#region src/components/file-upload/modules/item-context.ts
|
|
1315
|
-
const ItemContext$
|
|
1316
|
+
const ItemContext$5 = createContext$1();
|
|
1316
1317
|
|
|
1317
1318
|
//#endregion
|
|
1318
1319
|
//#region src/components/file-upload/anatomy/item-delete-trigger.tsx
|
|
1319
1320
|
function ItemDeleteTrigger$1(props) {
|
|
1320
|
-
const fileUpload = use(RootContext$
|
|
1321
|
-
const itemProps = use(ItemContext$
|
|
1321
|
+
const fileUpload = use(RootContext$36);
|
|
1322
|
+
const itemProps = use(ItemContext$5);
|
|
1322
1323
|
const { element, children = /* @__PURE__ */ jsx(Fragment, { children: "×" }), ...rest } = props;
|
|
1323
1324
|
const attributes = mergeProps(fileUpload.getItemDeleteTriggerProps(itemProps), { className: classes.fileUpload.itemDeleteTrigger }, rest);
|
|
1324
1325
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -1330,7 +1331,7 @@ function ItemDeleteTrigger$1(props) {
|
|
|
1330
1331
|
//#endregion
|
|
1331
1332
|
//#region src/components/file-upload/anatomy/item-group.tsx
|
|
1332
1333
|
function ItemGroup$2(props) {
|
|
1333
|
-
const fileUpload = use(RootContext$
|
|
1334
|
+
const fileUpload = use(RootContext$36);
|
|
1334
1335
|
const { element, children, ...rest } = props;
|
|
1335
1336
|
const attributes = mergeProps(fileUpload.getItemGroupProps(), { className: classes.fileUpload.itemGroup }, rest);
|
|
1336
1337
|
return element ? element(attributes) : /* @__PURE__ */ jsx("ul", {
|
|
@@ -1342,8 +1343,8 @@ function ItemGroup$2(props) {
|
|
|
1342
1343
|
//#endregion
|
|
1343
1344
|
//#region src/components/file-upload/anatomy/item-name.tsx
|
|
1344
1345
|
function ItemName(props) {
|
|
1345
|
-
const fileUpload = use(RootContext$
|
|
1346
|
-
const itemProps = use(ItemContext$
|
|
1346
|
+
const fileUpload = use(RootContext$36);
|
|
1347
|
+
const itemProps = use(ItemContext$5);
|
|
1347
1348
|
const { element, children, ...rest } = props;
|
|
1348
1349
|
const attributes = mergeProps(fileUpload.getItemNameProps(itemProps), { className: classes.fileUpload.itemName }, rest);
|
|
1349
1350
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1355,8 +1356,8 @@ function ItemName(props) {
|
|
|
1355
1356
|
//#endregion
|
|
1356
1357
|
//#region src/components/file-upload/anatomy/item-size-text.tsx
|
|
1357
1358
|
function ItemSizeText(props) {
|
|
1358
|
-
const fileUpload = use(RootContext$
|
|
1359
|
-
const itemProps = use(ItemContext$
|
|
1359
|
+
const fileUpload = use(RootContext$36);
|
|
1360
|
+
const itemProps = use(ItemContext$5);
|
|
1360
1361
|
const { element, children, ...rest } = props;
|
|
1361
1362
|
const attributes = mergeProps(fileUpload.getItemSizeTextProps(itemProps), { className: classes.fileUpload.itemSizeText }, rest);
|
|
1362
1363
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1367,12 +1368,12 @@ function ItemSizeText(props) {
|
|
|
1367
1368
|
|
|
1368
1369
|
//#endregion
|
|
1369
1370
|
//#region src/components/file-upload/anatomy/item.tsx
|
|
1370
|
-
function Item$
|
|
1371
|
-
const fileUpload = use(RootContext$
|
|
1371
|
+
function Item$9(props) {
|
|
1372
|
+
const fileUpload = use(RootContext$36);
|
|
1372
1373
|
const [itemProps, componentProps] = splitItemProps$2(props);
|
|
1373
1374
|
const { element, children, ...rest } = componentProps;
|
|
1374
1375
|
const attributes = mergeProps(fileUpload.getItemProps(itemProps), { className: classes.fileUpload.item }, rest);
|
|
1375
|
-
return /* @__PURE__ */ jsx(ItemContext$
|
|
1376
|
+
return /* @__PURE__ */ jsx(ItemContext$5.Provider, {
|
|
1376
1377
|
value: itemProps,
|
|
1377
1378
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("li", {
|
|
1378
1379
|
...attributes,
|
|
@@ -1384,7 +1385,7 @@ function Item$8(props) {
|
|
|
1384
1385
|
//#endregion
|
|
1385
1386
|
//#region src/components/file-upload/anatomy/label.tsx
|
|
1386
1387
|
function Label$8(props) {
|
|
1387
|
-
const fileUpload = use(RootContext$
|
|
1388
|
+
const fileUpload = use(RootContext$36);
|
|
1388
1389
|
const { element, children, ...rest } = props;
|
|
1389
1390
|
const attributes = mergeProps(fileUpload.getLabelProps(), { className: classes.fileUpload.label }, rest);
|
|
1390
1391
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
@@ -1395,18 +1396,18 @@ function Label$8(props) {
|
|
|
1395
1396
|
|
|
1396
1397
|
//#endregion
|
|
1397
1398
|
//#region src/components/file-upload/anatomy/root-context.tsx
|
|
1398
|
-
function RootContext$
|
|
1399
|
-
const fileUpload = use(RootContext$
|
|
1399
|
+
function RootContext$35(props) {
|
|
1400
|
+
const fileUpload = use(RootContext$36);
|
|
1400
1401
|
const { children } = props;
|
|
1401
1402
|
return children(fileUpload);
|
|
1402
1403
|
}
|
|
1403
1404
|
|
|
1404
1405
|
//#endregion
|
|
1405
1406
|
//#region src/components/file-upload/anatomy/root-provider.tsx
|
|
1406
|
-
function RootProvider$
|
|
1407
|
+
function RootProvider$13(props) {
|
|
1407
1408
|
const { element, children, value: fileUpload, ...rest } = props;
|
|
1408
1409
|
const attributes = mergeProps(fileUpload.getRootProps(), { className: classes.fileUpload.root }, rest);
|
|
1409
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
1410
|
+
return /* @__PURE__ */ jsx(RootContext$36.Provider, {
|
|
1410
1411
|
value: fileUpload,
|
|
1411
1412
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1412
1413
|
...attributes,
|
|
@@ -1431,7 +1432,7 @@ function Root$14(props) {
|
|
|
1431
1432
|
const { element, children, ...rest } = componentProps;
|
|
1432
1433
|
const fileUpload = useFileUpload(fileUploadProps);
|
|
1433
1434
|
const attributes = mergeProps(fileUpload.getRootProps(), { className: classes.fileUpload.root }, rest);
|
|
1434
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
1435
|
+
return /* @__PURE__ */ jsx(RootContext$36.Provider, {
|
|
1435
1436
|
value: fileUpload,
|
|
1436
1437
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1437
1438
|
...attributes,
|
|
@@ -1442,8 +1443,8 @@ function Root$14(props) {
|
|
|
1442
1443
|
|
|
1443
1444
|
//#endregion
|
|
1444
1445
|
//#region src/components/file-upload/anatomy/trigger.tsx
|
|
1445
|
-
function Trigger$
|
|
1446
|
-
const fileUpload = use(RootContext$
|
|
1446
|
+
function Trigger$6(props) {
|
|
1447
|
+
const fileUpload = use(RootContext$36);
|
|
1447
1448
|
const { element, children, ...rest } = props;
|
|
1448
1449
|
const attributes = mergeProps(fileUpload.getTriggerProps(), { className: classes.fileUpload.trigger }, rest);
|
|
1449
1450
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -1455,15 +1456,15 @@ function Trigger$5(props) {
|
|
|
1455
1456
|
//#endregion
|
|
1456
1457
|
//#region src/components/file-upload/modules/anatomy.ts
|
|
1457
1458
|
const FileUpload = Object.assign(Root$14, {
|
|
1458
|
-
Provider: RootProvider$
|
|
1459
|
-
Context: RootContext$
|
|
1459
|
+
Provider: RootProvider$13,
|
|
1460
|
+
Context: RootContext$35,
|
|
1460
1461
|
Label: Label$8,
|
|
1461
1462
|
Dropzone,
|
|
1462
|
-
Trigger: Trigger$
|
|
1463
|
+
Trigger: Trigger$6,
|
|
1463
1464
|
ClearTrigger: ClearTrigger$1,
|
|
1464
1465
|
HiddenInput: HiddenInput$4,
|
|
1465
1466
|
ItemGroup: ItemGroup$2,
|
|
1466
|
-
Item: Item$
|
|
1467
|
+
Item: Item$9,
|
|
1467
1468
|
ItemName,
|
|
1468
1469
|
ItemSizeText,
|
|
1469
1470
|
ItemDeleteTrigger: ItemDeleteTrigger$1
|
|
@@ -1471,12 +1472,12 @@ const FileUpload = Object.assign(Root$14, {
|
|
|
1471
1472
|
|
|
1472
1473
|
//#endregion
|
|
1473
1474
|
//#region src/components/floating-panel/modules/root-context.ts
|
|
1474
|
-
const RootContext$
|
|
1475
|
+
const RootContext$34 = createContext$1();
|
|
1475
1476
|
|
|
1476
1477
|
//#endregion
|
|
1477
1478
|
//#region src/components/floating-panel/anatomy/body.tsx
|
|
1478
1479
|
function Body(props) {
|
|
1479
|
-
const floatingPanel = use(RootContext$
|
|
1480
|
+
const floatingPanel = use(RootContext$34);
|
|
1480
1481
|
const { element, children, ...rest } = props;
|
|
1481
1482
|
const attributes = mergeProps(floatingPanel.getBodyProps(), { className: classes.floatingPanel.body }, rest);
|
|
1482
1483
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1488,7 +1489,7 @@ function Body(props) {
|
|
|
1488
1489
|
//#endregion
|
|
1489
1490
|
//#region src/components/floating-panel/anatomy/close-trigger.tsx
|
|
1490
1491
|
function CloseTrigger$2(props) {
|
|
1491
|
-
const floatingPanel = use(RootContext$
|
|
1492
|
+
const floatingPanel = use(RootContext$34);
|
|
1492
1493
|
const { element, children, ...rest } = props;
|
|
1493
1494
|
const attributes = mergeProps(floatingPanel.getCloseTriggerProps(), { className: classes.floatingPanel.closeTrigger }, rest);
|
|
1494
1495
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -1499,8 +1500,8 @@ function CloseTrigger$2(props) {
|
|
|
1499
1500
|
|
|
1500
1501
|
//#endregion
|
|
1501
1502
|
//#region src/components/floating-panel/anatomy/content.tsx
|
|
1502
|
-
function Content$
|
|
1503
|
-
const floatingPanel = use(RootContext$
|
|
1503
|
+
function Content$6(props) {
|
|
1504
|
+
const floatingPanel = use(RootContext$34);
|
|
1504
1505
|
const { element, children, ...rest } = props;
|
|
1505
1506
|
const attributes = mergeProps(floatingPanel.getContentProps(), { className: classes.floatingPanel.content }, rest);
|
|
1506
1507
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1512,7 +1513,7 @@ function Content$5(props) {
|
|
|
1512
1513
|
//#endregion
|
|
1513
1514
|
//#region src/components/floating-panel/anatomy/control.tsx
|
|
1514
1515
|
function Control$5(props) {
|
|
1515
|
-
const floatingPanel = use(RootContext$
|
|
1516
|
+
const floatingPanel = use(RootContext$34);
|
|
1516
1517
|
const { element, children, ...rest } = props;
|
|
1517
1518
|
const attributes = mergeProps(floatingPanel.getControlProps(), { className: classes.floatingPanel.control }, rest);
|
|
1518
1519
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1524,7 +1525,7 @@ function Control$5(props) {
|
|
|
1524
1525
|
//#endregion
|
|
1525
1526
|
//#region src/components/floating-panel/anatomy/drag-trigger.tsx
|
|
1526
1527
|
function DragTrigger(props) {
|
|
1527
|
-
const floatingPanel = use(RootContext$
|
|
1528
|
+
const floatingPanel = use(RootContext$34);
|
|
1528
1529
|
const { element, children, ...rest } = props;
|
|
1529
1530
|
const attributes = mergeProps(floatingPanel.getDragTriggerProps(), { className: classes.floatingPanel.dragTrigger }, rest);
|
|
1530
1531
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1536,7 +1537,7 @@ function DragTrigger(props) {
|
|
|
1536
1537
|
//#endregion
|
|
1537
1538
|
//#region src/components/floating-panel/anatomy/header.tsx
|
|
1538
1539
|
function Header(props) {
|
|
1539
|
-
const floatingPanel = use(RootContext$
|
|
1540
|
+
const floatingPanel = use(RootContext$34);
|
|
1540
1541
|
const { element, children, ...rest } = props;
|
|
1541
1542
|
const attributes = mergeProps(floatingPanel.getHeaderProps(), { className: classes.floatingPanel.header }, rest);
|
|
1542
1543
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1548,7 +1549,7 @@ function Header(props) {
|
|
|
1548
1549
|
//#endregion
|
|
1549
1550
|
//#region src/components/floating-panel/anatomy/positioner.tsx
|
|
1550
1551
|
function Positioner$3(props) {
|
|
1551
|
-
const floatingPanel = use(RootContext$
|
|
1552
|
+
const floatingPanel = use(RootContext$34);
|
|
1552
1553
|
const { element, children, ...rest } = props;
|
|
1553
1554
|
const attributes = mergeProps(floatingPanel.getPositionerProps(), { className: classes.floatingPanel.positioner }, rest);
|
|
1554
1555
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1560,7 +1561,7 @@ function Positioner$3(props) {
|
|
|
1560
1561
|
//#endregion
|
|
1561
1562
|
//#region src/components/floating-panel/anatomy/resize-trigger.tsx
|
|
1562
1563
|
function ResizeTrigger(props) {
|
|
1563
|
-
const floatingPanel = use(RootContext$
|
|
1564
|
+
const floatingPanel = use(RootContext$34);
|
|
1564
1565
|
const [resizeTriggerProps, componentProps] = splitResizeTriggerProps(props);
|
|
1565
1566
|
const { element, children, ...rest } = componentProps;
|
|
1566
1567
|
const attributes = mergeProps(floatingPanel.getResizeTriggerProps(resizeTriggerProps), { className: classes.floatingPanel.resizeTrigger }, rest);
|
|
@@ -1572,17 +1573,17 @@ function ResizeTrigger(props) {
|
|
|
1572
1573
|
|
|
1573
1574
|
//#endregion
|
|
1574
1575
|
//#region src/components/floating-panel/anatomy/root-context.tsx
|
|
1575
|
-
function RootContext$
|
|
1576
|
-
const floatingPanel = use(RootContext$
|
|
1576
|
+
function RootContext$33(props) {
|
|
1577
|
+
const floatingPanel = use(RootContext$34);
|
|
1577
1578
|
const { children } = props;
|
|
1578
1579
|
return children(floatingPanel);
|
|
1579
1580
|
}
|
|
1580
1581
|
|
|
1581
1582
|
//#endregion
|
|
1582
1583
|
//#region src/components/floating-panel/anatomy/root-provider.tsx
|
|
1583
|
-
function RootProvider$
|
|
1584
|
+
function RootProvider$12(props) {
|
|
1584
1585
|
const { children, value: floatingPanel } = props;
|
|
1585
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
1586
|
+
return /* @__PURE__ */ jsx(RootContext$34.Provider, {
|
|
1586
1587
|
value: floatingPanel,
|
|
1587
1588
|
children
|
|
1588
1589
|
});
|
|
@@ -1603,7 +1604,7 @@ function Root$13(props) {
|
|
|
1603
1604
|
const [floatingPanelProps, componentProps] = splitProps$7(props);
|
|
1604
1605
|
const { children } = componentProps;
|
|
1605
1606
|
const floatingPanel = useFloatingPanel(floatingPanelProps);
|
|
1606
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
1607
|
+
return /* @__PURE__ */ jsx(RootContext$34.Provider, {
|
|
1607
1608
|
value: floatingPanel,
|
|
1608
1609
|
children
|
|
1609
1610
|
});
|
|
@@ -1612,7 +1613,7 @@ function Root$13(props) {
|
|
|
1612
1613
|
//#endregion
|
|
1613
1614
|
//#region src/components/floating-panel/anatomy/stage-trigger.tsx
|
|
1614
1615
|
function StageTrigger(props) {
|
|
1615
|
-
const floatingPanel = use(RootContext$
|
|
1616
|
+
const floatingPanel = use(RootContext$34);
|
|
1616
1617
|
const { element, children, stage, ...rest } = props;
|
|
1617
1618
|
const attributes = mergeProps(floatingPanel.getStageTriggerProps({ stage }), { className: classes.floatingPanel.stageTrigger }, rest);
|
|
1618
1619
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -1624,7 +1625,7 @@ function StageTrigger(props) {
|
|
|
1624
1625
|
//#endregion
|
|
1625
1626
|
//#region src/components/floating-panel/anatomy/title.tsx
|
|
1626
1627
|
function Title$2(props) {
|
|
1627
|
-
const floatingPanel = use(RootContext$
|
|
1628
|
+
const floatingPanel = use(RootContext$34);
|
|
1628
1629
|
const { element, children, ...rest } = props;
|
|
1629
1630
|
const attributes = mergeProps(floatingPanel.getTitleProps(), { className: classes.floatingPanel.title }, rest);
|
|
1630
1631
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1635,8 +1636,8 @@ function Title$2(props) {
|
|
|
1635
1636
|
|
|
1636
1637
|
//#endregion
|
|
1637
1638
|
//#region src/components/floating-panel/anatomy/trigger.tsx
|
|
1638
|
-
function Trigger$
|
|
1639
|
-
const floatingPanel = use(RootContext$
|
|
1639
|
+
function Trigger$5(props) {
|
|
1640
|
+
const floatingPanel = use(RootContext$34);
|
|
1640
1641
|
const { element, children, ...rest } = props;
|
|
1641
1642
|
const attributes = mergeProps(floatingPanel.getTriggerProps(), { className: classes.floatingPanel.trigger }, rest);
|
|
1642
1643
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -1648,11 +1649,11 @@ function Trigger$4(props) {
|
|
|
1648
1649
|
//#endregion
|
|
1649
1650
|
//#region src/components/floating-panel/modules/anatomy.ts
|
|
1650
1651
|
const FloatingPanel = Object.assign(Root$13, {
|
|
1651
|
-
Provider: RootProvider$
|
|
1652
|
-
Context: RootContext$
|
|
1653
|
-
Trigger: Trigger$
|
|
1652
|
+
Provider: RootProvider$12,
|
|
1653
|
+
Context: RootContext$33,
|
|
1654
|
+
Trigger: Trigger$5,
|
|
1654
1655
|
Positioner: Positioner$3,
|
|
1655
|
-
Content: Content$
|
|
1656
|
+
Content: Content$6,
|
|
1656
1657
|
DragTrigger,
|
|
1657
1658
|
Header,
|
|
1658
1659
|
Title: Title$2,
|
|
@@ -1665,12 +1666,12 @@ const FloatingPanel = Object.assign(Root$13, {
|
|
|
1665
1666
|
|
|
1666
1667
|
//#endregion
|
|
1667
1668
|
//#region src/components/listbox/modules/root-context.ts
|
|
1668
|
-
const RootContext$
|
|
1669
|
+
const RootContext$32 = createContext$1();
|
|
1669
1670
|
|
|
1670
1671
|
//#endregion
|
|
1671
1672
|
//#region src/components/listbox/anatomy/content.tsx
|
|
1672
|
-
function Content$
|
|
1673
|
-
const listbox = use(RootContext$
|
|
1673
|
+
function Content$5(props) {
|
|
1674
|
+
const listbox = use(RootContext$32);
|
|
1674
1675
|
const { element, children, ...rest } = props;
|
|
1675
1676
|
const attributes = mergeProps(listbox.getContentProps(), { className: classes.listbox.content }, rest);
|
|
1676
1677
|
return element ? element(attributes) : /* @__PURE__ */ jsx("ul", {
|
|
@@ -1682,7 +1683,7 @@ function Content$4(props) {
|
|
|
1682
1683
|
//#endregion
|
|
1683
1684
|
//#region src/components/listbox/anatomy/input.tsx
|
|
1684
1685
|
function Input$1(props) {
|
|
1685
|
-
const listbox = use(RootContext$
|
|
1686
|
+
const listbox = use(RootContext$32);
|
|
1686
1687
|
const { element, ...rest } = props;
|
|
1687
1688
|
const attributes = mergeProps(listbox.getInputProps(), { className: classes.listbox.input }, rest);
|
|
1688
1689
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
@@ -1695,7 +1696,7 @@ const ItemGroupContext$1 = createContext$1();
|
|
|
1695
1696
|
//#endregion
|
|
1696
1697
|
//#region src/components/listbox/anatomy/item-group-label.tsx
|
|
1697
1698
|
function ItemGroupLabel$1(props) {
|
|
1698
|
-
const listbox = use(RootContext$
|
|
1699
|
+
const listbox = use(RootContext$32);
|
|
1699
1700
|
const [itemGroupLabelProps, componentProps] = splitItemGroupLabelProps$1({
|
|
1700
1701
|
htmlFor: use(ItemGroupContext$1).id,
|
|
1701
1702
|
...props
|
|
@@ -1711,7 +1712,7 @@ function ItemGroupLabel$1(props) {
|
|
|
1711
1712
|
//#endregion
|
|
1712
1713
|
//#region src/components/listbox/anatomy/item-group.tsx
|
|
1713
1714
|
function ItemGroup$1(props) {
|
|
1714
|
-
const listbox = use(RootContext$
|
|
1715
|
+
const listbox = use(RootContext$32);
|
|
1715
1716
|
const [itemGroupProps, componentProps] = splitItemGroupProps$1({
|
|
1716
1717
|
id: useId(),
|
|
1717
1718
|
...props
|
|
@@ -1729,13 +1730,13 @@ function ItemGroup$1(props) {
|
|
|
1729
1730
|
|
|
1730
1731
|
//#endregion
|
|
1731
1732
|
//#region src/components/listbox/modules/item-context.ts
|
|
1732
|
-
const ItemContext$
|
|
1733
|
+
const ItemContext$4 = createContext$1();
|
|
1733
1734
|
|
|
1734
1735
|
//#endregion
|
|
1735
1736
|
//#region src/components/listbox/anatomy/item-indicator.tsx
|
|
1736
1737
|
function ItemIndicator$1(props) {
|
|
1737
|
-
const listbox = use(RootContext$
|
|
1738
|
-
const itemProps = use(ItemContext$
|
|
1738
|
+
const listbox = use(RootContext$32);
|
|
1739
|
+
const itemProps = use(ItemContext$4);
|
|
1739
1740
|
const { element, children = /* @__PURE__ */ jsx(Check, { className: "size-4" }), ...rest } = props;
|
|
1740
1741
|
const attributes = mergeProps(listbox.getItemIndicatorProps(itemProps), { className: classes.listbox.itemIndicator }, rest);
|
|
1741
1742
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
@@ -1747,8 +1748,8 @@ function ItemIndicator$1(props) {
|
|
|
1747
1748
|
//#endregion
|
|
1748
1749
|
//#region src/components/listbox/anatomy/item-text.tsx
|
|
1749
1750
|
function ItemText$3(props) {
|
|
1750
|
-
const listbox = use(RootContext$
|
|
1751
|
-
const itemProps = use(ItemContext$
|
|
1751
|
+
const listbox = use(RootContext$32);
|
|
1752
|
+
const itemProps = use(ItemContext$4);
|
|
1752
1753
|
const { element, children, ...rest } = props;
|
|
1753
1754
|
const attributes = mergeProps(listbox.getItemTextProps(itemProps), { className: classes.listbox.itemText }, rest);
|
|
1754
1755
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
@@ -1759,12 +1760,12 @@ function ItemText$3(props) {
|
|
|
1759
1760
|
|
|
1760
1761
|
//#endregion
|
|
1761
1762
|
//#region src/components/listbox/anatomy/item.tsx
|
|
1762
|
-
function Item$
|
|
1763
|
-
const listbox = use(RootContext$
|
|
1763
|
+
function Item$8(props) {
|
|
1764
|
+
const listbox = use(RootContext$32);
|
|
1764
1765
|
const [itemProps, componentProps] = splitItemProps$3(props);
|
|
1765
1766
|
const { element, children, ...rest } = componentProps;
|
|
1766
1767
|
const attributes = mergeProps(listbox.getItemProps(itemProps), { className: classes.listbox.item }, rest);
|
|
1767
|
-
return /* @__PURE__ */ jsx(ItemContext$
|
|
1768
|
+
return /* @__PURE__ */ jsx(ItemContext$4.Provider, {
|
|
1768
1769
|
value: itemProps,
|
|
1769
1770
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("li", {
|
|
1770
1771
|
...attributes,
|
|
@@ -1776,7 +1777,7 @@ function Item$7(props) {
|
|
|
1776
1777
|
//#endregion
|
|
1777
1778
|
//#region src/components/listbox/anatomy/label.tsx
|
|
1778
1779
|
function Label$7(props) {
|
|
1779
|
-
const listbox = use(RootContext$
|
|
1780
|
+
const listbox = use(RootContext$32);
|
|
1780
1781
|
const { element, children, ...rest } = props;
|
|
1781
1782
|
const attributes = mergeProps(listbox.getLabelProps(), { className: classes.listbox.label }, rest);
|
|
1782
1783
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
@@ -1787,8 +1788,8 @@ function Label$7(props) {
|
|
|
1787
1788
|
|
|
1788
1789
|
//#endregion
|
|
1789
1790
|
//#region src/components/listbox/anatomy/root-context.tsx
|
|
1790
|
-
function RootContext$
|
|
1791
|
-
const listbox = use(RootContext$
|
|
1791
|
+
function RootContext$31(props) {
|
|
1792
|
+
const listbox = use(RootContext$32);
|
|
1792
1793
|
const { children } = props;
|
|
1793
1794
|
return children(listbox);
|
|
1794
1795
|
}
|
|
@@ -1804,10 +1805,10 @@ function useListbox(props) {
|
|
|
1804
1805
|
|
|
1805
1806
|
//#endregion
|
|
1806
1807
|
//#region src/components/listbox/anatomy/root-provider.tsx
|
|
1807
|
-
function RootProvider$
|
|
1808
|
+
function RootProvider$11(props) {
|
|
1808
1809
|
const { element, children, value: listbox, ...rest } = props;
|
|
1809
1810
|
const attributes = mergeProps(listbox.getRootProps(), { className: classes.listbox.root }, rest);
|
|
1810
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
1811
|
+
return /* @__PURE__ */ jsx(RootContext$32.Provider, {
|
|
1811
1812
|
value: listbox,
|
|
1812
1813
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1813
1814
|
...attributes,
|
|
@@ -1823,7 +1824,7 @@ function Root$12(props) {
|
|
|
1823
1824
|
const { element, children, ...rest } = componentProps;
|
|
1824
1825
|
const listbox = useListbox(listboxProps);
|
|
1825
1826
|
const attributes = mergeProps(listbox.getRootProps(), { className: classes.listbox.root }, rest);
|
|
1826
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
1827
|
+
return /* @__PURE__ */ jsx(RootContext$32.Provider, {
|
|
1827
1828
|
value: listbox,
|
|
1828
1829
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1829
1830
|
...attributes,
|
|
@@ -1835,26 +1836,26 @@ function Root$12(props) {
|
|
|
1835
1836
|
//#endregion
|
|
1836
1837
|
//#region src/components/listbox/modules/anatomy.ts
|
|
1837
1838
|
const Listbox = Object.assign(Root$12, {
|
|
1838
|
-
Provider: RootProvider$
|
|
1839
|
-
Context: RootContext$
|
|
1839
|
+
Provider: RootProvider$11,
|
|
1840
|
+
Context: RootContext$31,
|
|
1840
1841
|
Label: Label$7,
|
|
1841
1842
|
Input: Input$1,
|
|
1842
|
-
Content: Content$
|
|
1843
|
+
Content: Content$5,
|
|
1843
1844
|
ItemGroup: ItemGroup$1,
|
|
1844
1845
|
ItemGroupLabel: ItemGroupLabel$1,
|
|
1845
|
-
Item: Item$
|
|
1846
|
+
Item: Item$8,
|
|
1846
1847
|
ItemText: ItemText$3,
|
|
1847
1848
|
ItemIndicator: ItemIndicator$1
|
|
1848
1849
|
});
|
|
1849
1850
|
|
|
1850
1851
|
//#endregion
|
|
1851
1852
|
//#region src/components/menu/modules/root-context.ts
|
|
1852
|
-
const RootContext$
|
|
1853
|
+
const RootContext$30 = createContext$1();
|
|
1853
1854
|
|
|
1854
1855
|
//#endregion
|
|
1855
1856
|
//#region src/components/menu/anatomy/arrow-tip.tsx
|
|
1856
1857
|
function ArrowTip$2(props) {
|
|
1857
|
-
const menu = use(RootContext$
|
|
1858
|
+
const menu = use(RootContext$30);
|
|
1858
1859
|
const { element, children, ...rest } = props;
|
|
1859
1860
|
const attributes = mergeProps(menu.getArrowTipProps(), { className: classes.menu.arrowTip }, rest);
|
|
1860
1861
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1866,7 +1867,7 @@ function ArrowTip$2(props) {
|
|
|
1866
1867
|
//#endregion
|
|
1867
1868
|
//#region src/components/menu/anatomy/arrow.tsx
|
|
1868
1869
|
function Arrow$2(props) {
|
|
1869
|
-
const menu = use(RootContext$
|
|
1870
|
+
const menu = use(RootContext$30);
|
|
1870
1871
|
const { element, children, ...rest } = props;
|
|
1871
1872
|
const attributes = mergeProps(menu.getArrowProps(), { className: classes.menu.arrow }, rest);
|
|
1872
1873
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1877,8 +1878,8 @@ function Arrow$2(props) {
|
|
|
1877
1878
|
|
|
1878
1879
|
//#endregion
|
|
1879
1880
|
//#region src/components/menu/anatomy/content.tsx
|
|
1880
|
-
function Content$
|
|
1881
|
-
const menu = use(RootContext$
|
|
1881
|
+
function Content$4(props) {
|
|
1882
|
+
const menu = use(RootContext$30);
|
|
1882
1883
|
const { element, children, ...rest } = props;
|
|
1883
1884
|
const attributes = mergeProps(menu.getContentProps(), { className: classes.menu.content }, rest);
|
|
1884
1885
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1890,7 +1891,7 @@ function Content$3(props) {
|
|
|
1890
1891
|
//#endregion
|
|
1891
1892
|
//#region src/components/menu/anatomy/context-trigger.tsx
|
|
1892
1893
|
function ContextTrigger(props) {
|
|
1893
|
-
const menu = use(RootContext$
|
|
1894
|
+
const menu = use(RootContext$30);
|
|
1894
1895
|
const { element, children, ...rest } = props;
|
|
1895
1896
|
const attributes = mergeProps(menu.getContextTriggerProps(), { className: classes.menu.contextTrigger }, rest);
|
|
1896
1897
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -1901,8 +1902,8 @@ function ContextTrigger(props) {
|
|
|
1901
1902
|
|
|
1902
1903
|
//#endregion
|
|
1903
1904
|
//#region src/components/menu/anatomy/indicator.tsx
|
|
1904
|
-
function Indicator$
|
|
1905
|
-
const menu = use(RootContext$
|
|
1905
|
+
function Indicator$3(props) {
|
|
1906
|
+
const menu = use(RootContext$30);
|
|
1906
1907
|
const { element, children, ...rest } = props;
|
|
1907
1908
|
const attributes = mergeProps(menu.getIndicatorProps(), { className: classes.menu.indicator }, rest);
|
|
1908
1909
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1918,7 +1919,7 @@ const ItemGroupContext = createContext$1();
|
|
|
1918
1919
|
//#endregion
|
|
1919
1920
|
//#region src/components/menu/anatomy/item-group-label.tsx
|
|
1920
1921
|
function ItemGroupLabel(props) {
|
|
1921
|
-
const menu = use(RootContext$
|
|
1922
|
+
const menu = use(RootContext$30);
|
|
1922
1923
|
const [labelProps, componentProps] = splitItemGroupLabelProps$2({
|
|
1923
1924
|
htmlFor: use(ItemGroupContext).id,
|
|
1924
1925
|
...props
|
|
@@ -1934,7 +1935,7 @@ function ItemGroupLabel(props) {
|
|
|
1934
1935
|
//#endregion
|
|
1935
1936
|
//#region src/components/menu/anatomy/item-group.tsx
|
|
1936
1937
|
function ItemGroup(props) {
|
|
1937
|
-
const menu = use(RootContext$
|
|
1938
|
+
const menu = use(RootContext$30);
|
|
1938
1939
|
const [itemGroupProps, componentProps] = splitItemGroupProps$2({
|
|
1939
1940
|
id: useId(),
|
|
1940
1941
|
...props
|
|
@@ -1952,13 +1953,13 @@ function ItemGroup(props) {
|
|
|
1952
1953
|
|
|
1953
1954
|
//#endregion
|
|
1954
1955
|
//#region src/components/menu/modules/item-context.ts
|
|
1955
|
-
const ItemContext$
|
|
1956
|
+
const ItemContext$3 = createContext$1();
|
|
1956
1957
|
|
|
1957
1958
|
//#endregion
|
|
1958
1959
|
//#region src/components/menu/anatomy/item-indicator.tsx
|
|
1959
1960
|
function ItemIndicator(props) {
|
|
1960
|
-
const menu = use(RootContext$
|
|
1961
|
-
const itemProps = use(ItemContext$
|
|
1961
|
+
const menu = use(RootContext$30);
|
|
1962
|
+
const itemProps = use(ItemContext$3);
|
|
1962
1963
|
const { element, children, ...rest } = props;
|
|
1963
1964
|
const attributes = mergeProps(menu.getItemIndicatorProps(itemProps), { className: classes.menu.itemIndicator }, rest);
|
|
1964
1965
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1970,8 +1971,8 @@ function ItemIndicator(props) {
|
|
|
1970
1971
|
//#endregion
|
|
1971
1972
|
//#region src/components/menu/anatomy/item-text.tsx
|
|
1972
1973
|
function ItemText$2(props) {
|
|
1973
|
-
const menu = use(RootContext$
|
|
1974
|
-
const itemProps = use(ItemContext$
|
|
1974
|
+
const menu = use(RootContext$30);
|
|
1975
|
+
const itemProps = use(ItemContext$3);
|
|
1975
1976
|
const { element, children, ...rest } = props;
|
|
1976
1977
|
const attributes = mergeProps(menu.getItemTextProps(itemProps), { className: classes.menu.itemText }, rest);
|
|
1977
1978
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1982,12 +1983,12 @@ function ItemText$2(props) {
|
|
|
1982
1983
|
|
|
1983
1984
|
//#endregion
|
|
1984
1985
|
//#region src/components/menu/anatomy/item.tsx
|
|
1985
|
-
function Item$
|
|
1986
|
-
const menu = use(RootContext$
|
|
1986
|
+
function Item$7(props) {
|
|
1987
|
+
const menu = use(RootContext$30);
|
|
1987
1988
|
const [itemProps, componentProps] = splitItemProps$4(props);
|
|
1988
1989
|
const { element, children, ...rest } = componentProps;
|
|
1989
1990
|
const attributes = mergeProps(menu.getItemProps(itemProps), { className: classes.menu.item }, rest);
|
|
1990
|
-
return /* @__PURE__ */ jsx(ItemContext$
|
|
1991
|
+
return /* @__PURE__ */ jsx(ItemContext$3.Provider, {
|
|
1991
1992
|
value: itemProps,
|
|
1992
1993
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1993
1994
|
...attributes,
|
|
@@ -1999,11 +2000,11 @@ function Item$6(props) {
|
|
|
1999
2000
|
//#endregion
|
|
2000
2001
|
//#region src/components/menu/anatomy/option-item.tsx
|
|
2001
2002
|
function OptionItem(props) {
|
|
2002
|
-
const menu = use(RootContext$
|
|
2003
|
+
const menu = use(RootContext$30);
|
|
2003
2004
|
const [itemProps, componentProps] = splitOptionItemProps(props);
|
|
2004
2005
|
const { element, children, ...rest } = componentProps;
|
|
2005
2006
|
const attributes = mergeProps(menu.getOptionItemProps(itemProps), { className: classes.menu.item }, rest);
|
|
2006
|
-
return /* @__PURE__ */ jsx(ItemContext$
|
|
2007
|
+
return /* @__PURE__ */ jsx(ItemContext$3.Provider, {
|
|
2007
2008
|
value: itemProps,
|
|
2008
2009
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2009
2010
|
...attributes,
|
|
@@ -2015,7 +2016,7 @@ function OptionItem(props) {
|
|
|
2015
2016
|
//#endregion
|
|
2016
2017
|
//#region src/components/menu/anatomy/positioner.tsx
|
|
2017
2018
|
function Positioner$2(props) {
|
|
2018
|
-
const menu = use(RootContext$
|
|
2019
|
+
const menu = use(RootContext$30);
|
|
2019
2020
|
const { element, children, ...rest } = props;
|
|
2020
2021
|
const attributes = mergeProps(menu.getPositionerProps(), { className: classes.menu.positioner }, rest);
|
|
2021
2022
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -2026,8 +2027,8 @@ function Positioner$2(props) {
|
|
|
2026
2027
|
|
|
2027
2028
|
//#endregion
|
|
2028
2029
|
//#region src/components/menu/anatomy/root-context.tsx
|
|
2029
|
-
function RootContext$
|
|
2030
|
-
const menu = use(RootContext$
|
|
2030
|
+
function RootContext$29(props) {
|
|
2031
|
+
const menu = use(RootContext$30);
|
|
2031
2032
|
const { children } = props;
|
|
2032
2033
|
return children(menu);
|
|
2033
2034
|
}
|
|
@@ -2038,15 +2039,15 @@ const TriggerItemContext = createContext$1();
|
|
|
2038
2039
|
|
|
2039
2040
|
//#endregion
|
|
2040
2041
|
//#region src/components/menu/anatomy/root-provider.tsx
|
|
2041
|
-
function RootProvider$
|
|
2042
|
-
const parentMenu = use(RootContext$
|
|
2042
|
+
function RootProvider$10(props) {
|
|
2043
|
+
const parentMenu = use(RootContext$30);
|
|
2043
2044
|
const { children, value: menu } = props;
|
|
2044
2045
|
useEffect(() => {
|
|
2045
2046
|
if (!parentMenu) return;
|
|
2046
2047
|
parentMenu.setChild(menu.service);
|
|
2047
2048
|
menu.setParent(parentMenu.service);
|
|
2048
2049
|
}, []);
|
|
2049
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
2050
|
+
return /* @__PURE__ */ jsx(RootContext$30.Provider, {
|
|
2050
2051
|
value: menu,
|
|
2051
2052
|
children: /* @__PURE__ */ jsx(TriggerItemContext.Provider, {
|
|
2052
2053
|
value: parentMenu?.getTriggerItemProps(menu),
|
|
@@ -2071,7 +2072,7 @@ function useMenu(props = {}) {
|
|
|
2071
2072
|
//#endregion
|
|
2072
2073
|
//#region src/components/menu/anatomy/root.tsx
|
|
2073
2074
|
function Root$11(props) {
|
|
2074
|
-
const parentMenu = use(RootContext$
|
|
2075
|
+
const parentMenu = use(RootContext$30);
|
|
2075
2076
|
const [menuProps, componentProps] = splitProps$9(props);
|
|
2076
2077
|
const { children } = componentProps;
|
|
2077
2078
|
const menu = useMenu(menuProps);
|
|
@@ -2080,7 +2081,7 @@ function Root$11(props) {
|
|
|
2080
2081
|
parentMenu.setChild(menu.service);
|
|
2081
2082
|
menu.setParent(parentMenu.service);
|
|
2082
2083
|
}, []);
|
|
2083
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
2084
|
+
return /* @__PURE__ */ jsx(RootContext$30.Provider, {
|
|
2084
2085
|
value: menu,
|
|
2085
2086
|
children: /* @__PURE__ */ jsx(TriggerItemContext.Provider, {
|
|
2086
2087
|
value: parentMenu?.getTriggerItemProps(menu),
|
|
@@ -2091,8 +2092,8 @@ function Root$11(props) {
|
|
|
2091
2092
|
|
|
2092
2093
|
//#endregion
|
|
2093
2094
|
//#region src/components/menu/anatomy/separator.tsx
|
|
2094
|
-
function Separator(props) {
|
|
2095
|
-
const menu = use(RootContext$
|
|
2095
|
+
function Separator$1(props) {
|
|
2096
|
+
const menu = use(RootContext$30);
|
|
2096
2097
|
const { element, ...rest } = props;
|
|
2097
2098
|
const attributes = mergeProps(menu.getSeparatorProps(), { className: classes.menu.separator }, rest);
|
|
2098
2099
|
return element ? element(attributes) : /* @__PURE__ */ jsx("hr", { ...attributes });
|
|
@@ -2105,7 +2106,7 @@ function TriggerItem(props) {
|
|
|
2105
2106
|
const [itemProps, componentProps] = splitItemProps$4(props);
|
|
2106
2107
|
const { element, children, ...rest } = componentProps;
|
|
2107
2108
|
const attributes = mergeProps(triggerItemProps, { className: classes.menu.item }, rest);
|
|
2108
|
-
return /* @__PURE__ */ jsx(ItemContext$
|
|
2109
|
+
return /* @__PURE__ */ jsx(ItemContext$3.Provider, {
|
|
2109
2110
|
value: itemProps,
|
|
2110
2111
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2111
2112
|
...attributes,
|
|
@@ -2116,8 +2117,8 @@ function TriggerItem(props) {
|
|
|
2116
2117
|
|
|
2117
2118
|
//#endregion
|
|
2118
2119
|
//#region src/components/menu/anatomy/trigger.tsx
|
|
2119
|
-
function Trigger$
|
|
2120
|
-
const menu = use(RootContext$
|
|
2120
|
+
function Trigger$4(props) {
|
|
2121
|
+
const menu = use(RootContext$30);
|
|
2121
2122
|
const { element, children, ...rest } = props;
|
|
2122
2123
|
const attributes = mergeProps(menu.getTriggerProps(), { className: classes.menu.trigger }, rest);
|
|
2123
2124
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -2129,34 +2130,34 @@ function Trigger$3(props) {
|
|
|
2129
2130
|
//#endregion
|
|
2130
2131
|
//#region src/components/menu/modules/anatomy.ts
|
|
2131
2132
|
const Menu = Object.assign(Root$11, {
|
|
2132
|
-
Provider: RootProvider$
|
|
2133
|
-
Context: RootContext$
|
|
2134
|
-
Trigger: Trigger$
|
|
2133
|
+
Provider: RootProvider$10,
|
|
2134
|
+
Context: RootContext$29,
|
|
2135
|
+
Trigger: Trigger$4,
|
|
2135
2136
|
ContextTrigger,
|
|
2136
|
-
Indicator: Indicator$
|
|
2137
|
+
Indicator: Indicator$3,
|
|
2137
2138
|
Positioner: Positioner$2,
|
|
2138
|
-
Content: Content$
|
|
2139
|
+
Content: Content$4,
|
|
2139
2140
|
ItemGroup,
|
|
2140
2141
|
ItemGroupLabel,
|
|
2141
|
-
Item: Item$
|
|
2142
|
+
Item: Item$7,
|
|
2142
2143
|
OptionItem,
|
|
2143
2144
|
TriggerItem,
|
|
2144
2145
|
ItemText: ItemText$2,
|
|
2145
2146
|
ItemIndicator,
|
|
2146
|
-
Separator,
|
|
2147
|
+
Separator: Separator$1,
|
|
2147
2148
|
Arrow: Arrow$2,
|
|
2148
2149
|
ArrowTip: ArrowTip$2
|
|
2149
2150
|
});
|
|
2150
2151
|
|
|
2151
2152
|
//#endregion
|
|
2152
2153
|
//#region src/components/navigation/modules/root-context.ts
|
|
2153
|
-
const RootContext$
|
|
2154
|
+
const RootContext$28 = createContext$1();
|
|
2154
2155
|
|
|
2155
2156
|
//#endregion
|
|
2156
2157
|
//#region src/components/navigation/anatomy/content.tsx
|
|
2157
2158
|
function NavigationContent(props) {
|
|
2158
2159
|
const { element, children, ...rest } = props;
|
|
2159
|
-
const navigation = use(RootContext$
|
|
2160
|
+
const navigation = use(RootContext$28);
|
|
2160
2161
|
const attributes = mergeProps({
|
|
2161
2162
|
"data-layout": navigation.layout,
|
|
2162
2163
|
className: classes.navigation.content
|
|
@@ -2171,7 +2172,7 @@ function NavigationContent(props) {
|
|
|
2171
2172
|
//#region src/components/navigation/anatomy/footer.tsx
|
|
2172
2173
|
function NavigationFooter(props) {
|
|
2173
2174
|
const { element, children, ...rest } = props;
|
|
2174
|
-
const navigation = use(RootContext$
|
|
2175
|
+
const navigation = use(RootContext$28);
|
|
2175
2176
|
const attributes = mergeProps({
|
|
2176
2177
|
"data-layout": navigation.layout,
|
|
2177
2178
|
className: classes.navigation.footer
|
|
@@ -2186,7 +2187,7 @@ function NavigationFooter(props) {
|
|
|
2186
2187
|
//#region src/components/navigation/anatomy/group.tsx
|
|
2187
2188
|
function NavigationGroup(props) {
|
|
2188
2189
|
const { element, children, ...rest } = props;
|
|
2189
|
-
const navigation = use(RootContext$
|
|
2190
|
+
const navigation = use(RootContext$28);
|
|
2190
2191
|
const attributes = mergeProps({
|
|
2191
2192
|
"data-layout": navigation.layout,
|
|
2192
2193
|
className: classes.navigation.group
|
|
@@ -2201,7 +2202,7 @@ function NavigationGroup(props) {
|
|
|
2201
2202
|
//#region src/components/navigation/anatomy/header.tsx
|
|
2202
2203
|
function NavigationHeader(props) {
|
|
2203
2204
|
const { element, children, ...rest } = props;
|
|
2204
|
-
const navigation = use(RootContext$
|
|
2205
|
+
const navigation = use(RootContext$28);
|
|
2205
2206
|
const attributes = mergeProps({
|
|
2206
2207
|
"data-layout": navigation.layout,
|
|
2207
2208
|
className: classes.navigation.header
|
|
@@ -2216,7 +2217,7 @@ function NavigationHeader(props) {
|
|
|
2216
2217
|
//#region src/components/navigation/anatomy/label.tsx
|
|
2217
2218
|
function NavigationLabel(props) {
|
|
2218
2219
|
const { element, children, ...rest } = props;
|
|
2219
|
-
const navigation = use(RootContext$
|
|
2220
|
+
const navigation = use(RootContext$28);
|
|
2220
2221
|
const attributes = mergeProps({
|
|
2221
2222
|
"data-layout": navigation.layout,
|
|
2222
2223
|
className: classes.navigation.label
|
|
@@ -2231,7 +2232,7 @@ function NavigationLabel(props) {
|
|
|
2231
2232
|
//#region src/components/navigation/anatomy/menu.tsx
|
|
2232
2233
|
function NavigationMenu(props) {
|
|
2233
2234
|
const { element, children, ...rest } = props;
|
|
2234
|
-
const navigation = use(RootContext$
|
|
2235
|
+
const navigation = use(RootContext$28);
|
|
2235
2236
|
const attributes = mergeProps({
|
|
2236
2237
|
"data-layout": navigation.layout,
|
|
2237
2238
|
className: classes.navigation.menu
|
|
@@ -2250,7 +2251,7 @@ function NavigationRoot(props) {
|
|
|
2250
2251
|
"data-layout": layout,
|
|
2251
2252
|
className: classes.navigation.root
|
|
2252
2253
|
}, rest);
|
|
2253
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
2254
|
+
return /* @__PURE__ */ jsx(RootContext$28.Provider, {
|
|
2254
2255
|
value: { layout },
|
|
2255
2256
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2256
2257
|
...attributes,
|
|
@@ -2272,12 +2273,12 @@ const Navigation = Object.assign(NavigationRoot, {
|
|
|
2272
2273
|
|
|
2273
2274
|
//#endregion
|
|
2274
2275
|
//#region src/components/pagination/modules/root-context.ts
|
|
2275
|
-
const RootContext$
|
|
2276
|
+
const RootContext$27 = createContext$1();
|
|
2276
2277
|
|
|
2277
2278
|
//#endregion
|
|
2278
2279
|
//#region src/components/pagination/anatomy/ellipsis.tsx
|
|
2279
2280
|
function Ellipsis(props) {
|
|
2280
|
-
const pagination = use(RootContext$
|
|
2281
|
+
const pagination = use(RootContext$27);
|
|
2281
2282
|
const [ellipsisProps, componentProps] = splitEllipsisProps(props);
|
|
2282
2283
|
const { element, children, ...rest } = componentProps;
|
|
2283
2284
|
const attributes = mergeProps(pagination.getEllipsisProps(ellipsisProps), { className: classes.pagination.ellipsis }, rest);
|
|
@@ -2290,7 +2291,7 @@ function Ellipsis(props) {
|
|
|
2290
2291
|
//#endregion
|
|
2291
2292
|
//#region src/components/pagination/anatomy/first-trigger.tsx
|
|
2292
2293
|
function FirstTrigger(props) {
|
|
2293
|
-
const pagination = use(RootContext$
|
|
2294
|
+
const pagination = use(RootContext$27);
|
|
2294
2295
|
const { element, children, ...rest } = props;
|
|
2295
2296
|
const attributes = mergeProps({
|
|
2296
2297
|
className: classes.pagination.nextTrigger,
|
|
@@ -2304,8 +2305,8 @@ function FirstTrigger(props) {
|
|
|
2304
2305
|
|
|
2305
2306
|
//#endregion
|
|
2306
2307
|
//#region src/components/pagination/anatomy/item.tsx
|
|
2307
|
-
function Item$
|
|
2308
|
-
const pagination = use(RootContext$
|
|
2308
|
+
function Item$6(props) {
|
|
2309
|
+
const pagination = use(RootContext$27);
|
|
2309
2310
|
const [itemProps, componentProps] = splitItemProps$5(props);
|
|
2310
2311
|
const { element, children, ...rest } = componentProps;
|
|
2311
2312
|
const attributes = mergeProps(pagination.getItemProps(itemProps), { className: classes.pagination.item }, rest);
|
|
@@ -2318,7 +2319,7 @@ function Item$5(props) {
|
|
|
2318
2319
|
//#endregion
|
|
2319
2320
|
//#region src/components/pagination/anatomy/last-trigger.tsx
|
|
2320
2321
|
function LastTrigger(props) {
|
|
2321
|
-
const pagination = use(RootContext$
|
|
2322
|
+
const pagination = use(RootContext$27);
|
|
2322
2323
|
const { element, children, ...rest } = props;
|
|
2323
2324
|
const attributes = mergeProps({
|
|
2324
2325
|
className: classes.pagination.nextTrigger,
|
|
@@ -2332,8 +2333,8 @@ function LastTrigger(props) {
|
|
|
2332
2333
|
|
|
2333
2334
|
//#endregion
|
|
2334
2335
|
//#region src/components/pagination/anatomy/next-trigger.tsx
|
|
2335
|
-
function NextTrigger(props) {
|
|
2336
|
-
const pagination = use(RootContext$
|
|
2336
|
+
function NextTrigger$1(props) {
|
|
2337
|
+
const pagination = use(RootContext$27);
|
|
2337
2338
|
const { element, children, ...rest } = props;
|
|
2338
2339
|
const attributes = mergeProps(pagination.getNextTriggerProps(), { className: classes.pagination.nextTrigger }, rest);
|
|
2339
2340
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -2344,8 +2345,8 @@ function NextTrigger(props) {
|
|
|
2344
2345
|
|
|
2345
2346
|
//#endregion
|
|
2346
2347
|
//#region src/components/pagination/anatomy/prev-trigger.tsx
|
|
2347
|
-
function PrevTrigger(props) {
|
|
2348
|
-
const pagination = use(RootContext$
|
|
2348
|
+
function PrevTrigger$1(props) {
|
|
2349
|
+
const pagination = use(RootContext$27);
|
|
2349
2350
|
const { element, children, ...rest } = props;
|
|
2350
2351
|
const attributes = mergeProps(pagination.getPrevTriggerProps(), { className: classes.pagination.prevTrigger }, rest);
|
|
2351
2352
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -2356,8 +2357,8 @@ function PrevTrigger(props) {
|
|
|
2356
2357
|
|
|
2357
2358
|
//#endregion
|
|
2358
2359
|
//#region src/components/pagination/anatomy/root-context.tsx
|
|
2359
|
-
function RootContext$
|
|
2360
|
-
const pagination = use(RootContext$
|
|
2360
|
+
function RootContext$26(props) {
|
|
2361
|
+
const pagination = use(RootContext$27);
|
|
2361
2362
|
const { children } = props;
|
|
2362
2363
|
return children(pagination);
|
|
2363
2364
|
}
|
|
@@ -2367,7 +2368,7 @@ function RootContext$24(props) {
|
|
|
2367
2368
|
function PaginationRootProvider(props) {
|
|
2368
2369
|
const { element, children, value: pagination, ...rest } = props;
|
|
2369
2370
|
const attributes = mergeProps(pagination.getRootProps(), { className: classes.pagination.root }, rest);
|
|
2370
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
2371
|
+
return /* @__PURE__ */ jsx(RootContext$27.Provider, {
|
|
2371
2372
|
value: pagination,
|
|
2372
2373
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("nav", {
|
|
2373
2374
|
...attributes,
|
|
@@ -2392,7 +2393,7 @@ function PaginationRoot(props) {
|
|
|
2392
2393
|
const { element, children, ...rest } = componentProps;
|
|
2393
2394
|
const pagination = usePagination(paginationProps);
|
|
2394
2395
|
const attributes = mergeProps(pagination.getRootProps(), { className: classes.pagination.root }, rest);
|
|
2395
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
2396
|
+
return /* @__PURE__ */ jsx(RootContext$27.Provider, {
|
|
2396
2397
|
value: pagination,
|
|
2397
2398
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("nav", {
|
|
2398
2399
|
...attributes,
|
|
@@ -2405,23 +2406,23 @@ function PaginationRoot(props) {
|
|
|
2405
2406
|
//#region src/components/pagination/modules/anatomy.ts
|
|
2406
2407
|
const Pagination = Object.assign(PaginationRoot, {
|
|
2407
2408
|
Provider: PaginationRootProvider,
|
|
2408
|
-
Context: RootContext$
|
|
2409
|
+
Context: RootContext$26,
|
|
2409
2410
|
FirstTrigger,
|
|
2410
|
-
PrevTrigger,
|
|
2411
|
-
Item: Item$
|
|
2411
|
+
PrevTrigger: PrevTrigger$1,
|
|
2412
|
+
Item: Item$6,
|
|
2412
2413
|
Ellipsis,
|
|
2413
|
-
NextTrigger,
|
|
2414
|
+
NextTrigger: NextTrigger$1,
|
|
2414
2415
|
LastTrigger
|
|
2415
2416
|
});
|
|
2416
2417
|
|
|
2417
2418
|
//#endregion
|
|
2418
2419
|
//#region src/components/popover/modules/root-context.ts
|
|
2419
|
-
const RootContext$
|
|
2420
|
+
const RootContext$25 = createContext$1();
|
|
2420
2421
|
|
|
2421
2422
|
//#endregion
|
|
2422
2423
|
//#region src/components/popover/anatomy/anchor.tsx
|
|
2423
2424
|
function Anchor(props) {
|
|
2424
|
-
const popover = use(RootContext$
|
|
2425
|
+
const popover = use(RootContext$25);
|
|
2425
2426
|
const { element, children, ...rest } = props;
|
|
2426
2427
|
const attributes = mergeProps(popover.getAnchorProps(), { className: classes.popover.anchor }, rest);
|
|
2427
2428
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -2433,7 +2434,7 @@ function Anchor(props) {
|
|
|
2433
2434
|
//#endregion
|
|
2434
2435
|
//#region src/components/popover/anatomy/arrow-tip.tsx
|
|
2435
2436
|
function ArrowTip$1(props) {
|
|
2436
|
-
const popover = use(RootContext$
|
|
2437
|
+
const popover = use(RootContext$25);
|
|
2437
2438
|
const { element, children, ...rest } = props;
|
|
2438
2439
|
const attributes = mergeProps(popover.getArrowTipProps(), { className: classes.popover.arrowTip }, rest);
|
|
2439
2440
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -2445,7 +2446,7 @@ function ArrowTip$1(props) {
|
|
|
2445
2446
|
//#endregion
|
|
2446
2447
|
//#region src/components/popover/anatomy/arrow.tsx
|
|
2447
2448
|
function Arrow$1(props) {
|
|
2448
|
-
const popover = use(RootContext$
|
|
2449
|
+
const popover = use(RootContext$25);
|
|
2449
2450
|
const { element, children, ...rest } = props;
|
|
2450
2451
|
const attributes = mergeProps(popover.getArrowProps(), { className: classes.popover.arrow }, rest);
|
|
2451
2452
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -2457,7 +2458,7 @@ function Arrow$1(props) {
|
|
|
2457
2458
|
//#endregion
|
|
2458
2459
|
//#region src/components/popover/anatomy/close-trigger.tsx
|
|
2459
2460
|
function CloseTrigger$1(props) {
|
|
2460
|
-
const popover = use(RootContext$
|
|
2461
|
+
const popover = use(RootContext$25);
|
|
2461
2462
|
const { element, children, ...rest } = props;
|
|
2462
2463
|
const attributes = mergeProps(popover.getCloseTriggerProps(), { className: classes.popover.closeTrigger }, rest);
|
|
2463
2464
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -2468,8 +2469,8 @@ function CloseTrigger$1(props) {
|
|
|
2468
2469
|
|
|
2469
2470
|
//#endregion
|
|
2470
2471
|
//#region src/components/popover/anatomy/content.tsx
|
|
2471
|
-
function Content$
|
|
2472
|
-
const popover = use(RootContext$
|
|
2472
|
+
function Content$3(props) {
|
|
2473
|
+
const popover = use(RootContext$25);
|
|
2473
2474
|
const { element, children, ...rest } = props;
|
|
2474
2475
|
const attributes = mergeProps(popover.getContentProps(), { className: classes.popover.content }, rest);
|
|
2475
2476
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -2481,7 +2482,7 @@ function Content$2(props) {
|
|
|
2481
2482
|
//#endregion
|
|
2482
2483
|
//#region src/components/popover/anatomy/description.tsx
|
|
2483
2484
|
function Description$1(props) {
|
|
2484
|
-
const popover = use(RootContext$
|
|
2485
|
+
const popover = use(RootContext$25);
|
|
2485
2486
|
const { element, children, ...rest } = props;
|
|
2486
2487
|
const attributes = mergeProps(popover.getDescriptionProps(), { className: classes.popover.description }, rest);
|
|
2487
2488
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -2493,7 +2494,7 @@ function Description$1(props) {
|
|
|
2493
2494
|
//#endregion
|
|
2494
2495
|
//#region src/components/popover/anatomy/positioner.tsx
|
|
2495
2496
|
function Positioner$1(props) {
|
|
2496
|
-
const popover = use(RootContext$
|
|
2497
|
+
const popover = use(RootContext$25);
|
|
2497
2498
|
const { element, children, ...rest } = props;
|
|
2498
2499
|
const attributes = mergeProps(popover.getPositionerProps(), { className: classes.popover.positioner }, rest);
|
|
2499
2500
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -2504,17 +2505,17 @@ function Positioner$1(props) {
|
|
|
2504
2505
|
|
|
2505
2506
|
//#endregion
|
|
2506
2507
|
//#region src/components/popover/anatomy/root-context.tsx
|
|
2507
|
-
function RootContext$
|
|
2508
|
-
const popover = use(RootContext$
|
|
2508
|
+
function RootContext$24(props) {
|
|
2509
|
+
const popover = use(RootContext$25);
|
|
2509
2510
|
const { children } = props;
|
|
2510
2511
|
return children(popover);
|
|
2511
2512
|
}
|
|
2512
2513
|
|
|
2513
2514
|
//#endregion
|
|
2514
2515
|
//#region src/components/popover/anatomy/root-provider.tsx
|
|
2515
|
-
function RootProvider$
|
|
2516
|
+
function RootProvider$9(props) {
|
|
2516
2517
|
const { children, value: popover } = props;
|
|
2517
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
2518
|
+
return /* @__PURE__ */ jsx(RootContext$25.Provider, {
|
|
2518
2519
|
value: popover,
|
|
2519
2520
|
children
|
|
2520
2521
|
});
|
|
@@ -2535,7 +2536,7 @@ function Root$10(props) {
|
|
|
2535
2536
|
const [popoverProps, componentProps] = splitProps$11(props);
|
|
2536
2537
|
const { children } = componentProps;
|
|
2537
2538
|
const popover = usePopover(popoverProps);
|
|
2538
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
2539
|
+
return /* @__PURE__ */ jsx(RootContext$25.Provider, {
|
|
2539
2540
|
value: popover,
|
|
2540
2541
|
children
|
|
2541
2542
|
});
|
|
@@ -2544,7 +2545,7 @@ function Root$10(props) {
|
|
|
2544
2545
|
//#endregion
|
|
2545
2546
|
//#region src/components/popover/anatomy/title.tsx
|
|
2546
2547
|
function Title$1(props) {
|
|
2547
|
-
const popover = use(RootContext$
|
|
2548
|
+
const popover = use(RootContext$25);
|
|
2548
2549
|
const { element, children, ...rest } = props;
|
|
2549
2550
|
const attributes = mergeProps(popover.getTitleProps(), { className: classes.popover.title }, rest);
|
|
2550
2551
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -2555,8 +2556,8 @@ function Title$1(props) {
|
|
|
2555
2556
|
|
|
2556
2557
|
//#endregion
|
|
2557
2558
|
//#region src/components/popover/anatomy/trigger.tsx
|
|
2558
|
-
function Trigger$
|
|
2559
|
-
const popover = use(RootContext$
|
|
2559
|
+
function Trigger$3(props) {
|
|
2560
|
+
const popover = use(RootContext$25);
|
|
2560
2561
|
const { element, children, ...rest } = props;
|
|
2561
2562
|
const attributes = mergeProps(popover.getTriggerProps(), { className: classes.popover.trigger }, rest);
|
|
2562
2563
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -2568,12 +2569,12 @@ function Trigger$2(props) {
|
|
|
2568
2569
|
//#endregion
|
|
2569
2570
|
//#region src/components/popover/modules/anatomy.ts
|
|
2570
2571
|
const Popover = Object.assign(Root$10, {
|
|
2571
|
-
Provider: RootProvider$
|
|
2572
|
-
Context: RootContext$
|
|
2572
|
+
Provider: RootProvider$9,
|
|
2573
|
+
Context: RootContext$24,
|
|
2573
2574
|
Anchor,
|
|
2574
|
-
Trigger: Trigger$
|
|
2575
|
+
Trigger: Trigger$3,
|
|
2575
2576
|
Positioner: Positioner$1,
|
|
2576
|
-
Content: Content$
|
|
2577
|
+
Content: Content$3,
|
|
2577
2578
|
Arrow: Arrow$1,
|
|
2578
2579
|
ArrowTip: ArrowTip$1,
|
|
2579
2580
|
Title: Title$1,
|
|
@@ -2595,12 +2596,12 @@ const Portal = Root$9;
|
|
|
2595
2596
|
|
|
2596
2597
|
//#endregion
|
|
2597
2598
|
//#region src/components/progress/modules/root-context.ts
|
|
2598
|
-
const RootContext$
|
|
2599
|
+
const RootContext$23 = createContext$1();
|
|
2599
2600
|
|
|
2600
2601
|
//#endregion
|
|
2601
2602
|
//#region src/components/progress/anatomy/circle-range.tsx
|
|
2602
2603
|
function CircleRange(props) {
|
|
2603
|
-
const progress = use(RootContext$
|
|
2604
|
+
const progress = use(RootContext$23);
|
|
2604
2605
|
const { element, ...rest } = props;
|
|
2605
2606
|
const attributes = mergeProps(progress.getCircleRangeProps(), {
|
|
2606
2607
|
className: classes.progress.circleRange,
|
|
@@ -2612,7 +2613,7 @@ function CircleRange(props) {
|
|
|
2612
2613
|
//#endregion
|
|
2613
2614
|
//#region src/components/progress/anatomy/circle-track.tsx
|
|
2614
2615
|
function CircleTrack(props) {
|
|
2615
|
-
const progress = use(RootContext$
|
|
2616
|
+
const progress = use(RootContext$23);
|
|
2616
2617
|
const { element, ...rest } = props;
|
|
2617
2618
|
const attributes = mergeProps(progress.getCircleTrackProps(), { className: classes.progress.circleTrack }, rest);
|
|
2618
2619
|
return element ? element(attributes) : /* @__PURE__ */ jsx("circle", { ...attributes });
|
|
@@ -2621,7 +2622,7 @@ function CircleTrack(props) {
|
|
|
2621
2622
|
//#endregion
|
|
2622
2623
|
//#region src/components/progress/anatomy/circle.tsx
|
|
2623
2624
|
function Circle(props) {
|
|
2624
|
-
const progress = use(RootContext$
|
|
2625
|
+
const progress = use(RootContext$23);
|
|
2625
2626
|
const { element, children, ...rest } = props;
|
|
2626
2627
|
const attributes = mergeProps(progress.getCircleProps(), { className: classes.progress.circle }, rest);
|
|
2627
2628
|
return element ? element(attributes) : /* @__PURE__ */ jsx("svg", {
|
|
@@ -2633,7 +2634,7 @@ function Circle(props) {
|
|
|
2633
2634
|
//#endregion
|
|
2634
2635
|
//#region src/components/progress/anatomy/label.tsx
|
|
2635
2636
|
function Label$6(props) {
|
|
2636
|
-
const progress = use(RootContext$
|
|
2637
|
+
const progress = use(RootContext$23);
|
|
2637
2638
|
const { element, children, ...rest } = props;
|
|
2638
2639
|
const attributes = mergeProps(progress.getLabelProps(), { className: classes.progress.label }, rest);
|
|
2639
2640
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -2645,7 +2646,7 @@ function Label$6(props) {
|
|
|
2645
2646
|
//#endregion
|
|
2646
2647
|
//#region src/components/progress/anatomy/range.tsx
|
|
2647
2648
|
function Range$1(props) {
|
|
2648
|
-
const progress = use(RootContext$
|
|
2649
|
+
const progress = use(RootContext$23);
|
|
2649
2650
|
const { element, ...rest } = props;
|
|
2650
2651
|
const attributes = mergeProps(progress.getRangeProps(), { className: classes.progress.range }, rest);
|
|
2651
2652
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
|
|
@@ -2653,18 +2654,18 @@ function Range$1(props) {
|
|
|
2653
2654
|
|
|
2654
2655
|
//#endregion
|
|
2655
2656
|
//#region src/components/progress/anatomy/root-context.tsx
|
|
2656
|
-
function RootContext$
|
|
2657
|
-
const progress = use(RootContext$
|
|
2657
|
+
function RootContext$22(props) {
|
|
2658
|
+
const progress = use(RootContext$23);
|
|
2658
2659
|
const { children } = props;
|
|
2659
2660
|
return children(progress);
|
|
2660
2661
|
}
|
|
2661
2662
|
|
|
2662
2663
|
//#endregion
|
|
2663
2664
|
//#region src/components/progress/anatomy/root-provider.tsx
|
|
2664
|
-
function RootProvider$
|
|
2665
|
+
function RootProvider$8(props) {
|
|
2665
2666
|
const { element, children, value: progress, ...rest } = props;
|
|
2666
2667
|
const attributes = mergeProps(progress.getRootProps(), { className: classes.progress.root }, rest);
|
|
2667
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
2668
|
+
return /* @__PURE__ */ jsx(RootContext$23.Provider, {
|
|
2668
2669
|
value: progress,
|
|
2669
2670
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2670
2671
|
...attributes,
|
|
@@ -2689,7 +2690,7 @@ function Root$8(props) {
|
|
|
2689
2690
|
const { element, children, ...rest } = componentProps;
|
|
2690
2691
|
const progress = useProgress(progressProps);
|
|
2691
2692
|
const attributes = mergeProps(progress.getRootProps(), { className: classes.progress.root }, rest);
|
|
2692
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
2693
|
+
return /* @__PURE__ */ jsx(RootContext$23.Provider, {
|
|
2693
2694
|
value: progress,
|
|
2694
2695
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2695
2696
|
...attributes,
|
|
@@ -2701,7 +2702,7 @@ function Root$8(props) {
|
|
|
2701
2702
|
//#endregion
|
|
2702
2703
|
//#region src/components/progress/anatomy/track.tsx
|
|
2703
2704
|
function Track$1(props) {
|
|
2704
|
-
const progress = use(RootContext$
|
|
2705
|
+
const progress = use(RootContext$23);
|
|
2705
2706
|
const { element, children, ...rest } = props;
|
|
2706
2707
|
const attributes = mergeProps(progress.getTrackProps(), { className: classes.progress.track }, rest);
|
|
2707
2708
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -2713,7 +2714,7 @@ function Track$1(props) {
|
|
|
2713
2714
|
//#endregion
|
|
2714
2715
|
//#region src/components/progress/anatomy/value-text.tsx
|
|
2715
2716
|
function ValueText$1(props) {
|
|
2716
|
-
const progress = use(RootContext$
|
|
2717
|
+
const progress = use(RootContext$23);
|
|
2717
2718
|
const { element, children, ...rest } = props;
|
|
2718
2719
|
const attributes = mergeProps(progress.getValueTextProps(), { className: classes.progress.valueText }, rest);
|
|
2719
2720
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
@@ -2725,8 +2726,8 @@ function ValueText$1(props) {
|
|
|
2725
2726
|
//#endregion
|
|
2726
2727
|
//#region src/components/progress/modules/anatomy.ts
|
|
2727
2728
|
const Progress = Object.assign(Root$8, {
|
|
2728
|
-
Provider: RootProvider$
|
|
2729
|
-
Context: RootContext$
|
|
2729
|
+
Provider: RootProvider$8,
|
|
2730
|
+
Context: RootContext$22,
|
|
2730
2731
|
Label: Label$6,
|
|
2731
2732
|
ValueText: ValueText$1,
|
|
2732
2733
|
Track: Track$1,
|
|
@@ -2738,12 +2739,12 @@ const Progress = Object.assign(Root$8, {
|
|
|
2738
2739
|
|
|
2739
2740
|
//#endregion
|
|
2740
2741
|
//#region src/components/rating-group/modules/root-context.ts
|
|
2741
|
-
const RootContext$
|
|
2742
|
+
const RootContext$21 = createContext$1();
|
|
2742
2743
|
|
|
2743
2744
|
//#endregion
|
|
2744
2745
|
//#region src/components/rating-group/anatomy/control.tsx
|
|
2745
2746
|
function Control$4(props) {
|
|
2746
|
-
const ratingGroup = use(RootContext$
|
|
2747
|
+
const ratingGroup = use(RootContext$21);
|
|
2747
2748
|
const { element, children, ...rest } = props;
|
|
2748
2749
|
const attributes = mergeProps(ratingGroup.getControlProps(), { className: classes.ratingGroup.control }, rest);
|
|
2749
2750
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -2755,7 +2756,7 @@ function Control$4(props) {
|
|
|
2755
2756
|
//#endregion
|
|
2756
2757
|
//#region src/components/rating-group/anatomy/hidden-input.tsx
|
|
2757
2758
|
function HiddenInput$3(props) {
|
|
2758
|
-
const ratingGroup = use(RootContext$
|
|
2759
|
+
const ratingGroup = use(RootContext$21);
|
|
2759
2760
|
const { element, ...rest } = props;
|
|
2760
2761
|
const attributes = mergeProps(ratingGroup.getHiddenInputProps(), { className: classes.ratingGroup.hiddenInput }, rest);
|
|
2761
2762
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
@@ -2841,8 +2842,8 @@ function StarHalf(props) {
|
|
|
2841
2842
|
|
|
2842
2843
|
//#endregion
|
|
2843
2844
|
//#region src/components/rating-group/anatomy/item.tsx
|
|
2844
|
-
function Item$
|
|
2845
|
-
const ratingGroup = use(RootContext$
|
|
2845
|
+
function Item$5(props) {
|
|
2846
|
+
const ratingGroup = use(RootContext$21);
|
|
2846
2847
|
const [itemProps, componentProps] = splitItemProps$6(props);
|
|
2847
2848
|
const { element, children, empty = /* @__PURE__ */ jsx(StarEmpty, {}), half = /* @__PURE__ */ jsx(StarHalf, {}), full = /* @__PURE__ */ jsx(StarFull, {}), ...rest } = componentProps;
|
|
2848
2849
|
const itemState = ratingGroup.getItemState(itemProps);
|
|
@@ -2856,7 +2857,7 @@ function Item$4(props) {
|
|
|
2856
2857
|
//#endregion
|
|
2857
2858
|
//#region src/components/rating-group/anatomy/label.tsx
|
|
2858
2859
|
function Label$5(props) {
|
|
2859
|
-
const ratingGroup = use(RootContext$
|
|
2860
|
+
const ratingGroup = use(RootContext$21);
|
|
2860
2861
|
const { element, children, ...rest } = props;
|
|
2861
2862
|
const attributes = mergeProps(ratingGroup.getLabelProps(), { className: classes.ratingGroup.label }, rest);
|
|
2862
2863
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
@@ -2867,18 +2868,18 @@ function Label$5(props) {
|
|
|
2867
2868
|
|
|
2868
2869
|
//#endregion
|
|
2869
2870
|
//#region src/components/rating-group/anatomy/root-context.tsx
|
|
2870
|
-
function RootContext$
|
|
2871
|
-
const ratingGroup = use(RootContext$
|
|
2871
|
+
function RootContext$20(props) {
|
|
2872
|
+
const ratingGroup = use(RootContext$21);
|
|
2872
2873
|
const { children } = props;
|
|
2873
2874
|
return children(ratingGroup);
|
|
2874
2875
|
}
|
|
2875
2876
|
|
|
2876
2877
|
//#endregion
|
|
2877
2878
|
//#region src/components/rating-group/anatomy/root-provider.tsx
|
|
2878
|
-
function RootProvider$
|
|
2879
|
+
function RootProvider$7(props) {
|
|
2879
2880
|
const { element, children, value: ratingGroup, ...rest } = props;
|
|
2880
2881
|
const attributes = mergeProps(ratingGroup.getRootProps(), { className: classes.ratingGroup.root }, rest);
|
|
2881
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
2882
|
+
return /* @__PURE__ */ jsx(RootContext$21.Provider, {
|
|
2882
2883
|
value: ratingGroup,
|
|
2883
2884
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2884
2885
|
...attributes,
|
|
@@ -2903,7 +2904,7 @@ function Root$7(props) {
|
|
|
2903
2904
|
const { element, children, ...rest } = componentProps;
|
|
2904
2905
|
const ratingGroup = useRatingGroup(ratingGroupProps);
|
|
2905
2906
|
const attributes = mergeProps(ratingGroup.getRootProps(), { className: classes.ratingGroup.root }, rest);
|
|
2906
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
2907
|
+
return /* @__PURE__ */ jsx(RootContext$21.Provider, {
|
|
2907
2908
|
value: ratingGroup,
|
|
2908
2909
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2909
2910
|
...attributes,
|
|
@@ -2915,11 +2916,11 @@ function Root$7(props) {
|
|
|
2915
2916
|
//#endregion
|
|
2916
2917
|
//#region src/components/rating-group/modules/anatomy.ts
|
|
2917
2918
|
const RatingGroup = Object.assign(Root$7, {
|
|
2918
|
-
Provider: RootProvider$
|
|
2919
|
-
Context: RootContext$
|
|
2919
|
+
Provider: RootProvider$7,
|
|
2920
|
+
Context: RootContext$20,
|
|
2920
2921
|
Label: Label$5,
|
|
2921
2922
|
Control: Control$4,
|
|
2922
|
-
Item: Item$
|
|
2923
|
+
Item: Item$5,
|
|
2923
2924
|
HiddenInput: HiddenInput$3
|
|
2924
2925
|
});
|
|
2925
2926
|
|
|
@@ -2936,12 +2937,12 @@ function Control$3(props) {
|
|
|
2936
2937
|
|
|
2937
2938
|
//#endregion
|
|
2938
2939
|
//#region src/components/segmented-control/modules/root-context.ts
|
|
2939
|
-
const RootContext$
|
|
2940
|
+
const RootContext$19 = createContext$1();
|
|
2940
2941
|
|
|
2941
2942
|
//#endregion
|
|
2942
2943
|
//#region src/components/segmented-control/anatomy/indicator.tsx
|
|
2943
|
-
function Indicator$
|
|
2944
|
-
const segmentedControl = use(RootContext$
|
|
2944
|
+
function Indicator$2(props) {
|
|
2945
|
+
const segmentedControl = use(RootContext$19);
|
|
2945
2946
|
const { element, ...rest } = props;
|
|
2946
2947
|
const attributes = mergeProps(segmentedControl.getIndicatorProps(), { className: classes.segmentedControl.indicator }, rest);
|
|
2947
2948
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
|
|
@@ -2949,13 +2950,13 @@ function Indicator$1(props) {
|
|
|
2949
2950
|
|
|
2950
2951
|
//#endregion
|
|
2951
2952
|
//#region src/components/segmented-control/modules/item-context.ts
|
|
2952
|
-
const ItemContext$
|
|
2953
|
+
const ItemContext$2 = createContext$1();
|
|
2953
2954
|
|
|
2954
2955
|
//#endregion
|
|
2955
2956
|
//#region src/components/segmented-control/anatomy/item-hidden-input.tsx
|
|
2956
2957
|
function ItemHiddenInput(props) {
|
|
2957
|
-
const segmentedControl = use(RootContext$
|
|
2958
|
-
const itemProps = use(ItemContext$
|
|
2958
|
+
const segmentedControl = use(RootContext$19);
|
|
2959
|
+
const itemProps = use(ItemContext$2);
|
|
2959
2960
|
const { element, ...rest } = props;
|
|
2960
2961
|
const attributes = mergeProps(segmentedControl.getItemHiddenInputProps(itemProps), { className: classes.segmentedControl.itemHiddenInput }, rest);
|
|
2961
2962
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
@@ -2964,8 +2965,8 @@ function ItemHiddenInput(props) {
|
|
|
2964
2965
|
//#endregion
|
|
2965
2966
|
//#region src/components/segmented-control/anatomy/item-text.tsx
|
|
2966
2967
|
function ItemText$1(props) {
|
|
2967
|
-
const segmentedControl = use(RootContext$
|
|
2968
|
-
const itemProps = use(ItemContext$
|
|
2968
|
+
const segmentedControl = use(RootContext$19);
|
|
2969
|
+
const itemProps = use(ItemContext$2);
|
|
2969
2970
|
const { element, children, ...rest } = props;
|
|
2970
2971
|
const attributes = mergeProps(segmentedControl.getItemTextProps(itemProps), { className: classes.segmentedControl.itemText }, rest);
|
|
2971
2972
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
@@ -2976,12 +2977,12 @@ function ItemText$1(props) {
|
|
|
2976
2977
|
|
|
2977
2978
|
//#endregion
|
|
2978
2979
|
//#region src/components/segmented-control/anatomy/item.tsx
|
|
2979
|
-
function Item$
|
|
2980
|
-
const segmentedControl = use(RootContext$
|
|
2980
|
+
function Item$4(props) {
|
|
2981
|
+
const segmentedControl = use(RootContext$19);
|
|
2981
2982
|
const [itemProps, componentProps] = splitItemProps$7(props);
|
|
2982
2983
|
const { element, children, ...rest } = componentProps;
|
|
2983
2984
|
const attributes = mergeProps(segmentedControl.getItemProps(itemProps), { className: classes.segmentedControl.item }, rest);
|
|
2984
|
-
return /* @__PURE__ */ jsx(ItemContext$
|
|
2985
|
+
return /* @__PURE__ */ jsx(ItemContext$2.Provider, {
|
|
2985
2986
|
value: itemProps,
|
|
2986
2987
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
2987
2988
|
...attributes,
|
|
@@ -2993,7 +2994,7 @@ function Item$3(props) {
|
|
|
2993
2994
|
//#endregion
|
|
2994
2995
|
//#region src/components/segmented-control/anatomy/label.tsx
|
|
2995
2996
|
function Label$4(props) {
|
|
2996
|
-
const segmentedControl = use(RootContext$
|
|
2997
|
+
const segmentedControl = use(RootContext$19);
|
|
2997
2998
|
const { element, children, ...rest } = props;
|
|
2998
2999
|
const attributes = mergeProps(segmentedControl.getLabelProps(), { className: classes.segmentedControl.label }, rest);
|
|
2999
3000
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
@@ -3004,18 +3005,18 @@ function Label$4(props) {
|
|
|
3004
3005
|
|
|
3005
3006
|
//#endregion
|
|
3006
3007
|
//#region src/components/segmented-control/anatomy/root-context.tsx
|
|
3007
|
-
function RootContext$
|
|
3008
|
-
const segmentedControl = use(RootContext$
|
|
3008
|
+
function RootContext$18(props) {
|
|
3009
|
+
const segmentedControl = use(RootContext$19);
|
|
3009
3010
|
const { children } = props;
|
|
3010
3011
|
return children(segmentedControl);
|
|
3011
3012
|
}
|
|
3012
3013
|
|
|
3013
3014
|
//#endregion
|
|
3014
3015
|
//#region src/components/segmented-control/anatomy/root-provider.tsx
|
|
3015
|
-
function RootProvider$
|
|
3016
|
+
function RootProvider$6(props) {
|
|
3016
3017
|
const { element, children, value: segmentedControl, ...rest } = props;
|
|
3017
3018
|
const attributes = mergeProps(segmentedControl.getRootProps(), { className: classes.segmentedControl.root }, rest);
|
|
3018
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
3019
|
+
return /* @__PURE__ */ jsx(RootContext$19.Provider, {
|
|
3019
3020
|
value: segmentedControl,
|
|
3020
3021
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3021
3022
|
...attributes,
|
|
@@ -3041,7 +3042,7 @@ function Root$6(props) {
|
|
|
3041
3042
|
const { element, children, ...rest } = componentProps;
|
|
3042
3043
|
const segmentedControl = useSegmentedControl(segmentedControlProps);
|
|
3043
3044
|
const attributes = mergeProps(segmentedControl.getRootProps(), { className: classes.segmentedControl.root }, rest);
|
|
3044
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
3045
|
+
return /* @__PURE__ */ jsx(RootContext$19.Provider, {
|
|
3045
3046
|
value: segmentedControl,
|
|
3046
3047
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3047
3048
|
...attributes,
|
|
@@ -3053,24 +3054,24 @@ function Root$6(props) {
|
|
|
3053
3054
|
//#endregion
|
|
3054
3055
|
//#region src/components/segmented-control/modules/anatomy.ts
|
|
3055
3056
|
const SegmentedControl = Object.assign(Root$6, {
|
|
3056
|
-
Provider: RootProvider$
|
|
3057
|
-
Context: RootContext$
|
|
3057
|
+
Provider: RootProvider$6,
|
|
3058
|
+
Context: RootContext$18,
|
|
3058
3059
|
Label: Label$4,
|
|
3059
3060
|
Control: Control$3,
|
|
3060
|
-
Indicator: Indicator$
|
|
3061
|
-
Item: Item$
|
|
3061
|
+
Indicator: Indicator$2,
|
|
3062
|
+
Item: Item$4,
|
|
3062
3063
|
ItemText: ItemText$1,
|
|
3063
3064
|
ItemHiddenInput
|
|
3064
3065
|
});
|
|
3065
3066
|
|
|
3066
3067
|
//#endregion
|
|
3067
3068
|
//#region src/components/slider/modules/root-context.ts
|
|
3068
|
-
const RootContext$
|
|
3069
|
+
const RootContext$17 = createContext$1();
|
|
3069
3070
|
|
|
3070
3071
|
//#endregion
|
|
3071
3072
|
//#region src/components/slider/anatomy/control.tsx
|
|
3072
3073
|
function Control$2(props) {
|
|
3073
|
-
const slider = use(RootContext$
|
|
3074
|
+
const slider = use(RootContext$17);
|
|
3074
3075
|
const { element, children, ...rest } = props;
|
|
3075
3076
|
const attributes = mergeProps(slider.getControlProps(), { className: classes.slider.control }, rest);
|
|
3076
3077
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3086,7 +3087,7 @@ const ThumbContext = createContext$1();
|
|
|
3086
3087
|
//#endregion
|
|
3087
3088
|
//#region src/components/slider/anatomy/hidden-input.tsx
|
|
3088
3089
|
function HiddenInput$2(props) {
|
|
3089
|
-
const slider = use(RootContext$
|
|
3090
|
+
const slider = use(RootContext$17);
|
|
3090
3091
|
const thumbProps = use(ThumbContext);
|
|
3091
3092
|
const { element, ...rest } = props;
|
|
3092
3093
|
const attributes = mergeProps(slider.getHiddenInputProps(thumbProps), { className: classes.slider.hiddenInput }, rest);
|
|
@@ -3096,7 +3097,7 @@ function HiddenInput$2(props) {
|
|
|
3096
3097
|
//#endregion
|
|
3097
3098
|
//#region src/components/slider/anatomy/label.tsx
|
|
3098
3099
|
function Label$3(props) {
|
|
3099
|
-
const slider = use(RootContext$
|
|
3100
|
+
const slider = use(RootContext$17);
|
|
3100
3101
|
const { element, children, ...rest } = props;
|
|
3101
3102
|
const attributes = mergeProps(slider.getLabelProps(), { className: classes.slider.label }, rest);
|
|
3102
3103
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
@@ -3108,7 +3109,7 @@ function Label$3(props) {
|
|
|
3108
3109
|
//#endregion
|
|
3109
3110
|
//#region src/components/slider/anatomy/marker-group.tsx
|
|
3110
3111
|
function MarkerGroup(props) {
|
|
3111
|
-
const slider = use(RootContext$
|
|
3112
|
+
const slider = use(RootContext$17);
|
|
3112
3113
|
const { element, children, ...rest } = props;
|
|
3113
3114
|
const attributes = mergeProps(slider.getMarkerGroupProps(), { className: classes.slider.markerGroup }, rest);
|
|
3114
3115
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3120,7 +3121,7 @@ function MarkerGroup(props) {
|
|
|
3120
3121
|
//#endregion
|
|
3121
3122
|
//#region src/components/slider/anatomy/marker.tsx
|
|
3122
3123
|
function Marker(props) {
|
|
3123
|
-
const slider = use(RootContext$
|
|
3124
|
+
const slider = use(RootContext$17);
|
|
3124
3125
|
const { element, children, value, ...rest } = props;
|
|
3125
3126
|
const attributes = mergeProps(slider.getMarkerProps({ value }), { className: classes.slider.marker }, rest);
|
|
3126
3127
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3132,7 +3133,7 @@ function Marker(props) {
|
|
|
3132
3133
|
//#endregion
|
|
3133
3134
|
//#region src/components/slider/anatomy/range.tsx
|
|
3134
3135
|
function Range(props) {
|
|
3135
|
-
const slider = use(RootContext$
|
|
3136
|
+
const slider = use(RootContext$17);
|
|
3136
3137
|
const { element, children, ...rest } = props;
|
|
3137
3138
|
const attributes = mergeProps(slider.getRangeProps(), { className: classes.slider.range }, rest);
|
|
3138
3139
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3143,8 +3144,8 @@ function Range(props) {
|
|
|
3143
3144
|
|
|
3144
3145
|
//#endregion
|
|
3145
3146
|
//#region src/components/slider/anatomy/root-context.tsx
|
|
3146
|
-
function RootContext$
|
|
3147
|
-
const slider = use(RootContext$
|
|
3147
|
+
function RootContext$16(props) {
|
|
3148
|
+
const slider = use(RootContext$17);
|
|
3148
3149
|
const { children } = props;
|
|
3149
3150
|
return children(slider);
|
|
3150
3151
|
}
|
|
@@ -3154,7 +3155,7 @@ function RootContext$14(props) {
|
|
|
3154
3155
|
function SliderRootProvider(props) {
|
|
3155
3156
|
const { element, children, value: slider, ...rest } = props;
|
|
3156
3157
|
const attributes = mergeProps(slider.getRootProps(), { className: classes.slider.root }, rest);
|
|
3157
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
3158
|
+
return /* @__PURE__ */ jsx(RootContext$17.Provider, {
|
|
3158
3159
|
value: slider,
|
|
3159
3160
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3160
3161
|
...attributes,
|
|
@@ -3174,12 +3175,12 @@ function useSlider(props = {}) {
|
|
|
3174
3175
|
|
|
3175
3176
|
//#endregion
|
|
3176
3177
|
//#region src/components/slider/anatomy/root.tsx
|
|
3177
|
-
function SliderRoot(props) {
|
|
3178
|
+
function SliderRoot$1(props) {
|
|
3178
3179
|
const [sliderProps, componentProps] = splitProps$15(props);
|
|
3179
3180
|
const { element, children, ...rest } = componentProps;
|
|
3180
3181
|
const slider = useSlider(sliderProps);
|
|
3181
3182
|
const attributes = mergeProps(slider.getRootProps(), { className: classes.slider.root }, rest);
|
|
3182
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
3183
|
+
return /* @__PURE__ */ jsx(RootContext$17.Provider, {
|
|
3183
3184
|
value: slider,
|
|
3184
3185
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3185
3186
|
...attributes,
|
|
@@ -3191,7 +3192,7 @@ function SliderRoot(props) {
|
|
|
3191
3192
|
//#endregion
|
|
3192
3193
|
//#region src/components/slider/anatomy/thumb.tsx
|
|
3193
3194
|
function Thumb$1(props) {
|
|
3194
|
-
const slider = use(RootContext$
|
|
3195
|
+
const slider = use(RootContext$17);
|
|
3195
3196
|
const [thumbProps, componentProps] = splitThumbProps(props);
|
|
3196
3197
|
const { element, children, ...rest } = componentProps;
|
|
3197
3198
|
const attributes = mergeProps(slider.getThumbProps(thumbProps), { className: classes.slider.thumb }, rest);
|
|
@@ -3207,7 +3208,7 @@ function Thumb$1(props) {
|
|
|
3207
3208
|
//#endregion
|
|
3208
3209
|
//#region src/components/slider/anatomy/track.tsx
|
|
3209
3210
|
function Track(props) {
|
|
3210
|
-
const slider = use(RootContext$
|
|
3211
|
+
const slider = use(RootContext$17);
|
|
3211
3212
|
const { element, children, ...rest } = props;
|
|
3212
3213
|
const attributes = mergeProps(slider.getTrackProps(), { className: classes.slider.track }, rest);
|
|
3213
3214
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3219,7 +3220,7 @@ function Track(props) {
|
|
|
3219
3220
|
//#endregion
|
|
3220
3221
|
//#region src/components/slider/anatomy/value-text.tsx
|
|
3221
3222
|
function ValueText(props) {
|
|
3222
|
-
const slider = use(RootContext$
|
|
3223
|
+
const slider = use(RootContext$17);
|
|
3223
3224
|
const { element, children, ...rest } = props;
|
|
3224
3225
|
const attributes = mergeProps(slider.getValueTextProps(), { className: classes.slider.valueText }, rest);
|
|
3225
3226
|
return element ? element(attributes) : /* @__PURE__ */ jsx("output", {
|
|
@@ -3230,9 +3231,9 @@ function ValueText(props) {
|
|
|
3230
3231
|
|
|
3231
3232
|
//#endregion
|
|
3232
3233
|
//#region src/components/slider/modules/anatomy.ts
|
|
3233
|
-
const Slider = Object.assign(SliderRoot, {
|
|
3234
|
+
const Slider = Object.assign(SliderRoot$1, {
|
|
3234
3235
|
Provider: SliderRootProvider,
|
|
3235
|
-
Context: RootContext$
|
|
3236
|
+
Context: RootContext$16,
|
|
3236
3237
|
Label: Label$3,
|
|
3237
3238
|
ValueText,
|
|
3238
3239
|
Control: Control$2,
|
|
@@ -3244,6 +3245,179 @@ const Slider = Object.assign(SliderRoot, {
|
|
|
3244
3245
|
Marker
|
|
3245
3246
|
});
|
|
3246
3247
|
|
|
3248
|
+
//#endregion
|
|
3249
|
+
//#region src/components/steps/modules/root-context.ts
|
|
3250
|
+
const RootContext$15 = createContext$1();
|
|
3251
|
+
|
|
3252
|
+
//#endregion
|
|
3253
|
+
//#region src/components/steps/anatomy/content.tsx
|
|
3254
|
+
function Content$2(props) {
|
|
3255
|
+
const steps = use(RootContext$15);
|
|
3256
|
+
const { element, children, index, ...rest } = props;
|
|
3257
|
+
const attributes = mergeProps(steps.getContentProps({ index }), { className: classes.steps.content }, rest);
|
|
3258
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3259
|
+
...attributes,
|
|
3260
|
+
children
|
|
3261
|
+
});
|
|
3262
|
+
}
|
|
3263
|
+
|
|
3264
|
+
//#endregion
|
|
3265
|
+
//#region src/components/steps/modules/item-context.ts
|
|
3266
|
+
const ItemContext$1 = createContext$1();
|
|
3267
|
+
|
|
3268
|
+
//#endregion
|
|
3269
|
+
//#region src/components/steps/anatomy/indicator.tsx
|
|
3270
|
+
function Indicator$1(props) {
|
|
3271
|
+
const steps = use(RootContext$15);
|
|
3272
|
+
const itemProps = use(ItemContext$1);
|
|
3273
|
+
const { element, children, ...rest } = props;
|
|
3274
|
+
const attributes = mergeProps(steps.getIndicatorProps(itemProps), { className: classes.steps.indicator }, rest);
|
|
3275
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3276
|
+
...attributes,
|
|
3277
|
+
children
|
|
3278
|
+
});
|
|
3279
|
+
}
|
|
3280
|
+
|
|
3281
|
+
//#endregion
|
|
3282
|
+
//#region src/components/steps/anatomy/item.tsx
|
|
3283
|
+
function Item$3(props) {
|
|
3284
|
+
const steps = use(RootContext$15);
|
|
3285
|
+
const { element, children, index, ...rest } = props;
|
|
3286
|
+
const itemProps = { index };
|
|
3287
|
+
const attributes = mergeProps(steps.getItemProps(itemProps), { className: classes.steps.item }, rest);
|
|
3288
|
+
return /* @__PURE__ */ jsx(ItemContext$1.Provider, {
|
|
3289
|
+
value: itemProps,
|
|
3290
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3291
|
+
...attributes,
|
|
3292
|
+
children
|
|
3293
|
+
})
|
|
3294
|
+
});
|
|
3295
|
+
}
|
|
3296
|
+
|
|
3297
|
+
//#endregion
|
|
3298
|
+
//#region src/components/steps/anatomy/list.tsx
|
|
3299
|
+
function List$1(props) {
|
|
3300
|
+
const steps = use(RootContext$15);
|
|
3301
|
+
const { element, children, ...rest } = props;
|
|
3302
|
+
const attributes = mergeProps(steps.getListProps(), { className: classes.steps.list }, rest);
|
|
3303
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3304
|
+
...attributes,
|
|
3305
|
+
children
|
|
3306
|
+
});
|
|
3307
|
+
}
|
|
3308
|
+
|
|
3309
|
+
//#endregion
|
|
3310
|
+
//#region src/components/steps/anatomy/next-trigger.tsx
|
|
3311
|
+
function NextTrigger(props) {
|
|
3312
|
+
const steps = use(RootContext$15);
|
|
3313
|
+
const { element, children, ...rest } = props;
|
|
3314
|
+
const attributes = mergeProps(steps.getNextTriggerProps(), { className: classes.steps.nextTrigger }, rest);
|
|
3315
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
3316
|
+
...attributes,
|
|
3317
|
+
children
|
|
3318
|
+
});
|
|
3319
|
+
}
|
|
3320
|
+
|
|
3321
|
+
//#endregion
|
|
3322
|
+
//#region src/components/steps/anatomy/prev-trigger.tsx
|
|
3323
|
+
function PrevTrigger(props) {
|
|
3324
|
+
const steps = use(RootContext$15);
|
|
3325
|
+
const { element, children, ...rest } = props;
|
|
3326
|
+
const attributes = mergeProps(steps.getPrevTriggerProps(), { className: classes.steps.prevTrigger }, rest);
|
|
3327
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
3328
|
+
...attributes,
|
|
3329
|
+
children
|
|
3330
|
+
});
|
|
3331
|
+
}
|
|
3332
|
+
|
|
3333
|
+
//#endregion
|
|
3334
|
+
//#region src/components/steps/anatomy/root-context.tsx
|
|
3335
|
+
function RootContext$14(props) {
|
|
3336
|
+
const steps = use(RootContext$15);
|
|
3337
|
+
const { children } = props;
|
|
3338
|
+
return children(steps);
|
|
3339
|
+
}
|
|
3340
|
+
|
|
3341
|
+
//#endregion
|
|
3342
|
+
//#region src/components/steps/anatomy/root-provider.tsx
|
|
3343
|
+
function RootProvider$5(props) {
|
|
3344
|
+
const { element, children, value: steps, ...rest } = props;
|
|
3345
|
+
const attributes = mergeProps(steps.getRootProps(), { className: classes.steps.root }, rest);
|
|
3346
|
+
return /* @__PURE__ */ jsx(RootContext$15.Provider, {
|
|
3347
|
+
value: steps,
|
|
3348
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3349
|
+
...attributes,
|
|
3350
|
+
children
|
|
3351
|
+
})
|
|
3352
|
+
});
|
|
3353
|
+
}
|
|
3354
|
+
|
|
3355
|
+
//#endregion
|
|
3356
|
+
//#region src/components/steps/modules/provider.ts
|
|
3357
|
+
function useSteps(props = {}) {
|
|
3358
|
+
return connect$16(useMachine(machine$16, {
|
|
3359
|
+
id: useId(),
|
|
3360
|
+
...props
|
|
3361
|
+
}), normalizeProps);
|
|
3362
|
+
}
|
|
3363
|
+
|
|
3364
|
+
//#endregion
|
|
3365
|
+
//#region src/components/steps/anatomy/root.tsx
|
|
3366
|
+
function SliderRoot(props) {
|
|
3367
|
+
const [stepsProps, componentProps] = splitProps$16(props);
|
|
3368
|
+
const { element, children, ...rest } = componentProps;
|
|
3369
|
+
const steps = useSteps(stepsProps);
|
|
3370
|
+
const attributes = mergeProps(steps.getRootProps(), { className: classes.steps.root }, rest);
|
|
3371
|
+
return /* @__PURE__ */ jsx(RootContext$15.Provider, {
|
|
3372
|
+
value: steps,
|
|
3373
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3374
|
+
...attributes,
|
|
3375
|
+
children
|
|
3376
|
+
})
|
|
3377
|
+
});
|
|
3378
|
+
}
|
|
3379
|
+
|
|
3380
|
+
//#endregion
|
|
3381
|
+
//#region src/components/steps/anatomy/separator.tsx
|
|
3382
|
+
function Separator(props) {
|
|
3383
|
+
const steps = use(RootContext$15);
|
|
3384
|
+
const itemProps = use(ItemContext$1);
|
|
3385
|
+
const { element, children, ...rest } = props;
|
|
3386
|
+
const attributes = mergeProps(steps.getSeparatorProps(itemProps), { className: classes.steps.separator }, rest);
|
|
3387
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3388
|
+
...attributes,
|
|
3389
|
+
children
|
|
3390
|
+
});
|
|
3391
|
+
}
|
|
3392
|
+
|
|
3393
|
+
//#endregion
|
|
3394
|
+
//#region src/components/steps/anatomy/trigger.tsx
|
|
3395
|
+
function Trigger$2(props) {
|
|
3396
|
+
const steps = use(RootContext$15);
|
|
3397
|
+
const itemProps = use(ItemContext$1);
|
|
3398
|
+
const { element, children, ...rest } = props;
|
|
3399
|
+
const attributes = mergeProps(steps.getTriggerProps(itemProps), { className: classes.steps.trigger }, rest);
|
|
3400
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
3401
|
+
...attributes,
|
|
3402
|
+
children
|
|
3403
|
+
});
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3406
|
+
//#endregion
|
|
3407
|
+
//#region src/components/steps/modules/anatomy.ts
|
|
3408
|
+
const Steps = Object.assign(SliderRoot, {
|
|
3409
|
+
Provider: RootProvider$5,
|
|
3410
|
+
Context: RootContext$14,
|
|
3411
|
+
List: List$1,
|
|
3412
|
+
Item: Item$3,
|
|
3413
|
+
Trigger: Trigger$2,
|
|
3414
|
+
Indicator: Indicator$1,
|
|
3415
|
+
Separator,
|
|
3416
|
+
Content: Content$2,
|
|
3417
|
+
PrevTrigger,
|
|
3418
|
+
NextTrigger
|
|
3419
|
+
});
|
|
3420
|
+
|
|
3247
3421
|
//#endregion
|
|
3248
3422
|
//#region src/components/switch/modules/root-context.ts
|
|
3249
3423
|
const RootContext$13 = createContext$1();
|
|
@@ -3306,7 +3480,7 @@ function RootProvider$4(props) {
|
|
|
3306
3480
|
//#endregion
|
|
3307
3481
|
//#region src/components/switch/modules/provider.ts
|
|
3308
3482
|
function useSwitch(props = {}) {
|
|
3309
|
-
return connect$
|
|
3483
|
+
return connect$17(useMachine(machine$17, {
|
|
3310
3484
|
id: useId(),
|
|
3311
3485
|
...props
|
|
3312
3486
|
}), normalizeProps);
|
|
@@ -3315,7 +3489,7 @@ function useSwitch(props = {}) {
|
|
|
3315
3489
|
//#endregion
|
|
3316
3490
|
//#region src/components/switch/anatomy/root.tsx
|
|
3317
3491
|
function Root$5(props) {
|
|
3318
|
-
const [switchProps, componentProps] = splitProps$
|
|
3492
|
+
const [switchProps, componentProps] = splitProps$17(props);
|
|
3319
3493
|
const { element, children, ...rest } = componentProps;
|
|
3320
3494
|
const switch_ = useSwitch(switchProps);
|
|
3321
3495
|
const attributes = mergeProps(switch_.getRootProps(), { className: classes.switch.root }, rest);
|
|
@@ -3414,7 +3588,7 @@ function RootProvider$3(props) {
|
|
|
3414
3588
|
//#endregion
|
|
3415
3589
|
//#region src/components/tabs/modules/provider.ts
|
|
3416
3590
|
function useTabs(props = {}) {
|
|
3417
|
-
return connect$
|
|
3591
|
+
return connect$18(useMachine(machine$18, {
|
|
3418
3592
|
id: useId(),
|
|
3419
3593
|
...props
|
|
3420
3594
|
}), normalizeProps);
|
|
@@ -3423,7 +3597,7 @@ function useTabs(props = {}) {
|
|
|
3423
3597
|
//#endregion
|
|
3424
3598
|
//#region src/components/tabs/anatomy/root.tsx
|
|
3425
3599
|
function Root$4(props) {
|
|
3426
|
-
const [tabsProps, componentProps] = splitProps$
|
|
3600
|
+
const [tabsProps, componentProps] = splitProps$18(props);
|
|
3427
3601
|
const { element, children, ...rest } = componentProps;
|
|
3428
3602
|
const tabs = useTabs(tabsProps);
|
|
3429
3603
|
const attributes = mergeProps(tabs.getRootProps(), { className: classes.tabs.root }, rest);
|
|
@@ -3612,7 +3786,7 @@ function RootProvider$2(props) {
|
|
|
3612
3786
|
//#endregion
|
|
3613
3787
|
//#region src/components/tags-input/modules/provider.ts
|
|
3614
3788
|
function useTagsInput(props = {}) {
|
|
3615
|
-
return connect$
|
|
3789
|
+
return connect$19(useMachine(machine$19, {
|
|
3616
3790
|
id: useId(),
|
|
3617
3791
|
...props
|
|
3618
3792
|
}), normalizeProps);
|
|
@@ -3621,7 +3795,7 @@ function useTagsInput(props = {}) {
|
|
|
3621
3795
|
//#endregion
|
|
3622
3796
|
//#region src/components/tags-input/anatomy/root.tsx
|
|
3623
3797
|
function Root$3(props) {
|
|
3624
|
-
const [tagsInputProps, componentProps] = splitProps$
|
|
3798
|
+
const [tagsInputProps, componentProps] = splitProps$19(props);
|
|
3625
3799
|
const { element, children, ...rest } = componentProps;
|
|
3626
3800
|
const tagsInput = useTagsInput(tagsInputProps);
|
|
3627
3801
|
const attributes = mergeProps(tagsInput.getRootProps(), { className: classes.tagsInput.root }, rest);
|
|
@@ -3758,7 +3932,7 @@ function RootContext$6(props) {
|
|
|
3758
3932
|
function Root$2(props) {
|
|
3759
3933
|
const group$1 = use(GroupContext);
|
|
3760
3934
|
const { element, children, toast: toastProps, ...rest } = props;
|
|
3761
|
-
const toast = connect$
|
|
3935
|
+
const toast = connect$20(useMachine(machine$20, {
|
|
3762
3936
|
...toastProps,
|
|
3763
3937
|
parent: group$1
|
|
3764
3938
|
}), normalizeProps);
|
|
@@ -3842,7 +4016,7 @@ function ToggleGroupRootProvider(props) {
|
|
|
3842
4016
|
//#endregion
|
|
3843
4017
|
//#region src/components/toggle-group/modules/provider.ts
|
|
3844
4018
|
function useToggleGroup(props = {}) {
|
|
3845
|
-
return connect$
|
|
4019
|
+
return connect$21(useMachine(machine$21, {
|
|
3846
4020
|
id: useId(),
|
|
3847
4021
|
...props
|
|
3848
4022
|
}), normalizeProps);
|
|
@@ -3851,7 +4025,7 @@ function useToggleGroup(props = {}) {
|
|
|
3851
4025
|
//#endregion
|
|
3852
4026
|
//#region src/components/toggle-group/anatomy/root.tsx
|
|
3853
4027
|
function ToggleGroupRoot(props) {
|
|
3854
|
-
const [toggleGroupProps, componentProps] = splitProps$
|
|
4028
|
+
const [toggleGroupProps, componentProps] = splitProps$20(props);
|
|
3855
4029
|
const { element, children, ...rest } = componentProps;
|
|
3856
4030
|
const toggleGroup = useToggleGroup(toggleGroupProps);
|
|
3857
4031
|
const attributes = mergeProps(toggleGroup.getRootProps(), { className: classes.toggleGroup.root }, rest);
|
|
@@ -3945,7 +4119,7 @@ function RootProvider$1(props) {
|
|
|
3945
4119
|
//#endregion
|
|
3946
4120
|
//#region src/components/tooltip/modules/provider.ts
|
|
3947
4121
|
function useTooltip(props = {}) {
|
|
3948
|
-
return connect$
|
|
4122
|
+
return connect$22(useMachine(machine$22, {
|
|
3949
4123
|
id: useId(),
|
|
3950
4124
|
...props
|
|
3951
4125
|
}), normalizeProps);
|
|
@@ -3954,7 +4128,7 @@ function useTooltip(props = {}) {
|
|
|
3954
4128
|
//#endregion
|
|
3955
4129
|
//#region src/components/tooltip/anatomy/root.tsx
|
|
3956
4130
|
function Root$1(props) {
|
|
3957
|
-
const [tooltipProps, componentProps] = splitProps$
|
|
4131
|
+
const [tooltipProps, componentProps] = splitProps$21(props);
|
|
3958
4132
|
const { children } = componentProps;
|
|
3959
4133
|
const tooltip = useTooltip(tooltipProps);
|
|
3960
4134
|
return /* @__PURE__ */ jsx(RootContext$3.Provider, {
|
|
@@ -4142,7 +4316,7 @@ function RootProvider(props) {
|
|
|
4142
4316
|
//#endregion
|
|
4143
4317
|
//#region src/components/tree-view/modules/provider.ts
|
|
4144
4318
|
function useTreeView(props = {}) {
|
|
4145
|
-
return connect$
|
|
4319
|
+
return connect$23(useMachine(machine$23, {
|
|
4146
4320
|
id: useId(),
|
|
4147
4321
|
...props
|
|
4148
4322
|
}), normalizeProps);
|
|
@@ -4151,7 +4325,7 @@ function useTreeView(props = {}) {
|
|
|
4151
4325
|
//#endregion
|
|
4152
4326
|
//#region src/components/tree-view/anatomy/root.tsx
|
|
4153
4327
|
function Root(props) {
|
|
4154
|
-
const [treeViewProps, componentProps] = splitProps$
|
|
4328
|
+
const [treeViewProps, componentProps] = splitProps$22(props);
|
|
4155
4329
|
const { element, children, ...rest } = componentProps;
|
|
4156
4330
|
const treeView = useTreeView(treeViewProps);
|
|
4157
4331
|
const attributes = mergeProps(treeView.getRootProps(), { className: classes.treeView.root }, rest);
|
|
@@ -4201,4 +4375,4 @@ function useListCollection(options) {
|
|
|
4201
4375
|
}
|
|
4202
4376
|
|
|
4203
4377
|
//#endregion
|
|
4204
|
-
export { Accordion, AppBar, Avatar, Collapsible, Combobox, DatePicker, Dialog, FileUpload, FloatingPanel, Listbox, Menu, Navigation, Pagination, Popover, Portal, Progress, RatingGroup, SegmentedControl, Slider, 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, useSwitch, useTabs, useTagsInput, useToggleGroup, useTooltip, useTreeView };
|
|
4378
|
+
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 };
|