@rabex-kit/rabex-ui 0.0.7 → 0.0.9

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.
@@ -125,7 +125,7 @@ import MuiZoom from '@mui/material/Zoom/Zoom.js';
125
125
  * you can see Accordion Documentation api that I mentioned below [here](https://mui.com/material-ui/api/accordion/)
126
126
  *
127
127
  * ```typescript
128
- * import { Accordion } from '@rabex-kit/core';
128
+ * import { Accordion } from '@rabex-kit/rabex-ui';
129
129
  * ```
130
130
  *
131
131
  *
@@ -136,7 +136,7 @@ var Accordion = function Accordion(props) {
136
136
  return React.createElement(MuiAccordion, Object.assign({}, props));
137
137
  };
138
138
  Accordion.defaultProps = {
139
- elevation: 1
139
+ elevation: 0
140
140
  };
141
141
 
142
142
  /**
@@ -1327,7 +1327,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1327
1327
  };
1328
1328
  return React.createElement(Stack, {
1329
1329
  flexDirection: "column",
1330
- gap: 2
1330
+ gap: props.size === 'sm' ? 1 : 2
1331
1331
  }, title && React.createElement(Typography, Object.assign({
1332
1332
  color: mode === 'light' ? 'textColor.A80' : 'textColor.A30'
1333
1333
  }, titleProps), title), React.createElement(MuiInputStyled, Object.assign({
@@ -1338,7 +1338,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1338
1338
  })), helperText && React.createElement(Stack, {
1339
1339
  flexDirection: "row",
1340
1340
  justifyContent: "space-between"
1341
- }, React.createElement(Typography, Object.assign({}, helperTextProps, props.size === 'small' && {
1341
+ }, React.createElement(Typography, Object.assign({}, helperTextProps, props.size === 'sm' && {
1342
1342
  variant: 'body3'
1343
1343
  }, {
1344
1344
  color: _handleHelperColor(props, 'helperTextProps')
@@ -1348,7 +1348,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1348
1348
  alignItems: 'center',
1349
1349
  gap: 1
1350
1350
  }
1351
- }), helperTextIcon && helperTextIcon, helperText), helperTextEndAdornment && React.createElement(Typography, Object.assign({}, helperTextEndAdornmentProps, props.size === 'small' && {
1351
+ }), helperTextIcon && helperTextIcon, helperText), helperTextEndAdornment && React.createElement(Typography, Object.assign({}, helperTextEndAdornmentProps, props.size === 'sm' && {
1352
1352
  variant: 'body3'
1353
1353
  }, {
1354
1354
  color: _handleHelperColor(props, 'helperTextEndAdornmentProps')
@@ -1357,7 +1357,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1357
1357
  Input.defaultProps = {
1358
1358
  success: false,
1359
1359
  hasBg: false,
1360
- size: 'medium',
1360
+ size: 'md',
1361
1361
  disableUnderline: true,
1362
1362
  titleProps: {
1363
1363
  variant: 'body2',
@@ -3712,23 +3712,32 @@ var components$3 = {
3712
3712
  gap: spacing(1),
3713
3713
  transition: 'all 0.2s',
3714
3714
  padding: spacing(2.5, 3),
3715
- border: isLight ? "1px solid " + palette.textColor.A20 : "1px solid " + palette.secondary.A100,
3716
- backgroundColor: isLight ? palette.grayBackground.A20 : palette.secondary.A100,
3715
+ border: isLight ? "1px solid " + palette.base[300] : "1px solid " + palette.secondary.A100,
3716
+ backgroundColor: isLight
3717
+ // ? palette.grayBackground.A20
3718
+ ? 'transparent' : palette.secondary.A100,
3717
3719
  '&:hover': {
3718
- border: isLight ? "1px solid " + palette.textColor.A20 : "1px solid " + palette.base.A60,
3719
- backgroundColor: isLight ? palette.grayBackground.A20 : palette.base.A60
3720
+ border: isLight
3721
+ // ? `1px solid ${palette.textColor.A20}`
3722
+ ? "1px solid " + palette.base[600] : "1px solid " + palette.base.A60,
3723
+ backgroundColor: isLight
3724
+ // ? palette.grayBackground.A20
3725
+ ? 'transparent' : palette.base.A60
3720
3726
  },
3721
3727
  '&.Mui-focused': {
3722
- border: isLight ? "1px solid " + palette.primary.main : "1px solid " + palette.primary.A80,
3723
- backgroundColor: isLight ? palette.base.A0 : palette.base.A60
3728
+ border: isLight ? "1.5px solid " + palette.primary[500] : "1px solid " + palette.primary.A80
3724
3729
  },
3725
3730
  '&.Mui-error': {
3726
- border: isLight ? "1px solid " + palette.error.A100 : "1px solid " + palette.error.A60,
3731
+ border: isLight ? "1.5px solid " + palette.error[400] : "1px solid " + palette.error.A60,
3727
3732
  backgroundColor: isLight ? palette.base.A0 : alpha(palette.error.A100 || '', 0.1)
3728
3733
  },
3729
3734
  '&.Mui-disabled': {
3730
- borderColor: isLight ? palette.grayBackground.A40 : palette.secondary.A100,
3731
- backgroundColor: isLight ? palette.grayBackground.A10 : palette.secondary.A100
3735
+ borderColor: isLight
3736
+ // ? palette.grayBackground.A40
3737
+ ? palette.base[300] : palette.secondary.A100,
3738
+ backgroundColor: isLight
3739
+ // ? palette.grayBackground.A10
3740
+ ? 'transparent' : palette.secondary.A100
3732
3741
  }
3733
3742
  };
3734
3743
  },
@@ -3752,36 +3761,79 @@ var components$3 = {
3752
3761
  },
3753
3762
  variants: [{
3754
3763
  props: {
3755
- size: 'small'
3764
+ size: 'sm'
3756
3765
  },
3757
3766
  style: function style(_ref3) {
3758
3767
  var theme = _ref3.theme;
3759
3768
  return {
3760
3769
  fontSize: '14px',
3761
- padding: theme.spacing(1, 3)
3770
+ padding: theme.spacing(1, 2)
3762
3771
  };
3763
3772
  }
3764
3773
  }, {
3765
3774
  props: {
3766
- size: 'large'
3775
+ size: 'md'
3767
3776
  },
3768
3777
  style: function style(_ref4) {
3769
3778
  var theme = _ref4.theme;
3770
3779
  return {
3771
- fontSize: '16px',
3772
- padding: theme.spacing(3)
3780
+ fontSize: '14px',
3781
+ padding: theme.spacing(2)
3773
3782
  };
3774
3783
  }
3775
3784
  }, {
3776
3785
  props: {
3777
- hasBg: true
3786
+ size: 'lg'
3778
3787
  },
3779
3788
  style: function style(_ref5) {
3780
3789
  var theme = _ref5.theme;
3790
+ return {
3791
+ fontSize: '14px',
3792
+ padding: theme.spacing(3, 2)
3793
+ };
3794
+ }
3795
+ }, {
3796
+ props: {
3797
+ size: 'xl'
3798
+ },
3799
+ style: function style(_ref6) {
3800
+ var theme = _ref6.theme;
3801
+ return {
3802
+ fontSize: '16px',
3803
+ padding: theme.spacing(3, 2)
3804
+ };
3805
+ }
3806
+ }, {
3807
+ props: {
3808
+ hasBg: true
3809
+ },
3810
+ style: function style(_ref7) {
3811
+ var theme = _ref7.theme;
3781
3812
  if (theme.palette.mode === 'light') {
3813
+ var isLight = theme.palette.mode === 'light';
3782
3814
  return {
3783
- border: '1px solid transparent',
3784
- background: theme.palette.secondary.A80
3815
+ // border: `1px solid ${theme.palette.base[600]}`,
3816
+ border: 'transparent',
3817
+ background: theme.palette.base[200],
3818
+ '&.Mui-disabled': {
3819
+ background: isLight ? theme.palette.base[100] : theme.palette.secondary.A100
3820
+ },
3821
+ '&:hover': {
3822
+ border: isLight
3823
+ // ? `1px solid ${palette.textColor.A20}`
3824
+ ? "1px solid " + theme.palette.base[600] : "1px solid " + theme.palette.base.A60,
3825
+ backgroundColor: isLight
3826
+ // ? palette.grayBackground.A20
3827
+ ? theme.palette.base[200] : theme.palette.base.A60
3828
+ },
3829
+ '&.Mui-focused': {
3830
+ border: isLight ? "1.5px solid " + theme.palette.primary[500] : "1px solid " + theme.palette.primary.A80,
3831
+ backgroundColor: isLight ? theme.palette.base[200] : theme.palette.base.A60
3832
+ },
3833
+ '&.Mui-error': {
3834
+ border: isLight ? "1.5px solid " + theme.palette.error[400] : "1px solid " + theme.palette.error.A60,
3835
+ backgroundColor: isLight ? theme.palette.base[200] : alpha(theme.palette.error.A100 || '', 0.1)
3836
+ }
3785
3837
  };
3786
3838
  } else return {};
3787
3839
  }
@@ -3789,8 +3841,8 @@ var components$3 = {
3789
3841
  props: {
3790
3842
  success: true
3791
3843
  },
3792
- style: function style(_ref6) {
3793
- var palette = _ref6.theme.palette;
3844
+ style: function style(_ref8) {
3845
+ var palette = _ref8.theme.palette;
3794
3846
  return {
3795
3847
  border: palette.mode === 'light' ? "1px solid " + palette.success.A100 : "1px solid " + palette.success.A40,
3796
3848
  backgroundColor: palette.mode === 'light' ? palette.base.A0 : alpha(palette.success.A100, 0.1)
@@ -4038,21 +4090,37 @@ var RabexShadows = ['none', '0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 3px rg
4038
4090
  var RabexAccordion = {
4039
4091
  components: {
4040
4092
  styleOverrides: {
4041
- root: {
4042
- borderRadius: 12,
4043
- paddingX: 16,
4044
- paddingY: 12,
4045
- '&::before': {
4046
- display: 'none'
4047
- },
4048
- '&:first-of-type': {
4049
- borderTopRightRadius: 12,
4050
- borderTopLeftRadius: 12
4051
- },
4052
- '&:last-of-type': {
4053
- borderBottomRightRadius: 12,
4054
- borderBottomLeftRadius: 12
4055
- }
4093
+ root: function root(_ref) {
4094
+ var theme = _ref.theme;
4095
+ return {
4096
+ backgroundColor: theme.palette.base[100],
4097
+ borderRadius: 12,
4098
+ padding: theme.spacing(3.5, 4),
4099
+ '&::before': {
4100
+ display: 'none'
4101
+ },
4102
+ '&:first-of-type': {
4103
+ borderTopRightRadius: 12,
4104
+ borderTopLeftRadius: 12
4105
+ },
4106
+ '&:last-of-type': {
4107
+ borderBottomRightRadius: 12,
4108
+ borderBottomLeftRadius: 12
4109
+ },
4110
+ '& .MuiSvgIcon-root': {
4111
+ height: 20,
4112
+ width: 20,
4113
+ '& path': {
4114
+ fill: 'none'
4115
+ }
4116
+ },
4117
+ '& .MuiAccordionSummary-root': {
4118
+ minHeight: 16
4119
+ },
4120
+ '& .MuiAccordionSummary-content': {
4121
+ margin: 0
4122
+ }
4123
+ };
4056
4124
  }
4057
4125
  }
4058
4126
  }