@shipsite.dev/components 0.2.29 → 0.2.31

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.
@@ -0,0 +1,55 @@
1
+ "use client";
2
+
3
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
4
+ import * as React from "react";
5
+
6
+ import { cn } from "../lib/utils";
7
+
8
+ const Tabs = TabsPrimitive.Root;
9
+
10
+ function TabsList({
11
+ className,
12
+ ...props
13
+ }: React.ComponentProps<typeof TabsPrimitive.List>) {
14
+ return (
15
+ <TabsPrimitive.List
16
+ data-slot="tabs-list"
17
+ className={cn("text-muted-foreground flex items-center", className)}
18
+ {...props}
19
+ />
20
+ );
21
+ }
22
+
23
+ function TabsTrigger({
24
+ className,
25
+ ...props
26
+ }: React.ComponentProps<typeof TabsPrimitive.Trigger>) {
27
+ return (
28
+ <TabsPrimitive.Trigger
29
+ data-slot="tabs-trigger"
30
+ className={cn(
31
+ "data-[state=active]:glass-4 ring-offset-background hover:bg-accent/50 hover:text-accent-foreground focus-visible:ring-ring data-[state=active]:text-foreground flex flex-col gap-3 rounded-md border border-transparent px-5 pt-4 pb-6 text-left text-sm font-medium transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-xl dark:border-b-0",
32
+ className,
33
+ )}
34
+ {...props}
35
+ />
36
+ );
37
+ }
38
+
39
+ function TabsContent({
40
+ className,
41
+ ...props
42
+ }: React.ComponentProps<typeof TabsPrimitive.Content>) {
43
+ return (
44
+ <TabsPrimitive.Content
45
+ data-slot="tabs-content"
46
+ className={cn(
47
+ "border-border dark:border-border/20 bg-input/30 ring-offset-background focus-visible:ring-ring dark:bg-card relative overflow-hidden rounded-lg border focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden",
48
+ className,
49
+ )}
50
+ {...props}
51
+ />
52
+ );
53
+ }
54
+
55
+ export { Tabs, TabsContent, TabsList, TabsTrigger };