@rabex-kit/rabex-ui 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Button/index.d.ts
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ButtonProps as MuiButtonProps } from '@mui/material';
|
3
|
-
export declare type ButtonProps = Omit<MuiButtonProps, 'size' | 'color' | 'component' | 'isIcon'> & {
|
3
|
+
export declare type ButtonProps = Omit<MuiButtonProps, 'size' | 'color' | 'component' | 'isIcon' | 'variant'> & {
|
4
4
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
5
5
|
isIcon?: boolean;
|
6
6
|
color?: 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
|
7
|
+
variant?: 'contained' | 'containedSecondary' | 'outlined' | 'text';
|
7
8
|
component?: React.ElementType;
|
8
9
|
};
|
9
10
|
declare const Button: React.FC<ButtonProps>;
|
@@ -17,6 +17,12 @@ declare module '@mui/material/Button' {
|
|
17
17
|
lg: true;
|
18
18
|
xl: true;
|
19
19
|
}
|
20
|
+
interface ButtonPropsVariantOverrides {
|
21
|
+
contained: true;
|
22
|
+
containedSecondary: true;
|
23
|
+
outlined: true;
|
24
|
+
text: true;
|
25
|
+
}
|
20
26
|
}
|
21
27
|
declare const _default: {
|
22
28
|
components: {
|