@rabex-kit/rabex-ui 0.2.50 → 0.2.51

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.
@@ -3866,22 +3866,22 @@ var RabexDarkPalette = /*#__PURE__*/_extends({}, base, {
3866
3866
  primary: {
3867
3867
  950: '#B8C1FB',
3868
3868
  900: '#0D2087',
3869
- 800: '#1730AD',
3870
- 700: '#1E3ABA',
3869
+ 800: '#1730AC',
3870
+ 700: '#2141D0',
3871
3871
  600: '#4363E3',
3872
- 500: '#5176FC',
3872
+ 500: '#5176FB',
3873
3873
  400: '#72A0FC',
3874
3874
  300: '#04326A',
3875
- 200: '#002649',
3876
- 100: '#171717',
3875
+ 200: '#323546',
3876
+ 100: '#323546',
3877
3877
  50: '#121212',
3878
3878
  contrastText: '#000',
3879
- main: '#5176FC',
3880
- A100: '#5176FC',
3879
+ main: '#5176FB',
3880
+ A100: '#5176FB',
3881
3881
  A80: '#72A0FC',
3882
- A60: '#72A0FC',
3883
- A40: '#002649',
3884
- A20: '#171717',
3882
+ A60: '#04326A',
3883
+ A40: '#323546',
3884
+ A20: '#323546',
3885
3885
  A10: '#121212'
3886
3886
  },
3887
3887
  secondary: {
@@ -3890,16 +3890,16 @@ var RabexDarkPalette = /*#__PURE__*/_extends({}, base, {
3890
3890
  800: '#577094',
3891
3891
  700: '#869CB8',
3892
3892
  600: '#2D3E4E',
3893
- 500: '#1A1A1A',
3893
+ 500: '#242E40',
3894
3894
  400: '#161616',
3895
- 300: '#131313',
3895
+ 300: '#171D26',
3896
3896
  200: '#101010',
3897
3897
  100: '#0D0D0D',
3898
3898
  50: '#0D0D0D',
3899
3899
  contrastText: '#000',
3900
- main: '#1A1A1A',
3901
- A100: '#1A1A1A',
3902
- A80: '#131313',
3900
+ main: '#242E40',
3901
+ A100: '#242E40',
3902
+ A80: '#171D26',
3903
3903
  A60: '#101010'
3904
3904
  },
3905
3905
  neutral: {
@@ -3918,30 +3918,30 @@ var RabexDarkPalette = /*#__PURE__*/_extends({}, base, {
3918
3918
  backgroundColor: {
3919
3919
  main: '#E0E2E9',
3920
3920
  950: '#E0E2E9',
3921
- 900: '#333640',
3921
+ 900: '#323546',
3922
3922
  800: '#3A3A3D',
3923
3923
  700: '#666666',
3924
3924
  600: '#58667E',
3925
3925
  500: '#808A9D',
3926
3926
  400: '#A6B0C3',
3927
- 300: '#242E40',
3928
- 200: '#1A1A1A',
3929
- 100: '#111111',
3930
- 50: '#0D0D0D'
3927
+ 300: '#2E3238',
3928
+ 200: '#0D1421',
3929
+ 100: '#1F293C',
3930
+ 50: '#1A2232'
3931
3931
  },
3932
3932
  success: {
3933
- 400: '#19DE92',
3933
+ 400: '#2EBD85',
3934
3934
  300: '#42DFA3',
3935
3935
  200: '#93EDCB',
3936
3936
  100: '#115D41',
3937
3937
  50: '#053322',
3938
3938
  contrastText: '#000',
3939
- main: '#19DE92',
3940
- A100: '#19DE92',
3939
+ main: '#2EBD85',
3940
+ A100: '#2EBD85',
3941
3941
  A80: '#42DFA3',
3942
- A60: '#42DFA3',
3943
- A40: '#93EDCB',
3944
- A20: '#115D41'
3942
+ A60: '#93EDCB',
3943
+ A40: '#115D41',
3944
+ A20: '#053322'
3945
3945
  },
3946
3946
  warning: {
3947
3947
  400: '#FFB703',
@@ -3958,14 +3958,14 @@ var RabexDarkPalette = /*#__PURE__*/_extends({}, base, {
3958
3958
  A20: '#1A1A1A'
3959
3959
  },
3960
3960
  error: {
3961
- 400: '#EC5058',
3961
+ 400: '#F6465D',
3962
3962
  300: '#F0686F',
3963
3963
  200: '#FF8F94',
3964
3964
  100: '#470005',
3965
3965
  50: '#171717',
3966
3966
  contrastText: '#000',
3967
- main: '#EC5058',
3968
- A100: '#EC5058',
3967
+ main: '#F6465D',
3968
+ A100: '#F6465D',
3969
3969
  A80: '#F0686F',
3970
3970
  A60: '#FF8F94',
3971
3971
  A40: '#470005',
@@ -3986,13 +3986,13 @@ var RabexDarkPalette = /*#__PURE__*/_extends({}, base, {
3986
3986
  A20: '#161616'
3987
3987
  },
3988
3988
  textColor: {
3989
- 950: '#FFFFFF',
3989
+ 950: '#EAECEF',
3990
3990
  900: '#CED1DD',
3991
3991
  800: '#31343E',
3992
3992
  700: '#333640',
3993
3993
  600: '#3A3A3D',
3994
3994
  500: '#333333',
3995
- 400: '#58667E',
3995
+ 400: '#A0A2A4',
3996
3996
  300: '#808A9D',
3997
3997
  200: '#A6B0C3',
3998
3998
  100: '#242E40',
@@ -4003,30 +4003,30 @@ var RabexDarkPalette = /*#__PURE__*/_extends({}, base, {
4003
4003
  A60: '#333640',
4004
4004
  A50: '#3A3A3D',
4005
4005
  A40: '#333333',
4006
- A30: '#58667E',
4006
+ A30: '#A0A2A4',
4007
4007
  A20: '#808A9D',
4008
4008
  A10: '#242E40',
4009
4009
  A0: '#0D0D0D'
4010
4010
  },
4011
4011
  base: {
4012
4012
  950: '#E0E2E9',
4013
- 900: '#333640',
4013
+ 900: '#323546',
4014
4014
  800: '#3A3A3D',
4015
4015
  700: '#666666',
4016
4016
  600: '#58667E',
4017
4017
  500: '#808A9D',
4018
4018
  400: '#A6B0C3',
4019
- 300: '#242E40',
4020
- 200: '#1A1A1A',
4021
- 100: '#111111',
4022
- 50: '#0D0D0D',
4023
- main: '#17181B',
4024
- A100: '#17181B',
4025
- A80: '#E0E2E9',
4026
- A60: '#333640',
4027
- A40: '#3A3A3D',
4028
- A20: '#666666',
4029
- A0: '#0D0D0D'
4019
+ 300: '#2E3238',
4020
+ 200: '#0D1421',
4021
+ 100: '#1F293C',
4022
+ 50: '#1A2232',
4023
+ main: '#E0E2E9',
4024
+ A100: '#E0E2E9',
4025
+ A80: '#323546',
4026
+ A60: '#666666',
4027
+ A40: '#808A9D',
4028
+ A20: '#2E3238',
4029
+ A0: '#1A2232'
4030
4030
  },
4031
4031
  grayBackground: {
4032
4032
  main: '#646B80',
@@ -4196,7 +4196,7 @@ var RabexTab = {
4196
4196
  return _extends({
4197
4197
  minWidth: 80,
4198
4198
  fontWeight: '600',
4199
- color: theme.palette.textColor.A60,
4199
+ color: theme.palette.textColor[900],
4200
4200
  padding: theme.spacing(0, 2),
4201
4201
  '&': {
4202
4202
  position: 'relative'
@@ -4236,11 +4236,11 @@ var RabexTab = {
4236
4236
  display: 'none'
4237
4237
  },
4238
4238
  '&.Mui-selected': {
4239
- backgroundColor: theme.palette.base.A0
4239
+ backgroundColor: 'transparent'
4240
4240
  },
4241
4241
  '&.Mui-disabled': {
4242
4242
  cursor: 'not-allowed',
4243
- color: theme.palette.textColor.A40
4243
+ color: theme.palette.textColor[200]
4244
4244
  },
4245
4245
  '& .MuiTab-iconWrapper': {
4246
4246
  fontSize: '14px'
@@ -4801,10 +4801,10 @@ var RabexIconButton = {
4801
4801
  var bgColor = _ref2.bgColor,
4802
4802
  theme = _ref2.theme;
4803
4803
  return {
4804
- backgroundColor: bgColor || theme.palette.secondary.A100,
4804
+ backgroundColor: bgColor || theme.palette.secondary[500],
4805
4805
  '&:hover': {
4806
4806
  backgroundColor: bgColor ? bgColor + "CC" // Add opacity to custom color
4807
- : theme.palette.secondary.A60
4807
+ : theme.palette.secondary[400]
4808
4808
  }
4809
4809
  };
4810
4810
  }
@@ -4815,9 +4815,9 @@ var RabexIconButton = {
4815
4815
  style: function style(_ref3) {
4816
4816
  var theme = _ref3.theme;
4817
4817
  return {
4818
- color: theme.palette.primary.A100,
4818
+ color: theme.palette.primary[500],
4819
4819
  '&:hover': {
4820
- backgroundColor: theme.palette.primary.A10
4820
+ backgroundColor: theme.palette.primary[100]
4821
4821
  }
4822
4822
  };
4823
4823
  }
@@ -4828,9 +4828,9 @@ var RabexIconButton = {
4828
4828
  style: function style(_ref4) {
4829
4829
  var theme = _ref4.theme;
4830
4830
  return {
4831
- color: theme.palette.secondary.A100,
4831
+ color: theme.palette.secondary[500],
4832
4832
  '&:hover': {
4833
- backgroundColor: theme.palette.secondary.A10
4833
+ backgroundColor: theme.palette.secondary[400]
4834
4834
  }
4835
4835
  };
4836
4836
  }
@@ -4841,9 +4841,9 @@ var RabexIconButton = {
4841
4841
  style: function style(_ref5) {
4842
4842
  var theme = _ref5.theme;
4843
4843
  return {
4844
- color: theme.palette.error.A100,
4844
+ color: theme.palette.error[400],
4845
4845
  '&:hover': {
4846
- backgroundColor: theme.palette.error.A10
4846
+ backgroundColor: theme.palette.error[50]
4847
4847
  }
4848
4848
  };
4849
4849
  }
@@ -4854,9 +4854,9 @@ var RabexIconButton = {
4854
4854
  style: function style(_ref6) {
4855
4855
  var theme = _ref6.theme;
4856
4856
  return {
4857
- color: theme.palette.success.A100,
4857
+ color: theme.palette.success[400],
4858
4858
  '&:hover': {
4859
- backgroundColor: theme.palette.success.A10
4859
+ backgroundColor: theme.palette.success[50]
4860
4860
  }
4861
4861
  };
4862
4862
  }
@@ -5595,14 +5595,14 @@ var components$6 = {
5595
5595
  }
5596
5596
  },
5597
5597
  '& .MuiInputBase-input': {
5598
- color: palette.textColor.A80,
5598
+ color: palette.textColor[900],
5599
5599
  padding: spacing(0),
5600
5600
  '&.Mui-disabled': {
5601
- WebkitTextFillColor: palette.textColor.A40
5601
+ WebkitTextFillColor: palette.textColor[200]
5602
5602
  },
5603
5603
  '&::placeholder': {
5604
5604
  opacity: 1,
5605
- color: palette.textColor.A40
5605
+ color: palette.textColor[200]
5606
5606
  }
5607
5607
  }
5608
5608
  };
@@ -6296,12 +6296,12 @@ var FormikSelect = function FormikSelect(_ref) {
6296
6296
  }, text));
6297
6297
  };
6298
6298
 
6299
- var _excluded$i = ["title", "helperTextEndAdornment", "helperTextEndAdornmentProps", "titleProps", "helperText", "helperTextIcon", "helperTextProps", "value", "onChange", "valueFormat", "valueFormatOption", "fullWidth", "size"];
6300
- function _handleHelperColor$1(props, key) {
6299
+ var _excluded$i = ["title", "helperTextEndAdornment", "helperTextEndAdornmentProps", "titleProps", "helperText", "helperTextIcon", "helperTextProps", "value", "onChange", "valueFormat", "valueFormatOption", "fullWidth", "size", "fill"];
6300
+ function _handleHelperColor$1(theme, props, key) {
6301
6301
  var _props$key;
6302
- if (props.error) return 'error.A100';
6303
- if (props.success) return 'success.A100';
6304
- return ((_props$key = props[key]) === null || _props$key === void 0 ? void 0 : _props$key.color) || 'textColor.A60';
6302
+ if (props.error) return theme.palette.error[400];
6303
+ if (props.success) return theme.palette.success[400];
6304
+ return ((_props$key = props[key]) === null || _props$key === void 0 ? void 0 : _props$key.color) || theme.palette.textColor[300];
6305
6305
  }
6306
6306
  /**
6307
6307
  * The TextField let users enter and edit text.
@@ -6332,6 +6332,9 @@ var MuiTextFieldStyled = /*#__PURE__*/styled(MuiTextField, {
6332
6332
  return {};
6333
6333
  });
6334
6334
  var TextField = function TextField(props) {
6335
+ var theme = useTheme();
6336
+ var isDark = theme.palette.mode === 'dark';
6337
+ var palette = theme.palette;
6335
6338
  var _ref = props || {},
6336
6339
  title = _ref.title,
6337
6340
  helperTextEndAdornment = _ref.helperTextEndAdornment,
@@ -6346,7 +6349,9 @@ var TextField = function TextField(props) {
6346
6349
  valueFormatOption = _ref.valueFormatOption,
6347
6350
  fullWidth = _ref.fullWidth,
6348
6351
  size = _ref.size,
6352
+ fill = _ref.fill,
6349
6353
  other = _objectWithoutPropertiesLoose(_ref, _excluded$i);
6354
+ var effectiveFill = isDark ? false : fill;
6350
6355
  if (!valueFormat && !!valueFormatOption) {
6351
6356
  console.warn("'valueFormatOption' Only Work With known 'valueFormat's...");
6352
6357
  }
@@ -6371,10 +6376,11 @@ var TextField = function TextField(props) {
6371
6376
  gap: size === 'sm' ? 1 : 2,
6372
6377
  width: fullWidth ? '100%' : 'unset'
6373
6378
  }, title && React.createElement(Typography, Object.assign({
6374
- color: other.disabled ? 'textColor.A40' : 'textColor.A80'
6379
+ color: other.disabled ? palette.textColor[200] : palette.textColor[900]
6375
6380
  }, titleProps), title), React.createElement(MuiTextFieldStyled, Object.assign({
6376
6381
  size: size
6377
6382
  }, other, {
6383
+ fill: effectiveFill,
6378
6384
  value: valueFormat ? _valueFormatHandler(value) : value,
6379
6385
  onChange: valueFormat ? _onChangeFormatHandler : onChange
6380
6386
  })), helperText && React.createElement(Stack, {
@@ -6383,7 +6389,7 @@ var TextField = function TextField(props) {
6383
6389
  }, React.createElement(Typography, Object.assign({}, helperTextProps, size === 'sm' && {
6384
6390
  variant: 'body3'
6385
6391
  }, {
6386
- color: _handleHelperColor$1(props, 'helperTextProps')
6392
+ color: _handleHelperColor$1(theme, props, 'helperTextProps')
6387
6393
  }, helperTextIcon && {
6388
6394
  sx: {
6389
6395
  display: 'flex',
@@ -6393,7 +6399,7 @@ var TextField = function TextField(props) {
6393
6399
  }), helperTextIcon && helperTextIcon, helperText), helperTextEndAdornment && React.createElement(Typography, Object.assign({}, helperTextEndAdornmentProps, size === 'sm' && {
6394
6400
  variant: 'body3'
6395
6401
  }, {
6396
- color: _handleHelperColor$1(props, 'helperTextEndAdornmentProps')
6402
+ color: _handleHelperColor$1(theme, props, 'helperTextEndAdornmentProps')
6397
6403
  }), helperTextEndAdornment)));
6398
6404
  };
6399
6405
  TextField.defaultProps = {
@@ -6407,7 +6413,7 @@ TextField.defaultProps = {
6407
6413
  },
6408
6414
  helperTextProps: {
6409
6415
  variant: 'body3',
6410
- color: 'textColor.A60'
6416
+ color: 'textColor.A50'
6411
6417
  },
6412
6418
  helperTextEndAdornmentProps: {
6413
6419
  variant: 'body3',