@rabex-kit/rabex-ui 0.2.10 → 0.2.12
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/IconButton/index.d.ts +2 -12
- package/dist/rabex-ui.cjs.development.js +1 -1
- package/dist/rabex-ui.cjs.development.js.map +1 -1
- package/dist/rabex-ui.cjs.production.min.js +1 -1
- package/dist/rabex-ui.cjs.production.min.js.map +1 -1
- package/dist/rabex-ui.esm.js +1 -1
- package/dist/rabex-ui.esm.js.map +1 -1
- package/package.json +1 -1
@@ -1,21 +1,11 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { IconButtonProps as MuiIconButtonProps } from '@mui/material';
|
3
|
-
|
4
|
-
interface IconButtonPropsSizeOverrides {
|
5
|
-
xs: true;
|
6
|
-
sm: true;
|
7
|
-
md: true;
|
8
|
-
lg: true;
|
9
|
-
small: true;
|
10
|
-
medium: true;
|
11
|
-
large: true;
|
12
|
-
}
|
13
|
-
}
|
14
|
-
export interface IconButtonProps extends MuiIconButtonProps {
|
3
|
+
export interface IconButtonProps extends Omit<MuiIconButtonProps, 'size'> {
|
15
4
|
variant?: 'circular' | 'square' | 'rounded';
|
16
5
|
hasBg?: boolean;
|
17
6
|
disableOpacity?: boolean;
|
18
7
|
bgColor?: string;
|
8
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'small' | 'medium' | 'large';
|
19
9
|
}
|
20
10
|
/**
|
21
11
|
* Icon buttons are commonly found in app bars and toolbars.
|
@@ -1286,7 +1286,7 @@ var Grid = function Grid(_ref) {
|
|
1286
1286
|
var IconButton = /*#__PURE__*/styled(MuiIconButton, {
|
1287
1287
|
name: 'MuiIconButton',
|
1288
1288
|
shouldForwardProp: function shouldForwardProp(prop) {
|
1289
|
-
return !['hasBg', 'disableOpacity', 'bgColor', 'variant'].includes(prop.toString());
|
1289
|
+
return !['hasBg', 'disableOpacity', 'bgColor', 'variant', 'size'].includes(prop.toString());
|
1290
1290
|
}
|
1291
1291
|
})(function (_ref) {
|
1292
1292
|
var theme = _ref.theme,
|