@fea-ui/react 0.1.0-alpha.7 → 0.1.0-alpha.9
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.cjs +478 -372
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1086 -1026
- package/dist/index.d.mts +823 -763
- package/dist/index.mjs +472 -377
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { cn, cn as cn$1, tv } from "tailwind-variants";
|
|
2
|
-
import { Accordion, AlertDialog, Avatar,
|
|
3
|
-
import {
|
|
4
|
-
import React, { createContext, useCallback, useContext, useMemo, useState } from "react";
|
|
2
|
+
import { Accordion, AlertDialog, Avatar, Dialog, Fieldset, Menu, Meter, Progress, Radio, RadioGroup, Separator, Slider, Switch, Tabs, Toggle } from "@base-ui/react";
|
|
3
|
+
import { LucideAlertTriangle, LucideCheckCircle, LucideChevronDown, LucideChevronUp, LucideInfo, LucideMenu, LucideX, LucideXCircle } from "lucide-react";
|
|
4
|
+
import React, { createContext, useCallback, useContext, useId, useMemo, useState } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Button, CheckboxGroup, DialogTrigger, FieldError, Form, Input, Label, Popover, Text, TextArea, TextField } from "react-aria-components";
|
|
6
7
|
|
|
7
8
|
//#region src/components/accordion/accordion.context.ts
|
|
8
9
|
const AccordionContext = createContext(null);
|
|
@@ -81,14 +82,111 @@ const AccordionContent = ({ className, ...props }) => {
|
|
|
81
82
|
...props
|
|
82
83
|
});
|
|
83
84
|
};
|
|
84
|
-
Accordion$1
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
Accordion$1
|
|
90
|
-
|
|
91
|
-
|
|
85
|
+
var accordion_default = Object.assign(Accordion$1, {
|
|
86
|
+
Content: AccordionContent,
|
|
87
|
+
Header: AccordionHeader,
|
|
88
|
+
Item: AccordionItem,
|
|
89
|
+
Panel: AccordionPanel,
|
|
90
|
+
Root: Accordion$1,
|
|
91
|
+
Trigger: AccordionTrigger,
|
|
92
|
+
TriggerIcon: AccordionTriggerIcon
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/components/alert/alert.context.ts
|
|
97
|
+
const AlertContext = createContext(null);
|
|
98
|
+
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region src/components/alert/alert.variants.ts
|
|
101
|
+
const alertVariants = tv({
|
|
102
|
+
defaultVariants: { variant: "info" },
|
|
103
|
+
slots: {
|
|
104
|
+
content: "alert__content",
|
|
105
|
+
description: "alert__description",
|
|
106
|
+
indicator: "alert__indicator",
|
|
107
|
+
root: "alert",
|
|
108
|
+
title: "alert__title"
|
|
109
|
+
},
|
|
110
|
+
variants: { variant: {
|
|
111
|
+
danger: { root: "alert--danger" },
|
|
112
|
+
info: { root: "alert--info" },
|
|
113
|
+
primary: { root: "alert--primary" },
|
|
114
|
+
success: { root: "alert--success" },
|
|
115
|
+
warning: { root: "alert--warning" }
|
|
116
|
+
} }
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region src/components/alert/use-alert.ts
|
|
121
|
+
const useAlert = () => {
|
|
122
|
+
const context = useContext(AlertContext);
|
|
123
|
+
if (!context) throw new Error("useAlert must be used within a AlertProvider");
|
|
124
|
+
return context;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/components/alert/alert.tsx
|
|
129
|
+
const Alert = ({ className, variant, ...props }) => {
|
|
130
|
+
const slots = useMemo(() => alertVariants({
|
|
131
|
+
className,
|
|
132
|
+
variant
|
|
133
|
+
}), [className, variant]);
|
|
134
|
+
return /* @__PURE__ */ jsx(AlertContext, {
|
|
135
|
+
value: {
|
|
136
|
+
slots,
|
|
137
|
+
variant
|
|
138
|
+
},
|
|
139
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
140
|
+
className: cn$1(className, slots.root()),
|
|
141
|
+
...props
|
|
142
|
+
})
|
|
143
|
+
});
|
|
144
|
+
};
|
|
145
|
+
const AlertIndicator = ({ className, children, ...props }) => {
|
|
146
|
+
const { slots, variant } = useAlert();
|
|
147
|
+
const IndicatorIcon = ({ children: children$1 }) => {
|
|
148
|
+
if (children$1) return children$1;
|
|
149
|
+
switch (variant) {
|
|
150
|
+
case "danger": return /* @__PURE__ */ jsx(LucideXCircle, {});
|
|
151
|
+
case "success": return /* @__PURE__ */ jsx(LucideCheckCircle, {});
|
|
152
|
+
case "warning": return /* @__PURE__ */ jsx(LucideAlertTriangle, {});
|
|
153
|
+
default: return /* @__PURE__ */ jsx(LucideInfo, {});
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
return /* @__PURE__ */ jsx("div", {
|
|
157
|
+
className: cn$1(className, slots.indicator()),
|
|
158
|
+
...props,
|
|
159
|
+
children: /* @__PURE__ */ jsx(IndicatorIcon, { children })
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
const AlertContent = ({ className, ...props }) => {
|
|
163
|
+
const { slots } = useAlert();
|
|
164
|
+
return /* @__PURE__ */ jsx("div", {
|
|
165
|
+
className: cn$1(className, slots.content()),
|
|
166
|
+
...props
|
|
167
|
+
});
|
|
168
|
+
};
|
|
169
|
+
const AlertTitle = ({ className, ...props }) => {
|
|
170
|
+
const { slots } = useAlert();
|
|
171
|
+
return /* @__PURE__ */ jsx("div", {
|
|
172
|
+
className: cn$1(className, slots.title()),
|
|
173
|
+
...props
|
|
174
|
+
});
|
|
175
|
+
};
|
|
176
|
+
const AlertDescription = ({ className, ...props }) => {
|
|
177
|
+
const { slots } = useAlert();
|
|
178
|
+
return /* @__PURE__ */ jsx("div", {
|
|
179
|
+
className: cn$1(className, slots.description()),
|
|
180
|
+
...props
|
|
181
|
+
});
|
|
182
|
+
};
|
|
183
|
+
var alert_default = Object.assign(Alert, {
|
|
184
|
+
Content: AlertContent,
|
|
185
|
+
Description: AlertDescription,
|
|
186
|
+
Indicator: AlertIndicator,
|
|
187
|
+
Root: Alert,
|
|
188
|
+
Title: AlertTitle
|
|
189
|
+
});
|
|
92
190
|
|
|
93
191
|
//#endregion
|
|
94
192
|
//#region src/components/alert-dialog/alert-dialog.context.ts
|
|
@@ -181,16 +279,17 @@ const AlertDialogClose = ({ className, children, ...props }) => {
|
|
|
181
279
|
children: children ?? /* @__PURE__ */ jsx(LucideX, {})
|
|
182
280
|
});
|
|
183
281
|
};
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
AlertDialog$1
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
282
|
+
var alert_dialog_default = Object.assign(AlertDialog$1, {
|
|
283
|
+
Backdrop: AlertDialogBackdrop,
|
|
284
|
+
Close: AlertDialogClose,
|
|
285
|
+
Description: AlertDialogDescription,
|
|
286
|
+
Popup: AlertDialogPopup,
|
|
287
|
+
Portal: AlertDialogPortal,
|
|
288
|
+
Root: AlertDialog$1,
|
|
289
|
+
Title: AlertDialogTitle,
|
|
290
|
+
Trigger: AlertDialogTrigger,
|
|
291
|
+
Viewport: AlertDialogViewport
|
|
292
|
+
});
|
|
194
293
|
|
|
195
294
|
//#endregion
|
|
196
295
|
//#region src/components/avatar/avatar.context.ts
|
|
@@ -246,10 +345,11 @@ const AvatarFallback = ({ className, ...props }) => {
|
|
|
246
345
|
...props
|
|
247
346
|
});
|
|
248
347
|
};
|
|
249
|
-
Avatar$1
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
348
|
+
var avatar_default = Object.assign(Avatar$1, {
|
|
349
|
+
Fallback: AvatarFallback,
|
|
350
|
+
Image: AvatarImage,
|
|
351
|
+
Root: Avatar$1
|
|
352
|
+
});
|
|
253
353
|
|
|
254
354
|
//#endregion
|
|
255
355
|
//#region src/components/button/button.variants.ts
|
|
@@ -384,58 +484,14 @@ const CardDescription = ({ className, ...props }) => {
|
|
|
384
484
|
});
|
|
385
485
|
};
|
|
386
486
|
/** Exports */
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
Card
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
//#endregion
|
|
396
|
-
//#region src/components/checkbox/checkbox.context.ts
|
|
397
|
-
const CheckboxContext = createContext(null);
|
|
398
|
-
|
|
399
|
-
//#endregion
|
|
400
|
-
//#region src/components/checkbox/checkbox.variants.ts
|
|
401
|
-
const checkboxVariants = tv({ slots: {
|
|
402
|
-
checkboxIcon: "checkbox__icon",
|
|
403
|
-
indicator: "checkbox__indicator",
|
|
404
|
-
label: "checkbox__label",
|
|
405
|
-
root: "checkbox"
|
|
406
|
-
} });
|
|
407
|
-
|
|
408
|
-
//#endregion
|
|
409
|
-
//#region src/components/checkbox/use-checkbox.ts
|
|
410
|
-
const useCheckbox = () => {
|
|
411
|
-
const ctx = useContext(CheckboxContext);
|
|
412
|
-
if (!ctx) throw new Error("CheckboxContext must be used with in the Checkbox component.");
|
|
413
|
-
return ctx;
|
|
414
|
-
};
|
|
415
|
-
|
|
416
|
-
//#endregion
|
|
417
|
-
//#region src/components/checkbox/checkbox.tsx
|
|
418
|
-
const Checkbox$1 = ({ className, ...props }) => {
|
|
419
|
-
const slots = useMemo(() => checkboxVariants(), []);
|
|
420
|
-
return /* @__PURE__ */ jsx(CheckboxContext.Provider, {
|
|
421
|
-
value: { slots },
|
|
422
|
-
children: /* @__PURE__ */ jsx(Checkbox.Root, {
|
|
423
|
-
className: cn$1(className, slots.root()),
|
|
424
|
-
...props
|
|
425
|
-
})
|
|
426
|
-
});
|
|
427
|
-
};
|
|
428
|
-
const CheckboxIndicator = ({ className, ...props }) => {
|
|
429
|
-
const { slots } = useCheckbox();
|
|
430
|
-
return /* @__PURE__ */ jsx(Checkbox.Indicator, {
|
|
431
|
-
className: cn$1(className, slots.indicator()),
|
|
432
|
-
...props,
|
|
433
|
-
children: /* @__PURE__ */ jsx(LucideCheck, { className: slots.checkboxIcon() })
|
|
434
|
-
});
|
|
435
|
-
};
|
|
436
|
-
Checkbox$1.Indicator = CheckboxIndicator;
|
|
437
|
-
Checkbox$1.Root = Checkbox$1;
|
|
438
|
-
var checkbox_default = Checkbox$1;
|
|
487
|
+
var card_default = Object.assign(Card, {
|
|
488
|
+
Body: CardBody,
|
|
489
|
+
Description: CardDescription,
|
|
490
|
+
Footer: CardFooter,
|
|
491
|
+
Header: CardHeader,
|
|
492
|
+
Root: Card,
|
|
493
|
+
Title: CardTitle
|
|
494
|
+
});
|
|
439
495
|
|
|
440
496
|
//#endregion
|
|
441
497
|
//#region src/components/checkbox-group/checkbox-group.variants.ts
|
|
@@ -502,6 +558,22 @@ const Container = ({ className, ...props }) => {
|
|
|
502
558
|
};
|
|
503
559
|
var container_default = Container;
|
|
504
560
|
|
|
561
|
+
//#endregion
|
|
562
|
+
//#region src/components/description/description.variants.ts
|
|
563
|
+
const descriptionVariants = tv({ base: "description" });
|
|
564
|
+
|
|
565
|
+
//#endregion
|
|
566
|
+
//#region src/components/description/description.tsx
|
|
567
|
+
const Description = ({ className, ...props }) => {
|
|
568
|
+
return /* @__PURE__ */ jsx(Text, {
|
|
569
|
+
className: cn$1(className, descriptionVariants()),
|
|
570
|
+
"data-slot": "description",
|
|
571
|
+
slot: "description",
|
|
572
|
+
...props
|
|
573
|
+
});
|
|
574
|
+
};
|
|
575
|
+
var description_default = Description;
|
|
576
|
+
|
|
505
577
|
//#endregion
|
|
506
578
|
//#region src/components/dialog/dialog.context.ts
|
|
507
579
|
const DialogContext = createContext(null);
|
|
@@ -537,7 +609,7 @@ const Dialog$1 = ({ ...props }) => {
|
|
|
537
609
|
children: /* @__PURE__ */ jsx(Dialog.Root, { ...props })
|
|
538
610
|
});
|
|
539
611
|
};
|
|
540
|
-
const DialogTrigger = ({ className, ...props }) => {
|
|
612
|
+
const DialogTrigger$1 = ({ className, ...props }) => {
|
|
541
613
|
const { slots } = useDialog();
|
|
542
614
|
return /* @__PURE__ */ jsx(Dialog.Trigger, {
|
|
543
615
|
className: cn$1(slots.trigger(), className),
|
|
@@ -594,16 +666,17 @@ const DialogClose = ({ className, ...props }) => {
|
|
|
594
666
|
children: /* @__PURE__ */ jsx(LucideX, {})
|
|
595
667
|
});
|
|
596
668
|
};
|
|
597
|
-
Dialog$1
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
Dialog$1
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
669
|
+
var dialog_default = Object.assign(Dialog$1, {
|
|
670
|
+
Backdrop: DialogBackdrop,
|
|
671
|
+
Close: DialogClose,
|
|
672
|
+
Description: DialogDescription,
|
|
673
|
+
Popup: DialogPopup,
|
|
674
|
+
Portal: DialogPortal,
|
|
675
|
+
Root: Dialog$1,
|
|
676
|
+
Title: DialogTitle,
|
|
677
|
+
Trigger: DialogTrigger$1,
|
|
678
|
+
Viewport: DialogViewport
|
|
679
|
+
});
|
|
607
680
|
|
|
608
681
|
//#endregion
|
|
609
682
|
//#region src/components/drawer/drawer.context.ts
|
|
@@ -705,93 +778,33 @@ const DrawerClose = ({ className, children, ...props }) => {
|
|
|
705
778
|
children: children ?? /* @__PURE__ */ jsx(LucideX, {})
|
|
706
779
|
});
|
|
707
780
|
};
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
Drawer
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
//#endregion
|
|
720
|
-
//#region src/components/field/field.context.ts
|
|
721
|
-
const FieldContext = createContext(null);
|
|
722
|
-
|
|
723
|
-
//#endregion
|
|
724
|
-
//#region src/components/field/field.variants.ts
|
|
725
|
-
const fieldVariants = tv({
|
|
726
|
-
slots: {
|
|
727
|
-
control: "input",
|
|
728
|
-
description: "field__description",
|
|
729
|
-
error: "field__error",
|
|
730
|
-
label: "label",
|
|
731
|
-
root: "field"
|
|
732
|
-
},
|
|
733
|
-
variants: { size: {
|
|
734
|
-
lg: { control: "input--lg" },
|
|
735
|
-
md: { control: "input--md" },
|
|
736
|
-
sm: { control: "input--sm" }
|
|
737
|
-
} }
|
|
781
|
+
var drawer_default = Object.assign(Drawer, {
|
|
782
|
+
Backdrop: DrawerBackdrop,
|
|
783
|
+
Close: DrawerClose,
|
|
784
|
+
Description: DrawerDescription,
|
|
785
|
+
Popup: DrawerPopup,
|
|
786
|
+
Portal: DrawerPortal,
|
|
787
|
+
Root: Drawer,
|
|
788
|
+
Title: DrawerTitle,
|
|
789
|
+
Trigger: DrawerTrigger,
|
|
790
|
+
Viewport: DrawerViewport
|
|
738
791
|
});
|
|
739
792
|
|
|
740
793
|
//#endregion
|
|
741
|
-
//#region src/components/field/
|
|
742
|
-
const
|
|
743
|
-
const ctx = useContext(FieldContext);
|
|
744
|
-
if (!ctx) throw new Error("FieldContext must be used with in the Field component.");
|
|
745
|
-
return ctx;
|
|
746
|
-
};
|
|
794
|
+
//#region src/components/field-error/field-error.variants.ts
|
|
795
|
+
const fieldErrorVariants = tv({ base: "field-error" });
|
|
747
796
|
|
|
748
797
|
//#endregion
|
|
749
|
-
//#region src/components/field/field.tsx
|
|
750
|
-
const
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
children: /* @__PURE__ */ jsx(Field.Root, {
|
|
756
|
-
className: cn$1(className, slots.root()),
|
|
757
|
-
...props
|
|
758
|
-
})
|
|
759
|
-
});
|
|
760
|
-
};
|
|
761
|
-
const FieldLabel = ({ className, ...props }) => {
|
|
762
|
-
const { slots } = useField();
|
|
763
|
-
return /* @__PURE__ */ jsx(Field.Label, {
|
|
764
|
-
className: cn$1(className, slots.label()),
|
|
765
|
-
...props
|
|
766
|
-
});
|
|
767
|
-
};
|
|
768
|
-
const FieldDescription = ({ className, ...props }) => {
|
|
769
|
-
const { slots } = useField();
|
|
770
|
-
return /* @__PURE__ */ jsx(Field.Description, {
|
|
771
|
-
className: cn$1(className, slots.description()),
|
|
772
|
-
...props
|
|
773
|
-
});
|
|
774
|
-
};
|
|
775
|
-
const FieldControl = ({ className, ...props }) => {
|
|
776
|
-
const { slots } = useField();
|
|
777
|
-
return /* @__PURE__ */ jsx(Field.Control, {
|
|
778
|
-
className: cn$1(className, slots.control()),
|
|
779
|
-
...props
|
|
780
|
-
});
|
|
781
|
-
};
|
|
782
|
-
const FieldError = ({ className, ...props }) => {
|
|
783
|
-
const { slots } = useField();
|
|
784
|
-
return /* @__PURE__ */ jsx(Field.Error, {
|
|
785
|
-
className: cn$1(slots.error(), className),
|
|
798
|
+
//#region src/components/field-error/field-error.tsx
|
|
799
|
+
const FieldError$1 = ({ className, ...props }) => {
|
|
800
|
+
return /* @__PURE__ */ jsx(FieldError, {
|
|
801
|
+
className: cn$1(className, fieldErrorVariants()),
|
|
802
|
+
"data-slot": "field-error",
|
|
803
|
+
"data-visible": true,
|
|
786
804
|
...props
|
|
787
805
|
});
|
|
788
806
|
};
|
|
789
|
-
|
|
790
|
-
Field$1.Description = FieldDescription;
|
|
791
|
-
Field$1.Error = FieldError;
|
|
792
|
-
Field$1.Label = FieldLabel;
|
|
793
|
-
Field$1.Root = Field$1;
|
|
794
|
-
var field_default = Field$1;
|
|
807
|
+
var field_error_default = FieldError$1;
|
|
795
808
|
|
|
796
809
|
//#endregion
|
|
797
810
|
//#region src/components/fieldset/fieldset.context.ts
|
|
@@ -831,9 +844,10 @@ const FieldsetLegend = ({ className, ...props }) => {
|
|
|
831
844
|
...props
|
|
832
845
|
});
|
|
833
846
|
};
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
847
|
+
var fieldset_default = Object.assign(Fieldset$1, {
|
|
848
|
+
Legend: FieldsetLegend,
|
|
849
|
+
Root: Fieldset$1
|
|
850
|
+
});
|
|
837
851
|
|
|
838
852
|
//#endregion
|
|
839
853
|
//#region src/components/form/form.variants.ts
|
|
@@ -841,13 +855,13 @@ const formVariants = tv({ base: "form" });
|
|
|
841
855
|
|
|
842
856
|
//#endregion
|
|
843
857
|
//#region src/components/form/form.tsx
|
|
844
|
-
const Form = ({ className, ...props }) => {
|
|
845
|
-
return /* @__PURE__ */ jsx(
|
|
858
|
+
const Form$1 = ({ className, ...props }) => {
|
|
859
|
+
return /* @__PURE__ */ jsx(Form, {
|
|
846
860
|
className: cn$1(className, formVariants()),
|
|
847
861
|
...props
|
|
848
862
|
});
|
|
849
863
|
};
|
|
850
|
-
var form_default = Form;
|
|
864
|
+
var form_default = Form$1;
|
|
851
865
|
|
|
852
866
|
//#endregion
|
|
853
867
|
//#region src/components/icon-button/icon-button.variants.ts
|
|
@@ -873,20 +887,13 @@ var icon_button_default = IconButton;
|
|
|
873
887
|
|
|
874
888
|
//#endregion
|
|
875
889
|
//#region src/components/input/input.variants.ts
|
|
876
|
-
const inputVariants = tv({
|
|
877
|
-
base: "input",
|
|
878
|
-
variants: { inputSize: {
|
|
879
|
-
lg: "input--lg",
|
|
880
|
-
md: "input--md",
|
|
881
|
-
sm: "input--sm"
|
|
882
|
-
} }
|
|
883
|
-
});
|
|
890
|
+
const inputVariants = tv({ base: "input" });
|
|
884
891
|
|
|
885
892
|
//#endregion
|
|
886
893
|
//#region src/components/input/input.tsx
|
|
887
|
-
const Input$1 = ({ className,
|
|
894
|
+
const Input$1 = ({ className, ...props }) => {
|
|
888
895
|
return /* @__PURE__ */ jsx(Input, {
|
|
889
|
-
className: cn$1(className, inputVariants(
|
|
896
|
+
className: cn$1(className, inputVariants()),
|
|
890
897
|
...props
|
|
891
898
|
});
|
|
892
899
|
};
|
|
@@ -898,13 +905,13 @@ const labelVariants = tv({ base: "label" });
|
|
|
898
905
|
|
|
899
906
|
//#endregion
|
|
900
907
|
//#region src/components/label/label.tsx
|
|
901
|
-
const Label = ({ className, ...props }) => {
|
|
902
|
-
return /* @__PURE__ */ jsx(
|
|
908
|
+
const Label$1 = ({ className, ...props }) => {
|
|
909
|
+
return /* @__PURE__ */ jsx(Label, {
|
|
903
910
|
className: cn$1(className, labelVariants()),
|
|
904
911
|
...props
|
|
905
912
|
});
|
|
906
913
|
};
|
|
907
|
-
var label_default = Label;
|
|
914
|
+
var label_default = Label$1;
|
|
908
915
|
|
|
909
916
|
//#endregion
|
|
910
917
|
//#region src/components/link/link.variants.ts
|
|
@@ -965,9 +972,10 @@ const ListItem = ({ className, ...props }) => {
|
|
|
965
972
|
...props
|
|
966
973
|
});
|
|
967
974
|
};
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
975
|
+
var list_default = Object.assign(List, {
|
|
976
|
+
Item: ListItem,
|
|
977
|
+
Root: List
|
|
978
|
+
});
|
|
971
979
|
|
|
972
980
|
//#endregion
|
|
973
981
|
//#region src/components/menu/menu.context.ts
|
|
@@ -1046,11 +1054,12 @@ const MenuPopup = ({ className, ...props }) => {
|
|
|
1046
1054
|
...props
|
|
1047
1055
|
});
|
|
1048
1056
|
};
|
|
1049
|
-
const MenuArrow = ({ className, ...props }) => {
|
|
1057
|
+
const MenuArrow = ({ className, children, ...props }) => {
|
|
1050
1058
|
const { slots } = useMenu();
|
|
1051
1059
|
return /* @__PURE__ */ jsx(Menu.Arrow, {
|
|
1052
1060
|
className: cn$1(slots.arrow(), className),
|
|
1053
|
-
...props
|
|
1061
|
+
...props,
|
|
1062
|
+
children: children ?? /* @__PURE__ */ jsx(LucideChevronUp, {})
|
|
1054
1063
|
});
|
|
1055
1064
|
};
|
|
1056
1065
|
const MenuItem = ({ className, ...props }) => {
|
|
@@ -1112,23 +1121,24 @@ const MenuSubmenuTrigger = ({ className, ...props }) => {
|
|
|
1112
1121
|
...props
|
|
1113
1122
|
});
|
|
1114
1123
|
};
|
|
1115
|
-
Menu$1
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
Menu$1
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1124
|
+
var menu_default = Object.assign(Menu$1, {
|
|
1125
|
+
Arrow: MenuArrow,
|
|
1126
|
+
Backdrop: MenuBackdrop,
|
|
1127
|
+
CheckboxItem: MenuCheckboxItem,
|
|
1128
|
+
Group: MenuGroup,
|
|
1129
|
+
GroupLabel: MenuGroupLabel,
|
|
1130
|
+
Item: MenuItem,
|
|
1131
|
+
Popup: MenuPopup,
|
|
1132
|
+
Portal: MenuPortal,
|
|
1133
|
+
Positioner: MenuPositioner,
|
|
1134
|
+
RadioGroup: MenuRadioGroup,
|
|
1135
|
+
RadioItem: MenuRadioItem,
|
|
1136
|
+
Root: Menu$1,
|
|
1137
|
+
Separator: MenuSeparator,
|
|
1138
|
+
Submenu: MenuSubmenu,
|
|
1139
|
+
SubmenuTrigger: MenuSubmenuTrigger,
|
|
1140
|
+
Trigger: MenuTrigger
|
|
1141
|
+
});
|
|
1132
1142
|
|
|
1133
1143
|
//#endregion
|
|
1134
1144
|
//#region src/components/meter/meter.context.ts
|
|
@@ -1210,12 +1220,13 @@ const MeterIndicator = ({ className, ...props }) => {
|
|
|
1210
1220
|
...props
|
|
1211
1221
|
});
|
|
1212
1222
|
};
|
|
1213
|
-
Meter$1
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
Meter$1
|
|
1217
|
-
|
|
1218
|
-
|
|
1223
|
+
var meter_default = Object.assign(Meter$1, {
|
|
1224
|
+
Indicator: MeterIndicator,
|
|
1225
|
+
Label: MeterLabel,
|
|
1226
|
+
Root: Meter$1,
|
|
1227
|
+
Track: MeterTrack,
|
|
1228
|
+
Value: MeterValue
|
|
1229
|
+
});
|
|
1219
1230
|
|
|
1220
1231
|
//#endregion
|
|
1221
1232
|
//#region src/components/separator/separator.variants.ts
|
|
@@ -1346,133 +1357,36 @@ const NavbarMenuItem = ({ className, ...props }) => {
|
|
|
1346
1357
|
...props
|
|
1347
1358
|
});
|
|
1348
1359
|
};
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
Navbar
|
|
1357
|
-
|
|
1360
|
+
var navbar_default = Object.assign(Navbar, {
|
|
1361
|
+
Container: NavbarContainer,
|
|
1362
|
+
Content: NavbarContent,
|
|
1363
|
+
List: NavbarList,
|
|
1364
|
+
ListItem: NavbarListItem,
|
|
1365
|
+
Menu: NavbarMenu,
|
|
1366
|
+
MenuItem: NavbarMenuItem,
|
|
1367
|
+
Root: Navbar,
|
|
1368
|
+
Toggle: NavbarToggle
|
|
1369
|
+
});
|
|
1358
1370
|
|
|
1359
1371
|
//#endregion
|
|
1360
|
-
//#region src/components/
|
|
1361
|
-
const
|
|
1372
|
+
//#region src/components/overlay-trigger/overlay-trigger.tsx
|
|
1373
|
+
const OverlayTrigger = ({ ...props }) => {
|
|
1374
|
+
return /* @__PURE__ */ jsx(DialogTrigger, { ...props });
|
|
1375
|
+
};
|
|
1376
|
+
var overlay_trigger_default = OverlayTrigger;
|
|
1362
1377
|
|
|
1363
1378
|
//#endregion
|
|
1364
1379
|
//#region src/components/popover/popover.variants.ts
|
|
1365
|
-
const popoverVariants = tv({
|
|
1366
|
-
arrow: "popover__arrow",
|
|
1367
|
-
backdrop: "popover__backdrop",
|
|
1368
|
-
close: "popover__close",
|
|
1369
|
-
description: "popover__description",
|
|
1370
|
-
popup: "popover__popup",
|
|
1371
|
-
portal: "popover__portal",
|
|
1372
|
-
positioner: "popover__positioner",
|
|
1373
|
-
root: "popover",
|
|
1374
|
-
title: "popover__title",
|
|
1375
|
-
trigger: "popover__trigger",
|
|
1376
|
-
viewport: "popover__viewport"
|
|
1377
|
-
} });
|
|
1378
|
-
|
|
1379
|
-
//#endregion
|
|
1380
|
-
//#region src/components/popover/use-popover.ts
|
|
1381
|
-
const usePopover = () => {
|
|
1382
|
-
const context = useContext(PopoverContext);
|
|
1383
|
-
if (!context) throw new Error("usePopover must be used within a PopoverProvider");
|
|
1384
|
-
return context;
|
|
1385
|
-
};
|
|
1380
|
+
const popoverVariants = tv({ base: "popover" });
|
|
1386
1381
|
|
|
1387
1382
|
//#endregion
|
|
1388
1383
|
//#region src/components/popover/popover.tsx
|
|
1389
1384
|
const Popover$1 = ({ ...props }) => {
|
|
1390
|
-
return /* @__PURE__ */ jsx(
|
|
1391
|
-
|
|
1392
|
-
children: /* @__PURE__ */ jsx(Popover.Root, { ...props })
|
|
1393
|
-
});
|
|
1394
|
-
};
|
|
1395
|
-
const PopoverTrigger = ({ className, ...props }) => {
|
|
1396
|
-
const { slots } = usePopover();
|
|
1397
|
-
return /* @__PURE__ */ jsx(Popover.Trigger, {
|
|
1398
|
-
className: cn$1(slots.trigger(), className),
|
|
1399
|
-
...props
|
|
1400
|
-
});
|
|
1401
|
-
};
|
|
1402
|
-
const PopoverPortal = ({ className, ...props }) => {
|
|
1403
|
-
const { slots } = usePopover();
|
|
1404
|
-
return /* @__PURE__ */ jsx(Popover.Portal, {
|
|
1405
|
-
className: cn$1(slots.portal(), className),
|
|
1406
|
-
...props
|
|
1407
|
-
});
|
|
1408
|
-
};
|
|
1409
|
-
const PopoverBackdrop = ({ className, ...props }) => {
|
|
1410
|
-
const { slots } = usePopover();
|
|
1411
|
-
return /* @__PURE__ */ jsx(Popover.Backdrop, {
|
|
1412
|
-
className: cn$1(slots.backdrop(), className),
|
|
1385
|
+
return /* @__PURE__ */ jsx(Popover, {
|
|
1386
|
+
className: cn$1(popoverVariants()),
|
|
1413
1387
|
...props
|
|
1414
1388
|
});
|
|
1415
1389
|
};
|
|
1416
|
-
const PopoverPositioner = ({ className, ...props }) => {
|
|
1417
|
-
const { slots } = usePopover();
|
|
1418
|
-
return /* @__PURE__ */ jsx(Popover.Positioner, {
|
|
1419
|
-
className: cn$1(slots.positioner(), className),
|
|
1420
|
-
...props
|
|
1421
|
-
});
|
|
1422
|
-
};
|
|
1423
|
-
const PopoverPopup = ({ className, ...props }) => {
|
|
1424
|
-
const { slots } = usePopover();
|
|
1425
|
-
return /* @__PURE__ */ jsx(Popover.Popup, {
|
|
1426
|
-
className: cn$1(slots.popup(), className),
|
|
1427
|
-
...props
|
|
1428
|
-
});
|
|
1429
|
-
};
|
|
1430
|
-
const PopoverArrow = ({ className, ...props }) => {
|
|
1431
|
-
const { slots } = usePopover();
|
|
1432
|
-
return /* @__PURE__ */ jsx(Popover.Arrow, {
|
|
1433
|
-
className: cn$1(slots.arrow(), className),
|
|
1434
|
-
...props
|
|
1435
|
-
});
|
|
1436
|
-
};
|
|
1437
|
-
const PopoverViewport = ({ className, ...props }) => {
|
|
1438
|
-
const { slots } = usePopover();
|
|
1439
|
-
return /* @__PURE__ */ jsx(Popover.Viewport, {
|
|
1440
|
-
className: cn$1(slots.viewport(), className),
|
|
1441
|
-
...props
|
|
1442
|
-
});
|
|
1443
|
-
};
|
|
1444
|
-
const PopoverTitle = ({ className, ...props }) => {
|
|
1445
|
-
const { slots } = usePopover();
|
|
1446
|
-
return /* @__PURE__ */ jsx(Popover.Title, {
|
|
1447
|
-
className: cn$1(slots.title(), className),
|
|
1448
|
-
...props
|
|
1449
|
-
});
|
|
1450
|
-
};
|
|
1451
|
-
const PopoverDescription = ({ className, ...props }) => {
|
|
1452
|
-
const { slots } = usePopover();
|
|
1453
|
-
return /* @__PURE__ */ jsx(Popover.Description, {
|
|
1454
|
-
className: cn$1(slots.description(), className),
|
|
1455
|
-
...props
|
|
1456
|
-
});
|
|
1457
|
-
};
|
|
1458
|
-
const PopoverClose = ({ className, ...props }) => {
|
|
1459
|
-
const { slots } = usePopover();
|
|
1460
|
-
return /* @__PURE__ */ jsx(Popover.Close, {
|
|
1461
|
-
className: cn$1(slots.close(), className),
|
|
1462
|
-
...props
|
|
1463
|
-
});
|
|
1464
|
-
};
|
|
1465
|
-
Popover$1.Root = Popover$1;
|
|
1466
|
-
Popover$1.Trigger = PopoverTrigger;
|
|
1467
|
-
Popover$1.Portal = PopoverPortal;
|
|
1468
|
-
Popover$1.Backdrop = PopoverBackdrop;
|
|
1469
|
-
Popover$1.Positioner = PopoverPositioner;
|
|
1470
|
-
Popover$1.Popup = PopoverPopup;
|
|
1471
|
-
Popover$1.Arrow = PopoverArrow;
|
|
1472
|
-
Popover$1.Viewport = PopoverViewport;
|
|
1473
|
-
Popover$1.Title = PopoverTitle;
|
|
1474
|
-
Popover$1.Description = PopoverDescription;
|
|
1475
|
-
Popover$1.Close = PopoverClose;
|
|
1476
1390
|
var popover_default = Popover$1;
|
|
1477
1391
|
|
|
1478
1392
|
//#endregion
|
|
@@ -1481,13 +1395,32 @@ const ProgressContext = createContext(null);
|
|
|
1481
1395
|
|
|
1482
1396
|
//#endregion
|
|
1483
1397
|
//#region src/components/progress/progress.variants.ts
|
|
1484
|
-
const progressVariants = tv({
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1398
|
+
const progressVariants = tv({
|
|
1399
|
+
defaultVariants: {
|
|
1400
|
+
size: "md",
|
|
1401
|
+
variant: "primary"
|
|
1402
|
+
},
|
|
1403
|
+
slots: {
|
|
1404
|
+
indicator: "progress__indicator",
|
|
1405
|
+
label: "progress__label",
|
|
1406
|
+
root: "progress",
|
|
1407
|
+
track: "progress__track",
|
|
1408
|
+
value: "progress__value"
|
|
1409
|
+
},
|
|
1410
|
+
variants: {
|
|
1411
|
+
size: {
|
|
1412
|
+
lg: { root: "progress--lg" },
|
|
1413
|
+
md: { root: "progress--md" },
|
|
1414
|
+
sm: { root: "progress--sm" }
|
|
1415
|
+
},
|
|
1416
|
+
variant: {
|
|
1417
|
+
danger: { root: "progress--danger" },
|
|
1418
|
+
primary: { root: "progress--primary" },
|
|
1419
|
+
secondary: { root: "progress--secondary" },
|
|
1420
|
+
success: { root: "progress--success" }
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
});
|
|
1491
1424
|
|
|
1492
1425
|
//#endregion
|
|
1493
1426
|
//#region src/components/progress/use-progress.ts
|
|
@@ -1499,8 +1432,11 @@ const useProgress = () => {
|
|
|
1499
1432
|
|
|
1500
1433
|
//#endregion
|
|
1501
1434
|
//#region src/components/progress/progress.tsx
|
|
1502
|
-
const Progress$1 = ({ className, ...props }) => {
|
|
1503
|
-
const slots = useMemo(() => progressVariants(
|
|
1435
|
+
const Progress$1 = ({ className, variant, size, ...props }) => {
|
|
1436
|
+
const slots = useMemo(() => progressVariants({
|
|
1437
|
+
size,
|
|
1438
|
+
variant
|
|
1439
|
+
}), [variant, size]);
|
|
1504
1440
|
return /* @__PURE__ */ jsx(ProgressContext, {
|
|
1505
1441
|
value: { slots },
|
|
1506
1442
|
children: /* @__PURE__ */ jsx(Progress.Root, {
|
|
@@ -1537,12 +1473,156 @@ const ProgressIndicator = ({ className, ...props }) => {
|
|
|
1537
1473
|
...props
|
|
1538
1474
|
});
|
|
1539
1475
|
};
|
|
1540
|
-
Progress$1
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
Progress$1
|
|
1544
|
-
|
|
1545
|
-
|
|
1476
|
+
var progress_default = Object.assign(Progress$1, {
|
|
1477
|
+
Indicator: ProgressIndicator,
|
|
1478
|
+
Label: ProgressLabel,
|
|
1479
|
+
Root: Progress$1,
|
|
1480
|
+
Track: ProgressTrack,
|
|
1481
|
+
Value: ProgressValue
|
|
1482
|
+
});
|
|
1483
|
+
|
|
1484
|
+
//#endregion
|
|
1485
|
+
//#region src/components/radio/radio.context.ts
|
|
1486
|
+
const RadioContext = createContext(null);
|
|
1487
|
+
|
|
1488
|
+
//#endregion
|
|
1489
|
+
//#region src/components/radio/radio.variants.ts
|
|
1490
|
+
const radioVariants = tv({ slots: {
|
|
1491
|
+
indicator: "radio__indicator",
|
|
1492
|
+
root: "radio"
|
|
1493
|
+
} });
|
|
1494
|
+
|
|
1495
|
+
//#endregion
|
|
1496
|
+
//#region src/components/radio/use-radio.ts
|
|
1497
|
+
const useRadio = () => {
|
|
1498
|
+
const context = useContext(RadioContext);
|
|
1499
|
+
if (!context) throw new Error("useRadio must be used within a RadioProvider");
|
|
1500
|
+
return context;
|
|
1501
|
+
};
|
|
1502
|
+
|
|
1503
|
+
//#endregion
|
|
1504
|
+
//#region src/components/radio/radio.tsx
|
|
1505
|
+
const Radio$1 = ({ className, ...props }) => {
|
|
1506
|
+
const slots = useMemo(() => radioVariants({}), []);
|
|
1507
|
+
return /* @__PURE__ */ jsx(RadioContext, {
|
|
1508
|
+
value: { slots },
|
|
1509
|
+
children: /* @__PURE__ */ jsx(Radio.Root, {
|
|
1510
|
+
className: cn$1(slots.root(), className),
|
|
1511
|
+
...props
|
|
1512
|
+
})
|
|
1513
|
+
});
|
|
1514
|
+
};
|
|
1515
|
+
const RadioIndicator = ({ className, ...props }) => {
|
|
1516
|
+
const { slots } = useRadio();
|
|
1517
|
+
return /* @__PURE__ */ jsx(Radio.Indicator, {
|
|
1518
|
+
className: cn$1(slots.indicator(), className),
|
|
1519
|
+
...props
|
|
1520
|
+
});
|
|
1521
|
+
};
|
|
1522
|
+
var radio_default = Object.assign(Radio$1, {
|
|
1523
|
+
Indicator: RadioIndicator,
|
|
1524
|
+
Root: Radio$1
|
|
1525
|
+
});
|
|
1526
|
+
|
|
1527
|
+
//#endregion
|
|
1528
|
+
//#region src/components/radio-group/radio-group.variants.ts
|
|
1529
|
+
const radioGroupVariants = tv({ base: "radio-group" });
|
|
1530
|
+
|
|
1531
|
+
//#endregion
|
|
1532
|
+
//#region src/components/radio-group/radio-group.tsx
|
|
1533
|
+
const RadioGroup$1 = ({ className, ...props }) => {
|
|
1534
|
+
return /* @__PURE__ */ jsx(RadioGroup, {
|
|
1535
|
+
className: cn$1(className, useMemo(() => radioGroupVariants(), [])),
|
|
1536
|
+
...props
|
|
1537
|
+
});
|
|
1538
|
+
};
|
|
1539
|
+
var radio_group_default = RadioGroup$1;
|
|
1540
|
+
|
|
1541
|
+
//#endregion
|
|
1542
|
+
//#region src/components/select/select.context.ts
|
|
1543
|
+
const SelectContext = createContext(null);
|
|
1544
|
+
|
|
1545
|
+
//#endregion
|
|
1546
|
+
//#region src/components/select/select.variants.ts
|
|
1547
|
+
const selectVariants = tv({ slots: {
|
|
1548
|
+
control: "select__control",
|
|
1549
|
+
description: "select__description",
|
|
1550
|
+
error: "select__error",
|
|
1551
|
+
label: "select__label",
|
|
1552
|
+
option: "select__option",
|
|
1553
|
+
root: "select"
|
|
1554
|
+
} });
|
|
1555
|
+
|
|
1556
|
+
//#endregion
|
|
1557
|
+
//#region src/components/select/use-select.ts
|
|
1558
|
+
const useSelect = () => {
|
|
1559
|
+
const context = useContext(SelectContext);
|
|
1560
|
+
if (!context) throw new Error("useSelect must be used within a SelectProvider");
|
|
1561
|
+
return context;
|
|
1562
|
+
};
|
|
1563
|
+
|
|
1564
|
+
//#endregion
|
|
1565
|
+
//#region src/components/select/select.tsx
|
|
1566
|
+
const Select = ({ className, ...props }) => {
|
|
1567
|
+
const slots = useMemo(() => selectVariants(), []);
|
|
1568
|
+
const generatedId = useId();
|
|
1569
|
+
const inputId = props.id || generatedId;
|
|
1570
|
+
return /* @__PURE__ */ jsx(SelectContext.Provider, {
|
|
1571
|
+
value: {
|
|
1572
|
+
id: inputId,
|
|
1573
|
+
slots
|
|
1574
|
+
},
|
|
1575
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
1576
|
+
className: cn$1(className, slots.root()),
|
|
1577
|
+
...props
|
|
1578
|
+
})
|
|
1579
|
+
});
|
|
1580
|
+
};
|
|
1581
|
+
const SelectLabel = ({ className, ...props }) => {
|
|
1582
|
+
const { slots, id } = useSelect();
|
|
1583
|
+
return /* @__PURE__ */ jsx("label", {
|
|
1584
|
+
className: cn$1(className, slots.label()),
|
|
1585
|
+
htmlFor: id,
|
|
1586
|
+
...props
|
|
1587
|
+
});
|
|
1588
|
+
};
|
|
1589
|
+
const SelectControl = ({ className, ...props }) => {
|
|
1590
|
+
const { slots, id } = useSelect();
|
|
1591
|
+
return /* @__PURE__ */ jsx("select", {
|
|
1592
|
+
className: cn$1(className, slots.control()),
|
|
1593
|
+
id,
|
|
1594
|
+
...props
|
|
1595
|
+
});
|
|
1596
|
+
};
|
|
1597
|
+
const SelectOption = ({ className, ...props }) => {
|
|
1598
|
+
const { slots } = useSelect();
|
|
1599
|
+
return /* @__PURE__ */ jsx("option", {
|
|
1600
|
+
className: cn$1(className, slots.option()),
|
|
1601
|
+
...props
|
|
1602
|
+
});
|
|
1603
|
+
};
|
|
1604
|
+
const SelectDescription = ({ className, ...props }) => {
|
|
1605
|
+
const { slots } = useSelect();
|
|
1606
|
+
return /* @__PURE__ */ jsx("p", {
|
|
1607
|
+
className: cn$1(className, slots.description()),
|
|
1608
|
+
...props
|
|
1609
|
+
});
|
|
1610
|
+
};
|
|
1611
|
+
const SelectError = ({ className, ...props }) => {
|
|
1612
|
+
const { slots } = useSelect();
|
|
1613
|
+
return /* @__PURE__ */ jsx("p", {
|
|
1614
|
+
className: cn$1(className, slots.error()),
|
|
1615
|
+
...props
|
|
1616
|
+
});
|
|
1617
|
+
};
|
|
1618
|
+
var select_default = Object.assign(Select, {
|
|
1619
|
+
Control: SelectControl,
|
|
1620
|
+
Description: SelectDescription,
|
|
1621
|
+
Error: SelectError,
|
|
1622
|
+
Label: SelectLabel,
|
|
1623
|
+
Option: SelectOption,
|
|
1624
|
+
Root: Select
|
|
1625
|
+
});
|
|
1546
1626
|
|
|
1547
1627
|
//#endregion
|
|
1548
1628
|
//#region src/components/slider/slider.context.ts
|
|
@@ -1614,13 +1694,14 @@ const SliderThumb = ({ className, ...props }) => {
|
|
|
1614
1694
|
...props
|
|
1615
1695
|
});
|
|
1616
1696
|
};
|
|
1617
|
-
Slider$1
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
Slider$1
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1697
|
+
var slider_default = Object.assign(Slider$1, {
|
|
1698
|
+
Control: SliderControl,
|
|
1699
|
+
Indicator: SliderIndicator,
|
|
1700
|
+
Root: Slider$1,
|
|
1701
|
+
Thumb: SliderThumb,
|
|
1702
|
+
Track: SliderTrack,
|
|
1703
|
+
Value: SliderValue
|
|
1704
|
+
});
|
|
1624
1705
|
|
|
1625
1706
|
//#endregion
|
|
1626
1707
|
//#region src/components/switch/switch.context.ts
|
|
@@ -1668,9 +1749,10 @@ const SwitchThumb = ({ className, ...props }) => {
|
|
|
1668
1749
|
...props
|
|
1669
1750
|
});
|
|
1670
1751
|
};
|
|
1671
|
-
Switch$1
|
|
1672
|
-
|
|
1673
|
-
|
|
1752
|
+
var switch_default = Object.assign(Switch$1, {
|
|
1753
|
+
Root: Switch$1,
|
|
1754
|
+
Thumb: SwitchThumb
|
|
1755
|
+
});
|
|
1674
1756
|
|
|
1675
1757
|
//#endregion
|
|
1676
1758
|
//#region src/components/table/table.context.ts
|
|
@@ -1750,14 +1832,15 @@ const TableFooter = ({ className, ...props }) => {
|
|
|
1750
1832
|
...props
|
|
1751
1833
|
});
|
|
1752
1834
|
};
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
Table
|
|
1760
|
-
|
|
1835
|
+
var table_default = Object.assign(Table, {
|
|
1836
|
+
Body: TableBody,
|
|
1837
|
+
DataCell: TableDataCell,
|
|
1838
|
+
Footer: TableFooter,
|
|
1839
|
+
Head: TableHead,
|
|
1840
|
+
HeaderCell: TableHeaderCell,
|
|
1841
|
+
Root: Table,
|
|
1842
|
+
Row: TableRow
|
|
1843
|
+
});
|
|
1761
1844
|
|
|
1762
1845
|
//#endregion
|
|
1763
1846
|
//#region src/components/tabs/tabs.context.ts
|
|
@@ -1821,12 +1904,13 @@ const TabsPanel = ({ className, ...props }) => {
|
|
|
1821
1904
|
...props
|
|
1822
1905
|
});
|
|
1823
1906
|
};
|
|
1824
|
-
Tabs$1
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1907
|
+
var tabs_default = Object.assign(Tabs$1, {
|
|
1908
|
+
Indicator: TabsIndicator,
|
|
1909
|
+
List: TabsList,
|
|
1910
|
+
Panel: TabsPanel,
|
|
1911
|
+
Root: Tabs$1,
|
|
1912
|
+
Tab: TabsTab
|
|
1913
|
+
});
|
|
1830
1914
|
|
|
1831
1915
|
//#endregion
|
|
1832
1916
|
//#region src/components/text/text.variants.ts
|
|
@@ -1834,26 +1918,37 @@ const textVariants = tv({ base: "text" });
|
|
|
1834
1918
|
|
|
1835
1919
|
//#endregion
|
|
1836
1920
|
//#region src/components/text/text.tsx
|
|
1837
|
-
const Text = ({ className, ...props }) => {
|
|
1838
|
-
return /* @__PURE__ */ jsx(
|
|
1921
|
+
const Text$1 = ({ className, ...props }) => {
|
|
1922
|
+
return /* @__PURE__ */ jsx(Text, {
|
|
1839
1923
|
className: cn$1(textVariants(), className),
|
|
1840
1924
|
"data-slot": "text",
|
|
1841
1925
|
...props
|
|
1842
1926
|
});
|
|
1843
1927
|
};
|
|
1844
|
-
var text_default = Text;
|
|
1928
|
+
var text_default = Text$1;
|
|
1929
|
+
|
|
1930
|
+
//#endregion
|
|
1931
|
+
//#region src/components/text-field/text-field.variants.ts
|
|
1932
|
+
const textFieldVariants = tv({ base: "text-field" });
|
|
1933
|
+
|
|
1934
|
+
//#endregion
|
|
1935
|
+
//#region src/components/text-field/text-field.tsx
|
|
1936
|
+
const TextField$1 = ({ className, ...props }) => {
|
|
1937
|
+
return /* @__PURE__ */ jsx(TextField, {
|
|
1938
|
+
className: cn$1(className, textFieldVariants()),
|
|
1939
|
+
...props
|
|
1940
|
+
});
|
|
1941
|
+
};
|
|
1942
|
+
var text_field_default = TextField$1;
|
|
1845
1943
|
|
|
1846
1944
|
//#endregion
|
|
1847
1945
|
//#region src/components/textarea/textarea.variants.ts
|
|
1848
|
-
const textareaVariants = tv({
|
|
1849
|
-
base: "textarea",
|
|
1850
|
-
extend: inputVariants
|
|
1851
|
-
});
|
|
1946
|
+
const textareaVariants = tv({ base: "textarea" });
|
|
1852
1947
|
|
|
1853
1948
|
//#endregion
|
|
1854
1949
|
//#region src/components/textarea/textarea.tsx
|
|
1855
1950
|
const Textarea = ({ className, ...props }) => {
|
|
1856
|
-
return /* @__PURE__ */ jsx(
|
|
1951
|
+
return /* @__PURE__ */ jsx(TextArea, {
|
|
1857
1952
|
className: cn$1(className, textareaVariants()),
|
|
1858
1953
|
...props
|
|
1859
1954
|
});
|
|
@@ -1881,5 +1976,5 @@ const ToggleButton = ({ className, variant, size, ...props }) => {
|
|
|
1881
1976
|
var toggle_button_default = ToggleButton;
|
|
1882
1977
|
|
|
1883
1978
|
//#endregion
|
|
1884
|
-
export { accordion_default as Accordion, alert_dialog_default as AlertDialog, avatar_default as Avatar, button_default as Button, button_group_default as ButtonGroup, card_default as Card,
|
|
1979
|
+
export { accordion_default as Accordion, alert_default as Alert, alert_dialog_default as AlertDialog, avatar_default as Avatar, button_default as Button, button_group_default as ButtonGroup, card_default as Card, checkbox_group_default as CheckboxGroup, chip_default as Chip, container_default as Container, description_default as Description, dialog_default as Dialog, drawer_default as Drawer, field_error_default as FieldError, fieldset_default as Fieldset, form_default as Form, icon_button_default as IconButton, input_default as Input, label_default as Label, link_default as Link, list_default as List, menu_default as Menu, meter_default as Meter, navbar_default as Navbar, overlay_trigger_default as OverlayTrigger, popover_default as Popover, progress_default as Progress, radio_default as Radio, radio_group_default as RadioGroup, select_default as Select, separator_default as Separator, slider_default as Slider, switch_default as Switch, table_default as Table, tabs_default as Tabs, text_default as Text, text_field_default as TextField, textarea_default as Textarea, toggle_button_default as ToggleButton, accordionVariants, alertDialogVariants, alertVariants, avatarVariants, buttonGroupVariants, buttonVariants, cardVariants, checkboxGroupVariants, chipVariants, cn, containerVariants, descriptionVariants, dialogVariants, drawerVariants, fieldErrorVariants, fieldsetVariants, formVariants, iconButtonVariants, inputVariants, labelVariants, linkVariants, listVariants, menuVariants, meterVariants, navbarVariants, popoverVariants, progressVariants, radioGroupVariants, radioVariants, selectVariants, separatorVariants, sliderVariants, switchVariants, tableVariants, tabsVariants, textFieldVariants, textVariants, textareaVariants, toggleButtonVariants };
|
|
1885
1980
|
//# sourceMappingURL=index.mjs.map
|