@rabex-kit/rabex-ui 0.2.77 → 0.2.81
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/Theme/Checkbox/index.d.ts +6 -0
- package/dist/Theme/FormControlLabel/index.d.ts +5 -0
- package/dist/rabex-ui.cjs.development.js +23 -6
- 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 +23 -6
- 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
|
*
|
|
@@ -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,17 +5440,24 @@ 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'
|
|
5449
|
+
},
|
|
5438
5450
|
'&.Mui-checked': _extends({}, ownerState.color === 'secondary' && {
|
|
5439
|
-
color: theme.palette.
|
|
5451
|
+
color: theme.palette.secondary[500]
|
|
5440
5452
|
}),
|
|
5441
5453
|
'&.Mui-disabled': {
|
|
5442
|
-
color: theme.palette.
|
|
5454
|
+
color: theme.palette.base[300]
|
|
5443
5455
|
},
|
|
5444
5456
|
'&.error': {
|
|
5445
|
-
color: theme.palette.error
|
|
5457
|
+
color: theme.palette.error[400]
|
|
5446
5458
|
},
|
|
5447
5459
|
'&.error + .MuiFormControlLabel-label': {
|
|
5448
|
-
color: theme.palette.error
|
|
5460
|
+
color: theme.palette.error[400]
|
|
5449
5461
|
}
|
|
5450
5462
|
};
|
|
5451
5463
|
}
|
|
@@ -5581,6 +5593,11 @@ var RabexFormControlLabel = {
|
|
|
5581
5593
|
root: function root(_ref) {
|
|
5582
5594
|
var theme = _ref.theme;
|
|
5583
5595
|
return {
|
|
5596
|
+
marginLeft: 0,
|
|
5597
|
+
marginRight: 0,
|
|
5598
|
+
label: {
|
|
5599
|
+
paddingRight: '8px'
|
|
5600
|
+
},
|
|
5584
5601
|
'&.error > .MuiCheckbox-root': {
|
|
5585
5602
|
color: theme.palette.error.main
|
|
5586
5603
|
},
|