Skip to content

Commit a1838be

Browse files
committed
chore: update dependencies and enhance button components
- Added '@repo/typescript-config' as a devDependency in package.json and pnpm-lock.yaml for improved TypeScript configuration management. - Updated InputGroupButton, CarouselPrevious, CarouselNext, and SidebarTrigger components to include 'nativeButton' prop in their type definitions, enhancing button functionality.
1 parent fddc8bb commit a1838be

5 files changed

Lines changed: 14 additions & 4 deletions

File tree

packages/design-system/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
"tailwindcss": "^4.0.0"
9898
},
9999
"devDependencies": {
100+
"@repo/typescript-config": "workspace:*",
100101
"@tailwindcss/postcss": "^4.1.10",
101102
"@types/node": "^22.18.0",
102103
"@types/react": "^19.2.7",

packages/design-system/src/components/molecules/input-group.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function InputGroupButton({
9191
variant = "ghost",
9292
size = "xs",
9393
...props
94-
}: Omit<ButtonPrimitive.Props, "className" | "type"> &
94+
}: Omit<ButtonPrimitive.Props, "className" | "type" | "nativeButton"> &
9595
VariantProps<typeof inputGroupButtonVariants> & {
9696
variant?:
9797
| "default"
@@ -104,6 +104,7 @@ function InputGroupButton({
104104
}) {
105105
return (
106106
<ButtonPrimitive
107+
nativeButton
107108
type={type}
108109
data-size={size}
109110
className={cn(

packages/design-system/src/components/organisms/carousel.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,12 @@ function CarouselItem({
173173

174174
function CarouselPrevious({
175175
...props
176-
}: Omit<ButtonPrimitive.Props, "className">) {
176+
}: Omit<ButtonPrimitive.Props, "className" | "nativeButton">) {
177177
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
178178

179179
return (
180180
<ButtonPrimitive
181+
nativeButton
181182
data-slot="carousel-previous"
182183
className={cn(
183184
buttonVariants({ variant: "outline", size: "icon-sm" }),
@@ -196,11 +197,14 @@ function CarouselPrevious({
196197
);
197198
}
198199

199-
function CarouselNext({ ...props }: Omit<ButtonPrimitive.Props, "className">) {
200+
function CarouselNext({
201+
...props
202+
}: Omit<ButtonPrimitive.Props, "className" | "nativeButton">) {
200203
const { orientation, scrollNext, canScrollNext } = useCarousel();
201204

202205
return (
203206
<ButtonPrimitive
207+
nativeButton
204208
data-slot="carousel-next"
205209
className={cn(
206210
buttonVariants({ variant: "outline", size: "icon-sm" }),

packages/design-system/src/components/organisms/sidebar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,12 @@ function Sidebar({
260260
function SidebarTrigger({
261261
onClick,
262262
...props
263-
}: Omit<ButtonPrimitive.Props, "className">) {
263+
}: Omit<ButtonPrimitive.Props, "className" | "nativeButton">) {
264264
const { toggleSidebar } = useSidebar();
265265

266266
return (
267267
<ButtonPrimitive
268+
nativeButton
268269
data-sidebar="trigger"
269270
data-slot="sidebar-trigger"
270271
className={buttonVariants({ variant: "ghost", size: "icon-sm" })}

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)