@fea-ui/react 0.1.0-alpha.8 → 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 +390 -366
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +989 -1043
- package/dist/index.d.mts +989 -1043
- package/dist/index.mjs +388 -371
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.cjs
CHANGED
|
@@ -31,6 +31,7 @@ let lucide_react = require("lucide-react");
|
|
|
31
31
|
let react = require("react");
|
|
32
32
|
react = __toESM(react);
|
|
33
33
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
34
|
+
let react_aria_components = require("react-aria-components");
|
|
34
35
|
|
|
35
36
|
//#region src/components/accordion/accordion.context.ts
|
|
36
37
|
const AccordionContext = (0, react.createContext)(null);
|
|
@@ -109,14 +110,111 @@ const AccordionContent = ({ className, ...props }) => {
|
|
|
109
110
|
...props
|
|
110
111
|
});
|
|
111
112
|
};
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
Accordion
|
|
118
|
-
|
|
119
|
-
|
|
113
|
+
var accordion_default = Object.assign(Accordion, {
|
|
114
|
+
Content: AccordionContent,
|
|
115
|
+
Header: AccordionHeader,
|
|
116
|
+
Item: AccordionItem,
|
|
117
|
+
Panel: AccordionPanel,
|
|
118
|
+
Root: Accordion,
|
|
119
|
+
Trigger: AccordionTrigger,
|
|
120
|
+
TriggerIcon: AccordionTriggerIcon
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/components/alert/alert.context.ts
|
|
125
|
+
const AlertContext = (0, react.createContext)(null);
|
|
126
|
+
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/components/alert/alert.variants.ts
|
|
129
|
+
const alertVariants = (0, tailwind_variants.tv)({
|
|
130
|
+
defaultVariants: { variant: "info" },
|
|
131
|
+
slots: {
|
|
132
|
+
content: "alert__content",
|
|
133
|
+
description: "alert__description",
|
|
134
|
+
indicator: "alert__indicator",
|
|
135
|
+
root: "alert",
|
|
136
|
+
title: "alert__title"
|
|
137
|
+
},
|
|
138
|
+
variants: { variant: {
|
|
139
|
+
danger: { root: "alert--danger" },
|
|
140
|
+
info: { root: "alert--info" },
|
|
141
|
+
primary: { root: "alert--primary" },
|
|
142
|
+
success: { root: "alert--success" },
|
|
143
|
+
warning: { root: "alert--warning" }
|
|
144
|
+
} }
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region src/components/alert/use-alert.ts
|
|
149
|
+
const useAlert = () => {
|
|
150
|
+
const context = (0, react.useContext)(AlertContext);
|
|
151
|
+
if (!context) throw new Error("useAlert must be used within a AlertProvider");
|
|
152
|
+
return context;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region src/components/alert/alert.tsx
|
|
157
|
+
const Alert = ({ className, variant, ...props }) => {
|
|
158
|
+
const slots = (0, react.useMemo)(() => alertVariants({
|
|
159
|
+
className,
|
|
160
|
+
variant
|
|
161
|
+
}), [className, variant]);
|
|
162
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AlertContext, {
|
|
163
|
+
value: {
|
|
164
|
+
slots,
|
|
165
|
+
variant
|
|
166
|
+
},
|
|
167
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
168
|
+
className: (0, tailwind_variants.cn)(className, slots.root()),
|
|
169
|
+
...props
|
|
170
|
+
})
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
const AlertIndicator = ({ className, children, ...props }) => {
|
|
174
|
+
const { slots, variant } = useAlert();
|
|
175
|
+
const IndicatorIcon = ({ children: children$1 }) => {
|
|
176
|
+
if (children$1) return children$1;
|
|
177
|
+
switch (variant) {
|
|
178
|
+
case "danger": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideXCircle, {});
|
|
179
|
+
case "success": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideCheckCircle, {});
|
|
180
|
+
case "warning": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideAlertTriangle, {});
|
|
181
|
+
default: return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideInfo, {});
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
185
|
+
className: (0, tailwind_variants.cn)(className, slots.indicator()),
|
|
186
|
+
...props,
|
|
187
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IndicatorIcon, { children })
|
|
188
|
+
});
|
|
189
|
+
};
|
|
190
|
+
const AlertContent = ({ className, ...props }) => {
|
|
191
|
+
const { slots } = useAlert();
|
|
192
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
193
|
+
className: (0, tailwind_variants.cn)(className, slots.content()),
|
|
194
|
+
...props
|
|
195
|
+
});
|
|
196
|
+
};
|
|
197
|
+
const AlertTitle = ({ className, ...props }) => {
|
|
198
|
+
const { slots } = useAlert();
|
|
199
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
200
|
+
className: (0, tailwind_variants.cn)(className, slots.title()),
|
|
201
|
+
...props
|
|
202
|
+
});
|
|
203
|
+
};
|
|
204
|
+
const AlertDescription = ({ className, ...props }) => {
|
|
205
|
+
const { slots } = useAlert();
|
|
206
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
207
|
+
className: (0, tailwind_variants.cn)(className, slots.description()),
|
|
208
|
+
...props
|
|
209
|
+
});
|
|
210
|
+
};
|
|
211
|
+
var alert_default = Object.assign(Alert, {
|
|
212
|
+
Content: AlertContent,
|
|
213
|
+
Description: AlertDescription,
|
|
214
|
+
Indicator: AlertIndicator,
|
|
215
|
+
Root: Alert,
|
|
216
|
+
Title: AlertTitle
|
|
217
|
+
});
|
|
120
218
|
|
|
121
219
|
//#endregion
|
|
122
220
|
//#region src/components/alert-dialog/alert-dialog.context.ts
|
|
@@ -209,16 +307,17 @@ const AlertDialogClose = ({ className, children, ...props }) => {
|
|
|
209
307
|
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideX, {})
|
|
210
308
|
});
|
|
211
309
|
};
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
AlertDialog
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
310
|
+
var alert_dialog_default = Object.assign(AlertDialog, {
|
|
311
|
+
Backdrop: AlertDialogBackdrop,
|
|
312
|
+
Close: AlertDialogClose,
|
|
313
|
+
Description: AlertDialogDescription,
|
|
314
|
+
Popup: AlertDialogPopup,
|
|
315
|
+
Portal: AlertDialogPortal,
|
|
316
|
+
Root: AlertDialog,
|
|
317
|
+
Title: AlertDialogTitle,
|
|
318
|
+
Trigger: AlertDialogTrigger,
|
|
319
|
+
Viewport: AlertDialogViewport
|
|
320
|
+
});
|
|
222
321
|
|
|
223
322
|
//#endregion
|
|
224
323
|
//#region src/components/avatar/avatar.context.ts
|
|
@@ -274,10 +373,11 @@ const AvatarFallback = ({ className, ...props }) => {
|
|
|
274
373
|
...props
|
|
275
374
|
});
|
|
276
375
|
};
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
376
|
+
var avatar_default = Object.assign(Avatar, {
|
|
377
|
+
Fallback: AvatarFallback,
|
|
378
|
+
Image: AvatarImage,
|
|
379
|
+
Root: Avatar
|
|
380
|
+
});
|
|
281
381
|
|
|
282
382
|
//#endregion
|
|
283
383
|
//#region src/components/button/button.variants.ts
|
|
@@ -308,7 +408,7 @@ const buttonVariants = (0, tailwind_variants.tv)({
|
|
|
308
408
|
//#endregion
|
|
309
409
|
//#region src/components/button/button.tsx
|
|
310
410
|
const Button = ({ className, variant, size, isIconOnly, ...props }) => {
|
|
311
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
411
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
|
|
312
412
|
className: (0, tailwind_variants.cn)(buttonVariants({
|
|
313
413
|
isIconOnly,
|
|
314
414
|
size,
|
|
@@ -412,58 +512,14 @@ const CardDescription = ({ className, ...props }) => {
|
|
|
412
512
|
});
|
|
413
513
|
};
|
|
414
514
|
/** Exports */
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
Card
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
//#endregion
|
|
424
|
-
//#region src/components/checkbox/checkbox.context.ts
|
|
425
|
-
const CheckboxContext = (0, react.createContext)(null);
|
|
426
|
-
|
|
427
|
-
//#endregion
|
|
428
|
-
//#region src/components/checkbox/checkbox.variants.ts
|
|
429
|
-
const checkboxVariants = (0, tailwind_variants.tv)({ slots: {
|
|
430
|
-
checkboxIcon: "checkbox__icon",
|
|
431
|
-
indicator: "checkbox__indicator",
|
|
432
|
-
label: "checkbox__label",
|
|
433
|
-
root: "checkbox"
|
|
434
|
-
} });
|
|
435
|
-
|
|
436
|
-
//#endregion
|
|
437
|
-
//#region src/components/checkbox/use-checkbox.ts
|
|
438
|
-
const useCheckbox = () => {
|
|
439
|
-
const ctx = (0, react.useContext)(CheckboxContext);
|
|
440
|
-
if (!ctx) throw new Error("CheckboxContext must be used with in the Checkbox component.");
|
|
441
|
-
return ctx;
|
|
442
|
-
};
|
|
443
|
-
|
|
444
|
-
//#endregion
|
|
445
|
-
//#region src/components/checkbox/checkbox.tsx
|
|
446
|
-
const Checkbox = ({ className, ...props }) => {
|
|
447
|
-
const slots = (0, react.useMemo)(() => checkboxVariants(), []);
|
|
448
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CheckboxContext.Provider, {
|
|
449
|
-
value: { slots },
|
|
450
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Checkbox.Root, {
|
|
451
|
-
className: (0, tailwind_variants.cn)(className, slots.root()),
|
|
452
|
-
...props
|
|
453
|
-
})
|
|
454
|
-
});
|
|
455
|
-
};
|
|
456
|
-
const CheckboxIndicator = ({ className, ...props }) => {
|
|
457
|
-
const { slots } = useCheckbox();
|
|
458
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Checkbox.Indicator, {
|
|
459
|
-
className: (0, tailwind_variants.cn)(className, slots.indicator()),
|
|
460
|
-
...props,
|
|
461
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideCheck, { className: slots.checkboxIcon() })
|
|
462
|
-
});
|
|
463
|
-
};
|
|
464
|
-
Checkbox.Indicator = CheckboxIndicator;
|
|
465
|
-
Checkbox.Root = Checkbox;
|
|
466
|
-
var checkbox_default = Checkbox;
|
|
515
|
+
var card_default = Object.assign(Card, {
|
|
516
|
+
Body: CardBody,
|
|
517
|
+
Description: CardDescription,
|
|
518
|
+
Footer: CardFooter,
|
|
519
|
+
Header: CardHeader,
|
|
520
|
+
Root: Card,
|
|
521
|
+
Title: CardTitle
|
|
522
|
+
});
|
|
467
523
|
|
|
468
524
|
//#endregion
|
|
469
525
|
//#region src/components/checkbox-group/checkbox-group.variants.ts
|
|
@@ -472,7 +528,7 @@ const checkboxGroupVariants = (0, tailwind_variants.tv)({ base: "checkbox-group"
|
|
|
472
528
|
//#endregion
|
|
473
529
|
//#region src/components/checkbox-group/checkbox-group.tsx
|
|
474
530
|
const CheckboxGroup = ({ className, ...props }) => {
|
|
475
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
531
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.CheckboxGroup, {
|
|
476
532
|
className: (0, tailwind_variants.cn)(className, checkboxGroupVariants()),
|
|
477
533
|
...props
|
|
478
534
|
});
|
|
@@ -530,6 +586,22 @@ const Container = ({ className, ...props }) => {
|
|
|
530
586
|
};
|
|
531
587
|
var container_default = Container;
|
|
532
588
|
|
|
589
|
+
//#endregion
|
|
590
|
+
//#region src/components/description/description.variants.ts
|
|
591
|
+
const descriptionVariants = (0, tailwind_variants.tv)({ base: "description" });
|
|
592
|
+
|
|
593
|
+
//#endregion
|
|
594
|
+
//#region src/components/description/description.tsx
|
|
595
|
+
const Description = ({ className, ...props }) => {
|
|
596
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Text, {
|
|
597
|
+
className: (0, tailwind_variants.cn)(className, descriptionVariants()),
|
|
598
|
+
"data-slot": "description",
|
|
599
|
+
slot: "description",
|
|
600
|
+
...props
|
|
601
|
+
});
|
|
602
|
+
};
|
|
603
|
+
var description_default = Description;
|
|
604
|
+
|
|
533
605
|
//#endregion
|
|
534
606
|
//#region src/components/dialog/dialog.context.ts
|
|
535
607
|
const DialogContext = (0, react.createContext)(null);
|
|
@@ -622,16 +694,17 @@ const DialogClose = ({ className, ...props }) => {
|
|
|
622
694
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideX, {})
|
|
623
695
|
});
|
|
624
696
|
};
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
Dialog
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
697
|
+
var dialog_default = Object.assign(Dialog, {
|
|
698
|
+
Backdrop: DialogBackdrop,
|
|
699
|
+
Close: DialogClose,
|
|
700
|
+
Description: DialogDescription,
|
|
701
|
+
Popup: DialogPopup,
|
|
702
|
+
Portal: DialogPortal,
|
|
703
|
+
Root: Dialog,
|
|
704
|
+
Title: DialogTitle,
|
|
705
|
+
Trigger: DialogTrigger,
|
|
706
|
+
Viewport: DialogViewport
|
|
707
|
+
});
|
|
635
708
|
|
|
636
709
|
//#endregion
|
|
637
710
|
//#region src/components/drawer/drawer.context.ts
|
|
@@ -733,93 +806,33 @@ const DrawerClose = ({ className, children, ...props }) => {
|
|
|
733
806
|
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideX, {})
|
|
734
807
|
});
|
|
735
808
|
};
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
Drawer
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
//#endregion
|
|
748
|
-
//#region src/components/field/field.context.ts
|
|
749
|
-
const FieldContext = (0, react.createContext)(null);
|
|
750
|
-
|
|
751
|
-
//#endregion
|
|
752
|
-
//#region src/components/field/field.variants.ts
|
|
753
|
-
const fieldVariants = (0, tailwind_variants.tv)({
|
|
754
|
-
slots: {
|
|
755
|
-
control: "input",
|
|
756
|
-
description: "field__description",
|
|
757
|
-
error: "field__error",
|
|
758
|
-
label: "label",
|
|
759
|
-
root: "field"
|
|
760
|
-
},
|
|
761
|
-
variants: { size: {
|
|
762
|
-
lg: { control: "input--lg" },
|
|
763
|
-
md: { control: "input--md" },
|
|
764
|
-
sm: { control: "input--sm" }
|
|
765
|
-
} }
|
|
809
|
+
var drawer_default = Object.assign(Drawer, {
|
|
810
|
+
Backdrop: DrawerBackdrop,
|
|
811
|
+
Close: DrawerClose,
|
|
812
|
+
Description: DrawerDescription,
|
|
813
|
+
Popup: DrawerPopup,
|
|
814
|
+
Portal: DrawerPortal,
|
|
815
|
+
Root: Drawer,
|
|
816
|
+
Title: DrawerTitle,
|
|
817
|
+
Trigger: DrawerTrigger,
|
|
818
|
+
Viewport: DrawerViewport
|
|
766
819
|
});
|
|
767
820
|
|
|
768
821
|
//#endregion
|
|
769
|
-
//#region src/components/field/
|
|
770
|
-
const
|
|
771
|
-
const ctx = (0, react.useContext)(FieldContext);
|
|
772
|
-
if (!ctx) throw new Error("FieldContext must be used with in the Field component.");
|
|
773
|
-
return ctx;
|
|
774
|
-
};
|
|
822
|
+
//#region src/components/field-error/field-error.variants.ts
|
|
823
|
+
const fieldErrorVariants = (0, tailwind_variants.tv)({ base: "field-error" });
|
|
775
824
|
|
|
776
825
|
//#endregion
|
|
777
|
-
//#region src/components/field/field.tsx
|
|
778
|
-
const Field = ({ className, size, ...props }) => {
|
|
779
|
-
const slots = (0, react.useMemo)(() => fieldVariants({ size }), [size]);
|
|
780
|
-
console.log(slots.root());
|
|
781
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FieldContext, {
|
|
782
|
-
value: { slots },
|
|
783
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Field.Root, {
|
|
784
|
-
className: (0, tailwind_variants.cn)(className, slots.root()),
|
|
785
|
-
...props
|
|
786
|
-
})
|
|
787
|
-
});
|
|
788
|
-
};
|
|
789
|
-
const FieldLabel = ({ className, ...props }) => {
|
|
790
|
-
const { slots } = useField();
|
|
791
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Field.Label, {
|
|
792
|
-
className: (0, tailwind_variants.cn)(className, slots.label()),
|
|
793
|
-
...props
|
|
794
|
-
});
|
|
795
|
-
};
|
|
796
|
-
const FieldDescription = ({ className, ...props }) => {
|
|
797
|
-
const { slots } = useField();
|
|
798
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Field.Description, {
|
|
799
|
-
className: (0, tailwind_variants.cn)(className, slots.description()),
|
|
800
|
-
...props
|
|
801
|
-
});
|
|
802
|
-
};
|
|
803
|
-
const FieldControl = ({ className, ...props }) => {
|
|
804
|
-
const { slots } = useField();
|
|
805
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Field.Control, {
|
|
806
|
-
className: (0, tailwind_variants.cn)(className, slots.control()),
|
|
807
|
-
...props
|
|
808
|
-
});
|
|
809
|
-
};
|
|
826
|
+
//#region src/components/field-error/field-error.tsx
|
|
810
827
|
const FieldError = ({ className, ...props }) => {
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
828
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.FieldError, {
|
|
829
|
+
className: (0, tailwind_variants.cn)(className, fieldErrorVariants()),
|
|
830
|
+
"data-slot": "field-error",
|
|
831
|
+
"data-visible": true,
|
|
814
832
|
...props
|
|
815
833
|
});
|
|
816
834
|
};
|
|
817
|
-
|
|
818
|
-
Field.Description = FieldDescription;
|
|
819
|
-
Field.Error = FieldError;
|
|
820
|
-
Field.Label = FieldLabel;
|
|
821
|
-
Field.Root = Field;
|
|
822
|
-
var field_default = Field;
|
|
835
|
+
var field_error_default = FieldError;
|
|
823
836
|
|
|
824
837
|
//#endregion
|
|
825
838
|
//#region src/components/fieldset/fieldset.context.ts
|
|
@@ -859,9 +872,10 @@ const FieldsetLegend = ({ className, ...props }) => {
|
|
|
859
872
|
...props
|
|
860
873
|
});
|
|
861
874
|
};
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
875
|
+
var fieldset_default = Object.assign(Fieldset, {
|
|
876
|
+
Legend: FieldsetLegend,
|
|
877
|
+
Root: Fieldset
|
|
878
|
+
});
|
|
865
879
|
|
|
866
880
|
//#endregion
|
|
867
881
|
//#region src/components/form/form.variants.ts
|
|
@@ -870,7 +884,7 @@ const formVariants = (0, tailwind_variants.tv)({ base: "form" });
|
|
|
870
884
|
//#endregion
|
|
871
885
|
//#region src/components/form/form.tsx
|
|
872
886
|
const Form = ({ className, ...props }) => {
|
|
873
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
887
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Form, {
|
|
874
888
|
className: (0, tailwind_variants.cn)(className, formVariants()),
|
|
875
889
|
...props
|
|
876
890
|
});
|
|
@@ -901,20 +915,13 @@ var icon_button_default = IconButton;
|
|
|
901
915
|
|
|
902
916
|
//#endregion
|
|
903
917
|
//#region src/components/input/input.variants.ts
|
|
904
|
-
const inputVariants = (0, tailwind_variants.tv)({
|
|
905
|
-
base: "input",
|
|
906
|
-
variants: { inputSize: {
|
|
907
|
-
lg: "input--lg",
|
|
908
|
-
md: "input--md",
|
|
909
|
-
sm: "input--sm"
|
|
910
|
-
} }
|
|
911
|
-
});
|
|
918
|
+
const inputVariants = (0, tailwind_variants.tv)({ base: "input" });
|
|
912
919
|
|
|
913
920
|
//#endregion
|
|
914
921
|
//#region src/components/input/input.tsx
|
|
915
|
-
const Input = ({ className,
|
|
916
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
917
|
-
className: (0, tailwind_variants.cn)(className, inputVariants(
|
|
922
|
+
const Input = ({ className, ...props }) => {
|
|
923
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Input, {
|
|
924
|
+
className: (0, tailwind_variants.cn)(className, inputVariants()),
|
|
918
925
|
...props
|
|
919
926
|
});
|
|
920
927
|
};
|
|
@@ -927,7 +934,7 @@ const labelVariants = (0, tailwind_variants.tv)({ base: "label" });
|
|
|
927
934
|
//#endregion
|
|
928
935
|
//#region src/components/label/label.tsx
|
|
929
936
|
const Label = ({ className, ...props }) => {
|
|
930
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
937
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Label, {
|
|
931
938
|
className: (0, tailwind_variants.cn)(className, labelVariants()),
|
|
932
939
|
...props
|
|
933
940
|
});
|
|
@@ -993,9 +1000,10 @@ const ListItem = ({ className, ...props }) => {
|
|
|
993
1000
|
...props
|
|
994
1001
|
});
|
|
995
1002
|
};
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1003
|
+
var list_default = Object.assign(List, {
|
|
1004
|
+
Item: ListItem,
|
|
1005
|
+
Root: List
|
|
1006
|
+
});
|
|
999
1007
|
|
|
1000
1008
|
//#endregion
|
|
1001
1009
|
//#region src/components/menu/menu.context.ts
|
|
@@ -1074,11 +1082,12 @@ const MenuPopup = ({ className, ...props }) => {
|
|
|
1074
1082
|
...props
|
|
1075
1083
|
});
|
|
1076
1084
|
};
|
|
1077
|
-
const MenuArrow = ({ className, ...props }) => {
|
|
1085
|
+
const MenuArrow = ({ className, children, ...props }) => {
|
|
1078
1086
|
const { slots } = useMenu();
|
|
1079
1087
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Menu.Arrow, {
|
|
1080
1088
|
className: (0, tailwind_variants.cn)(slots.arrow(), className),
|
|
1081
|
-
...props
|
|
1089
|
+
...props,
|
|
1090
|
+
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideChevronUp, {})
|
|
1082
1091
|
});
|
|
1083
1092
|
};
|
|
1084
1093
|
const MenuItem = ({ className, ...props }) => {
|
|
@@ -1140,23 +1149,24 @@ const MenuSubmenuTrigger = ({ className, ...props }) => {
|
|
|
1140
1149
|
...props
|
|
1141
1150
|
});
|
|
1142
1151
|
};
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
Menu
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1152
|
+
var menu_default = Object.assign(Menu, {
|
|
1153
|
+
Arrow: MenuArrow,
|
|
1154
|
+
Backdrop: MenuBackdrop,
|
|
1155
|
+
CheckboxItem: MenuCheckboxItem,
|
|
1156
|
+
Group: MenuGroup,
|
|
1157
|
+
GroupLabel: MenuGroupLabel,
|
|
1158
|
+
Item: MenuItem,
|
|
1159
|
+
Popup: MenuPopup,
|
|
1160
|
+
Portal: MenuPortal,
|
|
1161
|
+
Positioner: MenuPositioner,
|
|
1162
|
+
RadioGroup: MenuRadioGroup,
|
|
1163
|
+
RadioItem: MenuRadioItem,
|
|
1164
|
+
Root: Menu,
|
|
1165
|
+
Separator: MenuSeparator,
|
|
1166
|
+
Submenu: MenuSubmenu,
|
|
1167
|
+
SubmenuTrigger: MenuSubmenuTrigger,
|
|
1168
|
+
Trigger: MenuTrigger
|
|
1169
|
+
});
|
|
1160
1170
|
|
|
1161
1171
|
//#endregion
|
|
1162
1172
|
//#region src/components/meter/meter.context.ts
|
|
@@ -1238,12 +1248,13 @@ const MeterIndicator = ({ className, ...props }) => {
|
|
|
1238
1248
|
...props
|
|
1239
1249
|
});
|
|
1240
1250
|
};
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
Meter
|
|
1245
|
-
|
|
1246
|
-
|
|
1251
|
+
var meter_default = Object.assign(Meter, {
|
|
1252
|
+
Indicator: MeterIndicator,
|
|
1253
|
+
Label: MeterLabel,
|
|
1254
|
+
Root: Meter,
|
|
1255
|
+
Track: MeterTrack,
|
|
1256
|
+
Value: MeterValue
|
|
1257
|
+
});
|
|
1247
1258
|
|
|
1248
1259
|
//#endregion
|
|
1249
1260
|
//#region src/components/separator/separator.variants.ts
|
|
@@ -1374,133 +1385,36 @@ const NavbarMenuItem = ({ className, ...props }) => {
|
|
|
1374
1385
|
...props
|
|
1375
1386
|
});
|
|
1376
1387
|
};
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
Navbar
|
|
1385
|
-
|
|
1388
|
+
var navbar_default = Object.assign(Navbar, {
|
|
1389
|
+
Container: NavbarContainer,
|
|
1390
|
+
Content: NavbarContent,
|
|
1391
|
+
List: NavbarList,
|
|
1392
|
+
ListItem: NavbarListItem,
|
|
1393
|
+
Menu: NavbarMenu,
|
|
1394
|
+
MenuItem: NavbarMenuItem,
|
|
1395
|
+
Root: Navbar,
|
|
1396
|
+
Toggle: NavbarToggle
|
|
1397
|
+
});
|
|
1386
1398
|
|
|
1387
1399
|
//#endregion
|
|
1388
|
-
//#region src/components/
|
|
1389
|
-
const
|
|
1400
|
+
//#region src/components/overlay-trigger/overlay-trigger.tsx
|
|
1401
|
+
const OverlayTrigger = ({ ...props }) => {
|
|
1402
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.DialogTrigger, { ...props });
|
|
1403
|
+
};
|
|
1404
|
+
var overlay_trigger_default = OverlayTrigger;
|
|
1390
1405
|
|
|
1391
1406
|
//#endregion
|
|
1392
1407
|
//#region src/components/popover/popover.variants.ts
|
|
1393
|
-
const popoverVariants = (0, tailwind_variants.tv)({
|
|
1394
|
-
arrow: "popover__arrow",
|
|
1395
|
-
backdrop: "popover__backdrop",
|
|
1396
|
-
close: "popover__close",
|
|
1397
|
-
description: "popover__description",
|
|
1398
|
-
popup: "popover__popup",
|
|
1399
|
-
portal: "popover__portal",
|
|
1400
|
-
positioner: "popover__positioner",
|
|
1401
|
-
root: "popover",
|
|
1402
|
-
title: "popover__title",
|
|
1403
|
-
trigger: "popover__trigger",
|
|
1404
|
-
viewport: "popover__viewport"
|
|
1405
|
-
} });
|
|
1406
|
-
|
|
1407
|
-
//#endregion
|
|
1408
|
-
//#region src/components/popover/use-popover.ts
|
|
1409
|
-
const usePopover = () => {
|
|
1410
|
-
const context = (0, react.useContext)(PopoverContext);
|
|
1411
|
-
if (!context) throw new Error("usePopover must be used within a PopoverProvider");
|
|
1412
|
-
return context;
|
|
1413
|
-
};
|
|
1408
|
+
const popoverVariants = (0, tailwind_variants.tv)({ base: "popover" });
|
|
1414
1409
|
|
|
1415
1410
|
//#endregion
|
|
1416
1411
|
//#region src/components/popover/popover.tsx
|
|
1417
1412
|
const Popover = ({ ...props }) => {
|
|
1418
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1419
|
-
|
|
1420
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Root, { ...props })
|
|
1421
|
-
});
|
|
1422
|
-
};
|
|
1423
|
-
const PopoverTrigger = ({ className, ...props }) => {
|
|
1424
|
-
const { slots } = usePopover();
|
|
1425
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Trigger, {
|
|
1426
|
-
className: (0, tailwind_variants.cn)(slots.trigger(), className),
|
|
1427
|
-
...props
|
|
1428
|
-
});
|
|
1429
|
-
};
|
|
1430
|
-
const PopoverPortal = ({ className, ...props }) => {
|
|
1431
|
-
const { slots } = usePopover();
|
|
1432
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Portal, {
|
|
1433
|
-
className: (0, tailwind_variants.cn)(slots.portal(), className),
|
|
1413
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Popover, {
|
|
1414
|
+
className: (0, tailwind_variants.cn)(popoverVariants()),
|
|
1434
1415
|
...props
|
|
1435
1416
|
});
|
|
1436
1417
|
};
|
|
1437
|
-
const PopoverBackdrop = ({ className, ...props }) => {
|
|
1438
|
-
const { slots } = usePopover();
|
|
1439
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Backdrop, {
|
|
1440
|
-
className: (0, tailwind_variants.cn)(slots.backdrop(), className),
|
|
1441
|
-
...props
|
|
1442
|
-
});
|
|
1443
|
-
};
|
|
1444
|
-
const PopoverPositioner = ({ className, ...props }) => {
|
|
1445
|
-
const { slots } = usePopover();
|
|
1446
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Positioner, {
|
|
1447
|
-
className: (0, tailwind_variants.cn)(slots.positioner(), className),
|
|
1448
|
-
...props
|
|
1449
|
-
});
|
|
1450
|
-
};
|
|
1451
|
-
const PopoverPopup = ({ className, ...props }) => {
|
|
1452
|
-
const { slots } = usePopover();
|
|
1453
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Popup, {
|
|
1454
|
-
className: (0, tailwind_variants.cn)(slots.popup(), className),
|
|
1455
|
-
...props
|
|
1456
|
-
});
|
|
1457
|
-
};
|
|
1458
|
-
const PopoverArrow = ({ className, ...props }) => {
|
|
1459
|
-
const { slots } = usePopover();
|
|
1460
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Arrow, {
|
|
1461
|
-
className: (0, tailwind_variants.cn)(slots.arrow(), className),
|
|
1462
|
-
...props
|
|
1463
|
-
});
|
|
1464
|
-
};
|
|
1465
|
-
const PopoverViewport = ({ className, ...props }) => {
|
|
1466
|
-
const { slots } = usePopover();
|
|
1467
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Viewport, {
|
|
1468
|
-
className: (0, tailwind_variants.cn)(slots.viewport(), className),
|
|
1469
|
-
...props
|
|
1470
|
-
});
|
|
1471
|
-
};
|
|
1472
|
-
const PopoverTitle = ({ className, ...props }) => {
|
|
1473
|
-
const { slots } = usePopover();
|
|
1474
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Title, {
|
|
1475
|
-
className: (0, tailwind_variants.cn)(slots.title(), className),
|
|
1476
|
-
...props
|
|
1477
|
-
});
|
|
1478
|
-
};
|
|
1479
|
-
const PopoverDescription = ({ className, ...props }) => {
|
|
1480
|
-
const { slots } = usePopover();
|
|
1481
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Description, {
|
|
1482
|
-
className: (0, tailwind_variants.cn)(slots.description(), className),
|
|
1483
|
-
...props
|
|
1484
|
-
});
|
|
1485
|
-
};
|
|
1486
|
-
const PopoverClose = ({ className, ...props }) => {
|
|
1487
|
-
const { slots } = usePopover();
|
|
1488
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Close, {
|
|
1489
|
-
className: (0, tailwind_variants.cn)(slots.close(), className),
|
|
1490
|
-
...props
|
|
1491
|
-
});
|
|
1492
|
-
};
|
|
1493
|
-
Popover.Root = Popover;
|
|
1494
|
-
Popover.Trigger = PopoverTrigger;
|
|
1495
|
-
Popover.Portal = PopoverPortal;
|
|
1496
|
-
Popover.Backdrop = PopoverBackdrop;
|
|
1497
|
-
Popover.Positioner = PopoverPositioner;
|
|
1498
|
-
Popover.Popup = PopoverPopup;
|
|
1499
|
-
Popover.Arrow = PopoverArrow;
|
|
1500
|
-
Popover.Viewport = PopoverViewport;
|
|
1501
|
-
Popover.Title = PopoverTitle;
|
|
1502
|
-
Popover.Description = PopoverDescription;
|
|
1503
|
-
Popover.Close = PopoverClose;
|
|
1504
1418
|
var popover_default = Popover;
|
|
1505
1419
|
|
|
1506
1420
|
//#endregion
|
|
@@ -1587,12 +1501,13 @@ const ProgressIndicator = ({ className, ...props }) => {
|
|
|
1587
1501
|
...props
|
|
1588
1502
|
});
|
|
1589
1503
|
};
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
Progress
|
|
1594
|
-
|
|
1595
|
-
|
|
1504
|
+
var progress_default = Object.assign(Progress, {
|
|
1505
|
+
Indicator: ProgressIndicator,
|
|
1506
|
+
Label: ProgressLabel,
|
|
1507
|
+
Root: Progress,
|
|
1508
|
+
Track: ProgressTrack,
|
|
1509
|
+
Value: ProgressValue
|
|
1510
|
+
});
|
|
1596
1511
|
|
|
1597
1512
|
//#endregion
|
|
1598
1513
|
//#region src/components/radio/radio.context.ts
|
|
@@ -1632,9 +1547,10 @@ const RadioIndicator = ({ className, ...props }) => {
|
|
|
1632
1547
|
...props
|
|
1633
1548
|
});
|
|
1634
1549
|
};
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1550
|
+
var radio_default = Object.assign(Radio, {
|
|
1551
|
+
Indicator: RadioIndicator,
|
|
1552
|
+
Root: Radio
|
|
1553
|
+
});
|
|
1638
1554
|
|
|
1639
1555
|
//#endregion
|
|
1640
1556
|
//#region src/components/radio-group/radio-group.variants.ts
|
|
@@ -1650,6 +1566,92 @@ const RadioGroup = ({ className, ...props }) => {
|
|
|
1650
1566
|
};
|
|
1651
1567
|
var radio_group_default = RadioGroup;
|
|
1652
1568
|
|
|
1569
|
+
//#endregion
|
|
1570
|
+
//#region src/components/select/select.context.ts
|
|
1571
|
+
const SelectContext = (0, react.createContext)(null);
|
|
1572
|
+
|
|
1573
|
+
//#endregion
|
|
1574
|
+
//#region src/components/select/select.variants.ts
|
|
1575
|
+
const selectVariants = (0, tailwind_variants.tv)({ slots: {
|
|
1576
|
+
control: "select__control",
|
|
1577
|
+
description: "select__description",
|
|
1578
|
+
error: "select__error",
|
|
1579
|
+
label: "select__label",
|
|
1580
|
+
option: "select__option",
|
|
1581
|
+
root: "select"
|
|
1582
|
+
} });
|
|
1583
|
+
|
|
1584
|
+
//#endregion
|
|
1585
|
+
//#region src/components/select/use-select.ts
|
|
1586
|
+
const useSelect = () => {
|
|
1587
|
+
const context = (0, react.useContext)(SelectContext);
|
|
1588
|
+
if (!context) throw new Error("useSelect must be used within a SelectProvider");
|
|
1589
|
+
return context;
|
|
1590
|
+
};
|
|
1591
|
+
|
|
1592
|
+
//#endregion
|
|
1593
|
+
//#region src/components/select/select.tsx
|
|
1594
|
+
const Select = ({ className, ...props }) => {
|
|
1595
|
+
const slots = (0, react.useMemo)(() => selectVariants(), []);
|
|
1596
|
+
const generatedId = (0, react.useId)();
|
|
1597
|
+
const inputId = props.id || generatedId;
|
|
1598
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SelectContext.Provider, {
|
|
1599
|
+
value: {
|
|
1600
|
+
id: inputId,
|
|
1601
|
+
slots
|
|
1602
|
+
},
|
|
1603
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1604
|
+
className: (0, tailwind_variants.cn)(className, slots.root()),
|
|
1605
|
+
...props
|
|
1606
|
+
})
|
|
1607
|
+
});
|
|
1608
|
+
};
|
|
1609
|
+
const SelectLabel = ({ className, ...props }) => {
|
|
1610
|
+
const { slots, id } = useSelect();
|
|
1611
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
1612
|
+
className: (0, tailwind_variants.cn)(className, slots.label()),
|
|
1613
|
+
htmlFor: id,
|
|
1614
|
+
...props
|
|
1615
|
+
});
|
|
1616
|
+
};
|
|
1617
|
+
const SelectControl = ({ className, ...props }) => {
|
|
1618
|
+
const { slots, id } = useSelect();
|
|
1619
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("select", {
|
|
1620
|
+
className: (0, tailwind_variants.cn)(className, slots.control()),
|
|
1621
|
+
id,
|
|
1622
|
+
...props
|
|
1623
|
+
});
|
|
1624
|
+
};
|
|
1625
|
+
const SelectOption = ({ className, ...props }) => {
|
|
1626
|
+
const { slots } = useSelect();
|
|
1627
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
1628
|
+
className: (0, tailwind_variants.cn)(className, slots.option()),
|
|
1629
|
+
...props
|
|
1630
|
+
});
|
|
1631
|
+
};
|
|
1632
|
+
const SelectDescription = ({ className, ...props }) => {
|
|
1633
|
+
const { slots } = useSelect();
|
|
1634
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
1635
|
+
className: (0, tailwind_variants.cn)(className, slots.description()),
|
|
1636
|
+
...props
|
|
1637
|
+
});
|
|
1638
|
+
};
|
|
1639
|
+
const SelectError = ({ className, ...props }) => {
|
|
1640
|
+
const { slots } = useSelect();
|
|
1641
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
1642
|
+
className: (0, tailwind_variants.cn)(className, slots.error()),
|
|
1643
|
+
...props
|
|
1644
|
+
});
|
|
1645
|
+
};
|
|
1646
|
+
var select_default = Object.assign(Select, {
|
|
1647
|
+
Control: SelectControl,
|
|
1648
|
+
Description: SelectDescription,
|
|
1649
|
+
Error: SelectError,
|
|
1650
|
+
Label: SelectLabel,
|
|
1651
|
+
Option: SelectOption,
|
|
1652
|
+
Root: Select
|
|
1653
|
+
});
|
|
1654
|
+
|
|
1653
1655
|
//#endregion
|
|
1654
1656
|
//#region src/components/slider/slider.context.ts
|
|
1655
1657
|
const SliderContext = (0, react.createContext)(null);
|
|
@@ -1720,13 +1722,14 @@ const SliderThumb = ({ className, ...props }) => {
|
|
|
1720
1722
|
...props
|
|
1721
1723
|
});
|
|
1722
1724
|
};
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
Slider
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1725
|
+
var slider_default = Object.assign(Slider, {
|
|
1726
|
+
Control: SliderControl,
|
|
1727
|
+
Indicator: SliderIndicator,
|
|
1728
|
+
Root: Slider,
|
|
1729
|
+
Thumb: SliderThumb,
|
|
1730
|
+
Track: SliderTrack,
|
|
1731
|
+
Value: SliderValue
|
|
1732
|
+
});
|
|
1730
1733
|
|
|
1731
1734
|
//#endregion
|
|
1732
1735
|
//#region src/components/switch/switch.context.ts
|
|
@@ -1774,9 +1777,10 @@ const SwitchThumb = ({ className, ...props }) => {
|
|
|
1774
1777
|
...props
|
|
1775
1778
|
});
|
|
1776
1779
|
};
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
+
var switch_default = Object.assign(Switch, {
|
|
1781
|
+
Root: Switch,
|
|
1782
|
+
Thumb: SwitchThumb
|
|
1783
|
+
});
|
|
1780
1784
|
|
|
1781
1785
|
//#endregion
|
|
1782
1786
|
//#region src/components/table/table.context.ts
|
|
@@ -1856,14 +1860,15 @@ const TableFooter = ({ className, ...props }) => {
|
|
|
1856
1860
|
...props
|
|
1857
1861
|
});
|
|
1858
1862
|
};
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
Table
|
|
1866
|
-
|
|
1863
|
+
var table_default = Object.assign(Table, {
|
|
1864
|
+
Body: TableBody,
|
|
1865
|
+
DataCell: TableDataCell,
|
|
1866
|
+
Footer: TableFooter,
|
|
1867
|
+
Head: TableHead,
|
|
1868
|
+
HeaderCell: TableHeaderCell,
|
|
1869
|
+
Root: Table,
|
|
1870
|
+
Row: TableRow
|
|
1871
|
+
});
|
|
1867
1872
|
|
|
1868
1873
|
//#endregion
|
|
1869
1874
|
//#region src/components/tabs/tabs.context.ts
|
|
@@ -1927,12 +1932,13 @@ const TabsPanel = ({ className, ...props }) => {
|
|
|
1927
1932
|
...props
|
|
1928
1933
|
});
|
|
1929
1934
|
};
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1935
|
+
var tabs_default = Object.assign(Tabs, {
|
|
1936
|
+
Indicator: TabsIndicator,
|
|
1937
|
+
List: TabsList,
|
|
1938
|
+
Panel: TabsPanel,
|
|
1939
|
+
Root: Tabs,
|
|
1940
|
+
Tab: TabsTab
|
|
1941
|
+
});
|
|
1936
1942
|
|
|
1937
1943
|
//#endregion
|
|
1938
1944
|
//#region src/components/text/text.variants.ts
|
|
@@ -1941,7 +1947,7 @@ const textVariants = (0, tailwind_variants.tv)({ base: "text" });
|
|
|
1941
1947
|
//#endregion
|
|
1942
1948
|
//#region src/components/text/text.tsx
|
|
1943
1949
|
const Text = ({ className, ...props }) => {
|
|
1944
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1950
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Text, {
|
|
1945
1951
|
className: (0, tailwind_variants.cn)(textVariants(), className),
|
|
1946
1952
|
"data-slot": "text",
|
|
1947
1953
|
...props
|
|
@@ -1949,17 +1955,28 @@ const Text = ({ className, ...props }) => {
|
|
|
1949
1955
|
};
|
|
1950
1956
|
var text_default = Text;
|
|
1951
1957
|
|
|
1958
|
+
//#endregion
|
|
1959
|
+
//#region src/components/text-field/text-field.variants.ts
|
|
1960
|
+
const textFieldVariants = (0, tailwind_variants.tv)({ base: "text-field" });
|
|
1961
|
+
|
|
1962
|
+
//#endregion
|
|
1963
|
+
//#region src/components/text-field/text-field.tsx
|
|
1964
|
+
const TextField = ({ className, ...props }) => {
|
|
1965
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.TextField, {
|
|
1966
|
+
className: (0, tailwind_variants.cn)(className, textFieldVariants()),
|
|
1967
|
+
...props
|
|
1968
|
+
});
|
|
1969
|
+
};
|
|
1970
|
+
var text_field_default = TextField;
|
|
1971
|
+
|
|
1952
1972
|
//#endregion
|
|
1953
1973
|
//#region src/components/textarea/textarea.variants.ts
|
|
1954
|
-
const textareaVariants = (0, tailwind_variants.tv)({
|
|
1955
|
-
base: "textarea",
|
|
1956
|
-
extend: inputVariants
|
|
1957
|
-
});
|
|
1974
|
+
const textareaVariants = (0, tailwind_variants.tv)({ base: "textarea" });
|
|
1958
1975
|
|
|
1959
1976
|
//#endregion
|
|
1960
1977
|
//#region src/components/textarea/textarea.tsx
|
|
1961
1978
|
const Textarea = ({ className, ...props }) => {
|
|
1962
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1979
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.TextArea, {
|
|
1963
1980
|
className: (0, tailwind_variants.cn)(className, textareaVariants()),
|
|
1964
1981
|
...props
|
|
1965
1982
|
});
|
|
@@ -1988,18 +2005,19 @@ var toggle_button_default = ToggleButton;
|
|
|
1988
2005
|
|
|
1989
2006
|
//#endregion
|
|
1990
2007
|
exports.Accordion = accordion_default;
|
|
2008
|
+
exports.Alert = alert_default;
|
|
1991
2009
|
exports.AlertDialog = alert_dialog_default;
|
|
1992
2010
|
exports.Avatar = avatar_default;
|
|
1993
2011
|
exports.Button = button_default;
|
|
1994
2012
|
exports.ButtonGroup = button_group_default;
|
|
1995
2013
|
exports.Card = card_default;
|
|
1996
|
-
exports.Checkbox = checkbox_default;
|
|
1997
2014
|
exports.CheckboxGroup = checkbox_group_default;
|
|
1998
2015
|
exports.Chip = chip_default;
|
|
1999
2016
|
exports.Container = container_default;
|
|
2017
|
+
exports.Description = description_default;
|
|
2000
2018
|
exports.Dialog = dialog_default;
|
|
2001
2019
|
exports.Drawer = drawer_default;
|
|
2002
|
-
exports.
|
|
2020
|
+
exports.FieldError = field_error_default;
|
|
2003
2021
|
exports.Fieldset = fieldset_default;
|
|
2004
2022
|
exports.Form = form_default;
|
|
2005
2023
|
exports.IconButton = icon_button_default;
|
|
@@ -2010,26 +2028,29 @@ exports.List = list_default;
|
|
|
2010
2028
|
exports.Menu = menu_default;
|
|
2011
2029
|
exports.Meter = meter_default;
|
|
2012
2030
|
exports.Navbar = navbar_default;
|
|
2031
|
+
exports.OverlayTrigger = overlay_trigger_default;
|
|
2013
2032
|
exports.Popover = popover_default;
|
|
2014
2033
|
exports.Progress = progress_default;
|
|
2015
2034
|
exports.Radio = radio_default;
|
|
2016
2035
|
exports.RadioGroup = radio_group_default;
|
|
2036
|
+
exports.Select = select_default;
|
|
2017
2037
|
exports.Separator = separator_default;
|
|
2018
2038
|
exports.Slider = slider_default;
|
|
2019
2039
|
exports.Switch = switch_default;
|
|
2020
2040
|
exports.Table = table_default;
|
|
2021
2041
|
exports.Tabs = tabs_default;
|
|
2022
2042
|
exports.Text = text_default;
|
|
2043
|
+
exports.TextField = text_field_default;
|
|
2023
2044
|
exports.Textarea = textarea_default;
|
|
2024
2045
|
exports.ToggleButton = toggle_button_default;
|
|
2025
2046
|
exports.accordionVariants = accordionVariants;
|
|
2026
2047
|
exports.alertDialogVariants = alertDialogVariants;
|
|
2048
|
+
exports.alertVariants = alertVariants;
|
|
2027
2049
|
exports.avatarVariants = avatarVariants;
|
|
2028
2050
|
exports.buttonGroupVariants = buttonGroupVariants;
|
|
2029
2051
|
exports.buttonVariants = buttonVariants;
|
|
2030
2052
|
exports.cardVariants = cardVariants;
|
|
2031
2053
|
exports.checkboxGroupVariants = checkboxGroupVariants;
|
|
2032
|
-
exports.checkboxVariants = checkboxVariants;
|
|
2033
2054
|
exports.chipVariants = chipVariants;
|
|
2034
2055
|
Object.defineProperty(exports, 'cn', {
|
|
2035
2056
|
enumerable: true,
|
|
@@ -2038,9 +2059,10 @@ Object.defineProperty(exports, 'cn', {
|
|
|
2038
2059
|
}
|
|
2039
2060
|
});
|
|
2040
2061
|
exports.containerVariants = containerVariants;
|
|
2062
|
+
exports.descriptionVariants = descriptionVariants;
|
|
2041
2063
|
exports.dialogVariants = dialogVariants;
|
|
2042
2064
|
exports.drawerVariants = drawerVariants;
|
|
2043
|
-
exports.
|
|
2065
|
+
exports.fieldErrorVariants = fieldErrorVariants;
|
|
2044
2066
|
exports.fieldsetVariants = fieldsetVariants;
|
|
2045
2067
|
exports.formVariants = formVariants;
|
|
2046
2068
|
exports.iconButtonVariants = iconButtonVariants;
|
|
@@ -2055,11 +2077,13 @@ exports.popoverVariants = popoverVariants;
|
|
|
2055
2077
|
exports.progressVariants = progressVariants;
|
|
2056
2078
|
exports.radioGroupVariants = radioGroupVariants;
|
|
2057
2079
|
exports.radioVariants = radioVariants;
|
|
2080
|
+
exports.selectVariants = selectVariants;
|
|
2058
2081
|
exports.separatorVariants = separatorVariants;
|
|
2059
2082
|
exports.sliderVariants = sliderVariants;
|
|
2060
2083
|
exports.switchVariants = switchVariants;
|
|
2061
2084
|
exports.tableVariants = tableVariants;
|
|
2062
2085
|
exports.tabsVariants = tabsVariants;
|
|
2086
|
+
exports.textFieldVariants = textFieldVariants;
|
|
2063
2087
|
exports.textVariants = textVariants;
|
|
2064
2088
|
exports.textareaVariants = textareaVariants;
|
|
2065
2089
|
exports.toggleButtonVariants = toggleButtonVariants;
|