@skeletonlabs/skeleton-react 4.6.0 → 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 +212 -146
- package/dist/index.mjs +774 -600
- 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
|
|
4
|
+
import * as classes from "@skeletonlabs/skeleton-common/classes";
|
|
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";
|
|
@@ -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,15 +49,15 @@ 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
|
-
const attributes = mergeProps(accordion.getItemContentProps(itemProps), { className:
|
|
60
|
+
const attributes = mergeProps(accordion.getItemContentProps(itemProps), { className: classes.accordion.itemContent }, rest);
|
|
60
61
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
61
62
|
...attributes,
|
|
62
63
|
children
|
|
@@ -66,10 +67,10 @@ 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
|
-
const attributes = mergeProps(accordion.getItemIndicatorProps(itemProps), { className:
|
|
73
|
+
const attributes = mergeProps(accordion.getItemIndicatorProps(itemProps), { className: classes.accordion.itemIndicator }, rest);
|
|
73
74
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
74
75
|
...attributes,
|
|
75
76
|
children
|
|
@@ -79,10 +80,10 @@ 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
|
-
const attributes = mergeProps(accordion.getItemTriggerProps(itemProps), { className:
|
|
86
|
+
const attributes = mergeProps(accordion.getItemTriggerProps(itemProps), { className: classes.accordion.itemTrigger }, rest);
|
|
86
87
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
87
88
|
...attributes,
|
|
88
89
|
children
|
|
@@ -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
|
-
const attributes = mergeProps(accordion.getItemProps(itemProps), { className:
|
|
99
|
-
return /* @__PURE__ */ jsx(ItemContext$
|
|
99
|
+
const attributes = mergeProps(accordion.getItemProps(itemProps), { className: classes.accordion.item }, rest);
|
|
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
|
-
const attributes = mergeProps(accordion.getRootProps(), { className:
|
|
121
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
121
|
+
const attributes = mergeProps(accordion.getRootProps(), { className: classes.accordion.root }, rest);
|
|
122
|
+
return /* @__PURE__ */ jsx(RootContext$48.Provider, {
|
|
122
123
|
value: accordion,
|
|
123
124
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
124
125
|
...attributes,
|
|
@@ -133,8 +134,8 @@ function Root$18(props) {
|
|
|
133
134
|
const [accordionProps, componentProps] = splitProps(props);
|
|
134
135
|
const { element, children, ...rest } = componentProps;
|
|
135
136
|
const accordion = useAccordion(accordionProps);
|
|
136
|
-
const attributes = mergeProps(accordion.getRootProps(), { className:
|
|
137
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
137
|
+
const attributes = mergeProps(accordion.getRootProps(), { className: classes.accordion.root }, rest);
|
|
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
|
|
@@ -158,7 +159,7 @@ const Accordion = Object.assign(Root$18, {
|
|
|
158
159
|
//#region src/components/app-bar/anatomy/headline.tsx
|
|
159
160
|
function AppBarHeadline(props) {
|
|
160
161
|
const { element, children, ...rest } = props;
|
|
161
|
-
const attributes = mergeProps({ className:
|
|
162
|
+
const attributes = mergeProps({ className: classes.appBar.headline }, rest);
|
|
162
163
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
163
164
|
...attributes,
|
|
164
165
|
children
|
|
@@ -169,7 +170,7 @@ function AppBarHeadline(props) {
|
|
|
169
170
|
//#region src/components/app-bar/anatomy/lead.tsx
|
|
170
171
|
function AppBarLead(props) {
|
|
171
172
|
const { element, children, ...rest } = props;
|
|
172
|
-
const attributes = mergeProps({ className:
|
|
173
|
+
const attributes = mergeProps({ className: classes.appBar.lead }, rest);
|
|
173
174
|
return element ? element(attributes) : /* @__PURE__ */ jsx("nav", {
|
|
174
175
|
...attributes,
|
|
175
176
|
children
|
|
@@ -180,7 +181,7 @@ function AppBarLead(props) {
|
|
|
180
181
|
//#region src/components/app-bar/anatomy/root.tsx
|
|
181
182
|
function AppBarRoot(props) {
|
|
182
183
|
const { element, children, ...rest } = props;
|
|
183
|
-
const attributes = mergeProps({ className:
|
|
184
|
+
const attributes = mergeProps({ className: classes.appBar.root }, rest);
|
|
184
185
|
return element ? element(attributes) : /* @__PURE__ */ jsx("header", {
|
|
185
186
|
...attributes,
|
|
186
187
|
children
|
|
@@ -191,7 +192,7 @@ function AppBarRoot(props) {
|
|
|
191
192
|
//#region src/components/app-bar/anatomy/toolbar.tsx
|
|
192
193
|
function AppBarToolbar(props) {
|
|
193
194
|
const { element, children, ...rest } = props;
|
|
194
|
-
const attributes = mergeProps({ className:
|
|
195
|
+
const attributes = mergeProps({ className: classes.appBar.toolbar }, rest);
|
|
195
196
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
196
197
|
...attributes,
|
|
197
198
|
children
|
|
@@ -202,7 +203,7 @@ function AppBarToolbar(props) {
|
|
|
202
203
|
//#region src/components/app-bar/anatomy/trail.tsx
|
|
203
204
|
function AppBarTrail(props) {
|
|
204
205
|
const { element, children, ...rest } = props;
|
|
205
|
-
const attributes = mergeProps({ className:
|
|
206
|
+
const attributes = mergeProps({ className: classes.appBar.trail }, rest);
|
|
206
207
|
return element ? element(attributes) : /* @__PURE__ */ jsx("nav", {
|
|
207
208
|
...attributes,
|
|
208
209
|
children
|
|
@@ -220,14 +221,14 @@ 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
|
-
const attributes = mergeProps(avatar.getFallbackProps(), { className:
|
|
231
|
+
const attributes = mergeProps(avatar.getFallbackProps(), { className: classes.avatar.fallback }, rest);
|
|
231
232
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
232
233
|
...attributes,
|
|
233
234
|
children
|
|
@@ -237,16 +238,16 @@ 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
|
-
const attributes = mergeProps(avatar.getImageProps(), { className:
|
|
243
|
+
const attributes = mergeProps(avatar.getImageProps(), { className: classes.avatar.image }, rest);
|
|
243
244
|
return element ? element(attributes) : /* @__PURE__ */ jsx("img", { ...attributes });
|
|
244
245
|
}
|
|
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
|
}
|
|
@@ -255,8 +256,8 @@ function RootContext$43(props) {
|
|
|
255
256
|
//#region src/components/avatar/anatomy/root-provider.tsx
|
|
256
257
|
function AvatarRootProvider(props) {
|
|
257
258
|
const { element, children, value: avatar, ...rest } = props;
|
|
258
|
-
const attributes = mergeProps(avatar.getRootProps(), { className:
|
|
259
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
259
|
+
const attributes = mergeProps(avatar.getRootProps(), { className: classes.avatar.root }, rest);
|
|
260
|
+
return /* @__PURE__ */ jsx(RootContext$46.Provider, {
|
|
260
261
|
value: avatar,
|
|
261
262
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
262
263
|
...attributes,
|
|
@@ -280,8 +281,8 @@ function AvatarRoot(props) {
|
|
|
280
281
|
const [avatarProps, componentProps] = splitProps$1(props);
|
|
281
282
|
const { element, children, ...rest } = componentProps;
|
|
282
283
|
const avatar = useAvatar(avatarProps);
|
|
283
|
-
const attributes = mergeProps(avatar.getRootProps(), { className:
|
|
284
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
284
|
+
const attributes = mergeProps(avatar.getRootProps(), { className: classes.avatar.root }, rest);
|
|
285
|
+
return /* @__PURE__ */ jsx(RootContext$46.Provider, {
|
|
285
286
|
value: avatar,
|
|
286
287
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
287
288
|
...attributes,
|
|
@@ -294,21 +295,21 @@ 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
|
-
const attributes = mergeProps(collapsible.getContentProps(), { className:
|
|
312
|
+
const attributes = mergeProps(collapsible.getContentProps(), { className: classes.collapsible.content }, rest);
|
|
312
313
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
313
314
|
...attributes,
|
|
314
315
|
children
|
|
@@ -317,10 +318,10 @@ 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
|
-
const attributes = mergeProps(collapsible.getIndicatorProps(), { className:
|
|
324
|
+
const attributes = mergeProps(collapsible.getIndicatorProps(), { className: classes.collapsible.indicator }, rest);
|
|
324
325
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
325
326
|
...attributes,
|
|
326
327
|
children
|
|
@@ -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
|
}
|
|
@@ -339,8 +340,8 @@ function RootContext$41(props) {
|
|
|
339
340
|
//#region src/components/collapsible/anatomy/root-provider.tsx
|
|
340
341
|
function CollapsibleRootProvider(props) {
|
|
341
342
|
const { element, children, value: collapsible, ...rest } = props;
|
|
342
|
-
const attributes = mergeProps(collapsible.getRootProps(), { className:
|
|
343
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
343
|
+
const attributes = mergeProps(collapsible.getRootProps(), { className: classes.collapsible.root }, rest);
|
|
344
|
+
return /* @__PURE__ */ jsx(RootContext$44.Provider, {
|
|
344
345
|
value: collapsible,
|
|
345
346
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
346
347
|
...attributes,
|
|
@@ -364,8 +365,8 @@ function CollapsibleRoot(props) {
|
|
|
364
365
|
const [collapsibleProps, componentProps] = splitProps$2(props);
|
|
365
366
|
const { element, children, ...rest } = componentProps;
|
|
366
367
|
const collapsible = useCollapsible(collapsibleProps);
|
|
367
|
-
const attributes = mergeProps(collapsible.getRootProps(), { className:
|
|
368
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
368
|
+
const attributes = mergeProps(collapsible.getRootProps(), { className: classes.collapsible.root }, rest);
|
|
369
|
+
return /* @__PURE__ */ jsx(RootContext$44.Provider, {
|
|
369
370
|
value: collapsible,
|
|
370
371
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
371
372
|
...attributes,
|
|
@@ -376,10 +377,10 @@ 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
|
-
const attributes = mergeProps(collapsible.getTriggerProps(), { className:
|
|
383
|
+
const attributes = mergeProps(collapsible.getTriggerProps(), { className: classes.collapsible.trigger }, rest);
|
|
383
384
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
384
385
|
...attributes,
|
|
385
386
|
children
|
|
@@ -390,22 +391,22 @@ 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
|
-
const attributes = mergeProps(combobox.getClearTriggerProps(), { className:
|
|
409
|
+
const attributes = mergeProps(combobox.getClearTriggerProps(), { className: classes.combobox.clearTrigger }, rest);
|
|
409
410
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
410
411
|
...attributes,
|
|
411
412
|
children
|
|
@@ -414,10 +415,10 @@ 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
|
-
const attributes = mergeProps(combobox.getContentProps(), { className:
|
|
421
|
+
const attributes = mergeProps(combobox.getContentProps(), { className: classes.combobox.content }, rest);
|
|
421
422
|
return element ? element(attributes) : /* @__PURE__ */ jsx("ul", {
|
|
422
423
|
...attributes,
|
|
423
424
|
children
|
|
@@ -427,9 +428,9 @@ 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
|
-
const attributes = mergeProps(combobox.getControlProps(), { className:
|
|
433
|
+
const attributes = mergeProps(combobox.getControlProps(), { className: classes.combobox.control }, rest);
|
|
433
434
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
434
435
|
...attributes,
|
|
435
436
|
children
|
|
@@ -439,9 +440,9 @@ 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
|
-
const attributes = mergeProps(combobox.getInputProps(), { className:
|
|
445
|
+
const attributes = mergeProps(combobox.getInputProps(), { className: classes.combobox.input }, rest);
|
|
445
446
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
446
447
|
}
|
|
447
448
|
|
|
@@ -452,13 +453,13 @@ 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
|
|
459
460
|
});
|
|
460
461
|
const { element, children, ...rest } = componentProps;
|
|
461
|
-
const attributes = mergeProps(combobox.getItemGroupLabelProps(itemGroupLabelProps), { className:
|
|
462
|
+
const attributes = mergeProps(combobox.getItemGroupLabelProps(itemGroupLabelProps), { className: classes.combobox.itemGroupLabel }, rest);
|
|
462
463
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
463
464
|
...attributes,
|
|
464
465
|
children
|
|
@@ -468,13 +469,13 @@ 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
|
|
475
476
|
});
|
|
476
477
|
const { element, children, ...rest } = componentProps;
|
|
477
|
-
const attributes = mergeProps(combobox.getItemGroupProps(itemGroupProps), { className:
|
|
478
|
+
const attributes = mergeProps(combobox.getItemGroupProps(itemGroupProps), { className: classes.combobox.itemGroup }, rest);
|
|
478
479
|
return /* @__PURE__ */ jsx(ItemGroupContext$2.Provider, {
|
|
479
480
|
value: itemGroupProps,
|
|
480
481
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -506,15 +507,15 @@ 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
|
-
const attributes = mergeProps(combobox.getItemIndicatorProps(itemProps), { className:
|
|
518
|
+
const attributes = mergeProps(combobox.getItemIndicatorProps(itemProps), { className: classes.combobox.itemIndicator }, rest);
|
|
518
519
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
519
520
|
...attributes,
|
|
520
521
|
children
|
|
@@ -524,10 +525,10 @@ 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
|
-
const attributes = mergeProps(combobox.getItemTextProps(itemProps), { className:
|
|
531
|
+
const attributes = mergeProps(combobox.getItemTextProps(itemProps), { className: classes.combobox.itemText }, rest);
|
|
531
532
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
532
533
|
...attributes,
|
|
533
534
|
children
|
|
@@ -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
|
-
const attributes = mergeProps(combobox.getItemProps(itemProps), { className:
|
|
544
|
-
return /* @__PURE__ */ jsx(ItemContext$
|
|
544
|
+
const attributes = mergeProps(combobox.getItemProps(itemProps), { className: classes.combobox.item }, rest);
|
|
545
|
+
return /* @__PURE__ */ jsx(ItemContext$6.Provider, {
|
|
545
546
|
value: itemProps,
|
|
546
547
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("li", {
|
|
547
548
|
...attributes,
|
|
@@ -553,9 +554,9 @@ 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
|
-
const attributes = mergeProps(combobox.getLabelProps(), { className:
|
|
559
|
+
const attributes = mergeProps(combobox.getLabelProps(), { className: classes.combobox.label }, rest);
|
|
559
560
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
560
561
|
...attributes,
|
|
561
562
|
children
|
|
@@ -565,9 +566,9 @@ 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
|
-
const attributes = mergeProps(combobox.getPositionerProps(), { className:
|
|
571
|
+
const attributes = mergeProps(combobox.getPositionerProps(), { className: classes.combobox.positioner }, rest);
|
|
571
572
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
572
573
|
...attributes,
|
|
573
574
|
children
|
|
@@ -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
|
-
const attributes = mergeProps(combobox.getRootProps(), { className:
|
|
599
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
599
|
+
const attributes = mergeProps(combobox.getRootProps(), { className: classes.combobox.root }, rest);
|
|
600
|
+
return /* @__PURE__ */ jsx(RootContext$42.Provider, {
|
|
600
601
|
value: combobox,
|
|
601
602
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
602
603
|
...attributes,
|
|
@@ -611,8 +612,8 @@ function Root$17(props) {
|
|
|
611
612
|
const [comboboxProps, componentProps] = splitProps$3(props);
|
|
612
613
|
const { element, children, ...rest } = componentProps;
|
|
613
614
|
const combobox = useCombobox(comboboxProps);
|
|
614
|
-
const attributes = mergeProps(combobox.getRootProps(), { className:
|
|
615
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
615
|
+
const attributes = mergeProps(combobox.getRootProps(), { className: classes.combobox.root }, rest);
|
|
616
|
+
return /* @__PURE__ */ jsx(RootContext$42.Provider, {
|
|
616
617
|
value: combobox,
|
|
617
618
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
618
619
|
...attributes,
|
|
@@ -643,10 +644,10 @@ 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
|
-
const attributes = mergeProps(combobox.getTriggerProps(), { className:
|
|
650
|
+
const attributes = mergeProps(combobox.getTriggerProps(), { className: classes.combobox.trigger }, rest);
|
|
650
651
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
651
652
|
...attributes,
|
|
652
653
|
children
|
|
@@ -656,32 +657,32 @@ 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
|
-
const attributes = mergeProps(datePicker.getContentProps(), { className:
|
|
685
|
+
const attributes = mergeProps(datePicker.getContentProps(), { className: classes.datePicker.content }, rest);
|
|
685
686
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
686
687
|
...attributes,
|
|
687
688
|
children
|
|
@@ -691,9 +692,9 @@ 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
|
-
const attributes = mergeProps(datePicker.getControlProps(), { className:
|
|
697
|
+
const attributes = mergeProps(datePicker.getControlProps(), { className: classes.datePicker.control }, rest);
|
|
697
698
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
698
699
|
...attributes,
|
|
699
700
|
children
|
|
@@ -703,19 +704,19 @@ 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
|
-
const attributes = mergeProps(datePicker.getInputProps(inputProps), { className:
|
|
710
|
+
const attributes = mergeProps(datePicker.getInputProps(inputProps), { className: classes.datePicker.input }, rest);
|
|
710
711
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
711
712
|
}
|
|
712
713
|
|
|
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
|
-
const attributes = mergeProps(datePicker.getLabelProps(), { className:
|
|
719
|
+
const attributes = mergeProps(datePicker.getLabelProps(), { className: classes.datePicker.label }, rest);
|
|
719
720
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
720
721
|
...attributes,
|
|
721
722
|
children
|
|
@@ -725,9 +726,9 @@ 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
|
-
const attributes = mergeProps(datePicker.getMonthSelectProps(), { className:
|
|
731
|
+
const attributes = mergeProps(datePicker.getMonthSelectProps(), { className: classes.datePicker.monthSelect }, rest);
|
|
731
732
|
return element ? element(attributes) : /* @__PURE__ */ jsx("select", {
|
|
732
733
|
...attributes,
|
|
733
734
|
children: datePicker.getMonths().map((month, i) => /* @__PURE__ */ jsx("option", {
|
|
@@ -763,11 +764,11 @@ 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
|
-
const attributes = mergeProps(datePicker.getNextTriggerProps(viewProps), { className:
|
|
771
|
+
const attributes = mergeProps(datePicker.getNextTriggerProps(viewProps), { className: classes.datePicker.nextTrigger }, rest);
|
|
771
772
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
772
773
|
...attributes,
|
|
773
774
|
children
|
|
@@ -777,9 +778,9 @@ 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
|
-
const attributes = mergeProps(datePicker.getPositionerProps(), { className:
|
|
783
|
+
const attributes = mergeProps(datePicker.getPositionerProps(), { className: classes.datePicker.positioner }, rest);
|
|
783
784
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
784
785
|
...attributes,
|
|
785
786
|
children
|
|
@@ -789,10 +790,10 @@ 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
|
-
const attributes = mergeProps(datePicker.getPresetTriggerProps(presetTriggerProps), { className:
|
|
796
|
+
const attributes = mergeProps(datePicker.getPresetTriggerProps(presetTriggerProps), { className: classes.datePicker.presetTrigger }, rest);
|
|
796
797
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
797
798
|
...attributes,
|
|
798
799
|
children
|
|
@@ -821,11 +822,11 @@ 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
|
-
const attributes = mergeProps(datePicker.getPrevTriggerProps(viewProps), { className:
|
|
829
|
+
const attributes = mergeProps(datePicker.getPrevTriggerProps(viewProps), { className: classes.datePicker.prevTrigger }, rest);
|
|
829
830
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
830
831
|
...attributes,
|
|
831
832
|
children
|
|
@@ -835,10 +836,10 @@ 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
|
-
const attributes = mergeProps(datePicker.getRangeTextProps(), { className:
|
|
842
|
+
const attributes = mergeProps(datePicker.getRangeTextProps(), { className: classes.datePicker.rangeText }, rest);
|
|
842
843
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
843
844
|
...attributes,
|
|
844
845
|
children
|
|
@@ -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
|
-
const attributes = mergeProps(datePicker.getRootProps(), { className:
|
|
870
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
870
|
+
const attributes = mergeProps(datePicker.getRootProps(), { className: classes.datePicker.root }, rest);
|
|
871
|
+
return /* @__PURE__ */ jsx(RootContext$40.Provider, {
|
|
871
872
|
value: datePicker,
|
|
872
873
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
873
874
|
...attributes,
|
|
@@ -882,8 +883,8 @@ function Root$16(props) {
|
|
|
882
883
|
const [datePickerProps, componentProps] = splitProps$4(props);
|
|
883
884
|
const { element, children, ...rest } = componentProps;
|
|
884
885
|
const datePicker = useDatePicker(datePickerProps);
|
|
885
|
-
const attributes = mergeProps(datePicker.getRootProps(), { className:
|
|
886
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
886
|
+
const attributes = mergeProps(datePicker.getRootProps(), { className: classes.datePicker.root }, rest);
|
|
887
|
+
return /* @__PURE__ */ jsx(RootContext$40.Provider, {
|
|
887
888
|
value: datePicker,
|
|
888
889
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
889
890
|
...attributes,
|
|
@@ -895,10 +896,10 @@ 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
|
-
const attributes = mergeProps(datePicker.getTableBodyProps(viewProps), { className:
|
|
902
|
+
const attributes = mergeProps(datePicker.getTableBodyProps(viewProps), { className: classes.datePicker.tableBody }, rest);
|
|
902
903
|
return element ? element(attributes) : /* @__PURE__ */ jsx("tbody", {
|
|
903
904
|
...attributes,
|
|
904
905
|
children
|
|
@@ -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;
|
|
@@ -923,7 +924,7 @@ function TableCellTrigger(props) {
|
|
|
923
924
|
case "year": return datePicker.getYearTableCellTriggerProps(tableCellProps$1);
|
|
924
925
|
}
|
|
925
926
|
}
|
|
926
|
-
const attributes = mergeProps(getTableCellTriggerProps(tableCellProps), { className:
|
|
927
|
+
const attributes = mergeProps(getTableCellTriggerProps(tableCellProps), { className: classes.datePicker.tableCellTrigger }, rest);
|
|
927
928
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
928
929
|
...attributes,
|
|
929
930
|
children
|
|
@@ -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;
|
|
@@ -944,7 +945,7 @@ function TableCell(props) {
|
|
|
944
945
|
case "year": return datePicker.getYearTableCellProps(tableCellProps$1);
|
|
945
946
|
}
|
|
946
947
|
}
|
|
947
|
-
const attributes = mergeProps(getTableCellProps(tableCellProps), { className:
|
|
948
|
+
const attributes = mergeProps(getTableCellProps(tableCellProps), { className: classes.datePicker.tableCell }, rest);
|
|
948
949
|
return /* @__PURE__ */ jsx(TableCellContext.Provider, {
|
|
949
950
|
value: tableCellProps,
|
|
950
951
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("td", {
|
|
@@ -957,10 +958,10 @@ 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
|
-
const attributes = mergeProps(datePicker.getTableHeadProps(viewProps), { className:
|
|
964
|
+
const attributes = mergeProps(datePicker.getTableHeadProps(viewProps), { className: classes.datePicker.tableHead }, rest);
|
|
964
965
|
return element ? element(attributes) : /* @__PURE__ */ jsx("thead", {
|
|
965
966
|
...attributes,
|
|
966
967
|
children
|
|
@@ -970,10 +971,10 @@ 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
|
-
const attributes = mergeProps(datePicker.getTableHeaderProps(viewProps), { className:
|
|
977
|
+
const attributes = mergeProps(datePicker.getTableHeaderProps(viewProps), { className: classes.datePicker.tableHeader }, rest);
|
|
977
978
|
return element ? element(attributes) : /* @__PURE__ */ jsx("th", {
|
|
978
979
|
...attributes,
|
|
979
980
|
children
|
|
@@ -983,10 +984,10 @@ 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
|
-
const attributes = mergeProps(datePicker.getTableRowProps(viewProps), { className:
|
|
990
|
+
const attributes = mergeProps(datePicker.getTableRowProps(viewProps), { className: classes.datePicker.tableRow }, rest);
|
|
990
991
|
return element ? element(attributes) : /* @__PURE__ */ jsx("tr", {
|
|
991
992
|
...attributes,
|
|
992
993
|
children
|
|
@@ -996,10 +997,10 @@ 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
|
-
const attributes = mergeProps(datePicker.getTableProps(viewProps), { className:
|
|
1003
|
+
const attributes = mergeProps(datePicker.getTableProps(viewProps), { className: classes.datePicker.table }, rest);
|
|
1003
1004
|
return element ? element(attributes) : /* @__PURE__ */ jsx("table", {
|
|
1004
1005
|
...attributes,
|
|
1005
1006
|
children
|
|
@@ -1039,10 +1040,10 @@ 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
|
-
const attributes = mergeProps(datePicker.getTriggerProps(), { className:
|
|
1046
|
+
const attributes = mergeProps(datePicker.getTriggerProps(), { className: classes.datePicker.trigger }, rest);
|
|
1046
1047
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1047
1048
|
...attributes,
|
|
1048
1049
|
children
|
|
@@ -1052,10 +1053,10 @@ 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
|
-
const attributes = mergeProps(datePicker.getViewControlProps(viewProps), { className:
|
|
1059
|
+
const attributes = mergeProps(datePicker.getViewControlProps(viewProps), { className: classes.datePicker.viewControl }, rest);
|
|
1059
1060
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1060
1061
|
...attributes,
|
|
1061
1062
|
children
|
|
@@ -1065,10 +1066,10 @@ 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
|
-
const attributes = mergeProps(datePicker.getViewTriggerProps(viewProps), { className:
|
|
1072
|
+
const attributes = mergeProps(datePicker.getViewTriggerProps(viewProps), { className: classes.datePicker.viewTrigger }, rest);
|
|
1072
1073
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1073
1074
|
...attributes,
|
|
1074
1075
|
children
|
|
@@ -1078,10 +1079,10 @@ 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
|
-
const attributes = mergeProps(datePicker.getViewProps(viewProps), { className:
|
|
1085
|
+
const attributes = mergeProps(datePicker.getViewProps(viewProps), { className: classes.datePicker.view }, rest);
|
|
1085
1086
|
return /* @__PURE__ */ jsx(ViewContext.Provider, {
|
|
1086
1087
|
value: viewProps,
|
|
1087
1088
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1094,9 +1095,9 @@ 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
|
-
const attributes = mergeProps(datePicker.getYearSelectProps(), { className:
|
|
1100
|
+
const attributes = mergeProps(datePicker.getYearSelectProps(), { className: classes.datePicker.yearSelect }, rest);
|
|
1100
1101
|
return element ? element(attributes) : /* @__PURE__ */ jsx("select", {
|
|
1101
1102
|
...attributes,
|
|
1102
1103
|
children: datePicker.getYears().map((year, i) => /* @__PURE__ */ jsx("option", {
|
|
@@ -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,23 +1138,23 @@ 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
|
-
const attributes = mergeProps(dialog.getBackdropProps(), { className:
|
|
1148
|
+
const attributes = mergeProps(dialog.getBackdropProps(), { className: classes.dialog.backdrop }, rest);
|
|
1148
1149
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
|
|
1149
1150
|
}
|
|
1150
1151
|
|
|
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
|
-
const attributes = mergeProps(dialog.getCloseTriggerProps(), { className:
|
|
1157
|
+
const attributes = mergeProps(dialog.getCloseTriggerProps(), { className: classes.dialog.closeTrigger }, rest);
|
|
1157
1158
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1158
1159
|
...attributes,
|
|
1159
1160
|
children
|
|
@@ -1162,10 +1163,10 @@ 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
|
-
const attributes = mergeProps(dialog.getContentProps(), { className:
|
|
1169
|
+
const attributes = mergeProps(dialog.getContentProps(), { className: classes.dialog.content }, rest);
|
|
1169
1170
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1170
1171
|
...attributes,
|
|
1171
1172
|
children
|
|
@@ -1175,9 +1176,9 @@ 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
|
-
const attributes = mergeProps(dialog.getDescriptionProps(), { className:
|
|
1181
|
+
const attributes = mergeProps(dialog.getDescriptionProps(), { className: classes.dialog.description }, rest);
|
|
1181
1182
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1182
1183
|
...attributes,
|
|
1183
1184
|
children
|
|
@@ -1187,9 +1188,9 @@ 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
|
-
const attributes = mergeProps(dialog.getPositionerProps(), { className:
|
|
1193
|
+
const attributes = mergeProps(dialog.getPositionerProps(), { className: classes.dialog.positioner }, rest);
|
|
1193
1194
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1194
1195
|
...attributes,
|
|
1195
1196
|
children
|
|
@@ -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,9 +1239,9 @@ 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
|
-
const attributes = mergeProps(dialog.getTitleProps(), { className:
|
|
1244
|
+
const attributes = mergeProps(dialog.getTitleProps(), { className: classes.dialog.title }, rest);
|
|
1244
1245
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1245
1246
|
...attributes,
|
|
1246
1247
|
children
|
|
@@ -1249,10 +1250,10 @@ 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
|
-
const attributes = mergeProps(dialog.getTriggerProps(), { className:
|
|
1256
|
+
const attributes = mergeProps(dialog.getTriggerProps(), { className: classes.dialog.trigger }, rest);
|
|
1256
1257
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1257
1258
|
...attributes,
|
|
1258
1259
|
children
|
|
@@ -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,14 +1276,14 @@ 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
|
-
const attributes = mergeProps(fileUpload.getClearTriggerProps(), { className:
|
|
1286
|
+
const attributes = mergeProps(fileUpload.getClearTriggerProps(), { className: classes.fileUpload.clearTrigger }, rest);
|
|
1286
1287
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1287
1288
|
...attributes,
|
|
1288
1289
|
children
|
|
@@ -1292,9 +1293,9 @@ 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
|
-
const attributes = mergeProps(fileUpload.getDropzoneProps(), { className:
|
|
1298
|
+
const attributes = mergeProps(fileUpload.getDropzoneProps(), { className: classes.fileUpload.dropzone }, rest);
|
|
1298
1299
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1299
1300
|
...attributes,
|
|
1300
1301
|
children
|
|
@@ -1304,23 +1305,23 @@ 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
|
-
const attributes = mergeProps(fileUpload.getHiddenInputProps(), { className:
|
|
1310
|
+
const attributes = mergeProps(fileUpload.getHiddenInputProps(), { className: classes.fileUpload.hiddenInput }, rest);
|
|
1310
1311
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
1311
1312
|
}
|
|
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
|
-
const attributes = mergeProps(fileUpload.getItemDeleteTriggerProps(itemProps), { className:
|
|
1324
|
+
const attributes = mergeProps(fileUpload.getItemDeleteTriggerProps(itemProps), { className: classes.fileUpload.itemDeleteTrigger }, rest);
|
|
1324
1325
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1325
1326
|
...attributes,
|
|
1326
1327
|
children
|
|
@@ -1330,9 +1331,9 @@ 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
|
-
const attributes = mergeProps(fileUpload.getItemGroupProps(), { className:
|
|
1336
|
+
const attributes = mergeProps(fileUpload.getItemGroupProps(), { className: classes.fileUpload.itemGroup }, rest);
|
|
1336
1337
|
return element ? element(attributes) : /* @__PURE__ */ jsx("ul", {
|
|
1337
1338
|
...attributes,
|
|
1338
1339
|
children
|
|
@@ -1342,10 +1343,10 @@ 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
|
-
const attributes = mergeProps(fileUpload.getItemNameProps(itemProps), { className:
|
|
1349
|
+
const attributes = mergeProps(fileUpload.getItemNameProps(itemProps), { className: classes.fileUpload.itemName }, rest);
|
|
1349
1350
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1350
1351
|
...attributes,
|
|
1351
1352
|
children
|
|
@@ -1355,10 +1356,10 @@ 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
|
-
const attributes = mergeProps(fileUpload.getItemSizeTextProps(itemProps), { className:
|
|
1362
|
+
const attributes = mergeProps(fileUpload.getItemSizeTextProps(itemProps), { className: classes.fileUpload.itemSizeText }, rest);
|
|
1362
1363
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1363
1364
|
...attributes,
|
|
1364
1365
|
children
|
|
@@ -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
|
-
const attributes = mergeProps(fileUpload.getItemProps(itemProps), { className:
|
|
1375
|
-
return /* @__PURE__ */ jsx(ItemContext$
|
|
1375
|
+
const attributes = mergeProps(fileUpload.getItemProps(itemProps), { className: classes.fileUpload.item }, rest);
|
|
1376
|
+
return /* @__PURE__ */ jsx(ItemContext$5.Provider, {
|
|
1376
1377
|
value: itemProps,
|
|
1377
1378
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("li", {
|
|
1378
1379
|
...attributes,
|
|
@@ -1384,9 +1385,9 @@ 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
|
-
const attributes = mergeProps(fileUpload.getLabelProps(), { className:
|
|
1390
|
+
const attributes = mergeProps(fileUpload.getLabelProps(), { className: classes.fileUpload.label }, rest);
|
|
1390
1391
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
1391
1392
|
...attributes,
|
|
1392
1393
|
children
|
|
@@ -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
|
-
const attributes = mergeProps(fileUpload.getRootProps(), { className:
|
|
1409
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
1409
|
+
const attributes = mergeProps(fileUpload.getRootProps(), { className: classes.fileUpload.root }, rest);
|
|
1410
|
+
return /* @__PURE__ */ jsx(RootContext$36.Provider, {
|
|
1410
1411
|
value: fileUpload,
|
|
1411
1412
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1412
1413
|
...attributes,
|
|
@@ -1430,8 +1431,8 @@ function Root$14(props) {
|
|
|
1430
1431
|
const [fileUploadProps, componentProps] = splitProps$6(props);
|
|
1431
1432
|
const { element, children, ...rest } = componentProps;
|
|
1432
1433
|
const fileUpload = useFileUpload(fileUploadProps);
|
|
1433
|
-
const attributes = mergeProps(fileUpload.getRootProps(), { className:
|
|
1434
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
1434
|
+
const attributes = mergeProps(fileUpload.getRootProps(), { className: classes.fileUpload.root }, rest);
|
|
1435
|
+
return /* @__PURE__ */ jsx(RootContext$36.Provider, {
|
|
1435
1436
|
value: fileUpload,
|
|
1436
1437
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1437
1438
|
...attributes,
|
|
@@ -1442,10 +1443,10 @@ 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
|
-
const attributes = mergeProps(fileUpload.getTriggerProps(), { className:
|
|
1449
|
+
const attributes = mergeProps(fileUpload.getTriggerProps(), { className: classes.fileUpload.trigger }, rest);
|
|
1449
1450
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1450
1451
|
...attributes,
|
|
1451
1452
|
children
|
|
@@ -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,14 +1472,14 @@ 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
|
-
const attributes = mergeProps(floatingPanel.getBodyProps(), { className:
|
|
1482
|
+
const attributes = mergeProps(floatingPanel.getBodyProps(), { className: classes.floatingPanel.body }, rest);
|
|
1482
1483
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1483
1484
|
...attributes,
|
|
1484
1485
|
children
|
|
@@ -1488,9 +1489,9 @@ 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
|
-
const attributes = mergeProps(floatingPanel.getCloseTriggerProps(), { className:
|
|
1494
|
+
const attributes = mergeProps(floatingPanel.getCloseTriggerProps(), { className: classes.floatingPanel.closeTrigger }, rest);
|
|
1494
1495
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1495
1496
|
...attributes,
|
|
1496
1497
|
children
|
|
@@ -1499,10 +1500,10 @@ 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
|
-
const attributes = mergeProps(floatingPanel.getContentProps(), { className:
|
|
1506
|
+
const attributes = mergeProps(floatingPanel.getContentProps(), { className: classes.floatingPanel.content }, rest);
|
|
1506
1507
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1507
1508
|
...attributes,
|
|
1508
1509
|
children
|
|
@@ -1512,9 +1513,9 @@ 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
|
-
const attributes = mergeProps(floatingPanel.getControlProps(), { className:
|
|
1518
|
+
const attributes = mergeProps(floatingPanel.getControlProps(), { className: classes.floatingPanel.control }, rest);
|
|
1518
1519
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1519
1520
|
...attributes,
|
|
1520
1521
|
children
|
|
@@ -1524,9 +1525,9 @@ 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
|
-
const attributes = mergeProps(floatingPanel.getDragTriggerProps(), { className:
|
|
1530
|
+
const attributes = mergeProps(floatingPanel.getDragTriggerProps(), { className: classes.floatingPanel.dragTrigger }, rest);
|
|
1530
1531
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1531
1532
|
...attributes,
|
|
1532
1533
|
children
|
|
@@ -1536,9 +1537,9 @@ 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
|
-
const attributes = mergeProps(floatingPanel.getHeaderProps(), { className:
|
|
1542
|
+
const attributes = mergeProps(floatingPanel.getHeaderProps(), { className: classes.floatingPanel.header }, rest);
|
|
1542
1543
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1543
1544
|
...attributes,
|
|
1544
1545
|
children
|
|
@@ -1548,9 +1549,9 @@ 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
|
-
const attributes = mergeProps(floatingPanel.getPositionerProps(), { className:
|
|
1554
|
+
const attributes = mergeProps(floatingPanel.getPositionerProps(), { className: classes.floatingPanel.positioner }, rest);
|
|
1554
1555
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1555
1556
|
...attributes,
|
|
1556
1557
|
children
|
|
@@ -1560,10 +1561,10 @@ 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
|
-
const attributes = mergeProps(floatingPanel.getResizeTriggerProps(resizeTriggerProps), { className:
|
|
1567
|
+
const attributes = mergeProps(floatingPanel.getResizeTriggerProps(resizeTriggerProps), { className: classes.floatingPanel.resizeTrigger }, rest);
|
|
1567
1568
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1568
1569
|
...attributes,
|
|
1569
1570
|
children
|
|
@@ -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,9 +1613,9 @@ 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
|
-
const attributes = mergeProps(floatingPanel.getStageTriggerProps({ stage }), { className:
|
|
1618
|
+
const attributes = mergeProps(floatingPanel.getStageTriggerProps({ stage }), { className: classes.floatingPanel.stageTrigger }, rest);
|
|
1618
1619
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1619
1620
|
...attributes,
|
|
1620
1621
|
children
|
|
@@ -1624,9 +1625,9 @@ 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
|
-
const attributes = mergeProps(floatingPanel.getTitleProps(), { className:
|
|
1630
|
+
const attributes = mergeProps(floatingPanel.getTitleProps(), { className: classes.floatingPanel.title }, rest);
|
|
1630
1631
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1631
1632
|
...attributes,
|
|
1632
1633
|
children
|
|
@@ -1635,10 +1636,10 @@ 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
|
-
const attributes = mergeProps(floatingPanel.getTriggerProps(), { className:
|
|
1642
|
+
const attributes = mergeProps(floatingPanel.getTriggerProps(), { className: classes.floatingPanel.trigger }, rest);
|
|
1642
1643
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1643
1644
|
...attributes,
|
|
1644
1645
|
children
|
|
@@ -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,14 +1666,14 @@ 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
|
-
const attributes = mergeProps(listbox.getContentProps(), { className:
|
|
1676
|
+
const attributes = mergeProps(listbox.getContentProps(), { className: classes.listbox.content }, rest);
|
|
1676
1677
|
return element ? element(attributes) : /* @__PURE__ */ jsx("ul", {
|
|
1677
1678
|
...attributes,
|
|
1678
1679
|
children
|
|
@@ -1682,9 +1683,9 @@ 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
|
-
const attributes = mergeProps(listbox.getInputProps(), { className:
|
|
1688
|
+
const attributes = mergeProps(listbox.getInputProps(), { className: classes.listbox.input }, rest);
|
|
1688
1689
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
1689
1690
|
}
|
|
1690
1691
|
|
|
@@ -1695,13 +1696,13 @@ 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
|
|
1702
1703
|
});
|
|
1703
1704
|
const { element, children, ...rest } = componentProps;
|
|
1704
|
-
const attributes = mergeProps(listbox.getItemGroupLabelProps(itemGroupLabelProps), { className:
|
|
1705
|
+
const attributes = mergeProps(listbox.getItemGroupLabelProps(itemGroupLabelProps), { className: classes.listbox.itemGroupLabel }, rest);
|
|
1705
1706
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1706
1707
|
...attributes,
|
|
1707
1708
|
children
|
|
@@ -1711,13 +1712,13 @@ 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
|
|
1718
1719
|
});
|
|
1719
1720
|
const { element, children, ...rest } = componentProps;
|
|
1720
|
-
const attributes = mergeProps(listbox.getItemGroupProps(itemGroupProps), { className:
|
|
1721
|
+
const attributes = mergeProps(listbox.getItemGroupProps(itemGroupProps), { className: classes.listbox.itemGroup }, rest);
|
|
1721
1722
|
return /* @__PURE__ */ jsx(ItemGroupContext$1.Provider, {
|
|
1722
1723
|
value: itemGroupProps,
|
|
1723
1724
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1729,15 +1730,15 @@ 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
|
-
const attributes = mergeProps(listbox.getItemIndicatorProps(itemProps), { className:
|
|
1741
|
+
const attributes = mergeProps(listbox.getItemIndicatorProps(itemProps), { className: classes.listbox.itemIndicator }, rest);
|
|
1741
1742
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
1742
1743
|
...attributes,
|
|
1743
1744
|
children
|
|
@@ -1747,10 +1748,10 @@ 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
|
-
const attributes = mergeProps(listbox.getItemTextProps(itemProps), { className:
|
|
1754
|
+
const attributes = mergeProps(listbox.getItemTextProps(itemProps), { className: classes.listbox.itemText }, rest);
|
|
1754
1755
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
1755
1756
|
...attributes,
|
|
1756
1757
|
children
|
|
@@ -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
|
-
const attributes = mergeProps(listbox.getItemProps(itemProps), { className:
|
|
1767
|
-
return /* @__PURE__ */ jsx(ItemContext$
|
|
1767
|
+
const attributes = mergeProps(listbox.getItemProps(itemProps), { className: classes.listbox.item }, rest);
|
|
1768
|
+
return /* @__PURE__ */ jsx(ItemContext$4.Provider, {
|
|
1768
1769
|
value: itemProps,
|
|
1769
1770
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("li", {
|
|
1770
1771
|
...attributes,
|
|
@@ -1776,9 +1777,9 @@ 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
|
-
const attributes = mergeProps(listbox.getLabelProps(), { className:
|
|
1782
|
+
const attributes = mergeProps(listbox.getLabelProps(), { className: classes.listbox.label }, rest);
|
|
1782
1783
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
1783
1784
|
...attributes,
|
|
1784
1785
|
children
|
|
@@ -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
|
-
const attributes = mergeProps(listbox.getRootProps(), { className:
|
|
1810
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
1810
|
+
const attributes = mergeProps(listbox.getRootProps(), { className: classes.listbox.root }, rest);
|
|
1811
|
+
return /* @__PURE__ */ jsx(RootContext$32.Provider, {
|
|
1811
1812
|
value: listbox,
|
|
1812
1813
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1813
1814
|
...attributes,
|
|
@@ -1822,8 +1823,8 @@ function Root$12(props) {
|
|
|
1822
1823
|
const [listboxProps, componentProps] = splitProps$8(props);
|
|
1823
1824
|
const { element, children, ...rest } = componentProps;
|
|
1824
1825
|
const listbox = useListbox(listboxProps);
|
|
1825
|
-
const attributes = mergeProps(listbox.getRootProps(), { className:
|
|
1826
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
1826
|
+
const attributes = mergeProps(listbox.getRootProps(), { className: classes.listbox.root }, rest);
|
|
1827
|
+
return /* @__PURE__ */ jsx(RootContext$32.Provider, {
|
|
1827
1828
|
value: listbox,
|
|
1828
1829
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1829
1830
|
...attributes,
|
|
@@ -1835,28 +1836,28 @@ 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
|
-
const attributes = mergeProps(menu.getArrowTipProps(), { className:
|
|
1860
|
+
const attributes = mergeProps(menu.getArrowTipProps(), { className: classes.menu.arrowTip }, rest);
|
|
1860
1861
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1861
1862
|
...attributes,
|
|
1862
1863
|
children
|
|
@@ -1866,9 +1867,9 @@ 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
|
-
const attributes = mergeProps(menu.getArrowProps(), { className:
|
|
1872
|
+
const attributes = mergeProps(menu.getArrowProps(), { className: classes.menu.arrow }, rest);
|
|
1872
1873
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1873
1874
|
...attributes,
|
|
1874
1875
|
children
|
|
@@ -1877,10 +1878,10 @@ 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
|
-
const attributes = mergeProps(menu.getContentProps(), { className:
|
|
1884
|
+
const attributes = mergeProps(menu.getContentProps(), { className: classes.menu.content }, rest);
|
|
1884
1885
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1885
1886
|
...attributes,
|
|
1886
1887
|
children
|
|
@@ -1890,9 +1891,9 @@ 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
|
-
const attributes = mergeProps(menu.getContextTriggerProps(), { className:
|
|
1896
|
+
const attributes = mergeProps(menu.getContextTriggerProps(), { className: classes.menu.contextTrigger }, rest);
|
|
1896
1897
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1897
1898
|
...attributes,
|
|
1898
1899
|
children
|
|
@@ -1901,10 +1902,10 @@ 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
|
-
const attributes = mergeProps(menu.getIndicatorProps(), { className:
|
|
1908
|
+
const attributes = mergeProps(menu.getIndicatorProps(), { className: classes.menu.indicator }, rest);
|
|
1908
1909
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1909
1910
|
...attributes,
|
|
1910
1911
|
children
|
|
@@ -1918,13 +1919,13 @@ 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
|
|
1925
1926
|
});
|
|
1926
1927
|
const { element, children, ...rest } = componentProps;
|
|
1927
|
-
const attributes = mergeProps(menu.getItemGroupLabelProps(labelProps), { className:
|
|
1928
|
+
const attributes = mergeProps(menu.getItemGroupLabelProps(labelProps), { className: classes.menu.itemGroupLabel }, rest);
|
|
1928
1929
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1929
1930
|
...attributes,
|
|
1930
1931
|
children
|
|
@@ -1934,13 +1935,13 @@ 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
|
|
1941
1942
|
});
|
|
1942
1943
|
const { element, children, ...rest } = componentProps;
|
|
1943
|
-
const attributes = mergeProps(menu.getItemGroupProps(itemGroupProps), { className:
|
|
1944
|
+
const attributes = mergeProps(menu.getItemGroupProps(itemGroupProps), { className: classes.menu.itemGroup }, rest);
|
|
1944
1945
|
return /* @__PURE__ */ jsx(ItemGroupContext.Provider, {
|
|
1945
1946
|
value: itemGroupProps,
|
|
1946
1947
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1952,15 +1953,15 @@ 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
|
-
const attributes = mergeProps(menu.getItemIndicatorProps(itemProps), { className:
|
|
1964
|
+
const attributes = mergeProps(menu.getItemIndicatorProps(itemProps), { className: classes.menu.itemIndicator }, rest);
|
|
1964
1965
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1965
1966
|
...attributes,
|
|
1966
1967
|
children
|
|
@@ -1970,10 +1971,10 @@ 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
|
-
const attributes = mergeProps(menu.getItemTextProps(itemProps), { className:
|
|
1977
|
+
const attributes = mergeProps(menu.getItemTextProps(itemProps), { className: classes.menu.itemText }, rest);
|
|
1977
1978
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1978
1979
|
...attributes,
|
|
1979
1980
|
children
|
|
@@ -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
|
-
const attributes = mergeProps(menu.getItemProps(itemProps), { className:
|
|
1990
|
-
return /* @__PURE__ */ jsx(ItemContext$
|
|
1990
|
+
const attributes = mergeProps(menu.getItemProps(itemProps), { className: classes.menu.item }, rest);
|
|
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
|
-
const attributes = mergeProps(menu.getOptionItemProps(itemProps), { className:
|
|
2006
|
-
return /* @__PURE__ */ jsx(ItemContext$
|
|
2006
|
+
const attributes = mergeProps(menu.getOptionItemProps(itemProps), { className: classes.menu.item }, rest);
|
|
2007
|
+
return /* @__PURE__ */ jsx(ItemContext$3.Provider, {
|
|
2007
2008
|
value: itemProps,
|
|
2008
2009
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2009
2010
|
...attributes,
|
|
@@ -2015,9 +2016,9 @@ 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
|
-
const attributes = mergeProps(menu.getPositionerProps(), { className:
|
|
2021
|
+
const attributes = mergeProps(menu.getPositionerProps(), { className: classes.menu.positioner }, rest);
|
|
2021
2022
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2022
2023
|
...attributes,
|
|
2023
2024
|
children
|
|
@@ -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,10 +2092,10 @@ 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
|
-
const attributes = mergeProps(menu.getSeparatorProps(), { className:
|
|
2098
|
+
const attributes = mergeProps(menu.getSeparatorProps(), { className: classes.menu.separator }, rest);
|
|
2098
2099
|
return element ? element(attributes) : /* @__PURE__ */ jsx("hr", { ...attributes });
|
|
2099
2100
|
}
|
|
2100
2101
|
|
|
@@ -2104,8 +2105,8 @@ function TriggerItem(props) {
|
|
|
2104
2105
|
const triggerItemProps = use(TriggerItemContext);
|
|
2105
2106
|
const [itemProps, componentProps] = splitItemProps$4(props);
|
|
2106
2107
|
const { element, children, ...rest } = componentProps;
|
|
2107
|
-
const attributes = mergeProps(triggerItemProps, { className:
|
|
2108
|
-
return /* @__PURE__ */ jsx(ItemContext$
|
|
2108
|
+
const attributes = mergeProps(triggerItemProps, { className: classes.menu.item }, rest);
|
|
2109
|
+
return /* @__PURE__ */ jsx(ItemContext$3.Provider, {
|
|
2109
2110
|
value: itemProps,
|
|
2110
2111
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2111
2112
|
...attributes,
|
|
@@ -2116,10 +2117,10 @@ 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
|
-
const attributes = mergeProps(menu.getTriggerProps(), { className:
|
|
2123
|
+
const attributes = mergeProps(menu.getTriggerProps(), { className: classes.menu.trigger }, rest);
|
|
2123
2124
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
2124
2125
|
...attributes,
|
|
2125
2126
|
children
|
|
@@ -2129,37 +2130,37 @@ 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
|
-
className:
|
|
2163
|
+
className: classes.navigation.content
|
|
2163
2164
|
}, rest);
|
|
2164
2165
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2165
2166
|
...attributes,
|
|
@@ -2171,10 +2172,10 @@ 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
|
-
className:
|
|
2178
|
+
className: classes.navigation.footer
|
|
2178
2179
|
}, rest);
|
|
2179
2180
|
return element ? element(attributes) : /* @__PURE__ */ jsx("footer", {
|
|
2180
2181
|
...attributes,
|
|
@@ -2186,10 +2187,10 @@ 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
|
-
className:
|
|
2193
|
+
className: classes.navigation.group
|
|
2193
2194
|
}, rest);
|
|
2194
2195
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2195
2196
|
...attributes,
|
|
@@ -2201,10 +2202,10 @@ 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
|
-
className:
|
|
2208
|
+
className: classes.navigation.header
|
|
2208
2209
|
}, rest);
|
|
2209
2210
|
return element ? element(attributes) : /* @__PURE__ */ jsx("header", {
|
|
2210
2211
|
...attributes,
|
|
@@ -2216,10 +2217,10 @@ 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
|
-
className:
|
|
2223
|
+
className: classes.navigation.label
|
|
2223
2224
|
}, rest);
|
|
2224
2225
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2225
2226
|
...attributes,
|
|
@@ -2231,10 +2232,10 @@ 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
|
-
className:
|
|
2238
|
+
className: classes.navigation.menu
|
|
2238
2239
|
}, rest);
|
|
2239
2240
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2240
2241
|
...attributes,
|
|
@@ -2248,9 +2249,9 @@ function NavigationRoot(props) {
|
|
|
2248
2249
|
const { layout = "bar", element, children, ...rest } = props;
|
|
2249
2250
|
const attributes = mergeProps({
|
|
2250
2251
|
"data-layout": layout,
|
|
2251
|
-
className:
|
|
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,15 +2273,15 @@ 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
|
-
const attributes = mergeProps(pagination.getEllipsisProps(ellipsisProps), { className:
|
|
2284
|
+
const attributes = mergeProps(pagination.getEllipsisProps(ellipsisProps), { className: classes.pagination.ellipsis }, rest);
|
|
2284
2285
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
2285
2286
|
...attributes,
|
|
2286
2287
|
children
|
|
@@ -2290,10 +2291,10 @@ 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
|
-
className:
|
|
2297
|
+
className: classes.pagination.nextTrigger,
|
|
2297
2298
|
onClick: pagination.goToFirstPage
|
|
2298
2299
|
}, rest);
|
|
2299
2300
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -2304,11 +2305,11 @@ 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
|
-
const attributes = mergeProps(pagination.getItemProps(itemProps), { className:
|
|
2312
|
+
const attributes = mergeProps(pagination.getItemProps(itemProps), { className: classes.pagination.item }, rest);
|
|
2312
2313
|
return element ? element(attributes) : /* @__PURE__ */ jsx("a", {
|
|
2313
2314
|
...attributes,
|
|
2314
2315
|
children
|
|
@@ -2318,10 +2319,10 @@ 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
|
-
className:
|
|
2325
|
+
className: classes.pagination.nextTrigger,
|
|
2325
2326
|
onClick: pagination.goToLastPage
|
|
2326
2327
|
}, rest);
|
|
2327
2328
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -2332,10 +2333,10 @@ 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
|
-
const attributes = mergeProps(pagination.getNextTriggerProps(), { className:
|
|
2339
|
+
const attributes = mergeProps(pagination.getNextTriggerProps(), { className: classes.pagination.nextTrigger }, rest);
|
|
2339
2340
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
2340
2341
|
...attributes,
|
|
2341
2342
|
children
|
|
@@ -2344,10 +2345,10 @@ 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
|
-
const attributes = mergeProps(pagination.getPrevTriggerProps(), { className:
|
|
2351
|
+
const attributes = mergeProps(pagination.getPrevTriggerProps(), { className: classes.pagination.prevTrigger }, rest);
|
|
2351
2352
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
2352
2353
|
...attributes,
|
|
2353
2354
|
children
|
|
@@ -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
|
}
|
|
@@ -2366,8 +2367,8 @@ function RootContext$24(props) {
|
|
|
2366
2367
|
//#region src/components/pagination/anatomy/root-provider.tsx
|
|
2367
2368
|
function PaginationRootProvider(props) {
|
|
2368
2369
|
const { element, children, value: pagination, ...rest } = props;
|
|
2369
|
-
const attributes = mergeProps(pagination.getRootProps(), { className:
|
|
2370
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
2370
|
+
const attributes = mergeProps(pagination.getRootProps(), { className: classes.pagination.root }, rest);
|
|
2371
|
+
return /* @__PURE__ */ jsx(RootContext$27.Provider, {
|
|
2371
2372
|
value: pagination,
|
|
2372
2373
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("nav", {
|
|
2373
2374
|
...attributes,
|
|
@@ -2391,8 +2392,8 @@ function PaginationRoot(props) {
|
|
|
2391
2392
|
const [paginationProps, componentProps] = splitProps$10(props);
|
|
2392
2393
|
const { element, children, ...rest } = componentProps;
|
|
2393
2394
|
const pagination = usePagination(paginationProps);
|
|
2394
|
-
const attributes = mergeProps(pagination.getRootProps(), { className:
|
|
2395
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
2395
|
+
const attributes = mergeProps(pagination.getRootProps(), { className: classes.pagination.root }, rest);
|
|
2396
|
+
return /* @__PURE__ */ jsx(RootContext$27.Provider, {
|
|
2396
2397
|
value: pagination,
|
|
2397
2398
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("nav", {
|
|
2398
2399
|
...attributes,
|
|
@@ -2405,25 +2406,25 @@ 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
|
-
const attributes = mergeProps(popover.getAnchorProps(), { className:
|
|
2427
|
+
const attributes = mergeProps(popover.getAnchorProps(), { className: classes.popover.anchor }, rest);
|
|
2427
2428
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2428
2429
|
...attributes,
|
|
2429
2430
|
children
|
|
@@ -2433,9 +2434,9 @@ 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
|
-
const attributes = mergeProps(popover.getArrowTipProps(), { className:
|
|
2439
|
+
const attributes = mergeProps(popover.getArrowTipProps(), { className: classes.popover.arrowTip }, rest);
|
|
2439
2440
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2440
2441
|
...attributes,
|
|
2441
2442
|
children
|
|
@@ -2445,9 +2446,9 @@ 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
|
-
const attributes = mergeProps(popover.getArrowProps(), { className:
|
|
2451
|
+
const attributes = mergeProps(popover.getArrowProps(), { className: classes.popover.arrow }, rest);
|
|
2451
2452
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2452
2453
|
...attributes,
|
|
2453
2454
|
children
|
|
@@ -2457,9 +2458,9 @@ 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
|
-
const attributes = mergeProps(popover.getCloseTriggerProps(), { className:
|
|
2463
|
+
const attributes = mergeProps(popover.getCloseTriggerProps(), { className: classes.popover.closeTrigger }, rest);
|
|
2463
2464
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
2464
2465
|
...attributes,
|
|
2465
2466
|
children
|
|
@@ -2468,10 +2469,10 @@ 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
|
-
const attributes = mergeProps(popover.getContentProps(), { className:
|
|
2475
|
+
const attributes = mergeProps(popover.getContentProps(), { className: classes.popover.content }, rest);
|
|
2475
2476
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2476
2477
|
...attributes,
|
|
2477
2478
|
children
|
|
@@ -2481,9 +2482,9 @@ 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
|
-
const attributes = mergeProps(popover.getDescriptionProps(), { className:
|
|
2487
|
+
const attributes = mergeProps(popover.getDescriptionProps(), { className: classes.popover.description }, rest);
|
|
2487
2488
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2488
2489
|
...attributes,
|
|
2489
2490
|
children
|
|
@@ -2493,9 +2494,9 @@ 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
|
-
const attributes = mergeProps(popover.getPositionerProps(), { className:
|
|
2499
|
+
const attributes = mergeProps(popover.getPositionerProps(), { className: classes.popover.positioner }, rest);
|
|
2499
2500
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2500
2501
|
...attributes,
|
|
2501
2502
|
children
|
|
@@ -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,9 +2545,9 @@ 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
|
-
const attributes = mergeProps(popover.getTitleProps(), { className:
|
|
2550
|
+
const attributes = mergeProps(popover.getTitleProps(), { className: classes.popover.title }, rest);
|
|
2550
2551
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2551
2552
|
...attributes,
|
|
2552
2553
|
children
|
|
@@ -2555,10 +2556,10 @@ 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
|
-
const attributes = mergeProps(popover.getTriggerProps(), { className:
|
|
2562
|
+
const attributes = mergeProps(popover.getTriggerProps(), { className: classes.popover.trigger }, rest);
|
|
2562
2563
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
2563
2564
|
...attributes,
|
|
2564
2565
|
children
|
|
@@ -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,15 +2596,15 @@ 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
|
-
className:
|
|
2607
|
+
className: classes.progress.circleRange,
|
|
2607
2608
|
strokeLinecap: "round"
|
|
2608
2609
|
}, rest);
|
|
2609
2610
|
return element ? element(attributes) : /* @__PURE__ */ jsx("circle", { ...attributes });
|
|
@@ -2612,18 +2613,18 @@ 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
|
-
const attributes = mergeProps(progress.getCircleTrackProps(), { className:
|
|
2618
|
+
const attributes = mergeProps(progress.getCircleTrackProps(), { className: classes.progress.circleTrack }, rest);
|
|
2618
2619
|
return element ? element(attributes) : /* @__PURE__ */ jsx("circle", { ...attributes });
|
|
2619
2620
|
}
|
|
2620
2621
|
|
|
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
|
-
const attributes = mergeProps(progress.getCircleProps(), { className:
|
|
2627
|
+
const attributes = mergeProps(progress.getCircleProps(), { className: classes.progress.circle }, rest);
|
|
2627
2628
|
return element ? element(attributes) : /* @__PURE__ */ jsx("svg", {
|
|
2628
2629
|
...attributes,
|
|
2629
2630
|
children
|
|
@@ -2633,9 +2634,9 @@ 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
|
-
const attributes = mergeProps(progress.getLabelProps(), { className:
|
|
2639
|
+
const attributes = mergeProps(progress.getLabelProps(), { className: classes.progress.label }, rest);
|
|
2639
2640
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2640
2641
|
...attributes,
|
|
2641
2642
|
children
|
|
@@ -2645,26 +2646,26 @@ 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
|
-
const attributes = mergeProps(progress.getRangeProps(), { className:
|
|
2651
|
+
const attributes = mergeProps(progress.getRangeProps(), { className: classes.progress.range }, rest);
|
|
2651
2652
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
|
|
2652
2653
|
}
|
|
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
|
-
const attributes = mergeProps(progress.getRootProps(), { className:
|
|
2667
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
2667
|
+
const attributes = mergeProps(progress.getRootProps(), { className: classes.progress.root }, rest);
|
|
2668
|
+
return /* @__PURE__ */ jsx(RootContext$23.Provider, {
|
|
2668
2669
|
value: progress,
|
|
2669
2670
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2670
2671
|
...attributes,
|
|
@@ -2688,8 +2689,8 @@ function Root$8(props) {
|
|
|
2688
2689
|
const [progressProps, componentProps] = splitProps$12(props);
|
|
2689
2690
|
const { element, children, ...rest } = componentProps;
|
|
2690
2691
|
const progress = useProgress(progressProps);
|
|
2691
|
-
const attributes = mergeProps(progress.getRootProps(), { className:
|
|
2692
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
2692
|
+
const attributes = mergeProps(progress.getRootProps(), { className: classes.progress.root }, rest);
|
|
2693
|
+
return /* @__PURE__ */ jsx(RootContext$23.Provider, {
|
|
2693
2694
|
value: progress,
|
|
2694
2695
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2695
2696
|
...attributes,
|
|
@@ -2701,9 +2702,9 @@ 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
|
-
const attributes = mergeProps(progress.getTrackProps(), { className:
|
|
2707
|
+
const attributes = mergeProps(progress.getTrackProps(), { className: classes.progress.track }, rest);
|
|
2707
2708
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2708
2709
|
...attributes,
|
|
2709
2710
|
children
|
|
@@ -2713,9 +2714,9 @@ 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
|
-
const attributes = mergeProps(progress.getValueTextProps(), { className:
|
|
2719
|
+
const attributes = mergeProps(progress.getValueTextProps(), { className: classes.progress.valueText }, rest);
|
|
2719
2720
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
2720
2721
|
...attributes,
|
|
2721
2722
|
children: children ?? progress.percentAsString
|
|
@@ -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,14 +2739,14 @@ 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
|
-
const attributes = mergeProps(ratingGroup.getControlProps(), { className:
|
|
2749
|
+
const attributes = mergeProps(ratingGroup.getControlProps(), { className: classes.ratingGroup.control }, rest);
|
|
2749
2750
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2750
2751
|
...attributes,
|
|
2751
2752
|
children
|
|
@@ -2755,9 +2756,9 @@ 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
|
-
const attributes = mergeProps(ratingGroup.getHiddenInputProps(), { className:
|
|
2761
|
+
const attributes = mergeProps(ratingGroup.getHiddenInputProps(), { className: classes.ratingGroup.hiddenInput }, rest);
|
|
2761
2762
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
2762
2763
|
}
|
|
2763
2764
|
|
|
@@ -2841,12 +2842,12 @@ 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);
|
|
2849
|
-
const attributes = mergeProps(ratingGroup.getItemProps(itemProps), { className:
|
|
2850
|
+
const attributes = mergeProps(ratingGroup.getItemProps(itemProps), { className: classes.ratingGroup.item }, rest);
|
|
2850
2851
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2851
2852
|
...attributes,
|
|
2852
2853
|
children: children ? children : !itemState.highlighted ? empty : itemState.half ? half : full
|
|
@@ -2856,9 +2857,9 @@ 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
|
-
const attributes = mergeProps(ratingGroup.getLabelProps(), { className:
|
|
2862
|
+
const attributes = mergeProps(ratingGroup.getLabelProps(), { className: classes.ratingGroup.label }, rest);
|
|
2862
2863
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
2863
2864
|
...attributes,
|
|
2864
2865
|
children
|
|
@@ -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
|
-
const attributes = mergeProps(ratingGroup.getRootProps(), { className:
|
|
2881
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
2881
|
+
const attributes = mergeProps(ratingGroup.getRootProps(), { className: classes.ratingGroup.root }, rest);
|
|
2882
|
+
return /* @__PURE__ */ jsx(RootContext$21.Provider, {
|
|
2882
2883
|
value: ratingGroup,
|
|
2883
2884
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2884
2885
|
...attributes,
|
|
@@ -2902,8 +2903,8 @@ function Root$7(props) {
|
|
|
2902
2903
|
const [ratingGroupProps, componentProps] = splitProps$13(props);
|
|
2903
2904
|
const { element, children, ...rest } = componentProps;
|
|
2904
2905
|
const ratingGroup = useRatingGroup(ratingGroupProps);
|
|
2905
|
-
const attributes = mergeProps(ratingGroup.getRootProps(), { className:
|
|
2906
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
2906
|
+
const attributes = mergeProps(ratingGroup.getRootProps(), { className: classes.ratingGroup.root }, rest);
|
|
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
|
|
|
@@ -2927,7 +2928,7 @@ const RatingGroup = Object.assign(Root$7, {
|
|
|
2927
2928
|
//#region src/components/segmented-control/anatomy/control.tsx
|
|
2928
2929
|
function Control$3(props) {
|
|
2929
2930
|
const { element, children, ...rest } = props;
|
|
2930
|
-
const attributes = mergeProps({ className:
|
|
2931
|
+
const attributes = mergeProps({ className: classes.segmentedControl.control }, rest);
|
|
2931
2932
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2932
2933
|
...attributes,
|
|
2933
2934
|
children
|
|
@@ -2936,38 +2937,38 @@ 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
|
-
const attributes = mergeProps(segmentedControl.getIndicatorProps(), { className:
|
|
2947
|
+
const attributes = mergeProps(segmentedControl.getIndicatorProps(), { className: classes.segmentedControl.indicator }, rest);
|
|
2947
2948
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
|
|
2948
2949
|
}
|
|
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
|
-
const attributes = mergeProps(segmentedControl.getItemHiddenInputProps(itemProps), { className:
|
|
2961
|
+
const attributes = mergeProps(segmentedControl.getItemHiddenInputProps(itemProps), { className: classes.segmentedControl.itemHiddenInput }, rest);
|
|
2961
2962
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
2962
2963
|
}
|
|
2963
2964
|
|
|
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
|
-
const attributes = mergeProps(segmentedControl.getItemTextProps(itemProps), { className:
|
|
2971
|
+
const attributes = mergeProps(segmentedControl.getItemTextProps(itemProps), { className: classes.segmentedControl.itemText }, rest);
|
|
2971
2972
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
2972
2973
|
...attributes,
|
|
2973
2974
|
children
|
|
@@ -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
|
-
const attributes = mergeProps(segmentedControl.getItemProps(itemProps), { className:
|
|
2984
|
-
return /* @__PURE__ */ jsx(ItemContext$
|
|
2984
|
+
const attributes = mergeProps(segmentedControl.getItemProps(itemProps), { className: classes.segmentedControl.item }, rest);
|
|
2985
|
+
return /* @__PURE__ */ jsx(ItemContext$2.Provider, {
|
|
2985
2986
|
value: itemProps,
|
|
2986
2987
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
2987
2988
|
...attributes,
|
|
@@ -2993,9 +2994,9 @@ 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
|
-
const attributes = mergeProps(segmentedControl.getLabelProps(), { className:
|
|
2999
|
+
const attributes = mergeProps(segmentedControl.getLabelProps(), { className: classes.segmentedControl.label }, rest);
|
|
2999
3000
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
3000
3001
|
...attributes,
|
|
3001
3002
|
children
|
|
@@ -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
|
-
const attributes = mergeProps(segmentedControl.getRootProps(), { className:
|
|
3018
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
3018
|
+
const attributes = mergeProps(segmentedControl.getRootProps(), { className: classes.segmentedControl.root }, rest);
|
|
3019
|
+
return /* @__PURE__ */ jsx(RootContext$19.Provider, {
|
|
3019
3020
|
value: segmentedControl,
|
|
3020
3021
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3021
3022
|
...attributes,
|
|
@@ -3040,8 +3041,8 @@ function Root$6(props) {
|
|
|
3040
3041
|
const [segmentedControlProps, componentProps] = splitProps$14(props);
|
|
3041
3042
|
const { element, children, ...rest } = componentProps;
|
|
3042
3043
|
const segmentedControl = useSegmentedControl(segmentedControlProps);
|
|
3043
|
-
const attributes = mergeProps(segmentedControl.getRootProps(), { className:
|
|
3044
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
3044
|
+
const attributes = mergeProps(segmentedControl.getRootProps(), { className: classes.segmentedControl.root }, rest);
|
|
3045
|
+
return /* @__PURE__ */ jsx(RootContext$19.Provider, {
|
|
3045
3046
|
value: segmentedControl,
|
|
3046
3047
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3047
3048
|
...attributes,
|
|
@@ -3053,26 +3054,26 @@ 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
|
-
const attributes = mergeProps(slider.getControlProps(), { className:
|
|
3076
|
+
const attributes = mergeProps(slider.getControlProps(), { className: classes.slider.control }, rest);
|
|
3076
3077
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3077
3078
|
...attributes,
|
|
3078
3079
|
children
|
|
@@ -3086,19 +3087,19 @@ 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
|
-
const attributes = mergeProps(slider.getHiddenInputProps(thumbProps), { className:
|
|
3093
|
+
const attributes = mergeProps(slider.getHiddenInputProps(thumbProps), { className: classes.slider.hiddenInput }, rest);
|
|
3093
3094
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
3094
3095
|
}
|
|
3095
3096
|
|
|
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
|
-
const attributes = mergeProps(slider.getLabelProps(), { className:
|
|
3102
|
+
const attributes = mergeProps(slider.getLabelProps(), { className: classes.slider.label }, rest);
|
|
3102
3103
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
3103
3104
|
...attributes,
|
|
3104
3105
|
children
|
|
@@ -3108,9 +3109,9 @@ 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
|
-
const attributes = mergeProps(slider.getMarkerGroupProps(), { className:
|
|
3114
|
+
const attributes = mergeProps(slider.getMarkerGroupProps(), { className: classes.slider.markerGroup }, rest);
|
|
3114
3115
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3115
3116
|
...attributes,
|
|
3116
3117
|
children
|
|
@@ -3120,9 +3121,9 @@ 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
|
-
const attributes = mergeProps(slider.getMarkerProps({ value }), { className:
|
|
3126
|
+
const attributes = mergeProps(slider.getMarkerProps({ value }), { className: classes.slider.marker }, rest);
|
|
3126
3127
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3127
3128
|
...attributes,
|
|
3128
3129
|
children: children ?? value
|
|
@@ -3132,9 +3133,9 @@ 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
|
-
const attributes = mergeProps(slider.getRangeProps(), { className:
|
|
3138
|
+
const attributes = mergeProps(slider.getRangeProps(), { className: classes.slider.range }, rest);
|
|
3138
3139
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3139
3140
|
...attributes,
|
|
3140
3141
|
children
|
|
@@ -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
|
}
|
|
@@ -3153,8 +3154,8 @@ function RootContext$14(props) {
|
|
|
3153
3154
|
//#region src/components/slider/anatomy/root-provider.tsx
|
|
3154
3155
|
function SliderRootProvider(props) {
|
|
3155
3156
|
const { element, children, value: slider, ...rest } = props;
|
|
3156
|
-
const attributes = mergeProps(slider.getRootProps(), { className:
|
|
3157
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
3157
|
+
const attributes = mergeProps(slider.getRootProps(), { className: classes.slider.root }, rest);
|
|
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
|
-
const attributes = mergeProps(slider.getRootProps(), { className:
|
|
3182
|
-
return /* @__PURE__ */ jsx(RootContext$
|
|
3182
|
+
const attributes = mergeProps(slider.getRootProps(), { className: classes.slider.root }, rest);
|
|
3183
|
+
return /* @__PURE__ */ jsx(RootContext$17.Provider, {
|
|
3183
3184
|
value: slider,
|
|
3184
3185
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3185
3186
|
...attributes,
|
|
@@ -3191,10 +3192,10 @@ 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
|
-
const attributes = mergeProps(slider.getThumbProps(thumbProps), { className:
|
|
3198
|
+
const attributes = mergeProps(slider.getThumbProps(thumbProps), { className: classes.slider.thumb }, rest);
|
|
3198
3199
|
return /* @__PURE__ */ jsx(ThumbContext.Provider, {
|
|
3199
3200
|
value: thumbProps,
|
|
3200
3201
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3207,9 +3208,9 @@ 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
|
-
const attributes = mergeProps(slider.getTrackProps(), { className:
|
|
3213
|
+
const attributes = mergeProps(slider.getTrackProps(), { className: classes.slider.track }, rest);
|
|
3213
3214
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3214
3215
|
...attributes,
|
|
3215
3216
|
children
|
|
@@ -3219,9 +3220,9 @@ 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
|
-
const attributes = mergeProps(slider.getValueTextProps(), { className:
|
|
3225
|
+
const attributes = mergeProps(slider.getValueTextProps(), { className: classes.slider.valueText }, rest);
|
|
3225
3226
|
return element ? element(attributes) : /* @__PURE__ */ jsx("output", {
|
|
3226
3227
|
...attributes,
|
|
3227
3228
|
children
|
|
@@ -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();
|
|
@@ -3253,7 +3427,7 @@ const RootContext$13 = createContext$1();
|
|
|
3253
3427
|
function Control$1(props) {
|
|
3254
3428
|
const switch_ = use(RootContext$13);
|
|
3255
3429
|
const { element, children, ...rest } = props;
|
|
3256
|
-
const attributes = mergeProps(switch_.getControlProps(), { className:
|
|
3430
|
+
const attributes = mergeProps(switch_.getControlProps(), { className: classes.switch.control }, rest);
|
|
3257
3431
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
3258
3432
|
...attributes,
|
|
3259
3433
|
children
|
|
@@ -3265,7 +3439,7 @@ function Control$1(props) {
|
|
|
3265
3439
|
function HiddenInput$1(props) {
|
|
3266
3440
|
const switch_ = use(RootContext$13);
|
|
3267
3441
|
const { element, ...rest } = props;
|
|
3268
|
-
const attributes = mergeProps(switch_.getHiddenInputProps(), { className:
|
|
3442
|
+
const attributes = mergeProps(switch_.getHiddenInputProps(), { className: classes.switch.hiddenInput }, rest);
|
|
3269
3443
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
3270
3444
|
}
|
|
3271
3445
|
|
|
@@ -3274,7 +3448,7 @@ function HiddenInput$1(props) {
|
|
|
3274
3448
|
function Label$2(props) {
|
|
3275
3449
|
const switch_ = use(RootContext$13);
|
|
3276
3450
|
const { element, children, ...rest } = props;
|
|
3277
|
-
const attributes = mergeProps(switch_.getLabelProps(), { className:
|
|
3451
|
+
const attributes = mergeProps(switch_.getLabelProps(), { className: classes.switch.label }, rest);
|
|
3278
3452
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
3279
3453
|
...attributes,
|
|
3280
3454
|
children
|
|
@@ -3293,7 +3467,7 @@ function RootContext$12(props) {
|
|
|
3293
3467
|
//#region src/components/switch/anatomy/root-provider.tsx
|
|
3294
3468
|
function RootProvider$4(props) {
|
|
3295
3469
|
const { element, children, value: switch_, ...rest } = props;
|
|
3296
|
-
const attributes = mergeProps(switch_.getRootProps(), { className:
|
|
3470
|
+
const attributes = mergeProps(switch_.getRootProps(), { className: classes.switch.root }, rest);
|
|
3297
3471
|
return /* @__PURE__ */ jsx(RootContext$13.Provider, {
|
|
3298
3472
|
value: switch_,
|
|
3299
3473
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
@@ -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,10 +3489,10 @@ 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
|
-
const attributes = mergeProps(switch_.getRootProps(), { className:
|
|
3495
|
+
const attributes = mergeProps(switch_.getRootProps(), { className: classes.switch.root }, rest);
|
|
3322
3496
|
return /* @__PURE__ */ jsx(RootContext$13.Provider, {
|
|
3323
3497
|
value: switch_,
|
|
3324
3498
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
@@ -3333,7 +3507,7 @@ function Root$5(props) {
|
|
|
3333
3507
|
function Thumb(props) {
|
|
3334
3508
|
const switch_ = use(RootContext$13);
|
|
3335
3509
|
const { element, children, ...rest } = props;
|
|
3336
|
-
const attributes = mergeProps(switch_.getThumbProps(), { className:
|
|
3510
|
+
const attributes = mergeProps(switch_.getThumbProps(), { className: classes.switch.thumb }, rest);
|
|
3337
3511
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
3338
3512
|
...attributes,
|
|
3339
3513
|
children
|
|
@@ -3361,7 +3535,7 @@ function Content$1(props) {
|
|
|
3361
3535
|
const tabs = use(RootContext$11);
|
|
3362
3536
|
const [contentProps, componentProps] = splitContentProps(props);
|
|
3363
3537
|
const { element, children, ...rest } = componentProps;
|
|
3364
|
-
const attributes = mergeProps(tabs.getContentProps(contentProps), { className:
|
|
3538
|
+
const attributes = mergeProps(tabs.getContentProps(contentProps), { className: classes.tabs.content }, rest);
|
|
3365
3539
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3366
3540
|
...attributes,
|
|
3367
3541
|
children
|
|
@@ -3373,7 +3547,7 @@ function Content$1(props) {
|
|
|
3373
3547
|
function Indicator(props) {
|
|
3374
3548
|
const tabs = use(RootContext$11);
|
|
3375
3549
|
const { element, ...rest } = props;
|
|
3376
|
-
const attributes = mergeProps(tabs.getIndicatorProps(), { className:
|
|
3550
|
+
const attributes = mergeProps(tabs.getIndicatorProps(), { className: classes.tabs.indicator }, rest);
|
|
3377
3551
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
|
|
3378
3552
|
}
|
|
3379
3553
|
|
|
@@ -3382,7 +3556,7 @@ function Indicator(props) {
|
|
|
3382
3556
|
function List(props) {
|
|
3383
3557
|
const tabs = use(RootContext$11);
|
|
3384
3558
|
const { element, children, ...rest } = props;
|
|
3385
|
-
const attributes = mergeProps(tabs.getListProps(), { className:
|
|
3559
|
+
const attributes = mergeProps(tabs.getListProps(), { className: classes.tabs.list }, rest);
|
|
3386
3560
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3387
3561
|
...attributes,
|
|
3388
3562
|
children
|
|
@@ -3401,7 +3575,7 @@ function RootContext$10(props) {
|
|
|
3401
3575
|
//#region src/components/tabs/anatomy/root-provider.tsx
|
|
3402
3576
|
function RootProvider$3(props) {
|
|
3403
3577
|
const { element, children, value: tabs, ...rest } = props;
|
|
3404
|
-
const attributes = mergeProps(tabs.getRootProps(), { className:
|
|
3578
|
+
const attributes = mergeProps(tabs.getRootProps(), { className: classes.tabs.root }, rest);
|
|
3405
3579
|
return /* @__PURE__ */ jsx(RootContext$11.Provider, {
|
|
3406
3580
|
value: tabs,
|
|
3407
3581
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -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,10 +3597,10 @@ 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
|
-
const attributes = mergeProps(tabs.getRootProps(), { className:
|
|
3603
|
+
const attributes = mergeProps(tabs.getRootProps(), { className: classes.tabs.root }, rest);
|
|
3430
3604
|
return /* @__PURE__ */ jsx(RootContext$11.Provider, {
|
|
3431
3605
|
value: tabs,
|
|
3432
3606
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3442,7 +3616,7 @@ function Trigger$1(props) {
|
|
|
3442
3616
|
const tabs = use(RootContext$11);
|
|
3443
3617
|
const [triggerProps, componentProps] = splitTriggerProps(props);
|
|
3444
3618
|
const { element, children, ...rest } = componentProps;
|
|
3445
|
-
const attributes = mergeProps(tabs.getTriggerProps(triggerProps), { className:
|
|
3619
|
+
const attributes = mergeProps(tabs.getTriggerProps(triggerProps), { className: classes.tabs.trigger }, rest);
|
|
3446
3620
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
3447
3621
|
...attributes,
|
|
3448
3622
|
children
|
|
@@ -3469,7 +3643,7 @@ const RootContext$9 = createContext$1();
|
|
|
3469
3643
|
function ClearTrigger(props) {
|
|
3470
3644
|
const tagsInput = use(RootContext$9);
|
|
3471
3645
|
const { element, children, ...rest } = props;
|
|
3472
|
-
const attributes = mergeProps(tagsInput.getClearTriggerProps(), { className:
|
|
3646
|
+
const attributes = mergeProps(tagsInput.getClearTriggerProps(), { className: classes.tagsInput.clearTrigger }, rest);
|
|
3473
3647
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
3474
3648
|
...attributes,
|
|
3475
3649
|
children
|
|
@@ -3481,7 +3655,7 @@ function ClearTrigger(props) {
|
|
|
3481
3655
|
function Control(props) {
|
|
3482
3656
|
const tagsInput = use(RootContext$9);
|
|
3483
3657
|
const { element, children, ...rest } = props;
|
|
3484
|
-
const attributes = mergeProps(tagsInput.getControlProps(), { className:
|
|
3658
|
+
const attributes = mergeProps(tagsInput.getControlProps(), { className: classes.tagsInput.control }, rest);
|
|
3485
3659
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3486
3660
|
...attributes,
|
|
3487
3661
|
children
|
|
@@ -3493,7 +3667,7 @@ function Control(props) {
|
|
|
3493
3667
|
function HiddenInput(props) {
|
|
3494
3668
|
const tagsInput = use(RootContext$9);
|
|
3495
3669
|
const { element, ...rest } = props;
|
|
3496
|
-
const attributes = mergeProps(tagsInput.getHiddenInputProps(), { className:
|
|
3670
|
+
const attributes = mergeProps(tagsInput.getHiddenInputProps(), { className: classes.tagsInput.hiddenInput }, rest);
|
|
3497
3671
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
3498
3672
|
}
|
|
3499
3673
|
|
|
@@ -3502,7 +3676,7 @@ function HiddenInput(props) {
|
|
|
3502
3676
|
function Input(props) {
|
|
3503
3677
|
const tagsInput = use(RootContext$9);
|
|
3504
3678
|
const { element, ...rest } = props;
|
|
3505
|
-
const attributes = mergeProps(tagsInput.getInputProps(), { className:
|
|
3679
|
+
const attributes = mergeProps(tagsInput.getInputProps(), { className: classes.tagsInput.input }, rest);
|
|
3506
3680
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
3507
3681
|
}
|
|
3508
3682
|
|
|
@@ -3516,7 +3690,7 @@ function ItemDeleteTrigger(props) {
|
|
|
3516
3690
|
const tagsInput = use(RootContext$9);
|
|
3517
3691
|
const itemProps = use(ItemContext);
|
|
3518
3692
|
const { element, children = /* @__PURE__ */ jsx(Fragment, { children: "×" }), ...rest } = props;
|
|
3519
|
-
const attributes = mergeProps(tagsInput.getItemDeleteTriggerProps(itemProps), { className:
|
|
3693
|
+
const attributes = mergeProps(tagsInput.getItemDeleteTriggerProps(itemProps), { className: classes.tagsInput.itemDeleteTrigger }, rest);
|
|
3520
3694
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
3521
3695
|
...attributes,
|
|
3522
3696
|
children
|
|
@@ -3529,7 +3703,7 @@ function ItemInput(props) {
|
|
|
3529
3703
|
const tagsInput = use(RootContext$9);
|
|
3530
3704
|
const itemProps = use(ItemContext);
|
|
3531
3705
|
const { element, ...rest } = props;
|
|
3532
|
-
const attributes = mergeProps(tagsInput.getItemInputProps(itemProps), { className:
|
|
3706
|
+
const attributes = mergeProps(tagsInput.getItemInputProps(itemProps), { className: classes.tagsInput.itemInput }, rest);
|
|
3533
3707
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
3534
3708
|
}
|
|
3535
3709
|
|
|
@@ -3539,7 +3713,7 @@ function ItemPreview(props) {
|
|
|
3539
3713
|
const tagsInput = use(RootContext$9);
|
|
3540
3714
|
const itemProps = use(ItemContext);
|
|
3541
3715
|
const { element, children, ...rest } = props;
|
|
3542
|
-
const attributes = mergeProps(tagsInput.getItemPreviewProps(itemProps), { className:
|
|
3716
|
+
const attributes = mergeProps(tagsInput.getItemPreviewProps(itemProps), { className: classes.tagsInput.itemPreview }, rest);
|
|
3543
3717
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3544
3718
|
...attributes,
|
|
3545
3719
|
children
|
|
@@ -3552,7 +3726,7 @@ function ItemText(props) {
|
|
|
3552
3726
|
const tagsInput = use(RootContext$9);
|
|
3553
3727
|
const itemProps = use(ItemContext);
|
|
3554
3728
|
const { element, children, ...rest } = props;
|
|
3555
|
-
const attributes = mergeProps(tagsInput.getItemTextProps(itemProps), { className:
|
|
3729
|
+
const attributes = mergeProps(tagsInput.getItemTextProps(itemProps), { className: classes.tagsInput.itemText }, rest);
|
|
3556
3730
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
3557
3731
|
...attributes,
|
|
3558
3732
|
children
|
|
@@ -3565,7 +3739,7 @@ function Item$2(props) {
|
|
|
3565
3739
|
const tagsInput = use(RootContext$9);
|
|
3566
3740
|
const [itemProps, componentProps] = splitItemProps$8(props);
|
|
3567
3741
|
const { element, children, ...rest } = componentProps;
|
|
3568
|
-
const attributes = mergeProps(tagsInput.getItemProps(itemProps), { className:
|
|
3742
|
+
const attributes = mergeProps(tagsInput.getItemProps(itemProps), { className: classes.tagsInput.item }, rest);
|
|
3569
3743
|
return /* @__PURE__ */ jsx(ItemContext.Provider, {
|
|
3570
3744
|
value: itemProps,
|
|
3571
3745
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
@@ -3580,7 +3754,7 @@ function Item$2(props) {
|
|
|
3580
3754
|
function Label$1(props) {
|
|
3581
3755
|
const tagsInput = use(RootContext$9);
|
|
3582
3756
|
const { element, children, ...rest } = props;
|
|
3583
|
-
const attributes = mergeProps(tagsInput.getLabelProps(), { className:
|
|
3757
|
+
const attributes = mergeProps(tagsInput.getLabelProps(), { className: classes.tagsInput.label }, rest);
|
|
3584
3758
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
3585
3759
|
...attributes,
|
|
3586
3760
|
children
|
|
@@ -3599,7 +3773,7 @@ function RootContext$8(props) {
|
|
|
3599
3773
|
//#region src/components/tags-input/anatomy/root-provider.tsx
|
|
3600
3774
|
function RootProvider$2(props) {
|
|
3601
3775
|
const { element, children, value: tagsInput, ...rest } = props;
|
|
3602
|
-
const attributes = mergeProps(tagsInput.getRootProps(), { className:
|
|
3776
|
+
const attributes = mergeProps(tagsInput.getRootProps(), { className: classes.tagsInput.root }, rest);
|
|
3603
3777
|
return /* @__PURE__ */ jsx(RootContext$9.Provider, {
|
|
3604
3778
|
value: tagsInput,
|
|
3605
3779
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -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,10 +3795,10 @@ 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
|
-
const attributes = mergeProps(tagsInput.getRootProps(), { className:
|
|
3801
|
+
const attributes = mergeProps(tagsInput.getRootProps(), { className: classes.tagsInput.root }, rest);
|
|
3628
3802
|
return /* @__PURE__ */ jsx(RootContext$9.Provider, {
|
|
3629
3803
|
value: tagsInput,
|
|
3630
3804
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3660,7 +3834,7 @@ const RootContext$7 = createContext$1();
|
|
|
3660
3834
|
function ActionTrigger(props) {
|
|
3661
3835
|
const toast = use(RootContext$7);
|
|
3662
3836
|
const { element, children, ...rest } = props;
|
|
3663
|
-
const attributes = mergeProps(toast.getActionTriggerProps(), { className:
|
|
3837
|
+
const attributes = mergeProps(toast.getActionTriggerProps(), { className: classes.toast.actionTrigger }, rest);
|
|
3664
3838
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
3665
3839
|
...attributes,
|
|
3666
3840
|
children
|
|
@@ -3692,7 +3866,7 @@ function X(props) {
|
|
|
3692
3866
|
function CloseTrigger(props) {
|
|
3693
3867
|
const toast = use(RootContext$7);
|
|
3694
3868
|
const { element, children = /* @__PURE__ */ jsx(X, {}), ...rest } = props;
|
|
3695
|
-
const attributes = mergeProps(toast.getCloseTriggerProps(), { className:
|
|
3869
|
+
const attributes = mergeProps(toast.getCloseTriggerProps(), { className: classes.toast.closeTrigger }, rest);
|
|
3696
3870
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
3697
3871
|
...attributes,
|
|
3698
3872
|
children
|
|
@@ -3704,7 +3878,7 @@ function CloseTrigger(props) {
|
|
|
3704
3878
|
function Description(props) {
|
|
3705
3879
|
const toast = use(RootContext$7);
|
|
3706
3880
|
const { element, children, ...rest } = props;
|
|
3707
|
-
const attributes = mergeProps(toast.getDescriptionProps(), { className:
|
|
3881
|
+
const attributes = mergeProps(toast.getDescriptionProps(), { className: classes.toast.description }, rest);
|
|
3708
3882
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3709
3883
|
...attributes,
|
|
3710
3884
|
children
|
|
@@ -3724,7 +3898,7 @@ function Group(props) {
|
|
|
3724
3898
|
store: toaster
|
|
3725
3899
|
});
|
|
3726
3900
|
const api = group.connect(service, normalizeProps);
|
|
3727
|
-
const attributes = mergeProps(api.getGroupProps(), { className:
|
|
3901
|
+
const attributes = mergeProps(api.getGroupProps(), { className: classes.toast.group }, rest);
|
|
3728
3902
|
return /* @__PURE__ */ jsx(GroupContext.Provider, {
|
|
3729
3903
|
value: service,
|
|
3730
3904
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3738,7 +3912,7 @@ function Group(props) {
|
|
|
3738
3912
|
//#region src/components/toast/anatomy/message.tsx
|
|
3739
3913
|
function Message(props) {
|
|
3740
3914
|
const { element, children, ...rest } = props;
|
|
3741
|
-
const attributes = mergeProps({ className:
|
|
3915
|
+
const attributes = mergeProps({ className: classes.toast.message }, rest);
|
|
3742
3916
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3743
3917
|
...attributes,
|
|
3744
3918
|
children
|
|
@@ -3758,11 +3932,11 @@ 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);
|
|
3765
|
-
const attributes = mergeProps(toast.getRootProps(), { className:
|
|
3939
|
+
const attributes = mergeProps(toast.getRootProps(), { className: classes.toast.root }, rest);
|
|
3766
3940
|
return /* @__PURE__ */ jsx(RootContext$7.Provider, {
|
|
3767
3941
|
value: toast,
|
|
3768
3942
|
children: element ? element(attributes) : /* @__PURE__ */ jsxs("div", {
|
|
@@ -3781,7 +3955,7 @@ function Root$2(props) {
|
|
|
3781
3955
|
function Title(props) {
|
|
3782
3956
|
const toast = use(RootContext$7);
|
|
3783
3957
|
const { element, children, ...rest } = props;
|
|
3784
|
-
const attributes = mergeProps(toast.getTitleProps(), { className:
|
|
3958
|
+
const attributes = mergeProps(toast.getTitleProps(), { className: classes.toast.title }, rest);
|
|
3785
3959
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3786
3960
|
...attributes,
|
|
3787
3961
|
children
|
|
@@ -3810,7 +3984,7 @@ function Item$1(props) {
|
|
|
3810
3984
|
const toggleGroup = use(RootContext$5);
|
|
3811
3985
|
const [itemProps, componentProps] = splitItemProps$9(props);
|
|
3812
3986
|
const { element, children, ...rest } = componentProps;
|
|
3813
|
-
const attributes = mergeProps(toggleGroup.getItemProps(itemProps), { className:
|
|
3987
|
+
const attributes = mergeProps(toggleGroup.getItemProps(itemProps), { className: classes.toggleGroup.item }, rest);
|
|
3814
3988
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
3815
3989
|
...attributes,
|
|
3816
3990
|
children
|
|
@@ -3829,7 +4003,7 @@ function RootContext$4(props) {
|
|
|
3829
4003
|
//#region src/components/toggle-group/anatomy/root-provider.tsx
|
|
3830
4004
|
function ToggleGroupRootProvider(props) {
|
|
3831
4005
|
const { element, children, value: toggleGroup, ...rest } = props;
|
|
3832
|
-
const attributes = mergeProps(toggleGroup.getRootProps(), { className:
|
|
4006
|
+
const attributes = mergeProps(toggleGroup.getRootProps(), { className: classes.toggleGroup.root }, rest);
|
|
3833
4007
|
return /* @__PURE__ */ jsx(RootContext$5.Provider, {
|
|
3834
4008
|
value: toggleGroup,
|
|
3835
4009
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -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,10 +4025,10 @@ 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
|
-
const attributes = mergeProps(toggleGroup.getRootProps(), { className:
|
|
4031
|
+
const attributes = mergeProps(toggleGroup.getRootProps(), { className: classes.toggleGroup.root }, rest);
|
|
3858
4032
|
return /* @__PURE__ */ jsx(RootContext$5.Provider, {
|
|
3859
4033
|
value: toggleGroup,
|
|
3860
4034
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3881,7 +4055,7 @@ const RootContext$3 = createContext$1();
|
|
|
3881
4055
|
function ArrowTip(props) {
|
|
3882
4056
|
const tooltip = use(RootContext$3);
|
|
3883
4057
|
const { element, children, ...rest } = props;
|
|
3884
|
-
const attributes = mergeProps(tooltip.getArrowTipProps(), { className:
|
|
4058
|
+
const attributes = mergeProps(tooltip.getArrowTipProps(), { className: classes.tooltip.arrowTip }, rest);
|
|
3885
4059
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3886
4060
|
...attributes,
|
|
3887
4061
|
children
|
|
@@ -3893,7 +4067,7 @@ function ArrowTip(props) {
|
|
|
3893
4067
|
function Arrow(props) {
|
|
3894
4068
|
const tooltip = use(RootContext$3);
|
|
3895
4069
|
const { element, children, ...rest } = props;
|
|
3896
|
-
const attributes = mergeProps(tooltip.getArrowProps(), { className:
|
|
4070
|
+
const attributes = mergeProps(tooltip.getArrowProps(), { className: classes.tooltip.arrow }, rest);
|
|
3897
4071
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3898
4072
|
...attributes,
|
|
3899
4073
|
children
|
|
@@ -3905,7 +4079,7 @@ function Arrow(props) {
|
|
|
3905
4079
|
function Content(props) {
|
|
3906
4080
|
const tooltip = use(RootContext$3);
|
|
3907
4081
|
const { element, children, ...rest } = props;
|
|
3908
|
-
const attributes = mergeProps(tooltip.getContentProps(), { className:
|
|
4082
|
+
const attributes = mergeProps(tooltip.getContentProps(), { className: classes.tooltip.content }, rest);
|
|
3909
4083
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3910
4084
|
...attributes,
|
|
3911
4085
|
children
|
|
@@ -3917,7 +4091,7 @@ function Content(props) {
|
|
|
3917
4091
|
function Positioner(props) {
|
|
3918
4092
|
const tooltip = use(RootContext$3);
|
|
3919
4093
|
const { element, children, ...rest } = props;
|
|
3920
|
-
const attributes = mergeProps(tooltip.getPositionerProps(), { className:
|
|
4094
|
+
const attributes = mergeProps(tooltip.getPositionerProps(), { className: classes.tooltip.positioner }, rest);
|
|
3921
4095
|
return /* @__PURE__ */ jsx(Portal$1, { children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3922
4096
|
...attributes,
|
|
3923
4097
|
children
|
|
@@ -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, {
|
|
@@ -3968,7 +4142,7 @@ function Root$1(props) {
|
|
|
3968
4142
|
function Trigger(props) {
|
|
3969
4143
|
const tooltip = use(RootContext$3);
|
|
3970
4144
|
const { element, children, ...rest } = props;
|
|
3971
|
-
const attributes = mergeProps(tooltip.getTriggerProps(), { className:
|
|
4145
|
+
const attributes = mergeProps(tooltip.getTriggerProps(), { className: classes.tooltip.trigger }, rest);
|
|
3972
4146
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
3973
4147
|
...attributes,
|
|
3974
4148
|
children
|
|
@@ -4001,7 +4175,7 @@ function BranchContent(props) {
|
|
|
4001
4175
|
const treeView = use(RootContext$1);
|
|
4002
4176
|
const nodeProps = use(NodeContext$1);
|
|
4003
4177
|
const { element, children, ...rest } = props;
|
|
4004
|
-
const attributes = mergeProps(treeView.getBranchContentProps(nodeProps), { className:
|
|
4178
|
+
const attributes = mergeProps(treeView.getBranchContentProps(nodeProps), { className: classes.treeView.branchContent }, rest);
|
|
4005
4179
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
4006
4180
|
...attributes,
|
|
4007
4181
|
children
|
|
@@ -4014,7 +4188,7 @@ function BranchControl(props) {
|
|
|
4014
4188
|
const treeView = use(RootContext$1);
|
|
4015
4189
|
const nodeProps = use(NodeContext$1);
|
|
4016
4190
|
const { element, children, ...rest } = props;
|
|
4017
|
-
const attributes = mergeProps(treeView.getBranchControlProps(nodeProps), { className:
|
|
4191
|
+
const attributes = mergeProps(treeView.getBranchControlProps(nodeProps), { className: classes.treeView.branchControl }, rest);
|
|
4018
4192
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
4019
4193
|
...attributes,
|
|
4020
4194
|
children
|
|
@@ -4027,7 +4201,7 @@ function BranchIndentGuide(props) {
|
|
|
4027
4201
|
const treeView = use(RootContext$1);
|
|
4028
4202
|
const nodeProps = use(NodeContext$1);
|
|
4029
4203
|
const { element, children, ...rest } = props;
|
|
4030
|
-
const attributes = mergeProps(treeView.getBranchIndentGuideProps(nodeProps), { className:
|
|
4204
|
+
const attributes = mergeProps(treeView.getBranchIndentGuideProps(nodeProps), { className: classes.treeView.branchIndentGuide }, rest);
|
|
4031
4205
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
4032
4206
|
...attributes,
|
|
4033
4207
|
children
|
|
@@ -4040,7 +4214,7 @@ function BranchIndicator(props) {
|
|
|
4040
4214
|
const treeView = use(RootContext$1);
|
|
4041
4215
|
const nodeProps = use(NodeContext$1);
|
|
4042
4216
|
const { element, children = /* @__PURE__ */ jsx(ChevronRight, { className: "size-4" }), ...rest } = props;
|
|
4043
|
-
const attributes = mergeProps(treeView.getBranchIndicatorProps(nodeProps), { className:
|
|
4217
|
+
const attributes = mergeProps(treeView.getBranchIndicatorProps(nodeProps), { className: classes.treeView.branchIndicator }, rest);
|
|
4044
4218
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
4045
4219
|
...attributes,
|
|
4046
4220
|
children
|
|
@@ -4053,7 +4227,7 @@ function BranchText(props) {
|
|
|
4053
4227
|
const treeView = use(RootContext$1);
|
|
4054
4228
|
const nodeProps = use(NodeContext$1);
|
|
4055
4229
|
const { element, children, ...rest } = props;
|
|
4056
|
-
const attributes = mergeProps(treeView.getBranchTextProps(nodeProps), { className:
|
|
4230
|
+
const attributes = mergeProps(treeView.getBranchTextProps(nodeProps), { className: classes.treeView.branchText }, rest);
|
|
4057
4231
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
4058
4232
|
...attributes,
|
|
4059
4233
|
children
|
|
@@ -4066,7 +4240,7 @@ function Branch(props) {
|
|
|
4066
4240
|
const treeView = use(RootContext$1);
|
|
4067
4241
|
const nodeProps = use(NodeContext$1);
|
|
4068
4242
|
const { element, children, ...rest } = props;
|
|
4069
|
-
const attributes = mergeProps(treeView.getBranchProps(nodeProps), { className:
|
|
4243
|
+
const attributes = mergeProps(treeView.getBranchProps(nodeProps), { className: classes.treeView.branch }, rest);
|
|
4070
4244
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
4071
4245
|
...attributes,
|
|
4072
4246
|
children
|
|
@@ -4079,7 +4253,7 @@ function Item(props) {
|
|
|
4079
4253
|
const treeView = use(RootContext$1);
|
|
4080
4254
|
const nodeProps = use(NodeContext$1);
|
|
4081
4255
|
const { element, children, ...rest } = props;
|
|
4082
|
-
const attributes = mergeProps(treeView.getItemProps(nodeProps), { className:
|
|
4256
|
+
const attributes = mergeProps(treeView.getItemProps(nodeProps), { className: classes.treeView.item }, rest);
|
|
4083
4257
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
4084
4258
|
...attributes,
|
|
4085
4259
|
children
|
|
@@ -4091,7 +4265,7 @@ function Item(props) {
|
|
|
4091
4265
|
function Label(props) {
|
|
4092
4266
|
const treeView = use(RootContext$1);
|
|
4093
4267
|
const { element, children, level = 3, ...rest } = props;
|
|
4094
|
-
const attributes = mergeProps(treeView.getLabelProps(), { className:
|
|
4268
|
+
const attributes = mergeProps(treeView.getLabelProps(), { className: classes.treeView.label }, rest);
|
|
4095
4269
|
const Tag = `h${level}`;
|
|
4096
4270
|
return element ? element(attributes) : /* @__PURE__ */ jsx(Tag, {
|
|
4097
4271
|
...attributes,
|
|
@@ -4129,7 +4303,7 @@ function RootContext(props) {
|
|
|
4129
4303
|
//#region src/components/tree-view/anatomy/root-provider.tsx
|
|
4130
4304
|
function RootProvider(props) {
|
|
4131
4305
|
const { element, children, value: treeView, ...rest } = props;
|
|
4132
|
-
const attributes = mergeProps(treeView.getRootProps(), { className:
|
|
4306
|
+
const attributes = mergeProps(treeView.getRootProps(), { className: classes.treeView.root }, rest);
|
|
4133
4307
|
return /* @__PURE__ */ jsx(RootContext$1.Provider, {
|
|
4134
4308
|
value: treeView,
|
|
4135
4309
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -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,10 +4325,10 @@ 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
|
-
const attributes = mergeProps(treeView.getRootProps(), { className:
|
|
4331
|
+
const attributes = mergeProps(treeView.getRootProps(), { className: classes.treeView.root }, rest);
|
|
4158
4332
|
return /* @__PURE__ */ jsx(RootContext$1.Provider, {
|
|
4159
4333
|
value: treeView,
|
|
4160
4334
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -4169,7 +4343,7 @@ function Root(props) {
|
|
|
4169
4343
|
function Tree(props) {
|
|
4170
4344
|
const treeView = use(RootContext$1);
|
|
4171
4345
|
const { element, children, ...rest } = props;
|
|
4172
|
-
const attributes = mergeProps(treeView.getTreeProps(), { className:
|
|
4346
|
+
const attributes = mergeProps(treeView.getTreeProps(), { className: classes.treeView.tree }, rest);
|
|
4173
4347
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
4174
4348
|
...attributes,
|
|
4175
4349
|
children
|
|
@@ -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 };
|