@rabex-kit/rabex-ui 0.1.19 → 0.1.21

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.
@@ -3806,16 +3806,15 @@ var components$3 = {
3806
3806
  transition: 'all 0.2s',
3807
3807
  padding: spacing(2.5, 3),
3808
3808
  border: isLight ? "1px solid " + palette.base[300] : "1px solid " + palette.secondary.A100,
3809
- backgroundColor: isLight
3809
+ backgroundColor: isLight ?
3810
3810
  // ? palette.grayBackground.A20
3811
- ? 'transparent' : palette.secondary.A100,
3811
+ 'transparent' : palette.secondary.A100,
3812
3812
  '&:hover': {
3813
- border: isLight
3814
- // ? `1px solid ${palette.textColor.A20}`
3815
- ? "1px solid " + palette.base[600] : "1px solid " + palette.base.A60,
3816
- backgroundColor: isLight
3813
+ border: isLight ? // ? `1px solid ${palette.textColor.A20}`
3814
+ "1px solid " + palette.base[600] : "1px solid " + palette.base.A60,
3815
+ backgroundColor: isLight ?
3817
3816
  // ? palette.grayBackground.A20
3818
- ? 'transparent' : palette.base.A60
3817
+ 'transparent' : palette.base.A60
3819
3818
  },
3820
3819
  '&.Mui-focused': {
3821
3820
  border: isLight ? "1.5px solid " + palette.primary[500] : "1px solid " + palette.primary.A80
@@ -3825,12 +3824,12 @@ var components$3 = {
3825
3824
  backgroundColor: isLight ? palette.base.A0 : alpha(palette.error.A100 || '', 0.1)
3826
3825
  },
3827
3826
  '&.Mui-disabled': {
3828
- borderColor: isLight
3827
+ borderColor: isLight ?
3829
3828
  // ? palette.grayBackground.A40
3830
- ? palette.base[300] : palette.secondary.A100,
3831
- backgroundColor: isLight
3829
+ palette.base[300] : palette.secondary.A100,
3830
+ backgroundColor: isLight ?
3832
3831
  // ? palette.grayBackground.A10
3833
- ? 'transparent' : palette.secondary.A100
3832
+ 'transparent' : palette.secondary.A100
3834
3833
  }
3835
3834
  };
3836
3835
  },
@@ -3848,7 +3847,8 @@ var components$3 = {
3848
3847
  '&::.placeholder': {
3849
3848
  opacity: 1,
3850
3849
  color: isLight ? palette.textColor.A40 : palette.textColor.A30
3851
- }
3850
+ },
3851
+ '&:-webkit-autofill': {}
3852
3852
  };
3853
3853
  }
3854
3854
  },
@@ -3860,6 +3860,7 @@ var components$3 = {
3860
3860
  var theme = _ref3.theme;
3861
3861
  return {
3862
3862
  fontSize: '14px',
3863
+ lineHeight: '24px',
3863
3864
  padding: theme.spacing(1, 3)
3864
3865
  };
3865
3866
  }
@@ -3871,6 +3872,7 @@ var components$3 = {
3871
3872
  var theme = _ref4.theme;
3872
3873
  return {
3873
3874
  fontSize: '14px',
3875
+ lineHeight: '24px',
3874
3876
  padding: theme.spacing(2, 3)
3875
3877
  };
3876
3878
  }
@@ -3882,6 +3884,7 @@ var components$3 = {
3882
3884
  var theme = _ref5.theme;
3883
3885
  return {
3884
3886
  fontSize: '14px',
3887
+ lineHeight: '24px',
3885
3888
  padding: theme.spacing(3)
3886
3889
  };
3887
3890
  }
@@ -3893,6 +3896,7 @@ var components$3 = {
3893
3896
  var theme = _ref6.theme;
3894
3897
  return {
3895
3898
  fontSize: '16px',
3899
+ lineHeight: '24px',
3896
3900
  padding: theme.spacing(3)
3897
3901
  };
3898
3902
  }
@@ -3902,33 +3906,30 @@ var components$3 = {
3902
3906
  },
