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