Skip to content

Commit ee9bd36

Browse files
committed
Removed prefix
1 parent 16900fb commit ee9bd36

40 files changed

+231
-230
lines changed

packages/shadcn/components.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
"rsc": false,
55
"tsx": true,
66
"tailwind": {
7-
"config": "tailwind.config.js",
87
"css": "src/style.css",
98
"baseColor": "slate",
109
"cssVariables": true,
11-
"prefix": "bn"
10+
"prefix": ""
1211
},
1312
"aliases": {
1413
"components": "@/components",

packages/shadcn/src/badge/Badge.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const Badge = forwardRef<
3030
variant={isSelected ? "secondary" : "outline"}
3131
className={cn(
3232
className,
33-
"bn-flex bn-items-center bn-gap-1 bn-rounded-full bn-h-7 bn-px-2.5",
33+
"flex h-7 items-center gap-1 rounded-full px-2.5",
3434
)}
3535
onClick={onClick}
3636
onMouseEnter={onMouseEnter}
@@ -51,7 +51,7 @@ export const Badge = forwardRef<
5151
{badge}
5252
</ShadCNComponents.Tooltip.TooltipTrigger>
5353
<ShadCNComponents.Tooltip.TooltipContent
54-
className={"bn-flex bn-flex-col bn-items-center bn-whitespace-pre-wrap"}
54+
className={"flex flex-col items-center whitespace-pre-wrap"}
5555
>
5656
<span>{mainTooltip}</span>
5757
{secondaryTooltip && <span>{secondaryTooltip}</span>}
@@ -73,10 +73,7 @@ export const BadgeGroup = forwardRef<
7373
return (
7474
<ShadCNComponents.Tooltip.TooltipProvider delayDuration={0}>
7575
<div
76-
className={cn(
77-
className,
78-
"bn-flex bn-flex-row bn-flex-wrap bn-gap-1 bn-w-full",
79-
)}
76+
className={cn(className, "flex w-full flex-row flex-wrap gap-1")}
8077
ref={ref}
8178
>
8279
{children}

packages/shadcn/src/comments/Card.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,16 @@ export const Card = forwardRef<
2828
<ShadCNComponents.Card.Card
2929
className={cn(
3030
className,
31-
"bn-w-[300px]",
32-
selected ? "bn-bg-accent bn-text-accent-foreground" : "",
31+
"w-[300px]",
32+
selected ? "bg-accent text-accent-foreground" : "",
3333
)}
3434
onFocus={onFocus}
3535
onBlur={onBlur}
3636
tabIndex={tabIndex}
3737
ref={ref}
3838
>
3939
{headerText && (
40-
<div className={"bn-px-4 bn-pt-4 bn-italic bn-text-sm"}>
41-
{headerText}
42-
</div>
40+
<div className={"px-4 pt-4 text-sm italic"}>{headerText}</div>
4341
)}
4442
{children}
4543
</ShadCNComponents.Card.Card>
@@ -58,9 +56,9 @@ export const CardSection = forwardRef<
5856
<div
5957
className={cn(
6058
className,
61-
"bn-p-4",
62-
className?.includes("bn-thread-comments")
63-
? "bn-flex bn-flex-col bn-gap-6 bn-border-b"
59+
"p-4",
60+
className?.includes("thread-comments")
61+
? "flex flex-col gap-6 border-b"
6462
: "",
6563
)}
6664
ref={ref}
@@ -84,7 +82,7 @@ export const ExpandSectionsPrompt = forwardRef<
8482
<ShadCNComponents.Button.Button
8583
className={cn(
8684
className,
87-
"bn-p-0 bn-w-fit bn-text-foreground bn-bg-transparent hover:bn-bg-transparent",
85+
"text-foreground w-fit bg-transparent p-0 hover:bg-transparent",
8886
)}
8987
ref={ref}
9088
>

packages/shadcn/src/comments/Comment.tsx

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -25,47 +25,33 @@ const AuthorInfo = forwardRef<
2525

2626
if (authorInfo === "loading") {
2727
return (
28-
<div
29-
className={
30-
"bn-flex bn-flex-row bn-flex-nowrap bn-items-center bn-gap-4"
31-
}
32-
>
28+
<div className={"flex flex-row flex-nowrap items-center gap-4"}>
3329
<ShadCNComponents.Skeleton.Skeleton
34-
className={
35-
"bn-size-7 bn-rounded-full bn-bg-neutral-400 bn-animate-pulse"
36-
}
30+
className={"size-7 animate-pulse rounded-full bg-neutral-400"}
3731
/>
3832
<ShadCNComponents.Skeleton.Skeleton
39-
className={
40-
"bn-h-3 bn-w-32 bn-rounded-full bn-bg-neutral-400 bn-animate-pulse"
41-
}
33+
className={"h-3 w-32 animate-pulse rounded-full bg-neutral-400"}
4234
/>
4335
</div>
4436
);
4537
}
4638

4739
return (
48-
<div
49-
className={"bn-flex bn-flex-row bn-flex-nowrap bn-items-center bn-gap-4"}
50-
>
40+
<div className={"flex flex-row flex-nowrap items-center gap-4"}>
5141
<ShadCNComponents.Avatar.Avatar>
5242
<ShadCNComponents.Avatar.AvatarImage
5343
src={authorInfo.avatarUrl}
5444
alt={authorInfo.username}
55-
className={"bn-h-7 bn-rounded-full"}
45+
className={"h-7 rounded-full"}
5646
/>
5747
<ShadCNComponents.Avatar.AvatarFallback>
5848
{authorInfo.username[0]}
5949
</ShadCNComponents.Avatar.AvatarFallback>
6050
</ShadCNComponents.Avatar.Avatar>
6151

62-
<div
63-
className={
64-
"bn-flex bn-flex-row bn-flex-nowrap bn-items-center bn-gap-2"
65-
}
66-
>
67-
<span className={"bn-text-sm bn-font-bold"}>{authorInfo.username}</span>
68-
<span className={"bn-text-xs"}>
52+
<div className={"flex flex-row flex-nowrap items-center gap-2"}>
53+
<span className={"text-sm font-bold"}>{authorInfo.username}</span>
54+
<span className={"text-xs"}>
6955
{timeString} {edited && `(${dict.comments.edited})`}
7056
</span>
7157
</div>
@@ -103,15 +89,12 @@ export const Comment = forwardRef<
10389
return (
10490
<div
10591
ref={ref}
106-
className={cn(className, "bn-relative bn-flex bn-flex-col bn-gap-2")}
92+
className={cn(className, "relative flex flex-col gap-2")}
10793
onMouseEnter={() => setHovered(true)}
10894
onMouseLeave={() => setHovered(false)}
10995
>
11096
{doShowActions ? (
111-
<div
112-
className={"bn-absolute bn-right-0 bn-top-0 bn-z-10"}
113-
ref={focusRef}
114-
>
97+
<div className={"absolute right-0 top-0 z-10"} ref={focusRef}>
11598
{actions}
11699
</div>
117100
) : null}

packages/shadcn/src/components/ui/avatar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function Avatar({
1313
<AvatarPrimitive.Root
1414
data-slot="avatar"
1515
className={cn(
16-
"bn:relative bn:flex bn:size-8 bn:shrink-0 bn:overflow-hidden bn:rounded-full",
16+
"relative flex size-8 shrink-0 overflow-hidden rounded-full",
1717
className,
1818
)}
1919
{...props}
@@ -28,7 +28,7 @@ function AvatarImage({
2828
return (
2929
<AvatarPrimitive.Image
3030
data-slot="avatar-image"
31-
className={cn("bn:aspect-square bn:size-full", className)}
31+
className={cn("aspect-square size-full", className)}
3232
{...props}
3333
/>
3434
);
@@ -42,7 +42,7 @@ function AvatarFallback({
4242
<AvatarPrimitive.Fallback
4343
data-slot="avatar-fallback"
4444
className={cn(
45-
"bn:bg-muted bn:flex bn:size-full bn:items-center bn:justify-center bn:rounded-full",
45+
"bg-muted flex size-full items-center justify-center rounded-full",
4646
className,
4747
)}
4848
{...props}

packages/shadcn/src/components/ui/badge.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ import { cva, type VariantProps } from "class-variance-authority";
55
import { cn } from "../../lib/utils";
66

77
const badgeVariants = cva(
8-
"bn:inline-flex bn:items-center bn:justify-center bn:rounded-md bn:border bn:px-2 bn:py-0.5 bn:text-xs bn:font-medium bn:w-fit bn:whitespace-nowrap bn:shrink-0 bn:[&>svg]:size-3 bn:gap-1 bn:[&>svg]:pointer-events-none bn:focus-visible:border-ring bn:focus-visible:ring-ring/50 bn:focus-visible:ring-[3px] bn:aria-invalid:ring-destructive/20 bn:dark:aria-invalid:ring-destructive/40 bn:aria-invalid:border-destructive bn:transition-[color,box-shadow] bn:overflow-hidden",
8+
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
99
{
1010
variants: {
1111
variant: {
1212
default:
13-
"bn:border-transparent bn:bg-primary bn:text-primary-foreground bn:[a&]:hover:bg-primary/90",
13+
"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
1414
secondary:
15-
"bn:border-transparent bn:bg-secondary bn:text-secondary-foreground bn:[a&]:hover:bg-secondary/90",
15+
"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
1616
destructive:
17-
"bn:border-transparent bn:bg-destructive bn:text-white bn:[a&]:hover:bg-destructive/90 bn:focus-visible:ring-destructive/20 bn:dark:focus-visible:ring-destructive/40 bn:dark:bg-destructive/60",
17+
"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
1818
outline:
19-
"bn:text-foreground bn:[a&]:hover:bg-accent bn:[a&]:hover:text-accent-foreground",
19+
"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
2020
},
2121
},
2222
defaultVariants: {

packages/shadcn/src/components/ui/button.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,27 @@ import { cva, type VariantProps } from "class-variance-authority";
55
import { cn } from "../../lib/utils";
66

77
const buttonVariants = cva(
8-
"bn:inline-flex bn:items-center bn:justify-center bn:gap-2 bn:whitespace-nowrap bn:rounded-md bn:text-sm bn:font-medium bn:transition-all bn:disabled:pointer-events-none bn:disabled:opacity-50 bn:[&_svg]:pointer-events-none bn:[&_svg:not([class*=size-])]:size-4 bn:shrink-0 bn:[&_svg]:shrink-0 bn:outline-none bn:focus-visible:border-ring bn:focus-visible:ring-ring/50 bn:focus-visible:ring-[3px] bn:aria-invalid:ring-destructive/20 bn:dark:aria-invalid:ring-destructive/40 bn:aria-invalid:border-destructive",
8+
"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:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
99
{
1010
variants: {
1111
variant: {
1212
default:
13-
"bn:bg-primary bn:text-primary-foreground bn:shadow-xs bn:hover:bg-primary/90",
13+
"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
1414
destructive:
15-
"bn:bg-destructive bn:text-white bn:shadow-xs bn:hover:bg-destructive/90 bn:focus-visible:ring-destructive/20 bn:dark:focus-visible:ring-destructive/40 bn:dark:bg-destructive/60",
15+
"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
1616
outline:
17-
"bn:border bn:bg-background bn:shadow-xs bn:hover:bg-accent bn:hover:text-accent-foreground bn:dark:bg-input/30 bn:dark:border-input bn:dark:hover:bg-input/50",
17+
"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
1818
secondary:
19-
"bn:bg-secondary bn:text-secondary-foreground bn:shadow-xs bn:hover:bg-secondary/80",
19+
"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
2020
ghost:
21-
"bn:hover:bg-accent bn:hover:text-accent-foreground bn:dark:hover:bg-accent/50",
22-
link: "bn:text-primary bn:underline-offset-4 bn:hover:underline",
21+
"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
22+
link: "text-primary underline-offset-4 hover:underline",
2323
},
2424
size: {
25-
default: "bn:h-9 bn:px-4 bn:py-2 bn:has-[>svg]:px-3",
26-
sm: "bn:h-8 bn:rounded-md bn:gap-1.5 bn:px-3 bn:has-[>svg]:px-2.5",
27-
lg: "bn:h-10 bn:rounded-md bn:px-6 bn:has-[>svg]:px-4",
28-
icon: "bn:size-9",
25+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
26+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
27+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
28+
icon: "size-9",
2929
},
3030
},
3131
defaultVariants: {

packages/shadcn/src/components/ui/card.tsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function Card({ className, ...props }: React.ComponentProps<"div">) {
77
<div
88
data-slot="card"
99
className={cn(
10-
"bn:bg-card bn:text-card-foreground bn:flex bn:flex-col bn:gap-6 bn:rounded-xl bn:border bn:py-6 bn:shadow-sm",
10+
"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
1111
className,
1212
)}
1313
{...props}
@@ -20,7 +20,7 @@ function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
2020
<div
2121
data-slot="card-header"
2222
className={cn(
23-
"bn:@container/card-header bn:grid bn:auto-rows-min bn:grid-rows-[auto_auto] bn:items-start bn:gap-1.5 bn:px-6 bn:has-data-[slot=card-action]:grid-cols-[1fr_auto] bn:[.border-b]:pb-6",
23+
"@container/card-header has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6",
2424
className,
2525
)}
2626
{...props}
@@ -32,7 +32,7 @@ function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
3232
return (
3333
<div
3434
data-slot="card-title"
35-
className={cn("bn:leading-none bn:font-semibold", className)}
35+
className={cn("font-semibold leading-none", className)}
3636
{...props}
3737
/>
3838
);
@@ -42,7 +42,7 @@ function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
4242
return (
4343
<div
4444
data-slot="card-description"
45-
className={cn("bn:text-muted-foreground bn:text-sm", className)}
45+
className={cn("text-muted-foreground text-sm", className)}
4646
{...props}
4747
/>
4848
);
@@ -53,7 +53,7 @@ function CardAction({ className, ...props }: React.ComponentProps<"div">) {
5353
<div
5454
data-slot="card-action"
5555
className={cn(
56-
"bn:col-start-2 bn:row-span-2 bn:row-start-1 bn:self-start bn:justify-self-end",
56+
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
5757
className,
5858
)}
5959
{...props}
@@ -65,7 +65,7 @@ function CardContent({ className, ...props }: React.ComponentProps<"div">) {
6565
return (
6666
<div
6767
data-slot="card-content"
68-
className={cn("bn:px-6", className)}
68+
className={cn("px-6", className)}
6969
{...props}
7070
/>
7171
);
@@ -75,10 +75,7 @@ function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
7575
return (
7676
<div
7777
data-slot="card-footer"
78-
className={cn(
79-
"bn:flex bn:items-center bn:px-6 bn:[.border-t]:pt-6",
80-
className,
81-
)}
78+
className={cn("[.border-t]:pt-6 flex items-center px-6", className)}
8279
{...props}
8380
/>
8481
);

0 commit comments

Comments
 (0)