3903
3907
  style: function style(_ref7) {
3904
3908
  var theme = _ref7.theme;
3905
- if (theme.palette.mode === 'light') {
3906
- var isLight = theme.palette.mode === 'light';
3907
- return {
3908
- // border: `1px solid ${theme.palette.base[600]}`,
3909
- border: 'transparent',
3910
- background: theme.palette.base[200],
3911
- '&.Mui-disabled': {
3912
- background: isLight ? theme.palette.base[100] : theme.palette.secondary.A100
3913
- },
3914
- '&:hover': {
3915
- border: isLight
3916
- // ? `1px solid ${palette.textColor.A20}`
3917
- ? "1px solid " + theme.palette.base[600] : "1px solid " + theme.palette.base.A60,
3918
- backgroundColor: isLight
3919
- // ? palette.grayBackground.A20
3920
- ? theme.palette.base[200] : theme.palette.base.A60
3921
- },
3922
- '&.Mui-focused': {
3923
- border: isLight ? "1.5px solid " + theme.palette.primary[500] : "1px solid " + theme.palette.primary.A80,
3924
- backgroundColor: isLight ? theme.palette.base[200] : theme.palette.base.A60
3925
- },
3926
- '&.Mui-error': {
3927
- border: isLight ? "1.5px solid " + theme.palette.error[400] : "1px solid " + theme.palette.error.A60,
3928
- backgroundColor: isLight ? theme.palette.base[200] : alpha(theme.palette.error.A100 || '', 0.1)
3929
- }
3930
- };
3931
- } else return {};
3909
+ var isLight = theme.palette.mode === 'light';
3910
+ return {
3911
+ // border: `1px solid ${theme.palette.base[600]}`,
3912
+ border: 'transparent',
3913
+ background: theme.palette.base[200],
3914
+ '&.Mui-disabled': {
3915
+ background: isLight ? theme.palette.base[100] : theme.palette.secondary.A100
3916
+ },
3917
+ '&:hover': {
3918
+ border: isLight ? // ? `1px solid ${palette.textColor.A20}`
3919
+ "1px solid " + theme.palette.base[600] : "1px solid " + theme.palette.base.A60,
3920
+ backgroundColor: isLight ?
3921
+ // ? palette.grayBackground.A20
3922
+ theme.palette.base[200] : theme.palette.base.A60
3923
+ },
3924
+ '&.Mui-focused': {
3925
+ border: isLight ? "1.5px solid " + theme.palette.primary[500] : "1px solid " + theme.palette.primary.A80,
3926
+ backgroundColor: isLight ? theme.palette.base[200] : theme.palette.base.A60
3927
+ },
3928
+ '&.Mui-error': {
3929
+ border: isLight ? "1.5px solid " + theme.palette.error[400] : "1px solid " + theme.palette.error.A60,
3930
+ backgroundColor: isLight ? theme.palette.base[200] : alpha(theme.palette.error.A100 || '', 0.1)
3931
+ }
3932
+ };
3932
3933
  }
