@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.
@@ -11,7 +11,7 @@ export declare type CheckboxProps = MuiCheckboxProps & {
11
11
  *
12
12
  *
13
13
  * ```typescript
14
- * import { Checkbox } from '@rabex-kit/core';
14
+ * import { Checkbox } from '@rabex-kit/rabex-ui';
15
15
  * ```
16
16
  *
17
17
  * @param props
@@ -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/core';
12
+ * import { FormControl } from '@rabex-kit/rabex-ui';
13
13
  * ```
14
14
  *
15
15
  *
@@ -5,6 +5,12 @@ declare const _default: {
5
5
  ownerState: any;
6
6
  theme: any;
7
7
  }) => {
8
+ padding: string;
9
+ color: any;
10
+ '& .MuiSvgIcon-root': {
11
+ fontSize: string;
12
+ borderRadius: string;
13
+ };
8
14
  '&.Mui-checked': {
9
15
  color?: any;
10
16
  };
@@ -5,6 +5,11 @@ declare const _default: {
5
5
  ownerState: any;
6
6
  theme: any;
7
7
  }) => {
8
+ marginLeft: number;
9
+ marginRight: number;
10
+ label: {
11
+ paddingRight: string;
12
+ };
8
13
  '&.error > .MuiCheckbox-root': {
9
14
  color: any;
10
15
  };
@@ -1649,7 +1649,7 @@ var _excluded$3 = ["error"];
1649
1649
  *
1650
1650
  *
1651
1651
  * ```typescript
1652
- * import { Checkbox } from '@rabex-kit/core';
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/core';
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.grayBackground.A100
5451
+ color: theme.palette.secondary[500]
5440
5452
  }),
5441
5453
  '&.Mui-disabled': {
5442
- color: theme.palette.grayBackground.A40
5454
+ color: theme.palette.base[300]
5443
5455
  },
5444
5456
  '&.error': {
5445
- color: theme.palette.error.main
5457
+ color: theme.palette.error[400]
5446
5458
  },
5447
5459
  '&.error + .MuiFormControlLabel-label': {
5448
- color: theme.palette.error.main
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
  },