Skip to content

Commit e9081ea

Browse files
committed
fix: progress typing
1 parent 7e441d6 commit e9081ea

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/composites/Progress/index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ import { Box } from '../../primitives';
33
import type { InterfaceBoxProps } from '../../primitives/Box';
44
import { usePropsResolution } from '../../../hooks/useThemeProps';
55
import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps';
6-
import type { CustomProps, ResponsiveValue } from '../../../components/types';
7-
import type { ISizes } from '../../../theme/base/sizes';
6+
import type {
7+
CustomProps,
8+
ThemeComponentSizeType,
9+
} from '../../../components/types';
810

911
export interface InterfaceProgressProps
1012
extends InterfaceBoxProps<IProgressProps> {
@@ -17,7 +19,7 @@ export interface InterfaceProgressProps
1719
* Defines height of Progress
1820
* @default sm
1921
*/
20-
size?: ResponsiveValue<ISizes | (string & {}) | number>;
22+
size?: ThemeComponentSizeType<'Progress'>;
2123

2224
/**
2325
* The color scheme of the progress. This should be one of the color keys in the theme (e.g."green", "red").

0 commit comments

Comments
 (0)