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