@skeletonlabs/skeleton-react 4.6.0 → 4.6.1
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 +168 -168
- package/dist/index.mjs +222 -222
- package/package.json +2 -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";
|
|
@@ -56,7 +56,7 @@ function ItemContent(props) {
|
|
|
56
56
|
const accordion = use(RootContext$46);
|
|
57
57
|
const itemProps = use(ItemContext$6);
|
|
58
58
|
const { element, children, ...rest } = props;
|
|
59
|
-
const attributes = mergeProps(accordion.getItemContentProps(itemProps), { className:
|
|
59
|
+
const attributes = mergeProps(accordion.getItemContentProps(itemProps), { className: classes.accordion.itemContent }, rest);
|
|
60
60
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
61
61
|
...attributes,
|
|
62
62
|
children
|
|
@@ -69,7 +69,7 @@ function ItemIndicator$3(props) {
|
|
|
69
69
|
const accordion = use(RootContext$46);
|
|
70
70
|
const itemProps = use(ItemContext$6);
|
|
71
71
|
const { element, children, ...rest } = props;
|
|
72
|
-
const attributes = mergeProps(accordion.getItemIndicatorProps(itemProps), { className:
|
|
72
|
+
const attributes = mergeProps(accordion.getItemIndicatorProps(itemProps), { className: classes.accordion.itemIndicator }, rest);
|
|
73
73
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
74
74
|
...attributes,
|
|
75
75
|
children
|
|
@@ -82,7 +82,7 @@ function ItemTrigger(props) {
|
|
|
82
82
|
const accordion = use(RootContext$46);
|
|
83
83
|
const itemProps = use(ItemContext$6);
|
|
84
84
|
const { element, children, ...rest } = props;
|
|
85
|
-
const attributes = mergeProps(accordion.getItemTriggerProps(itemProps), { className:
|
|
85
|
+
const attributes = mergeProps(accordion.getItemTriggerProps(itemProps), { className: classes.accordion.itemTrigger }, rest);
|
|
86
86
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
87
87
|
...attributes,
|
|
88
88
|
children
|
|
@@ -95,7 +95,7 @@ function Item$10(props) {
|
|
|
95
95
|
const accordion = use(RootContext$46);
|
|
96
96
|
const [itemProps, componentProps] = splitItemProps(props);
|
|
97
97
|
const { element, children, ...rest } = componentProps;
|
|
98
|
-
const attributes = mergeProps(accordion.getItemProps(itemProps), { className:
|
|
98
|
+
const attributes = mergeProps(accordion.getItemProps(itemProps), { className: classes.accordion.item }, rest);
|
|
99
99
|
return /* @__PURE__ */ jsx(ItemContext$6.Provider, {
|
|
100
100
|
value: itemProps,
|
|
101
101
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -117,7 +117,7 @@ function RootContext$45(props) {
|
|
|
117
117
|
//#region src/components/accordion/anatomy/root-provider.tsx
|
|
118
118
|
function RootProvider$16(props) {
|
|
119
119
|
const { element, children, value: accordion, ...rest } = props;
|
|
120
|
-
const attributes = mergeProps(accordion.getRootProps(), { className:
|
|
120
|
+
const attributes = mergeProps(accordion.getRootProps(), { className: classes.accordion.root }, rest);
|
|
121
121
|
return /* @__PURE__ */ jsx(RootContext$46.Provider, {
|
|
122
122
|
value: accordion,
|
|
123
123
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -133,7 +133,7 @@ function Root$18(props) {
|
|
|
133
133
|
const [accordionProps, componentProps] = splitProps(props);
|
|
134
134
|
const { element, children, ...rest } = componentProps;
|
|
135
135
|
const accordion = useAccordion(accordionProps);
|
|
136
|
-
const attributes = mergeProps(accordion.getRootProps(), { className:
|
|
136
|
+
const attributes = mergeProps(accordion.getRootProps(), { className: classes.accordion.root }, rest);
|
|
137
137
|
return /* @__PURE__ */ jsx(RootContext$46.Provider, {
|
|
138
138
|
value: accordion,
|
|
139
139
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -158,7 +158,7 @@ const Accordion = Object.assign(Root$18, {
|
|
|
158
158
|
//#region src/components/app-bar/anatomy/headline.tsx
|
|
159
159
|
function AppBarHeadline(props) {
|
|
160
160
|
const { element, children, ...rest } = props;
|
|
161
|
-
const attributes = mergeProps({ className:
|
|
161
|
+
const attributes = mergeProps({ className: classes.appBar.headline }, rest);
|
|
162
162
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
163
163
|
...attributes,
|
|
164
164
|
children
|
|
@@ -169,7 +169,7 @@ function AppBarHeadline(props) {
|
|
|
169
169
|
//#region src/components/app-bar/anatomy/lead.tsx
|
|
170
170
|
function AppBarLead(props) {
|
|
171
171
|
const { element, children, ...rest } = props;
|
|
172
|
-
const attributes = mergeProps({ className:
|
|
172
|
+
const attributes = mergeProps({ className: classes.appBar.lead }, rest);
|
|
173
173
|
return element ? element(attributes) : /* @__PURE__ */ jsx("nav", {
|
|
174
174
|
...attributes,
|
|
175
175
|
children
|
|
@@ -180,7 +180,7 @@ function AppBarLead(props) {
|
|
|
180
180
|
//#region src/components/app-bar/anatomy/root.tsx
|
|
181
181
|
function AppBarRoot(props) {
|
|
182
182
|
const { element, children, ...rest } = props;
|
|
183
|
-
const attributes = mergeProps({ className:
|
|
183
|
+
const attributes = mergeProps({ className: classes.appBar.root }, rest);
|
|
184
184
|
return element ? element(attributes) : /* @__PURE__ */ jsx("header", {
|
|
185
185
|
...attributes,
|
|
186
186
|
children
|
|
@@ -191,7 +191,7 @@ function AppBarRoot(props) {
|
|
|
191
191
|
//#region src/components/app-bar/anatomy/toolbar.tsx
|
|
192
192
|
function AppBarToolbar(props) {
|
|
193
193
|
const { element, children, ...rest } = props;
|
|
194
|
-
const attributes = mergeProps({ className:
|
|
194
|
+
const attributes = mergeProps({ className: classes.appBar.toolbar }, rest);
|
|
195
195
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
196
196
|
...attributes,
|
|
197
197
|
children
|
|
@@ -202,7 +202,7 @@ function AppBarToolbar(props) {
|
|
|
202
202
|
//#region src/components/app-bar/anatomy/trail.tsx
|
|
203
203
|
function AppBarTrail(props) {
|
|
204
204
|
const { element, children, ...rest } = props;
|
|
205
|
-
const attributes = mergeProps({ className:
|
|
205
|
+
const attributes = mergeProps({ className: classes.appBar.trail }, rest);
|
|
206
206
|
return element ? element(attributes) : /* @__PURE__ */ jsx("nav", {
|
|
207
207
|
...attributes,
|
|
208
208
|
children
|
|
@@ -227,7 +227,7 @@ const RootContext$44 = createContext$1();
|
|
|
227
227
|
function Fallback(props) {
|
|
228
228
|
const avatar = use(RootContext$44);
|
|
229
229
|
const { element, children, ...rest } = props;
|
|
230
|
-
const attributes = mergeProps(avatar.getFallbackProps(), { className:
|
|
230
|
+
const attributes = mergeProps(avatar.getFallbackProps(), { className: classes.avatar.fallback }, rest);
|
|
231
231
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
232
232
|
...attributes,
|
|
233
233
|
children
|
|
@@ -239,7 +239,7 @@ function Fallback(props) {
|
|
|
239
239
|
function Image(props) {
|
|
240
240
|
const avatar = use(RootContext$44);
|
|
241
241
|
const { element, ...rest } = props;
|
|
242
|
-
const attributes = mergeProps(avatar.getImageProps(), { className:
|
|
242
|
+
const attributes = mergeProps(avatar.getImageProps(), { className: classes.avatar.image }, rest);
|
|
243
243
|
return element ? element(attributes) : /* @__PURE__ */ jsx("img", { ...attributes });
|
|
244
244
|
}
|
|
245
245
|
|
|
@@ -255,7 +255,7 @@ function RootContext$43(props) {
|
|
|
255
255
|
//#region src/components/avatar/anatomy/root-provider.tsx
|
|
256
256
|
function AvatarRootProvider(props) {
|
|
257
257
|
const { element, children, value: avatar, ...rest } = props;
|
|
258
|
-
const attributes = mergeProps(avatar.getRootProps(), { className:
|
|
258
|
+
const attributes = mergeProps(avatar.getRootProps(), { className: classes.avatar.root }, rest);
|
|
259
259
|
return /* @__PURE__ */ jsx(RootContext$44.Provider, {
|
|
260
260
|
value: avatar,
|
|
261
261
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -280,7 +280,7 @@ function AvatarRoot(props) {
|
|
|
280
280
|
const [avatarProps, componentProps] = splitProps$1(props);
|
|
281
281
|
const { element, children, ...rest } = componentProps;
|
|
282
282
|
const avatar = useAvatar(avatarProps);
|
|
283
|
-
const attributes = mergeProps(avatar.getRootProps(), { className:
|
|
283
|
+
const attributes = mergeProps(avatar.getRootProps(), { className: classes.avatar.root }, rest);
|
|
284
284
|
return /* @__PURE__ */ jsx(RootContext$44.Provider, {
|
|
285
285
|
value: avatar,
|
|
286
286
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -308,7 +308,7 @@ const RootContext$42 = createContext$1();
|
|
|
308
308
|
function Content$9(props) {
|
|
309
309
|
const collapsible = use(RootContext$42);
|
|
310
310
|
const { element, children, ...rest } = props;
|
|
311
|
-
const attributes = mergeProps(collapsible.getContentProps(), { className:
|
|
311
|
+
const attributes = mergeProps(collapsible.getContentProps(), { className: classes.collapsible.content }, rest);
|
|
312
312
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
313
313
|
...attributes,
|
|
314
314
|
children
|
|
@@ -320,7 +320,7 @@ function Content$9(props) {
|
|
|
320
320
|
function Indicator$3(props) {
|
|
321
321
|
const collapsible = use(RootContext$42);
|
|
322
322
|
const { element, children, ...rest } = props;
|
|
323
|
-
const attributes = mergeProps(collapsible.getIndicatorProps(), { className:
|
|
323
|
+
const attributes = mergeProps(collapsible.getIndicatorProps(), { className: classes.collapsible.indicator }, rest);
|
|
324
324
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
325
325
|
...attributes,
|
|
326
326
|
children
|
|
@@ -339,7 +339,7 @@ function RootContext$41(props) {
|
|
|
339
339
|
//#region src/components/collapsible/anatomy/root-provider.tsx
|
|
340
340
|
function CollapsibleRootProvider(props) {
|
|
341
341
|
const { element, children, value: collapsible, ...rest } = props;
|
|
342
|
-
const attributes = mergeProps(collapsible.getRootProps(), { className:
|
|
342
|
+
const attributes = mergeProps(collapsible.getRootProps(), { className: classes.collapsible.root }, rest);
|
|
343
343
|
return /* @__PURE__ */ jsx(RootContext$42.Provider, {
|
|
344
344
|
value: collapsible,
|
|
345
345
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -364,7 +364,7 @@ function CollapsibleRoot(props) {
|
|
|
364
364
|
const [collapsibleProps, componentProps] = splitProps$2(props);
|
|
365
365
|
const { element, children, ...rest } = componentProps;
|
|
366
366
|
const collapsible = useCollapsible(collapsibleProps);
|
|
367
|
-
const attributes = mergeProps(collapsible.getRootProps(), { className:
|
|
367
|
+
const attributes = mergeProps(collapsible.getRootProps(), { className: classes.collapsible.root }, rest);
|
|
368
368
|
return /* @__PURE__ */ jsx(RootContext$42.Provider, {
|
|
369
369
|
value: collapsible,
|
|
370
370
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -379,7 +379,7 @@ function CollapsibleRoot(props) {
|
|
|
379
379
|
function Trigger$9(props) {
|
|
380
380
|
const collapsible = use(RootContext$42);
|
|
381
381
|
const { element, children, ...rest } = props;
|
|
382
|
-
const attributes = mergeProps(collapsible.getTriggerProps(), { className:
|
|
382
|
+
const attributes = mergeProps(collapsible.getTriggerProps(), { className: classes.collapsible.trigger }, rest);
|
|
383
383
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
384
384
|
...attributes,
|
|
385
385
|
children
|
|
@@ -405,7 +405,7 @@ const RootContext$40 = createContext$1();
|
|
|
405
405
|
function ClearTrigger$2(props) {
|
|
406
406
|
const combobox = use(RootContext$40);
|
|
407
407
|
const { element, children, ...rest } = props;
|
|
408
|
-
const attributes = mergeProps(combobox.getClearTriggerProps(), { className:
|
|
408
|
+
const attributes = mergeProps(combobox.getClearTriggerProps(), { className: classes.combobox.clearTrigger }, rest);
|
|
409
409
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
410
410
|
...attributes,
|
|
411
411
|
children
|
|
@@ -417,7 +417,7 @@ function ClearTrigger$2(props) {
|
|
|
417
417
|
function Content$8(props) {
|
|
418
418
|
const combobox = use(RootContext$40);
|
|
419
419
|
const { element, children, ...rest } = props;
|
|
420
|
-
const attributes = mergeProps(combobox.getContentProps(), { className:
|
|
420
|
+
const attributes = mergeProps(combobox.getContentProps(), { className: classes.combobox.content }, rest);
|
|
421
421
|
return element ? element(attributes) : /* @__PURE__ */ jsx("ul", {
|
|
422
422
|
...attributes,
|
|
423
423
|
children
|
|
@@ -429,7 +429,7 @@ function Content$8(props) {
|
|
|
429
429
|
function Control$7(props) {
|
|
430
430
|
const combobox = use(RootContext$40);
|
|
431
431
|
const { element, children, ...rest } = props;
|
|
432
|
-
const attributes = mergeProps(combobox.getControlProps(), { className:
|
|
432
|
+
const attributes = mergeProps(combobox.getControlProps(), { className: classes.combobox.control }, rest);
|
|
433
433
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
434
434
|
...attributes,
|
|
435
435
|
children
|
|
@@ -441,7 +441,7 @@ function Control$7(props) {
|
|
|
441
441
|
function Input$3(props) {
|
|
442
442
|
const combobox = use(RootContext$40);
|
|
443
443
|
const { element, ...rest } = props;
|
|
444
|
-
const attributes = mergeProps(combobox.getInputProps(), { className:
|
|
444
|
+
const attributes = mergeProps(combobox.getInputProps(), { className: classes.combobox.input }, rest);
|
|
445
445
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
446
446
|
}
|
|
447
447
|
|
|
@@ -458,7 +458,7 @@ function ItemGroupLabel$2(props) {
|
|
|
458
458
|
...props
|
|
459
459
|
});
|
|
460
460
|
const { element, children, ...rest } = componentProps;
|
|
461
|
-
const attributes = mergeProps(combobox.getItemGroupLabelProps(itemGroupLabelProps), { className:
|
|
461
|
+
const attributes = mergeProps(combobox.getItemGroupLabelProps(itemGroupLabelProps), { className: classes.combobox.itemGroupLabel }, rest);
|
|
462
462
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
463
463
|
...attributes,
|
|
464
464
|
children
|
|
@@ -474,7 +474,7 @@ function ItemGroup$3(props) {
|
|
|
474
474
|
...props
|
|
475
475
|
});
|
|
476
476
|
const { element, children, ...rest } = componentProps;
|
|
477
|
-
const attributes = mergeProps(combobox.getItemGroupProps(itemGroupProps), { className:
|
|
477
|
+
const attributes = mergeProps(combobox.getItemGroupProps(itemGroupProps), { className: classes.combobox.itemGroup }, rest);
|
|
478
478
|
return /* @__PURE__ */ jsx(ItemGroupContext$2.Provider, {
|
|
479
479
|
value: itemGroupProps,
|
|
480
480
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -514,7 +514,7 @@ function ItemIndicator$2(props) {
|
|
|
514
514
|
const combobox = use(RootContext$40);
|
|
515
515
|
const itemProps = use(ItemContext$5);
|
|
516
516
|
const { element, children = /* @__PURE__ */ jsx(Check, { className: "size-4" }), ...rest } = props;
|
|
517
|
-
const attributes = mergeProps(combobox.getItemIndicatorProps(itemProps), { className:
|
|
517
|
+
const attributes = mergeProps(combobox.getItemIndicatorProps(itemProps), { className: classes.combobox.itemIndicator }, rest);
|
|
518
518
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
519
519
|
...attributes,
|
|
520
520
|
children
|
|
@@ -527,7 +527,7 @@ function ItemText$4(props) {
|
|
|
527
527
|
const combobox = use(RootContext$40);
|
|
528
528
|
const itemProps = use(ItemContext$5);
|
|
529
529
|
const { element, children, ...rest } = props;
|
|
530
|
-
const attributes = mergeProps(combobox.getItemTextProps(itemProps), { className:
|
|
530
|
+
const attributes = mergeProps(combobox.getItemTextProps(itemProps), { className: classes.combobox.itemText }, rest);
|
|
531
531
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
532
532
|
...attributes,
|
|
533
533
|
children
|
|
@@ -540,7 +540,7 @@ function Item$9(props) {
|
|
|
540
540
|
const combobox = use(RootContext$40);
|
|
541
541
|
const [itemProps, componentProps] = splitItemProps$1(props);
|
|
542
542
|
const { element, children, ...rest } = componentProps;
|
|
543
|
-
const attributes = mergeProps(combobox.getItemProps(itemProps), { className:
|
|
543
|
+
const attributes = mergeProps(combobox.getItemProps(itemProps), { className: classes.combobox.item }, rest);
|
|
544
544
|
return /* @__PURE__ */ jsx(ItemContext$5.Provider, {
|
|
545
545
|
value: itemProps,
|
|
546
546
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("li", {
|
|
@@ -555,7 +555,7 @@ function Item$9(props) {
|
|
|
555
555
|
function Label$10(props) {
|
|
556
556
|
const combobox = use(RootContext$40);
|
|
557
557
|
const { element, children, ...rest } = props;
|
|
558
|
-
const attributes = mergeProps(combobox.getLabelProps(), { className:
|
|
558
|
+
const attributes = mergeProps(combobox.getLabelProps(), { className: classes.combobox.label }, rest);
|
|
559
559
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
560
560
|
...attributes,
|
|
561
561
|
children
|
|
@@ -567,7 +567,7 @@ function Label$10(props) {
|
|
|
567
567
|
function Positioner$6(props) {
|
|
568
568
|
const combobox = use(RootContext$40);
|
|
569
569
|
const { element, children, ...rest } = props;
|
|
570
|
-
const attributes = mergeProps(combobox.getPositionerProps(), { className:
|
|
570
|
+
const attributes = mergeProps(combobox.getPositionerProps(), { className: classes.combobox.positioner }, rest);
|
|
571
571
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
572
572
|
...attributes,
|
|
573
573
|
children
|
|
@@ -595,7 +595,7 @@ function useCombobox(props = {}) {
|
|
|
595
595
|
//#region src/components/combobox/anatomy/root-provider.tsx
|
|
596
596
|
function RootProvider$15(props) {
|
|
597
597
|
const { element, children, value: combobox, ...rest } = props;
|
|
598
|
-
const attributes = mergeProps(combobox.getRootProps(), { className:
|
|
598
|
+
const attributes = mergeProps(combobox.getRootProps(), { className: classes.combobox.root }, rest);
|
|
599
599
|
return /* @__PURE__ */ jsx(RootContext$40.Provider, {
|
|
600
600
|
value: combobox,
|
|
601
601
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -611,7 +611,7 @@ function Root$17(props) {
|
|
|
611
611
|
const [comboboxProps, componentProps] = splitProps$3(props);
|
|
612
612
|
const { element, children, ...rest } = componentProps;
|
|
613
613
|
const combobox = useCombobox(comboboxProps);
|
|
614
|
-
const attributes = mergeProps(combobox.getRootProps(), { className:
|
|
614
|
+
const attributes = mergeProps(combobox.getRootProps(), { className: classes.combobox.root }, rest);
|
|
615
615
|
return /* @__PURE__ */ jsx(RootContext$40.Provider, {
|
|
616
616
|
value: combobox,
|
|
617
617
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -646,7 +646,7 @@ function ChevronDown(props) {
|
|
|
646
646
|
function Trigger$8(props) {
|
|
647
647
|
const combobox = use(RootContext$40);
|
|
648
648
|
const { element, children = /* @__PURE__ */ jsx(ChevronDown, {}), ...rest } = props;
|
|
649
|
-
const attributes = mergeProps(combobox.getTriggerProps(), { className:
|
|
649
|
+
const attributes = mergeProps(combobox.getTriggerProps(), { className: classes.combobox.trigger }, rest);
|
|
650
650
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
651
651
|
...attributes,
|
|
652
652
|
children
|
|
@@ -681,7 +681,7 @@ const RootContext$38 = createContext$1();
|
|
|
681
681
|
function Content$7(props) {
|
|
682
682
|
const datePicker = use(RootContext$38);
|
|
683
683
|
const { element, children, ...rest } = props;
|
|
684
|
-
const attributes = mergeProps(datePicker.getContentProps(), { className:
|
|
684
|
+
const attributes = mergeProps(datePicker.getContentProps(), { className: classes.datePicker.content }, rest);
|
|
685
685
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
686
686
|
...attributes,
|
|
687
687
|
children
|
|
@@ -693,7 +693,7 @@ function Content$7(props) {
|
|
|
693
693
|
function Control$6(props) {
|
|
694
694
|
const datePicker = use(RootContext$38);
|
|
695
695
|
const { element, children, ...rest } = props;
|
|
696
|
-
const attributes = mergeProps(datePicker.getControlProps(), { className:
|
|
696
|
+
const attributes = mergeProps(datePicker.getControlProps(), { className: classes.datePicker.control }, rest);
|
|
697
697
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
698
698
|
...attributes,
|
|
699
699
|
children
|
|
@@ -706,7 +706,7 @@ function Input$2(props) {
|
|
|
706
706
|
const datePicker = use(RootContext$38);
|
|
707
707
|
const [inputProps, componentProps] = splitInputProps(props);
|
|
708
708
|
const { element, ...rest } = componentProps;
|
|
709
|
-
const attributes = mergeProps(datePicker.getInputProps(inputProps), { className:
|
|
709
|
+
const attributes = mergeProps(datePicker.getInputProps(inputProps), { className: classes.datePicker.input }, rest);
|
|
710
710
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
711
711
|
}
|
|
712
712
|
|
|
@@ -715,7 +715,7 @@ function Input$2(props) {
|
|
|
715
715
|
function Label$9(props) {
|
|
716
716
|
const datePicker = use(RootContext$38);
|
|
717
717
|
const { element, children, ...rest } = props;
|
|
718
|
-
const attributes = mergeProps(datePicker.getLabelProps(), { className:
|
|
718
|
+
const attributes = mergeProps(datePicker.getLabelProps(), { className: classes.datePicker.label }, rest);
|
|
719
719
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
720
720
|
...attributes,
|
|
721
721
|
children
|
|
@@ -727,7 +727,7 @@ function Label$9(props) {
|
|
|
727
727
|
function MonthSelect(props) {
|
|
728
728
|
const datePicker = use(RootContext$38);
|
|
729
729
|
const { element, ...rest } = props;
|
|
730
|
-
const attributes = mergeProps(datePicker.getMonthSelectProps(), { className:
|
|
730
|
+
const attributes = mergeProps(datePicker.getMonthSelectProps(), { className: classes.datePicker.monthSelect }, rest);
|
|
731
731
|
return element ? element(attributes) : /* @__PURE__ */ jsx("select", {
|
|
732
732
|
...attributes,
|
|
733
733
|
children: datePicker.getMonths().map((month, i) => /* @__PURE__ */ jsx("option", {
|
|
@@ -767,7 +767,7 @@ function NextTrigger$1(props) {
|
|
|
767
767
|
const datePicker = use(RootContext$38);
|
|
768
768
|
const viewProps = use(ViewContext);
|
|
769
769
|
const { element, children = /* @__PURE__ */ jsx(ChevronRight, {}), ...rest } = props;
|
|
770
|
-
const attributes = mergeProps(datePicker.getNextTriggerProps(viewProps), { className:
|
|
770
|
+
const attributes = mergeProps(datePicker.getNextTriggerProps(viewProps), { className: classes.datePicker.nextTrigger }, rest);
|
|
771
771
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
772
772
|
...attributes,
|
|
773
773
|
children
|
|
@@ -779,7 +779,7 @@ function NextTrigger$1(props) {
|
|
|
779
779
|
function Positioner$5(props) {
|
|
780
780
|
const datePicker = use(RootContext$38);
|
|
781
781
|
const { element, children, ...rest } = props;
|
|
782
|
-
const attributes = mergeProps(datePicker.getPositionerProps(), { className:
|
|
782
|
+
const attributes = mergeProps(datePicker.getPositionerProps(), { className: classes.datePicker.positioner }, rest);
|
|
783
783
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
784
784
|
...attributes,
|
|
785
785
|
children
|
|
@@ -792,7 +792,7 @@ function PresetTrigger(props) {
|
|
|
792
792
|
const datePicker = use(RootContext$38);
|
|
793
793
|
const [presetTriggerProps, componentProps] = splitPresetTriggerProps(props);
|
|
794
794
|
const { element, children, ...rest } = componentProps;
|
|
795
|
-
const attributes = mergeProps(datePicker.getPresetTriggerProps(presetTriggerProps), { className:
|
|
795
|
+
const attributes = mergeProps(datePicker.getPresetTriggerProps(presetTriggerProps), { className: classes.datePicker.presetTrigger }, rest);
|
|
796
796
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
797
797
|
...attributes,
|
|
798
798
|
children
|
|
@@ -825,7 +825,7 @@ function PrevTrigger$1(props) {
|
|
|
825
825
|
const datePicker = use(RootContext$38);
|
|
826
826
|
const viewProps = use(ViewContext);
|
|
827
827
|
const { element, children = /* @__PURE__ */ jsx(ChevronLeft, {}), ...rest } = props;
|
|
828
|
-
const attributes = mergeProps(datePicker.getPrevTriggerProps(viewProps), { className:
|
|
828
|
+
const attributes = mergeProps(datePicker.getPrevTriggerProps(viewProps), { className: classes.datePicker.prevTrigger }, rest);
|
|
829
829
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
830
830
|
...attributes,
|
|
831
831
|
children
|
|
@@ -838,7 +838,7 @@ function RangeText(props) {
|
|
|
838
838
|
const datePicker = use(RootContext$38);
|
|
839
839
|
const rangeText = Array.from(new Set([datePicker.visibleRangeText.start, datePicker.visibleRangeText.end])).join(" - ");
|
|
840
840
|
const { element, children = rangeText, ...rest } = props;
|
|
841
|
-
const attributes = mergeProps(datePicker.getRangeTextProps(), { className:
|
|
841
|
+
const attributes = mergeProps(datePicker.getRangeTextProps(), { className: classes.datePicker.rangeText }, rest);
|
|
842
842
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
843
843
|
...attributes,
|
|
844
844
|
children
|
|
@@ -866,7 +866,7 @@ function useDatePicker(props = {}) {
|
|
|
866
866
|
//#region src/components/date-picker/anatomy/root-provider.tsx
|
|
867
867
|
function RootProvider$14(props) {
|
|
868
868
|
const { element, children, value: datePicker, ...rest } = props;
|
|
869
|
-
const attributes = mergeProps(datePicker.getRootProps(), { className:
|
|
869
|
+
const attributes = mergeProps(datePicker.getRootProps(), { className: classes.datePicker.root }, rest);
|
|
870
870
|
return /* @__PURE__ */ jsx(RootContext$38.Provider, {
|
|
871
871
|
value: datePicker,
|
|
872
872
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -882,7 +882,7 @@ function Root$16(props) {
|
|
|
882
882
|
const [datePickerProps, componentProps] = splitProps$4(props);
|
|
883
883
|
const { element, children, ...rest } = componentProps;
|
|
884
884
|
const datePicker = useDatePicker(datePickerProps);
|
|
885
|
-
const attributes = mergeProps(datePicker.getRootProps(), { className:
|
|
885
|
+
const attributes = mergeProps(datePicker.getRootProps(), { className: classes.datePicker.root }, rest);
|
|
886
886
|
return /* @__PURE__ */ jsx(RootContext$38.Provider, {
|
|
887
887
|
value: datePicker,
|
|
888
888
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -898,7 +898,7 @@ function TableBody(props) {
|
|
|
898
898
|
const datePicker = use(RootContext$38);
|
|
899
899
|
const viewProps = use(ViewContext);
|
|
900
900
|
const { element, children, ...rest } = props;
|
|
901
|
-
const attributes = mergeProps(datePicker.getTableBodyProps(viewProps), { className:
|
|
901
|
+
const attributes = mergeProps(datePicker.getTableBodyProps(viewProps), { className: classes.datePicker.tableBody }, rest);
|
|
902
902
|
return element ? element(attributes) : /* @__PURE__ */ jsx("tbody", {
|
|
903
903
|
...attributes,
|
|
904
904
|
children
|
|
@@ -923,7 +923,7 @@ function TableCellTrigger(props) {
|
|
|
923
923
|
case "year": return datePicker.getYearTableCellTriggerProps(tableCellProps$1);
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
|
-
const attributes = mergeProps(getTableCellTriggerProps(tableCellProps), { className:
|
|
926
|
+
const attributes = mergeProps(getTableCellTriggerProps(tableCellProps), { className: classes.datePicker.tableCellTrigger }, rest);
|
|
927
927
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
928
928
|
...attributes,
|
|
929
929
|
children
|
|
@@ -944,7 +944,7 @@ function TableCell(props) {
|
|
|
944
944
|
case "year": return datePicker.getYearTableCellProps(tableCellProps$1);
|
|
945
945
|
}
|
|
946
946
|
}
|
|
947
|
-
const attributes = mergeProps(getTableCellProps(tableCellProps), { className:
|
|
947
|
+
const attributes = mergeProps(getTableCellProps(tableCellProps), { className: classes.datePicker.tableCell }, rest);
|
|
948
948
|
return /* @__PURE__ */ jsx(TableCellContext.Provider, {
|
|
949
949
|
value: tableCellProps,
|
|
950
950
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("td", {
|
|
@@ -960,7 +960,7 @@ function TableHead(props) {
|
|
|
960
960
|
const datePicker = use(RootContext$38);
|
|
961
961
|
const viewProps = use(ViewContext);
|
|
962
962
|
const { element, children, ...rest } = props;
|
|
963
|
-
const attributes = mergeProps(datePicker.getTableHeadProps(viewProps), { className:
|
|
963
|
+
const attributes = mergeProps(datePicker.getTableHeadProps(viewProps), { className: classes.datePicker.tableHead }, rest);
|
|
964
964
|
return element ? element(attributes) : /* @__PURE__ */ jsx("thead", {
|
|
965
965
|
...attributes,
|
|
966
966
|
children
|
|
@@ -973,7 +973,7 @@ function TableHeader(props) {
|
|
|
973
973
|
const datePicker = use(RootContext$38);
|
|
974
974
|
const viewProps = use(ViewContext);
|
|
975
975
|
const { element, children, ...rest } = props;
|
|
976
|
-
const attributes = mergeProps(datePicker.getTableHeaderProps(viewProps), { className:
|
|
976
|
+
const attributes = mergeProps(datePicker.getTableHeaderProps(viewProps), { className: classes.datePicker.tableHeader }, rest);
|
|
977
977
|
return element ? element(attributes) : /* @__PURE__ */ jsx("th", {
|
|
978
978
|
...attributes,
|
|
979
979
|
children
|
|
@@ -986,7 +986,7 @@ function TableRow(props) {
|
|
|
986
986
|
const datePicker = use(RootContext$38);
|
|
987
987
|
const viewProps = use(ViewContext);
|
|
988
988
|
const { element, children, ...rest } = props;
|
|
989
|
-
const attributes = mergeProps(datePicker.getTableRowProps(viewProps), { className:
|
|
989
|
+
const attributes = mergeProps(datePicker.getTableRowProps(viewProps), { className: classes.datePicker.tableRow }, rest);
|
|
990
990
|
return element ? element(attributes) : /* @__PURE__ */ jsx("tr", {
|
|
991
991
|
...attributes,
|
|
992
992
|
children
|
|
@@ -999,7 +999,7 @@ function Table(props) {
|
|
|
999
999
|
const datePicker = use(RootContext$38);
|
|
1000
1000
|
const viewProps = use(ViewContext);
|
|
1001
1001
|
const { element, children, ...rest } = props;
|
|
1002
|
-
const attributes = mergeProps(datePicker.getTableProps(viewProps), { className:
|
|
1002
|
+
const attributes = mergeProps(datePicker.getTableProps(viewProps), { className: classes.datePicker.table }, rest);
|
|
1003
1003
|
return element ? element(attributes) : /* @__PURE__ */ jsx("table", {
|
|
1004
1004
|
...attributes,
|
|
1005
1005
|
children
|
|
@@ -1042,7 +1042,7 @@ function Calendar(props) {
|
|
|
1042
1042
|
function Trigger$7(props) {
|
|
1043
1043
|
const datePicker = use(RootContext$38);
|
|
1044
1044
|
const { element, children = /* @__PURE__ */ jsx(Calendar, {}), ...rest } = props;
|
|
1045
|
-
const attributes = mergeProps(datePicker.getTriggerProps(), { className:
|
|
1045
|
+
const attributes = mergeProps(datePicker.getTriggerProps(), { className: classes.datePicker.trigger }, rest);
|
|
1046
1046
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1047
1047
|
...attributes,
|
|
1048
1048
|
children
|
|
@@ -1055,7 +1055,7 @@ function ViewControl(props) {
|
|
|
1055
1055
|
const datePicker = use(RootContext$38);
|
|
1056
1056
|
const viewProps = use(ViewContext);
|
|
1057
1057
|
const { element, children, ...rest } = props;
|
|
1058
|
-
const attributes = mergeProps(datePicker.getViewControlProps(viewProps), { className:
|
|
1058
|
+
const attributes = mergeProps(datePicker.getViewControlProps(viewProps), { className: classes.datePicker.viewControl }, rest);
|
|
1059
1059
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1060
1060
|
...attributes,
|
|
1061
1061
|
children
|
|
@@ -1068,7 +1068,7 @@ function ViewTrigger(props) {
|
|
|
1068
1068
|
const datePicker = use(RootContext$38);
|
|
1069
1069
|
const viewProps = use(ViewContext);
|
|
1070
1070
|
const { element, children, ...rest } = props;
|
|
1071
|
-
const attributes = mergeProps(datePicker.getViewTriggerProps(viewProps), { className:
|
|
1071
|
+
const attributes = mergeProps(datePicker.getViewTriggerProps(viewProps), { className: classes.datePicker.viewTrigger }, rest);
|
|
1072
1072
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1073
1073
|
...attributes,
|
|
1074
1074
|
children
|
|
@@ -1081,7 +1081,7 @@ function View(props) {
|
|
|
1081
1081
|
const datePicker = use(RootContext$38);
|
|
1082
1082
|
const [viewProps, componentProps] = splitViewProps(props);
|
|
1083
1083
|
const { element, children, ...rest } = componentProps;
|
|
1084
|
-
const attributes = mergeProps(datePicker.getViewProps(viewProps), { className:
|
|
1084
|
+
const attributes = mergeProps(datePicker.getViewProps(viewProps), { className: classes.datePicker.view }, rest);
|
|
1085
1085
|
return /* @__PURE__ */ jsx(ViewContext.Provider, {
|
|
1086
1086
|
value: viewProps,
|
|
1087
1087
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1096,7 +1096,7 @@ function View(props) {
|
|
|
1096
1096
|
function YearSelect(props) {
|
|
1097
1097
|
const datePicker = use(RootContext$38);
|
|
1098
1098
|
const { element, ...rest } = props;
|
|
1099
|
-
const attributes = mergeProps(datePicker.getYearSelectProps(), { className:
|
|
1099
|
+
const attributes = mergeProps(datePicker.getYearSelectProps(), { className: classes.datePicker.yearSelect }, rest);
|
|
1100
1100
|
return element ? element(attributes) : /* @__PURE__ */ jsx("select", {
|
|
1101
1101
|
...attributes,
|
|
1102
1102
|
children: datePicker.getYears().map((year, i) => /* @__PURE__ */ jsx("option", {
|
|
@@ -1144,7 +1144,7 @@ const RootContext$36 = createContext$1();
|
|
|
1144
1144
|
function Backdrop(props) {
|
|
1145
1145
|
const dialog = use(RootContext$36);
|
|
1146
1146
|
const { element, ...rest } = props;
|
|
1147
|
-
const attributes = mergeProps(dialog.getBackdropProps(), { className:
|
|
1147
|
+
const attributes = mergeProps(dialog.getBackdropProps(), { className: classes.dialog.backdrop }, rest);
|
|
1148
1148
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
|
|
1149
1149
|
}
|
|
1150
1150
|
|
|
@@ -1153,7 +1153,7 @@ function Backdrop(props) {
|
|
|
1153
1153
|
function CloseTrigger$3(props) {
|
|
1154
1154
|
const dialog = use(RootContext$36);
|
|
1155
1155
|
const { element, children, ...rest } = props;
|
|
1156
|
-
const attributes = mergeProps(dialog.getCloseTriggerProps(), { className:
|
|
1156
|
+
const attributes = mergeProps(dialog.getCloseTriggerProps(), { className: classes.dialog.closeTrigger }, rest);
|
|
1157
1157
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1158
1158
|
...attributes,
|
|
1159
1159
|
children
|
|
@@ -1165,7 +1165,7 @@ function CloseTrigger$3(props) {
|
|
|
1165
1165
|
function Content$6(props) {
|
|
1166
1166
|
const dialog = use(RootContext$36);
|
|
1167
1167
|
const { element, children, ...rest } = props;
|
|
1168
|
-
const attributes = mergeProps(dialog.getContentProps(), { className:
|
|
1168
|
+
const attributes = mergeProps(dialog.getContentProps(), { className: classes.dialog.content }, rest);
|
|
1169
1169
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1170
1170
|
...attributes,
|
|
1171
1171
|
children
|
|
@@ -1177,7 +1177,7 @@ function Content$6(props) {
|
|
|
1177
1177
|
function Description$2(props) {
|
|
1178
1178
|
const dialog = use(RootContext$36);
|
|
1179
1179
|
const { element, children, ...rest } = props;
|
|
1180
|
-
const attributes = mergeProps(dialog.getDescriptionProps(), { className:
|
|
1180
|
+
const attributes = mergeProps(dialog.getDescriptionProps(), { className: classes.dialog.description }, rest);
|
|
1181
1181
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1182
1182
|
...attributes,
|
|
1183
1183
|
children
|
|
@@ -1189,7 +1189,7 @@ function Description$2(props) {
|
|
|
1189
1189
|
function Positioner$4(props) {
|
|
1190
1190
|
const dialog = use(RootContext$36);
|
|
1191
1191
|
const { element, children, ...rest } = props;
|
|
1192
|
-
const attributes = mergeProps(dialog.getPositionerProps(), { className:
|
|
1192
|
+
const attributes = mergeProps(dialog.getPositionerProps(), { className: classes.dialog.positioner }, rest);
|
|
1193
1193
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1194
1194
|
...attributes,
|
|
1195
1195
|
children
|
|
@@ -1240,7 +1240,7 @@ function Root$15(props) {
|
|
|
1240
1240
|
function Title$3(props) {
|
|
1241
1241
|
const dialog = use(RootContext$36);
|
|
1242
1242
|
const { element, children, ...rest } = props;
|
|
1243
|
-
const attributes = mergeProps(dialog.getTitleProps(), { className:
|
|
1243
|
+
const attributes = mergeProps(dialog.getTitleProps(), { className: classes.dialog.title }, rest);
|
|
1244
1244
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1245
1245
|
...attributes,
|
|
1246
1246
|
children
|
|
@@ -1252,7 +1252,7 @@ function Title$3(props) {
|
|
|
1252
1252
|
function Trigger$6(props) {
|
|
1253
1253
|
const dialog = use(RootContext$36);
|
|
1254
1254
|
const { element, children, ...rest } = props;
|
|
1255
|
-
const attributes = mergeProps(dialog.getTriggerProps(), { className:
|
|
1255
|
+
const attributes = mergeProps(dialog.getTriggerProps(), { className: classes.dialog.trigger }, rest);
|
|
1256
1256
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1257
1257
|
...attributes,
|
|
1258
1258
|
children
|
|
@@ -1282,7 +1282,7 @@ const RootContext$34 = createContext$1();
|
|
|
1282
1282
|
function ClearTrigger$1(props) {
|
|
1283
1283
|
const fileUpload = use(RootContext$34);
|
|
1284
1284
|
const { element, children, ...rest } = props;
|
|
1285
|
-
const attributes = mergeProps(fileUpload.getClearTriggerProps(), { className:
|
|
1285
|
+
const attributes = mergeProps(fileUpload.getClearTriggerProps(), { className: classes.fileUpload.clearTrigger }, rest);
|
|
1286
1286
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1287
1287
|
...attributes,
|
|
1288
1288
|
children
|
|
@@ -1294,7 +1294,7 @@ function ClearTrigger$1(props) {
|
|
|
1294
1294
|
function Dropzone(props) {
|
|
1295
1295
|
const fileUpload = use(RootContext$34);
|
|
1296
1296
|
const { element, children, ...rest } = props;
|
|
1297
|
-
const attributes = mergeProps(fileUpload.getDropzoneProps(), { className:
|
|
1297
|
+
const attributes = mergeProps(fileUpload.getDropzoneProps(), { className: classes.fileUpload.dropzone }, rest);
|
|
1298
1298
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1299
1299
|
...attributes,
|
|
1300
1300
|
children
|
|
@@ -1306,7 +1306,7 @@ function Dropzone(props) {
|
|
|
1306
1306
|
function HiddenInput$4(props) {
|
|
1307
1307
|
const fileUpload = use(RootContext$34);
|
|
1308
1308
|
const { element, ...rest } = props;
|
|
1309
|
-
const attributes = mergeProps(fileUpload.getHiddenInputProps(), { className:
|
|
1309
|
+
const attributes = mergeProps(fileUpload.getHiddenInputProps(), { className: classes.fileUpload.hiddenInput }, rest);
|
|
1310
1310
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
1311
1311
|
}
|
|
1312
1312
|
|
|
@@ -1320,7 +1320,7 @@ function ItemDeleteTrigger$1(props) {
|
|
|
1320
1320
|
const fileUpload = use(RootContext$34);
|
|
1321
1321
|
const itemProps = use(ItemContext$4);
|
|
1322
1322
|
const { element, children = /* @__PURE__ */ jsx(Fragment, { children: "×" }), ...rest } = props;
|
|
1323
|
-
const attributes = mergeProps(fileUpload.getItemDeleteTriggerProps(itemProps), { className:
|
|
1323
|
+
const attributes = mergeProps(fileUpload.getItemDeleteTriggerProps(itemProps), { className: classes.fileUpload.itemDeleteTrigger }, rest);
|
|
1324
1324
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1325
1325
|
...attributes,
|
|
1326
1326
|
children
|
|
@@ -1332,7 +1332,7 @@ function ItemDeleteTrigger$1(props) {
|
|
|
1332
1332
|
function ItemGroup$2(props) {
|
|
1333
1333
|
const fileUpload = use(RootContext$34);
|
|
1334
1334
|
const { element, children, ...rest } = props;
|
|
1335
|
-
const attributes = mergeProps(fileUpload.getItemGroupProps(), { className:
|
|
1335
|
+
const attributes = mergeProps(fileUpload.getItemGroupProps(), { className: classes.fileUpload.itemGroup }, rest);
|
|
1336
1336
|
return element ? element(attributes) : /* @__PURE__ */ jsx("ul", {
|
|
1337
1337
|
...attributes,
|
|
1338
1338
|
children
|
|
@@ -1345,7 +1345,7 @@ function ItemName(props) {
|
|
|
1345
1345
|
const fileUpload = use(RootContext$34);
|
|
1346
1346
|
const itemProps = use(ItemContext$4);
|
|
1347
1347
|
const { element, children, ...rest } = props;
|
|
1348
|
-
const attributes = mergeProps(fileUpload.getItemNameProps(itemProps), { className:
|
|
1348
|
+
const attributes = mergeProps(fileUpload.getItemNameProps(itemProps), { className: classes.fileUpload.itemName }, rest);
|
|
1349
1349
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1350
1350
|
...attributes,
|
|
1351
1351
|
children
|
|
@@ -1358,7 +1358,7 @@ function ItemSizeText(props) {
|
|
|
1358
1358
|
const fileUpload = use(RootContext$34);
|
|
1359
1359
|
const itemProps = use(ItemContext$4);
|
|
1360
1360
|
const { element, children, ...rest } = props;
|
|
1361
|
-
const attributes = mergeProps(fileUpload.getItemSizeTextProps(itemProps), { className:
|
|
1361
|
+
const attributes = mergeProps(fileUpload.getItemSizeTextProps(itemProps), { className: classes.fileUpload.itemSizeText }, rest);
|
|
1362
1362
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1363
1363
|
...attributes,
|
|
1364
1364
|
children
|
|
@@ -1371,7 +1371,7 @@ function Item$8(props) {
|
|
|
1371
1371
|
const fileUpload = use(RootContext$34);
|
|
1372
1372
|
const [itemProps, componentProps] = splitItemProps$2(props);
|
|
1373
1373
|
const { element, children, ...rest } = componentProps;
|
|
1374
|
-
const attributes = mergeProps(fileUpload.getItemProps(itemProps), { className:
|
|
1374
|
+
const attributes = mergeProps(fileUpload.getItemProps(itemProps), { className: classes.fileUpload.item }, rest);
|
|
1375
1375
|
return /* @__PURE__ */ jsx(ItemContext$4.Provider, {
|
|
1376
1376
|
value: itemProps,
|
|
1377
1377
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("li", {
|
|
@@ -1386,7 +1386,7 @@ function Item$8(props) {
|
|
|
1386
1386
|
function Label$8(props) {
|
|
1387
1387
|
const fileUpload = use(RootContext$34);
|
|
1388
1388
|
const { element, children, ...rest } = props;
|
|
1389
|
-
const attributes = mergeProps(fileUpload.getLabelProps(), { className:
|
|
1389
|
+
const attributes = mergeProps(fileUpload.getLabelProps(), { className: classes.fileUpload.label }, rest);
|
|
1390
1390
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
1391
1391
|
...attributes,
|
|
1392
1392
|
children
|
|
@@ -1405,7 +1405,7 @@ function RootContext$33(props) {
|
|
|
1405
1405
|
//#region src/components/file-upload/anatomy/root-provider.tsx
|
|
1406
1406
|
function RootProvider$12(props) {
|
|
1407
1407
|
const { element, children, value: fileUpload, ...rest } = props;
|
|
1408
|
-
const attributes = mergeProps(fileUpload.getRootProps(), { className:
|
|
1408
|
+
const attributes = mergeProps(fileUpload.getRootProps(), { className: classes.fileUpload.root }, rest);
|
|
1409
1409
|
return /* @__PURE__ */ jsx(RootContext$34.Provider, {
|
|
1410
1410
|
value: fileUpload,
|
|
1411
1411
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1430,7 +1430,7 @@ function Root$14(props) {
|
|
|
1430
1430
|
const [fileUploadProps, componentProps] = splitProps$6(props);
|
|
1431
1431
|
const { element, children, ...rest } = componentProps;
|
|
1432
1432
|
const fileUpload = useFileUpload(fileUploadProps);
|
|
1433
|
-
const attributes = mergeProps(fileUpload.getRootProps(), { className:
|
|
1433
|
+
const attributes = mergeProps(fileUpload.getRootProps(), { className: classes.fileUpload.root }, rest);
|
|
1434
1434
|
return /* @__PURE__ */ jsx(RootContext$34.Provider, {
|
|
1435
1435
|
value: fileUpload,
|
|
1436
1436
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1445,7 +1445,7 @@ function Root$14(props) {
|
|
|
1445
1445
|
function Trigger$5(props) {
|
|
1446
1446
|
const fileUpload = use(RootContext$34);
|
|
1447
1447
|
const { element, children, ...rest } = props;
|
|
1448
|
-
const attributes = mergeProps(fileUpload.getTriggerProps(), { className:
|
|
1448
|
+
const attributes = mergeProps(fileUpload.getTriggerProps(), { className: classes.fileUpload.trigger }, rest);
|
|
1449
1449
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1450
1450
|
...attributes,
|
|
1451
1451
|
children
|
|
@@ -1478,7 +1478,7 @@ const RootContext$32 = createContext$1();
|
|
|
1478
1478
|
function Body(props) {
|
|
1479
1479
|
const floatingPanel = use(RootContext$32);
|
|
1480
1480
|
const { element, children, ...rest } = props;
|
|
1481
|
-
const attributes = mergeProps(floatingPanel.getBodyProps(), { className:
|
|
1481
|
+
const attributes = mergeProps(floatingPanel.getBodyProps(), { className: classes.floatingPanel.body }, rest);
|
|
1482
1482
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1483
1483
|
...attributes,
|
|
1484
1484
|
children
|
|
@@ -1490,7 +1490,7 @@ function Body(props) {
|
|
|
1490
1490
|
function CloseTrigger$2(props) {
|
|
1491
1491
|
const floatingPanel = use(RootContext$32);
|
|
1492
1492
|
const { element, children, ...rest } = props;
|
|
1493
|
-
const attributes = mergeProps(floatingPanel.getCloseTriggerProps(), { className:
|
|
1493
|
+
const attributes = mergeProps(floatingPanel.getCloseTriggerProps(), { className: classes.floatingPanel.closeTrigger }, rest);
|
|
1494
1494
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1495
1495
|
...attributes,
|
|
1496
1496
|
children
|
|
@@ -1502,7 +1502,7 @@ function CloseTrigger$2(props) {
|
|
|
1502
1502
|
function Content$5(props) {
|
|
1503
1503
|
const floatingPanel = use(RootContext$32);
|
|
1504
1504
|
const { element, children, ...rest } = props;
|
|
1505
|
-
const attributes = mergeProps(floatingPanel.getContentProps(), { className:
|
|
1505
|
+
const attributes = mergeProps(floatingPanel.getContentProps(), { className: classes.floatingPanel.content }, rest);
|
|
1506
1506
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1507
1507
|
...attributes,
|
|
1508
1508
|
children
|
|
@@ -1514,7 +1514,7 @@ function Content$5(props) {
|
|
|
1514
1514
|
function Control$5(props) {
|
|
1515
1515
|
const floatingPanel = use(RootContext$32);
|
|
1516
1516
|
const { element, children, ...rest } = props;
|
|
1517
|
-
const attributes = mergeProps(floatingPanel.getControlProps(), { className:
|
|
1517
|
+
const attributes = mergeProps(floatingPanel.getControlProps(), { className: classes.floatingPanel.control }, rest);
|
|
1518
1518
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1519
1519
|
...attributes,
|
|
1520
1520
|
children
|
|
@@ -1526,7 +1526,7 @@ function Control$5(props) {
|
|
|
1526
1526
|
function DragTrigger(props) {
|
|
1527
1527
|
const floatingPanel = use(RootContext$32);
|
|
1528
1528
|
const { element, children, ...rest } = props;
|
|
1529
|
-
const attributes = mergeProps(floatingPanel.getDragTriggerProps(), { className:
|
|
1529
|
+
const attributes = mergeProps(floatingPanel.getDragTriggerProps(), { className: classes.floatingPanel.dragTrigger }, rest);
|
|
1530
1530
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1531
1531
|
...attributes,
|
|
1532
1532
|
children
|
|
@@ -1538,7 +1538,7 @@ function DragTrigger(props) {
|
|
|
1538
1538
|
function Header(props) {
|
|
1539
1539
|
const floatingPanel = use(RootContext$32);
|
|
1540
1540
|
const { element, children, ...rest } = props;
|
|
1541
|
-
const attributes = mergeProps(floatingPanel.getHeaderProps(), { className:
|
|
1541
|
+
const attributes = mergeProps(floatingPanel.getHeaderProps(), { className: classes.floatingPanel.header }, rest);
|
|
1542
1542
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1543
1543
|
...attributes,
|
|
1544
1544
|
children
|
|
@@ -1550,7 +1550,7 @@ function Header(props) {
|
|
|
1550
1550
|
function Positioner$3(props) {
|
|
1551
1551
|
const floatingPanel = use(RootContext$32);
|
|
1552
1552
|
const { element, children, ...rest } = props;
|
|
1553
|
-
const attributes = mergeProps(floatingPanel.getPositionerProps(), { className:
|
|
1553
|
+
const attributes = mergeProps(floatingPanel.getPositionerProps(), { className: classes.floatingPanel.positioner }, rest);
|
|
1554
1554
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1555
1555
|
...attributes,
|
|
1556
1556
|
children
|
|
@@ -1563,7 +1563,7 @@ function ResizeTrigger(props) {
|
|
|
1563
1563
|
const floatingPanel = use(RootContext$32);
|
|
1564
1564
|
const [resizeTriggerProps, componentProps] = splitResizeTriggerProps(props);
|
|
1565
1565
|
const { element, children, ...rest } = componentProps;
|
|
1566
|
-
const attributes = mergeProps(floatingPanel.getResizeTriggerProps(resizeTriggerProps), { className:
|
|
1566
|
+
const attributes = mergeProps(floatingPanel.getResizeTriggerProps(resizeTriggerProps), { className: classes.floatingPanel.resizeTrigger }, rest);
|
|
1567
1567
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1568
1568
|
...attributes,
|
|
1569
1569
|
children
|
|
@@ -1614,7 +1614,7 @@ function Root$13(props) {
|
|
|
1614
1614
|
function StageTrigger(props) {
|
|
1615
1615
|
const floatingPanel = use(RootContext$32);
|
|
1616
1616
|
const { element, children, stage, ...rest } = props;
|
|
1617
|
-
const attributes = mergeProps(floatingPanel.getStageTriggerProps({ stage }), { className:
|
|
1617
|
+
const attributes = mergeProps(floatingPanel.getStageTriggerProps({ stage }), { className: classes.floatingPanel.stageTrigger }, rest);
|
|
1618
1618
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1619
1619
|
...attributes,
|
|
1620
1620
|
children
|
|
@@ -1626,7 +1626,7 @@ function StageTrigger(props) {
|
|
|
1626
1626
|
function Title$2(props) {
|
|
1627
1627
|
const floatingPanel = use(RootContext$32);
|
|
1628
1628
|
const { element, children, ...rest } = props;
|
|
1629
|
-
const attributes = mergeProps(floatingPanel.getTitleProps(), { className:
|
|
1629
|
+
const attributes = mergeProps(floatingPanel.getTitleProps(), { className: classes.floatingPanel.title }, rest);
|
|
1630
1630
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1631
1631
|
...attributes,
|
|
1632
1632
|
children
|
|
@@ -1638,7 +1638,7 @@ function Title$2(props) {
|
|
|
1638
1638
|
function Trigger$4(props) {
|
|
1639
1639
|
const floatingPanel = use(RootContext$32);
|
|
1640
1640
|
const { element, children, ...rest } = props;
|
|
1641
|
-
const attributes = mergeProps(floatingPanel.getTriggerProps(), { className:
|
|
1641
|
+
const attributes = mergeProps(floatingPanel.getTriggerProps(), { className: classes.floatingPanel.trigger }, rest);
|
|
1642
1642
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1643
1643
|
...attributes,
|
|
1644
1644
|
children
|
|
@@ -1672,7 +1672,7 @@ const RootContext$30 = createContext$1();
|
|
|
1672
1672
|
function Content$4(props) {
|
|
1673
1673
|
const listbox = use(RootContext$30);
|
|
1674
1674
|
const { element, children, ...rest } = props;
|
|
1675
|
-
const attributes = mergeProps(listbox.getContentProps(), { className:
|
|
1675
|
+
const attributes = mergeProps(listbox.getContentProps(), { className: classes.listbox.content }, rest);
|
|
1676
1676
|
return element ? element(attributes) : /* @__PURE__ */ jsx("ul", {
|
|
1677
1677
|
...attributes,
|
|
1678
1678
|
children
|
|
@@ -1684,7 +1684,7 @@ function Content$4(props) {
|
|
|
1684
1684
|
function Input$1(props) {
|
|
1685
1685
|
const listbox = use(RootContext$30);
|
|
1686
1686
|
const { element, ...rest } = props;
|
|
1687
|
-
const attributes = mergeProps(listbox.getInputProps(), { className:
|
|
1687
|
+
const attributes = mergeProps(listbox.getInputProps(), { className: classes.listbox.input }, rest);
|
|
1688
1688
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
1689
1689
|
}
|
|
1690
1690
|
|
|
@@ -1701,7 +1701,7 @@ function ItemGroupLabel$1(props) {
|
|
|
1701
1701
|
...props
|
|
1702
1702
|
});
|
|
1703
1703
|
const { element, children, ...rest } = componentProps;
|
|
1704
|
-
const attributes = mergeProps(listbox.getItemGroupLabelProps(itemGroupLabelProps), { className:
|
|
1704
|
+
const attributes = mergeProps(listbox.getItemGroupLabelProps(itemGroupLabelProps), { className: classes.listbox.itemGroupLabel }, rest);
|
|
1705
1705
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1706
1706
|
...attributes,
|
|
1707
1707
|
children
|
|
@@ -1717,7 +1717,7 @@ function ItemGroup$1(props) {
|
|
|
1717
1717
|
...props
|
|
1718
1718
|
});
|
|
1719
1719
|
const { element, children, ...rest } = componentProps;
|
|
1720
|
-
const attributes = mergeProps(listbox.getItemGroupProps(itemGroupProps), { className:
|
|
1720
|
+
const attributes = mergeProps(listbox.getItemGroupProps(itemGroupProps), { className: classes.listbox.itemGroup }, rest);
|
|
1721
1721
|
return /* @__PURE__ */ jsx(ItemGroupContext$1.Provider, {
|
|
1722
1722
|
value: itemGroupProps,
|
|
1723
1723
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1737,7 +1737,7 @@ function ItemIndicator$1(props) {
|
|
|
1737
1737
|
const listbox = use(RootContext$30);
|
|
1738
1738
|
const itemProps = use(ItemContext$3);
|
|
1739
1739
|
const { element, children = /* @__PURE__ */ jsx(Check, { className: "size-4" }), ...rest } = props;
|
|
1740
|
-
const attributes = mergeProps(listbox.getItemIndicatorProps(itemProps), { className:
|
|
1740
|
+
const attributes = mergeProps(listbox.getItemIndicatorProps(itemProps), { className: classes.listbox.itemIndicator }, rest);
|
|
1741
1741
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
1742
1742
|
...attributes,
|
|
1743
1743
|
children
|
|
@@ -1750,7 +1750,7 @@ function ItemText$3(props) {
|
|
|
1750
1750
|
const listbox = use(RootContext$30);
|
|
1751
1751
|
const itemProps = use(ItemContext$3);
|
|
1752
1752
|
const { element, children, ...rest } = props;
|
|
1753
|
-
const attributes = mergeProps(listbox.getItemTextProps(itemProps), { className:
|
|
1753
|
+
const attributes = mergeProps(listbox.getItemTextProps(itemProps), { className: classes.listbox.itemText }, rest);
|
|
1754
1754
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
1755
1755
|
...attributes,
|
|
1756
1756
|
children
|
|
@@ -1763,7 +1763,7 @@ function Item$7(props) {
|
|
|
1763
1763
|
const listbox = use(RootContext$30);
|
|
1764
1764
|
const [itemProps, componentProps] = splitItemProps$3(props);
|
|
1765
1765
|
const { element, children, ...rest } = componentProps;
|
|
1766
|
-
const attributes = mergeProps(listbox.getItemProps(itemProps), { className:
|
|
1766
|
+
const attributes = mergeProps(listbox.getItemProps(itemProps), { className: classes.listbox.item }, rest);
|
|
1767
1767
|
return /* @__PURE__ */ jsx(ItemContext$3.Provider, {
|
|
1768
1768
|
value: itemProps,
|
|
1769
1769
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("li", {
|
|
@@ -1778,7 +1778,7 @@ function Item$7(props) {
|
|
|
1778
1778
|
function Label$7(props) {
|
|
1779
1779
|
const listbox = use(RootContext$30);
|
|
1780
1780
|
const { element, children, ...rest } = props;
|
|
1781
|
-
const attributes = mergeProps(listbox.getLabelProps(), { className:
|
|
1781
|
+
const attributes = mergeProps(listbox.getLabelProps(), { className: classes.listbox.label }, rest);
|
|
1782
1782
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
1783
1783
|
...attributes,
|
|
1784
1784
|
children
|
|
@@ -1806,7 +1806,7 @@ function useListbox(props) {
|
|
|
1806
1806
|
//#region src/components/listbox/anatomy/root-provider.tsx
|
|
1807
1807
|
function RootProvider$10(props) {
|
|
1808
1808
|
const { element, children, value: listbox, ...rest } = props;
|
|
1809
|
-
const attributes = mergeProps(listbox.getRootProps(), { className:
|
|
1809
|
+
const attributes = mergeProps(listbox.getRootProps(), { className: classes.listbox.root }, rest);
|
|
1810
1810
|
return /* @__PURE__ */ jsx(RootContext$30.Provider, {
|
|
1811
1811
|
value: listbox,
|
|
1812
1812
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1822,7 +1822,7 @@ function Root$12(props) {
|
|
|
1822
1822
|
const [listboxProps, componentProps] = splitProps$8(props);
|
|
1823
1823
|
const { element, children, ...rest } = componentProps;
|
|
1824
1824
|
const listbox = useListbox(listboxProps);
|
|
1825
|
-
const attributes = mergeProps(listbox.getRootProps(), { className:
|
|
1825
|
+
const attributes = mergeProps(listbox.getRootProps(), { className: classes.listbox.root }, rest);
|
|
1826
1826
|
return /* @__PURE__ */ jsx(RootContext$30.Provider, {
|
|
1827
1827
|
value: listbox,
|
|
1828
1828
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1856,7 +1856,7 @@ const RootContext$28 = createContext$1();
|
|
|
1856
1856
|
function ArrowTip$2(props) {
|
|
1857
1857
|
const menu = use(RootContext$28);
|
|
1858
1858
|
const { element, children, ...rest } = props;
|
|
1859
|
-
const attributes = mergeProps(menu.getArrowTipProps(), { className:
|
|
1859
|
+
const attributes = mergeProps(menu.getArrowTipProps(), { className: classes.menu.arrowTip }, rest);
|
|
1860
1860
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1861
1861
|
...attributes,
|
|
1862
1862
|
children
|
|
@@ -1868,7 +1868,7 @@ function ArrowTip$2(props) {
|
|
|
1868
1868
|
function Arrow$2(props) {
|
|
1869
1869
|
const menu = use(RootContext$28);
|
|
1870
1870
|
const { element, children, ...rest } = props;
|
|
1871
|
-
const attributes = mergeProps(menu.getArrowProps(), { className:
|
|
1871
|
+
const attributes = mergeProps(menu.getArrowProps(), { className: classes.menu.arrow }, rest);
|
|
1872
1872
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1873
1873
|
...attributes,
|
|
1874
1874
|
children
|
|
@@ -1880,7 +1880,7 @@ function Arrow$2(props) {
|
|
|
1880
1880
|
function Content$3(props) {
|
|
1881
1881
|
const menu = use(RootContext$28);
|
|
1882
1882
|
const { element, children, ...rest } = props;
|
|
1883
|
-
const attributes = mergeProps(menu.getContentProps(), { className:
|
|
1883
|
+
const attributes = mergeProps(menu.getContentProps(), { className: classes.menu.content }, rest);
|
|
1884
1884
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1885
1885
|
...attributes,
|
|
1886
1886
|
children
|
|
@@ -1892,7 +1892,7 @@ function Content$3(props) {
|
|
|
1892
1892
|
function ContextTrigger(props) {
|
|
1893
1893
|
const menu = use(RootContext$28);
|
|
1894
1894
|
const { element, children, ...rest } = props;
|
|
1895
|
-
const attributes = mergeProps(menu.getContextTriggerProps(), { className:
|
|
1895
|
+
const attributes = mergeProps(menu.getContextTriggerProps(), { className: classes.menu.contextTrigger }, rest);
|
|
1896
1896
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
1897
1897
|
...attributes,
|
|
1898
1898
|
children
|
|
@@ -1904,7 +1904,7 @@ function ContextTrigger(props) {
|
|
|
1904
1904
|
function Indicator$2(props) {
|
|
1905
1905
|
const menu = use(RootContext$28);
|
|
1906
1906
|
const { element, children, ...rest } = props;
|
|
1907
|
-
const attributes = mergeProps(menu.getIndicatorProps(), { className:
|
|
1907
|
+
const attributes = mergeProps(menu.getIndicatorProps(), { className: classes.menu.indicator }, rest);
|
|
1908
1908
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1909
1909
|
...attributes,
|
|
1910
1910
|
children
|
|
@@ -1924,7 +1924,7 @@ function ItemGroupLabel(props) {
|
|
|
1924
1924
|
...props
|
|
1925
1925
|
});
|
|
1926
1926
|
const { element, children, ...rest } = componentProps;
|
|
1927
|
-
const attributes = mergeProps(menu.getItemGroupLabelProps(labelProps), { className:
|
|
1927
|
+
const attributes = mergeProps(menu.getItemGroupLabelProps(labelProps), { className: classes.menu.itemGroupLabel }, rest);
|
|
1928
1928
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1929
1929
|
...attributes,
|
|
1930
1930
|
children
|
|
@@ -1940,7 +1940,7 @@ function ItemGroup(props) {
|
|
|
1940
1940
|
...props
|
|
1941
1941
|
});
|
|
1942
1942
|
const { element, children, ...rest } = componentProps;
|
|
1943
|
-
const attributes = mergeProps(menu.getItemGroupProps(itemGroupProps), { className:
|
|
1943
|
+
const attributes = mergeProps(menu.getItemGroupProps(itemGroupProps), { className: classes.menu.itemGroup }, rest);
|
|
1944
1944
|
return /* @__PURE__ */ jsx(ItemGroupContext.Provider, {
|
|
1945
1945
|
value: itemGroupProps,
|
|
1946
1946
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -1960,7 +1960,7 @@ function ItemIndicator(props) {
|
|
|
1960
1960
|
const menu = use(RootContext$28);
|
|
1961
1961
|
const itemProps = use(ItemContext$2);
|
|
1962
1962
|
const { element, children, ...rest } = props;
|
|
1963
|
-
const attributes = mergeProps(menu.getItemIndicatorProps(itemProps), { className:
|
|
1963
|
+
const attributes = mergeProps(menu.getItemIndicatorProps(itemProps), { className: classes.menu.itemIndicator }, rest);
|
|
1964
1964
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1965
1965
|
...attributes,
|
|
1966
1966
|
children
|
|
@@ -1973,7 +1973,7 @@ function ItemText$2(props) {
|
|
|
1973
1973
|
const menu = use(RootContext$28);
|
|
1974
1974
|
const itemProps = use(ItemContext$2);
|
|
1975
1975
|
const { element, children, ...rest } = props;
|
|
1976
|
-
const attributes = mergeProps(menu.getItemTextProps(itemProps), { className:
|
|
1976
|
+
const attributes = mergeProps(menu.getItemTextProps(itemProps), { className: classes.menu.itemText }, rest);
|
|
1977
1977
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
1978
1978
|
...attributes,
|
|
1979
1979
|
children
|
|
@@ -1986,7 +1986,7 @@ function Item$6(props) {
|
|
|
1986
1986
|
const menu = use(RootContext$28);
|
|
1987
1987
|
const [itemProps, componentProps] = splitItemProps$4(props);
|
|
1988
1988
|
const { element, children, ...rest } = componentProps;
|
|
1989
|
-
const attributes = mergeProps(menu.getItemProps(itemProps), { className:
|
|
1989
|
+
const attributes = mergeProps(menu.getItemProps(itemProps), { className: classes.menu.item }, rest);
|
|
1990
1990
|
return /* @__PURE__ */ jsx(ItemContext$2.Provider, {
|
|
1991
1991
|
value: itemProps,
|
|
1992
1992
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -2002,7 +2002,7 @@ function OptionItem(props) {
|
|
|
2002
2002
|
const menu = use(RootContext$28);
|
|
2003
2003
|
const [itemProps, componentProps] = splitOptionItemProps(props);
|
|
2004
2004
|
const { element, children, ...rest } = componentProps;
|
|
2005
|
-
const attributes = mergeProps(menu.getOptionItemProps(itemProps), { className:
|
|
2005
|
+
const attributes = mergeProps(menu.getOptionItemProps(itemProps), { className: classes.menu.item }, rest);
|
|
2006
2006
|
return /* @__PURE__ */ jsx(ItemContext$2.Provider, {
|
|
2007
2007
|
value: itemProps,
|
|
2008
2008
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -2017,7 +2017,7 @@ function OptionItem(props) {
|
|
|
2017
2017
|
function Positioner$2(props) {
|
|
2018
2018
|
const menu = use(RootContext$28);
|
|
2019
2019
|
const { element, children, ...rest } = props;
|
|
2020
|
-
const attributes = mergeProps(menu.getPositionerProps(), { className:
|
|
2020
|
+
const attributes = mergeProps(menu.getPositionerProps(), { className: classes.menu.positioner }, rest);
|
|
2021
2021
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2022
2022
|
...attributes,
|
|
2023
2023
|
children
|
|
@@ -2094,7 +2094,7 @@ function Root$11(props) {
|
|
|
2094
2094
|
function Separator(props) {
|
|
2095
2095
|
const menu = use(RootContext$28);
|
|
2096
2096
|
const { element, ...rest } = props;
|
|
2097
|
-
const attributes = mergeProps(menu.getSeparatorProps(), { className:
|
|
2097
|
+
const attributes = mergeProps(menu.getSeparatorProps(), { className: classes.menu.separator }, rest);
|
|
2098
2098
|
return element ? element(attributes) : /* @__PURE__ */ jsx("hr", { ...attributes });
|
|
2099
2099
|
}
|
|
2100
2100
|
|
|
@@ -2104,7 +2104,7 @@ function TriggerItem(props) {
|
|
|
2104
2104
|
const triggerItemProps = use(TriggerItemContext);
|
|
2105
2105
|
const [itemProps, componentProps] = splitItemProps$4(props);
|
|
2106
2106
|
const { element, children, ...rest } = componentProps;
|
|
2107
|
-
const attributes = mergeProps(triggerItemProps, { className:
|
|
2107
|
+
const attributes = mergeProps(triggerItemProps, { className: classes.menu.item }, rest);
|
|
2108
2108
|
return /* @__PURE__ */ jsx(ItemContext$2.Provider, {
|
|
2109
2109
|
value: itemProps,
|
|
2110
2110
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -2119,7 +2119,7 @@ function TriggerItem(props) {
|
|
|
2119
2119
|
function Trigger$3(props) {
|
|
2120
2120
|
const menu = use(RootContext$28);
|
|
2121
2121
|
const { element, children, ...rest } = props;
|
|
2122
|
-
const attributes = mergeProps(menu.getTriggerProps(), { className:
|
|
2122
|
+
const attributes = mergeProps(menu.getTriggerProps(), { className: classes.menu.trigger }, rest);
|
|
2123
2123
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
2124
2124
|
...attributes,
|
|
2125
2125
|
children
|
|
@@ -2159,7 +2159,7 @@ function NavigationContent(props) {
|
|
|
2159
2159
|
const navigation = use(RootContext$26);
|
|
2160
2160
|
const attributes = mergeProps({
|
|
2161
2161
|
"data-layout": navigation.layout,
|
|
2162
|
-
className:
|
|
2162
|
+
className: classes.navigation.content
|
|
2163
2163
|
}, rest);
|
|
2164
2164
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2165
2165
|
...attributes,
|
|
@@ -2174,7 +2174,7 @@ function NavigationFooter(props) {
|
|
|
2174
2174
|
const navigation = use(RootContext$26);
|
|
2175
2175
|
const attributes = mergeProps({
|
|
2176
2176
|
"data-layout": navigation.layout,
|
|
2177
|
-
className:
|
|
2177
|
+
className: classes.navigation.footer
|
|
2178
2178
|
}, rest);
|
|
2179
2179
|
return element ? element(attributes) : /* @__PURE__ */ jsx("footer", {
|
|
2180
2180
|
...attributes,
|
|
@@ -2189,7 +2189,7 @@ function NavigationGroup(props) {
|
|
|
2189
2189
|
const navigation = use(RootContext$26);
|
|
2190
2190
|
const attributes = mergeProps({
|
|
2191
2191
|
"data-layout": navigation.layout,
|
|
2192
|
-
className:
|
|
2192
|
+
className: classes.navigation.group
|
|
2193
2193
|
}, rest);
|
|
2194
2194
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2195
2195
|
...attributes,
|
|
@@ -2204,7 +2204,7 @@ function NavigationHeader(props) {
|
|
|
2204
2204
|
const navigation = use(RootContext$26);
|
|
2205
2205
|
const attributes = mergeProps({
|
|
2206
2206
|
"data-layout": navigation.layout,
|
|
2207
|
-
className:
|
|
2207
|
+
className: classes.navigation.header
|
|
2208
2208
|
}, rest);
|
|
2209
2209
|
return element ? element(attributes) : /* @__PURE__ */ jsx("header", {
|
|
2210
2210
|
...attributes,
|
|
@@ -2219,7 +2219,7 @@ function NavigationLabel(props) {
|
|
|
2219
2219
|
const navigation = use(RootContext$26);
|
|
2220
2220
|
const attributes = mergeProps({
|
|
2221
2221
|
"data-layout": navigation.layout,
|
|
2222
|
-
className:
|
|
2222
|
+
className: classes.navigation.label
|
|
2223
2223
|
}, rest);
|
|
2224
2224
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2225
2225
|
...attributes,
|
|
@@ -2234,7 +2234,7 @@ function NavigationMenu(props) {
|
|
|
2234
2234
|
const navigation = use(RootContext$26);
|
|
2235
2235
|
const attributes = mergeProps({
|
|
2236
2236
|
"data-layout": navigation.layout,
|
|
2237
|
-
className:
|
|
2237
|
+
className: classes.navigation.menu
|
|
2238
2238
|
}, rest);
|
|
2239
2239
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2240
2240
|
...attributes,
|
|
@@ -2248,7 +2248,7 @@ function NavigationRoot(props) {
|
|
|
2248
2248
|
const { layout = "bar", element, children, ...rest } = props;
|
|
2249
2249
|
const attributes = mergeProps({
|
|
2250
2250
|
"data-layout": layout,
|
|
2251
|
-
className:
|
|
2251
|
+
className: classes.navigation.root
|
|
2252
2252
|
}, rest);
|
|
2253
2253
|
return /* @__PURE__ */ jsx(RootContext$26.Provider, {
|
|
2254
2254
|
value: { layout },
|
|
@@ -2280,7 +2280,7 @@ function Ellipsis(props) {
|
|
|
2280
2280
|
const pagination = use(RootContext$25);
|
|
2281
2281
|
const [ellipsisProps, componentProps] = splitEllipsisProps(props);
|
|
2282
2282
|
const { element, children, ...rest } = componentProps;
|
|
2283
|
-
const attributes = mergeProps(pagination.getEllipsisProps(ellipsisProps), { className:
|
|
2283
|
+
const attributes = mergeProps(pagination.getEllipsisProps(ellipsisProps), { className: classes.pagination.ellipsis }, rest);
|
|
2284
2284
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
2285
2285
|
...attributes,
|
|
2286
2286
|
children
|
|
@@ -2293,7 +2293,7 @@ function FirstTrigger(props) {
|
|
|
2293
2293
|
const pagination = use(RootContext$25);
|
|
2294
2294
|
const { element, children, ...rest } = props;
|
|
2295
2295
|
const attributes = mergeProps({
|
|
2296
|
-
className:
|
|
2296
|
+
className: classes.pagination.nextTrigger,
|
|
2297
2297
|
onClick: pagination.goToFirstPage
|
|
2298
2298
|
}, rest);
|
|
2299
2299
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -2308,7 +2308,7 @@ function Item$5(props) {
|
|
|
2308
2308
|
const pagination = use(RootContext$25);
|
|
2309
2309
|
const [itemProps, componentProps] = splitItemProps$5(props);
|
|
2310
2310
|
const { element, children, ...rest } = componentProps;
|
|
2311
|
-
const attributes = mergeProps(pagination.getItemProps(itemProps), { className:
|
|
2311
|
+
const attributes = mergeProps(pagination.getItemProps(itemProps), { className: classes.pagination.item }, rest);
|
|
2312
2312
|
return element ? element(attributes) : /* @__PURE__ */ jsx("a", {
|
|
2313
2313
|
...attributes,
|
|
2314
2314
|
children
|
|
@@ -2321,7 +2321,7 @@ function LastTrigger(props) {
|
|
|
2321
2321
|
const pagination = use(RootContext$25);
|
|
2322
2322
|
const { element, children, ...rest } = props;
|
|
2323
2323
|
const attributes = mergeProps({
|
|
2324
|
-
className:
|
|
2324
|
+
className: classes.pagination.nextTrigger,
|
|
2325
2325
|
onClick: pagination.goToLastPage
|
|
2326
2326
|
}, rest);
|
|
2327
2327
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -2335,7 +2335,7 @@ function LastTrigger(props) {
|
|
|
2335
2335
|
function NextTrigger(props) {
|
|
2336
2336
|
const pagination = use(RootContext$25);
|
|
2337
2337
|
const { element, children, ...rest } = props;
|
|
2338
|
-
const attributes = mergeProps(pagination.getNextTriggerProps(), { className:
|
|
2338
|
+
const attributes = mergeProps(pagination.getNextTriggerProps(), { className: classes.pagination.nextTrigger }, rest);
|
|
2339
2339
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
2340
2340
|
...attributes,
|
|
2341
2341
|
children
|
|
@@ -2347,7 +2347,7 @@ function NextTrigger(props) {
|
|
|
2347
2347
|
function PrevTrigger(props) {
|
|
2348
2348
|
const pagination = use(RootContext$25);
|
|
2349
2349
|
const { element, children, ...rest } = props;
|
|
2350
|
-
const attributes = mergeProps(pagination.getPrevTriggerProps(), { className:
|
|
2350
|
+
const attributes = mergeProps(pagination.getPrevTriggerProps(), { className: classes.pagination.prevTrigger }, rest);
|
|
2351
2351
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
2352
2352
|
...attributes,
|
|
2353
2353
|
children
|
|
@@ -2366,7 +2366,7 @@ function RootContext$24(props) {
|
|
|
2366
2366
|
//#region src/components/pagination/anatomy/root-provider.tsx
|
|
2367
2367
|
function PaginationRootProvider(props) {
|
|
2368
2368
|
const { element, children, value: pagination, ...rest } = props;
|
|
2369
|
-
const attributes = mergeProps(pagination.getRootProps(), { className:
|
|
2369
|
+
const attributes = mergeProps(pagination.getRootProps(), { className: classes.pagination.root }, rest);
|
|
2370
2370
|
return /* @__PURE__ */ jsx(RootContext$25.Provider, {
|
|
2371
2371
|
value: pagination,
|
|
2372
2372
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("nav", {
|
|
@@ -2391,7 +2391,7 @@ function PaginationRoot(props) {
|
|
|
2391
2391
|
const [paginationProps, componentProps] = splitProps$10(props);
|
|
2392
2392
|
const { element, children, ...rest } = componentProps;
|
|
2393
2393
|
const pagination = usePagination(paginationProps);
|
|
2394
|
-
const attributes = mergeProps(pagination.getRootProps(), { className:
|
|
2394
|
+
const attributes = mergeProps(pagination.getRootProps(), { className: classes.pagination.root }, rest);
|
|
2395
2395
|
return /* @__PURE__ */ jsx(RootContext$25.Provider, {
|
|
2396
2396
|
value: pagination,
|
|
2397
2397
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("nav", {
|
|
@@ -2423,7 +2423,7 @@ const RootContext$23 = createContext$1();
|
|
|
2423
2423
|
function Anchor(props) {
|
|
2424
2424
|
const popover = use(RootContext$23);
|
|
2425
2425
|
const { element, children, ...rest } = props;
|
|
2426
|
-
const attributes = mergeProps(popover.getAnchorProps(), { className:
|
|
2426
|
+
const attributes = mergeProps(popover.getAnchorProps(), { className: classes.popover.anchor }, rest);
|
|
2427
2427
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2428
2428
|
...attributes,
|
|
2429
2429
|
children
|
|
@@ -2435,7 +2435,7 @@ function Anchor(props) {
|
|
|
2435
2435
|
function ArrowTip$1(props) {
|
|
2436
2436
|
const popover = use(RootContext$23);
|
|
2437
2437
|
const { element, children, ...rest } = props;
|
|
2438
|
-
const attributes = mergeProps(popover.getArrowTipProps(), { className:
|
|
2438
|
+
const attributes = mergeProps(popover.getArrowTipProps(), { className: classes.popover.arrowTip }, rest);
|
|
2439
2439
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2440
2440
|
...attributes,
|
|
2441
2441
|
children
|
|
@@ -2447,7 +2447,7 @@ function ArrowTip$1(props) {
|
|
|
2447
2447
|
function Arrow$1(props) {
|
|
2448
2448
|
const popover = use(RootContext$23);
|
|
2449
2449
|
const { element, children, ...rest } = props;
|
|
2450
|
-
const attributes = mergeProps(popover.getArrowProps(), { className:
|
|
2450
|
+
const attributes = mergeProps(popover.getArrowProps(), { className: classes.popover.arrow }, rest);
|
|
2451
2451
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2452
2452
|
...attributes,
|
|
2453
2453
|
children
|
|
@@ -2459,7 +2459,7 @@ function Arrow$1(props) {
|
|
|
2459
2459
|
function CloseTrigger$1(props) {
|
|
2460
2460
|
const popover = use(RootContext$23);
|
|
2461
2461
|
const { element, children, ...rest } = props;
|
|
2462
|
-
const attributes = mergeProps(popover.getCloseTriggerProps(), { className:
|
|
2462
|
+
const attributes = mergeProps(popover.getCloseTriggerProps(), { className: classes.popover.closeTrigger }, rest);
|
|
2463
2463
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
2464
2464
|
...attributes,
|
|
2465
2465
|
children
|
|
@@ -2471,7 +2471,7 @@ function CloseTrigger$1(props) {
|
|
|
2471
2471
|
function Content$2(props) {
|
|
2472
2472
|
const popover = use(RootContext$23);
|
|
2473
2473
|
const { element, children, ...rest } = props;
|
|
2474
|
-
const attributes = mergeProps(popover.getContentProps(), { className:
|
|
2474
|
+
const attributes = mergeProps(popover.getContentProps(), { className: classes.popover.content }, rest);
|
|
2475
2475
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2476
2476
|
...attributes,
|
|
2477
2477
|
children
|
|
@@ -2483,7 +2483,7 @@ function Content$2(props) {
|
|
|
2483
2483
|
function Description$1(props) {
|
|
2484
2484
|
const popover = use(RootContext$23);
|
|
2485
2485
|
const { element, children, ...rest } = props;
|
|
2486
|
-
const attributes = mergeProps(popover.getDescriptionProps(), { className:
|
|
2486
|
+
const attributes = mergeProps(popover.getDescriptionProps(), { className: classes.popover.description }, rest);
|
|
2487
2487
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2488
2488
|
...attributes,
|
|
2489
2489
|
children
|
|
@@ -2495,7 +2495,7 @@ function Description$1(props) {
|
|
|
2495
2495
|
function Positioner$1(props) {
|
|
2496
2496
|
const popover = use(RootContext$23);
|
|
2497
2497
|
const { element, children, ...rest } = props;
|
|
2498
|
-
const attributes = mergeProps(popover.getPositionerProps(), { className:
|
|
2498
|
+
const attributes = mergeProps(popover.getPositionerProps(), { className: classes.popover.positioner }, rest);
|
|
2499
2499
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2500
2500
|
...attributes,
|
|
2501
2501
|
children
|
|
@@ -2546,7 +2546,7 @@ function Root$10(props) {
|
|
|
2546
2546
|
function Title$1(props) {
|
|
2547
2547
|
const popover = use(RootContext$23);
|
|
2548
2548
|
const { element, children, ...rest } = props;
|
|
2549
|
-
const attributes = mergeProps(popover.getTitleProps(), { className:
|
|
2549
|
+
const attributes = mergeProps(popover.getTitleProps(), { className: classes.popover.title }, rest);
|
|
2550
2550
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2551
2551
|
...attributes,
|
|
2552
2552
|
children
|
|
@@ -2558,7 +2558,7 @@ function Title$1(props) {
|
|
|
2558
2558
|
function Trigger$2(props) {
|
|
2559
2559
|
const popover = use(RootContext$23);
|
|
2560
2560
|
const { element, children, ...rest } = props;
|
|
2561
|
-
const attributes = mergeProps(popover.getTriggerProps(), { className:
|
|
2561
|
+
const attributes = mergeProps(popover.getTriggerProps(), { className: classes.popover.trigger }, rest);
|
|
2562
2562
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
2563
2563
|
...attributes,
|
|
2564
2564
|
children
|
|
@@ -2603,7 +2603,7 @@ function CircleRange(props) {
|
|
|
2603
2603
|
const progress = use(RootContext$21);
|
|
2604
2604
|
const { element, ...rest } = props;
|
|
2605
2605
|
const attributes = mergeProps(progress.getCircleRangeProps(), {
|
|
2606
|
-
className:
|
|
2606
|
+
className: classes.progress.circleRange,
|
|
2607
2607
|
strokeLinecap: "round"
|
|
2608
2608
|
}, rest);
|
|
2609
2609
|
return element ? element(attributes) : /* @__PURE__ */ jsx("circle", { ...attributes });
|
|
@@ -2614,7 +2614,7 @@ function CircleRange(props) {
|
|
|
2614
2614
|
function CircleTrack(props) {
|
|
2615
2615
|
const progress = use(RootContext$21);
|
|
2616
2616
|
const { element, ...rest } = props;
|
|
2617
|
-
const attributes = mergeProps(progress.getCircleTrackProps(), { className:
|
|
2617
|
+
const attributes = mergeProps(progress.getCircleTrackProps(), { className: classes.progress.circleTrack }, rest);
|
|
2618
2618
|
return element ? element(attributes) : /* @__PURE__ */ jsx("circle", { ...attributes });
|
|
2619
2619
|
}
|
|
2620
2620
|
|
|
@@ -2623,7 +2623,7 @@ function CircleTrack(props) {
|
|
|
2623
2623
|
function Circle(props) {
|
|
2624
2624
|
const progress = use(RootContext$21);
|
|
2625
2625
|
const { element, children, ...rest } = props;
|
|
2626
|
-
const attributes = mergeProps(progress.getCircleProps(), { className:
|
|
2626
|
+
const attributes = mergeProps(progress.getCircleProps(), { className: classes.progress.circle }, rest);
|
|
2627
2627
|
return element ? element(attributes) : /* @__PURE__ */ jsx("svg", {
|
|
2628
2628
|
...attributes,
|
|
2629
2629
|
children
|
|
@@ -2635,7 +2635,7 @@ function Circle(props) {
|
|
|
2635
2635
|
function Label$6(props) {
|
|
2636
2636
|
const progress = use(RootContext$21);
|
|
2637
2637
|
const { element, children, ...rest } = props;
|
|
2638
|
-
const attributes = mergeProps(progress.getLabelProps(), { className:
|
|
2638
|
+
const attributes = mergeProps(progress.getLabelProps(), { className: classes.progress.label }, rest);
|
|
2639
2639
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2640
2640
|
...attributes,
|
|
2641
2641
|
children
|
|
@@ -2647,7 +2647,7 @@ function Label$6(props) {
|
|
|
2647
2647
|
function Range$1(props) {
|
|
2648
2648
|
const progress = use(RootContext$21);
|
|
2649
2649
|
const { element, ...rest } = props;
|
|
2650
|
-
const attributes = mergeProps(progress.getRangeProps(), { className:
|
|
2650
|
+
const attributes = mergeProps(progress.getRangeProps(), { className: classes.progress.range }, rest);
|
|
2651
2651
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
|
|
2652
2652
|
}
|
|
2653
2653
|
|
|
@@ -2663,7 +2663,7 @@ function RootContext$20(props) {
|
|
|
2663
2663
|
//#region src/components/progress/anatomy/root-provider.tsx
|
|
2664
2664
|
function RootProvider$7(props) {
|
|
2665
2665
|
const { element, children, value: progress, ...rest } = props;
|
|
2666
|
-
const attributes = mergeProps(progress.getRootProps(), { className:
|
|
2666
|
+
const attributes = mergeProps(progress.getRootProps(), { className: classes.progress.root }, rest);
|
|
2667
2667
|
return /* @__PURE__ */ jsx(RootContext$21.Provider, {
|
|
2668
2668
|
value: progress,
|
|
2669
2669
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -2688,7 +2688,7 @@ function Root$8(props) {
|
|
|
2688
2688
|
const [progressProps, componentProps] = splitProps$12(props);
|
|
2689
2689
|
const { element, children, ...rest } = componentProps;
|
|
2690
2690
|
const progress = useProgress(progressProps);
|
|
2691
|
-
const attributes = mergeProps(progress.getRootProps(), { className:
|
|
2691
|
+
const attributes = mergeProps(progress.getRootProps(), { className: classes.progress.root }, rest);
|
|
2692
2692
|
return /* @__PURE__ */ jsx(RootContext$21.Provider, {
|
|
2693
2693
|
value: progress,
|
|
2694
2694
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -2703,7 +2703,7 @@ function Root$8(props) {
|
|
|
2703
2703
|
function Track$1(props) {
|
|
2704
2704
|
const progress = use(RootContext$21);
|
|
2705
2705
|
const { element, children, ...rest } = props;
|
|
2706
|
-
const attributes = mergeProps(progress.getTrackProps(), { className:
|
|
2706
|
+
const attributes = mergeProps(progress.getTrackProps(), { className: classes.progress.track }, rest);
|
|
2707
2707
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2708
2708
|
...attributes,
|
|
2709
2709
|
children
|
|
@@ -2715,7 +2715,7 @@ function Track$1(props) {
|
|
|
2715
2715
|
function ValueText$1(props) {
|
|
2716
2716
|
const progress = use(RootContext$21);
|
|
2717
2717
|
const { element, children, ...rest } = props;
|
|
2718
|
-
const attributes = mergeProps(progress.getValueTextProps(), { className:
|
|
2718
|
+
const attributes = mergeProps(progress.getValueTextProps(), { className: classes.progress.valueText }, rest);
|
|
2719
2719
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
2720
2720
|
...attributes,
|
|
2721
2721
|
children: children ?? progress.percentAsString
|
|
@@ -2745,7 +2745,7 @@ const RootContext$19 = createContext$1();
|
|
|
2745
2745
|
function Control$4(props) {
|
|
2746
2746
|
const ratingGroup = use(RootContext$19);
|
|
2747
2747
|
const { element, children, ...rest } = props;
|
|
2748
|
-
const attributes = mergeProps(ratingGroup.getControlProps(), { className:
|
|
2748
|
+
const attributes = mergeProps(ratingGroup.getControlProps(), { className: classes.ratingGroup.control }, rest);
|
|
2749
2749
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2750
2750
|
...attributes,
|
|
2751
2751
|
children
|
|
@@ -2757,7 +2757,7 @@ function Control$4(props) {
|
|
|
2757
2757
|
function HiddenInput$3(props) {
|
|
2758
2758
|
const ratingGroup = use(RootContext$19);
|
|
2759
2759
|
const { element, ...rest } = props;
|
|
2760
|
-
const attributes = mergeProps(ratingGroup.getHiddenInputProps(), { className:
|
|
2760
|
+
const attributes = mergeProps(ratingGroup.getHiddenInputProps(), { className: classes.ratingGroup.hiddenInput }, rest);
|
|
2761
2761
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
2762
2762
|
}
|
|
2763
2763
|
|
|
@@ -2846,7 +2846,7 @@ function Item$4(props) {
|
|
|
2846
2846
|
const [itemProps, componentProps] = splitItemProps$6(props);
|
|
2847
2847
|
const { element, children, empty = /* @__PURE__ */ jsx(StarEmpty, {}), half = /* @__PURE__ */ jsx(StarHalf, {}), full = /* @__PURE__ */ jsx(StarFull, {}), ...rest } = componentProps;
|
|
2848
2848
|
const itemState = ratingGroup.getItemState(itemProps);
|
|
2849
|
-
const attributes = mergeProps(ratingGroup.getItemProps(itemProps), { className:
|
|
2849
|
+
const attributes = mergeProps(ratingGroup.getItemProps(itemProps), { className: classes.ratingGroup.item }, rest);
|
|
2850
2850
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2851
2851
|
...attributes,
|
|
2852
2852
|
children: children ? children : !itemState.highlighted ? empty : itemState.half ? half : full
|
|
@@ -2858,7 +2858,7 @@ function Item$4(props) {
|
|
|
2858
2858
|
function Label$5(props) {
|
|
2859
2859
|
const ratingGroup = use(RootContext$19);
|
|
2860
2860
|
const { element, children, ...rest } = props;
|
|
2861
|
-
const attributes = mergeProps(ratingGroup.getLabelProps(), { className:
|
|
2861
|
+
const attributes = mergeProps(ratingGroup.getLabelProps(), { className: classes.ratingGroup.label }, rest);
|
|
2862
2862
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
2863
2863
|
...attributes,
|
|
2864
2864
|
children
|
|
@@ -2877,7 +2877,7 @@ function RootContext$18(props) {
|
|
|
2877
2877
|
//#region src/components/rating-group/anatomy/root-provider.tsx
|
|
2878
2878
|
function RootProvider$6(props) {
|
|
2879
2879
|
const { element, children, value: ratingGroup, ...rest } = props;
|
|
2880
|
-
const attributes = mergeProps(ratingGroup.getRootProps(), { className:
|
|
2880
|
+
const attributes = mergeProps(ratingGroup.getRootProps(), { className: classes.ratingGroup.root }, rest);
|
|
2881
2881
|
return /* @__PURE__ */ jsx(RootContext$19.Provider, {
|
|
2882
2882
|
value: ratingGroup,
|
|
2883
2883
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -2902,7 +2902,7 @@ function Root$7(props) {
|
|
|
2902
2902
|
const [ratingGroupProps, componentProps] = splitProps$13(props);
|
|
2903
2903
|
const { element, children, ...rest } = componentProps;
|
|
2904
2904
|
const ratingGroup = useRatingGroup(ratingGroupProps);
|
|
2905
|
-
const attributes = mergeProps(ratingGroup.getRootProps(), { className:
|
|
2905
|
+
const attributes = mergeProps(ratingGroup.getRootProps(), { className: classes.ratingGroup.root }, rest);
|
|
2906
2906
|
return /* @__PURE__ */ jsx(RootContext$19.Provider, {
|
|
2907
2907
|
value: ratingGroup,
|
|
2908
2908
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -2927,7 +2927,7 @@ const RatingGroup = Object.assign(Root$7, {
|
|
|
2927
2927
|
//#region src/components/segmented-control/anatomy/control.tsx
|
|
2928
2928
|
function Control$3(props) {
|
|
2929
2929
|
const { element, children, ...rest } = props;
|
|
2930
|
-
const attributes = mergeProps({ className:
|
|
2930
|
+
const attributes = mergeProps({ className: classes.segmentedControl.control }, rest);
|
|
2931
2931
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2932
2932
|
...attributes,
|
|
2933
2933
|
children
|
|
@@ -2943,7 +2943,7 @@ const RootContext$17 = createContext$1();
|
|
|
2943
2943
|
function Indicator$1(props) {
|
|
2944
2944
|
const segmentedControl = use(RootContext$17);
|
|
2945
2945
|
const { element, ...rest } = props;
|
|
2946
|
-
const attributes = mergeProps(segmentedControl.getIndicatorProps(), { className:
|
|
2946
|
+
const attributes = mergeProps(segmentedControl.getIndicatorProps(), { className: classes.segmentedControl.indicator }, rest);
|
|
2947
2947
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
|
|
2948
2948
|
}
|
|
2949
2949
|
|
|
@@ -2957,7 +2957,7 @@ function ItemHiddenInput(props) {
|
|
|
2957
2957
|
const segmentedControl = use(RootContext$17);
|
|
2958
2958
|
const itemProps = use(ItemContext$1);
|
|
2959
2959
|
const { element, ...rest } = props;
|
|
2960
|
-
const attributes = mergeProps(segmentedControl.getItemHiddenInputProps(itemProps), { className:
|
|
2960
|
+
const attributes = mergeProps(segmentedControl.getItemHiddenInputProps(itemProps), { className: classes.segmentedControl.itemHiddenInput }, rest);
|
|
2961
2961
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
2962
2962
|
}
|
|
2963
2963
|
|
|
@@ -2967,7 +2967,7 @@ function ItemText$1(props) {
|
|
|
2967
2967
|
const segmentedControl = use(RootContext$17);
|
|
2968
2968
|
const itemProps = use(ItemContext$1);
|
|
2969
2969
|
const { element, children, ...rest } = props;
|
|
2970
|
-
const attributes = mergeProps(segmentedControl.getItemTextProps(itemProps), { className:
|
|
2970
|
+
const attributes = mergeProps(segmentedControl.getItemTextProps(itemProps), { className: classes.segmentedControl.itemText }, rest);
|
|
2971
2971
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
2972
2972
|
...attributes,
|
|
2973
2973
|
children
|
|
@@ -2980,7 +2980,7 @@ function Item$3(props) {
|
|
|
2980
2980
|
const segmentedControl = use(RootContext$17);
|
|
2981
2981
|
const [itemProps, componentProps] = splitItemProps$7(props);
|
|
2982
2982
|
const { element, children, ...rest } = componentProps;
|
|
2983
|
-
const attributes = mergeProps(segmentedControl.getItemProps(itemProps), { className:
|
|
2983
|
+
const attributes = mergeProps(segmentedControl.getItemProps(itemProps), { className: classes.segmentedControl.item }, rest);
|
|
2984
2984
|
return /* @__PURE__ */ jsx(ItemContext$1.Provider, {
|
|
2985
2985
|
value: itemProps,
|
|
2986
2986
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
@@ -2995,7 +2995,7 @@ function Item$3(props) {
|
|
|
2995
2995
|
function Label$4(props) {
|
|
2996
2996
|
const segmentedControl = use(RootContext$17);
|
|
2997
2997
|
const { element, children, ...rest } = props;
|
|
2998
|
-
const attributes = mergeProps(segmentedControl.getLabelProps(), { className:
|
|
2998
|
+
const attributes = mergeProps(segmentedControl.getLabelProps(), { className: classes.segmentedControl.label }, rest);
|
|
2999
2999
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
3000
3000
|
...attributes,
|
|
3001
3001
|
children
|
|
@@ -3014,7 +3014,7 @@ function RootContext$16(props) {
|
|
|
3014
3014
|
//#region src/components/segmented-control/anatomy/root-provider.tsx
|
|
3015
3015
|
function RootProvider$5(props) {
|
|
3016
3016
|
const { element, children, value: segmentedControl, ...rest } = props;
|
|
3017
|
-
const attributes = mergeProps(segmentedControl.getRootProps(), { className:
|
|
3017
|
+
const attributes = mergeProps(segmentedControl.getRootProps(), { className: classes.segmentedControl.root }, rest);
|
|
3018
3018
|
return /* @__PURE__ */ jsx(RootContext$17.Provider, {
|
|
3019
3019
|
value: segmentedControl,
|
|
3020
3020
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3040,7 +3040,7 @@ function Root$6(props) {
|
|
|
3040
3040
|
const [segmentedControlProps, componentProps] = splitProps$14(props);
|
|
3041
3041
|
const { element, children, ...rest } = componentProps;
|
|
3042
3042
|
const segmentedControl = useSegmentedControl(segmentedControlProps);
|
|
3043
|
-
const attributes = mergeProps(segmentedControl.getRootProps(), { className:
|
|
3043
|
+
const attributes = mergeProps(segmentedControl.getRootProps(), { className: classes.segmentedControl.root }, rest);
|
|
3044
3044
|
return /* @__PURE__ */ jsx(RootContext$17.Provider, {
|
|
3045
3045
|
value: segmentedControl,
|
|
3046
3046
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3072,7 +3072,7 @@ const RootContext$15 = createContext$1();
|
|
|
3072
3072
|
function Control$2(props) {
|
|
3073
3073
|
const slider = use(RootContext$15);
|
|
3074
3074
|
const { element, children, ...rest } = props;
|
|
3075
|
-
const attributes = mergeProps(slider.getControlProps(), { className:
|
|
3075
|
+
const attributes = mergeProps(slider.getControlProps(), { className: classes.slider.control }, rest);
|
|
3076
3076
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3077
3077
|
...attributes,
|
|
3078
3078
|
children
|
|
@@ -3089,7 +3089,7 @@ function HiddenInput$2(props) {
|
|
|
3089
3089
|
const slider = use(RootContext$15);
|
|
3090
3090
|
const thumbProps = use(ThumbContext);
|
|
3091
3091
|
const { element, ...rest } = props;
|
|
3092
|
-
const attributes = mergeProps(slider.getHiddenInputProps(thumbProps), { className:
|
|
3092
|
+
const attributes = mergeProps(slider.getHiddenInputProps(thumbProps), { className: classes.slider.hiddenInput }, rest);
|
|
3093
3093
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
3094
3094
|
}
|
|
3095
3095
|
|
|
@@ -3098,7 +3098,7 @@ function HiddenInput$2(props) {
|
|
|
3098
3098
|
function Label$3(props) {
|
|
3099
3099
|
const slider = use(RootContext$15);
|
|
3100
3100
|
const { element, children, ...rest } = props;
|
|
3101
|
-
const attributes = mergeProps(slider.getLabelProps(), { className:
|
|
3101
|
+
const attributes = mergeProps(slider.getLabelProps(), { className: classes.slider.label }, rest);
|
|
3102
3102
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
3103
3103
|
...attributes,
|
|
3104
3104
|
children
|
|
@@ -3110,7 +3110,7 @@ function Label$3(props) {
|
|
|
3110
3110
|
function MarkerGroup(props) {
|
|
3111
3111
|
const slider = use(RootContext$15);
|
|
3112
3112
|
const { element, children, ...rest } = props;
|
|
3113
|
-
const attributes = mergeProps(slider.getMarkerGroupProps(), { className:
|
|
3113
|
+
const attributes = mergeProps(slider.getMarkerGroupProps(), { className: classes.slider.markerGroup }, rest);
|
|
3114
3114
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3115
3115
|
...attributes,
|
|
3116
3116
|
children
|
|
@@ -3122,7 +3122,7 @@ function MarkerGroup(props) {
|
|
|
3122
3122
|
function Marker(props) {
|
|
3123
3123
|
const slider = use(RootContext$15);
|
|
3124
3124
|
const { element, children, value, ...rest } = props;
|
|
3125
|
-
const attributes = mergeProps(slider.getMarkerProps({ value }), { className:
|
|
3125
|
+
const attributes = mergeProps(slider.getMarkerProps({ value }), { className: classes.slider.marker }, rest);
|
|
3126
3126
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3127
3127
|
...attributes,
|
|
3128
3128
|
children: children ?? value
|
|
@@ -3134,7 +3134,7 @@ function Marker(props) {
|
|
|
3134
3134
|
function Range(props) {
|
|
3135
3135
|
const slider = use(RootContext$15);
|
|
3136
3136
|
const { element, children, ...rest } = props;
|
|
3137
|
-
const attributes = mergeProps(slider.getRangeProps(), { className:
|
|
3137
|
+
const attributes = mergeProps(slider.getRangeProps(), { className: classes.slider.range }, rest);
|
|
3138
3138
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3139
3139
|
...attributes,
|
|
3140
3140
|
children
|
|
@@ -3153,7 +3153,7 @@ function RootContext$14(props) {
|
|
|
3153
3153
|
//#region src/components/slider/anatomy/root-provider.tsx
|
|
3154
3154
|
function SliderRootProvider(props) {
|
|
3155
3155
|
const { element, children, value: slider, ...rest } = props;
|
|
3156
|
-
const attributes = mergeProps(slider.getRootProps(), { className:
|
|
3156
|
+
const attributes = mergeProps(slider.getRootProps(), { className: classes.slider.root }, rest);
|
|
3157
3157
|
return /* @__PURE__ */ jsx(RootContext$15.Provider, {
|
|
3158
3158
|
value: slider,
|
|
3159
3159
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3178,7 +3178,7 @@ function SliderRoot(props) {
|
|
|
3178
3178
|
const [sliderProps, componentProps] = splitProps$15(props);
|
|
3179
3179
|
const { element, children, ...rest } = componentProps;
|
|
3180
3180
|
const slider = useSlider(sliderProps);
|
|
3181
|
-
const attributes = mergeProps(slider.getRootProps(), { className:
|
|
3181
|
+
const attributes = mergeProps(slider.getRootProps(), { className: classes.slider.root }, rest);
|
|
3182
3182
|
return /* @__PURE__ */ jsx(RootContext$15.Provider, {
|
|
3183
3183
|
value: slider,
|
|
3184
3184
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3194,7 +3194,7 @@ function Thumb$1(props) {
|
|
|
3194
3194
|
const slider = use(RootContext$15);
|
|
3195
3195
|
const [thumbProps, componentProps] = splitThumbProps(props);
|
|
3196
3196
|
const { element, children, ...rest } = componentProps;
|
|
3197
|
-
const attributes = mergeProps(slider.getThumbProps(thumbProps), { className:
|
|
3197
|
+
const attributes = mergeProps(slider.getThumbProps(thumbProps), { className: classes.slider.thumb }, rest);
|
|
3198
3198
|
return /* @__PURE__ */ jsx(ThumbContext.Provider, {
|
|
3199
3199
|
value: thumbProps,
|
|
3200
3200
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3209,7 +3209,7 @@ function Thumb$1(props) {
|
|
|
3209
3209
|
function Track(props) {
|
|
3210
3210
|
const slider = use(RootContext$15);
|
|
3211
3211
|
const { element, children, ...rest } = props;
|
|
3212
|
-
const attributes = mergeProps(slider.getTrackProps(), { className:
|
|
3212
|
+
const attributes = mergeProps(slider.getTrackProps(), { className: classes.slider.track }, rest);
|
|
3213
3213
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3214
3214
|
...attributes,
|
|
3215
3215
|
children
|
|
@@ -3221,7 +3221,7 @@ function Track(props) {
|
|
|
3221
3221
|
function ValueText(props) {
|
|
3222
3222
|
const slider = use(RootContext$15);
|
|
3223
3223
|
const { element, children, ...rest } = props;
|
|
3224
|
-
const attributes = mergeProps(slider.getValueTextProps(), { className:
|
|
3224
|
+
const attributes = mergeProps(slider.getValueTextProps(), { className: classes.slider.valueText }, rest);
|
|
3225
3225
|
return element ? element(attributes) : /* @__PURE__ */ jsx("output", {
|
|
3226
3226
|
...attributes,
|
|
3227
3227
|
children
|
|
@@ -3253,7 +3253,7 @@ const RootContext$13 = createContext$1();
|
|
|
3253
3253
|
function Control$1(props) {
|
|
3254
3254
|
const switch_ = use(RootContext$13);
|
|
3255
3255
|
const { element, children, ...rest } = props;
|
|
3256
|
-
const attributes = mergeProps(switch_.getControlProps(), { className:
|
|
3256
|
+
const attributes = mergeProps(switch_.getControlProps(), { className: classes.switch.control }, rest);
|
|
3257
3257
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
3258
3258
|
...attributes,
|
|
3259
3259
|
children
|
|
@@ -3265,7 +3265,7 @@ function Control$1(props) {
|
|
|
3265
3265
|
function HiddenInput$1(props) {
|
|
3266
3266
|
const switch_ = use(RootContext$13);
|
|
3267
3267
|
const { element, ...rest } = props;
|
|
3268
|
-
const attributes = mergeProps(switch_.getHiddenInputProps(), { className:
|
|
3268
|
+
const attributes = mergeProps(switch_.getHiddenInputProps(), { className: classes.switch.hiddenInput }, rest);
|
|
3269
3269
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
3270
3270
|
}
|
|
3271
3271
|
|
|
@@ -3274,7 +3274,7 @@ function HiddenInput$1(props) {
|
|
|
3274
3274
|
function Label$2(props) {
|
|
3275
3275
|
const switch_ = use(RootContext$13);
|
|
3276
3276
|
const { element, children, ...rest } = props;
|
|
3277
|
-
const attributes = mergeProps(switch_.getLabelProps(), { className:
|
|
3277
|
+
const attributes = mergeProps(switch_.getLabelProps(), { className: classes.switch.label }, rest);
|
|
3278
3278
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
3279
3279
|
...attributes,
|
|
3280
3280
|
children
|
|
@@ -3293,7 +3293,7 @@ function RootContext$12(props) {
|
|
|
3293
3293
|
//#region src/components/switch/anatomy/root-provider.tsx
|
|
3294
3294
|
function RootProvider$4(props) {
|
|
3295
3295
|
const { element, children, value: switch_, ...rest } = props;
|
|
3296
|
-
const attributes = mergeProps(switch_.getRootProps(), { className:
|
|
3296
|
+
const attributes = mergeProps(switch_.getRootProps(), { className: classes.switch.root }, rest);
|
|
3297
3297
|
return /* @__PURE__ */ jsx(RootContext$13.Provider, {
|
|
3298
3298
|
value: switch_,
|
|
3299
3299
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
@@ -3318,7 +3318,7 @@ function Root$5(props) {
|
|
|
3318
3318
|
const [switchProps, componentProps] = splitProps$16(props);
|
|
3319
3319
|
const { element, children, ...rest } = componentProps;
|
|
3320
3320
|
const switch_ = useSwitch(switchProps);
|
|
3321
|
-
const attributes = mergeProps(switch_.getRootProps(), { className:
|
|
3321
|
+
const attributes = mergeProps(switch_.getRootProps(), { className: classes.switch.root }, rest);
|
|
3322
3322
|
return /* @__PURE__ */ jsx(RootContext$13.Provider, {
|
|
3323
3323
|
value: switch_,
|
|
3324
3324
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
@@ -3333,7 +3333,7 @@ function Root$5(props) {
|
|
|
3333
3333
|
function Thumb(props) {
|
|
3334
3334
|
const switch_ = use(RootContext$13);
|
|
3335
3335
|
const { element, children, ...rest } = props;
|
|
3336
|
-
const attributes = mergeProps(switch_.getThumbProps(), { className:
|
|
3336
|
+
const attributes = mergeProps(switch_.getThumbProps(), { className: classes.switch.thumb }, rest);
|
|
3337
3337
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
3338
3338
|
...attributes,
|
|
3339
3339
|
children
|
|
@@ -3361,7 +3361,7 @@ function Content$1(props) {
|
|
|
3361
3361
|
const tabs = use(RootContext$11);
|
|
3362
3362
|
const [contentProps, componentProps] = splitContentProps(props);
|
|
3363
3363
|
const { element, children, ...rest } = componentProps;
|
|
3364
|
-
const attributes = mergeProps(tabs.getContentProps(contentProps), { className:
|
|
3364
|
+
const attributes = mergeProps(tabs.getContentProps(contentProps), { className: classes.tabs.content }, rest);
|
|
3365
3365
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3366
3366
|
...attributes,
|
|
3367
3367
|
children
|
|
@@ -3373,7 +3373,7 @@ function Content$1(props) {
|
|
|
3373
3373
|
function Indicator(props) {
|
|
3374
3374
|
const tabs = use(RootContext$11);
|
|
3375
3375
|
const { element, ...rest } = props;
|
|
3376
|
-
const attributes = mergeProps(tabs.getIndicatorProps(), { className:
|
|
3376
|
+
const attributes = mergeProps(tabs.getIndicatorProps(), { className: classes.tabs.indicator }, rest);
|
|
3377
3377
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
|
|
3378
3378
|
}
|
|
3379
3379
|
|
|
@@ -3382,7 +3382,7 @@ function Indicator(props) {
|
|
|
3382
3382
|
function List(props) {
|
|
3383
3383
|
const tabs = use(RootContext$11);
|
|
3384
3384
|
const { element, children, ...rest } = props;
|
|
3385
|
-
const attributes = mergeProps(tabs.getListProps(), { className:
|
|
3385
|
+
const attributes = mergeProps(tabs.getListProps(), { className: classes.tabs.list }, rest);
|
|
3386
3386
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3387
3387
|
...attributes,
|
|
3388
3388
|
children
|
|
@@ -3401,7 +3401,7 @@ function RootContext$10(props) {
|
|
|
3401
3401
|
//#region src/components/tabs/anatomy/root-provider.tsx
|
|
3402
3402
|
function RootProvider$3(props) {
|
|
3403
3403
|
const { element, children, value: tabs, ...rest } = props;
|
|
3404
|
-
const attributes = mergeProps(tabs.getRootProps(), { className:
|
|
3404
|
+
const attributes = mergeProps(tabs.getRootProps(), { className: classes.tabs.root }, rest);
|
|
3405
3405
|
return /* @__PURE__ */ jsx(RootContext$11.Provider, {
|
|
3406
3406
|
value: tabs,
|
|
3407
3407
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3426,7 +3426,7 @@ function Root$4(props) {
|
|
|
3426
3426
|
const [tabsProps, componentProps] = splitProps$17(props);
|
|
3427
3427
|
const { element, children, ...rest } = componentProps;
|
|
3428
3428
|
const tabs = useTabs(tabsProps);
|
|
3429
|
-
const attributes = mergeProps(tabs.getRootProps(), { className:
|
|
3429
|
+
const attributes = mergeProps(tabs.getRootProps(), { className: classes.tabs.root }, rest);
|
|
3430
3430
|
return /* @__PURE__ */ jsx(RootContext$11.Provider, {
|
|
3431
3431
|
value: tabs,
|
|
3432
3432
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3442,7 +3442,7 @@ function Trigger$1(props) {
|
|
|
3442
3442
|
const tabs = use(RootContext$11);
|
|
3443
3443
|
const [triggerProps, componentProps] = splitTriggerProps(props);
|
|
3444
3444
|
const { element, children, ...rest } = componentProps;
|
|
3445
|
-
const attributes = mergeProps(tabs.getTriggerProps(triggerProps), { className:
|
|
3445
|
+
const attributes = mergeProps(tabs.getTriggerProps(triggerProps), { className: classes.tabs.trigger }, rest);
|
|
3446
3446
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
3447
3447
|
...attributes,
|
|
3448
3448
|
children
|
|
@@ -3469,7 +3469,7 @@ const RootContext$9 = createContext$1();
|
|
|
3469
3469
|
function ClearTrigger(props) {
|
|
3470
3470
|
const tagsInput = use(RootContext$9);
|
|
3471
3471
|
const { element, children, ...rest } = props;
|
|
3472
|
-
const attributes = mergeProps(tagsInput.getClearTriggerProps(), { className:
|
|
3472
|
+
const attributes = mergeProps(tagsInput.getClearTriggerProps(), { className: classes.tagsInput.clearTrigger }, rest);
|
|
3473
3473
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
3474
3474
|
...attributes,
|
|
3475
3475
|
children
|
|
@@ -3481,7 +3481,7 @@ function ClearTrigger(props) {
|
|
|
3481
3481
|
function Control(props) {
|
|
3482
3482
|
const tagsInput = use(RootContext$9);
|
|
3483
3483
|
const { element, children, ...rest } = props;
|
|
3484
|
-
const attributes = mergeProps(tagsInput.getControlProps(), { className:
|
|
3484
|
+
const attributes = mergeProps(tagsInput.getControlProps(), { className: classes.tagsInput.control }, rest);
|
|
3485
3485
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3486
3486
|
...attributes,
|
|
3487
3487
|
children
|
|
@@ -3493,7 +3493,7 @@ function Control(props) {
|
|
|
3493
3493
|
function HiddenInput(props) {
|
|
3494
3494
|
const tagsInput = use(RootContext$9);
|
|
3495
3495
|
const { element, ...rest } = props;
|
|
3496
|
-
const attributes = mergeProps(tagsInput.getHiddenInputProps(), { className:
|
|
3496
|
+
const attributes = mergeProps(tagsInput.getHiddenInputProps(), { className: classes.tagsInput.hiddenInput }, rest);
|
|
3497
3497
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
3498
3498
|
}
|
|
3499
3499
|
|
|
@@ -3502,7 +3502,7 @@ function HiddenInput(props) {
|
|
|
3502
3502
|
function Input(props) {
|
|
3503
3503
|
const tagsInput = use(RootContext$9);
|
|
3504
3504
|
const { element, ...rest } = props;
|
|
3505
|
-
const attributes = mergeProps(tagsInput.getInputProps(), { className:
|
|
3505
|
+
const attributes = mergeProps(tagsInput.getInputProps(), { className: classes.tagsInput.input }, rest);
|
|
3506
3506
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
3507
3507
|
}
|
|
3508
3508
|
|
|
@@ -3516,7 +3516,7 @@ function ItemDeleteTrigger(props) {
|
|
|
3516
3516
|
const tagsInput = use(RootContext$9);
|
|
3517
3517
|
const itemProps = use(ItemContext);
|
|
3518
3518
|
const { element, children = /* @__PURE__ */ jsx(Fragment, { children: "×" }), ...rest } = props;
|
|
3519
|
-
const attributes = mergeProps(tagsInput.getItemDeleteTriggerProps(itemProps), { className:
|
|
3519
|
+
const attributes = mergeProps(tagsInput.getItemDeleteTriggerProps(itemProps), { className: classes.tagsInput.itemDeleteTrigger }, rest);
|
|
3520
3520
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
3521
3521
|
...attributes,
|
|
3522
3522
|
children
|
|
@@ -3529,7 +3529,7 @@ function ItemInput(props) {
|
|
|
3529
3529
|
const tagsInput = use(RootContext$9);
|
|
3530
3530
|
const itemProps = use(ItemContext);
|
|
3531
3531
|
const { element, ...rest } = props;
|
|
3532
|
-
const attributes = mergeProps(tagsInput.getItemInputProps(itemProps), { className:
|
|
3532
|
+
const attributes = mergeProps(tagsInput.getItemInputProps(itemProps), { className: classes.tagsInput.itemInput }, rest);
|
|
3533
3533
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
3534
3534
|
}
|
|
3535
3535
|
|
|
@@ -3539,7 +3539,7 @@ function ItemPreview(props) {
|
|
|
3539
3539
|
const tagsInput = use(RootContext$9);
|
|
3540
3540
|
const itemProps = use(ItemContext);
|
|
3541
3541
|
const { element, children, ...rest } = props;
|
|
3542
|
-
const attributes = mergeProps(tagsInput.getItemPreviewProps(itemProps), { className:
|
|
3542
|
+
const attributes = mergeProps(tagsInput.getItemPreviewProps(itemProps), { className: classes.tagsInput.itemPreview }, rest);
|
|
3543
3543
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3544
3544
|
...attributes,
|
|
3545
3545
|
children
|
|
@@ -3552,7 +3552,7 @@ function ItemText(props) {
|
|
|
3552
3552
|
const tagsInput = use(RootContext$9);
|
|
3553
3553
|
const itemProps = use(ItemContext);
|
|
3554
3554
|
const { element, children, ...rest } = props;
|
|
3555
|
-
const attributes = mergeProps(tagsInput.getItemTextProps(itemProps), { className:
|
|
3555
|
+
const attributes = mergeProps(tagsInput.getItemTextProps(itemProps), { className: classes.tagsInput.itemText }, rest);
|
|
3556
3556
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
3557
3557
|
...attributes,
|
|
3558
3558
|
children
|
|
@@ -3565,7 +3565,7 @@ function Item$2(props) {
|
|
|
3565
3565
|
const tagsInput = use(RootContext$9);
|
|
3566
3566
|
const [itemProps, componentProps] = splitItemProps$8(props);
|
|
3567
3567
|
const { element, children, ...rest } = componentProps;
|
|
3568
|
-
const attributes = mergeProps(tagsInput.getItemProps(itemProps), { className:
|
|
3568
|
+
const attributes = mergeProps(tagsInput.getItemProps(itemProps), { className: classes.tagsInput.item }, rest);
|
|
3569
3569
|
return /* @__PURE__ */ jsx(ItemContext.Provider, {
|
|
3570
3570
|
value: itemProps,
|
|
3571
3571
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
@@ -3580,7 +3580,7 @@ function Item$2(props) {
|
|
|
3580
3580
|
function Label$1(props) {
|
|
3581
3581
|
const tagsInput = use(RootContext$9);
|
|
3582
3582
|
const { element, children, ...rest } = props;
|
|
3583
|
-
const attributes = mergeProps(tagsInput.getLabelProps(), { className:
|
|
3583
|
+
const attributes = mergeProps(tagsInput.getLabelProps(), { className: classes.tagsInput.label }, rest);
|
|
3584
3584
|
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
3585
3585
|
...attributes,
|
|
3586
3586
|
children
|
|
@@ -3599,7 +3599,7 @@ function RootContext$8(props) {
|
|
|
3599
3599
|
//#region src/components/tags-input/anatomy/root-provider.tsx
|
|
3600
3600
|
function RootProvider$2(props) {
|
|
3601
3601
|
const { element, children, value: tagsInput, ...rest } = props;
|
|
3602
|
-
const attributes = mergeProps(tagsInput.getRootProps(), { className:
|
|
3602
|
+
const attributes = mergeProps(tagsInput.getRootProps(), { className: classes.tagsInput.root }, rest);
|
|
3603
3603
|
return /* @__PURE__ */ jsx(RootContext$9.Provider, {
|
|
3604
3604
|
value: tagsInput,
|
|
3605
3605
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3624,7 +3624,7 @@ function Root$3(props) {
|
|
|
3624
3624
|
const [tagsInputProps, componentProps] = splitProps$18(props);
|
|
3625
3625
|
const { element, children, ...rest } = componentProps;
|
|
3626
3626
|
const tagsInput = useTagsInput(tagsInputProps);
|
|
3627
|
-
const attributes = mergeProps(tagsInput.getRootProps(), { className:
|
|
3627
|
+
const attributes = mergeProps(tagsInput.getRootProps(), { className: classes.tagsInput.root }, rest);
|
|
3628
3628
|
return /* @__PURE__ */ jsx(RootContext$9.Provider, {
|
|
3629
3629
|
value: tagsInput,
|
|
3630
3630
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3660,7 +3660,7 @@ const RootContext$7 = createContext$1();
|
|
|
3660
3660
|
function ActionTrigger(props) {
|
|
3661
3661
|
const toast = use(RootContext$7);
|
|
3662
3662
|
const { element, children, ...rest } = props;
|
|
3663
|
-
const attributes = mergeProps(toast.getActionTriggerProps(), { className:
|
|
3663
|
+
const attributes = mergeProps(toast.getActionTriggerProps(), { className: classes.toast.actionTrigger }, rest);
|
|
3664
3664
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
3665
3665
|
...attributes,
|
|
3666
3666
|
children
|
|
@@ -3692,7 +3692,7 @@ function X(props) {
|
|
|
3692
3692
|
function CloseTrigger(props) {
|
|
3693
3693
|
const toast = use(RootContext$7);
|
|
3694
3694
|
const { element, children = /* @__PURE__ */ jsx(X, {}), ...rest } = props;
|
|
3695
|
-
const attributes = mergeProps(toast.getCloseTriggerProps(), { className:
|
|
3695
|
+
const attributes = mergeProps(toast.getCloseTriggerProps(), { className: classes.toast.closeTrigger }, rest);
|
|
3696
3696
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
3697
3697
|
...attributes,
|
|
3698
3698
|
children
|
|
@@ -3704,7 +3704,7 @@ function CloseTrigger(props) {
|
|
|
3704
3704
|
function Description(props) {
|
|
3705
3705
|
const toast = use(RootContext$7);
|
|
3706
3706
|
const { element, children, ...rest } = props;
|
|
3707
|
-
const attributes = mergeProps(toast.getDescriptionProps(), { className:
|
|
3707
|
+
const attributes = mergeProps(toast.getDescriptionProps(), { className: classes.toast.description }, rest);
|
|
3708
3708
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3709
3709
|
...attributes,
|
|
3710
3710
|
children
|
|
@@ -3724,7 +3724,7 @@ function Group(props) {
|
|
|
3724
3724
|
store: toaster
|
|
3725
3725
|
});
|
|
3726
3726
|
const api = group.connect(service, normalizeProps);
|
|
3727
|
-
const attributes = mergeProps(api.getGroupProps(), { className:
|
|
3727
|
+
const attributes = mergeProps(api.getGroupProps(), { className: classes.toast.group }, rest);
|
|
3728
3728
|
return /* @__PURE__ */ jsx(GroupContext.Provider, {
|
|
3729
3729
|
value: service,
|
|
3730
3730
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3738,7 +3738,7 @@ function Group(props) {
|
|
|
3738
3738
|
//#region src/components/toast/anatomy/message.tsx
|
|
3739
3739
|
function Message(props) {
|
|
3740
3740
|
const { element, children, ...rest } = props;
|
|
3741
|
-
const attributes = mergeProps({ className:
|
|
3741
|
+
const attributes = mergeProps({ className: classes.toast.message }, rest);
|
|
3742
3742
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3743
3743
|
...attributes,
|
|
3744
3744
|
children
|
|
@@ -3762,7 +3762,7 @@ function Root$2(props) {
|
|
|
3762
3762
|
...toastProps,
|
|
3763
3763
|
parent: group$1
|
|
3764
3764
|
}), normalizeProps);
|
|
3765
|
-
const attributes = mergeProps(toast.getRootProps(), { className:
|
|
3765
|
+
const attributes = mergeProps(toast.getRootProps(), { className: classes.toast.root }, rest);
|
|
3766
3766
|
return /* @__PURE__ */ jsx(RootContext$7.Provider, {
|
|
3767
3767
|
value: toast,
|
|
3768
3768
|
children: element ? element(attributes) : /* @__PURE__ */ jsxs("div", {
|
|
@@ -3781,7 +3781,7 @@ function Root$2(props) {
|
|
|
3781
3781
|
function Title(props) {
|
|
3782
3782
|
const toast = use(RootContext$7);
|
|
3783
3783
|
const { element, children, ...rest } = props;
|
|
3784
|
-
const attributes = mergeProps(toast.getTitleProps(), { className:
|
|
3784
|
+
const attributes = mergeProps(toast.getTitleProps(), { className: classes.toast.title }, rest);
|
|
3785
3785
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3786
3786
|
...attributes,
|
|
3787
3787
|
children
|
|
@@ -3810,7 +3810,7 @@ function Item$1(props) {
|
|
|
3810
3810
|
const toggleGroup = use(RootContext$5);
|
|
3811
3811
|
const [itemProps, componentProps] = splitItemProps$9(props);
|
|
3812
3812
|
const { element, children, ...rest } = componentProps;
|
|
3813
|
-
const attributes = mergeProps(toggleGroup.getItemProps(itemProps), { className:
|
|
3813
|
+
const attributes = mergeProps(toggleGroup.getItemProps(itemProps), { className: classes.toggleGroup.item }, rest);
|
|
3814
3814
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
3815
3815
|
...attributes,
|
|
3816
3816
|
children
|
|
@@ -3829,7 +3829,7 @@ function RootContext$4(props) {
|
|
|
3829
3829
|
//#region src/components/toggle-group/anatomy/root-provider.tsx
|
|
3830
3830
|
function ToggleGroupRootProvider(props) {
|
|
3831
3831
|
const { element, children, value: toggleGroup, ...rest } = props;
|
|
3832
|
-
const attributes = mergeProps(toggleGroup.getRootProps(), { className:
|
|
3832
|
+
const attributes = mergeProps(toggleGroup.getRootProps(), { className: classes.toggleGroup.root }, rest);
|
|
3833
3833
|
return /* @__PURE__ */ jsx(RootContext$5.Provider, {
|
|
3834
3834
|
value: toggleGroup,
|
|
3835
3835
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3854,7 +3854,7 @@ function ToggleGroupRoot(props) {
|
|
|
3854
3854
|
const [toggleGroupProps, componentProps] = splitProps$19(props);
|
|
3855
3855
|
const { element, children, ...rest } = componentProps;
|
|
3856
3856
|
const toggleGroup = useToggleGroup(toggleGroupProps);
|
|
3857
|
-
const attributes = mergeProps(toggleGroup.getRootProps(), { className:
|
|
3857
|
+
const attributes = mergeProps(toggleGroup.getRootProps(), { className: classes.toggleGroup.root }, rest);
|
|
3858
3858
|
return /* @__PURE__ */ jsx(RootContext$5.Provider, {
|
|
3859
3859
|
value: toggleGroup,
|
|
3860
3860
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -3881,7 +3881,7 @@ const RootContext$3 = createContext$1();
|
|
|
3881
3881
|
function ArrowTip(props) {
|
|
3882
3882
|
const tooltip = use(RootContext$3);
|
|
3883
3883
|
const { element, children, ...rest } = props;
|
|
3884
|
-
const attributes = mergeProps(tooltip.getArrowTipProps(), { className:
|
|
3884
|
+
const attributes = mergeProps(tooltip.getArrowTipProps(), { className: classes.tooltip.arrowTip }, rest);
|
|
3885
3885
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3886
3886
|
...attributes,
|
|
3887
3887
|
children
|
|
@@ -3893,7 +3893,7 @@ function ArrowTip(props) {
|
|
|
3893
3893
|
function Arrow(props) {
|
|
3894
3894
|
const tooltip = use(RootContext$3);
|
|
3895
3895
|
const { element, children, ...rest } = props;
|
|
3896
|
-
const attributes = mergeProps(tooltip.getArrowProps(), { className:
|
|
3896
|
+
const attributes = mergeProps(tooltip.getArrowProps(), { className: classes.tooltip.arrow }, rest);
|
|
3897
3897
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3898
3898
|
...attributes,
|
|
3899
3899
|
children
|
|
@@ -3905,7 +3905,7 @@ function Arrow(props) {
|
|
|
3905
3905
|
function Content(props) {
|
|
3906
3906
|
const tooltip = use(RootContext$3);
|
|
3907
3907
|
const { element, children, ...rest } = props;
|
|
3908
|
-
const attributes = mergeProps(tooltip.getContentProps(), { className:
|
|
3908
|
+
const attributes = mergeProps(tooltip.getContentProps(), { className: classes.tooltip.content }, rest);
|
|
3909
3909
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3910
3910
|
...attributes,
|
|
3911
3911
|
children
|
|
@@ -3917,7 +3917,7 @@ function Content(props) {
|
|
|
3917
3917
|
function Positioner(props) {
|
|
3918
3918
|
const tooltip = use(RootContext$3);
|
|
3919
3919
|
const { element, children, ...rest } = props;
|
|
3920
|
-
const attributes = mergeProps(tooltip.getPositionerProps(), { className:
|
|
3920
|
+
const attributes = mergeProps(tooltip.getPositionerProps(), { className: classes.tooltip.positioner }, rest);
|
|
3921
3921
|
return /* @__PURE__ */ jsx(Portal$1, { children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
3922
3922
|
...attributes,
|
|
3923
3923
|
children
|
|
@@ -3968,7 +3968,7 @@ function Root$1(props) {
|
|
|
3968
3968
|
function Trigger(props) {
|
|
3969
3969
|
const tooltip = use(RootContext$3);
|
|
3970
3970
|
const { element, children, ...rest } = props;
|
|
3971
|
-
const attributes = mergeProps(tooltip.getTriggerProps(), { className:
|
|
3971
|
+
const attributes = mergeProps(tooltip.getTriggerProps(), { className: classes.tooltip.trigger }, rest);
|
|
3972
3972
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
3973
3973
|
...attributes,
|
|
3974
3974
|
children
|
|
@@ -4001,7 +4001,7 @@ function BranchContent(props) {
|
|
|
4001
4001
|
const treeView = use(RootContext$1);
|
|
4002
4002
|
const nodeProps = use(NodeContext$1);
|
|
4003
4003
|
const { element, children, ...rest } = props;
|
|
4004
|
-
const attributes = mergeProps(treeView.getBranchContentProps(nodeProps), { className:
|
|
4004
|
+
const attributes = mergeProps(treeView.getBranchContentProps(nodeProps), { className: classes.treeView.branchContent }, rest);
|
|
4005
4005
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
4006
4006
|
...attributes,
|
|
4007
4007
|
children
|
|
@@ -4014,7 +4014,7 @@ function BranchControl(props) {
|
|
|
4014
4014
|
const treeView = use(RootContext$1);
|
|
4015
4015
|
const nodeProps = use(NodeContext$1);
|
|
4016
4016
|
const { element, children, ...rest } = props;
|
|
4017
|
-
const attributes = mergeProps(treeView.getBranchControlProps(nodeProps), { className:
|
|
4017
|
+
const attributes = mergeProps(treeView.getBranchControlProps(nodeProps), { className: classes.treeView.branchControl }, rest);
|
|
4018
4018
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
4019
4019
|
...attributes,
|
|
4020
4020
|
children
|
|
@@ -4027,7 +4027,7 @@ function BranchIndentGuide(props) {
|
|
|
4027
4027
|
const treeView = use(RootContext$1);
|
|
4028
4028
|
const nodeProps = use(NodeContext$1);
|
|
4029
4029
|
const { element, children, ...rest } = props;
|
|
4030
|
-
const attributes = mergeProps(treeView.getBranchIndentGuideProps(nodeProps), { className:
|
|
4030
|
+
const attributes = mergeProps(treeView.getBranchIndentGuideProps(nodeProps), { className: classes.treeView.branchIndentGuide }, rest);
|
|
4031
4031
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
4032
4032
|
...attributes,
|
|
4033
4033
|
children
|
|
@@ -4040,7 +4040,7 @@ function BranchIndicator(props) {
|
|
|
4040
4040
|
const treeView = use(RootContext$1);
|
|
4041
4041
|
const nodeProps = use(NodeContext$1);
|
|
4042
4042
|
const { element, children = /* @__PURE__ */ jsx(ChevronRight, { className: "size-4" }), ...rest } = props;
|
|
4043
|
-
const attributes = mergeProps(treeView.getBranchIndicatorProps(nodeProps), { className:
|
|
4043
|
+
const attributes = mergeProps(treeView.getBranchIndicatorProps(nodeProps), { className: classes.treeView.branchIndicator }, rest);
|
|
4044
4044
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
4045
4045
|
...attributes,
|
|
4046
4046
|
children
|
|
@@ -4053,7 +4053,7 @@ function BranchText(props) {
|
|
|
4053
4053
|
const treeView = use(RootContext$1);
|
|
4054
4054
|
const nodeProps = use(NodeContext$1);
|
|
4055
4055
|
const { element, children, ...rest } = props;
|
|
4056
|
-
const attributes = mergeProps(treeView.getBranchTextProps(nodeProps), { className:
|
|
4056
|
+
const attributes = mergeProps(treeView.getBranchTextProps(nodeProps), { className: classes.treeView.branchText }, rest);
|
|
4057
4057
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
4058
4058
|
...attributes,
|
|
4059
4059
|
children
|
|
@@ -4066,7 +4066,7 @@ function Branch(props) {
|
|
|
4066
4066
|
const treeView = use(RootContext$1);
|
|
4067
4067
|
const nodeProps = use(NodeContext$1);
|
|
4068
4068
|
const { element, children, ...rest } = props;
|
|
4069
|
-
const attributes = mergeProps(treeView.getBranchProps(nodeProps), { className:
|
|
4069
|
+
const attributes = mergeProps(treeView.getBranchProps(nodeProps), { className: classes.treeView.branch }, rest);
|
|
4070
4070
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
4071
4071
|
...attributes,
|
|
4072
4072
|
children
|
|
@@ -4079,7 +4079,7 @@ function Item(props) {
|
|
|
4079
4079
|
const treeView = use(RootContext$1);
|
|
4080
4080
|
const nodeProps = use(NodeContext$1);
|
|
4081
4081
|
const { element, children, ...rest } = props;
|
|
4082
|
-
const attributes = mergeProps(treeView.getItemProps(nodeProps), { className:
|
|
4082
|
+
const attributes = mergeProps(treeView.getItemProps(nodeProps), { className: classes.treeView.item }, rest);
|
|
4083
4083
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
4084
4084
|
...attributes,
|
|
4085
4085
|
children
|
|
@@ -4091,7 +4091,7 @@ function Item(props) {
|
|
|
4091
4091
|
function Label(props) {
|
|
4092
4092
|
const treeView = use(RootContext$1);
|
|
4093
4093
|
const { element, children, level = 3, ...rest } = props;
|
|
4094
|
-
const attributes = mergeProps(treeView.getLabelProps(), { className:
|
|
4094
|
+
const attributes = mergeProps(treeView.getLabelProps(), { className: classes.treeView.label }, rest);
|
|
4095
4095
|
const Tag = `h${level}`;
|
|
4096
4096
|
return element ? element(attributes) : /* @__PURE__ */ jsx(Tag, {
|
|
4097
4097
|
...attributes,
|
|
@@ -4129,7 +4129,7 @@ function RootContext(props) {
|
|
|
4129
4129
|
//#region src/components/tree-view/anatomy/root-provider.tsx
|
|
4130
4130
|
function RootProvider(props) {
|
|
4131
4131
|
const { element, children, value: treeView, ...rest } = props;
|
|
4132
|
-
const attributes = mergeProps(treeView.getRootProps(), { className:
|
|
4132
|
+
const attributes = mergeProps(treeView.getRootProps(), { className: classes.treeView.root }, rest);
|
|
4133
4133
|
return /* @__PURE__ */ jsx(RootContext$1.Provider, {
|
|
4134
4134
|
value: treeView,
|
|
4135
4135
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -4154,7 +4154,7 @@ function Root(props) {
|
|
|
4154
4154
|
const [treeViewProps, componentProps] = splitProps$21(props);
|
|
4155
4155
|
const { element, children, ...rest } = componentProps;
|
|
4156
4156
|
const treeView = useTreeView(treeViewProps);
|
|
4157
|
-
const attributes = mergeProps(treeView.getRootProps(), { className:
|
|
4157
|
+
const attributes = mergeProps(treeView.getRootProps(), { className: classes.treeView.root }, rest);
|
|
4158
4158
|
return /* @__PURE__ */ jsx(RootContext$1.Provider, {
|
|
4159
4159
|
value: treeView,
|
|
4160
4160
|
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
@@ -4169,7 +4169,7 @@ function Root(props) {
|
|
|
4169
4169
|
function Tree(props) {
|
|
4170
4170
|
const treeView = use(RootContext$1);
|
|
4171
4171
|
const { element, children, ...rest } = props;
|
|
4172
|
-
const attributes = mergeProps(treeView.getTreeProps(), { className:
|
|
4172
|
+
const attributes = mergeProps(treeView.getTreeProps(), { className: classes.treeView.tree }, rest);
|
|
4173
4173
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
4174
4174
|
...attributes,
|
|
4175
4175
|
children
|