@nextsparkjs/core 0.1.0-beta.111 → 0.1.0-beta.113

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.
@@ -1,4 +1,654 @@
1
- import { Badge, badgeVariants } from "@nextsparkjs/ui";
1
+ "use client";
2
+
3
+ // ../../node_modules/.pnpm/@nextsparkjs+ui@0.1.0-beta.79_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19.2._whiycl2nvwq6otr7gzrisciudi/node_modules/@nextsparkjs/ui/dist/index.js
4
+ import { createContext, useContext, useMemo } from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import * as React from "react";
7
+ import { Slot } from "@radix-ui/react-slot";
8
+ import { cva } from "class-variance-authority";
9
+ import { clsx } from "clsx";
10
+ import { twMerge } from "tailwind-merge";
11
+ import { jsx as jsx2 } from "react/jsx-runtime";
12
+ import * as React2 from "react";
13
+ import { jsx as jsx3 } from "react/jsx-runtime";
14
+ import * as React3 from "react";
15
+ import { jsx as jsx4 } from "react/jsx-runtime";
16
+ import * as React4 from "react";
17
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
18
+ import { CheckIcon } from "@radix-ui/react-icons";
19
+ import { jsx as jsx5 } from "react/jsx-runtime";
20
+ import * as React5 from "react";
21
+ import * as SwitchPrimitives from "@radix-ui/react-switch";
22
+ import { jsx as jsx6 } from "react/jsx-runtime";
23
+ import * as LabelPrimitive from "@radix-ui/react-label";
24
+ import { jsx as jsx7 } from "react/jsx-runtime";
25
+ import { cva as cva2 } from "class-variance-authority";
26
+ import { jsx as jsx8 } from "react/jsx-runtime";
27
+ import * as React6 from "react";
28
+ import * as AvatarPrimitive from "@radix-ui/react-avatar";
29
+ import { jsx as jsx9 } from "react/jsx-runtime";
30
+ import * as React7 from "react";
31
+ import { jsx as jsx10 } from "react/jsx-runtime";
32
+ import * as React8 from "react";
33
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
34
+ import { jsx as jsx11 } from "react/jsx-runtime";
35
+ import * as React9 from "react";
36
+ import { jsx as jsx12, jsxs } from "react/jsx-runtime";
37
+ import * as React10 from "react";
38
+ import { jsx as jsx13, jsxs as jsxs2 } from "react/jsx-runtime";
39
+ import * as React11 from "react";
40
+ import * as ProgressPrimitive from "@radix-ui/react-progress";
41
+ import { jsx as jsx14 } from "react/jsx-runtime";
42
+ import * as React12 from "react";
43
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
44
+ import { jsx as jsx15 } from "react/jsx-runtime";
45
+ import * as React13 from "react";
46
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
47
+ import { ChevronDownIcon } from "@radix-ui/react-icons";
48
+ import { jsx as jsx16, jsxs as jsxs3 } from "react/jsx-runtime";
49
+ import * as React14 from "react";
50
+ import * as SliderPrimitive from "@radix-ui/react-slider";
51
+ import { jsx as jsx17, jsxs as jsxs4 } from "react/jsx-runtime";
52
+ var ThemeContext = createContext(null);
53
+ function cn(...inputs) {
54
+ return twMerge(clsx(inputs));
55
+ }
56
+ var buttonVariants = cva(
57
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
58
+ {
59
+ variants: {
60
+ variant: {
61
+ default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
62
+ destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",
63
+ outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",
64
+ secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
65
+ ghost: "hover:bg-accent hover:text-accent-foreground",
66
+ link: "text-primary underline-offset-4 hover:underline"
67
+ },
68
+ size: {
69
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
70
+ sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
71
+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
72
+ icon: "size-9"
73
+ }
74
+ },
75
+ defaultVariants: {
76
+ variant: "default",
77
+ size: "default"
78
+ }
79
+ }
80
+ );
81
+ var Button = React.forwardRef(
82
+ ({ className, variant, size, asChild = false, ...props }, ref) => {
83
+ const Comp = asChild ? Slot : "button";
84
+ return /* @__PURE__ */ jsx2(
85
+ Comp,
86
+ {
87
+ ref,
88
+ "data-slot": "button",
89
+ className: cn(buttonVariants({ variant, size, className })),
90
+ ...props
91
+ }
92
+ );
93
+ }
94
+ );
95
+ Button.displayName = "Button";
96
+ var Input = React2.forwardRef(
97
+ ({ className, type, ...props }, ref) => {
98
+ return /* @__PURE__ */ jsx3(
99
+ "input",
100
+ {
101
+ type,
102
+ className: cn(
103
+ "flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
104
+ className
105
+ ),
106
+ ref,
107
+ ...props
108
+ }
109
+ );
110
+ }
111
+ );
112
+ Input.displayName = "Input";
113
+ var Textarea = React3.forwardRef(
114
+ ({ className, ...props }, ref) => {
115
+ return /* @__PURE__ */ jsx4(
116
+ "textarea",
117
+ {
118
+ className: cn(
119
+ "flex min-h-[60px] w-full rounded-md border border-input bg-background px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
120
+ className
121
+ ),
122
+ ref,
123
+ ...props
124
+ }
125
+ );
126
+ }
127
+ );
128
+ Textarea.displayName = "Textarea";
129
+ var Checkbox = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
130
+ CheckboxPrimitive.Root,
131
+ {
132
+ ref,
133
+ className: cn(
134
+ "peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
135
+ className
136
+ ),
137
+ ...props,
138
+ children: /* @__PURE__ */ jsx5(
139
+ CheckboxPrimitive.Indicator,
140
+ {
141
+ className: cn("flex items-center justify-center text-current"),
142
+ children: /* @__PURE__ */ jsx5(CheckIcon, { className: "h-4 w-4" })
143
+ }
144
+ )
145
+ }
146
+ ));
147
+ Checkbox.displayName = CheckboxPrimitive.Root.displayName;
148
+ var Switch = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
149
+ SwitchPrimitives.Root,
150
+ {
151
+ className: cn(
152
+ "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
153
+ className
154
+ ),
155
+ ...props,
156
+ ref,
157
+ children: /* @__PURE__ */ jsx6(
158
+ SwitchPrimitives.Thumb,
159
+ {
160
+ className: cn(
161
+ "pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
162
+ )
163
+ }
164
+ )
165
+ }
166
+ ));
167
+ Switch.displayName = SwitchPrimitives.Root.displayName;
168
+ var badgeVariants = cva2(
169
+ "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
170
+ {
171
+ variants: {
172
+ variant: {
173
+ default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
174
+ secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
175
+ destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
176
+ outline: "text-foreground"
177
+ }
178
+ },
179
+ defaultVariants: {
180
+ variant: "default"
181
+ }
182
+ }
183
+ );
184
+ function Badge({ className, variant, ...props }) {
185
+ return /* @__PURE__ */ jsx8("div", { className: cn(badgeVariants({ variant }), className), ...props });
186
+ }
187
+ var Avatar = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
188
+ AvatarPrimitive.Root,
189
+ {
190
+ ref,
191
+ className: cn(
192
+ "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
193
+ className
194
+ ),
195
+ ...props
196
+ }
197
+ ));
198
+ Avatar.displayName = AvatarPrimitive.Root.displayName;
199
+ var AvatarImage = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
200
+ AvatarPrimitive.Image,
201
+ {
202
+ ref,
203
+ className: cn("aspect-square h-full w-full", className),
204
+ ...props
205
+ }
206
+ ));
207
+ AvatarImage.displayName = AvatarPrimitive.Image.displayName;
208
+ var AvatarFallback = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
209
+ AvatarPrimitive.Fallback,
210
+ {
211
+ ref,
212
+ className: cn(
213
+ "flex h-full w-full items-center justify-center rounded-full bg-muted",
214
+ className
215
+ ),
216
+ ...props
217
+ }
218
+ ));
219
+ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
220
+ var Card = React7.forwardRef(
221
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
222
+ "div",
223
+ {
224
+ ref,
225
+ className: cn(
226
+ "rounded-xl border bg-card text-card-foreground shadow",
227
+ className
228
+ ),
229
+ ...props
230
+ }
231
+ )
232
+ );
233
+ Card.displayName = "Card";
234
+ var PressableCard = React7.forwardRef(
235
+ ({ className, onClick, ...props }, ref) => /* @__PURE__ */ jsx10(
236
+ "div",
237
+ {
238
+ ref,
239
+ role: "button",
240
+ tabIndex: 0,
241
+ onClick,
242
+ onKeyDown: (e) => {
243
+ if (e.key === "Enter" || e.key === " ") {
244
+ e.preventDefault();
245
+ onClick?.();
246
+ }
247
+ },
248
+ className: cn(
249
+ "rounded-xl border bg-card text-card-foreground shadow cursor-pointer transition-opacity hover:opacity-80 active:opacity-70",
250
+ className
251
+ ),
252
+ ...props
253
+ }
254
+ )
255
+ );
256
+ PressableCard.displayName = "PressableCard";
257
+ var CardHeader = React7.forwardRef(
258
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
259
+ "div",
260
+ {
261
+ ref,
262
+ className: cn("flex flex-col space-y-1.5 p-6", className),
263
+ ...props
264
+ }
265
+ )
266
+ );
267
+ CardHeader.displayName = "CardHeader";
268
+ var CardTitle = React7.forwardRef(
269
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
270
+ "div",
271
+ {
272
+ ref,
273
+ className: cn("font-semibold leading-none tracking-tight", className),
274
+ ...props
275
+ }
276
+ )
277
+ );
278
+ CardTitle.displayName = "CardTitle";
279
+ var CardDescription = React7.forwardRef(
280
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
281
+ "div",
282
+ {
283
+ ref,
284
+ className: cn("text-sm text-muted-foreground", className),
285
+ ...props
286
+ }
287
+ )
288
+ );
289
+ CardDescription.displayName = "CardDescription";
290
+ var CardContent = React7.forwardRef(
291
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx10("div", { ref, className: cn("p-6 pt-0", className), ...props })
292
+ );
293
+ CardContent.displayName = "CardContent";
294
+ var CardFooter = React7.forwardRef(
295
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
296
+ "div",
297
+ {
298
+ ref,
299
+ className: cn("flex items-center p-6 pt-0", className),
300
+ ...props
301
+ }
302
+ )
303
+ );
304
+ CardFooter.displayName = "CardFooter";
305
+ var Separator = React8.forwardRef(
306
+ ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx11(
307
+ SeparatorPrimitive.Root,
308
+ {
309
+ ref,
310
+ decorative,
311
+ orientation,
312
+ className: cn(
313
+ "shrink-0 bg-border",
314
+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
315
+ className
316
+ ),
317
+ ...props
318
+ }
319
+ )
320
+ );
321
+ Separator.displayName = SeparatorPrimitive.Root.displayName;
322
+ var Skeleton = React9.forwardRef(
323
+ ({ className, ...props }, ref) => {
324
+ return /* @__PURE__ */ jsx12(
325
+ "div",
326
+ {
327
+ ref,
328
+ className: cn(
329
+ // Base styles
330
+ "rounded-md bg-muted",
331
+ // Optimized animation - GPU accelerated
332
+ "animate-skeleton-pulse",
333
+ // CSS containment for better INP
334
+ "skeleton-contained",
335
+ className
336
+ ),
337
+ ...props
338
+ }
339
+ );
340
+ }
341
+ );
342
+ Skeleton.displayName = "Skeleton";
343
+ var SkeletonContainer = React9.forwardRef(
344
+ ({ className, children, ...props }, ref) => {
345
+ return /* @__PURE__ */ jsx12(
346
+ "div",
347
+ {
348
+ ref,
349
+ className: cn("skeleton-container", className),
350
+ ...props,
351
+ children
352
+ }
353
+ );
354
+ }
355
+ );
356
+ SkeletonContainer.displayName = "SkeletonContainer";
357
+ var SkeletonText = React9.forwardRef(
358
+ ({ className, lines = 1, ...props }, ref) => {
359
+ return /* @__PURE__ */ jsx12("div", { ref, className: cn("space-y-2", className), ...props, children: Array.from({ length: lines }).map((_, i) => /* @__PURE__ */ jsx12(
360
+ Skeleton,
361
+ {
362
+ className: cn(
363
+ "h-4",
364
+ // Last line is typically shorter
365
+ i === lines - 1 && lines > 1 ? "w-3/4" : "w-full"
366
+ )
367
+ },
368
+ i
369
+ )) });
370
+ }
371
+ );
372
+ SkeletonText.displayName = "SkeletonText";
373
+ var SkeletonTitle = React9.forwardRef(
374
+ ({ className, ...props }, ref) => {
375
+ return /* @__PURE__ */ jsx12(Skeleton, { ref, className: cn("h-6 w-1/2", className), ...props });
376
+ }
377
+ );
378
+ SkeletonTitle.displayName = "SkeletonTitle";
379
+ var SkeletonAvatar = React9.forwardRef(
380
+ ({ className, ...props }, ref) => {
381
+ return /* @__PURE__ */ jsx12(Skeleton, { ref, className: cn("h-10 w-10 rounded-full", className), ...props });
382
+ }
383
+ );
384
+ SkeletonAvatar.displayName = "SkeletonAvatar";
385
+ var SkeletonCard = React9.forwardRef(
386
+ ({ className, ...props }, ref) => {
387
+ return /* @__PURE__ */ jsxs(
388
+ "div",
389
+ {
390
+ ref,
391
+ className: cn("space-y-3 rounded-xl border border-border bg-card p-4", className),
392
+ ...props,
393
+ children: [
394
+ /* @__PURE__ */ jsx12(Skeleton, { className: "h-5 w-2/3" }),
395
+ /* @__PURE__ */ jsx12(Skeleton, { className: "h-4 w-full" }),
396
+ /* @__PURE__ */ jsx12(Skeleton, { className: "h-4 w-4/5" }),
397
+ /* @__PURE__ */ jsxs("div", { className: "flex gap-2 pt-2", children: [
398
+ /* @__PURE__ */ jsx12(Skeleton, { className: "h-6 w-16 rounded-full" }),
399
+ /* @__PURE__ */ jsx12(Skeleton, { className: "h-6 w-16 rounded-full" })
400
+ ] })
401
+ ]
402
+ }
403
+ );
404
+ }
405
+ );
406
+ SkeletonCard.displayName = "SkeletonCard";
407
+ var DialogContext = React10.createContext(void 0);
408
+ function useDialogContext() {
409
+ const context = React10.useContext(DialogContext);
410
+ if (!context) {
411
+ throw new Error("Dialog components must be used within a Dialog");
412
+ }
413
+ return context;
414
+ }
415
+ function Dialog({
416
+ open = false,
417
+ onOpenChange = () => {
418
+ },
419
+ children
420
+ }) {
421
+ return /* @__PURE__ */ jsx13(DialogContext.Provider, { value: { open, onOpenChange }, children });
422
+ }
423
+ Dialog.displayName = "Dialog";
424
+ var DialogContent = React10.forwardRef(
425
+ ({ className, children, ...props }, ref) => {
426
+ const { open, onOpenChange } = useDialogContext();
427
+ React10.useEffect(() => {
428
+ const handleEscape = (e) => {
429
+ if (e.key === "Escape" && open) {
430
+ onOpenChange(false);
431
+ }
432
+ };
433
+ document.addEventListener("keydown", handleEscape);
434
+ return () => document.removeEventListener("keydown", handleEscape);
435
+ }, [open, onOpenChange]);
436
+ if (!open) return null;
437
+ return /* @__PURE__ */ jsxs2("div", { className: "fixed inset-0 z-50 flex items-center justify-center", children: [
438
+ /* @__PURE__ */ jsx13(
439
+ "div",
440
+ {
441
+ className: "fixed inset-0 bg-black/50 animate-in fade-in-0",
442
+ onClick: () => onOpenChange(false)
443
+ }
444
+ ),
445
+ /* @__PURE__ */ jsx13(
446
+ "div",
447
+ {
448
+ ref,
449
+ role: "dialog",
450
+ "aria-modal": "true",
451
+ className: cn(
452
+ "relative z-50 w-full max-w-lg rounded-xl bg-card shadow-lg animate-in fade-in-0 zoom-in-95",
453
+ "max-h-[85vh] overflow-auto",
454
+ className
455
+ ),
456
+ onClick: (e) => e.stopPropagation(),
457
+ ...props,
458
+ children
459
+ }
460
+ )
461
+ ] });
462
+ }
463
+ );
464
+ DialogContent.displayName = "DialogContent";
465
+ var DialogHeader = React10.forwardRef(
466
+ ({ className, children, ...props }, ref) => {
467
+ return /* @__PURE__ */ jsx13(
468
+ "div",
469
+ {
470
+ ref,
471
+ className: cn("border-b border-border p-4", className),
472
+ ...props,
473
+ children
474
+ }
475
+ );
476
+ }
477
+ );
478
+ DialogHeader.displayName = "DialogHeader";
479
+ var DialogTitle = React10.forwardRef(
480
+ ({ className, children, ...props }, ref) => {
481
+ return /* @__PURE__ */ jsx13(
482
+ "h2",
483
+ {
484
+ ref,
485
+ className: cn("text-lg font-semibold", className),
486
+ ...props,
487
+ children
488
+ }
489
+ );
490
+ }
491
+ );
492
+ DialogTitle.displayName = "DialogTitle";
493
+ var DialogDescription = React10.forwardRef(
494
+ ({ className, children, ...props }, ref) => {
495
+ return /* @__PURE__ */ jsx13(
496
+ "p",
497
+ {
498
+ ref,
499
+ className: cn("mt-1 text-sm text-muted-foreground", className),
500
+ ...props,
501
+ children
502
+ }
503
+ );
504
+ }
505
+ );
506
+ DialogDescription.displayName = "DialogDescription";
507
+ var DialogBody = React10.forwardRef(
508
+ ({ className, children, ...props }, ref) => {
509
+ return /* @__PURE__ */ jsx13("div", { ref, className: cn("p-4", className), ...props, children });
510
+ }
511
+ );
512
+ DialogBody.displayName = "DialogBody";
513
+ var DialogFooter = React10.forwardRef(
514
+ ({ className, children, ...props }, ref) => {
515
+ return /* @__PURE__ */ jsx13(
516
+ "div",
517
+ {
518
+ ref,
519
+ className: cn("flex justify-end gap-2 border-t border-border p-4", className),
520
+ ...props,
521
+ children
522
+ }
523
+ );
524
+ }
525
+ );
526
+ DialogFooter.displayName = "DialogFooter";
527
+ var DialogClose = React10.forwardRef(
528
+ ({ children, onClick, ...props }, ref) => {
529
+ const { onOpenChange } = useDialogContext();
530
+ return /* @__PURE__ */ jsx13(
531
+ "button",
532
+ {
533
+ ref,
534
+ type: "button",
535
+ onClick: (e) => {
536
+ onClick?.(e);
537
+ onOpenChange(false);
538
+ },
539
+ ...props,
540
+ children
541
+ }
542
+ );
543
+ }
544
+ );
545
+ DialogClose.displayName = "DialogClose";
546
+ var Progress = React11.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx14(
547
+ ProgressPrimitive.Root,
548
+ {
549
+ ref,
550
+ className: cn(
551
+ "relative h-4 w-full overflow-hidden rounded-full bg-secondary",
552
+ className
553
+ ),
554
+ ...props,
555
+ children: /* @__PURE__ */ jsx14(
556
+ ProgressPrimitive.Indicator,
557
+ {
558
+ className: "h-full w-full flex-1 bg-primary transition-all",
559
+ style: { transform: `translateX(-${100 - (value || 0)}%)` }
560
+ }
561
+ )
562
+ }
563
+ ));
564
+ Progress.displayName = ProgressPrimitive.Root.displayName;
565
+ var TabsList = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
566
+ TabsPrimitive.List,
567
+ {
568
+ ref,
569
+ className: cn(
570
+ "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
571
+ className
572
+ ),
573
+ ...props
574
+ }
575
+ ));
576
+ TabsList.displayName = TabsPrimitive.List.displayName;
577
+ var TabsTrigger = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
578
+ TabsPrimitive.Trigger,
579
+ {
580
+ ref,
581
+ className: cn(
582
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow cursor-pointer",
583
+ className
584
+ ),
585
+ ...props
586
+ }
587
+ ));
588
+ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
589
+ var TabsContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
590
+ TabsPrimitive.Content,
591
+ {
592
+ ref,
593
+ className: cn(
594
+ "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
595
+ className
596
+ ),
597
+ ...props
598
+ }
599
+ ));
600
+ TabsContent.displayName = TabsPrimitive.Content.displayName;
601
+ var AccordionItem = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
602
+ AccordionPrimitive.Item,
603
+ {
604
+ ref,
605
+ className: cn("border-b", className),
606
+ ...props
607
+ }
608
+ ));
609
+ AccordionItem.displayName = "AccordionItem";
610
+ var AccordionTrigger = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx16(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs3(
611
+ AccordionPrimitive.Trigger,
612
+ {
613
+ ref,
614
+ className: cn(
615
+ "flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",
616
+ className
617
+ ),
618
+ ...props,
619
+ children: [
620
+ children,
621
+ /* @__PURE__ */ jsx16(ChevronDownIcon, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
622
+ ]
623
+ }
624
+ ) }));
625
+ AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
626
+ var AccordionContent = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx16(
627
+ AccordionPrimitive.Content,
628
+ {
629
+ ref,
630
+ className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
631
+ ...props,
632
+ children: /* @__PURE__ */ jsx16("div", { className: cn("pb-4 pt-0", className), children })
633
+ }
634
+ ));
635
+ AccordionContent.displayName = AccordionPrimitive.Content.displayName;
636
+ var Slider = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs4(
637
+ SliderPrimitive.Root,
638
+ {
639
+ ref,
640
+ className: cn(
641
+ "relative flex w-full touch-none select-none items-center",
642
+ className
643
+ ),
644
+ ...props,
645
+ children: [
646
+ /* @__PURE__ */ jsx17(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ jsx17(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
647
+ /* @__PURE__ */ jsx17(SliderPrimitive.Thumb, { className: "block h-4 w-4 rounded-full border-2 border-primary bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50" })
648
+ ]
649
+ }
650
+ ));
651
+ Slider.displayName = SliderPrimitive.Root.displayName;
2
652
  export {
3
653
  Badge,
4
654
  badgeVariants