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

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