Skip to content

Commit fd25450

Browse files
committed
fix: adding size number to utils and removing it from button types
1 parent 43d161d commit fd25450

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/primitives/Button/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export interface InterfaceButtonProps
6363
/**
6464
* The size of the button.
6565
*/
66-
size?: ThemeComponentSizeType<'Button'> | number;
66+
size?: ThemeComponentSizeType<'Button'>;
6767
// size?: SizeType;
6868
/**
6969
* The start icon element to use in the button.

src/components/types/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export type SizeType = ResponsiveValue<
2121
export type ThemeComponentSizeType<
2222
Component extends keyof ITheme['components']
2323
> = 'sizes' extends keyof ITheme['components'][Component]
24-
? keyof ITheme['components'][Component]['sizes'] | (string & {})
24+
? keyof ITheme['components'][Component]['sizes'] | (string & {}) | number
2525
: never;
2626

2727
export type CombinedSizeType<Component extends keyof ITheme['components']> =

0 commit comments

Comments
 (0)