@rabex-kit/rabex-ui 0.1.0 → 0.1.2

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.
@@ -1284,7 +1284,7 @@ function _handleHelperColor(props, key) {
1284
1284
  var MuiInputStyled = /*#__PURE__*/styled(MuiInput, {
1285
1285
  name: 'MuiInput',
1286
1286
  shouldForwardProp: function shouldForwardProp(prop) {
1287
- return !['hasBg', 'titleProps', 'helperText', 'helperTextIcon', 'helperTextProps', 'helperTextEndAdornment', 'helperTextEndAdornmentProps', 'success', 'valueFormat', 'valueFormatOption'].includes(prop);
1287
+ return !['hasBg', 'fill', 'titleProps', 'helperText', 'helperTextIcon', 'helperTextProps', 'helperTextEndAdornment', 'helperTextEndAdornmentProps', 'success', 'valueFormat', 'valueFormatOption'].includes(prop);
1288
1288
  }
1289
1289
  })(function () {
1290
1290
  return {};
@@ -1357,6 +1357,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1357
1357
  Input.defaultProps = {
1358
1358
  success: false,
1359
1359
  hasBg: false,
1360
+ fill: false,
1360
1361
  size: 'md',
1361
1362
  disableUnderline: true,
1362
1363
  titleProps: {
@@ -2468,15 +2469,16 @@ var spaceBasedSize = function spaceBasedSize(theme) {
2468
2469
  var components = {
2469
2470
  styleOverrides: {
2470
2471
  root: function root(_ref) {
2472
+ var _spaceBasedSize$size, _spaceBasedSize$size2, _spaceBasedSize$size3, _spaceBasedSize$size4, _spaceBasedSize$size5;
2471
2473
  var theme = _ref.theme,
2472
2474
  ownerState = _ref.ownerState;
2473
2475
  var hasStartIcon = !!(ownerState !== null && ownerState !== void 0 && ownerState.startIcon);
2474
2476
  var hasEndIcon = !!(ownerState !== null && ownerState !== void 0 && ownerState.endIcon);
2475
2477
  var size = (ownerState === null || ownerState === void 0 ? void 0 : ownerState.size) || 'md';
2476
2478
  var overridenRootStyles = {
2477
- gap: spaceBasedSize(theme)[size].gap,
2478
- paddingLeft: hasStartIcon ? spaceBasedSize(theme)[size].iconSidePadding : spaceBasedSize(theme)[size].textSidePadding,
2479
- paddingRight: hasEndIcon ? spaceBasedSize(theme)[size].iconSidePadding : spaceBasedSize(theme)[size].textSidePadding
2479
+ gap: (_spaceBasedSize$size = spaceBasedSize(theme)[size]) === null || _spaceBasedSize$size === void 0 ? void 0 : _spaceBasedSize$size.gap,
2480
+ paddingLeft: hasStartIcon ? (_spaceBasedSize$size2 = spaceBasedSize(theme)[size]) === null || _spaceBasedSize$size2 === void 0 ? void 0 : _spaceBasedSize$size2.iconSidePadding : (_spaceBasedSize$size3 = spaceBasedSize(theme)[size]) === null || _spaceBasedSize$size3 === void 0 ? void 0 : _spaceBasedSize$size3.textSidePadding,
2481
+ paddingRight: hasEndIcon ? (_spaceBasedSize$size4 = spaceBasedSize(theme)[size]) === null || _spaceBasedSize$size4 === void 0 ? void 0 : _spaceBasedSize$size4.iconSidePadding : (_spaceBasedSize$size5 = spaceBasedSize(theme)[size]) === null || _spaceBasedSize$size5 === void 0 ? void 0 : _spaceBasedSize$size5.textSidePadding
2480
2482
  };
2481
2483
  return overridenRootStyles;
2482
2484
  },
@@ -2710,6 +2712,97 @@ var components = {
2710
2712
  borderRadius: theme.spacing(2)
2711
2713
  };
2712
2714
  }
2715
+ },
2716
+ /// old classes
2717
+ {
2718
+ props: {
2719
+ size: 'medium'
2720
+ },
2721
+ style: function style(_ref16) {
2722
+ var theme = _ref16.theme;
2723
+ return {
2724
+ padding: theme.spacing(2.5, 4),
2725
+ fontSize: '14px',
2726
+ lineHeight: '28px',
2727
+ fontWeight: 600
2728
+ };
2729
+ }
2730
+ }, {
2731
+ props: {
2732
+ size: 'small'
2733
+ },
2734
+ style: function style(_ref17) {
2735
+ var theme = _ref17.theme;
2736
+ return {
2737
+ padding: theme.spacing(1.5, 4),
2738
+ fontSize: '14px',
2739
+ lineHeight: '28px',
2740
+ fontWeight: 600
2741
+ };
2742
+ }
2743
+ }, {
2744
+ props: {
2745
+ size: 'xsmall'
2746
+ },
2747
+ style: function style(_ref18) {
2748
+ var theme = _ref18.theme;
2749
+ return {
2750
+ padding: theme.spacing(1, 4),
2751
+ fontSize: '14px',
2752
+ lineHeight: '24px',
2753
+ fontWeight: 100
2754
+ };
2755
+ }
2756
+ }, {
2757
+ props: {
2758
+ size: 'medium',
2759
+ isIcon: true
2760
+ },
2761
+ style: function style(_ref19) {
2762
+ var theme = _ref19.theme;
2763
+ return {
2764
+ minWidth: 'unset',
2765
+ padding: theme.spacing(3.5, 3.5)
2766
+ };
2767
+ }
2768
+ }, {
2769
+ props: {
2770
+ size: 'small',
2771
+ isIcon: true
2772
+ },
2773
+ style: function style(_ref20) {
2774
+ var theme = _ref20.theme;
2775
+ return {
2776
+ minWidth: 'unset',
2777
+ padding: theme.spacing(2.5, 2.5)
2778
+ };
2779
+ }
2780
+ }, {
2781
+ props: {
2782
+ size: 'xsmall',
2783
+ isIcon: true
2784
+ },
2785
+ style: function style(_ref21) {
2786
+ var theme = _ref21.theme;
2787
+ return {
2788
+ minWidth: 'unset',
2789
+ padding: theme.spacing(2)
2790
+ };
2791
+ }
2792
+ }, {
2793
+ props: {
2794
+ radius: 'medium'
2795
+ },
2796
+ style: {
2797
+ borderRadius: 8
2798
+ }
2799
+ }, {
2800
+ props: {
2801
+ radius: 'small'
2802
+ },
2803
+ style: {
2804
+ borderRadius: 6
2805
+ }
2713
2806
  }]
2714
2807
  };
2715
2808
  var RabexButton = {
@@ -3805,7 +3898,7 @@ var components$3 = {
3805
3898
  }
3806
3899
  }, {
3807
3900
  props: {
3808
- hasBg: true
3901
+ fill: true
3809
3902
  },
3810
3903
  style: function style(_ref7) {
3811
3904
  var theme = _ref7.theme;
@@ -3848,6 +3941,100 @@ var components$3 = {
3848
3941
  backgroundColor: palette.mode === 'light' ? palette.base.A0 : alpha(palette.success.A100, 0.1)
3849
3942
  };
3850
3943
  }
3944
+ }, {
3945
+ props: {
3946
+ size: 'small'
3947
+ },
3948
+ style: function style(_ref9) {
3949
+ var theme = _ref9.theme;
3950
+ return {
3951
+ fontSize: '14px',
3952
+ padding: theme.spacing(1, 3)
3953
+ };
3954
+ }
3955
+ }, {
3956
+ props: {
3957
+ size: 'large'
3958
+ },
3959
+ style: function style(_ref10) {
3960
+ var theme = _ref10.theme;
3961
+ return {
3962
+ fontSize: '16px',
3963
+ padding: theme.spacing(3)
3964
+ };
3965
+ }
3966
+ }, {
3967
+ props: {
3968
+ hasBg: true
3969
+ },
3970
+ style: function style(_ref11) {
3971
+ var theme = _ref11.theme;
3972
+ if (theme.palette.mode === 'light') {
3973
+ return {
3974
+ border: '1px solid transparent',
3975
+ background: theme.palette.secondary.A80
3976
+ };
3977
+ } else return {};
3978
+ }
3979
+ }, {
3980
+ props: {
3981
+ success: true
3982
+ },
3983
+ style: function style(_ref12) {
3984
+ var palette = _ref12.theme.palette;
3985
+ return {
3986
+ border: palette.mode === 'light' ? "1px solid " + palette.success.A100 : "1px solid " + palette.success.A40,
3987
+ backgroundColor: palette.mode === 'light' ? palette.base.A0 : alpha(palette.success.A100, 0.1)
3988
+ };
3989
+ }
3990
+ },
3991
+ /// old styles
3992
+ {
3993
+ props: {
3994
+ size: 'small'
3995
+ },
3996
+ style: function style(_ref13) {
3997
+ var theme = _ref13.theme;
3998
+ return {
3999
+ fontSize: '14px',
4000
+ padding: theme.spacing(1, 3)
4001
+ };
4002
+ }
4003
+ }, {
4004
+ props: {
4005
+ size: 'large'
4006
+ },
4007
+ style: function style(_ref14) {
4008
+ var theme = _ref14.theme;
4009
+ return {
4010
+ fontSize: '16px',
4011
+ padding: theme.spacing(3)
4012
+ };
4013
+ }
4014
+ }, {
4015
+ props: {
4016
+ hasBg: true
4017
+ },
4018
+ style: function style(_ref15) {
4019
+ var theme = _ref15.theme;
4020
+ if (theme.palette.mode === 'light') {
4021
+ return {
4022
+ border: '1px solid transparent',
4023
+ background: theme.palette.secondary.A80
4024
+ };
4025
+ } else return {};
4026
+ }
4027
+ }, {
4028
+ props: {
4029
+ success: true
4030
+ },
4031
+ style: function style(_ref16) {
4032
+ var palette = _ref16.theme.palette;
4033
+ return {
4034
+ border: palette.mode === 'light' ? "1px solid " + palette.success.A100 : "1px solid " + palette.success.A40,
4035
+ backgroundColor: palette.mode === 'light' ? palette.base.A0 : alpha(palette.success.A100, 0.1)
4036
+ };
4037
+ }
3851
4038
  }]
3852
4039
  };
3853
4040
  var RabexInput = {