@skeletonlabs/skeleton-react 4.5.2 → 4.6.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 +339 -253
- package/dist/index.mjs +411 -209
- package/package.json +3 -2
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Children, createContext, use, useEffect, useId } from "react";
|
|
2
2
|
import { connect, machine, splitItemProps, splitProps } from "@zag-js/accordion";
|
|
3
3
|
import { Portal as Portal$1, mergeProps, normalizeProps, useMachine } from "@zag-js/react";
|
|
4
|
-
import { classesAccordion, classesAppBar, classesAvatar, classesCollapsible, classesCombobox, classesDatePicker, classesDialog, classesFileUpload, classesListbox, classesMenu, classesNavigation, classesPagination, classesPopover, classesProgress, classesRatingGroup, classesSegmentedControl, classesSlider, classesSwitch, classesTabs, classesTagsInput, classesToast, classesToggleGroup, classesTooltip, classesTreeView } from "@skeletonlabs/skeleton-common";
|
|
4
|
+
import { classesAccordion, classesAppBar, classesAvatar, classesCollapsible, classesCombobox, classesDatePicker, classesDialog, classesFileUpload, classesFloatingPanel, classesListbox, classesMenu, classesNavigation, classesPagination, classesPopover, classesProgress, classesRatingGroup, classesSegmentedControl, classesSlider, classesSwitch, classesTabs, classesTagsInput, classesToast, classesToggleGroup, classesTooltip, classesTreeView } from "@skeletonlabs/skeleton-common";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { connect as connect$1, machine as machine$1, splitProps as splitProps$1 } from "@zag-js/avatar";
|
|
7
7
|
import { connect as connect$2, machine as machine$2, splitProps as splitProps$2 } from "@zag-js/collapsible";
|
|
@@ -9,22 +9,23 @@ import { connect as connect$3, machine as machine$3, splitItemGroupLabelProps, s
|
|
|
9
9
|
import { connect as connect$4, machine as machine$4, parse as parseDate, splitInputProps, splitPresetTriggerProps, splitProps as splitProps$4, splitTableCellProps, splitViewProps } from "@zag-js/date-picker";
|
|
10
10
|
import { connect as connect$5, machine as machine$5, splitProps as splitProps$5 } from "@zag-js/dialog";
|
|
11
11
|
import { connect as connect$6, machine as machine$6, splitItemProps as splitItemProps$2, splitProps as splitProps$6 } from "@zag-js/file-upload";
|
|
12
|
-
import { connect as connect$7, machine as machine$7,
|
|
13
|
-
import { connect as connect$8, machine as machine$8, splitItemGroupLabelProps as splitItemGroupLabelProps$
|
|
14
|
-
import { connect as connect$9, machine as machine$9,
|
|
15
|
-
import { connect as connect$10, machine as machine$10, splitProps as splitProps$10 } from "@zag-js/
|
|
12
|
+
import { connect as connect$7, machine as machine$7, splitProps as splitProps$7, splitResizeTriggerProps } from "@zag-js/floating-panel";
|
|
13
|
+
import { connect as connect$8, machine as machine$8, splitItemGroupLabelProps as splitItemGroupLabelProps$1, splitItemGroupProps as splitItemGroupProps$1, splitItemProps as splitItemProps$3, splitProps as splitProps$8 } from "@zag-js/listbox";
|
|
14
|
+
import { connect as connect$9, machine as machine$9, splitItemGroupLabelProps as splitItemGroupLabelProps$2, splitItemGroupProps as splitItemGroupProps$2, splitItemProps as splitItemProps$4, splitOptionItemProps, splitProps as splitProps$9 } from "@zag-js/menu";
|
|
15
|
+
import { connect as connect$10, machine as machine$10, splitEllipsisProps, splitItemProps as splitItemProps$5, splitProps as splitProps$10 } from "@zag-js/pagination";
|
|
16
|
+
import { connect as connect$11, machine as machine$11, splitProps as splitProps$11 } from "@zag-js/popover";
|
|
16
17
|
import { createPortal } from "react-dom";
|
|
17
|
-
import { connect as connect$
|
|
18
|
-
import { connect as connect$
|
|
19
|
-
import { connect as connect$
|
|
20
|
-
import { connect as connect$
|
|
21
|
-
import { connect as connect$
|
|
22
|
-
import { connect as connect$
|
|
23
|
-
import { connect as connect$
|
|
24
|
-
import { connect as connect$
|
|
25
|
-
import { connect as connect$
|
|
26
|
-
import { connect as connect$
|
|
27
|
-
import { collection as createTreeViewCollection, connect as connect$
|
|
18
|
+
import { connect as connect$12, machine as machine$12, splitProps as splitProps$12 } from "@zag-js/progress";
|
|
19
|
+
import { connect as connect$13, machine as machine$13, splitItemProps as splitItemProps$6, splitProps as splitProps$13 } from "@zag-js/rating-group";
|
|
20
|
+
import { connect as connect$14, machine as machine$14, splitItemProps as splitItemProps$7, splitProps as splitProps$14 } from "@zag-js/radio-group";
|
|
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/switch";
|
|
23
|
+
import { connect as connect$17, machine as machine$17, splitContentProps, splitProps as splitProps$17, splitTriggerProps } from "@zag-js/tabs";
|
|
24
|
+
import { connect as connect$18, machine as machine$18, splitItemProps as splitItemProps$8, splitProps as splitProps$18 } from "@zag-js/tags-input";
|
|
25
|
+
import { connect as connect$19, createStore as createToaster, group, machine as machine$19 } from "@zag-js/toast";
|
|
26
|
+
import { connect as connect$20, machine as machine$20, splitItemProps as splitItemProps$9, splitProps as splitProps$19 } from "@zag-js/toggle-group";
|
|
27
|
+
import { connect as connect$21, machine as machine$21, splitProps as splitProps$20 } from "@zag-js/tooltip";
|
|
28
|
+
import { collection as createTreeViewCollection, connect as connect$22, machine as machine$22, splitProps as splitProps$21 } from "@zag-js/tree-view";
|
|
28
29
|
import { ListCollection } from "@zag-js/collection";
|
|
29
30
|
|
|
30
31
|
//#region src/internal/create-context.ts
|
|
@@ -47,12 +48,12 @@ function useAccordion(props = {}) {
|
|
|
47
48
|
|
|
48
49
|
//#endregion
|
|
49
50
|
//#region src/components/accordion/modules/root-context.ts
|
|
50
|
-
const RootContext$
|
|
51
|
+
const RootContext$46 = createContext$1();
|
|
51
52
|
|
|
52
53
|
//#endregion
|
|
53
54
|
//#region src/components/accordion/anatomy/item-content.tsx
|
|
54
55
|
function ItemContent(props) {
|
|
55
|
-
const accordion = use(RootContext$
|
|
56
|
+
const accordion = use(RootContext$46);
|
|
56
57
|
const itemProps = use(ItemContext$6);
|
|
57
58
|
const { element, children, ...rest } = props;
|
|
58
59
|
const attributes = mergeProps(accordion.getItemContentProps(itemProps), { className: classesAccordion.itemContent }, rest);
|
|
@@ -65,7 +66,7 @@ function ItemContent(props) {
|
|
|
65
66
|
//#endregion
|
|
66
67
|
//#region src/components/accordion/anatomy/item-indicator.tsx
|
|
67
68
|
function ItemIndicator$3(props) {
|
|
68
|
-
const accordion = use(RootContext$
|
|
69
|
+
const accordion = use(RootContext$46);
|
|
69
70
|
const itemProps = use(ItemContext$6);
|
|
70
71
|
const { element, children, ...rest } = props;
|
|
71
72
|
const attributes = mergeProps(accordion.getItemIndicatorProps(itemProps), { className: classesAccordion.itemIndicator }, rest);
|
|
@@ -78,7 +79,7 @@ function ItemIndicator$3(props) {
|
|
|
78
79
|
//#endregion
|
|
79
80
|
//#region src/components/accordion/anatomy/item-trigger.tsx
|
|
80
81
|
function ItemTrigger(props) {
|
|
81
|
-
const accordion = use(RootContext$
|
|
82
|
+
const accordion = use(RootContext$46);
|
|
82
83
|
const itemProps = use(ItemContext$6);
|
|
83
84
|
const { element, children, ...rest } = props;
|
|
84
85
|
const attributes = mergeProps(accordion.getItemTriggerProps(itemProps), { className: classesAccordion.itemTrigger }, rest);
|
|
@@ -91,7 +92,7 @@ function ItemTrigger(props) {
|
|
|
91
92
|
//#endregion
|
|
92
93
|
//#region src/components/accordion/anatomy/item.tsx
|
|
93
94
|
function Item$10(props) {
|
|
94
|
-
const accordion = use(RootContext$
|
|
95
|
+
const accordion = use(RootContext$46);
|
|
95
96
|
const [itemProps, componentProps] = splitItemProps(props);
|
|
96
97
|
const { element, children, ...rest } = componentProps;
|
|
97
98
|
const attributes = mergeProps(accordion.getItemProps(itemProps), { className: classesAccordion.item }, rest);
|
|
@@ -106,18 +107,18 @@ function Item$10(props) {
|
|
|
106
107
|
|
|
107
108
|
//#endregion
|
|
108
109
|
//#region src/components/accordion/anatomy/root-context.tsx
|
|
109
|
-
function RootContext$
|
|
110
|
-
const accordion = use(RootContext$
|
|
110
|
+
function RootContext$45(props) {
|
|
111
|
+
const accordion = use(RootContext$46);
|
|
111
112
|
const { children } = props;
|
|
112
113
|
return children(accordion);
|
|
113
114
|
}
|
|
114
115
|
|
|
115
116
|
//#endregion
|
|
116
117
|
//#region src/components/accordion/anatomy/root-provider.tsx
|
|
117
|
-
function RootProvider$
|
|
118
|
+
function RootProvider$16(props) {
|
|
118
119
|
const { element, children, value: accordion, ...rest } = props;
|
|
119
120
|
const attributes = mergeProps(accordion.getRootProps(), { className: classesAccordion.root }, rest);
|
|
120
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
121
|
+
return /* @__PURE__ */ jsx(RootContext$46.Provider, {
|
|
121
122
|
value: accordion,
|
|
122
123
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
123
124
|
...attributes,
|
|
@@ -128,12 +129,12 @@ function RootProvider$15(props) {
|
|
|
128
129
|
|
|
129
130
|
//#endregion
|
|
130
131
|
//#region src/components/accordion/anatomy/root.tsx
|
|
131
|
-
function Root$
|
|
132
|
+
function Root$18(props) {
|
|
132
133
|
const [accordionProps, componentProps] = splitProps(props);
|
|
133
134
|
const { element, children, ...rest } = componentProps;
|
|
134
135
|
const accordion = useAccordion(accordionProps);
|
|
135
136
|
const attributes = mergeProps(accordion.getRootProps(), { className: classesAccordion.root }, rest);
|
|
136
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
137
|
+
return /* @__PURE__ */ jsx(RootContext$46.Provider, {
|
|
137
138
|
value: accordion,
|
|
138
139
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
139
140
|
...attributes,
|
|
@@ -144,9 +145,9 @@ function Root$17(props) {
|
|
|
144
145
|
|
|
145
146
|
//#endregion
|
|
146
147
|
//#region src/components/accordion/modules/anatomy.ts
|
|
147
|
-
const Accordion = Object.assign(Root$
|
|
148
|
-
Provider: RootProvider$
|
|
149
|
-
Context: RootContext$
|
|
148
|
+
const Accordion = Object.assign(Root$18, {
|
|
149
|
+
Provider: RootProvider$16,
|
|
150
|
+
Context: RootContext$45,
|
|
150
151
|
Item: Item$10,
|
|
151
152
|
ItemTrigger,
|
|
152
153
|
ItemIndicator: ItemIndicator$3,
|
|
@@ -219,12 +220,12 @@ const AppBar = Object.assign(AppBarRoot, {
|
|
|
219
220
|
|
|
220
221
|
//#endregion
|
|
221
222
|
//#region src/components/avatar/modules/root-context.ts
|
|
222
|
-
const RootContext$
|
|
223
|
+
const RootContext$44 = createContext$1();
|
|
223
224
|
|
|
224
225
|
//#endregion
|
|
225
226
|
//#region src/components/avatar/anatomy/fallback.tsx
|
|
226
227
|
function Fallback(props) {
|
|
227
|
-
const avatar = use(RootContext$
|
|
228
|
+
const avatar = use(RootContext$44);
|
|
228
229
|
const { element, children, ...rest } = props;
|
|
229
230
|
const attributes = mergeProps(avatar.getFallbackProps(), { className: classesAvatar.fallback }, rest);
|
|
230
231
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
@@ -236,7 +237,7 @@ function Fallback(props) {
|
|
|
236
237
|
//#endregion
|
|
237
238
|
//#region src/components/avatar/anatomy/image.tsx
|
|
238
239
|
function Image(props) {
|
|
239
|
-
const avatar = use(RootContext$
|
|
240
|
+
const avatar = use(RootContext$44);
|
|
240
241
|
const { element, ...rest } = props;
|
|
241
242
|
const attributes = mergeProps(avatar.getImageProps(), { className: classesAvatar.image }, rest);
|
|
242
243
|
return element ? element(attributes) : /* @__PURE__ */ jsx("img", { ...attributes });
|
|
@@ -244,8 +245,8 @@ function Image(props) {
|
|
|
244
245
|
|
|
245
246
|
//#endregion
|
|
246
247
|
//#region src/components/avatar/anatomy/root-context.tsx
|
|
247
|
-
function RootContext$
|
|
248
|
-
const avatar = use(RootContext$
|
|
248
|
+
function RootContext$43(props) {
|
|
249
|
+
const avatar = use(RootContext$44);
|
|
249
250
|
const { children } = props;
|
|
250
251
|
return children(avatar);
|
|
251
252
|
}
|
|
@@ -255,7 +256,7 @@ function RootContext$41(props) {
|
|
|
255
256
|
function AvatarRootProvider(props) {
|
|
256
257
|
const { element, children, value: avatar, ...rest } = props;
|
|
257
258
|
const attributes = mergeProps(avatar.getRootProps(), { className: classesAvatar.root }, rest);
|
|
258
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
259
|
+
return /* @__PURE__ */ jsx(RootContext$44.Provider, {
|
|
259
260
|
value: avatar,
|
|
260
261
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
261
262
|
...attributes,
|
|
@@ -280,7 +281,7 @@ function AvatarRoot(props) {
|
|
|
280
281
|
const { element, children, ...rest } = componentProps;
|
|
281
282
|
const avatar = useAvatar(avatarProps);
|
|
282
283
|
const attributes = mergeProps(avatar.getRootProps(), { className: classesAvatar.root }, rest);
|
|
283
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
284
|
+
return /* @__PURE__ */ jsx(RootContext$44.Provider, {
|
|
284
285
|
value: avatar,
|
|
285
286
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
286
287
|
...attributes,
|
|
@@ -293,19 +294,19 @@ function AvatarRoot(props) {
|
|
|
293
294
|
//#region src/components/avatar/modules/anatomy.ts
|
|
294
295
|
const Avatar = Object.assign(AvatarRoot, {
|
|
295
296
|
Provider: AvatarRootProvider,
|
|
296
|
-
Context: RootContext$
|
|
297
|
+
Context: RootContext$43,
|
|
297
298
|
Image,
|
|
298
299
|
Fallback
|
|
299
300
|
});
|
|
300
301
|
|
|
301
302
|
//#endregion
|
|
302
303
|
//#region src/components/collapsible/modules/root-context.ts
|
|
303
|
-
const RootContext$
|
|
304
|
+
const RootContext$42 = createContext$1();
|
|
304
305
|
|
|
305
306
|
//#endregion
|
|
306
307
|
//#region src/components/collapsible/anatomy/content.tsx
|
|
307
|
-
function Content$
|
|
308
|
-
const collapsible = use(RootContext$
|
|
308
|
+
function Content$9(props) {
|
|
309
|
+
const collapsible = use(RootContext$42);
|
|
309
310
|
const { element, children, ...rest } = props;
|
|
310
311
|
const attributes = mergeProps(collapsible.getContentProps(), { className: classesCollapsible.content }, rest);
|
|
311
312
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -317,7 +318,7 @@ function Content$8(props) {
|
|
|
317
318
|
//#endregion
|
|
318
319
|
//#region src/components/collapsible/anatomy/indicator.tsx
|
|
319
320
|
function Indicator$3(props) {
|
|
320
|
-
const collapsible = use(RootContext$
|
|
321
|
+
const collapsible = use(RootContext$42);
|
|
321
322
|
const { element, children, ...rest } = props;
|
|
322
323
|
const attributes = mergeProps(collapsible.getIndicatorProps(), { className: classesCollapsible.indicator }, rest);
|
|
323
324
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -328,8 +329,8 @@ function Indicator$3(props) {
|
|
|
328
329
|
|
|
329
330
|
//#endregion
|
|
330
331
|
//#region src/components/collapsible/anatomy/root-context.tsx
|
|
331
|
-
function RootContext$
|
|
332
|
-
const collapsible = use(RootContext$
|
|
332
|
+
function RootContext$41(props) {
|
|
333
|
+
const collapsible = use(RootContext$42);
|
|
333
334
|
const { children } = props;
|
|
334
335
|
return children(collapsible);
|
|
335
336
|
}
|
|
@@ -339,7 +340,7 @@ function RootContext$39(props) {
|
|
|
339
340
|
function CollapsibleRootProvider(props) {
|
|
340
341
|
const { element, children, value: collapsible, ...rest } = props;
|
|
341
342
|
const attributes = mergeProps(collapsible.getRootProps(), { className: classesCollapsible.root }, rest);
|
|
342
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
343
|
+
return /* @__PURE__ */ jsx(RootContext$42.Provider, {
|
|
343
344
|
value: collapsible,
|
|
344
345
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
345
346
|
...attributes,
|
|
@@ -364,7 +365,7 @@ function CollapsibleRoot(props) {
|
|
|
364
365
|
const { element, children, ...rest } = componentProps;
|
|
365
366
|
const collapsible = useCollapsible(collapsibleProps);
|
|
366
367
|
const attributes = mergeProps(collapsible.getRootProps(), { className: classesCollapsible.root }, rest);
|
|
367
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
368
|
+
return /* @__PURE__ */ jsx(RootContext$42.Provider, {
|
|
368
369
|
value: collapsible,
|
|
369
370
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
370
371
|
...attributes,
|
|
@@ -375,8 +376,8 @@ function CollapsibleRoot(props) {
|
|
|
375
376
|
|
|
376
377
|
//#endregion
|
|
377
378
|
//#region src/components/collapsible/anatomy/trigger.tsx
|
|
378
|
-
function Trigger$
|
|
379
|
-
const collapsible = use(RootContext$
|
|
379
|
+
function Trigger$9(props) {
|
|
380
|
+
const collapsible = use(RootContext$42);
|
|
380
381
|
const { element, children, ...rest } = props;
|
|
381
382
|
const attributes = mergeProps(collapsible.getTriggerProps(), { className: classesCollapsible.trigger }, rest);
|
|
382
383
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -389,20 +390,20 @@ function Trigger$8(props) {
|
|
|
389
390
|
//#region src/components/collapsible/modules/anatomy.ts
|
|
390
391
|
const Collapsible = Object.assign(CollapsibleRoot, {
|
|
391
392
|
Provider: CollapsibleRootProvider,
|
|
392
|
-
Context: RootContext$
|
|
393
|
-
Trigger: Trigger$
|
|
393
|
+
Context: RootContext$41,
|
|
394
|
+
Trigger: Trigger$9,
|
|
394
395
|
Indicator: Indicator$3,
|
|
395
|
-
Content: Content$
|
|
396
|
+
Content: Content$9
|
|
396
397
|
});
|
|
397
398
|
|
|
398
399
|
//#endregion
|
|
399
400
|
//#region src/components/combobox/modules/root-context.ts
|
|
400
|
-
const RootContext$
|
|
401
|
+
const RootContext$40 = createContext$1();
|
|
401
402
|
|
|
402
403
|
//#endregion
|
|
403
404
|
//#region src/components/combobox/anatomy/clear-trigger.tsx
|
|
404
|
-
function ClearTrigger$
|
|
405
|
-
const combobox = use(RootContext$
|
|
405
|
+
function ClearTrigger$2(props) {
|
|
406
|
+
const combobox = use(RootContext$40);
|
|
406
407
|
const { element, children, ...rest } = props;
|
|
407
408
|
const attributes = mergeProps(combobox.getClearTriggerProps(), { className: classesCombobox.clearTrigger }, rest);
|
|
408
409
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -413,8 +414,8 @@ function ClearTrigger$1(props) {
|
|
|
413
414
|
|
|
414
415
|
//#endregion
|
|
415
416
|
//#region src/components/combobox/anatomy/content.tsx
|
|
416
|
-
function Content$
|
|
417
|
-
const combobox = use(RootContext$
|
|
417
|
+
function Content$8(props) {
|
|
418
|
+
const combobox = use(RootContext$40);
|
|
418
419
|
const { element, children, ...rest } = props;
|
|
419
420
|
const attributes = mergeProps(combobox.getContentProps(), { className: classesCombobox.content }, rest);
|
|
420
421
|
return element ? element(attributes) : /* @__PURE__ */ jsx("ul", {
|
|
@@ -425,8 +426,8 @@ function Content$7(props) {
|
|
|
425
426
|
|
|
426
427
|
//#endregion
|
|
427
428
|
//#region src/components/combobox/anatomy/control.tsx
|
|
428
|
-
function Control$
|
|
429
|
-
const combobox = use(RootContext$
|
|
429
|
+
function Control$7(props) {
|
|
430
|
+
const combobox = use(RootContext$40);
|
|
430
431
|
const { element, children, ...rest } = props;
|
|
431
432
|
const attributes = mergeProps(combobox.getControlProps(), { className: classesCombobox.control }, rest);
|
|
432
433
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -438,7 +439,7 @@ function Control$6(props) {
|
|
|
438
439
|
//#endregion
|
|
439
440
|
//#region src/components/combobox/anatomy/input.tsx
|
|
440
441
|
function Input$3(props) {
|
|
441
|
-
const combobox = use(RootContext$
|
|
442
|
+
const combobox = use(RootContext$40);
|
|
442
443
|
const { element, ...rest } = props;
|
|
443
444
|
const attributes = mergeProps(combobox.getInputProps(), { className: classesCombobox.input }, rest);
|
|
444
445
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
@@ -451,7 +452,7 @@ const ItemGroupContext$2 = createContext$1();
|
|
|
451
452
|
//#endregion
|
|
452
453
|
//#region src/components/combobox/anatomy/item-group-label.tsx
|
|
453
454
|
function ItemGroupLabel$2(props) {
|
|
454
|
-
const combobox = use(RootContext$
|
|
455
|
+
const combobox = use(RootContext$40);
|
|
455
456
|
const [itemGroupLabelProps, componentProps] = splitItemGroupLabelProps({
|
|
456
457
|
htmlFor: use(ItemGroupContext$2).id,
|
|
457
458
|
...props
|
|
@@ -467,7 +468,7 @@ function ItemGroupLabel$2(props) {
|
|
|
467
468
|
//#endregion
|
|
468
469
|
//#region src/components/combobox/anatomy/item-group.tsx
|
|
469
470
|
function ItemGroup$3(props) {
|
|
470
|
-
const combobox = use(RootContext$
|
|
471
|
+
const combobox = use(RootContext$40);
|
|
471
472
|
const [itemGroupProps, componentProps] = splitItemGroupProps({
|
|
472
473
|
id: useId(),
|
|
473
474
|
...props
|
|
@@ -510,7 +511,7 @@ const ItemContext$5 = createContext$1();
|
|
|
510
511
|
//#endregion
|
|
511
512
|
//#region src/components/combobox/anatomy/item-indicator.tsx
|
|
512
513
|
function ItemIndicator$2(props) {
|
|
513
|
-
const combobox = use(RootContext$
|
|
514
|
+
const combobox = use(RootContext$40);
|
|
514
515
|
const itemProps = use(ItemContext$5);
|
|
515
516
|
const { element, children = /* @__PURE__ */ jsx(Check, { className: "size-4" }), ...rest } = props;
|
|
516
517
|
const attributes = mergeProps(combobox.getItemIndicatorProps(itemProps), { className: classesCombobox.itemIndicator }, rest);
|
|
@@ -523,7 +524,7 @@ function ItemIndicator$2(props) {
|
|
|
523
524
|
//#endregion
|
|
524
525
|
//#region src/components/combobox/anatomy/item-text.tsx
|
|
525
526
|
function ItemText$4(props) {
|
|
526
|
-
const combobox = use(RootContext$
|
|
527
|
+
const combobox = use(RootContext$40);
|
|
527
528
|
const itemProps = use(ItemContext$5);
|
|
528
529
|
const { element, children, ...rest } = props;
|
|
529
530
|
const attributes = mergeProps(combobox.getItemTextProps(itemProps), { className: classesCombobox.itemText }, rest);
|
|
@@ -536,7 +537,7 @@ function ItemText$4(props) {
|
|
|
536
537
|
//#endregion
|
|
537
538
|
//#region src/components/combobox/anatomy/item.tsx
|
|
538
539
|
function Item$9(props) {
|
|
539
|
-
const combobox = use(RootContext$
|
|
540
|
+
const combobox = use(RootContext$40);
|
|
540
541
|
const [itemProps, componentProps] = splitItemProps$1(props);
|
|
541
542
|
const { element, children, ...rest } = componentProps;
|
|
542
543
|
const attributes = mergeProps(combobox.getItemProps(itemProps), { className: classesCombobox.item }, rest);
|
|
@@ -552,7 +553,7 @@ function Item$9(props) {
|
|
|
552
553
|
//#endregion
|
|
553
554
|
//#region src/components/combobox/anatomy/label.tsx
|
|
554
555
|
function Label$10(props) {
|
|
555
|
-
const combobox = use(RootContext$
|
|
556
|
+
const combobox = use(RootContext$40);
|
|
556
557
|
const { element, children, ...rest } = props;
|
|
557
558
|
const attributes = mergeProps(combobox.getLabelProps(), { className: classesCombobox.label }, rest);
|
|
558
559
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
@@ -563,8 +564,8 @@ function Label$10(props) {
|
|
|
563
564
|
|
|
564
565
|
//#endregion
|
|
565
566
|
//#region src/components/combobox/anatomy/positioner.tsx
|
|
566
|
-
function Positioner$
|
|
567
|
-
const combobox = use(RootContext$
|
|
567
|
+
function Positioner$6(props) {
|
|
568
|
+
const combobox = use(RootContext$40);
|
|
568
569
|
const { element, children, ...rest } = props;
|
|
569
570
|
const attributes = mergeProps(combobox.getPositionerProps(), { className: classesCombobox.positioner }, rest);
|
|
570
571
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -575,8 +576,8 @@ function Positioner$5(props) {
|
|
|
575
576
|
|
|
576
577
|
//#endregion
|
|
577
578
|
//#region src/components/combobox/anatomy/root-context.tsx
|
|
578
|
-
function RootContext$
|
|
579
|
-
const combobox = use(RootContext$
|
|
579
|
+
function RootContext$39(props) {
|
|
580
|
+
const combobox = use(RootContext$40);
|
|
580
581
|
const { children } = props;
|
|
581
582
|
return children(combobox);
|
|
582
583
|
}
|
|
@@ -592,10 +593,10 @@ function useCombobox(props = {}) {
|
|
|
592
593
|
|
|
593
594
|
//#endregion
|
|
594
595
|
//#region src/components/combobox/anatomy/root-provider.tsx
|
|
595
|
-
function RootProvider$
|
|
596
|
+
function RootProvider$15(props) {
|
|
596
597
|
const { element, children, value: combobox, ...rest } = props;
|
|
597
598
|
const attributes = mergeProps(combobox.getRootProps(), { className: classesCombobox.root }, rest);
|
|
598
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
599
|
+
return /* @__PURE__ */ jsx(RootContext$40.Provider, {
|
|
599
600
|
value: combobox,
|
|
600
601
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
601
602
|
...attributes,
|
|
@@ -606,12 +607,12 @@ function RootProvider$14(props) {
|
|
|
606
607
|
|
|
607
608
|
//#endregion
|
|
608
609
|
//#region src/components/combobox/anatomy/root.tsx
|
|
609
|
-
function Root$
|
|
610
|
+
function Root$17(props) {
|
|
610
611
|
const [comboboxProps, componentProps] = splitProps$3(props);
|
|
611
612
|
const { element, children, ...rest } = componentProps;
|
|
612
613
|
const combobox = useCombobox(comboboxProps);
|
|
613
614
|
const attributes = mergeProps(combobox.getRootProps(), { className: classesCombobox.root }, rest);
|
|
614
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
615
|
+
return /* @__PURE__ */ jsx(RootContext$40.Provider, {
|
|
615
616
|
value: combobox,
|
|
616
617
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
617
618
|
...attributes,
|
|
@@ -642,8 +643,8 @@ function ChevronDown(props) {
|
|
|
642
643
|
|
|
643
644
|
//#endregion
|
|
644
645
|
//#region src/components/combobox/anatomy/trigger.tsx
|
|
645
|
-
function Trigger$
|
|
646
|
-
const combobox = use(RootContext$
|
|
646
|
+
function Trigger$8(props) {
|
|
647
|
+
const combobox = use(RootContext$40);
|
|
647
648
|
const { element, children = /* @__PURE__ */ jsx(ChevronDown, {}), ...rest } = props;
|
|
648
649
|
const attributes = mergeProps(combobox.getTriggerProps(), { className: classesCombobox.trigger }, rest);
|
|
649
650
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -654,16 +655,16 @@ function Trigger$7(props) {
|
|
|
654
655
|
|
|
655
656
|
//#endregion
|
|
656
657
|
//#region src/components/combobox/modules/anatomy.ts
|
|
657
|
-
const Combobox = Object.assign(Root$
|
|
658
|
-
Provider: RootProvider$
|
|
659
|
-
Context: RootContext$
|
|
658
|
+
const Combobox = Object.assign(Root$17, {
|
|
659
|
+
Provider: RootProvider$15,
|
|
660
|
+
Context: RootContext$39,
|
|
660
661
|
Label: Label$10,
|
|
661
|
-
Control: Control$
|
|
662
|
+
Control: Control$7,
|
|
662
663
|
Input: Input$3,
|
|
663
|
-
Trigger: Trigger$
|
|
664
|
-
ClearTrigger: ClearTrigger$
|
|
665
|
-
Positioner: Positioner$
|
|
666
|
-
Content: Content$
|
|
664
|
+
Trigger: Trigger$8,
|
|
665
|
+
ClearTrigger: ClearTrigger$2,
|
|
666
|
+
Positioner: Positioner$6,
|
|
667
|
+
Content: Content$8,
|
|
667
668
|
ItemGroup: ItemGroup$3,
|
|
668
669
|
ItemGroupLabel: ItemGroupLabel$2,
|
|
669
670
|
Item: Item$9,
|
|
@@ -673,12 +674,12 @@ const Combobox = Object.assign(Root$16, {
|
|
|
673
674
|
|
|
674
675
|
//#endregion
|
|
675
676
|
//#region src/components/date-picker/modules/root-context.ts
|
|
676
|
-
const RootContext$
|
|
677
|
+
const RootContext$38 = createContext$1();
|
|
677
678
|
|
|
678
679
|
//#endregion
|
|
679
680
|
//#region src/components/date-picker/anatomy/content.tsx
|
|
680
|
-
function Content$
|
|
681
|
-
const datePicker = use(RootContext$
|
|
681
|
+
function Content$7(props) {
|
|
682
|
+
const datePicker = use(RootContext$38);
|
|
682
683
|
const { element, children, ...rest } = props;
|
|
683
684
|
const attributes = mergeProps(datePicker.getContentProps(), { className: classesDatePicker.content }, rest);
|
|
684
685
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -689,8 +690,8 @@ function Content$6(props) {
|
|
|
689
690
|
|
|
690
691
|
//#endregion
|
|
691
692
|
//#region src/components/date-picker/anatomy/control.tsx
|
|
692
|
-
function Control$
|
|
693
|
-
const datePicker = use(RootContext$
|
|
693
|
+
function Control$6(props) {
|
|
694
|
+
const datePicker = use(RootContext$38);
|
|
694
695
|
const { element, children, ...rest } = props;
|
|
695
696
|
const attributes = mergeProps(datePicker.getControlProps(), { className: classesDatePicker.control }, rest);
|
|
696
697
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -702,7 +703,7 @@ function Control$5(props) {
|
|
|
702
703
|
//#endregion
|
|
703
704
|
//#region src/components/date-picker/anatomy/input.tsx
|
|
704
705
|
function Input$2(props) {
|
|
705
|
-
const datePicker = use(RootContext$
|
|
706
|
+
const datePicker = use(RootContext$38);
|
|
706
707
|
const [inputProps, componentProps] = splitInputProps(props);
|
|
707
708
|
const { element, ...rest } = componentProps;
|
|
708
709
|
const attributes = mergeProps(datePicker.getInputProps(inputProps), { className: classesDatePicker.input }, rest);
|
|
@@ -712,7 +713,7 @@ function Input$2(props) {
|
|
|
712
713
|
//#endregion
|
|
713
714
|
//#region src/components/date-picker/anatomy/label.tsx
|
|
714
715
|
function Label$9(props) {
|
|
715
|
-
const datePicker = use(RootContext$
|
|
716
|
+
const datePicker = use(RootContext$38);
|
|
716
717
|
const { element, children, ...rest } = props;
|
|
717
718
|
const attributes = mergeProps(datePicker.getLabelProps(), { className: classesDatePicker.label }, rest);
|
|
718
719
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
@@ -724,7 +725,7 @@ function Label$9(props) {
|
|
|
724
725
|
//#endregion
|
|
725
726
|
//#region src/components/date-picker/anatomy/month-select.tsx
|
|
726
727
|
function MonthSelect(props) {
|
|
727
|
-
const datePicker = use(RootContext$
|
|
728
|
+
const datePicker = use(RootContext$38);
|
|
728
729
|
const { element, ...rest } = props;
|
|
729
730
|
const attributes = mergeProps(datePicker.getMonthSelectProps(), { className: classesDatePicker.monthSelect }, rest);
|
|
730
731
|
return element ? element(attributes) : /* @__PURE__ */ jsx("select", {
|
|
@@ -763,7 +764,7 @@ const ViewContext = createContext$1({ view: "day" });
|
|
|
763
764
|
//#endregion
|
|
764
765
|
//#region src/components/date-picker/anatomy/next-trigger.tsx
|
|
765
766
|
function NextTrigger$1(props) {
|
|
766
|
-
const datePicker = use(RootContext$
|
|
767
|
+
const datePicker = use(RootContext$38);
|
|
767
768
|
const viewProps = use(ViewContext);
|
|
768
769
|
const { element, children = /* @__PURE__ */ jsx(ChevronRight, {}), ...rest } = props;
|
|
769
770
|
const attributes = mergeProps(datePicker.getNextTriggerProps(viewProps), { className: classesDatePicker.nextTrigger }, rest);
|
|
@@ -775,8 +776,8 @@ function NextTrigger$1(props) {
|
|
|
775
776
|
|
|
776
777
|
//#endregion
|
|
777
778
|
//#region src/components/date-picker/anatomy/positioner.tsx
|
|
778
|
-
function Positioner$
|
|
779
|
-
const datePicker = use(RootContext$
|
|
779
|
+
function Positioner$5(props) {
|
|
780
|
+
const datePicker = use(RootContext$38);
|
|
780
781
|
const { element, children, ...rest } = props;
|
|
781
782
|
const attributes = mergeProps(datePicker.getPositionerProps(), { className: classesDatePicker.positioner }, rest);
|
|
782
783
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -788,7 +789,7 @@ function Positioner$4(props) {
|
|
|
788
789
|
//#endregion
|
|
789
790
|
//#region src/components/date-picker/anatomy/preset-trigger.tsx
|
|
790
791
|
function PresetTrigger(props) {
|
|
791
|
-
const datePicker = use(RootContext$
|
|
792
|
+
const datePicker = use(RootContext$38);
|
|
792
793
|
const [presetTriggerProps, componentProps] = splitPresetTriggerProps(props);
|
|
793
794
|
const { element, children, ...rest } = componentProps;
|
|
794
795
|
const attributes = mergeProps(datePicker.getPresetTriggerProps(presetTriggerProps), { className: classesDatePicker.presetTrigger }, rest);
|
|
@@ -821,7 +822,7 @@ function ChevronLeft(props) {
|
|
|
821
822
|
//#endregion
|
|
822
823
|
//#region src/components/date-picker/anatomy/prev-trigger.tsx
|
|
823
824
|
function PrevTrigger$1(props) {
|
|
824
|
-
const datePicker = use(RootContext$
|
|
825
|
+
const datePicker = use(RootContext$38);
|
|
825
826
|
const viewProps = use(ViewContext);
|
|
826
827
|
const { element, children = /* @__PURE__ */ jsx(ChevronLeft, {}), ...rest } = props;
|
|
827
828
|
const attributes = mergeProps(datePicker.getPrevTriggerProps(viewProps), { className: classesDatePicker.prevTrigger }, rest);
|
|
@@ -834,7 +835,7 @@ function PrevTrigger$1(props) {
|
|
|
834
835
|
//#endregion
|
|
835
836
|
//#region src/components/date-picker/anatomy/range-text.tsx
|
|
836
837
|
function RangeText(props) {
|
|
837
|
-
const datePicker = use(RootContext$
|
|
838
|
+
const datePicker = use(RootContext$38);
|
|
838
839
|
const rangeText = Array.from(new Set([datePicker.visibleRangeText.start, datePicker.visibleRangeText.end])).join(" - ");
|
|
839
840
|
const { element, children = rangeText, ...rest } = props;
|
|
840
841
|
const attributes = mergeProps(datePicker.getRangeTextProps(), { className: classesDatePicker.rangeText }, rest);
|
|
@@ -846,8 +847,8 @@ function RangeText(props) {
|
|
|
846
847
|
|
|
847
848
|
//#endregion
|
|
848
849
|
//#region src/components/date-picker/anatomy/root-context.tsx
|
|
849
|
-
function RootContext$
|
|
850
|
-
const datePicker = use(RootContext$
|
|
850
|
+
function RootContext$37(props) {
|
|
851
|
+
const datePicker = use(RootContext$38);
|
|
851
852
|
const { children } = props;
|
|
852
853
|
return children(datePicker);
|
|
853
854
|
}
|
|
@@ -863,10 +864,10 @@ function useDatePicker(props = {}) {
|
|
|
863
864
|
|
|
864
865
|
//#endregion
|
|
865
866
|
//#region src/components/date-picker/anatomy/root-provider.tsx
|
|
866
|
-
function RootProvider$
|
|
867
|
+
function RootProvider$14(props) {
|
|
867
868
|
const { element, children, value: datePicker, ...rest } = props;
|
|
868
869
|
const attributes = mergeProps(datePicker.getRootProps(), { className: classesDatePicker.root }, rest);
|
|
869
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
870
|
+
return /* @__PURE__ */ jsx(RootContext$38.Provider, {
|
|
870
871
|
value: datePicker,
|
|
871
872
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
872
873
|
...attributes,
|
|
@@ -877,12 +878,12 @@ function RootProvider$13(props) {
|
|
|
877
878
|
|
|
878
879
|
//#endregion
|
|
879
880
|
//#region src/components/date-picker/anatomy/root.tsx
|
|
880
|
-
function Root$
|
|
881
|
+
function Root$16(props) {
|
|
881
882
|
const [datePickerProps, componentProps] = splitProps$4(props);
|
|
882
883
|
const { element, children, ...rest } = componentProps;
|
|
883
884
|
const datePicker = useDatePicker(datePickerProps);
|
|
884
885
|
const attributes = mergeProps(datePicker.getRootProps(), { className: classesDatePicker.root }, rest);
|
|
885
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
886
|
+
return /* @__PURE__ */ jsx(RootContext$38.Provider, {
|
|
886
887
|
value: datePicker,
|
|
887
888
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
888
889
|
...attributes,
|
|
@@ -894,7 +895,7 @@ function Root$15(props) {
|
|
|
894
895
|
//#endregion
|
|
895
896
|
//#region src/components/date-picker/anatomy/table-body.tsx
|
|
896
897
|
function TableBody(props) {
|
|
897
|
-
const datePicker = use(RootContext$
|
|
898
|
+
const datePicker = use(RootContext$38);
|
|
898
899
|
const viewProps = use(ViewContext);
|
|
899
900
|
const { element, children, ...rest } = props;
|
|
900
901
|
const attributes = mergeProps(datePicker.getTableBodyProps(viewProps), { className: classesDatePicker.tableBody }, rest);
|
|
@@ -911,7 +912,7 @@ const TableCellContext = createContext$1();
|
|
|
911
912
|
//#endregion
|
|
912
913
|
//#region src/components/date-picker/anatomy/table-cell-trigger.tsx
|
|
913
914
|
function TableCellTrigger(props) {
|
|
914
|
-
const datePicker = use(RootContext$
|
|
915
|
+
const datePicker = use(RootContext$38);
|
|
915
916
|
const viewProps = use(ViewContext);
|
|
916
917
|
const tableCellProps = use(TableCellContext);
|
|
917
918
|
const { element, children, ...rest } = props;
|
|
@@ -932,7 +933,7 @@ function TableCellTrigger(props) {
|
|
|
932
933
|
//#endregion
|
|
933
934
|
//#region src/components/date-picker/anatomy/table-cell.tsx
|
|
934
935
|
function TableCell(props) {
|
|
935
|
-
const datePicker = use(RootContext$
|
|
936
|
+
const datePicker = use(RootContext$38);
|
|
936
937
|
const viewProps = use(ViewContext);
|
|
937
938
|
const [tableCellProps, componentProps] = splitTableCellProps(props);
|
|
938
939
|
const { element, children, ...rest } = componentProps;
|
|
@@ -956,7 +957,7 @@ function TableCell(props) {
|
|
|
956
957
|
//#endregion
|
|
957
958
|
//#region src/components/date-picker/anatomy/table-head.tsx
|
|
958
959
|
function TableHead(props) {
|
|
959
|
-
const datePicker = use(RootContext$
|
|
960
|
+
const datePicker = use(RootContext$38);
|
|
960
961
|
const viewProps = use(ViewContext);
|
|
961
962
|
const { element, children, ...rest } = props;
|
|
962
963
|
const attributes = mergeProps(datePicker.getTableHeadProps(viewProps), { className: classesDatePicker.tableHead }, rest);
|
|
@@ -969,7 +970,7 @@ function TableHead(props) {
|
|
|
969
970
|
//#endregion
|
|
970
971
|
//#region src/components/date-picker/anatomy/table-header.tsx
|
|
971
972
|
function TableHeader(props) {
|
|
972
|
-
const datePicker = use(RootContext$
|
|
973
|
+
const datePicker = use(RootContext$38);
|
|
973
974
|
const viewProps = use(ViewContext);
|
|
974
975
|
const { element, children, ...rest } = props;
|
|
975
976
|
const attributes = mergeProps(datePicker.getTableHeaderProps(viewProps), { className: classesDatePicker.tableHeader }, rest);
|
|
@@ -982,7 +983,7 @@ function TableHeader(props) {
|
|
|
982
983
|
//#endregion
|
|
983
984
|
//#region src/components/date-picker/anatomy/table-row.tsx
|
|
984
985
|
function TableRow(props) {
|
|
985
|
-
const datePicker = use(RootContext$
|
|
986
|
+
const datePicker = use(RootContext$38);
|
|
986
987
|
const viewProps = use(ViewContext);
|
|
987
988
|
const { element, children, ...rest } = props;
|
|
988
989
|
const attributes = mergeProps(datePicker.getTableRowProps(viewProps), { className: classesDatePicker.tableRow }, rest);
|
|
@@ -995,7 +996,7 @@ function TableRow(props) {
|
|
|
995
996
|
//#endregion
|
|
996
997
|
//#region src/components/date-picker/anatomy/table.tsx
|
|
997
998
|
function Table(props) {
|
|
998
|
-
const datePicker = use(RootContext$
|
|
999
|
+
const datePicker = use(RootContext$38);
|
|
999
1000
|
const viewProps = use(ViewContext);
|
|
1000
1001
|
const { element, children, ...rest } = props;
|
|
1001
1002
|
const attributes = mergeProps(datePicker.getTableProps(viewProps), { className: classesDatePicker.table }, rest);
|
|
@@ -1038,8 +1039,8 @@ function Calendar(props) {
|
|
|
1038
1039
|
|
|
1039
1040
|
//#endregion
|
|
1040
1041
|
//#region src/components/date-picker/anatomy/trigger.tsx
|
|
1041
|
-
function Trigger$
|
|
1042
|
-
const datePicker = use(RootContext$
|
|
1042
|
+
function Trigger$7(props) {
|
|
1043
|
+
const datePicker = use(RootContext$38);
|
|
1043
1044
|
const { element, children = /* @__PURE__ */ jsx(Calendar, {}), ...rest } = props;
|
|
1044
1045
|
const attributes = mergeProps(datePicker.getTriggerProps(), { className: classesDatePicker.trigger }, rest);
|
|
1045
1046
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -1051,7 +1052,7 @@ function Trigger$6(props) {
|
|
|
1051
1052
|
//#endregion
|
|
1052
1053
|
//#region src/components/date-picker/anatomy/view-control.tsx
|
|
1053
1054
|
function ViewControl(props) {
|
|
1054
|
-
const datePicker = use(RootContext$
|
|
1055
|
+
const datePicker = use(RootContext$38);
|
|
1055
1056
|
const viewProps = use(ViewContext);
|
|
1056
1057
|
const { element, children, ...rest } = props;
|
|
1057
1058
|
const attributes = mergeProps(datePicker.getViewControlProps(viewProps), { className: classesDatePicker.viewControl }, rest);
|
|
@@ -1064,7 +1065,7 @@ function ViewControl(props) {
|
|
|
1064
1065
|
//#endregion
|
|
1065
1066
|
//#region src/components/date-picker/anatomy/view-trigger.tsx
|
|
1066
1067
|
function ViewTrigger(props) {
|
|
1067
|
-
const datePicker = use(RootContext$
|
|
1068
|
+
const datePicker = use(RootContext$38);
|
|
1068
1069
|
const viewProps = use(ViewContext);
|
|
1069
1070
|
const { element, children, ...rest } = props;
|
|
1070
1071
|
const attributes = mergeProps(datePicker.getViewTriggerProps(viewProps), { className: classesDatePicker.viewTrigger }, rest);
|
|
@@ -1077,7 +1078,7 @@ function ViewTrigger(props) {
|
|
|
1077
1078
|
//#endregion
|
|
1078
1079
|
//#region src/components/date-picker/anatomy/view.tsx
|
|
1079
1080
|
function View(props) {
|
|
1080
|
-
const datePicker = use(RootContext$
|
|
1081
|
+
const datePicker = use(RootContext$38);
|
|
1081
1082
|
const [viewProps, componentProps] = splitViewProps(props);
|
|
1082
1083
|
const { element, children, ...rest } = componentProps;
|
|
1083
1084
|
const attributes = mergeProps(datePicker.getViewProps(viewProps), { className: classesDatePicker.view }, rest);
|
|
@@ -1093,7 +1094,7 @@ function View(props) {
|
|
|
1093
1094
|
//#endregion
|
|
1094
1095
|
//#region src/components/date-picker/anatomy/year-select.tsx
|
|
1095
1096
|
function YearSelect(props) {
|
|
1096
|
-
const datePicker = use(RootContext$
|
|
1097
|
+
const datePicker = use(RootContext$38);
|
|
1097
1098
|
const { element, ...rest } = props;
|
|
1098
1099
|
const attributes = mergeProps(datePicker.getYearSelectProps(), { className: classesDatePicker.yearSelect }, rest);
|
|
1099
1100
|
return element ? element(attributes) : /* @__PURE__ */ jsx("select", {
|
|
@@ -1107,16 +1108,16 @@ function YearSelect(props) {
|
|
|
1107
1108
|
|
|
1108
1109
|
//#endregion
|
|
1109
1110
|
//#region src/components/date-picker/modules/anatomy.ts
|
|
1110
|
-
const DatePicker = Object.assign(Root$
|
|
1111
|
-
Provider: RootProvider$
|
|
1112
|
-
Context: RootContext$
|
|
1111
|
+
const DatePicker = Object.assign(Root$16, {
|
|
1112
|
+
Provider: RootProvider$14,
|
|
1113
|
+
Context: RootContext$37,
|
|
1113
1114
|
Label: Label$9,
|
|
1114
|
-
Control: Control$
|
|
1115
|
+
Control: Control$6,
|
|
1115
1116
|
PresetTrigger,
|
|
1116
1117
|
Input: Input$2,
|
|
1117
|
-
Trigger: Trigger$
|
|
1118
|
-
Positioner: Positioner$
|
|
1119
|
-
Content: Content$
|
|
1118
|
+
Trigger: Trigger$7,
|
|
1119
|
+
Positioner: Positioner$5,
|
|
1120
|
+
Content: Content$7,
|
|
1120
1121
|
YearSelect,
|
|
1121
1122
|
MonthSelect,
|
|
1122
1123
|
View,
|
|
@@ -1136,12 +1137,12 @@ const DatePicker = Object.assign(Root$15, {
|
|
|
1136
1137
|
|
|
1137
1138
|
//#endregion
|
|
1138
1139
|
//#region src/components/dialog/modules/root-context.ts
|
|
1139
|
-
const RootContext$
|
|
1140
|
+
const RootContext$36 = createContext$1();
|
|
1140
1141
|
|
|
1141
1142
|
//#endregion
|
|
1142
1143
|
//#region src/components/dialog/anatomy/backdrop.tsx
|
|
1143
1144
|
function Backdrop(props) {
|
|
1144
|
-
const dialog = use(RootContext$
|
|
1145
|
+
const dialog = use(RootContext$36);
|
|
1145
1146
|
const { element, ...rest } = props;
|
|
1146
1147
|
const attributes = mergeProps(dialog.getBackdropProps(), { className: classesDialog.backdrop }, rest);
|
|
1147
1148
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
|
|
@@ -1149,8 +1150,8 @@ function Backdrop(props) {
|
|
|
1149
1150
|
|
|
1150
1151
|
//#endregion
|
|
1151
1152
|
//#region src/components/dialog/anatomy/close-trigger.tsx
|
|
1152
|
-
function CloseTrigger$
|
|
1153
|
-
const dialog = use(RootContext$
|
|
1153
|
+
function CloseTrigger$3(props) {
|
|
1154
|
+
const dialog = use(RootContext$36);
|
|
1154
1155
|
const { element, children, ...rest } = props;
|
|
1155
1156
|
const attributes = mergeProps(dialog.getCloseTriggerProps(), { className: classesDialog.closeTrigger }, rest);
|
|
1156
1157
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -1161,8 +1162,8 @@ function CloseTrigger$2(props) {
|
|
|
1161
1162
|
|
|
1162
1163
|
//#endregion
|
|
1163
1164
|
//#region src/components/dialog/anatomy/content.tsx
|
|
1164
|
-
function Content$
|
|
1165
|
-
const dialog = use(RootContext$
|
|
1165
|
+
function Content$6(props) {
|
|
1166
|
+
const dialog = use(RootContext$36);
|
|
1166
1167
|
const { element, children, ...rest } = props;
|
|
1167
1168
|
const attributes = mergeProps(dialog.getContentProps(), { className: classesDialog.content }, rest);
|
|
1168
1169
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1174,7 +1175,7 @@ function Content$5(props) {
|
|
|
1174
1175
|
//#endregion
|
|
1175
1176
|
//#region src/components/dialog/anatomy/description.tsx
|
|
1176
1177
|
function Description$2(props) {
|
|
1177
|
-
const dialog = use(RootContext$
|
|
1178
|
+
const dialog = use(RootContext$36);
|
|
1178
1179
|
const { element, children, ...rest } = props;
|
|
1179
1180
|
const attributes = mergeProps(dialog.getDescriptionProps(), { className: classesDialog.description }, rest);
|
|
1180
1181
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1185,8 +1186,8 @@ function Description$2(props) {
|
|
|
1185
1186
|
|
|
1186
1187
|
//#endregion
|
|
1187
1188
|
//#region src/components/dialog/anatomy/positioner.tsx
|
|
1188
|
-
function Positioner$
|
|
1189
|
-
const dialog = use(RootContext$
|
|
1189
|
+
function Positioner$4(props) {
|
|
1190
|
+
const dialog = use(RootContext$36);
|
|
1190
1191
|
const { element, children, ...rest } = props;
|
|
1191
1192
|
const attributes = mergeProps(dialog.getPositionerProps(), { className: classesDialog.positioner }, rest);
|
|
1192
1193
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1197,17 +1198,17 @@ function Positioner$3(props) {
|
|
|
1197
1198
|
|
|
1198
1199
|
//#endregion
|
|
1199
1200
|
//#region src/components/dialog/anatomy/root-context.tsx
|
|
1200
|
-
function RootContext$
|
|
1201
|
-
const dialog = use(RootContext$
|
|
1201
|
+
function RootContext$35(props) {
|
|
1202
|
+
const dialog = use(RootContext$36);
|
|
1202
1203
|
const { children } = props;
|
|
1203
1204
|
return children(dialog);
|
|
1204
1205
|
}
|
|
1205
1206
|
|
|
1206
1207
|
//#endregion
|
|
1207
1208
|
//#region src/components/dialog/anatomy/root-provider.tsx
|
|
1208
|
-
function RootProvider$
|
|
1209
|
+
function RootProvider$13(props) {
|
|
1209
1210
|
const { children, value: dialog } = props;
|
|
1210
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
1211
|
+
return /* @__PURE__ */ jsx(RootContext$36.Provider, {
|
|
1211
1212
|
value: dialog,
|
|
1212
1213
|
children
|
|
1213
1214
|
});
|
|
@@ -1224,11 +1225,11 @@ function useDialog(props = {}) {
|
|
|
1224
1225
|
|
|
1225
1226
|
//#endregion
|
|
1226
1227
|
//#region src/components/dialog/anatomy/root.tsx
|
|
1227
|
-
function Root$
|
|
1228
|
+
function Root$15(props) {
|
|
1228
1229
|
const [dialogProps, componentProps] = splitProps$5(props);
|
|
1229
1230
|
const { children } = componentProps;
|
|
1230
1231
|
const dialog = useDialog(dialogProps);
|
|
1231
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
1232
|
+
return /* @__PURE__ */ jsx(RootContext$36.Provider, {
|
|
1232
1233
|
value: dialog,
|
|
1233
1234
|
children
|
|
1234
1235
|
});
|
|
@@ -1236,8 +1237,8 @@ function Root$14(props) {
|
|
|
1236
1237
|
|
|
1237
1238
|
//#endregion
|
|
1238
1239
|
//#region src/components/dialog/anatomy/title.tsx
|
|
1239
|
-
function Title$
|
|
1240
|
-
const dialog = use(RootContext$
|
|
1240
|
+
function Title$3(props) {
|
|
1241
|
+
const dialog = use(RootContext$36);
|
|
1241
1242
|
const { element, children, ...rest } = props;
|
|
1242
1243
|
const attributes = mergeProps(dialog.getTitleProps(), { className: classesDialog.title }, rest);
|
|
1243
1244
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1248,8 +1249,8 @@ function Title$2(props) {
|
|
|
1248
1249
|
|
|
1249
1250
|
//#endregion
|
|
1250
1251
|
//#region src/components/dialog/anatomy/trigger.tsx
|
|
1251
|
-
function Trigger$
|
|
1252
|
-
const dialog = use(RootContext$
|
|
1252
|
+
function Trigger$6(props) {
|
|
1253
|
+
const dialog = use(RootContext$36);
|
|
1253
1254
|
const { element, children, ...rest } = props;
|
|
1254
1255
|
const attributes = mergeProps(dialog.getTriggerProps(), { className: classesDialog.trigger }, rest);
|
|
1255
1256
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -1260,26 +1261,38 @@ function Trigger$5(props) {
|
|
|
1260
1261
|
|
|
1261
1262
|
//#endregion
|
|
1262
1263
|
//#region src/components/dialog/modules/anatomy.ts
|
|
1263
|
-
const Dialog = Object.assign(Root$
|
|
1264
|
-
Provider: RootProvider$
|
|
1265
|
-
Context: RootContext$
|
|
1266
|
-
Trigger: Trigger$
|
|
1264
|
+
const Dialog = Object.assign(Root$15, {
|
|
1265
|
+
Provider: RootProvider$13,
|
|
1266
|
+
Context: RootContext$35,
|
|
1267
|
+
Trigger: Trigger$6,
|
|
1267
1268
|
Backdrop,
|
|
1268
|
-
Positioner: Positioner$
|
|
1269
|
-
Content: Content$
|
|
1270
|
-
Title: Title$
|
|
1269
|
+
Positioner: Positioner$4,
|
|
1270
|
+
Content: Content$6,
|
|
1271
|
+
Title: Title$3,
|
|
1271
1272
|
Description: Description$2,
|
|
1272
|
-
CloseTrigger: CloseTrigger$
|
|
1273
|
+
CloseTrigger: CloseTrigger$3
|
|
1273
1274
|
});
|
|
1274
1275
|
|
|
1275
1276
|
//#endregion
|
|
1276
1277
|
//#region src/components/file-upload/modules/root-context.ts
|
|
1277
|
-
const RootContext$
|
|
1278
|
+
const RootContext$34 = createContext$1();
|
|
1279
|
+
|
|
1280
|
+
//#endregion
|
|
1281
|
+
//#region src/components/file-upload/anatomy/clear-trigger.tsx
|
|
1282
|
+
function ClearTrigger$1(props) {
|
|
1283
|
+
const fileUpload = use(RootContext$34);
|
|
1284
|
+
const { element, children, ...rest } = props;
|
|
1285
|
+
const attributes = mergeProps(fileUpload.getClearTriggerProps(), { className: classesFileUpload.clearTrigger }, rest);
|
|
1286
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1287
|
+
...attributes,
|
|
1288
|
+
children
|
|
1289
|
+
});
|
|
1290
|
+
}
|
|
1278
1291
|
|
|
1279
1292
|
//#endregion
|
|
1280
1293
|
//#region src/components/file-upload/anatomy/dropzone.tsx
|
|
1281
1294
|
function Dropzone(props) {
|
|
1282
|
-
const fileUpload = use(RootContext$
|
|
1295
|
+
const fileUpload = use(RootContext$34);
|
|
1283
1296
|
const { element, children, ...rest } = props;
|
|
1284
1297
|
const attributes = mergeProps(fileUpload.getDropzoneProps(), { className: classesFileUpload.dropzone }, rest);
|
|
1285
1298
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1291,7 +1304,7 @@ function Dropzone(props) {
|
|
|
1291
1304
|
//#endregion
|
|
1292
1305
|
//#region src/components/file-upload/anatomy/hidden-input.tsx
|
|
1293
1306
|
function HiddenInput$4(props) {
|
|
1294
|
-
const fileUpload = use(RootContext$
|
|
1307
|
+
const fileUpload = use(RootContext$34);
|
|
1295
1308
|
const { element, ...rest } = props;
|
|
1296
1309
|
const attributes = mergeProps(fileUpload.getHiddenInputProps(), { className: classesFileUpload.hiddenInput }, rest);
|
|
1297
1310
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
@@ -1304,7 +1317,7 @@ const ItemContext$4 = createContext$1();
|
|
|
1304
1317
|
//#endregion
|
|
1305
1318
|
//#region src/components/file-upload/anatomy/item-delete-trigger.tsx
|
|
1306
1319
|
function ItemDeleteTrigger$1(props) {
|
|
1307
|
-
const fileUpload = use(RootContext$
|
|
1320
|
+
const fileUpload = use(RootContext$34);
|
|
1308
1321
|
const itemProps = use(ItemContext$4);
|
|
1309
1322
|
const { element, children = /* @__PURE__ */ jsx(Fragment, { children: "×" }), ...rest } = props;
|
|
1310
1323
|
const attributes = mergeProps(fileUpload.getItemDeleteTriggerProps(itemProps), { className: classesFileUpload.itemDeleteTrigger }, rest);
|
|
@@ -1317,7 +1330,7 @@ function ItemDeleteTrigger$1(props) {
|
|
|
1317
1330
|
//#endregion
|
|
1318
1331
|
//#region src/components/file-upload/anatomy/item-group.tsx
|
|
1319
1332
|
function ItemGroup$2(props) {
|
|
1320
|
-
const fileUpload = use(RootContext$
|
|
1333
|
+
const fileUpload = use(RootContext$34);
|
|
1321
1334
|
const { element, children, ...rest } = props;
|
|
1322
1335
|
const attributes = mergeProps(fileUpload.getItemGroupProps(), { className: classesFileUpload.itemGroup }, rest);
|
|
1323
1336
|
return element ? element(attributes) : /* @__PURE__ */ jsx("ul", {
|
|
@@ -1329,7 +1342,7 @@ function ItemGroup$2(props) {
|
|
|
1329
1342
|
//#endregion
|
|
1330
1343
|
//#region src/components/file-upload/anatomy/item-name.tsx
|
|
1331
1344
|
function ItemName(props) {
|
|
1332
|
-
const fileUpload = use(RootContext$
|
|
1345
|
+
const fileUpload = use(RootContext$34);
|
|
1333
1346
|
const itemProps = use(ItemContext$4);
|
|
1334
1347
|
const { element, children, ...rest } = props;
|
|
1335
1348
|
const attributes = mergeProps(fileUpload.getItemNameProps(itemProps), { className: classesFileUpload.itemName }, rest);
|
|
@@ -1342,7 +1355,7 @@ function ItemName(props) {
|
|
|
1342
1355
|
//#endregion
|
|
1343
1356
|
//#region src/components/file-upload/anatomy/item-size-text.tsx
|
|
1344
1357
|
function ItemSizeText(props) {
|
|
1345
|
-
const fileUpload = use(RootContext$
|
|
1358
|
+
const fileUpload = use(RootContext$34);
|
|
1346
1359
|
const itemProps = use(ItemContext$4);
|
|
1347
1360
|
const { element, children, ...rest } = props;
|
|
1348
1361
|
const attributes = mergeProps(fileUpload.getItemSizeTextProps(itemProps), { className: classesFileUpload.itemSizeText }, rest);
|
|
@@ -1355,7 +1368,7 @@ function ItemSizeText(props) {
|
|
|
1355
1368
|
//#endregion
|
|
1356
1369
|
//#region src/components/file-upload/anatomy/item.tsx
|
|
1357
1370
|
function Item$8(props) {
|
|
1358
|
-
const fileUpload = use(RootContext$
|
|
1371
|
+
const fileUpload = use(RootContext$34);
|
|
1359
1372
|
const [itemProps, componentProps] = splitItemProps$2(props);
|
|
1360
1373
|
const { element, children, ...rest } = componentProps;
|
|
1361
1374
|
const attributes = mergeProps(fileUpload.getItemProps(itemProps), { className: classesFileUpload.item }, rest);
|
|
@@ -1371,7 +1384,7 @@ function Item$8(props) {
|
|
|
1371
1384
|
//#endregion
|
|
1372
1385
|
//#region src/components/file-upload/anatomy/label.tsx
|
|
1373
1386
|
function Label$8(props) {
|
|
1374
|
-
const fileUpload = use(RootContext$
|
|
1387
|
+
const fileUpload = use(RootContext$34);
|
|
1375
1388
|
const { element, children, ...rest } = props;
|
|
1376
1389
|
const attributes = mergeProps(fileUpload.getLabelProps(), { className: classesFileUpload.label }, rest);
|
|
1377
1390
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
@@ -1382,18 +1395,18 @@ function Label$8(props) {
|
|
|
1382
1395
|
|
|
1383
1396
|
//#endregion
|
|
1384
1397
|
//#region src/components/file-upload/anatomy/root-context.tsx
|
|
1385
|
-
function RootContext$
|
|
1386
|
-
const fileUpload = use(RootContext$
|
|
1398
|
+
function RootContext$33(props) {
|
|
1399
|
+
const fileUpload = use(RootContext$34);
|
|
1387
1400
|
const { children } = props;
|
|
1388
1401
|
return children(fileUpload);
|
|
1389
1402
|
}
|
|
1390
1403
|
|
|
1391
1404
|
//#endregion
|
|
1392
1405
|
//#region src/components/file-upload/anatomy/root-provider.tsx
|
|
1393
|
-
function RootProvider$
|
|
1406
|
+
function RootProvider$12(props) {
|
|
1394
1407
|
const { element, children, value: fileUpload, ...rest } = props;
|
|
1395
1408
|
const attributes = mergeProps(fileUpload.getRootProps(), { className: classesFileUpload.root }, rest);
|
|
1396
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
1409
|
+
return /* @__PURE__ */ jsx(RootContext$34.Provider, {
|
|
1397
1410
|
value: fileUpload,
|
|
1398
1411
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1399
1412
|
...attributes,
|
|
@@ -1413,12 +1426,12 @@ function useFileUpload(props = {}) {
|
|
|
1413
1426
|
|
|
1414
1427
|
//#endregion
|
|
1415
1428
|
//#region src/components/file-upload/anatomy/root.tsx
|
|
1416
|
-
function Root$
|
|
1429
|
+
function Root$14(props) {
|
|
1417
1430
|
const [fileUploadProps, componentProps] = splitProps$6(props);
|
|
1418
1431
|
const { element, children, ...rest } = componentProps;
|
|
1419
1432
|
const fileUpload = useFileUpload(fileUploadProps);
|
|
1420
1433
|
const attributes = mergeProps(fileUpload.getRootProps(), { className: classesFileUpload.root }, rest);
|
|
1421
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
1434
|
+
return /* @__PURE__ */ jsx(RootContext$34.Provider, {
|
|
1422
1435
|
value: fileUpload,
|
|
1423
1436
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1424
1437
|
...attributes,
|
|
@@ -1429,8 +1442,8 @@ function Root$13(props) {
|
|
|
1429
1442
|
|
|
1430
1443
|
//#endregion
|
|
1431
1444
|
//#region src/components/file-upload/anatomy/trigger.tsx
|
|
1432
|
-
function Trigger$
|
|
1433
|
-
const fileUpload = use(RootContext$
|
|
1445
|
+
function Trigger$5(props) {
|
|
1446
|
+
const fileUpload = use(RootContext$34);
|
|
1434
1447
|
const { element, children, ...rest } = props;
|
|
1435
1448
|
const attributes = mergeProps(fileUpload.getTriggerProps(), { className: classesFileUpload.trigger }, rest);
|
|
1436
1449
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -1441,12 +1454,13 @@ function Trigger$4(props) {
|
|
|
1441
1454
|
|
|
1442
1455
|
//#endregion
|
|
1443
1456
|
//#region src/components/file-upload/modules/anatomy.ts
|
|
1444
|
-
const FileUpload = Object.assign(Root$
|
|
1445
|
-
Provider: RootProvider$
|
|
1446
|
-
Context: RootContext$
|
|
1457
|
+
const FileUpload = Object.assign(Root$14, {
|
|
1458
|
+
Provider: RootProvider$12,
|
|
1459
|
+
Context: RootContext$33,
|
|
1447
1460
|
Label: Label$8,
|
|
1448
1461
|
Dropzone,
|
|
1449
|
-
Trigger: Trigger$
|
|
1462
|
+
Trigger: Trigger$5,
|
|
1463
|
+
ClearTrigger: ClearTrigger$1,
|
|
1450
1464
|
HiddenInput: HiddenInput$4,
|
|
1451
1465
|
ItemGroup: ItemGroup$2,
|
|
1452
1466
|
Item: Item$8,
|
|
@@ -1455,6 +1469,200 @@ const FileUpload = Object.assign(Root$13, {
|
|
|
1455
1469
|
ItemDeleteTrigger: ItemDeleteTrigger$1
|
|
1456
1470
|
});
|
|
1457
1471
|
|
|
1472
|
+
//#endregion
|
|
1473
|
+
//#region src/components/floating-panel/modules/root-context.ts
|
|
1474
|
+
const RootContext$32 = createContext$1();
|
|
1475
|
+
|
|
1476
|
+
//#endregion
|
|
1477
|
+
//#region src/components/floating-panel/anatomy/body.tsx
|
|
1478
|
+
function Body(props) {
|
|
1479
|
+
const floatingPanel = use(RootContext$32);
|
|
1480
|
+
const { element, children, ...rest } = props;
|
|
1481
|
+
const attributes = mergeProps(floatingPanel.getBodyProps(), { className: classesFloatingPanel.body }, rest);
|
|
1482
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1483
|
+
...attributes,
|
|
1484
|
+
children
|
|
1485
|
+
});
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
//#endregion
|
|
1489
|
+
//#region src/components/floating-panel/anatomy/close-trigger.tsx
|
|
1490
|
+
function CloseTrigger$2(props) {
|
|
1491
|
+
const floatingPanel = use(RootContext$32);
|
|
1492
|
+
const { element, children, ...rest } = props;
|
|
1493
|
+
const attributes = mergeProps(floatingPanel.getCloseTriggerProps(), { className: classesFloatingPanel.closeTrigger }, rest);
|
|
1494
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1495
|
+
...attributes,
|
|
1496
|
+
children
|
|
1497
|
+
});
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
//#endregion
|
|
1501
|
+
//#region src/components/floating-panel/anatomy/content.tsx
|
|
1502
|
+
function Content$5(props) {
|
|
1503
|
+
const floatingPanel = use(RootContext$32);
|
|
1504
|
+
const { element, children, ...rest } = props;
|
|
1505
|
+
const attributes = mergeProps(floatingPanel.getContentProps(), { className: classesFloatingPanel.content }, rest);
|
|
1506
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1507
|
+
...attributes,
|
|
1508
|
+
children
|
|
1509
|
+
});
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
//#endregion
|
|
1513
|
+
//#region src/components/floating-panel/anatomy/control.tsx
|
|
1514
|
+
function Control$5(props) {
|
|
1515
|
+
const floatingPanel = use(RootContext$32);
|
|
1516
|
+
const { element, children, ...rest } = props;
|
|
1517
|
+
const attributes = mergeProps(floatingPanel.getControlProps(), { className: classesFloatingPanel.control }, rest);
|
|
1518
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1519
|
+
...attributes,
|
|
1520
|
+
children
|
|
1521
|
+
});
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
//#endregion
|
|
1525
|
+
//#region src/components/floating-panel/anatomy/drag-trigger.tsx
|
|
1526
|
+
function DragTrigger(props) {
|
|
1527
|
+
const floatingPanel = use(RootContext$32);
|
|
1528
|
+
const { element, children, ...rest } = props;
|
|
1529
|
+
const attributes = mergeProps(floatingPanel.getDragTriggerProps(), { className: classesFloatingPanel.dragTrigger }, rest);
|
|
1530
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1531
|
+
...attributes,
|
|
1532
|
+
children
|
|
1533
|
+
});
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
//#endregion
|
|
1537
|
+
//#region src/components/floating-panel/anatomy/header.tsx
|
|
1538
|
+
function Header(props) {
|
|
1539
|
+
const floatingPanel = use(RootContext$32);
|
|
1540
|
+
const { element, children, ...rest } = props;
|
|
1541
|
+
const attributes = mergeProps(floatingPanel.getHeaderProps(), { className: classesFloatingPanel.header }, rest);
|
|
1542
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1543
|
+
...attributes,
|
|
1544
|
+
children
|
|
1545
|
+
});
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
//#endregion
|
|
1549
|
+
//#region src/components/floating-panel/anatomy/positioner.tsx
|
|
1550
|
+
function Positioner$3(props) {
|
|
1551
|
+
const floatingPanel = use(RootContext$32);
|
|
1552
|
+
const { element, children, ...rest } = props;
|
|
1553
|
+
const attributes = mergeProps(floatingPanel.getPositionerProps(), { className: classesFloatingPanel.positioner }, rest);
|
|
1554
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1555
|
+
...attributes,
|
|
1556
|
+
children
|
|
1557
|
+
});
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
//#endregion
|
|
1561
|
+
//#region src/components/floating-panel/anatomy/resize-trigger.tsx
|
|
1562
|
+
function ResizeTrigger(props) {
|
|
1563
|
+
const floatingPanel = use(RootContext$32);
|
|
1564
|
+
const [resizeTriggerProps, componentProps] = splitResizeTriggerProps(props);
|
|
1565
|
+
const { element, children, ...rest } = componentProps;
|
|
1566
|
+
const attributes = mergeProps(floatingPanel.getResizeTriggerProps(resizeTriggerProps), { className: classesFloatingPanel.resizeTrigger }, rest);
|
|
1567
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1568
|
+
...attributes,
|
|
1569
|
+
children
|
|
1570
|
+
});
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
//#endregion
|
|
1574
|
+
//#region src/components/floating-panel/anatomy/root-context.tsx
|
|
1575
|
+
function RootContext$31(props) {
|
|
1576
|
+
const floatingPanel = use(RootContext$32);
|
|
1577
|
+
const { children } = props;
|
|
1578
|
+
return children(floatingPanel);
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
//#endregion
|
|
1582
|
+
//#region src/components/floating-panel/anatomy/root-provider.tsx
|
|
1583
|
+
function RootProvider$11(props) {
|
|
1584
|
+
const { children, value: floatingPanel } = props;
|
|
1585
|
+
return /* @__PURE__ */ jsx(RootContext$32.Provider, {
|
|
1586
|
+
value: floatingPanel,
|
|
1587
|
+
children
|
|
1588
|
+
});
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
//#endregion
|
|
1592
|
+
//#region src/components/floating-panel/modules/provider.ts
|
|
1593
|
+
function useFloatingPanel(props = {}) {
|
|
1594
|
+
return connect$7(useMachine(machine$7, {
|
|
1595
|
+
id: useId(),
|
|
1596
|
+
...props
|
|
1597
|
+
}), normalizeProps);
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
//#endregion
|
|
1601
|
+
//#region src/components/floating-panel/anatomy/root.tsx
|
|
1602
|
+
function Root$13(props) {
|
|
1603
|
+
const [floatingPanelProps, componentProps] = splitProps$7(props);
|
|
1604
|
+
const { children } = componentProps;
|
|
1605
|
+
const floatingPanel = useFloatingPanel(floatingPanelProps);
|
|
1606
|
+
return /* @__PURE__ */ jsx(RootContext$32.Provider, {
|
|
1607
|
+
value: floatingPanel,
|
|
1608
|
+
children
|
|
1609
|
+
});
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
//#endregion
|
|
1613
|
+
//#region src/components/floating-panel/anatomy/stage-trigger.tsx
|
|
1614
|
+
function StageTrigger(props) {
|
|
1615
|
+
const floatingPanel = use(RootContext$32);
|
|
1616
|
+
const { element, children, stage, ...rest } = props;
|
|
1617
|
+
const attributes = mergeProps(floatingPanel.getStageTriggerProps({ stage }), { className: classesFloatingPanel.stageTrigger }, rest);
|
|
1618
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1619
|
+
...attributes,
|
|
1620
|
+
children
|
|
1621
|
+
});
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
//#endregion
|
|
1625
|
+
//#region src/components/floating-panel/anatomy/title.tsx
|
|
1626
|
+
function Title$2(props) {
|
|
1627
|
+
const floatingPanel = use(RootContext$32);
|
|
1628
|
+
const { element, children, ...rest } = props;
|
|
1629
|
+
const attributes = mergeProps(floatingPanel.getTitleProps(), { className: classesFloatingPanel.title }, rest);
|
|
1630
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1631
|
+
...attributes,
|
|
1632
|
+
children
|
|
1633
|
+
});
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
//#endregion
|
|
1637
|
+
//#region src/components/floating-panel/anatomy/trigger.tsx
|
|
1638
|
+
function Trigger$4(props) {
|
|
1639
|
+
const floatingPanel = use(RootContext$32);
|
|
1640
|
+
const { element, children, ...rest } = props;
|
|
1641
|
+
const attributes = mergeProps(floatingPanel.getTriggerProps(), { className: classesFloatingPanel.trigger }, rest);
|
|
1642
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1643
|
+
...attributes,
|
|
1644
|
+
children
|
|
1645
|
+
});
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
//#endregion
|
|
1649
|
+
//#region src/components/floating-panel/modules/anatomy.ts
|
|
1650
|
+
const FloatingPanel = Object.assign(Root$13, {
|
|
1651
|
+
Provider: RootProvider$11,
|
|
1652
|
+
Context: RootContext$31,
|
|
1653
|
+
Trigger: Trigger$4,
|
|
1654
|
+
Positioner: Positioner$3,
|
|
1655
|
+
Content: Content$5,
|
|
1656
|
+
DragTrigger,
|
|
1657
|
+
Header,
|
|
1658
|
+
Title: Title$2,
|
|
1659
|
+
Control: Control$5,
|
|
1660
|
+
StageTrigger,
|
|
1661
|
+
CloseTrigger: CloseTrigger$2,
|
|
1662
|
+
Body,
|
|
1663
|
+
ResizeTrigger
|
|
1664
|
+
});
|
|
1665
|
+
|
|
1458
1666
|
//#endregion
|
|
1459
1667
|
//#region src/components/listbox/modules/root-context.ts
|
|
1460
1668
|
const RootContext$30 = createContext$1();
|
|
@@ -1588,7 +1796,7 @@ function RootContext$29(props) {
|
|
|
1588
1796
|
//#endregion
|
|
1589
1797
|
//#region src/components/listbox/modules/provider.ts
|
|
1590
1798
|
function useListbox(props) {
|
|
1591
|
-
return connect$
|
|
1799
|
+
return connect$8(useMachine(machine$8, {
|
|
1592
1800
|
id: useId(),
|
|
1593
1801
|
...props
|
|
1594
1802
|
}), normalizeProps);
|
|
@@ -1611,7 +1819,7 @@ function RootProvider$10(props) {
|
|
|
1611
1819
|
//#endregion
|
|
1612
1820
|
//#region src/components/listbox/anatomy/root.tsx
|
|
1613
1821
|
function Root$12(props) {
|
|
1614
|
-
const [listboxProps, componentProps] = splitProps$
|
|
1822
|
+
const [listboxProps, componentProps] = splitProps$8(props);
|
|
1615
1823
|
const { element, children, ...rest } = componentProps;
|
|
1616
1824
|
const listbox = useListbox(listboxProps);
|
|
1617
1825
|
const attributes = mergeProps(listbox.getRootProps(), { className: classesListbox.root }, rest);
|
|
@@ -1850,12 +2058,12 @@ function RootProvider$9(props) {
|
|
|
1850
2058
|
//#endregion
|
|
1851
2059
|
//#region src/components/menu/modules/provider.ts
|
|
1852
2060
|
function useMenu(props = {}) {
|
|
1853
|
-
const service = useMachine(machine$
|
|
2061
|
+
const service = useMachine(machine$9, {
|
|
1854
2062
|
id: useId(),
|
|
1855
2063
|
...props
|
|
1856
2064
|
});
|
|
1857
2065
|
return {
|
|
1858
|
-
...connect$
|
|
2066
|
+
...connect$9(service, normalizeProps),
|
|
1859
2067
|
service
|
|
1860
2068
|
};
|
|
1861
2069
|
}
|
|
@@ -1864,7 +2072,7 @@ function useMenu(props = {}) {
|
|
|
1864
2072
|
//#region src/components/menu/anatomy/root.tsx
|
|
1865
2073
|
function Root$11(props) {
|
|
1866
2074
|
const parentMenu = use(RootContext$28);
|
|
1867
|
-
const [menuProps, componentProps] = splitProps$
|
|
2075
|
+
const [menuProps, componentProps] = splitProps$9(props);
|
|
1868
2076
|
const { children } = componentProps;
|
|
1869
2077
|
const menu = useMenu(menuProps);
|
|
1870
2078
|
useEffect(() => {
|
|
@@ -2171,7 +2379,7 @@ function PaginationRootProvider(props) {
|
|
|
2171
2379
|
//#endregion
|
|
2172
2380
|
//#region src/components/pagination/modules/provider.ts
|
|
2173
2381
|
function usePagination(props = {}) {
|
|
2174
|
-
return connect$
|
|
2382
|
+
return connect$10(useMachine(machine$10, {
|
|
2175
2383
|
id: useId(),
|
|
2176
2384
|
...props
|
|
2177
2385
|
}), normalizeProps);
|
|
@@ -2180,7 +2388,7 @@ function usePagination(props = {}) {
|
|
|
2180
2388
|
//#endregion
|
|
2181
2389
|
//#region src/components/pagination/anatomy/root.tsx
|
|
2182
2390
|
function PaginationRoot(props) {
|
|
2183
|
-
const [paginationProps, componentProps] = splitProps$
|
|
2391
|
+
const [paginationProps, componentProps] = splitProps$10(props);
|
|
2184
2392
|
const { element, children, ...rest } = componentProps;
|
|
2185
2393
|
const pagination = usePagination(paginationProps);
|
|
2186
2394
|
const attributes = mergeProps(pagination.getRootProps(), { className: classesPagination.root }, rest);
|
|
@@ -2315,7 +2523,7 @@ function RootProvider$8(props) {
|
|
|
2315
2523
|
//#endregion
|
|
2316
2524
|
//#region src/components/popover/modules/provider.ts
|
|
2317
2525
|
function usePopover(props = {}) {
|
|
2318
|
-
return connect$
|
|
2526
|
+
return connect$11(useMachine(machine$11, {
|
|
2319
2527
|
id: useId(),
|
|
2320
2528
|
...props
|
|
2321
2529
|
}), normalizeProps);
|
|
@@ -2324,7 +2532,7 @@ function usePopover(props = {}) {
|
|
|
2324
2532
|
//#endregion
|
|
2325
2533
|
//#region src/components/popover/anatomy/root.tsx
|
|
2326
2534
|
function Root$10(props) {
|
|
2327
|
-
const [popoverProps, componentProps] = splitProps$
|
|
2535
|
+
const [popoverProps, componentProps] = splitProps$11(props);
|
|
2328
2536
|
const { children } = componentProps;
|
|
2329
2537
|
const popover = usePopover(popoverProps);
|
|
2330
2538
|
return /* @__PURE__ */ jsx(RootContext$23.Provider, {
|
|
@@ -2415,13 +2623,7 @@ function CircleTrack(props) {
|
|
|
2415
2623
|
function Circle(props) {
|
|
2416
2624
|
const progress = use(RootContext$21);
|
|
2417
2625
|
const { element, children, ...rest } = props;
|
|
2418
|
-
const attributes = mergeProps(progress.getCircleProps(), {
|
|
2419
|
-
className: classesProgress.circle,
|
|
2420
|
-
style: {
|
|
2421
|
-
["--size"]: "100px",
|
|
2422
|
-
["--thickness"]: "10px"
|
|
2423
|
-
}
|
|
2424
|
-
}, rest);
|
|
2626
|
+
const attributes = mergeProps(progress.getCircleProps(), { className: classesProgress.circle }, rest);
|
|
2425
2627
|
return element ? element(attributes) : /* @__PURE__ */ jsx("svg", {
|
|
2426
2628
|
...attributes,
|
|
2427
2629
|
children
|
|
@@ -2474,7 +2676,7 @@ function RootProvider$7(props) {
|
|
|
2474
2676
|
//#endregion
|
|
2475
2677
|
//#region src/components/progress/modules/provider.ts
|
|
2476
2678
|
function useProgress(props = {}) {
|
|
2477
|
-
return connect$
|
|
2679
|
+
return connect$12(useMachine(machine$12, {
|
|
2478
2680
|
id: useId(),
|
|
2479
2681
|
...props
|
|
2480
2682
|
}), normalizeProps);
|
|
@@ -2483,7 +2685,7 @@ function useProgress(props = {}) {
|
|
|
2483
2685
|
//#endregion
|
|
2484
2686
|
//#region src/components/progress/anatomy/root.tsx
|
|
2485
2687
|
function Root$8(props) {
|
|
2486
|
-
const [progressProps, componentProps] = splitProps$
|
|
2688
|
+
const [progressProps, componentProps] = splitProps$12(props);
|
|
2487
2689
|
const { element, children, ...rest } = componentProps;
|
|
2488
2690
|
const progress = useProgress(progressProps);
|
|
2489
2691
|
const attributes = mergeProps(progress.getRootProps(), { className: classesProgress.root }, rest);
|
|
@@ -2688,7 +2890,7 @@ function RootProvider$6(props) {
|
|
|
2688
2890
|
//#endregion
|
|
2689
2891
|
//#region src/components/rating-group/modules/provider.ts
|
|
2690
2892
|
function useRatingGroup(props = {}) {
|
|
2691
|
-
return connect$
|
|
2893
|
+
return connect$13(useMachine(machine$13, {
|
|
2692
2894
|
id: useId(),
|
|
2693
2895
|
...props
|
|
2694
2896
|
}), normalizeProps);
|
|
@@ -2697,7 +2899,7 @@ function useRatingGroup(props = {}) {
|
|
|
2697
2899
|
//#endregion
|
|
2698
2900
|
//#region src/components/rating-group/anatomy/root.tsx
|
|
2699
2901
|
function Root$7(props) {
|
|
2700
|
-
const [ratingGroupProps, componentProps] = splitProps$
|
|
2902
|
+
const [ratingGroupProps, componentProps] = splitProps$13(props);
|
|
2701
2903
|
const { element, children, ...rest } = componentProps;
|
|
2702
2904
|
const ratingGroup = useRatingGroup(ratingGroupProps);
|
|
2703
2905
|
const attributes = mergeProps(ratingGroup.getRootProps(), { className: classesRatingGroup.root }, rest);
|
|
@@ -2825,7 +3027,7 @@ function RootProvider$5(props) {
|
|
|
2825
3027
|
//#endregion
|
|
2826
3028
|
//#region src/components/segmented-control/modules/provider.ts
|
|
2827
3029
|
function useSegmentedControl(props = {}) {
|
|
2828
|
-
return connect$
|
|
3030
|
+
return connect$14(useMachine(machine$14, {
|
|
2829
3031
|
id: useId(),
|
|
2830
3032
|
orientation: "horizontal",
|
|
2831
3033
|
...props
|
|
@@ -2835,7 +3037,7 @@ function useSegmentedControl(props = {}) {
|
|
|
2835
3037
|
//#endregion
|
|
2836
3038
|
//#region src/components/segmented-control/anatomy/root.tsx
|
|
2837
3039
|
function Root$6(props) {
|
|
2838
|
-
const [segmentedControlProps, componentProps] = splitProps$
|
|
3040
|
+
const [segmentedControlProps, componentProps] = splitProps$14(props);
|
|
2839
3041
|
const { element, children, ...rest } = componentProps;
|
|
2840
3042
|
const segmentedControl = useSegmentedControl(segmentedControlProps);
|
|
2841
3043
|
const attributes = mergeProps(segmentedControl.getRootProps(), { className: classesSegmentedControl.root }, rest);
|
|
@@ -2964,7 +3166,7 @@ function SliderRootProvider(props) {
|
|
|
2964
3166
|
//#endregion
|
|
2965
3167
|
//#region src/components/slider/modules/provider.ts
|
|
2966
3168
|
function useSlider(props = {}) {
|
|
2967
|
-
return connect$
|
|
3169
|
+
return connect$15(useMachine(machine$15, {
|
|
2968
3170
|
id: useId(),
|
|
2969
3171
|
...props
|
|
2970
3172
|
}), normalizeProps);
|
|
@@ -2973,7 +3175,7 @@ function useSlider(props = {}) {
|
|
|
2973
3175
|
//#endregion
|
|
2974
3176
|
//#region src/components/slider/anatomy/root.tsx
|
|
2975
3177
|
function SliderRoot(props) {
|
|
2976
|
-
const [sliderProps, componentProps] = splitProps$
|
|
3178
|
+
const [sliderProps, componentProps] = splitProps$15(props);
|
|
2977
3179
|
const { element, children, ...rest } = componentProps;
|
|
2978
3180
|
const slider = useSlider(sliderProps);
|
|
2979
3181
|
const attributes = mergeProps(slider.getRootProps(), { className: classesSlider.root }, rest);
|
|
@@ -3104,7 +3306,7 @@ function RootProvider$4(props) {
|
|
|
3104
3306
|
//#endregion
|
|
3105
3307
|
//#region src/components/switch/modules/provider.ts
|
|
3106
3308
|
function useSwitch(props = {}) {
|
|
3107
|
-
return connect$
|
|
3309
|
+
return connect$16(useMachine(machine$16, {
|
|
3108
3310
|
id: useId(),
|
|
3109
3311
|
...props
|
|
3110
3312
|
}), normalizeProps);
|
|
@@ -3113,7 +3315,7 @@ function useSwitch(props = {}) {
|
|
|
3113
3315
|
//#endregion
|
|
3114
3316
|
//#region src/components/switch/anatomy/root.tsx
|
|
3115
3317
|
function Root$5(props) {
|
|
3116
|
-
const [switchProps, componentProps] = splitProps$
|
|
3318
|
+
const [switchProps, componentProps] = splitProps$16(props);
|
|
3117
3319
|
const { element, children, ...rest } = componentProps;
|
|
3118
3320
|
const switch_ = useSwitch(switchProps);
|
|
3119
3321
|
const attributes = mergeProps(switch_.getRootProps(), { className: classesSwitch.root }, rest);
|
|
@@ -3212,7 +3414,7 @@ function RootProvider$3(props) {
|
|
|
3212
3414
|
//#endregion
|
|
3213
3415
|
//#region src/components/tabs/modules/provider.ts
|
|
3214
3416
|
function useTabs(props = {}) {
|
|
3215
|
-
return connect$
|
|
3417
|
+
return connect$17(useMachine(machine$17, {
|
|
3216
3418
|
id: useId(),
|
|
3217
3419
|
...props
|
|
3218
3420
|
}), normalizeProps);
|
|
@@ -3221,7 +3423,7 @@ function useTabs(props = {}) {
|
|
|
3221
3423
|
//#endregion
|
|
3222
3424
|
//#region src/components/tabs/anatomy/root.tsx
|
|
3223
3425
|
function Root$4(props) {
|
|
3224
|
-
const [tabsProps, componentProps] = splitProps$
|
|
3426
|
+
const [tabsProps, componentProps] = splitProps$17(props);
|
|
3225
3427
|
const { element, children, ...rest } = componentProps;
|
|
3226
3428
|
const tabs = useTabs(tabsProps);
|
|
3227
3429
|
const attributes = mergeProps(tabs.getRootProps(), { className: classesTabs.root }, rest);
|
|
@@ -3410,7 +3612,7 @@ function RootProvider$2(props) {
|
|
|
3410
3612
|
//#endregion
|
|
3411
3613
|
//#region src/components/tags-input/modules/provider.ts
|
|
3412
3614
|
function useTagsInput(props = {}) {
|
|
3413
|
-
return connect$
|
|
3615
|
+
return connect$18(useMachine(machine$18, {
|
|
3414
3616
|
id: useId(),
|
|
3415
3617
|
...props
|
|
3416
3618
|
}), normalizeProps);
|
|
@@ -3419,7 +3621,7 @@ function useTagsInput(props = {}) {
|
|
|
3419
3621
|
//#endregion
|
|
3420
3622
|
//#region src/components/tags-input/anatomy/root.tsx
|
|
3421
3623
|
function Root$3(props) {
|
|
3422
|
-
const [tagsInputProps, componentProps] = splitProps$
|
|
3624
|
+
const [tagsInputProps, componentProps] = splitProps$18(props);
|
|
3423
3625
|
const { element, children, ...rest } = componentProps;
|
|
3424
3626
|
const tagsInput = useTagsInput(tagsInputProps);
|
|
3425
3627
|
const attributes = mergeProps(tagsInput.getRootProps(), { className: classesTagsInput.root }, rest);
|
|
@@ -3556,7 +3758,7 @@ function RootContext$6(props) {
|
|
|
3556
3758
|
function Root$2(props) {
|
|
3557
3759
|
const group$1 = use(GroupContext);
|
|
3558
3760
|
const { element, children, toast: toastProps, ...rest } = props;
|
|
3559
|
-
const toast = connect$
|
|
3761
|
+
const toast = connect$19(useMachine(machine$19, {
|
|
3560
3762
|
...toastProps,
|
|
3561
3763
|
parent: group$1
|
|
3562
3764
|
}), normalizeProps);
|
|
@@ -3640,7 +3842,7 @@ function ToggleGroupRootProvider(props) {
|
|
|
3640
3842
|
//#endregion
|
|
3641
3843
|
//#region src/components/toggle-group/modules/provider.ts
|
|
3642
3844
|
function useToggleGroup(props = {}) {
|
|
3643
|
-
return connect$
|
|
3845
|
+
return connect$20(useMachine(machine$20, {
|
|
3644
3846
|
id: useId(),
|
|
3645
3847
|
...props
|
|
3646
3848
|
}), normalizeProps);
|
|
@@ -3649,7 +3851,7 @@ function useToggleGroup(props = {}) {
|
|
|
3649
3851
|
//#endregion
|
|
3650
3852
|
//#region src/components/toggle-group/anatomy/root.tsx
|
|
3651
3853
|
function ToggleGroupRoot(props) {
|
|
3652
|
-
const [toggleGroupProps, componentProps] = splitProps$
|
|
3854
|
+
const [toggleGroupProps, componentProps] = splitProps$19(props);
|
|
3653
3855
|
const { element, children, ...rest } = componentProps;
|
|
3654
3856
|
const toggleGroup = useToggleGroup(toggleGroupProps);
|
|
3655
3857
|
const attributes = mergeProps(toggleGroup.getRootProps(), { className: classesToggleGroup.root }, rest);
|
|
@@ -3743,7 +3945,7 @@ function RootProvider$1(props) {
|
|
|
3743
3945
|
//#endregion
|
|
3744
3946
|
//#region src/components/tooltip/modules/provider.ts
|
|
3745
3947
|
function useTooltip(props = {}) {
|
|
3746
|
-
return connect$
|
|
3948
|
+
return connect$21(useMachine(machine$21, {
|
|
3747
3949
|
id: useId(),
|
|
3748
3950
|
...props
|
|
3749
3951
|
}), normalizeProps);
|
|
@@ -3752,7 +3954,7 @@ function useTooltip(props = {}) {
|
|
|
3752
3954
|
//#endregion
|
|
3753
3955
|
//#region src/components/tooltip/anatomy/root.tsx
|
|
3754
3956
|
function Root$1(props) {
|
|
3755
|
-
const [tooltipProps, componentProps] = splitProps$
|
|
3957
|
+
const [tooltipProps, componentProps] = splitProps$20(props);
|
|
3756
3958
|
const { children } = componentProps;
|
|
3757
3959
|
const tooltip = useTooltip(tooltipProps);
|
|
3758
3960
|
return /* @__PURE__ */ jsx(RootContext$3.Provider, {
|
|
@@ -3940,7 +4142,7 @@ function RootProvider(props) {
|
|
|
3940
4142
|
//#endregion
|
|
3941
4143
|
//#region src/components/tree-view/modules/provider.ts
|
|
3942
4144
|
function useTreeView(props = {}) {
|
|
3943
|
-
return connect$
|
|
4145
|
+
return connect$22(useMachine(machine$22, {
|
|
3944
4146
|
id: useId(),
|
|
3945
4147
|
...props
|
|
3946
4148
|
}), normalizeProps);
|
|
@@ -3949,7 +4151,7 @@ function useTreeView(props = {}) {
|
|
|
3949
4151
|
//#endregion
|
|
3950
4152
|
//#region src/components/tree-view/anatomy/root.tsx
|
|
3951
4153
|
function Root(props) {
|
|
3952
|
-
const [treeViewProps, componentProps] = splitProps$
|
|
4154
|
+
const [treeViewProps, componentProps] = splitProps$21(props);
|
|
3953
4155
|
const { element, children, ...rest } = componentProps;
|
|
3954
4156
|
const treeView = useTreeView(treeViewProps);
|
|
3955
4157
|
const attributes = mergeProps(treeView.getRootProps(), { className: classesTreeView.root }, rest);
|
|
@@ -3999,4 +4201,4 @@ function useListCollection(options) {
|
|
|
3999
4201
|
}
|
|
4000
4202
|
|
|
4001
4203
|
//#endregion
|
|
4002
|
-
export { Accordion, AppBar, Avatar, Collapsible, Combobox, DatePicker, Dialog, FileUpload, 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, useListCollection, useListbox, useMenu, usePagination, usePopover, useProgress, useRatingGroup, useSegmentedControl, useSlider, useSwitch, useTabs, useTagsInput, useToggleGroup, useTooltip, useTreeView };
|
|
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 };
|