@rabex-kit/rabex-ui 0.2.76 → 0.2.77

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.
@@ -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
  *
@@ -7325,6 +7325,9 @@ SegmentedControlTab.defaultProps = {};
7325
7325
  var Switch = function Switch(props) {
7326
7326
  return React__default.createElement(MuiSwitch, Object.assign({}, props));
7327
7327
  };
7328
+ Switch.defaultProps = {
7329
+ size: '2xs'
7330
+ };
7328
7331
 
7329
7332
  exports.useMediaQuery = useMediaQuery;
7330
7333
  exports.useScrollTrigger = useScrollTrigger_js;