Skip to content

Commit 481217f

Browse files
committed
chore: address-feedback
1 parent 2f63149 commit 481217f

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

src/lib/pagination/compact.tsx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,26 @@ import { cn } from "../../utils";
66
import { Button, type ButtonProps } from "react-aria-components";
77
import clsx from "clsx";
88

9-
const ArrowButton: React.FC<ButtonProps> = ({ className, ...props }) => {
9+
const ArrowButton: React.FC<ButtonProps> = ({
10+
children,
11+
isDisabled,
12+
className,
13+
...props
14+
}) => {
1015
return (
1116
<Button
1217
className={cn(
13-
"h-6 w-6 rounded-full bg-none hover:enabled:cursor-pointer hover:disabled:cursor-default",
14-
"[&>svg]:ease-ease [&>svg]:h-6 [&>svg]:w-6 [&>svg]:transition-[fill]",
18+
"size-6 rounded-full bg-none hover:enabled:cursor-pointer hover:disabled:cursor-default",
19+
"[&>svg]:ease-ease [&>svg]:size-6 [&>svg]:transition-[fill]",
1520
":hover:enabled:[&>svg]:fill-klerosUIComponentsSecondaryBlue",
16-
props.isDisabled
21+
isDisabled
1722
? ["[&>svg]:fill-klerosUIComponentsStroke"]
1823
: ["[&>svg]:fill-klerosUIComponentsPrimaryBlue"],
1924
className,
2025
)}
2126
{...props}
2227
>
23-
{props.children}
28+
{children}
2429
</Button>
2530
);
2631
};

src/lib/pagination/standard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const PageButton: React.FC<ButtonProps & { selected?: boolean }> = ({
1414
<Button
1515
{...props}
1616
className={cn(
17-
"rounded-base m-1 h-8 w-8 border",
17+
"rounded-base m-1 size-8 border",
1818
"flex items-center justify-center text-sm",
1919
"hover:cursor-pointer hover:disabled:cursor-default",
2020
selected

src/lib/pagination/tabs.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ interface TabsItem {
2626
/** Content to display when this tab is selected. */
2727
content: ReactNode;
2828
/** Props for Tab
29-
* {@link https://react-spectrum.adobe.com/react-aria/Tabs.html#tab | TabProps}
29+
* [See TabProps](https://react-spectrum.adobe.com/react-aria/Tabs.html#tab)
3030
*/
3131
tabProps?: TabProps;
3232
/**
3333
* Can be used to provide separate styling for a TabPanel, apart from one passed in panelClassName parent props.
34-
* {@link https://react-spectrum.adobe.com/react-aria/Tabs.html#tabpanel | TabListProps}
34+
* [See TabPanelProps](https://react-spectrum.adobe.com/react-aria/Tabs.html#tabpanel)
3535
*/
3636
tabPanelProps?: TabPanelProps;
3737
}
@@ -45,11 +45,12 @@ interface TabsProps extends Omit<AriaTabsProps, "orientation"> {
4545
panelClassName?: string;
4646
/**
4747
* Can be used to override default style.
48-
* {@link https://react-spectrum.adobe.com/react-aria/Tabs.html#tablist | TabListProps}
48+
* [See TablistProps](https://react-spectrum.adobe.com/react-aria/Tabs.html#tablist)
4949
*/
5050
tabListProps?: TabListProps<TabProps>;
5151
}
5252

53+
/** Tabs organize content into multiple sections and allow users to navigate between them. */
5354
function Tabs({
5455
items,
5556
className,
@@ -104,7 +105,7 @@ function Tabs({
104105
(Icon && (
105106
<Icon
106107
className={cn(
107-
"hover-short-transition h-4 w-4",
108+
"hover-short-transition size-4",
108109
"fill-klerosUIComponentsPrimaryText mr-4",
109110
id === selectedKey && "fill-klerosUIComponentsPrimaryBlue",
110111
disabled && "fill-klerosUIComponentsStroke",

0 commit comments

Comments
 (0)