@fea-ui/react 0.0.0 → 0.0.1-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs ADDED
@@ -0,0 +1,3115 @@
1
+ //#region rolldown:runtime
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
+ key = keys[i];
12
+ if (!__hasOwnProp.call(to, key) && key !== except) {
13
+ __defProp(to, key, {
14
+ get: ((k) => from[k]).bind(null, key),
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ }
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
+ value: mod,
24
+ enumerable: true
25
+ }) : target, mod));
26
+
27
+ //#endregion
28
+ let tailwind_variants = require("tailwind-variants");
29
+ let _base_ui_react = require("@base-ui/react");
30
+ let lucide_react = require("lucide-react");
31
+ let react = require("react");
32
+ react = __toESM(react);
33
+ let react_jsx_runtime = require("react/jsx-runtime");
34
+
35
+ //#region src/components/accordion/accordion.context.ts
36
+ const AccordionContext = (0, react.createContext)(null);
37
+
38
+ //#endregion
39
+ //#region src/components/accordion/accordion.variants.ts
40
+ const accordionVariants = (0, tailwind_variants.tv)({ slots: {
41
+ content: "accordion__content",
42
+ header: "accordion__header",
43
+ item: "accordion__item",
44
+ panel: "accordion__panel",
45
+ root: "accordion",
46
+ trigger: "accordion__trigger",
47
+ triggerIcon: "accordion__trigger-icon"
48
+ } });
49
+
50
+ //#endregion
51
+ //#region src/components/accordion/use-accordion.ts
52
+ const useAccordion = () => {
53
+ const context = (0, react.useContext)(AccordionContext);
54
+ if (!context) throw new Error("useAccordion must be used within a AccordionProvider");
55
+ return context;
56
+ };
57
+
58
+ //#endregion
59
+ //#region src/components/accordion/accordion.tsx
60
+ const Accordion = ({ className, ...props }) => {
61
+ const slots = (0, react.useMemo)(() => accordionVariants({}), []);
62
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AccordionContext.Provider, {
63
+ value: { slots },
64
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Accordion.Root, {
65
+ className: (0, tailwind_variants.cn)(className, slots.root()),
66
+ ...props
67
+ })
68
+ });
69
+ };
70
+ const AccordionItem = ({ className, ...props }) => {
71
+ const { slots } = useAccordion();
72
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Accordion.Item, {
73
+ className: (0, tailwind_variants.cn)(className, slots.item()),
74
+ ...props
75
+ });
76
+ };
77
+ const AccordionHeader = ({ className, ...props }) => {
78
+ const { slots } = useAccordion();
79
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Accordion.Header, {
80
+ className: (0, tailwind_variants.cn)(className, slots.header()),
81
+ ...props
82
+ });
83
+ };
84
+ const AccordionTrigger = ({ className, ...props }) => {
85
+ const { slots } = useAccordion();
86
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Accordion.Trigger, {
87
+ className: (0, tailwind_variants.cn)(className, slots.trigger()),
88
+ ...props
89
+ });
90
+ };
91
+ const AccordionTriggerIcon = ({ className, ...props }) => {
92
+ const { slots } = useAccordion();
93
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideChevronDown, {
94
+ className: (0, tailwind_variants.cn)(className, slots.triggerIcon()),
95
+ ...props
96
+ });
97
+ };
98
+ const AccordionPanel = ({ className, ...props }) => {
99
+ const { slots } = useAccordion();
100
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Accordion.Panel, {
101
+ className: (0, tailwind_variants.cn)(className, slots.panel()),
102
+ ...props
103
+ });
104
+ };
105
+ const AccordionContent = ({ className, ...props }) => {
106
+ const { slots } = useAccordion();
107
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
108
+ className: (0, tailwind_variants.cn)(className, slots.content()),
109
+ ...props
110
+ });
111
+ };
112
+ var accordion_default = Object.assign(Accordion, {
113
+ Content: AccordionContent,
114
+ Header: AccordionHeader,
115
+ Item: AccordionItem,
116
+ Panel: AccordionPanel,
117
+ Root: Accordion,
118
+ Trigger: AccordionTrigger,
119
+ TriggerIcon: AccordionTriggerIcon
120
+ });
121
+
122
+ //#endregion
123
+ //#region src/components/alert/alert.context.ts
124
+ const AlertContext = (0, react.createContext)(null);
125
+
126
+ //#endregion
127
+ //#region src/components/alert/alert.variants.ts
128
+ const alertVariants = (0, tailwind_variants.tv)({
129
+ defaultVariants: { variant: "info" },
130
+ slots: {
131
+ content: "alert__content",
132
+ description: "alert__description",
133
+ indicator: "alert__indicator",
134
+ root: "alert",
135
+ title: "alert__title"
136
+ },
137
+ variants: { variant: {
138
+ danger: { root: "alert--danger" },
139
+ info: { root: "alert--info" },
140
+ primary: { root: "alert--primary" },
141
+ success: { root: "alert--success" },
142
+ warning: { root: "alert--warning" }
143
+ } }
144
+ });
145
+
146
+ //#endregion
147
+ //#region src/components/alert/use-alert.ts
148
+ const useAlert = () => {
149
+ const context = (0, react.useContext)(AlertContext);
150
+ if (!context) throw new Error("useAlert must be used within a AlertProvider");
151
+ return context;
152
+ };
153
+
154
+ //#endregion
155
+ //#region src/components/alert/alert.tsx
156
+ const Alert = ({ className, variant, ...props }) => {
157
+ const slots = (0, react.useMemo)(() => alertVariants({
158
+ className,
159
+ variant
160
+ }), [className, variant]);
161
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AlertContext, {
162
+ value: {
163
+ slots,
164
+ variant
165
+ },
166
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
167
+ className: (0, tailwind_variants.cn)(className, slots.root()),
168
+ ...props
169
+ })
170
+ });
171
+ };
172
+ const AlertIndicator = ({ className, children, ...props }) => {
173
+ const { slots, variant } = useAlert();
174
+ const IndicatorIcon = ({ children: children$1 }) => {
175
+ if (children$1) return children$1;
176
+ switch (variant) {
177
+ case "danger": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideXCircle, {});
178
+ case "success": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideCheckCircle, {});
179
+ case "warning": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideAlertTriangle, {});
180
+ default: return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideInfo, {});
181
+ }
182
+ };
183
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
184
+ className: (0, tailwind_variants.cn)(className, slots.indicator()),
185
+ ...props,
186
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IndicatorIcon, { children })
187
+ });
188
+ };
189
+ const AlertContent = ({ className, ...props }) => {
190
+ const { slots } = useAlert();
191
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
192
+ className: (0, tailwind_variants.cn)(className, slots.content()),
193
+ ...props
194
+ });
195
+ };
196
+ const AlertTitle = ({ className, ...props }) => {
197
+ const { slots } = useAlert();
198
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
199
+ className: (0, tailwind_variants.cn)(className, slots.title()),
200
+ ...props
201
+ });
202
+ };
203
+ const AlertDescription = ({ className, ...props }) => {
204
+ const { slots } = useAlert();
205
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
206
+ className: (0, tailwind_variants.cn)(className, slots.description()),
207
+ ...props
208
+ });
209
+ };
210
+ var alert_default = Object.assign(Alert, {
211
+ Content: AlertContent,
212
+ Description: AlertDescription,
213
+ Indicator: AlertIndicator,
214
+ Root: Alert,
215
+ Title: AlertTitle
216
+ });
217
+
218
+ //#endregion
219
+ //#region src/components/alert-dialog/alert-dialog.context.ts
220
+ const AlertDialogContext = (0, react.createContext)(null);
221
+
222
+ //#endregion
223
+ //#region src/components/alert-dialog/alert-dialog.variants.ts
224
+ const alertDialogVariants = (0, tailwind_variants.tv)({ slots: {
225
+ backdrop: "alert-dialog__backdrop",
226
+ close: "alert-dialog__close",
227
+ description: "alert-dialog__description",
228
+ popup: "alert-dialog__popup",
229
+ portal: "alert-dialog__portal",
230
+ root: "alert-dialog",
231
+ title: "alert-dialog__title",
232
+ trigger: "alert-dialog__trigger",
233
+ viewport: "alert-dialog__viewport"
234
+ } });
235
+
236
+ //#endregion
237
+ //#region src/components/alert-dialog/use-alert-dialog.ts
238
+ const useAlertDialog = () => {
239
+ const context = (0, react.useContext)(AlertDialogContext);
240
+ if (!context) throw new Error("useAlertDialog must be used within a AlertDialogProvider");
241
+ return context;
242
+ };
243
+
244
+ //#endregion
245
+ //#region src/components/alert-dialog/alert-dialog.tsx
246
+ const AlertDialog = ({ ...props }) => {
247
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AlertDialogContext, {
248
+ value: { slots: (0, react.useMemo)(() => alertDialogVariants(), []) },
249
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.AlertDialog.Root, { ...props })
250
+ });
251
+ };
252
+ const AlertDialogTrigger = ({ className, ...props }) => {
253
+ const { slots } = useAlertDialog();
254
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.AlertDialog.Trigger, {
255
+ className: (0, tailwind_variants.cn)(slots.trigger(), className),
256
+ ...props
257
+ });
258
+ };
259
+ const AlertDialogPortal = ({ className, ...props }) => {
260
+ const { slots } = useAlertDialog();
261
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.AlertDialog.Portal, {
262
+ className: (0, tailwind_variants.cn)(slots.portal(), className),
263
+ ...props
264
+ });
265
+ };
266
+ const AlertDialogBackdrop = ({ className, ...props }) => {
267
+ const { slots } = useAlertDialog();
268
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.AlertDialog.Backdrop, {
269
+ className: (0, tailwind_variants.cn)(slots.backdrop(), className),
270
+ ...props
271
+ });
272
+ };
273
+ const AlertDialogViewport = ({ className, ...props }) => {
274
+ const { slots } = useAlertDialog();
275
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.AlertDialog.Viewport, {
276
+ className: (0, tailwind_variants.cn)(slots.viewport(), className),
277
+ ...props
278
+ });
279
+ };
280
+ const AlertDialogPopup = ({ className, ...props }) => {
281
+ const { slots } = useAlertDialog();
282
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.AlertDialog.Popup, {
283
+ className: (0, tailwind_variants.cn)(slots.popup(), className),
284
+ ...props
285
+ });
286
+ };
287
+ const AlertDialogTitle = ({ className, ...props }) => {
288
+ const { slots } = useAlertDialog();
289
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.AlertDialog.Title, {
290
+ className: (0, tailwind_variants.cn)(slots.title(), className),
291
+ ...props
292
+ });
293
+ };
294
+ const AlertDialogDescription = ({ className, ...props }) => {
295
+ const { slots } = useAlertDialog();
296
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.AlertDialog.Description, {
297
+ className: (0, tailwind_variants.cn)(slots.description(), className),
298
+ ...props
299
+ });
300
+ };
301
+ const AlertDialogClose = ({ className, children, ...props }) => {
302
+ const { slots } = useAlertDialog();
303
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.AlertDialog.Close, {
304
+ className: (0, tailwind_variants.cn)(slots.close(), className),
305
+ ...props,
306
+ children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideX, {})
307
+ });
308
+ };
309
+ var alert_dialog_default = Object.assign(AlertDialog, {
310
+ Backdrop: AlertDialogBackdrop,
311
+ Close: AlertDialogClose,
312
+ Description: AlertDialogDescription,
313
+ Popup: AlertDialogPopup,
314
+ Portal: AlertDialogPortal,
315
+ Root: AlertDialog,
316
+ Title: AlertDialogTitle,
317
+ Trigger: AlertDialogTrigger,
318
+ Viewport: AlertDialogViewport
319
+ });
320
+
321
+ //#endregion
322
+ //#region src/components/avatar/avatar.context.ts
323
+ const AvatarContext = (0, react.createContext)(null);
324
+
325
+ //#endregion
326
+ //#region src/components/avatar/avatar.variants.ts
327
+ const avatarVariants = (0, tailwind_variants.tv)({
328
+ defaultVariants: { size: "md" },
329
+ slots: {
330
+ fallback: "avatar__fallback",
331
+ image: "avatar__image",
332
+ root: "avatar"
333
+ },
334
+ variants: { size: {
335
+ lg: { root: "avatar--lg" },
336
+ md: { root: "avatar--md" },
337
+ sm: { root: "avatar--sm" }
338
+ } }
339
+ });
340
+
341
+ //#endregion
342
+ //#region src/components/avatar/use-avatar.ts
343
+ const useAvatar = () => {
344
+ const ctx = (0, react.useContext)(AvatarContext);
345
+ if (!ctx) throw new Error("useAvatar must be used within the Avatar component.");
346
+ return ctx;
347
+ };
348
+
349
+ //#endregion
350
+ //#region src/components/avatar/avatar.tsx
351
+ const Avatar = ({ className, size, ...props }) => {
352
+ const slots = (0, react.useMemo)(() => avatarVariants({ size }), [size]);
353
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AvatarContext.Provider, {
354
+ value: { slots },
355
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Avatar.Root, {
356
+ className: (0, tailwind_variants.cn)(className, slots.root()),
357
+ ...props
358
+ })
359
+ });
360
+ };
361
+ const AvatarImage = ({ className, ...props }) => {
362
+ const { slots } = useAvatar();
363
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Avatar.Image, {
364
+ className: (0, tailwind_variants.cn)(className, slots.image()),
365
+ ...props
366
+ });
367
+ };
368
+ const AvatarFallback = ({ className, ...props }) => {
369
+ const { slots } = useAvatar();
370
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Avatar.Fallback, {
371
+ className: (0, tailwind_variants.cn)(className, slots.fallback()),
372
+ ...props
373
+ });
374
+ };
375
+ var avatar_default = Object.assign(Avatar, {
376
+ Fallback: AvatarFallback,
377
+ Image: AvatarImage,
378
+ Root: Avatar
379
+ });
380
+
381
+ //#endregion
382
+ //#region src/components/button/button.variants.ts
383
+ const buttonVariants = (0, tailwind_variants.tv)({
384
+ base: "button",
385
+ defaultVariants: {
386
+ isIconOnly: false,
387
+ size: "md",
388
+ variant: "primary"
389
+ },
390
+ variants: {
391
+ isIconOnly: { true: "button--icon-only" },
392
+ size: {
393
+ lg: "button--lg",
394
+ md: "button--md",
395
+ sm: "button--sm"
396
+ },
397
+ variant: {
398
+ danger: "button--danger",
399
+ ghost: "button--ghost",
400
+ outline: "button--outline",
401
+ primary: "button--primary",
402
+ secondary: "button--secondary"
403
+ }
404
+ }
405
+ });
406
+
407
+ //#endregion
408
+ //#region src/components/button/button.tsx
409
+ const Button = ({ className, variant, size, isIconOnly, ...props }) => {
410
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Button, {
411
+ className: (0, tailwind_variants.cn)(buttonVariants({
412
+ isIconOnly,
413
+ size,
414
+ variant
415
+ }), className),
416
+ ...props
417
+ });
418
+ };
419
+ var button_default = Button;
420
+
421
+ //#endregion
422
+ //#region src/components/button-group/button-group.variants.ts
423
+ const buttonGroupVariants = (0, tailwind_variants.tv)({ base: "button-group" });
424
+
425
+ //#endregion
426
+ //#region src/components/button-group/button-group.tsx
427
+ const ButtonGroup = ({ className, ...props }) => {
428
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
429
+ className: (0, tailwind_variants.cn)(className, buttonGroupVariants()),
430
+ ...props
431
+ });
432
+ };
433
+ var button_group_default = ButtonGroup;
434
+
435
+ //#endregion
436
+ //#region src/components/card/card.context.ts
437
+ const CardContext = (0, react.createContext)(null);
438
+
439
+ //#endregion
440
+ //#region src/components/card/card.variants.ts
441
+ const cardVariants = (0, tailwind_variants.tv)({
442
+ defaultVariants: { variant: "default" },
443
+ slots: {
444
+ content: "card__content",
445
+ description: "card__description",
446
+ header: "card__header",
447
+ root: "card",
448
+ title: "card__title"
449
+ },
450
+ variants: { variant: {
451
+ default: { root: "card--default" },
452
+ transparent: { root: "card--transparent" }
453
+ } }
454
+ });
455
+
456
+ //#endregion
457
+ //#region src/components/card/use-card.ts
458
+ const useCard = () => {
459
+ const ctx = (0, react.useContext)(CardContext);
460
+ if (!ctx) throw new Error("CardContext must be used with in the Card component.");
461
+ return ctx;
462
+ };
463
+
464
+ //#endregion
465
+ //#region src/components/card/card.tsx
466
+ const Card = ({ className, variant, ...props }) => {
467
+ const slots = (0, react.useMemo)(() => cardVariants({ variant }), [variant]);
468
+ console.log(slots);
469
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CardContext.Provider, {
470
+ value: { slots },
471
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
472
+ className: (0, tailwind_variants.cn)(className, slots.root()),
473
+ ...props
474
+ })
475
+ });
476
+ };
477
+ const CardHeader = ({ className, ...props }) => {
478
+ const { slots } = useCard();
479
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
480
+ className: (0, tailwind_variants.cn)(className, slots.header()),
481
+ ...props
482
+ });
483
+ };
484
+ const CardContent = ({ className, ...props }) => {
485
+ const { slots } = useCard();
486
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
487
+ className: (0, tailwind_variants.cn)(className, slots.content()),
488
+ ...props
489
+ });
490
+ };
491
+ const CardTitle = ({ className, ...props }) => {
492
+ const { slots } = useCard();
493
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
494
+ className: (0, tailwind_variants.cn)(className, slots.title()),
495
+ ...props
496
+ });
497
+ };
498
+ const CardDescription = ({ className, ...props }) => {
499
+ const { slots } = useCard();
500
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
501
+ className: (0, tailwind_variants.cn)(className, slots.description()),
502
+ ...props
503
+ });
504
+ };
505
+ /** Exports */
506
+ var card_default = Object.assign(Card, {
507
+ Content: CardContent,
508
+ Description: CardDescription,
509
+ Header: CardHeader,
510
+ Root: Card,
511
+ Title: CardTitle
512
+ });
513
+
514
+ //#endregion
515
+ //#region src/components/checkbox/checkbox.context.ts
516
+ const CheckboxContext = (0, react.createContext)(null);
517
+
518
+ //#endregion
519
+ //#region src/components/checkbox/checkbox.variants.ts
520
+ const checkboxVariants = (0, tailwind_variants.tv)({ slots: {
521
+ indicator: "checkbox__indicator",
522
+ root: "checkbox"
523
+ } });
524
+
525
+ //#endregion
526
+ //#region src/components/checkbox/use-checkbox.ts
527
+ const useCheckbox = () => {
528
+ const context = (0, react.useContext)(CheckboxContext);
529
+ if (!context) throw new Error("useCheckbox must be used within a CheckboxProvider");
530
+ return context;
531
+ };
532
+
533
+ //#endregion
534
+ //#region src/components/checkbox/checkbox.tsx
535
+ const Checkbox = ({ className, ...props }) => {
536
+ const slots = (0, react.useMemo)(() => checkboxVariants({}), []);
537
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CheckboxContext, {
538
+ value: { slots },
539
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Checkbox.Root, {
540
+ className: (0, tailwind_variants.cn)(className, slots.root()),
541
+ ...props
542
+ })
543
+ });
544
+ };
545
+ const CheckboxIndicator = ({ className, children, ...props }) => {
546
+ const { slots } = useCheckbox();
547
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Checkbox.Indicator, {
548
+ className: (0, tailwind_variants.cn)(className, slots.indicator()),
549
+ ...props,
550
+ children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideCheck, {})
551
+ });
552
+ };
553
+ var checkbox_default = Object.assign(Checkbox, {
554
+ Indicator: CheckboxIndicator,
555
+ Root: Checkbox
556
+ });
557
+
558
+ //#endregion
559
+ //#region src/components/checkbox-group/checkbox-group.variants.ts
560
+ const checkboxGroupVariants = (0, tailwind_variants.tv)({ base: "checkbox-group" });
561
+
562
+ //#endregion
563
+ //#region src/components/checkbox-group/checkbox-group.tsx
564
+ const CheckboxGroup = ({ className, ...props }) => {
565
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.CheckboxGroup, {
566
+ className: (0, tailwind_variants.cn)(className, checkboxGroupVariants()),
567
+ ...props
568
+ });
569
+ };
570
+ var checkbox_group_default = CheckboxGroup;
571
+
572
+ //#endregion
573
+ //#region src/components/chip/chip.variants.ts
574
+ const chipVariants = (0, tailwind_variants.tv)({
575
+ base: "chip",
576
+ defaultVariants: {
577
+ size: "md",
578
+ variant: "primary"
579
+ },
580
+ variants: {
581
+ size: {
582
+ lg: "chip--lg",
583
+ md: "chip--md",
584
+ sm: "chip--sm"
585
+ },
586
+ variant: {
587
+ danger: "chip--danger",
588
+ outline: "chip--outline",
589
+ primary: "chip--primary",
590
+ secondary: "chip--secondary",
591
+ success: "chip--success"
592
+ }
593
+ }
594
+ });
595
+
596
+ //#endregion
597
+ //#region src/components/chip/chip.tsx
598
+ const Chip = ({ className, variant, size, ...props }) => {
599
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
600
+ className: (0, tailwind_variants.cn)(className, chipVariants({
601
+ size,
602
+ variant
603
+ })),
604
+ ...props
605
+ });
606
+ };
607
+ var chip_default = Chip;
608
+
609
+ //#endregion
610
+ //#region src/components/collapsible/collapsible.context.ts
611
+ const CollapsibleContext = (0, react.createContext)(null);
612
+
613
+ //#endregion
614
+ //#region src/components/collapsible/collapsible.variants.ts
615
+ const collapsibleVariants = (0, tailwind_variants.tv)({ slots: {
616
+ content: "collapsible__content",
617
+ panel: "collapsible__panel",
618
+ root: "collapsible",
619
+ trigger: "collapsible__trigger",
620
+ triggerIcon: "collapsible__trigger-icon"
621
+ } });
622
+
623
+ //#endregion
624
+ //#region src/components/collapsible/use-collapsible.ts
625
+ const useCollapsible = () => {
626
+ const context = (0, react.useContext)(CollapsibleContext);
627
+ if (!context) throw new Error("useCollapsible must be used within a CollapsibleProvider");
628
+ return context;
629
+ };
630
+
631
+ //#endregion
632
+ //#region src/components/collapsible/collapsible.tsx
633
+ const Collapsible = ({ className, ...props }) => {
634
+ const slots = (0, react.useMemo)(() => collapsibleVariants({}), []);
635
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CollapsibleContext, {
636
+ value: { slots },
637
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Collapsible.Root, {
638
+ className: (0, tailwind_variants.cn)(className, slots.root()),
639
+ ...props
640
+ })
641
+ });
642
+ };
643
+ const CollapsibleTrigger = ({ className, children, ...props }) => {
644
+ const { slots } = useCollapsible();
645
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Collapsible.Trigger, {
646
+ className: (0, tailwind_variants.cn)(className, slots.trigger()),
647
+ ...props,
648
+ children
649
+ });
650
+ };
651
+ const CollapsibleTriggerIcon = ({ className, ...props }) => {
652
+ const { slots } = useCollapsible();
653
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideChevronDown, {
654
+ className: (0, tailwind_variants.cn)(className, slots.triggerIcon()),
655
+ ...props
656
+ });
657
+ };
658
+ const CollapsiblePanel = ({ className, children, ...props }) => {
659
+ const { slots } = useCollapsible();
660
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Collapsible.Panel, {
661
+ className: (0, tailwind_variants.cn)(className, slots.panel()),
662
+ ...props,
663
+ children
664
+ });
665
+ };
666
+ const CollapsibleContent = ({ className, ...props }) => {
667
+ const { slots } = useCollapsible();
668
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
669
+ className: (0, tailwind_variants.cn)(className, slots.content()),
670
+ ...props
671
+ });
672
+ };
673
+ var collapsible_default = Object.assign(Collapsible, {
674
+ Content: CollapsibleContent,
675
+ Panel: CollapsiblePanel,
676
+ Root: Collapsible,
677
+ Trigger: CollapsibleTrigger,
678
+ TriggerIcon: CollapsibleTriggerIcon
679
+ });
680
+
681
+ //#endregion
682
+ //#region src/components/combobox/combobox.context.ts
683
+ const ComboboxContext = (0, react.createContext)(null);
684
+
685
+ //#endregion
686
+ //#region src/components/combobox/combobox.variants.ts
687
+ /** biome-ignore-all assist/source/useSortedKeys: believe me its better */
688
+ const comboboxVariants = (0, tailwind_variants.tv)({ slots: {
689
+ root: "combobox",
690
+ input: "combobox__input",
691
+ trigger: "combobox__trigger",
692
+ icon: "combobox__icon",
693
+ clear: "combobox__clear",
694
+ value: "combobox__value",
695
+ chips: "combobox__chips",
696
+ chip: "combobox__chip",
697
+ chipRemove: "combobox__chip-remove",
698
+ portal: "combobox__portal",
699
+ backdrop: "combobox__backdrop",
700
+ positioner: "combobox__positioner",
701
+ popup: "combobox__popup",
702
+ arrow: "combobox__arrow",
703
+ status: "combobox__status",
704
+ empty: "combobox__empty",
705
+ list: "combobox__list",
706
+ row: "combobox__row",
707
+ item: "combobox__item",
708
+ itemIndicator: "combobox__item-indicator",
709
+ separator: "combobox__separator",
710
+ group: "combobox__group",
711
+ groupLabel: "combobox__group-label"
712
+ } });
713
+
714
+ //#endregion
715
+ //#region src/components/combobox/use-combobox.ts
716
+ const useCombobox = () => {
717
+ const context = (0, react.useContext)(ComboboxContext);
718
+ if (!context) throw new Error("useCombobox must be used within a ComboboxProvider");
719
+ return context;
720
+ };
721
+
722
+ //#endregion
723
+ //#region src/components/combobox/combobox.tsx
724
+ const Combobox = ({ ...props }) => {
725
+ const slots = (0, react.useMemo)(() => comboboxVariants(), []);
726
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ComboboxContext.Provider, {
727
+ value: { slots },
728
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Combobox.Root, { ...props })
729
+ });
730
+ };
731
+ const ComboboxInput = ({ className, ...props }) => {
732
+ const { slots } = useCombobox();
733
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Combobox.Input, {
734
+ className: (0, tailwind_variants.cn)(slots.input(), className),
735
+ ...props
736
+ });
737
+ };
738
+ const ComboboxTrigger = ({ className, children, ...props }) => {
739
+ const { slots } = useCombobox();
740
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_base_ui_react.Combobox.Trigger, {
741
+ className: (0, tailwind_variants.cn)(slots.trigger(), className),
742
+ ...props,
743
+ children: [children, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Combobox.Icon, {
744
+ className: slots.icon(),
745
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronDown, {})
746
+ })]
747
+ });
748
+ };
749
+ const ComboboxValue = ({ ...props }) => {
750
+ const { slots } = useCombobox();
751
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
752
+ className: (0, tailwind_variants.cn)(slots.value()),
753
+ ...props
754
+ });
755
+ };
756
+ const ComboboxClear = ({ className, ...props }) => {
757
+ const { slots } = useCombobox();
758
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Combobox.Clear, {
759
+ className: (0, tailwind_variants.cn)(slots.clear(), className),
760
+ ...props,
761
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.X, { className: "h-4 w-4" })
762
+ });
763
+ };
764
+ const ComboboxChips = ({ className, ...props }) => {
765
+ const { slots } = useCombobox();
766
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Combobox.Chips, {
767
+ className: (0, tailwind_variants.cn)(slots.chips(), className),
768
+ ...props
769
+ });
770
+ };
771
+ const ComboboxChip = ({ className, children, ...props }) => {
772
+ const { slots } = useCombobox();
773
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_base_ui_react.Combobox.Chip, {
774
+ className: (0, tailwind_variants.cn)(slots.chip(), className),
775
+ ...props,
776
+ children: [children, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Combobox.ChipRemove, { className: slots.chipRemove() })]
777
+ });
778
+ };
779
+ const ComboboxChipRemove = ({ className, ...props }) => {
780
+ const { slots } = useCombobox();
781
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Combobox.ChipRemove, {
782
+ className: (0, tailwind_variants.cn)(slots.chipRemove(), className),
783
+ ...props
784
+ });
785
+ };
786
+ const ComboboxPortal = ({ ...props }) => {
787
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Combobox.Portal, { ...props });
788
+ };
789
+ const ComboboxBackdrop = ({ className, ...props }) => {
790
+ const { slots } = useCombobox();
791
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Combobox.Backdrop, {
792
+ className: (0, tailwind_variants.cn)(slots.backdrop(), className),
793
+ ...props
794
+ });
795
+ };
796
+ const ComboboxPositioner = ({ className, ...props }) => {
797
+ const { slots } = useCombobox();
798
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Combobox.Positioner, {
799
+ className: (0, tailwind_variants.cn)(slots.positioner(), className),
800
+ ...props
801
+ });
802
+ };
803
+ const ComboboxPopup = ({ className, ...props }) => {
804
+ const { slots } = useCombobox();
805
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Combobox.Popup, {
806
+ className: (0, tailwind_variants.cn)(slots.popup(), className),
807
+ ...props
808
+ });
809
+ };
810
+ const ComboboxArrow = ({ className, ...props }) => {
811
+ const { slots } = useCombobox();
812
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Combobox.Arrow, {
813
+ className: (0, tailwind_variants.cn)(slots.arrow(), className),
814
+ ...props
815
+ });
816
+ };
817
+ const ComboboxStatus = ({ className, ...props }) => {
818
+ const { slots } = useCombobox();
819
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Combobox.Status, {
820
+ className: (0, tailwind_variants.cn)(slots.status(), className),
821
+ ...props
822
+ });
823
+ };
824
+ const ComboboxEmpty = ({ className, ...props }) => {
825
+ const { slots } = useCombobox();
826
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Combobox.Empty, {
827
+ className: (0, tailwind_variants.cn)(slots.empty(), className),
828
+ ...props
829
+ });
830
+ };
831
+ const ComboboxList = ({ className, ...props }) => {
832
+ const { slots } = useCombobox();
833
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Combobox.List, {
834
+ className: (0, tailwind_variants.cn)(slots.list(), className),
835
+ ...props
836
+ });
837
+ };
838
+ const ComboboxRow = ({ className, ...props }) => {
839
+ const { slots } = useCombobox();
840
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Combobox.Row, {
841
+ className: (0, tailwind_variants.cn)(slots.row(), className),
842
+ ...props
843
+ });
844
+ };
845
+ const ComboboxItemIndicator = ({ className, children, ...props }) => {
846
+ const { slots } = useCombobox();
847
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Combobox.ItemIndicator, {
848
+ className: (0, tailwind_variants.cn)(slots.itemIndicator(), className),
849
+ ...props,
850
+ children: children || /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Check, { className: "h-4 w-4" })
851
+ });
852
+ };
853
+ const ComboboxItem = ({ className, children, ...props }) => {
854
+ const { slots } = useCombobox();
855
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_base_ui_react.Combobox.Item, {
856
+ className: (0, tailwind_variants.cn)(slots.item(), className),
857
+ ...props,
858
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ComboboxItemIndicator, {}), children]
859
+ });
860
+ };
861
+ const ComboboxSeparator = ({ className, ...props }) => {
862
+ const { slots } = useCombobox();
863
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Combobox.Separator, {
864
+ className: (0, tailwind_variants.cn)(slots.separator(), className),
865
+ ...props
866
+ });
867
+ };
868
+ const ComboboxGroup = ({ className, ...props }) => {
869
+ const { slots } = useCombobox();
870
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Combobox.Group, {
871
+ className: (0, tailwind_variants.cn)(slots.group(), className),
872
+ ...props
873
+ });
874
+ };
875
+ const ComboboxGroupLabel = ({ className, ...props }) => {
876
+ const { slots } = useCombobox();
877
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Combobox.GroupLabel, {
878
+ className: (0, tailwind_variants.cn)(slots.groupLabel(), className),
879
+ ...props
880
+ });
881
+ };
882
+ var combobox_default = Object.assign(Combobox, {
883
+ Arrow: ComboboxArrow,
884
+ Backdrop: ComboboxBackdrop,
885
+ Chip: ComboboxChip,
886
+ ChipRemove: ComboboxChipRemove,
887
+ Chips: ComboboxChips,
888
+ Clear: ComboboxClear,
889
+ Empty: ComboboxEmpty,
890
+ Group: ComboboxGroup,
891
+ GroupLabel: ComboboxGroupLabel,
892
+ Input: ComboboxInput,
893
+ Item: ComboboxItem,
894
+ ItemIndicator: ComboboxItemIndicator,
895
+ List: ComboboxList,
896
+ Popup: ComboboxPopup,
897
+ Portal: ComboboxPortal,
898
+ Positioner: ComboboxPositioner,
899
+ Root: Combobox,
900
+ Row: ComboboxRow,
901
+ Separator: ComboboxSeparator,
902
+ Status: ComboboxStatus,
903
+ Trigger: ComboboxTrigger,
904
+ Value: ComboboxValue
905
+ });
906
+
907
+ //#endregion
908
+ //#region src/components/container/container.variants.ts
909
+ const containerVariants = (0, tailwind_variants.tv)({ base: "container" });
910
+
911
+ //#endregion
912
+ //#region src/components/container/container.tsx
913
+ const Container = ({ className, ...props }) => {
914
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
915
+ className: (0, tailwind_variants.cn)(className, containerVariants()),
916
+ ...props
917
+ });
918
+ };
919
+ var container_default = Container;
920
+
921
+ //#endregion
922
+ //#region src/components/dialog/dialog.context.ts
923
+ const DialogContext = (0, react.createContext)(null);
924
+
925
+ //#endregion
926
+ //#region src/components/dialog/dialog.variants.ts
927
+ const dialogVariants = (0, tailwind_variants.tv)({ slots: {
928
+ backdrop: "dialog__backdrop",
929
+ close: "dialog__close",
930
+ description: "dialog__description",
931
+ popup: "dialog__popup",
932
+ portal: "dialog__portal",
933
+ root: "dialog",
934
+ title: "dialog__title",
935
+ trigger: "dialog__trigger",
936
+ viewport: "dialog__viewport"
937
+ } });
938
+
939
+ //#endregion
940
+ //#region src/components/dialog/use-dialog.ts
941
+ const useDialog = () => {
942
+ const context = (0, react.useContext)(DialogContext);
943
+ if (!context) throw new Error("useDialog must be used within a DialogProvider");
944
+ return context;
945
+ };
946
+
947
+ //#endregion
948
+ //#region src/components/dialog/dialog.tsx
949
+ const Dialog = ({ ...props }) => {
950
+ const slots = (0, react.useMemo)(() => dialogVariants(), []);
951
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogContext.Provider, {
952
+ value: { slots },
953
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Root, { ...props })
954
+ });
955
+ };
956
+ const DialogTrigger = ({ className, ...props }) => {
957
+ const { slots } = useDialog();
958
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Trigger, {
959
+ className: (0, tailwind_variants.cn)(slots.trigger(), className),
960
+ ...props
961
+ });
962
+ };
963
+ const DialogPortal = ({ className, ...props }) => {
964
+ const { slots } = useDialog();
965
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Portal, {
966
+ className: (0, tailwind_variants.cn)(slots.portal(), className),
967
+ ...props
968
+ });
969
+ };
970
+ const DialogBackdrop = ({ className, ...props }) => {
971
+ const { slots } = useDialog();
972
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Backdrop, {
973
+ className: (0, tailwind_variants.cn)(slots.backdrop(), className),
974
+ ...props
975
+ });
976
+ };
977
+ const DialogViewport = ({ className, ...props }) => {
978
+ const { slots } = useDialog();
979
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Viewport, {
980
+ className: (0, tailwind_variants.cn)(slots.viewport(), className),
981
+ ...props
982
+ });
983
+ };
984
+ const DialogPopup = ({ className, ...props }) => {
985
+ const { slots } = useDialog();
986
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Popup, {
987
+ className: (0, tailwind_variants.cn)(slots.popup(), className),
988
+ ...props
989
+ });
990
+ };
991
+ const DialogTitle = ({ className, ...props }) => {
992
+ const { slots } = useDialog();
993
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Title, {
994
+ className: (0, tailwind_variants.cn)(slots.title(), className),
995
+ ...props
996
+ });
997
+ };
998
+ const DialogDescription = ({ className, ...props }) => {
999
+ const { slots } = useDialog();
1000
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Description, {
1001
+ className: (0, tailwind_variants.cn)(slots.description(), className),
1002
+ ...props
1003
+ });
1004
+ };
1005
+ const DialogClose = ({ className, ...props }) => {
1006
+ const { slots } = useDialog();
1007
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Close, {
1008
+ className: (0, tailwind_variants.cn)(slots.close(), className),
1009
+ ...props,
1010
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideX, {})
1011
+ });
1012
+ };
1013
+ var dialog_default = Object.assign(Dialog, {
1014
+ Backdrop: DialogBackdrop,
1015
+ Close: DialogClose,
1016
+ Description: DialogDescription,
1017
+ Popup: DialogPopup,
1018
+ Portal: DialogPortal,
1019
+ Root: Dialog,
1020
+ Title: DialogTitle,
1021
+ Trigger: DialogTrigger,
1022
+ Viewport: DialogViewport
1023
+ });
1024
+
1025
+ //#endregion
1026
+ //#region src/components/drawer/drawer.context.ts
1027
+ const DrawerContext = (0, react.createContext)(null);
1028
+
1029
+ //#endregion
1030
+ //#region src/components/drawer/drawer.variants.ts
1031
+ const drawerVariants = (0, tailwind_variants.tv)({
1032
+ defaultVariants: { position: "left" },
1033
+ slots: {
1034
+ backdrop: "drawer__backdrop",
1035
+ close: "drawer__close",
1036
+ description: "drawer__description",
1037
+ popup: "drawer__popup",
1038
+ portal: "drawer__portal",
1039
+ root: "drawer",
1040
+ title: "drawer__title",
1041
+ trigger: "drawer__trigger",
1042
+ viewport: "drawer__viewport"
1043
+ },
1044
+ variants: { position: {
1045
+ bottom: { popup: "drawer--bottom" },
1046
+ left: { popup: "drawer--left" },
1047
+ right: { popup: "drawer--right" },
1048
+ top: { popup: "drawer--top" }
1049
+ } }
1050
+ });
1051
+
1052
+ //#endregion
1053
+ //#region src/components/drawer/use-drawer.ts
1054
+ const useDrawer = () => {
1055
+ const context = (0, react.useContext)(DrawerContext);
1056
+ if (!context) throw new Error("useDrawer must be used within a DrawerProvider");
1057
+ return context;
1058
+ };
1059
+
1060
+ //#endregion
1061
+ //#region src/components/drawer/drawer.tsx
1062
+ const Drawer = ({ position, ...props }) => {
1063
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DrawerContext, {
1064
+ value: { slots: (0, react.useMemo)(() => drawerVariants({ position }), [position]) },
1065
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Root, { ...props })
1066
+ });
1067
+ };
1068
+ const DrawerTrigger = ({ className, ...props }) => {
1069
+ const { slots } = useDrawer();
1070
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Trigger, {
1071
+ className: (0, tailwind_variants.cn)(slots.trigger(), className),
1072
+ ...props
1073
+ });
1074
+ };
1075
+ const DrawerPortal = ({ className, ...props }) => {
1076
+ const { slots } = useDrawer();
1077
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Portal, {
1078
+ className: (0, tailwind_variants.cn)(slots.portal(), className),
1079
+ ...props
1080
+ });
1081
+ };
1082
+ const DrawerBackdrop = ({ className, ...props }) => {
1083
+ const { slots } = useDrawer();
1084
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Backdrop, {
1085
+ className: (0, tailwind_variants.cn)(slots.backdrop(), className),
1086
+ ...props
1087
+ });
1088
+ };
1089
+ const DrawerViewport = ({ className, ...props }) => {
1090
+ const { slots } = useDrawer();
1091
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Viewport, {
1092
+ className: (0, tailwind_variants.cn)(slots.viewport(), className),
1093
+ ...props
1094
+ });
1095
+ };
1096
+ const DrawerPopup = ({ className, ...props }) => {
1097
+ const { slots } = useDrawer();
1098
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Popup, {
1099
+ className: (0, tailwind_variants.cn)(slots.popup(), className),
1100
+ ...props
1101
+ });
1102
+ };
1103
+ const DrawerTitle = ({ className, ...props }) => {
1104
+ const { slots } = useDrawer();
1105
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Title, {
1106
+ className: (0, tailwind_variants.cn)(slots.title(), className),
1107
+ ...props
1108
+ });
1109
+ };
1110
+ const DrawerDescription = ({ className, ...props }) => {
1111
+ const { slots } = useDrawer();
1112
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Description, {
1113
+ className: (0, tailwind_variants.cn)(slots.description(), className),
1114
+ ...props
1115
+ });
1116
+ };
1117
+ const DrawerClose = ({ className, children, ...props }) => {
1118
+ const { slots } = useDrawer();
1119
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Close, {
1120
+ className: (0, tailwind_variants.cn)(slots.close(), className),
1121
+ ...props,
1122
+ children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideX, {})
1123
+ });
1124
+ };
1125
+ var drawer_default = Object.assign(Drawer, {
1126
+ Backdrop: DrawerBackdrop,
1127
+ Close: DrawerClose,
1128
+ Description: DrawerDescription,
1129
+ Popup: DrawerPopup,
1130
+ Portal: DrawerPortal,
1131
+ Root: Drawer,
1132
+ Title: DrawerTitle,
1133
+ Trigger: DrawerTrigger,
1134
+ Viewport: DrawerViewport
1135
+ });
1136
+
1137
+ //#endregion
1138
+ //#region src/components/field/field.context.ts
1139
+ const FieldContext = (0, react.createContext)(null);
1140
+
1141
+ //#endregion
1142
+ //#region src/components/field/field.variants.ts
1143
+ const fieldVariants = (0, tailwind_variants.tv)({ slots: {
1144
+ control: "input field__control",
1145
+ description: "field__description",
1146
+ error: "field__error",
1147
+ label: "label field__label",
1148
+ root: "field"
1149
+ } });
1150
+
1151
+ //#endregion
1152
+ //#region src/components/field/use-field.ts
1153
+ const useField = () => {
1154
+ const context = (0, react.useContext)(FieldContext);
1155
+ if (!context) throw new Error("useField must be used within a FieldProvider");
1156
+ return context;
1157
+ };
1158
+
1159
+ //#endregion
1160
+ //#region src/components/field/field.tsx
1161
+ const FieldRoot = ({ className, required, ...props }) => {
1162
+ const slots = (0, react.useMemo)(() => fieldVariants({}), []);
1163
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FieldContext, {
1164
+ value: {
1165
+ required,
1166
+ slots
1167
+ },
1168
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Field.Root, {
1169
+ className: (0, tailwind_variants.cn)(className, slots.root()),
1170
+ "data-required": required,
1171
+ ...props
1172
+ })
1173
+ });
1174
+ };
1175
+ const FieldLabel = ({ className, ...props }) => {
1176
+ const { slots } = useField();
1177
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Field.Label, {
1178
+ className: (0, tailwind_variants.cn)(className, slots.label()),
1179
+ ...props
1180
+ });
1181
+ };
1182
+ const FieldControl = ({ className, ...props }) => {
1183
+ const { slots, required } = useField();
1184
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Field.Control, {
1185
+ className: (0, tailwind_variants.cn)(className, slots.control()),
1186
+ required,
1187
+ ...props
1188
+ });
1189
+ };
1190
+ const FieldDescription = ({ className, ...props }) => {
1191
+ const { slots } = useField();
1192
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Field.Description, {
1193
+ className: (0, tailwind_variants.cn)(className, slots.description()),
1194
+ ...props
1195
+ });
1196
+ };
1197
+ const FieldError = ({ className, ...props }) => {
1198
+ const { slots } = useField();
1199
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Field.Error, {
1200
+ className: (0, tailwind_variants.cn)(className, slots.error()),
1201
+ ...props
1202
+ });
1203
+ };
1204
+ var field_default = Object.assign(FieldRoot, {
1205
+ Control: FieldControl,
1206
+ Description: FieldDescription,
1207
+ Error: FieldError,
1208
+ Label: FieldLabel,
1209
+ Root: FieldRoot
1210
+ });
1211
+
1212
+ //#endregion
1213
+ //#region src/components/fieldset/fieldset.context.ts
1214
+ const FieldsetContext = (0, react.createContext)(null);
1215
+
1216
+ //#endregion
1217
+ //#region src/components/fieldset/fieldset.variants.ts
1218
+ const fieldsetVariants = (0, tailwind_variants.tv)({ slots: {
1219
+ legend: "fieldset__legend",
1220
+ root: "fieldset"
1221
+ } });
1222
+
1223
+ //#endregion
1224
+ //#region src/components/fieldset/use-fieldset.ts
1225
+ const useFieldset = () => {
1226
+ const context = (0, react.useContext)(FieldsetContext);
1227
+ if (!context) throw new Error("useFieldset must be used within a FieldsetProvider");
1228
+ return context;
1229
+ };
1230
+
1231
+ //#endregion
1232
+ //#region src/components/fieldset/fieldset.tsx
1233
+ const Fieldset = ({ className, ...props }) => {
1234
+ const slots = (0, react.useMemo)(() => fieldsetVariants(), []);
1235
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FieldsetContext, {
1236
+ value: { slots },
1237
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Fieldset.Root, {
1238
+ className: (0, tailwind_variants.cn)(className, slots.root()),
1239
+ ...props
1240
+ })
1241
+ });
1242
+ };
1243
+ const FieldsetLegend = ({ className, ...props }) => {
1244
+ const { slots } = useFieldset();
1245
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Fieldset.Legend, {
1246
+ className: (0, tailwind_variants.cn)(slots.legend(), className),
1247
+ ...props
1248
+ });
1249
+ };
1250
+ var fieldset_default = Object.assign(Fieldset, {
1251
+ Legend: FieldsetLegend,
1252
+ Root: Fieldset
1253
+ });
1254
+
1255
+ //#endregion
1256
+ //#region src/components/form/form.variants.ts
1257
+ const formVariants = (0, tailwind_variants.tv)({ base: "form" });
1258
+
1259
+ //#endregion
1260
+ //#region src/components/form/form.tsx
1261
+ const Form = ({ className, ...props }) => {
1262
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Form, {
1263
+ className: (0, tailwind_variants.cn)(className, formVariants()),
1264
+ ...props
1265
+ });
1266
+ };
1267
+ var form_default = Form;
1268
+
1269
+ //#endregion
1270
+ //#region src/components/icon-button/icon-button.variants.ts
1271
+ const iconButtonVariants = (0, tailwind_variants.tv)({
1272
+ base: "icon-button",
1273
+ defaultVariants: { isIconOnly: true },
1274
+ extend: buttonVariants
1275
+ });
1276
+
1277
+ //#endregion
1278
+ //#region src/components/icon-button/icon-button.tsx
1279
+ const IconButton = ({ className, variant, size, isIconOnly, ...props }) => {
1280
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(button_default, {
1281
+ className: (0, tailwind_variants.cn)(className, iconButtonVariants({
1282
+ isIconOnly,
1283
+ size,
1284
+ variant
1285
+ })),
1286
+ ...props
1287
+ });
1288
+ };
1289
+ var icon_button_default = IconButton;
1290
+
1291
+ //#endregion
1292
+ //#region src/components/input/input.variants.ts
1293
+ const inputVariants = (0, tailwind_variants.tv)({ base: "input" });
1294
+
1295
+ //#endregion
1296
+ //#region src/components/input/input.tsx
1297
+ const Input = ({ className, ...props }) => {
1298
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Input, {
1299
+ className: (0, tailwind_variants.cn)(className, inputVariants()),
1300
+ ...props
1301
+ });
1302
+ };
1303
+ var input_default = Input;
1304
+
1305
+ //#endregion
1306
+ //#region src/components/label/label.variants.ts
1307
+ const labelVariants = (0, tailwind_variants.tv)({ base: "label" });
1308
+
1309
+ //#endregion
1310
+ //#region src/components/label/label.tsx
1311
+ const Label = ({ className, ...props }) => {
1312
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
1313
+ className: (0, tailwind_variants.cn)(className, labelVariants()),
1314
+ ...props
1315
+ });
1316
+ };
1317
+ var label_default = Label;
1318
+
1319
+ //#endregion
1320
+ //#region src/components/link/link.variants.ts
1321
+ const linkVariants = (0, tailwind_variants.tv)({
1322
+ base: "link",
1323
+ defaultVariants: { variant: "no-underline" },
1324
+ variants: { variant: {
1325
+ "no-underline": "link--no-underline",
1326
+ underline: "link--underline"
1327
+ } }
1328
+ });
1329
+
1330
+ //#endregion
1331
+ //#region src/components/link/link.tsx
1332
+ const Link = ({ className, variant, ...props }) => {
1333
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
1334
+ className: (0, tailwind_variants.cn)(className, linkVariants({ variant })),
1335
+ ...props
1336
+ });
1337
+ };
1338
+ var link_default = Link;
1339
+
1340
+ //#endregion
1341
+ //#region src/components/list/list.context.ts
1342
+ const ListContext = (0, react.createContext)(null);
1343
+
1344
+ //#endregion
1345
+ //#region src/components/list/list.variants.ts
1346
+ const listVariants = (0, tailwind_variants.tv)({ slots: {
1347
+ item: "list__item",
1348
+ root: "list"
1349
+ } });
1350
+
1351
+ //#endregion
1352
+ //#region src/components/list/use-list.ts
1353
+ const useList = () => {
1354
+ const context = (0, react.useContext)(ListContext);
1355
+ if (!context) throw new Error("useList must be used within a ListProvider");
1356
+ return context;
1357
+ };
1358
+
1359
+ //#endregion
1360
+ //#region src/components/list/list.tsx
1361
+ const List = ({ className, ...props }) => {
1362
+ const slots = (0, react.useMemo)(() => listVariants(), []);
1363
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ListContext.Provider, {
1364
+ value: { slots },
1365
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
1366
+ className: (0, tailwind_variants.cn)(className, slots.root()),
1367
+ ...props
1368
+ })
1369
+ });
1370
+ };
1371
+ const ListItem = ({ className, ...props }) => {
1372
+ const { slots } = useList();
1373
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
1374
+ className: (0, tailwind_variants.cn)(className, slots.item()),
1375
+ ...props
1376
+ });
1377
+ };
1378
+ var list_default = Object.assign(List, {
1379
+ Item: ListItem,
1380
+ Root: List
1381
+ });
1382
+
1383
+ //#endregion
1384
+ //#region src/components/menu/menu.context.ts
1385
+ const MenuContext = (0, react.createContext)(null);
1386
+
1387
+ //#endregion
1388
+ //#region src/components/menu/menu.variants.ts
1389
+ const menuVariants = (0, tailwind_variants.tv)({ slots: {
1390
+ arrow: "menu__arrow",
1391
+ backdrop: "menu__backdrop",
1392
+ checkboxItem: "menu__checkbox-item",
1393
+ group: "menu__group",
1394
+ groupLabel: "menu__group-label",
1395
+ item: "menu__item",
1396
+ popup: "menu__popup",
1397
+ portal: "menu__portal",
1398
+ positioner: "menu__positioner",
1399
+ radioGroup: "menu__radio-group",
1400
+ radioItem: "menu__radio-item",
1401
+ root: "menu",
1402
+ separator: "menu__separator",
1403
+ submenu: "menu__submenu",
1404
+ submenuTrigger: "menu__submenu__trigger",
1405
+ trigger: "menu__trigger"
1406
+ } });
1407
+
1408
+ //#endregion
1409
+ //#region src/components/menu/use-menu.ts
1410
+ const useMenu = () => {
1411
+ const context = (0, react.useContext)(MenuContext);
1412
+ if (!context) throw new Error("useMenu must be used within a MenuProvider");
1413
+ return context;
1414
+ };
1415
+
1416
+ //#endregion
1417
+ //#region src/components/menu/menu.tsx
1418
+ const Menu = ({ ...props }) => {
1419
+ const slots = (0, react.useMemo)(() => menuVariants(), []);
1420
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuContext.Provider, {
1421
+ value: { slots },
1422
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Menu.Root, { ...props })
1423
+ });
1424
+ };
1425
+ const MenuTrigger = ({ className, ...props }) => {
1426
+ const { slots } = useMenu();
1427
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Menu.Trigger, {
1428
+ className: (0, tailwind_variants.cn)(slots.trigger(), className),
1429
+ ...props
1430
+ });
1431
+ };
1432
+ const MenuPortal = ({ className, ...props }) => {
1433
+ const { slots } = useMenu();
1434
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Menu.Portal, {
1435
+ className: (0, tailwind_variants.cn)(slots.portal(), className),
1436
+ ...props
1437
+ });
1438
+ };
1439
+ const MenuBackdrop = ({ className, ...props }) => {
1440
+ const { slots } = useMenu();
1441
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Menu.Backdrop, {
1442
+ className: (0, tailwind_variants.cn)(slots.backdrop(), className),
1443
+ ...props
1444
+ });
1445
+ };
1446
+ const MenuPositioner = ({ className, ...props }) => {
1447
+ const { slots } = useMenu();
1448
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Menu.Positioner, {
1449
+ className: (0, tailwind_variants.cn)(slots.positioner(), className),
1450
+ ...props
1451
+ });
1452
+ };
1453
+ const MenuPopup = ({ className, ...props }) => {
1454
+ const { slots } = useMenu();
1455
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Menu.Popup, {
1456
+ className: (0, tailwind_variants.cn)(slots.popup(), className),
1457
+ ...props
1458
+ });
1459
+ };
1460
+ const MenuArrow = ({ className, children, ...props }) => {
1461
+ const { slots } = useMenu();
1462
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Menu.Arrow, {
1463
+ className: (0, tailwind_variants.cn)(slots.arrow(), className),
1464
+ ...props,
1465
+ children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideChevronUp, {})
1466
+ });
1467
+ };
1468
+ const MenuItem = ({ className, ...props }) => {
1469
+ const { slots } = useMenu();
1470
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Menu.Item, {
1471
+ className: (0, tailwind_variants.cn)(slots.item(), className),
1472
+ ...props
1473
+ });
1474
+ };
1475
+ const MenuSeparator = ({ className, ...props }) => {
1476
+ const { slots } = useMenu();
1477
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Menu.Separator, {
1478
+ className: (0, tailwind_variants.cn)(slots.separator(), className),
1479
+ ...props
1480
+ });
1481
+ };
1482
+ const MenuGroup = ({ className, ...props }) => {
1483
+ const { slots } = useMenu();
1484
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Menu.Group, {
1485
+ className: (0, tailwind_variants.cn)(slots.group(), className),
1486
+ ...props
1487
+ });
1488
+ };
1489
+ const MenuGroupLabel = ({ className, ...props }) => {
1490
+ const { slots } = useMenu();
1491
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Menu.GroupLabel, {
1492
+ className: (0, tailwind_variants.cn)(slots.groupLabel(), className),
1493
+ ...props
1494
+ });
1495
+ };
1496
+ const MenuRadioGroup = ({ className, ...props }) => {
1497
+ const { slots } = useMenu();
1498
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Menu.RadioGroup, {
1499
+ className: (0, tailwind_variants.cn)(slots.radioGroup(), className),
1500
+ ...props
1501
+ });
1502
+ };
1503
+ const MenuRadioItem = ({ className, ...props }) => {
1504
+ const { slots } = useMenu();
1505
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Menu.RadioItem, {
1506
+ className: (0, tailwind_variants.cn)(slots.radioItem(), className),
1507
+ ...props
1508
+ });
1509
+ };
1510
+ const MenuCheckboxItem = ({ className, ...props }) => {
1511
+ const { slots } = useMenu();
1512
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Menu.CheckboxItem, {
1513
+ className: (0, tailwind_variants.cn)(slots.checkboxItem(), className),
1514
+ ...props
1515
+ });
1516
+ };
1517
+ const MenuSubmenu = ({ ...props }) => {
1518
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Menu.SubmenuRoot, { ...props });
1519
+ };
1520
+ const MenuSubmenuTrigger = ({ className, ...props }) => {
1521
+ const { slots } = useMenu();
1522
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Menu.SubmenuTrigger, {
1523
+ className: (0, tailwind_variants.cn)(slots.submenuTrigger(), className),
1524
+ ...props
1525
+ });
1526
+ };
1527
+ var menu_default = Object.assign(Menu, {
1528
+ Arrow: MenuArrow,
1529
+ Backdrop: MenuBackdrop,
1530
+ CheckboxItem: MenuCheckboxItem,
1531
+ Group: MenuGroup,
1532
+ GroupLabel: MenuGroupLabel,
1533
+ Item: MenuItem,
1534
+ Popup: MenuPopup,
1535
+ Portal: MenuPortal,
1536
+ Positioner: MenuPositioner,
1537
+ RadioGroup: MenuRadioGroup,
1538
+ RadioItem: MenuRadioItem,
1539
+ Root: Menu,
1540
+ Separator: MenuSeparator,
1541
+ Submenu: MenuSubmenu,
1542
+ SubmenuTrigger: MenuSubmenuTrigger,
1543
+ Trigger: MenuTrigger
1544
+ });
1545
+
1546
+ //#endregion
1547
+ //#region src/components/meter/meter.context.ts
1548
+ const MeterContext = (0, react.createContext)(void 0);
1549
+
1550
+ //#endregion
1551
+ //#region src/components/meter/meter.variants.ts
1552
+ const meterVariants = (0, tailwind_variants.tv)({
1553
+ slots: {
1554
+ indicator: "meter__indicator",
1555
+ label: "meter__label",
1556
+ root: "meter",
1557
+ track: "meter__track",
1558
+ value: "meter__value"
1559
+ },
1560
+ variants: {
1561
+ size: {
1562
+ lg: { root: "meter--lg" },
1563
+ md: { root: "meter--md" },
1564
+ sm: { root: "meter--sm" }
1565
+ },
1566
+ variant: {
1567
+ danger: { root: "meter--danger" },
1568
+ primary: { root: "meter--primary" },
1569
+ secondary: { root: "meter--secondary" },
1570
+ success: { root: "meter--success" }
1571
+ }
1572
+ }
1573
+ });
1574
+
1575
+ //#endregion
1576
+ //#region src/components/meter/use-meter.ts
1577
+ const useMeter = () => {
1578
+ const context = (0, react.useContext)(MeterContext);
1579
+ if (!context) throw new Error("useMeter must be used within a MeterProvider");
1580
+ return context;
1581
+ };
1582
+
1583
+ //#endregion
1584
+ //#region src/components/meter/meter.tsx
1585
+ const Meter = ({ className, size, variant, ...props }) => {
1586
+ const slots = (0, react.useMemo)(() => meterVariants({
1587
+ size,
1588
+ variant
1589
+ }), [size, variant]);
1590
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MeterContext, {
1591
+ value: { slots },
1592
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Meter.Root, {
1593
+ className: (0, tailwind_variants.cn)(className, slots.root()),
1594
+ ...props
1595
+ })
1596
+ });
1597
+ };
1598
+ const MeterLabel = ({ className, ...props }) => {
1599
+ const { slots } = useMeter();
1600
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Meter.Label, {
1601
+ className: (0, tailwind_variants.cn)(className, slots.label()),
1602
+ ...props
1603
+ });
1604
+ };
1605
+ const MeterValue = ({ className, ...props }) => {
1606
+ const { slots } = useMeter();
1607
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Meter.Value, {
1608
+ className: (0, tailwind_variants.cn)(className, slots.value()),
1609
+ ...props
1610
+ });
1611
+ };
1612
+ const MeterTrack = ({ className, ...props }) => {
1613
+ const { slots } = useMeter();
1614
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Meter.Track, {
1615
+ className: (0, tailwind_variants.cn)(className, slots.track()),
1616
+ ...props
1617
+ });
1618
+ };
1619
+ const MeterIndicator = ({ className, ...props }) => {
1620
+ const { slots } = useMeter();
1621
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Meter.Indicator, {
1622
+ className: (0, tailwind_variants.cn)(className, slots.indicator()),
1623
+ ...props
1624
+ });
1625
+ };
1626
+ var meter_default = Object.assign(Meter, {
1627
+ Indicator: MeterIndicator,
1628
+ Label: MeterLabel,
1629
+ Root: Meter,
1630
+ Track: MeterTrack,
1631
+ Value: MeterValue
1632
+ });
1633
+
1634
+ //#endregion
1635
+ //#region src/components/separator/separator.variants.ts
1636
+ const separatorVariants = (0, tailwind_variants.tv)({
1637
+ base: "separator",
1638
+ defaultVariants: { orientation: "horizontal" },
1639
+ variants: { orientation: {
1640
+ horizontal: "separator--horizontal",
1641
+ vertical: "separator--vertical"
1642
+ } }
1643
+ });
1644
+
1645
+ //#endregion
1646
+ //#region src/components/separator/separator.tsx
1647
+ const Separator = ({ className, orientation, ...props }) => {
1648
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Separator, {
1649
+ className: (0, tailwind_variants.cn)(className, separatorVariants({ orientation })),
1650
+ ...props
1651
+ });
1652
+ };
1653
+ var separator_default = Separator;
1654
+
1655
+ //#endregion
1656
+ //#region src/components/navbar/navbar.context.ts
1657
+ const NavbarContext = (0, react.createContext)(null);
1658
+
1659
+ //#endregion
1660
+ //#region src/components/navbar/navbar.variants.ts
1661
+ const navbarVariants = (0, tailwind_variants.tv)({ slots: {
1662
+ container: "navbar__container",
1663
+ content: "navbar__content",
1664
+ list: "navbar__list",
1665
+ listItem: "navbar__list-item",
1666
+ menu: "navbar__menu",
1667
+ menuItem: "navbar__menu-item",
1668
+ root: "navbar",
1669
+ toggle: "navbar__toggle"
1670
+ } });
1671
+
1672
+ //#endregion
1673
+ //#region src/components/navbar/use-navbar.ts
1674
+ const useNavbar = () => {
1675
+ const context = react.default.useContext(NavbarContext);
1676
+ if (!context) throw new Error("useNavbar must be used within a NavbarProvider");
1677
+ return context;
1678
+ };
1679
+
1680
+ //#endregion
1681
+ //#region src/components/navbar/navbar.tsx
1682
+ const Navbar = ({ className, isOpen, onOpenChange, ...props }) => {
1683
+ const slots = (0, react.useMemo)(() => navbarVariants(), []);
1684
+ const [internalOpen, setInternalOpen] = (0, react.useState)(false);
1685
+ const open = isOpen ?? internalOpen;
1686
+ const handleOpenChange = (0, react.useCallback)((next) => {
1687
+ if (isOpen === void 0) setInternalOpen(next);
1688
+ onOpenChange?.(next);
1689
+ }, [isOpen, onOpenChange]);
1690
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(NavbarContext.Provider, {
1691
+ value: {
1692
+ isOpen: open,
1693
+ onOpenChange: handleOpenChange,
1694
+ slots
1695
+ },
1696
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("header", {
1697
+ className: (0, tailwind_variants.cn)(slots.root(), className),
1698
+ ...props
1699
+ })
1700
+ });
1701
+ };
1702
+ const NavbarContainer = ({ className, ...props }) => {
1703
+ const { slots } = useNavbar();
1704
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("nav", {
1705
+ className: (0, tailwind_variants.cn)(slots.container(), className),
1706
+ ...props
1707
+ });
1708
+ };
1709
+ const NavbarContent = ({ className, ...props }) => {
1710
+ const { slots } = useNavbar();
1711
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1712
+ className: (0, tailwind_variants.cn)(slots.content(), className),
1713
+ ...props
1714
+ });
1715
+ };
1716
+ const NavbarList = ({ className, ...props }) => {
1717
+ const { slots } = useNavbar();
1718
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
1719
+ className: (0, tailwind_variants.cn)(slots.list(), className),
1720
+ ...props
1721
+ });
1722
+ };
1723
+ const NavbarListItem = ({ className, ...props }) => {
1724
+ const { slots } = useNavbar();
1725
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
1726
+ className: (0, tailwind_variants.cn)(slots.listItem(), className),
1727
+ ...props
1728
+ });
1729
+ };
1730
+ const NavbarToggle = ({ className, ...props }) => {
1731
+ const { slots, isOpen, onOpenChange } = useNavbar();
1732
+ const Icon = isOpen ? lucide_react.LucideX : lucide_react.LucideMenu;
1733
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
1734
+ className: (0, tailwind_variants.cn)(className, slots.toggle()),
1735
+ onClick: () => onOpenChange(!isOpen),
1736
+ ...props,
1737
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, { className: "size-5" })
1738
+ });
1739
+ };
1740
+ const NavbarMenu = ({ className, header, ...props }) => {
1741
+ const { slots, isOpen, onOpenChange } = useNavbar();
1742
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(drawer_default, {
1743
+ onOpenChange,
1744
+ open: isOpen,
1745
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(drawer_default.Portal, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(drawer_default.Backdrop, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(drawer_default.Viewport, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(drawer_default.Popup, { children: [
1746
+ header,
1747
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(drawer_default.Close, {}),
1748
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(separator_default, {}),
1749
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
1750
+ className: (0, tailwind_variants.cn)(slots.menu(), className),
1751
+ ...props
1752
+ })
1753
+ ] }) })] })
1754
+ });
1755
+ };
1756
+ const NavbarMenuItem = ({ className, ...props }) => {
1757
+ const { slots } = useNavbar();
1758
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
1759
+ className: (0, tailwind_variants.cn)(slots.menuItem(), className),
1760
+ ...props
1761
+ });
1762
+ };
1763
+ var navbar_default = Object.assign(Navbar, {
1764
+ Container: NavbarContainer,
1765
+ Content: NavbarContent,
1766
+ List: NavbarList,
1767
+ ListItem: NavbarListItem,
1768
+ Menu: NavbarMenu,
1769
+ MenuItem: NavbarMenuItem,
1770
+ Root: Navbar,
1771
+ Toggle: NavbarToggle
1772
+ });
1773
+
1774
+ //#endregion
1775
+ //#region src/components/navigation-menu/navigation-menu.context.ts
1776
+ const NavigationMenuContext = (0, react.createContext)(null);
1777
+
1778
+ //#endregion
1779
+ //#region src/components/navigation-menu/navigation-menu.variants.ts
1780
+ /** biome-ignore-all assist/source/useSortedKeys: <> */
1781
+ const navigationMenuVariants = (0, tailwind_variants.tv)({ slots: {
1782
+ root: "navigation-menu",
1783
+ list: "navigation-menu__list",
1784
+ item: "navigation-menu__item",
1785
+ trigger: "navigation-menu__trigger",
1786
+ icon: "navigation-menu__icon",
1787
+ content: "navigation-menu__content",
1788
+ link: "navigation-menu__link",
1789
+ portal: "navigation-menu__portal",
1790
+ backdrop: "navigation-menu__backdrop",
1791
+ positioner: "navigation-menu__positioner",
1792
+ popup: "navigation-menu__popup",
1793
+ arrow: "navigation-menu__arrow",
1794
+ viewport: "navigation-menu__viewport"
1795
+ } });
1796
+
1797
+ //#endregion
1798
+ //#region src/components/navigation-menu/use-navigation-menu.ts
1799
+ const useNavigationMenu = () => {
1800
+ const context = (0, react.useContext)(NavigationMenuContext);
1801
+ if (!context) throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");
1802
+ return context;
1803
+ };
1804
+
1805
+ //#endregion
1806
+ //#region src/components/navigation-menu/navigation-menu.tsx
1807
+ const NavigationMenu = ({ className, ...props }) => {
1808
+ const slots = (0, react.useMemo)(() => navigationMenuVariants(), []);
1809
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(NavigationMenuContext.Provider, {
1810
+ value: { slots },
1811
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.NavigationMenu.Root, {
1812
+ className: (0, tailwind_variants.cn)(className, slots.root()),
1813
+ ...props
1814
+ })
1815
+ });
1816
+ };
1817
+ const NavigationMenuList = ({ className, ...props }) => {
1818
+ const { slots } = useNavigationMenu();
1819
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.NavigationMenu.List, {
1820
+ className: (0, tailwind_variants.cn)(slots.list(), className),
1821
+ ...props
1822
+ });
1823
+ };
1824
+ const NavigationMenuItem = ({ className, ...props }) => {
1825
+ const { slots } = useNavigationMenu();
1826
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.NavigationMenu.Item, {
1827
+ className: (0, tailwind_variants.cn)(slots.item(), className),
1828
+ ...props
1829
+ });
1830
+ };
1831
+ const NavigationMenuTrigger = ({ className, children, ...props }) => {
1832
+ const { slots } = useNavigationMenu();
1833
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_base_ui_react.NavigationMenu.Trigger, {
1834
+ className: (0, tailwind_variants.cn)(slots.trigger(), className),
1835
+ ...props,
1836
+ children: [children, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.NavigationMenu.Icon, {
1837
+ className: slots.icon(),
1838
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronDown, { className: "h-4 w-4" })
1839
+ })]
1840
+ });
1841
+ };
1842
+ const NavigationMenuIcon = ({ className, children, ...props }) => {
1843
+ const { slots } = useNavigationMenu();
1844
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.NavigationMenu.Icon, {
1845
+ className: (0, tailwind_variants.cn)(slots.icon(), className),
1846
+ ...props,
1847
+ children: children || /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronDown, {})
1848
+ });
1849
+ };
1850
+ const NavigationMenuContent = ({ className, ...props }) => {
1851
+ const { slots } = useNavigationMenu();
1852
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.NavigationMenu.Content, {
1853
+ className: (0, tailwind_variants.cn)(slots.content(), className),
1854
+ ...props
1855
+ });
1856
+ };
1857
+ const NavigationMenuLink = ({ className, ...props }) => {
1858
+ const { slots } = useNavigationMenu();
1859
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.NavigationMenu.Link, {
1860
+ className: (0, tailwind_variants.cn)(slots.link(), className),
1861
+ ...props
1862
+ });
1863
+ };
1864
+ const NavigationMenuPortal = ({ ...props }) => {
1865
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.NavigationMenu.Portal, { ...props });
1866
+ };
1867
+ const NavigationMenuBackdrop = ({ className, ...props }) => {
1868
+ const { slots } = useNavigationMenu();
1869
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.NavigationMenu.Backdrop, {
1870
+ className: (0, tailwind_variants.cn)(slots.backdrop(), className),
1871
+ ...props
1872
+ });
1873
+ };
1874
+ const NavigationMenuPositioner = ({ className, ...props }) => {
1875
+ const { slots } = useNavigationMenu();
1876
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.NavigationMenu.Positioner, {
1877
+ className: (0, tailwind_variants.cn)(slots.positioner(), className),
1878
+ ...props
1879
+ });
1880
+ };
1881
+ const NavigationMenuPopup = ({ className, ...props }) => {
1882
+ const { slots } = useNavigationMenu();
1883
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.NavigationMenu.Popup, {
1884
+ className: (0, tailwind_variants.cn)(slots.popup(), className),
1885
+ ...props
1886
+ });
1887
+ };
1888
+ const NavigationMenuArrow = ({ className, ...props }) => {
1889
+ const { slots } = useNavigationMenu();
1890
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.NavigationMenu.Arrow, {
1891
+ className: (0, tailwind_variants.cn)(slots.arrow(), className),
1892
+ ...props
1893
+ });
1894
+ };
1895
+ const NavigationMenuViewport = ({ className, ...props }) => {
1896
+ const { slots } = useNavigationMenu();
1897
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.NavigationMenu.Viewport, {
1898
+ className: (0, tailwind_variants.cn)(slots.viewport(), className),
1899
+ ...props
1900
+ });
1901
+ };
1902
+ var navigation_menu_default = Object.assign(NavigationMenu, {
1903
+ Arrow: NavigationMenuArrow,
1904
+ Backdrop: NavigationMenuBackdrop,
1905
+ Content: NavigationMenuContent,
1906
+ Icon: NavigationMenuIcon,
1907
+ Item: NavigationMenuItem,
1908
+ Link: NavigationMenuLink,
1909
+ List: NavigationMenuList,
1910
+ Popup: NavigationMenuPopup,
1911
+ Portal: NavigationMenuPortal,
1912
+ Positioner: NavigationMenuPositioner,
1913
+ Root: NavigationMenu,
1914
+ Trigger: NavigationMenuTrigger,
1915
+ Viewport: NavigationMenuViewport
1916
+ });
1917
+
1918
+ //#endregion
1919
+ //#region src/components/popover/popover.context.ts
1920
+ const PopoverContext = (0, react.createContext)(null);
1921
+
1922
+ //#endregion
1923
+ //#region src/components/popover/popover.variants.ts
1924
+ const popoverVariants = (0, tailwind_variants.tv)({ slots: {
1925
+ arrow: "popover__arrow",
1926
+ backdrop: "popover__backdrop",
1927
+ close: "popover__close",
1928
+ content: "popover__content",
1929
+ description: "popover__description",
1930
+ popup: "popover__popup",
1931
+ portal: "popover__portal",
1932
+ positioner: "popover__positioner",
1933
+ root: "popover",
1934
+ title: "popover__title",
1935
+ trigger: "popover__trigger",
1936
+ viewport: "popover__viewport"
1937
+ } });
1938
+
1939
+ //#endregion
1940
+ //#region src/components/popover/use-popover.ts
1941
+ const usePopover = () => {
1942
+ const context = (0, react.useContext)(PopoverContext);
1943
+ if (!context) throw new Error("usePopover must be used within a PopoverProvider");
1944
+ return context;
1945
+ };
1946
+
1947
+ //#endregion
1948
+ //#region src/components/popover/popover.tsx
1949
+ const Popover = ({ ...props }) => {
1950
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PopoverContext, {
1951
+ value: { slots: (0, react.useMemo)(() => popoverVariants({}), []) },
1952
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Root, { ...props })
1953
+ });
1954
+ };
1955
+ const PopoverTrigger = ({ className, ...props }) => {
1956
+ const { slots } = usePopover();
1957
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Trigger, {
1958
+ className: (0, tailwind_variants.cn)(className, slots.trigger()),
1959
+ ...props
1960
+ });
1961
+ };
1962
+ const PopoverPortal = ({ className, ...props }) => {
1963
+ const { slots } = usePopover();
1964
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Portal, {
1965
+ className: (0, tailwind_variants.cn)(className, slots.portal()),
1966
+ ...props
1967
+ });
1968
+ };
1969
+ const PopoverBackdrop = ({ className, ...props }) => {
1970
+ const { slots } = usePopover();
1971
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Backdrop, {
1972
+ className: (0, tailwind_variants.cn)(className, slots.backdrop()),
1973
+ ...props
1974
+ });
1975
+ };
1976
+ const PopoverPositioner = ({ className, ...props }) => {
1977
+ const { slots } = usePopover();
1978
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Positioner, {
1979
+ className: (0, tailwind_variants.cn)(className, slots.positioner()),
1980
+ ...props
1981
+ });
1982
+ };
1983
+ const PopoverPopup = ({ className, ...props }) => {
1984
+ const { slots } = usePopover();
1985
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Popup, {
1986
+ className: (0, tailwind_variants.cn)(className, slots.popup()),
1987
+ ...props
1988
+ });
1989
+ };
1990
+ const PopoverArrow = ({ className, ...props }) => {
1991
+ const { slots } = usePopover();
1992
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Arrow, {
1993
+ className: (0, tailwind_variants.cn)(className, slots.arrow()),
1994
+ ...props
1995
+ });
1996
+ };
1997
+ const PopoverViewport = ({ className, ...props }) => {
1998
+ const { slots } = usePopover();
1999
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Viewport, {
2000
+ className: (0, tailwind_variants.cn)(className, slots.viewport()),
2001
+ ...props
2002
+ });
2003
+ };
2004
+ const PopoverTitle = ({ className, ...props }) => {
2005
+ const { slots } = usePopover();
2006
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Title, {
2007
+ className: (0, tailwind_variants.cn)(className, slots.title()),
2008
+ ...props
2009
+ });
2010
+ };
2011
+ const PopoverDescription = ({ className, ...props }) => {
2012
+ const { slots } = usePopover();
2013
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Description, {
2014
+ className: (0, tailwind_variants.cn)(className, slots.description()),
2015
+ ...props
2016
+ });
2017
+ };
2018
+ const PopoverClose = ({ className, children, ...props }) => {
2019
+ const { slots } = usePopover();
2020
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Close, {
2021
+ className: (0, tailwind_variants.cn)(className, slots.close()),
2022
+ ...props,
2023
+ children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideX, {})
2024
+ });
2025
+ };
2026
+ var popover_default = Object.assign(Popover, {
2027
+ Arrow: PopoverArrow,
2028
+ Backdrop: PopoverBackdrop,
2029
+ Close: PopoverClose,
2030
+ Description: PopoverDescription,
2031
+ Popup: PopoverPopup,
2032
+ Portal: PopoverPortal,
2033
+ Positioner: PopoverPositioner,
2034
+ Root: Popover,
2035
+ Title: PopoverTitle,
2036
+ Trigger: PopoverTrigger,
2037
+ Viewport: PopoverViewport
2038
+ });
2039
+
2040
+ //#endregion
2041
+ //#region src/components/progress/progress.context.ts
2042
+ const ProgressContext = (0, react.createContext)(null);
2043
+
2044
+ //#endregion
2045
+ //#region src/components/progress/progress.variants.ts
2046
+ const progressVariants = (0, tailwind_variants.tv)({
2047
+ defaultVariants: {
2048
+ size: "md",
2049
+ variant: "primary"
2050
+ },
2051
+ slots: {
2052
+ indicator: "progress__indicator",
2053
+ label: "progress__label",
2054
+ root: "progress",
2055
+ track: "progress__track",
2056
+ value: "progress__value"
2057
+ },
2058
+ variants: {
2059
+ size: {
2060
+ lg: { root: "progress--lg" },
2061
+ md: { root: "progress--md" },
2062
+ sm: { root: "progress--sm" }
2063
+ },
2064
+ variant: {
2065
+ danger: { root: "progress--danger" },
2066
+ primary: { root: "progress--primary" },
2067
+ secondary: { root: "progress--secondary" },
2068
+ success: { root: "progress--success" }
2069
+ }
2070
+ }
2071
+ });
2072
+
2073
+ //#endregion
2074
+ //#region src/components/progress/use-progress.ts
2075
+ const useProgress = () => {
2076
+ const context = (0, react.useContext)(ProgressContext);
2077
+ if (!context) throw new Error("useProgress must be used within a ProgressProvider");
2078
+ return context;
2079
+ };
2080
+
2081
+ //#endregion
2082
+ //#region src/components/progress/progress.tsx
2083
+ const Progress = ({ className, variant, size, ...props }) => {
2084
+ const slots = (0, react.useMemo)(() => progressVariants({
2085
+ size,
2086
+ variant
2087
+ }), [variant, size]);
2088
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ProgressContext, {
2089
+ value: { slots },
2090
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Progress.Root, {
2091
+ className: (0, tailwind_variants.cn)(className, slots.root()),
2092
+ ...props
2093
+ })
2094
+ });
2095
+ };
2096
+ const ProgressLabel = ({ className, ...props }) => {
2097
+ const { slots } = useProgress();
2098
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Progress.Label, {
2099
+ className: (0, tailwind_variants.cn)(className, slots.label()),
2100
+ ...props
2101
+ });
2102
+ };
2103
+ const ProgressValue = ({ className, ...props }) => {
2104
+ const { slots } = useProgress();
2105
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Progress.Value, {
2106
+ className: (0, tailwind_variants.cn)(className, slots.value()),
2107
+ ...props
2108
+ });
2109
+ };
2110
+ const ProgressTrack = ({ className, ...props }) => {
2111
+ const { slots } = useProgress();
2112
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Progress.Track, {
2113
+ className: (0, tailwind_variants.cn)(className, slots.track()),
2114
+ ...props
2115
+ });
2116
+ };
2117
+ const ProgressIndicator = ({ className, ...props }) => {
2118
+ const { slots } = useProgress();
2119
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Progress.Indicator, {
2120
+ className: (0, tailwind_variants.cn)(className, slots.indicator()),
2121
+ ...props
2122
+ });
2123
+ };
2124
+ var progress_default = Object.assign(Progress, {
2125
+ Indicator: ProgressIndicator,
2126
+ Label: ProgressLabel,
2127
+ Root: Progress,
2128
+ Track: ProgressTrack,
2129
+ Value: ProgressValue
2130
+ });
2131
+
2132
+ //#endregion
2133
+ //#region src/components/radio/radio.context.ts
2134
+ const RadioContext = (0, react.createContext)(null);
2135
+
2136
+ //#endregion
2137
+ //#region src/components/radio/radio.variants.ts
2138
+ const radioVariants = (0, tailwind_variants.tv)({ slots: {
2139
+ indicator: "radio__indicator",
2140
+ root: "radio"
2141
+ } });
2142
+
2143
+ //#endregion
2144
+ //#region src/components/radio/use-radio.ts
2145
+ const useRadio = () => {
2146
+ const context = (0, react.useContext)(RadioContext);
2147
+ if (!context) throw new Error("useRadio must be used within a RadioProvider");
2148
+ return context;
2149
+ };
2150
+
2151
+ //#endregion
2152
+ //#region src/components/radio/radio.tsx
2153
+ const Radio = ({ className, ...props }) => {
2154
+ const slots = (0, react.useMemo)(() => radioVariants({}), []);
2155
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RadioContext, {
2156
+ value: { slots },
2157
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Radio.Root, {
2158
+ className: (0, tailwind_variants.cn)(slots.root(), className),
2159
+ ...props
2160
+ })
2161
+ });
2162
+ };
2163
+ const RadioIndicator = ({ className, ...props }) => {
2164
+ const { slots } = useRadio();
2165
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Radio.Indicator, {
2166
+ className: (0, tailwind_variants.cn)(slots.indicator(), className),
2167
+ ...props
2168
+ });
2169
+ };
2170
+ var radio_default = Object.assign(Radio, {
2171
+ Indicator: RadioIndicator,
2172
+ Root: Radio
2173
+ });
2174
+
2175
+ //#endregion
2176
+ //#region src/components/radio-group/radio-group.variants.ts
2177
+ const radioGroupVariants = (0, tailwind_variants.tv)({ base: "radio-group" });
2178
+
2179
+ //#endregion
2180
+ //#region src/components/radio-group/radio-group.tsx
2181
+ const RadioGroup = ({ className, ...props }) => {
2182
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.RadioGroup, {
2183
+ className: (0, tailwind_variants.cn)(className, (0, react.useMemo)(() => radioGroupVariants(), [])),
2184
+ ...props
2185
+ });
2186
+ };
2187
+ var radio_group_default = RadioGroup;
2188
+
2189
+ //#endregion
2190
+ //#region src/components/select/select.context.ts
2191
+ const SelectContext = (0, react.createContext)(null);
2192
+
2193
+ //#endregion
2194
+ //#region src/components/select/select.variants.ts
2195
+ /** biome-ignore-all assist/source/useSortedKeys: believe me its better */
2196
+ const selectVariants = (0, tailwind_variants.tv)({ slots: {
2197
+ root: "select",
2198
+ trigger: "select__trigger",
2199
+ value: "select__value",
2200
+ icon: "select__icon",
2201
+ portal: "select__portal",
2202
+ backdrop: "select__backdrop",
2203
+ positioner: "select__positioner",
2204
+ popup: "select__popup",
2205
+ arrow: "select__arrow",
2206
+ list: "select__list",
2207
+ item: "select__item",
2208
+ itemText: "select__item-text",
2209
+ itemIndicator: "select__item-indicator",
2210
+ separator: "select__separator",
2211
+ group: "select__group",
2212
+ groupLabel: "select__group-label"
2213
+ } });
2214
+
2215
+ //#endregion
2216
+ //#region src/components/select/use-select.ts
2217
+ const useSelect = () => {
2218
+ const context = (0, react.useContext)(SelectContext);
2219
+ if (!context) throw new Error("useSelect must be used within a SelectProvider");
2220
+ return context;
2221
+ };
2222
+
2223
+ //#endregion
2224
+ //#region src/components/select/select.tsx
2225
+ const Select = ({ ...props }) => {
2226
+ const slots = (0, react.useMemo)(() => selectVariants(), []);
2227
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SelectContext.Provider, {
2228
+ value: { slots },
2229
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Select.Root, { ...props })
2230
+ });
2231
+ };
2232
+ const SelectTrigger = ({ className, ...props }) => {
2233
+ const { slots } = useSelect();
2234
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Select.Trigger, {
2235
+ className: (0, tailwind_variants.cn)(slots.trigger(), className),
2236
+ ...props
2237
+ });
2238
+ };
2239
+ const SelectIcon = ({ className, children, ...props }) => {
2240
+ const { slots } = useSelect();
2241
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Select.Icon, {
2242
+ className: (0, tailwind_variants.cn)(slots.icon(), className),
2243
+ ...props,
2244
+ children: children || /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronsUpDown, {})
2245
+ });
2246
+ };
2247
+ const SelectValue = ({ className, ...props }) => {
2248
+ const { slots } = useSelect();
2249
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Select.Value, {
2250
+ className: (0, tailwind_variants.cn)(slots.value(), className),
2251
+ ...props
2252
+ });
2253
+ };
2254
+ const SelectPortal = ({ ...props }) => {
2255
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Select.Portal, { ...props });
2256
+ };
2257
+ const SelectBackdrop = ({ className, ...props }) => {
2258
+ const { slots } = useSelect();
2259
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Select.Backdrop, {
2260
+ className: (0, tailwind_variants.cn)(slots.backdrop(), className),
2261
+ ...props
2262
+ });
2263
+ };
2264
+ const SelectPositioner = ({ className, ...props }) => {
2265
+ const { slots } = useSelect();
2266
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Select.Positioner, {
2267
+ className: (0, tailwind_variants.cn)(slots.positioner(), className),
2268
+ ...props
2269
+ });
2270
+ };
2271
+ const SelectPopup = ({ className, ...props }) => {
2272
+ const { slots } = useSelect();
2273
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Select.Popup, {
2274
+ className: (0, tailwind_variants.cn)(slots.popup(), className),
2275
+ ...props
2276
+ });
2277
+ };
2278
+ const SelectArrow = ({ className, ...props }) => {
2279
+ const { slots } = useSelect();
2280
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Select.Arrow, {
2281
+ className: (0, tailwind_variants.cn)(slots.arrow(), className),
2282
+ ...props
2283
+ });
2284
+ };
2285
+ const SelectList = ({ className, ...props }) => {
2286
+ const { slots } = useSelect();
2287
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Select.List, {
2288
+ className: (0, tailwind_variants.cn)(slots.list(), className),
2289
+ ...props
2290
+ });
2291
+ };
2292
+ const SelectItemIndicator = ({ className, children, ...props }) => {
2293
+ const { slots } = useSelect();
2294
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Select.ItemIndicator, {
2295
+ className: (0, tailwind_variants.cn)(slots.itemIndicator(), className),
2296
+ ...props,
2297
+ children: children || /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Check, {})
2298
+ });
2299
+ };
2300
+ const SelectItemText = ({ className, ...props }) => {
2301
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Select.ItemText, {
2302
+ className,
2303
+ ...props
2304
+ });
2305
+ };
2306
+ const SelectItem = ({ className, ...props }) => {
2307
+ const { slots } = useSelect();
2308
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Select.Item, {
2309
+ className: (0, tailwind_variants.cn)(slots.item(), className),
2310
+ ...props
2311
+ });
2312
+ };
2313
+ const SelectGroup = ({ className, ...props }) => {
2314
+ const { slots } = useSelect();
2315
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Select.Group, {
2316
+ className: (0, tailwind_variants.cn)(slots.group(), className),
2317
+ ...props
2318
+ });
2319
+ };
2320
+ const SelectGroupLabel = ({ className, ...props }) => {
2321
+ const { slots } = useSelect();
2322
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Select.GroupLabel, {
2323
+ className: (0, tailwind_variants.cn)(slots.groupLabel(), className),
2324
+ ...props
2325
+ });
2326
+ };
2327
+ const SelectSeparator = ({ className, ...props }) => {
2328
+ const { slots } = useSelect();
2329
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Select.Separator, {
2330
+ className: (0, tailwind_variants.cn)(slots.separator(), className),
2331
+ ...props
2332
+ });
2333
+ };
2334
+ var select_default = Object.assign(Select, {
2335
+ Arrow: SelectArrow,
2336
+ Backdrop: SelectBackdrop,
2337
+ Group: SelectGroup,
2338
+ GroupLabel: SelectGroupLabel,
2339
+ Icon: SelectIcon,
2340
+ Item: SelectItem,
2341
+ ItemIndicator: SelectItemIndicator,
2342
+ ItemText: SelectItemText,
2343
+ List: SelectList,
2344
+ Popup: SelectPopup,
2345
+ Portal: SelectPortal,
2346
+ Positioner: SelectPositioner,
2347
+ Separator: SelectSeparator,
2348
+ Trigger: SelectTrigger,
2349
+ Value: SelectValue
2350
+ });
2351
+
2352
+ //#endregion
2353
+ //#region src/components/sidebar/sidebar.context.ts
2354
+ const SidebarContext = (0, react.createContext)(null);
2355
+
2356
+ //#endregion
2357
+ //#region src/components/sidebar/sidebar.variants.ts
2358
+ const sidebarVariants = (0, tailwind_variants.tv)({ slots: {
2359
+ content: "sidebar__content",
2360
+ footer: "sidebar__footer",
2361
+ header: "sidebar__header",
2362
+ menu: "sidebar__menu",
2363
+ menuItem: "sidebar__menu-item",
2364
+ menuLabel: "sidebar__menu-label",
2365
+ outlet: "sidebar__outlet",
2366
+ panel: "sidebar__panel",
2367
+ root: "sidebar",
2368
+ trigger: "sidebar__trigger"
2369
+ } });
2370
+
2371
+ //#endregion
2372
+ //#region src/components/sidebar/use-sidebar.ts
2373
+ const useSidebar = () => {
2374
+ const context = (0, react.useContext)(SidebarContext);
2375
+ if (!context) throw new Error("useSidebar must be used within a SidebarProvider");
2376
+ return context;
2377
+ };
2378
+
2379
+ //#endregion
2380
+ //#region src/components/sidebar/sidebar.tsx
2381
+ const Sidebar = ({ className, isOpen, onOpenChange, ...props }) => {
2382
+ const [internalIsOpen, setInternalIsOpen] = react.default.useState(false);
2383
+ const isOpenState = isOpen !== void 0 ? isOpen : internalIsOpen;
2384
+ const handleOpenChange = onOpenChange || setInternalIsOpen;
2385
+ const slots = (0, react.useMemo)(() => sidebarVariants({ className }), [className]);
2386
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SidebarContext, {
2387
+ value: {
2388
+ isOpen: isOpenState,
2389
+ onOpenChange: handleOpenChange,
2390
+ slots
2391
+ },
2392
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2393
+ className: slots.root(),
2394
+ "data-open": isOpenState,
2395
+ ...props
2396
+ })
2397
+ });
2398
+ };
2399
+ const SidebarPanel = ({ className, ...props }) => {
2400
+ const { slots } = useSidebar();
2401
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("aside", {
2402
+ className: (0, tailwind_variants.cn)(slots.panel(), className),
2403
+ ...props
2404
+ });
2405
+ };
2406
+ const SidebarHeader = ({ className, ...props }) => {
2407
+ const { slots } = useSidebar();
2408
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("header", {
2409
+ className: (0, tailwind_variants.cn)(slots.header(), className),
2410
+ ...props
2411
+ });
2412
+ };
2413
+ const SidebarContent = ({ className, ...props }) => {
2414
+ const { slots } = useSidebar();
2415
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2416
+ className: (0, tailwind_variants.cn)(slots.content(), className),
2417
+ ...props
2418
+ });
2419
+ };
2420
+ const SidebarFooter = ({ className, ...props }) => {
2421
+ const { slots } = useSidebar();
2422
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("footer", {
2423
+ className: (0, tailwind_variants.cn)(slots.footer(), className),
2424
+ ...props
2425
+ });
2426
+ };
2427
+ const SidebarTrigger = ({ className, children, ...props }) => {
2428
+ const { slots, isOpen, onOpenChange } = useSidebar();
2429
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
2430
+ "aria-expanded": isOpen,
2431
+ className: (0, tailwind_variants.cn)(slots.trigger(), className),
2432
+ onClick: () => onOpenChange(!isOpen),
2433
+ ...props,
2434
+ children: children ?? (isOpen ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucidePanelLeftClose, {}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucidePanelLeftOpen, {}))
2435
+ });
2436
+ };
2437
+ const SidebarOutlet = ({ className, ...props }) => {
2438
+ const { slots } = useSidebar();
2439
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2440
+ className: (0, tailwind_variants.cn)(slots.outlet(), className),
2441
+ ...props
2442
+ });
2443
+ };
2444
+ const SidebarMenu = ({ className, ...props }) => {
2445
+ const { slots } = useSidebar();
2446
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("nav", {
2447
+ className: (0, tailwind_variants.cn)(slots.menu(), className),
2448
+ ...props
2449
+ });
2450
+ };
2451
+ const SidebarMenuItem = ({ className, ...props }) => {
2452
+ const { slots } = useSidebar();
2453
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
2454
+ className: (0, tailwind_variants.cn)(slots.menuItem(), className),
2455
+ ...props
2456
+ });
2457
+ };
2458
+ const SidebarMenuLabel = ({ className, ...props }) => {
2459
+ const { slots } = useSidebar();
2460
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2461
+ className: (0, tailwind_variants.cn)(slots.menuLabel(), className),
2462
+ ...props
2463
+ });
2464
+ };
2465
+ var sidebar_default = Object.assign(Sidebar, {
2466
+ Content: SidebarContent,
2467
+ Footer: SidebarFooter,
2468
+ Header: SidebarHeader,
2469
+ Menu: SidebarMenu,
2470
+ MenuItem: SidebarMenuItem,
2471
+ MenuLabel: SidebarMenuLabel,
2472
+ Outlet: SidebarOutlet,
2473
+ Panel: SidebarPanel,
2474
+ Root: Sidebar,
2475
+ Trigger: SidebarTrigger
2476
+ });
2477
+
2478
+ //#endregion
2479
+ //#region src/components/slider/slider.context.ts
2480
+ const SliderContext = (0, react.createContext)(null);
2481
+
2482
+ //#endregion
2483
+ //#region src/components/slider/slider.variants.ts
2484
+ const sliderVariants = (0, tailwind_variants.tv)({ slots: {
2485
+ control: "slider__control",
2486
+ indicator: "slider__indicator",
2487
+ root: "slider",
2488
+ thumb: "slider__thumb",
2489
+ track: "slider__track",
2490
+ value: "slider__value"
2491
+ } });
2492
+
2493
+ //#endregion
2494
+ //#region src/components/slider/use-slider.tsx
2495
+ const useSlider = () => {
2496
+ const context = (0, react.useContext)(SliderContext);
2497
+ if (!context) throw new Error("useSlider must be used within a SliderProvider");
2498
+ return context;
2499
+ };
2500
+
2501
+ //#endregion
2502
+ //#region src/components/slider/slider.tsx
2503
+ const Slider = ({ className, ...props }) => {
2504
+ const slots = (0, react.useMemo)(() => sliderVariants(), []);
2505
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SliderContext, {
2506
+ value: { slots },
2507
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Slider.Root, {
2508
+ className: (0, tailwind_variants.cn)(className, slots.root()),
2509
+ ...props
2510
+ })
2511
+ });
2512
+ };
2513
+ const SliderValue = ({ className, ...props }) => {
2514
+ const { slots } = useSlider();
2515
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Slider.Value, {
2516
+ className: (0, tailwind_variants.cn)(className, slots.value()),
2517
+ ...props
2518
+ });
2519
+ };
2520
+ const SliderControl = ({ className, ...props }) => {
2521
+ const { slots } = useSlider();
2522
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Slider.Control, {
2523
+ className: (0, tailwind_variants.cn)(className, slots.control()),
2524
+ ...props
2525
+ });
2526
+ };
2527
+ const SliderTrack = ({ className, ...props }) => {
2528
+ const { slots } = useSlider();
2529
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Slider.Track, {
2530
+ className: (0, tailwind_variants.cn)(className, slots.track()),
2531
+ ...props
2532
+ });
2533
+ };
2534
+ const SliderIndicator = ({ className, ...props }) => {
2535
+ const { slots } = useSlider();
2536
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Slider.Indicator, {
2537
+ className: (0, tailwind_variants.cn)(className, slots.indicator()),
2538
+ ...props
2539
+ });
2540
+ };
2541
+ const SliderThumb = ({ className, ...props }) => {
2542
+ const { slots } = useSlider();
2543
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Slider.Thumb, {
2544
+ className: (0, tailwind_variants.cn)(className, slots.thumb()),
2545
+ ...props
2546
+ });
2547
+ };
2548
+ var slider_default = Object.assign(Slider, {
2549
+ Control: SliderControl,
2550
+ Indicator: SliderIndicator,
2551
+ Root: Slider,
2552
+ Thumb: SliderThumb,
2553
+ Track: SliderTrack,
2554
+ Value: SliderValue
2555
+ });
2556
+
2557
+ //#endregion
2558
+ //#region src/components/spinner/spinner.variants.ts
2559
+ const spinnerVariants = (0, tailwind_variants.tv)({
2560
+ base: "spinner",
2561
+ defaultVariants: {
2562
+ size: "md",
2563
+ variant: "primary"
2564
+ },
2565
+ variants: {
2566
+ size: {
2567
+ lg: "spinner--lg",
2568
+ md: "spinner--md",
2569
+ sm: "spinner--sm",
2570
+ xl: "spinner--xl"
2571
+ },
2572
+ variant: {
2573
+ danger: "spinner--danger",
2574
+ primary: "spinner--primary",
2575
+ success: "spinner--success"
2576
+ }
2577
+ }
2578
+ });
2579
+
2580
+ //#endregion
2581
+ //#region src/components/spinner/spinner.tsx
2582
+ const Spinner = ({ className, size, variant, asChild, ...props }) => {
2583
+ const styles = spinnerVariants({
2584
+ size,
2585
+ variant
2586
+ });
2587
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideLoader, {
2588
+ "aria-label": "Loading",
2589
+ className: (0, tailwind_variants.cn)(className, styles),
2590
+ role: "status",
2591
+ ...props
2592
+ });
2593
+ };
2594
+ var spinner_default = Spinner;
2595
+
2596
+ //#endregion
2597
+ //#region src/components/switch/switch.context.ts
2598
+ const SwitchContext = (0, react.createContext)(null);
2599
+
2600
+ //#endregion
2601
+ //#region src/components/switch/switch.variants.ts
2602
+ const switchVariants = (0, tailwind_variants.tv)({
2603
+ defaultVariants: { size: "md" },
2604
+ slots: {
2605
+ root: "switch",
2606
+ thumb: "switch__thumb"
2607
+ },
2608
+ variants: { size: {
2609
+ lg: { root: "switch--lg" },
2610
+ md: { root: "switch--md" },
2611
+ sm: { root: "switch--sm" }
2612
+ } }
2613
+ });
2614
+
2615
+ //#endregion
2616
+ //#region src/components/switch/use-switch.ts
2617
+ const useSwitch = () => {
2618
+ const context = (0, react.useContext)(SwitchContext);
2619
+ if (!context) throw new Error("useSwitch must be used within a SwitchProvider");
2620
+ return context;
2621
+ };
2622
+
2623
+ //#endregion
2624
+ //#region src/components/switch/switch.tsx
2625
+ const Switch = ({ className, size, ...props }) => {
2626
+ const slots = (0, react.useMemo)(() => switchVariants({ size }), [size]);
2627
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SwitchContext.Provider, {
2628
+ value: { slots },
2629
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Switch.Root, {
2630
+ className: (0, tailwind_variants.cn)(className, slots.root()),
2631
+ ...props
2632
+ })
2633
+ });
2634
+ };
2635
+ const SwitchThumb = ({ className, ...props }) => {
2636
+ const { slots } = useSwitch();
2637
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Switch.Thumb, {
2638
+ className: (0, tailwind_variants.cn)(className, slots.thumb()),
2639
+ ...props
2640
+ });
2641
+ };
2642
+ var switch_default = Object.assign(Switch, {
2643
+ Root: Switch,
2644
+ Thumb: SwitchThumb
2645
+ });
2646
+
2647
+ //#endregion
2648
+ //#region src/components/table/table.context.ts
2649
+ const TableContext = (0, react.createContext)(null);
2650
+
2651
+ //#endregion
2652
+ //#region src/components/table/table.variants.ts
2653
+ const tableVariants = (0, tailwind_variants.tv)({ slots: {
2654
+ root: "table",
2655
+ tbody: "table__tbody",
2656
+ td: "table__td",
2657
+ tfoot: "table__tfoot",
2658
+ th: "table__th",
2659
+ thead: "table__thead",
2660
+ tr: "table__tr"
2661
+ } });
2662
+
2663
+ //#endregion
2664
+ //#region src/components/table/use-table.ts
2665
+ const useTable = () => {
2666
+ const context = (0, react.useContext)(TableContext);
2667
+ if (!context) throw new Error("useTable must be used within a TableProvider");
2668
+ return context;
2669
+ };
2670
+
2671
+ //#endregion
2672
+ //#region src/components/table/table.tsx
2673
+ const Table = ({ className, ...props }) => {
2674
+ const slots = (0, react.useMemo)(() => tableVariants(), []);
2675
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TableContext, {
2676
+ value: { slots },
2677
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("table", {
2678
+ className: (0, tailwind_variants.cn)(className, slots.root()),
2679
+ ...props
2680
+ })
2681
+ });
2682
+ };
2683
+ const TableHead = ({ className, ...props }) => {
2684
+ const { slots } = useTable();
2685
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("thead", {
2686
+ className: (0, tailwind_variants.cn)(className, slots.thead()),
2687
+ ...props
2688
+ });
2689
+ };
2690
+ const TableRow = ({ className, ...props }) => {
2691
+ const { slots } = useTable();
2692
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tr", {
2693
+ className: (0, tailwind_variants.cn)(className, slots.tr()),
2694
+ ...props
2695
+ });
2696
+ };
2697
+ const TableHeaderCell = ({ className, ...props }) => {
2698
+ const { slots } = useTable();
2699
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
2700
+ className: (0, tailwind_variants.cn)(className, slots.th()),
2701
+ ...props
2702
+ });
2703
+ };
2704
+ const TableBody = ({ className, ...props }) => {
2705
+ const { slots } = useTable();
2706
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tbody", {
2707
+ className: (0, tailwind_variants.cn)(className, slots.tbody()),
2708
+ ...props
2709
+ });
2710
+ };
2711
+ const TableDataCell = ({ className, ...props }) => {
2712
+ const { slots } = useTable();
2713
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
2714
+ className: (0, tailwind_variants.cn)(className, slots.td()),
2715
+ ...props
2716
+ });
2717
+ };
2718
+ const TableFooter = ({ className, ...props }) => {
2719
+ const { slots } = useTable();
2720
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tfoot", {
2721
+ className: (0, tailwind_variants.cn)(className, slots.tfoot()),
2722
+ ...props
2723
+ });
2724
+ };
2725
+ var table_default = Object.assign(Table, {
2726
+ Body: TableBody,
2727
+ DataCell: TableDataCell,
2728
+ Footer: TableFooter,
2729
+ Head: TableHead,
2730
+ HeaderCell: TableHeaderCell,
2731
+ Root: Table,
2732
+ Row: TableRow
2733
+ });
2734
+
2735
+ //#endregion
2736
+ //#region src/components/tabs/tabs.context.ts
2737
+ const TabsContext = (0, react.createContext)(null);
2738
+
2739
+ //#endregion
2740
+ //#region src/components/tabs/tabs.variants.ts
2741
+ const tabsVariants = (0, tailwind_variants.tv)({ slots: {
2742
+ indicator: "tabs__indicator",
2743
+ list: "tabs__list",
2744
+ panel: "tabs__panel",
2745
+ root: "tabs",
2746
+ tab: "tabs__tab"
2747
+ } });
2748
+
2749
+ //#endregion
2750
+ //#region src/components/tabs/use-tabs.ts
2751
+ const useTabs = () => {
2752
+ const context = (0, react.useContext)(TabsContext);
2753
+ if (!context) throw new Error("useTabs must be used within a TabsProvider");
2754
+ return context;
2755
+ };
2756
+
2757
+ //#endregion
2758
+ //#region src/components/tabs/tabs.tsx
2759
+ const Tabs = ({ className, ...props }) => {
2760
+ const slots = (0, react.useMemo)(() => tabsVariants(), []);
2761
+ const [listRef, setListRef] = react.default.useState(null);
2762
+ react.default.useEffect(() => {
2763
+ if (!listRef) return;
2764
+ const updateIndicator = () => {
2765
+ const activeTab = listRef.querySelector("[data-state=\"active\"]");
2766
+ if (activeTab) {
2767
+ const listRect = listRef.getBoundingClientRect();
2768
+ const tabRect = activeTab.getBoundingClientRect();
2769
+ listRef.style.setProperty("--active-tab-width", `${tabRect.width}px`);
2770
+ listRef.style.setProperty("--active-tab-left", `${tabRect.left - listRect.left + tabRect.width / 2}px`);
2771
+ }
2772
+ };
2773
+ updateIndicator();
2774
+ const observer = new MutationObserver(updateIndicator);
2775
+ observer.observe(listRef, {
2776
+ attributeFilter: ["data-state"],
2777
+ attributes: true,
2778
+ subtree: true
2779
+ });
2780
+ window.addEventListener("resize", updateIndicator);
2781
+ return () => {
2782
+ observer.disconnect();
2783
+ window.removeEventListener("resize", updateIndicator);
2784
+ };
2785
+ }, [listRef]);
2786
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TabsContext.Provider, {
2787
+ value: {
2788
+ listRef,
2789
+ setListRef,
2790
+ slots
2791
+ },
2792
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Tabs.Root, {
2793
+ className: (0, tailwind_variants.cn)(className, slots.root()),
2794
+ ...props
2795
+ })
2796
+ });
2797
+ };
2798
+ const TabsList = ({ className, ...props }) => {
2799
+ const { slots, setListRef } = useTabs();
2800
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Tabs.List, {
2801
+ className: (0, tailwind_variants.cn)(slots.list(), className),
2802
+ ref: setListRef,
2803
+ ...props
2804
+ });
2805
+ };
2806
+ const TabsTab = ({ className, ...props }) => {
2807
+ const { slots } = useTabs();
2808
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Tabs.Tab, {
2809
+ className: (0, tailwind_variants.cn)(slots.tab(), className),
2810
+ ...props
2811
+ });
2812
+ };
2813
+ const TabsIndicator = ({ className, ...props }) => {
2814
+ const { slots } = useTabs();
2815
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Tabs.Indicator, {
2816
+ className: (0, tailwind_variants.cn)(slots.indicator(), className),
2817
+ ...props
2818
+ });
2819
+ };
2820
+ const TabsPanel = ({ className, ...props }) => {
2821
+ const { slots } = useTabs();
2822
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Tabs.Panel, {
2823
+ className: (0, tailwind_variants.cn)(slots.panel(), className),
2824
+ ...props
2825
+ });
2826
+ };
2827
+ var tabs_default = Object.assign(Tabs, {
2828
+ Indicator: TabsIndicator,
2829
+ List: TabsList,
2830
+ Panel: TabsPanel,
2831
+ Root: Tabs,
2832
+ Tab: TabsTab
2833
+ });
2834
+
2835
+ //#endregion
2836
+ //#region src/components/toast/toast.context.ts
2837
+ const ToastContext = (0, react.createContext)(null);
2838
+
2839
+ //#endregion
2840
+ //#region src/components/toast/toast.variants.ts
2841
+ const toastVariants = (0, tailwind_variants.tv)({
2842
+ defaultVariants: { variant: "default" },
2843
+ slots: {
2844
+ action: "toast__action",
2845
+ close: "toast__close",
2846
+ description: "toast__description",
2847
+ root: "toast group",
2848
+ title: "toast__title",
2849
+ viewport: "toast__viewport"
2850
+ },
2851
+ variants: { variant: {
2852
+ default: { root: "bg-background text-foreground" },
2853
+ destructive: { root: "destructive group border-danger bg-danger text-danger-foreground" }
2854
+ } }
2855
+ });
2856
+
2857
+ //#endregion
2858
+ //#region src/components/toast/use-toast.ts
2859
+ const useToast$1 = () => {
2860
+ const context = (0, react.useContext)(ToastContext);
2861
+ if (!context) throw new Error("useToast must be used within a ToastProvider");
2862
+ return context;
2863
+ };
2864
+
2865
+ //#endregion
2866
+ //#region src/components/toast/toast.tsx
2867
+ const Toast = ({ className, variant, ...props }) => {
2868
+ const slots = (0, react.useMemo)(() => toastVariants({ variant }), [variant]);
2869
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ToastContext, {
2870
+ value: { slots },
2871
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Toast.Root, {
2872
+ className: (0, tailwind_variants.cn)(className, slots.root()),
2873
+ ...props
2874
+ })
2875
+ });
2876
+ };
2877
+ const ToastTitle = ({ className, ...props }) => {
2878
+ const { slots } = useToast$1();
2879
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Toast.Title, {
2880
+ className: (0, tailwind_variants.cn)(className, slots.title()),
2881
+ ...props
2882
+ });
2883
+ };
2884
+ const ToastDescription = ({ className, ...props }) => {
2885
+ const { slots } = useToast$1();
2886
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Toast.Description, {
2887
+ className: (0, tailwind_variants.cn)(className, slots.description()),
2888
+ ...props
2889
+ });
2890
+ };
2891
+ const ToastAction = ({ className, ...props }) => {
2892
+ const { slots } = useToast$1();
2893
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Toast.Action, {
2894
+ className: (0, tailwind_variants.cn)(className, slots.action()),
2895
+ ...props
2896
+ });
2897
+ };
2898
+ const ToastClose = ({ className, children, ...props }) => {
2899
+ const { slots } = useToast$1();
2900
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Toast.Close, {
2901
+ className: (0, tailwind_variants.cn)(className, slots.close()),
2902
+ ...props,
2903
+ children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LucideX, { className: "size-4" })
2904
+ });
2905
+ };
2906
+ const ToastProvider = _base_ui_react.Toast.Provider;
2907
+ const ToastPortal = _base_ui_react.Toast.Portal;
2908
+ const ToastViewport = ({ className, ...props }) => {
2909
+ const { viewport } = toastVariants();
2910
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Toast.Viewport, {
2911
+ className: (0, tailwind_variants.cn)(className, viewport()),
2912
+ ...props
2913
+ });
2914
+ };
2915
+ var toast_default = Object.assign(Toast, {
2916
+ Action: ToastAction,
2917
+ Close: ToastClose,
2918
+ Description: ToastDescription,
2919
+ Portal: ToastPortal,
2920
+ Provider: ToastProvider,
2921
+ Root: Toast,
2922
+ Title: ToastTitle,
2923
+ Viewport: ToastViewport
2924
+ });
2925
+
2926
+ //#endregion
2927
+ //#region src/components/toast/index.ts
2928
+ const useToast = _base_ui_react.Toast.useToastManager;
2929
+
2930
+ //#endregion
2931
+ //#region src/components/toggle-button/toggle-button.variants.ts
2932
+ const toggleButtonVariants = (0, tailwind_variants.tv)({
2933
+ base: "toggle-button",
2934
+ extend: buttonVariants
2935
+ });
2936
+
2937
+ //#endregion
2938
+ //#region src/components/toggle-button/toggle-button.tsx
2939
+ const ToggleButton = ({ className, variant, size, ...props }) => {
2940
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Toggle, {
2941
+ className: (0, tailwind_variants.cn)(className, toggleButtonVariants({
2942
+ size,
2943
+ variant
2944
+ })),
2945
+ ...props
2946
+ });
2947
+ };
2948
+ var toggle_button_default = ToggleButton;
2949
+
2950
+ //#endregion
2951
+ //#region src/components/tooltip/tooltip.context.ts
2952
+ const TooltipContext = (0, react.createContext)(null);
2953
+
2954
+ //#endregion
2955
+ //#region src/components/tooltip/tooltip.variants.ts
2956
+ const tooltipVariants = (0, tailwind_variants.tv)({ slots: {
2957
+ arrow: "tooltip__arrow",
2958
+ popup: "tooltip__popup",
2959
+ portal: "tooltip__portal",
2960
+ positioner: "tooltip__positioner",
2961
+ root: "tooltip",
2962
+ trigger: "tooltip__trigger"
2963
+ } });
2964
+
2965
+ //#endregion
2966
+ //#region src/components/tooltip/use-tooltip.ts
2967
+ const useTooltip = () => {
2968
+ const context = (0, react.useContext)(TooltipContext);
2969
+ if (!context) throw new Error("useTooltip must be used within a TooltipProvider");
2970
+ return context;
2971
+ };
2972
+
2973
+ //#endregion
2974
+ //#region src/components/tooltip/tooltip.tsx
2975
+ const Tooltip = ({ ...props }) => {
2976
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TooltipContext, {
2977
+ value: { slots: (0, react.useMemo)(() => tooltipVariants({}), []) },
2978
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Tooltip.Root, { ...props })
2979
+ });
2980
+ };
2981
+ const TooltipTrigger = ({ className, ...props }) => {
2982
+ const { slots } = useTooltip();
2983
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Tooltip.Trigger, {
2984
+ className: (0, tailwind_variants.cn)(className, slots.trigger()),
2985
+ ...props
2986
+ });
2987
+ };
2988
+ const TooltipPortal = ({ className, ...props }) => {
2989
+ const { slots } = useTooltip();
2990
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Tooltip.Portal, {
2991
+ className: (0, tailwind_variants.cn)(className, slots.portal()),
2992
+ ...props
2993
+ });
2994
+ };
2995
+ const TooltipPositioner = ({ className, ...props }) => {
2996
+ const { slots } = useTooltip();
2997
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Tooltip.Positioner, {
2998
+ className: (0, tailwind_variants.cn)(className, slots.positioner()),
2999
+ ...props
3000
+ });
3001
+ };
3002
+ const TooltipPopup = ({ className, ...props }) => {
3003
+ const { slots } = useTooltip();
3004
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Tooltip.Popup, {
3005
+ className: (0, tailwind_variants.cn)(className, slots.popup()),
3006
+ ...props
3007
+ });
3008
+ };
3009
+ const TooltipArrow = ({ className, ...props }) => {
3010
+ const { slots } = useTooltip();
3011
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Tooltip.Arrow, {
3012
+ className: (0, tailwind_variants.cn)(className, slots.arrow()),
3013
+ ...props
3014
+ });
3015
+ };
3016
+ var tooltip_default = Object.assign(Tooltip, {
3017
+ Arrow: TooltipArrow,
3018
+ Popup: TooltipPopup,
3019
+ Portal: TooltipPortal,
3020
+ Positioner: TooltipPositioner,
3021
+ Provider: _base_ui_react.Tooltip.Provider,
3022
+ Root: Tooltip,
3023
+ Trigger: TooltipTrigger
3024
+ });
3025
+
3026
+ //#endregion
3027
+ exports.Accordion = accordion_default;
3028
+ exports.Alert = alert_default;
3029
+ exports.AlertDialog = alert_dialog_default;
3030
+ exports.Avatar = avatar_default;
3031
+ exports.Button = button_default;
3032
+ exports.ButtonGroup = button_group_default;
3033
+ exports.Card = card_default;
3034
+ exports.Checkbox = checkbox_default;
3035
+ exports.CheckboxGroup = checkbox_group_default;
3036
+ exports.Chip = chip_default;
3037
+ exports.Collapsible = collapsible_default;
3038
+ exports.Combobox = combobox_default;
3039
+ exports.Container = container_default;
3040
+ exports.Dialog = dialog_default;
3041
+ exports.Drawer = drawer_default;
3042
+ exports.Field = field_default;
3043
+ exports.Fieldset = fieldset_default;
3044
+ exports.Form = form_default;
3045
+ exports.IconButton = icon_button_default;
3046
+ exports.Input = input_default;
3047
+ exports.Label = label_default;
3048
+ exports.Link = link_default;
3049
+ exports.List = list_default;
3050
+ exports.Menu = menu_default;
3051
+ exports.Meter = meter_default;
3052
+ exports.Navbar = navbar_default;
3053
+ exports.NavigationMenu = navigation_menu_default;
3054
+ exports.Popover = popover_default;
3055
+ exports.Progress = progress_default;
3056
+ exports.Radio = radio_default;
3057
+ exports.RadioGroup = radio_group_default;
3058
+ exports.Select = select_default;
3059
+ exports.Separator = separator_default;
3060
+ exports.Sidebar = sidebar_default;
3061
+ exports.Slider = slider_default;
3062
+ exports.Spinner = spinner_default;
3063
+ exports.Switch = switch_default;
3064
+ exports.Table = table_default;
3065
+ exports.Tabs = tabs_default;
3066
+ exports.Toast = toast_default;
3067
+ exports.ToggleButton = toggle_button_default;
3068
+ exports.Tooltip = tooltip_default;
3069
+ exports.accordionVariants = accordionVariants;
3070
+ exports.alertDialogVariants = alertDialogVariants;
3071
+ exports.alertVariants = alertVariants;
3072
+ exports.avatarVariants = avatarVariants;
3073
+ exports.buttonGroupVariants = buttonGroupVariants;
3074
+ exports.buttonVariants = buttonVariants;
3075
+ exports.cardVariants = cardVariants;
3076
+ exports.checkboxGroupVariants = checkboxGroupVariants;
3077
+ exports.checkboxVariants = checkboxVariants;
3078
+ exports.chipVariants = chipVariants;
3079
+ Object.defineProperty(exports, 'cn', {
3080
+ enumerable: true,
3081
+ get: function () {
3082
+ return tailwind_variants.cn;
3083
+ }
3084
+ });
3085
+ exports.comboboxVariants = comboboxVariants;
3086
+ exports.containerVariants = containerVariants;
3087
+ exports.dialogVariants = dialogVariants;
3088
+ exports.drawerVariants = drawerVariants;
3089
+ exports.fieldVariants = fieldVariants;
3090
+ exports.fieldsetVariants = fieldsetVariants;
3091
+ exports.formVariants = formVariants;
3092
+ exports.iconButtonVariants = iconButtonVariants;
3093
+ exports.inputVariants = inputVariants;
3094
+ exports.labelVariants = labelVariants;
3095
+ exports.linkVariants = linkVariants;
3096
+ exports.listVariants = listVariants;
3097
+ exports.menuVariants = menuVariants;
3098
+ exports.meterVariants = meterVariants;
3099
+ exports.navbarVariants = navbarVariants;
3100
+ exports.navigationMenuVariants = navigationMenuVariants;
3101
+ exports.popoverVariants = popoverVariants;
3102
+ exports.progressVariants = progressVariants;
3103
+ exports.radioGroupVariants = radioGroupVariants;
3104
+ exports.radioVariants = radioVariants;
3105
+ exports.selectVariants = selectVariants;
3106
+ exports.separatorVariants = separatorVariants;
3107
+ exports.sidebarVariants = sidebarVariants;
3108
+ exports.sliderVariants = sliderVariants;
3109
+ exports.spinnerVariants = spinnerVariants;
3110
+ exports.switchVariants = switchVariants;
3111
+ exports.tableVariants = tableVariants;
3112
+ exports.tabsVariants = tabsVariants;
3113
+ exports.toggleButtonVariants = toggleButtonVariants;
3114
+ exports.useToast = useToast;
3115
+ //# sourceMappingURL=index.cjs.map