From c15f6e3915778daf36b9773539988633f0cdf3e5 Mon Sep 17 00:00:00 2001 From: Jaied Al Sabid <87969327+jaieds@users.noreply.github.com> Date: Sun, 15 Dec 2024 00:09:22 +0600 Subject: [PATCH 1/3] fix: Table Checkbox column width --- src/components/table/table.tsx | 40 +++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/src/components/table/table.tsx b/src/components/table/table.tsx index bcd09cc7..fc0c1b7a 100644 --- a/src/components/table/table.tsx +++ b/src/components/table/table.tsx @@ -263,18 +263,20 @@ export const TableHead: React.FC = ( { { checkboxSelection && ( - +
+ +
) } { children } @@ -348,13 +350,15 @@ export const TableRow = ( { { ...props } > { checkboxSelection && ( - - + +
+ +
) } { children } From 394019e36768274ceb25d8b3e362f7c7669ed796 Mon Sep 17 00:00:00 2001 From: Jaied Al Sabid <87969327+jaieds@users.noreply.github.com> Date: Sun, 15 Dec 2024 00:34:49 +0600 Subject: [PATCH 2/3] Updated display value --- src/components/table/table.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/table/table.tsx b/src/components/table/table.tsx index fc0c1b7a..24a85ddd 100644 --- a/src/components/table/table.tsx +++ b/src/components/table/table.tsx @@ -216,7 +216,7 @@ export const Table = ( { } > -
+
Date: Sun, 15 Dec 2024 01:41:06 +0600 Subject: [PATCH 3/3] fix: Pagination component type --- src/components/pagination/pagination.tsx | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/components/pagination/pagination.tsx b/src/components/pagination/pagination.tsx index ef8c61b2..824f15d3 100644 --- a/src/components/pagination/pagination.tsx +++ b/src/components/pagination/pagination.tsx @@ -1,10 +1,4 @@ -import { - createContext, - useContext, - forwardRef, - type ReactNode, - type ElementType, -} from 'react'; +import { createContext, useContext, forwardRef, type ReactNode } from 'react'; import { cn, callAll } from '@/utilities/functions'; import { ChevronLeft, ChevronRight } from 'lucide-react'; import { disabledClassNames, sizeClassNames } from './component-style'; @@ -33,14 +27,14 @@ export interface PaginationProps extends PaginationCommonProps { disabled?: boolean; } -export interface PaginationItemProps extends PaginationCommonProps { +export interface PaginationItemProps + extends PaginationCommonProps, + PaginationButtonProps { /** Marks the pagination item as active. */ isActive?: boolean; } export interface PaginationButtonProps extends PaginationCommonProps { - /** The element type of the pagination button. */ - as?: ElementType; /** Marks the button as active. */ isActive?: boolean; /** Disables the button. */