3933
3934
  }, {
3934
3935
  props: {
@@ -4505,13 +4506,18 @@ var components$6 = {
4505
4506
  root: function root(_ref) {
4506
4507
  var _ref$theme = _ref.theme,
4507
4508
  palette = _ref$theme.palette,
4508
- spacing = _ref$theme.spacing;
4509
+ spacing = _ref$theme.spacing,
4510
+ _ref$ownerState = _ref.ownerState,
4511
+ size = _ref$ownerState.size,
4512
+ fill = _ref$ownerState.fill,
4513
+ success = _ref$ownerState.success;
4514
+ console.log(size, fill, success);
4509
4515
  var isLight = palette.mode === 'light';
4510
4516
  return {
4511
4517
  '& > div.MuiInputBase-root > fieldset': {
4512
4518
  border: 0
4513
4519
  },
4514
- '& > div.MuiInputBase-root': {
4520
+ '& > div.MuiInputBase-root': _extends({
4515
4521
  borderRadius: '8px',
4516
4522
  gap: spacing(1),
4517
4523
  transition: 'all 0.2s',
@@ -4533,8 +4539,25 @@ var components$6 = {
4533
4539
  '&.Mui-disabled': {
4534
4540
  borderColor: isLight ? palette.grayBackground.A40 : palette.secondary.A100,
4535
4541
  backgroundColor: isLight ? palette.grayBackground.A10 : palette.secondary.A100
4536
- }
4537
- },
4542
+ },
4543
+ '&:-webkit-autofill': {}
4544
+ }, size === 'sm' && {
4545
+ fontSize: '14px',
4546
+ lineHeight: '24px',
4547
+ padding: spacing(1, 3)
4548
+ }, size === 'md' && {
4549
+ fontSize: '14px',
4550
+ lineHeight: '24px',
4551
+ padding: spacing(2, 3)
4552
+ }, size === 'lg' && {
4553
+ fontSize: '14px',
4554
+ lineHeight: '24px',
4555
+ padding: spacing(3)
4556
+ }, size === 'xl' && {
4557
+ fontSize: '16px',
4558
+ lineHeight: '24px',
4559
+ padding: spacing(3)
4560
+ }),
4538
4561
  '& > div.MuiInputBase-root > input.MuiInputBase-input': {
4539
4562
  color: isLight ? palette.textColor.A80 : palette.textColor.A0,
4540
4563
  padding: spacing(0),
@@ -4547,7 +4570,55 @@ var components$6 = {
4547
4570
  }
4548
4571
  };
4549
4572
  }
4550
- }
4573
+ },
4574
+ variants: [{
4575
+ props: {
4576
+ fill: true
4577
+ },
4578
+ style: function style(_ref2) {
4579
+ var theme = _ref2.theme;
4580
+ console.log('fill included');
4581
+ var isLight = theme.palette.mode === 'light';
4582
+ return {
4583
+ '& > div.MuiInputBase-root': {
4584
+ // border: `1px solid ${theme.palette.base[600]}`,
4585
+ border: 'transparent',
4586
+ background: theme.palette.base[200],
4587
+ '&.Mui-disabled': {
4588
+ background: isLight ? theme.palette.base[100] : theme.palette.secondary.A100
4589
+ },
4590
+ '&:hover': {
4591
+ border: isLight ? // ? `1px solid ${palette.textColor.A20}`
4592
+ "1px solid " + theme.palette.base[600] : "1px solid " + theme.palette.base.A60,
4593
+ backgroundColor: isLight ?
4594
+ // ? palette.grayBackground.A20
4595
+ theme.palette.base[200] : theme.palette.base.A60
4596
+ },
4597
+ '&.Mui-focused': {
4598
+ border: isLight ? "1.5px solid " + theme.palette.primary[500] : "1px solid " + theme.palette.primary.A80,
4599
+ backgroundColor: isLight ? theme.palette.base[200] : theme.palette.base.A60
4600
+ },
4601
+ '&.Mui-error': {
4602
+ border: isLight ? "1.5px solid " + theme.palette.error[400] : "1px solid " + theme.palette.error.A60,
4603
+ backgroundColor: isLight ? theme.palette.base[200] : alpha(theme.palette.error.A100 || '', 0.1)
4604
+ }
4605
+ }
4606
+ };
4607
+ }
4608
+ }, {
4609
+ props: {
4610
+ success: true
4611
+ },
4612
+ style: function style(_ref3) {
4613
+ var palette = _ref3.theme.palette;
4614
+ return {
4615
+ '& > div.MuiInputBase-root': {
4616
+ border: palette.mode === 'light' ? "1px solid " + palette.success.A100 : "1px solid " + palette.success.A40,
4617
+ backgroundColor: palette.mode === 'light' ? palette.base.A0 : alpha(palette.success.A100, 0.1)
4618
+ }
4619
+ };
4620
+ }
4621
+ }]
4551
4622
  };
4552
4623
  var RabexTextField = {
4553
4624
  components: components$6
@@ -4770,7 +4841,7 @@ Tooltip.defaultProps = {
4770
4841
  * you can see Autocomplete Documentation api that I mentioned below [here](https://mui.com/material-ui/react-autocomplete/)
4771
4842
  *
4772
4843
  * ```typescript
4773
- * import { Autocomplete } from '@rabex-kit/core';
4844
+ * import { Autocomplete } from '@rabex-kit/rabex-ui';
4774
4845
  * ```
4775
4846
  *
4776
4847
  *
@@ -5001,7 +5072,7 @@ function _handleHelperColor$1(props, key) {
5001
5072
  * you can see TextField Documentation api that I mentioned below [here](https://mui.com/material-ui/api/text-field/)
5002
5073
  *
5003
5074
  * ```typescript
5004
- * import { TextField } from '@rabex-kit/core';
5075
+ * import { TextField } from '@rabex-kit/rabex-ui';
5005
5076
  * ```
5006
5077
  *
5007
5078
  *
@@ -5011,7 +5082,7 @@ function _handleHelperColor$1(props, key) {
5011
5082
  var MuiTextFieldStyled = /*#__PURE__*/styled(MuiTextField, {
5012
5083
  name: 'MuiTextField',
5013
5084
  shouldForwardProp: function shouldForwardProp(prop) {
5014
- return !['titleProps', 'helperText', 'helperTextIcon', 'helperTextProps', 'helperTextEndAdornment', 'helperTextEndAdornmentProps', 'success', 'valueFormat', 'valueFormatOption'].includes(prop);
5085
+ return !['fill', 'success', 'titleProps', 'helperText', 'helperTextIcon', 'helperTextProps', 'helperTextEndAdornment', 'helperTextEndAdornmentProps', 'valueFormat', 'valueFormatOption'].includes(prop);
5015
5086
  }
5016
5087
  })(function () {
5017
5088
  return {};
@@ -5051,7 +5122,7 @@ var TextField = function TextField(props) {
5051
5122
  };
5052
5123
  return React.createElement(Stack, {
5053
5124
  flexDirection: "column",
5054
- gap: 2,
5125
+ gap: props.size === 'sm' ? 1 : 2,
5055
5126
  flexGrow: 1
5056
5127
  }, title && React.createElement(Typography, Object.assign({}, titleProps), title), React.createElement(MuiTextFieldStyled, Object.assign({}, other, {
5057
5128
  value: valueFormat ? _valueFormatHandler(value) : value,
@@ -5059,7 +5130,7 @@ var TextField = function TextField(props) {
5059
5130
  })), helperText && React.createElement(Stack, {
5060
5131
  flexDirection: "row",
5061
5132
  justifyContent: "space-between"
5062
- }, React.createElement(Typography, Object.assign({}, helperTextProps, props.size === 'small' && {
5133
+ }, React.createElement(Typography, Object.assign({}, helperTextProps, {
5063
5134
  variant: 'body3'
5064
5135
  }, {
5065
5136
  color: _handleHelperColor$1(props, 'helperTextProps')
@@ -5069,7 +5140,7 @@ var TextField = function TextField(props) {
5069
5140
  alignItems: 'center',
5070
5141
  gap: 1
5071
5142
  }
5072
- }), helperTextIcon && helperTextIcon, helperText), helperTextEndAdornment && React.createElement(Typography, Object.assign({}, helperTextEndAdornmentProps, props.size === 'small' && {
5143
+ }), helperTextIcon && helperTextIcon, helperText), helperTextEndAdornment && React.createElement(Typography, Object.assign({}, helperTextEndAdornmentProps, {
5073
5144
  variant: 'body3'
5074
5145
  }, {
5075
5146
  color: _handleHelperColor$1(props, 'helperTextEndAdornmentProps')
@@ -5077,18 +5148,19 @@ var TextField = function TextField(props) {
5077
5148
  };
5078
5149
  TextField.defaultProps = {
5079
5150
  success: false,
5080
- size: 'medium',
5151
+ fill: false,
5152
+ size: 'md',
5081
5153
  titleProps: {
5082
5154
  variant: 'body2',
5083
5155
  weight: 'bold',
5084
5156
  color: 'textColor.A80'
5085
5157
  },
5086
5158
  helperTextProps: {
5087
- variant: 'body2',
5159
+ variant: 'body3',
5088
5160
  color: 'textColor.A60'
5089
5161
  },
5090
5162
  helperTextEndAdornmentProps: {
5091
- variant: 'body2',
5163
+ variant: 'body3',
5092
5164
  color: 'textColor.A60'
5093
5165
  }
5094
5166
  };
@@ -5615,7 +5687,7 @@ var _excluded$l = ["inputProps", "children"];
5615
5687
  * You can read Material-UI Button Documentation [here](https://mui.com/material-ui/api/Button/).
5616
5688
  *
5617
5689
  * ```typescript
5618
- * import { UploadButton } from '@rabex-kit/core';
5690
+ * import { UploadButton } from '@rabex-kit/rabex-ui';
5619
5691
  * ```
5620
5692
  *
5621
5693
  *