@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,651 @@
1
- import { Button, buttonVariants } 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
+ var Avatar = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
185
+ AvatarPrimitive.Root,
186
+ {
187
+ ref,
188
+ className: cn(
189
+ "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
190
+ className
191
+ ),
192
+ ...props
193
+ }
194
+ ));
195
+ Avatar.displayName = AvatarPrimitive.Root.displayName;
196
+ var AvatarImage = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
197
+ AvatarPrimitive.Image,
198
+ {
199
+ ref,
200
+ className: cn("aspect-square h-full w-full", className),
201
+ ...props
202
+ }
203
+ ));
204
+ AvatarImage.displayName = AvatarPrimitive.Image.displayName;
205
+ var AvatarFallback = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
206
+ AvatarPrimitive.Fallback,
207
+ {
208
+ ref,
209
+ className: cn(
210
+ "flex h-full w-full items-center justify-center rounded-full bg-muted",
211
+ className
212
+ ),
213
+ ...props
214
+ }
215
+ ));
216
+ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
217
+ var Card = React7.forwardRef(
218
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
219
+ "div",
220
+ {
221
+ ref,
222
+ className: cn(
223
+ "rounded-xl border bg-card text-card-foreground shadow",
224
+ className
225
+ ),
226
+ ...props
227
+ }
228
+ )
229
+ );
230
+ Card.displayName = "Card";
231
+ var PressableCard = React7.forwardRef(
232
+ ({ className, onClick, ...props }, ref) => /* @__PURE__ */ jsx10(
233
+ "div",
234
+ {
235
+ ref,
236
+ role: "button",
237
+ tabIndex: 0,
238
+ onClick,
239
+ onKeyDown: (e) => {
240
+ if (e.key === "Enter" || e.key === " ") {
241
+ e.preventDefault();
242
+ onClick?.();
243
+ }
244
+ },
245
+ className: cn(
246
+ "rounded-xl border bg-card text-card-foreground shadow cursor-pointer transition-opacity hover:opacity-80 active:opacity-70",
247
+ className
248
+ ),
249
+ ...props
250
+ }
251
+ )
252
+ );
253
+ PressableCard.displayName = "PressableCard";
254
+ var CardHeader = React7.forwardRef(
255
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
256
+ "div",
257
+ {
258
+ ref,
259
+ className: cn("flex flex-col space-y-1.5 p-6", className),
260
+ ...props
261
+ }
262
+ )
263
+ );
264
+ CardHeader.displayName = "CardHeader";
265
+ var CardTitle = React7.forwardRef(
266
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
267
+ "div",
268
+ {
269
+ ref,
270
+ className: cn("font-semibold leading-none tracking-tight", className),
271
+ ...props
272
+ }
273
+ )
274
+ );
275
+ CardTitle.displayName = "CardTitle";
276
+ var CardDescription = React7.forwardRef(
277
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
278
+ "div",
279
+ {
280
+ ref,
281
+ className: cn("text-sm text-muted-foreground", className),
282
+ ...props
283
+ }
284
+ )
285
+ );
286
+ CardDescription.displayName = "CardDescription";
287
+ var CardContent = React7.forwardRef(
288
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx10("div", { ref, className: cn("p-6 pt-0", className), ...props })
289
+ );
290
+ CardContent.displayName = "CardContent";
291
+ var CardFooter = React7.forwardRef(
292
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
293
+ "div",
294
+ {
295
+ ref,
296
+ className: cn("flex items-center p-6 pt-0", className),
297
+ ...props
298
+ }
299
+ )
300
+ );
301
+ CardFooter.displayName = "CardFooter";
302
+ var Separator = React8.forwardRef(
303
+ ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx11(
304
+ SeparatorPrimitive.Root,
305
+ {
306
+ ref,
307
+ decorative,
308
+ orientation,
309
+ className: cn(
310
+ "shrink-0 bg-border",
311
+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
312
+ className
313
+ ),
314
+ ...props
315
+ }
316
+ )
317
+ );
318
+ Separator.displayName = SeparatorPrimitive.Root.displayName;
319
+ var Skeleton = React9.forwardRef(
320
+ ({ className, ...props }, ref) => {
321
+ return /* @__PURE__ */ jsx12(
322
+ "div",
323
+ {
324
+ ref,
325
+ className: cn(
326
+ // Base styles
327
+ "rounded-md bg-muted",
328
+ // Optimized animation - GPU accelerated
329
+ "animate-skeleton-pulse",
330
+ // CSS containment for better INP
331
+ "skeleton-contained",
332
+ className
333
+ ),
334
+ ...props
335
+ }
336
+ );
337
+ }
338
+ );
339
+ Skeleton.displayName = "Skeleton";
340
+ var SkeletonContainer = React9.forwardRef(
341
+ ({ className, children, ...props }, ref) => {
342
+ return /* @__PURE__ */ jsx12(
343
+ "div",
344
+ {
345
+ ref,
346
+ className: cn("skeleton-container", className),
347
+ ...props,
348
+ children
349
+ }
350
+ );
351
+ }
352
+ );
353
+ SkeletonContainer.displayName = "SkeletonContainer";
354
+ var SkeletonText = React9.forwardRef(
355
+ ({ className, lines = 1, ...props }, ref) => {
356
+ return /* @__PURE__ */ jsx12("div", { ref, className: cn("space-y-2", className), ...props, children: Array.from({ length: lines }).map((_, i) => /* @__PURE__ */ jsx12(
357
+ Skeleton,
358
+ {
359
+ className: cn(
360
+ "h-4",
361
+ // Last line is typically shorter
362
+ i === lines - 1 && lines > 1 ? "w-3/4" : "w-full"
363
+ )
364
+ },
365
+ i
366
+ )) });
367
+ }
368
+ );
369
+ SkeletonText.displayName = "SkeletonText";
370
+ var SkeletonTitle = React9.forwardRef(
371
+ ({ className, ...props }, ref) => {
372
+ return /* @__PURE__ */ jsx12(Skeleton, { ref, className: cn("h-6 w-1/2", className), ...props });
373
+ }
374
+ );
375
+ SkeletonTitle.displayName = "SkeletonTitle";
376
+ var SkeletonAvatar = React9.forwardRef(
377
+ ({ className, ...props }, ref) => {
378
+ return /* @__PURE__ */ jsx12(Skeleton, { ref, className: cn("h-10 w-10 rounded-full", className), ...props });
379
+ }
380
+ );
381
+ SkeletonAvatar.displayName = "SkeletonAvatar";
382
+ var SkeletonCard = React9.forwardRef(
383
+ ({ className, ...props }, ref) => {
384
+ return /* @__PURE__ */ jsxs(
385
+ "div",
386
+ {
387
+ ref,
388
+ className: cn("space-y-3 rounded-xl border border-border bg-card p-4", className),
389
+ ...props,
390
+ children: [
391
+ /* @__PURE__ */ jsx12(Skeleton, { className: "h-5 w-2/3" }),
392
+ /* @__PURE__ */ jsx12(Skeleton, { className: "h-4 w-full" }),
393
+ /* @__PURE__ */ jsx12(Skeleton, { className: "h-4 w-4/5" }),
394
+ /* @__PURE__ */ jsxs("div", { className: "flex gap-2 pt-2", children: [
395
+ /* @__PURE__ */ jsx12(Skeleton, { className: "h-6 w-16 rounded-full" }),
396
+ /* @__PURE__ */ jsx12(Skeleton, { className: "h-6 w-16 rounded-full" })
397
+ ] })
398
+ ]
399
+ }
400
+ );
401
+ }
402
+ );
403
+ SkeletonCard.displayName = "SkeletonCard";
404
+ var DialogContext = React10.createContext(void 0);
405
+ function useDialogContext() {
406
+ const context = React10.useContext(DialogContext);
407
+ if (!context) {
408
+ throw new Error("Dialog components must be used within a Dialog");
409
+ }
410
+ return context;
411
+ }
412
+ function Dialog({
413
+ open = false,
414
+ onOpenChange = () => {
415
+ },
416
+ children
417
+ }) {
418
+ return /* @__PURE__ */ jsx13(DialogContext.Provider, { value: { open, onOpenChange }, children });
419
+ }
420
+ Dialog.displayName = "Dialog";
421
+ var DialogContent = React10.forwardRef(
422
+ ({ className, children, ...props }, ref) => {
423
+ const { open, onOpenChange } = useDialogContext();
424
+ React10.useEffect(() => {
425
+ const handleEscape = (e) => {
426
+ if (e.key === "Escape" && open) {
427
+ onOpenChange(false);
428
+ }
429
+ };
430
+ document.addEventListener("keydown", handleEscape);
431
+ return () => document.removeEventListener("keydown", handleEscape);
432
+ }, [open, onOpenChange]);
433
+ if (!open) return null;
434
+ return /* @__PURE__ */ jsxs2("div", { className: "fixed inset-0 z-50 flex items-center justify-center", children: [
435
+ /* @__PURE__ */ jsx13(
436
+ "div",
437
+ {
438
+ className: "fixed inset-0 bg-black/50 animate-in fade-in-0",
439
+ onClick: () => onOpenChange(false)
440
+ }
441
+ ),
442
+ /* @__PURE__ */ jsx13(
443
+ "div",
444
+ {
445
+ ref,
446
+ role: "dialog",
447
+ "aria-modal": "true",
448
+ className: cn(
449
+ "relative z-50 w-full max-w-lg rounded-xl bg-card shadow-lg animate-in fade-in-0 zoom-in-95",
450
+ "max-h-[85vh] overflow-auto",
451
+ className
452
+ ),
453
+ onClick: (e) => e.stopPropagation(),
454
+ ...props,
455
+ children
456
+ }
457
+ )
458
+ ] });
459
+ }
460
+ );
461
+ DialogContent.displayName = "DialogContent";
462
+ var DialogHeader = React10.forwardRef(
463
+ ({ className, children, ...props }, ref) => {
464
+ return /* @__PURE__ */ jsx13(
465
+ "div",
466
+ {
467
+ ref,
468
+ className: cn("border-b border-border p-4", className),
469
+ ...props,
470
+ children
471
+ }
472
+ );
473
+ }
474
+ );
475
+ DialogHeader.displayName = "DialogHeader";
476
+ var DialogTitle = React10.forwardRef(
477
+ ({ className, children, ...props }, ref) => {
478
+ return /* @__PURE__ */ jsx13(
479
+ "h2",
480
+ {
481
+ ref,
482
+ className: cn("text-lg font-semibold", className),
483
+ ...props,
484
+ children
485
+ }
486
+ );
487
+ }
488
+ );
489
+ DialogTitle.displayName = "DialogTitle";
490
+ var DialogDescription = React10.forwardRef(
491
+ ({ className, children, ...props }, ref) => {
492
+ return /* @__PURE__ */ jsx13(
493
+ "p",
494
+ {
495
+ ref,
496
+ className: cn("mt-1 text-sm text-muted-foreground", className),
497
+ ...props,
498
+ children
499
+ }
500
+ );
501
+ }
502
+ );
503
+ DialogDescription.displayName = "DialogDescription";
504
+ var DialogBody = React10.forwardRef(
505
+ ({ className, children, ...props }, ref) => {
506
+ return /* @__PURE__ */ jsx13("div", { ref, className: cn("p-4", className), ...props, children });
507
+ }
508
+ );
509
+ DialogBody.displayName = "DialogBody";
510
+ var DialogFooter = React10.forwardRef(
511
+ ({ className, children, ...props }, ref) => {
512
+ return /* @__PURE__ */ jsx13(
513
+ "div",
514
+ {
515
+ ref,
516
+ className: cn("flex justify-end gap-2 border-t border-border p-4", className),
517
+ ...props,
518
+ children
519
+ }
520
+ );
521
+ }
522
+ );
523
+ DialogFooter.displayName = "DialogFooter";
524
+ var DialogClose = React10.forwardRef(
525
+ ({ children, onClick, ...props }, ref) => {
526
+ const { onOpenChange } = useDialogContext();
527
+ return /* @__PURE__ */ jsx13(
528
+ "button",
529
+ {
530
+ ref,
531
+ type: "button",
532
+ onClick: (e) => {
533
+ onClick?.(e);
534
+ onOpenChange(false);
535
+ },
536
+ ...props,
537
+ children
538
+ }
539
+ );
540
+ }
541
+ );
542
+ DialogClose.displayName = "DialogClose";
543
+ var Progress = React11.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx14(
544
+ ProgressPrimitive.Root,
545
+ {
546
+ ref,
547
+ className: cn(
548
+ "relative h-4 w-full overflow-hidden rounded-full bg-secondary",
549
+ className
550
+ ),
551
+ ...props,
552
+ children: /* @__PURE__ */ jsx14(
553
+ ProgressPrimitive.Indicator,
554
+ {
555
+ className: "h-full w-full flex-1 bg-primary transition-all",
556
+ style: { transform: `translateX(-${100 - (value || 0)}%)` }
557
+ }
558
+ )
559
+ }
560
+ ));
561
+ Progress.displayName = ProgressPrimitive.Root.displayName;
562
+ var TabsList = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
563
+ TabsPrimitive.List,
564
+ {
565
+ ref,
566
+ className: cn(
567
+ "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
568
+ className
569
+ ),
570
+ ...props
571
+ }
572
+ ));
573
+ TabsList.displayName = TabsPrimitive.List.displayName;
574
+ var TabsTrigger = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
575
+ TabsPrimitive.Trigger,
576
+ {
577
+ ref,
578
+ className: cn(
579
+ "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",
580
+ className
581
+ ),
582
+ ...props
583
+ }
584
+ ));
585
+ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
586
+ var TabsContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
587
+ TabsPrimitive.Content,
588
+ {
589
+ ref,
590
+ className: cn(
591
+ "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
592
+ className
593
+ ),
594
+ ...props
595
+ }
596
+ ));
597
+ TabsContent.displayName = TabsPrimitive.Content.displayName;
598
+ var AccordionItem = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
599
+ AccordionPrimitive.Item,
600
+ {
601
+ ref,
602
+ className: cn("border-b", className),
603
+ ...props
604
+ }
605
+ ));
606
+ AccordionItem.displayName = "AccordionItem";
607
+ var AccordionTrigger = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx16(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs3(
608
+ AccordionPrimitive.Trigger,
609
+ {
610
+ ref,
611
+ className: cn(
612
+ "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",
613
+ className
614
+ ),
615
+ ...props,
616
+ children: [
617
+ children,
618
+ /* @__PURE__ */ jsx16(ChevronDownIcon, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
619
+ ]
620
+ }
621
+ ) }));
622
+ AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
623
+ var AccordionContent = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx16(
624
+ AccordionPrimitive.Content,
625
+ {
626
+ ref,
627
+ className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
628
+ ...props,
629
+ children: /* @__PURE__ */ jsx16("div", { className: cn("pb-4 pt-0", className), children })
630
+ }
631
+ ));
632
+ AccordionContent.displayName = AccordionPrimitive.Content.displayName;
633
+ var Slider = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs4(
634
+ SliderPrimitive.Root,
635
+ {
636
+ ref,
637
+ className: cn(
638
+ "relative flex w-full touch-none select-none items-center",
639
+ className
640
+ ),
641
+ ...props,
642
+ children: [
643
+ /* @__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" }) }),
644
+ /* @__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" })
645
+ ]
646
+ }
647
+ ));
648
+ Slider.displayName = SliderPrimitive.Root.displayName;
2
649
  export {
3
650
  Button,
4
651
  buttonVariants