@rabex-kit/rabex-ui 0.2.76 → 0.2.79
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/Checkbox/index.d.ts +1 -1
- package/dist/FormControl/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +3 -1
- package/dist/Theme/Checkbox/index.d.ts +6 -0
- package/dist/rabex-ui.cjs.development.js +17 -2
- 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 +17 -2
- package/dist/rabex-ui.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/Checkbox/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare type FormControlProps = MuiFormControlProps;
|
|
|
9
9
|
* You can read Material-UI FormControl Documentation [here](https://mui.com/material-ui/api/form-control/).
|
|
10
10
|
*
|
|
11
11
|
* ```typescript
|
|
12
|
-
* import { FormControl } from '@rabex-kit/
|
|
12
|
+
* import { FormControl } from '@rabex-kit/rabex-ui';
|
|
13
13
|
* ```
|
|
14
14
|
*
|
|
15
15
|
*
|
package/dist/Switch/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SwitchProps as MuiSwitchProps } from '@mui/material';
|
|
3
|
-
export declare type SwitchProps = MuiSwitchProps;
|
|
4
3
|
declare module '@mui/material/Switch' {
|
|
5
4
|
interface SwitchPropsSizeOverrides {
|
|
6
5
|
small: true;
|
|
@@ -10,6 +9,9 @@ declare module '@mui/material/Switch' {
|
|
|
10
9
|
'2xs': true;
|
|
11
10
|
}
|
|
12
11
|
}
|
|
12
|
+
export declare type SwitchProps = Omit<MuiSwitchProps, 'size'> & {
|
|
13
|
+
size: 'sm' | 'xs' | '2xs' | 'small' | 'medium';
|
|
14
|
+
};
|
|
13
15
|
/**
|
|
14
16
|
* Rabex Switch
|
|
15
17
|
*
|
|
@@ -1649,7 +1649,7 @@ var _excluded$3 = ["error"];
|
|
|
1649
1649
|
*
|
|
1650
1650
|
*
|
|
1651
1651
|
* ```typescript
|
|
1652
|
-
* import { Checkbox } from '@rabex-kit/
|
|
1652
|
+
* import { Checkbox } from '@rabex-kit/rabex-ui';
|
|
1653
1653
|
* ```
|
|
1654
1654
|
*
|
|
1655
1655
|
* @param props
|
|
@@ -1666,6 +1666,11 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
1666
1666
|
}
|
|
1667
1667
|
}));
|
|
1668
1668
|
};
|
|
1669
|
+
Checkbox.displayName = 'Checkbox';
|
|
1670
|
+
Checkbox.defaultProps = {
|
|
1671
|
+
size: 'small',
|
|
1672
|
+
disableRipple: true
|
|
1673
|
+
};
|
|
1669
1674
|
|
|
1670
1675
|
var _excluded$4 = ["label", "size", "mode"];
|
|
1671
1676
|
var getTypography = function getTypography(size, mode) {
|
|
@@ -1896,7 +1901,7 @@ var DynamicBackgroundContainer = function DynamicBackgroundContainer(_ref) {
|
|
|
1896
1901
|
* You can read Material-UI FormControl Documentation [here](https://mui.com/material-ui/api/form-control/).
|
|
1897
1902
|
*
|
|
1898
1903
|
* ```typescript
|
|
1899
|
-
* import { FormControl } from '@rabex-kit/
|
|
1904
|
+
* import { FormControl } from '@rabex-kit/rabex-ui';
|
|
1900
1905
|
* ```
|
|
1901
1906
|
*
|
|
1902
1907
|
*
|
|
@@ -5435,6 +5440,13 @@ var RabexCheckbox = {
|
|
|
5435
5440
|
var ownerState = _ref.ownerState,
|
|
5436
5441
|
theme = _ref.theme;
|
|
5437
5442
|
return {
|
|
5443
|
+
padding: '4px',
|
|
5444
|
+
// Default unchecked state
|
|
5445
|
+
color: theme.palette.base[400],
|
|
5446
|
+
'& .MuiSvgIcon-root': {
|
|
5447
|
+
fontSize: '16px',
|
|
5448
|
+
borderRadius: '4px' // Optional: slight rounding for modern look
|
|
5449
|
+
},
|
|
5438
5450
|
'&.Mui-checked': _extends({}, ownerState.color === 'secondary' && {
|
|
5439
5451
|
color: theme.palette.grayBackground.A100
|
|
5440
5452
|
}),
|
|
@@ -7325,6 +7337,9 @@ SegmentedControlTab.defaultProps = {};
|
|
|
7325
7337
|
var Switch = function Switch(props) {
|
|
7326
7338
|
return React__default.createElement(MuiSwitch, Object.assign({}, props));
|
|
7327
7339
|
};
|
|
7340
|
+
Switch.defaultProps = {
|
|
7341
|
+
size: '2xs'
|
|
7342
|
+
};
|
|
7328
7343
|
|
|
7329
7344
|
exports.useMediaQuery = useMediaQuery;
|
|
7330
7345
|
exports.useScrollTrigger = useScrollTrigger_js;
|