@rabex-kit/rabex-ui 0.2.50 → 0.2.52

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.
@@ -19,7 +19,7 @@ declare const _default: {
19
19
  display: string;
20
20
  };
21
21
  '&.Mui-selected': {
22
- backgroundColor: any;
22
+ backgroundColor: string;
23
23
  };
24
24
  '&.Mui-disabled': {
25
25
  cursor: string;
@@ -51,7 +51,7 @@ declare const _default: {
51
51
  display: string;
52
52
  };
53
53
  '&.Mui-selected': {
54
- backgroundColor: any;
54
+ backgroundColor: string;
55
55
  };
56
56
  '&.Mui-disabled': {
57
57
  cursor: string;
@@ -84,7 +84,7 @@ declare const _default: {
84
84
  display: string;
85
85
  };
86
86
  '&.Mui-selected': {
87
- backgroundColor: any;
87
+ backgroundColor: string;
88
88
  };
89
89
  '&.Mui-disabled': {
90
90
  cursor: string;
@@ -117,7 +117,7 @@ declare const _default: {
117
117
  display: string;
118
118
  };
119
119
  '&.Mui-selected': {
120
- backgroundColor: any;
120
+ backgroundColor: string;
121
121
  };
122
122
  '&.Mui-disabled': {
123
123
  cursor: string;
@@ -150,7 +150,7 @@ declare const _default: {
150
150
  display: string;
151
151
  };
152
152
  '&.Mui-selected': {
153
- backgroundColor: any;
153
+ backgroundColor: string;
154
154
  };
155
155
  '&.Mui-disabled': {
156
156
  cursor: string;
@@ -183,7 +183,7 @@ declare const _default: {
183
183
  display: string;
184
184
  };
185
185
  '&.Mui-selected': {
186
- backgroundColor: any;
186
+ backgroundColor: string;
187
187
  };
188
188
  '&.Mui-disabled': {
189
189
  cursor: string;
@@ -216,7 +216,7 @@ declare const _default: {
216
216
  display: string;
217
217
  };
218
218
  '&.Mui-selected': {
219
- backgroundColor: any;
219
+ backgroundColor: string;
220
220
  };
221
221
  '&.Mui-disabled': {
222
222
  cursor: string;
@@ -249,7 +249,7 @@ declare const _default: {
249
249
  display: string;
250
250
  };
251
251
  '&.Mui-selected': {
252
- backgroundColor: any;
252
+ backgroundColor: string;
253
253
  };
254
254
  '&.Mui-disabled': {
255
255
  cursor: string;
@@ -3870,22 +3870,22 @@ var RabexDarkPalette = /*#__PURE__*/_extends({}, base, {
3870
3870
  primary: {
3871
3871
  950: '#B8C1FB',
3872
3872
  900: '#0D2087',
3873
- 800: '#1730AD',
3874
- 700: '#1E3ABA',
3873
+ 800: '#1730AC',
3874
+ 700: '#2141D0',
3875
3875
  600: '#4363E3',
3876
- 500: '#5176FC',
3876
+ 500: '#5176FB',
3877
3877
  400: '#72A0FC',
3878
3878
  300: '#04326A',
3879
- 200: '#002649',
3880
- 100: '#171717',
3879
+ 200: '#323546',
3880
+ 100: '#323546',
3881
3881
  50: '#121212',
3882
3882
  contrastText: '#000',
3883
- main: '#5176FC',
3884
- A100: '#5176FC',
3883
+ main: '#5176FB',
3884
+ A100: '#5176FB',
3885
3885
  A80: '#72A0FC',
3886
- A60: '#72A0FC',
3887
- A40: '#002649',
3888
- A20: '#171717',
3886
+ A60: '#04326A',
3887
+ A40: '#323546',
3888
+ A20: '#323546',
3889
3889
  A10: '#121212'
3890
3890
  },
3891
3891
  secondary: {
@@ -3894,16 +3894,16 @@ var RabexDarkPalette = /*#__PURE__*/_extends({}, base, {
3894
3894
  800: '#577094',
3895
3895
  700: '#869CB8',
3896
3896
  600: '#2D3E4E',
3897
- 500: '#1A1A1A',
3897
+ 500: '#242E40',
3898
3898
  400: '#161616',
3899
- 300: '#131313',
3899
+ 300: '#171D26',
3900
3900
  200: '#101010',
3901
3901
  100: '#0D0D0D',
3902
3902
  50: '#0D0D0D',
3903
3903
  contrastText: '#000',
3904
- main: '#1A1A1A',
3905
- A100: '#1A1A1A',
3906
- A80: '#131313',
3904
+ main: '#242E40',
3905
+ A100: '#242E40',
3906
+ A80: '#171D26',
3907
3907
  A60: '#101010'
3908
3908
  },
3909
3909
  neutral: {
@@ -3922,30 +3922,30 @@ var RabexDarkPalette = /*#__PURE__*/_extends({}, base, {
3922
3922
  backgroundColor: {
3923
3923
  main: '#E0E2E9',
3924
3924
  950: '#E0E2E9',
3925
- 900: '#333640',
3925
+ 900: '#323546',
3926
3926
  800: '#3A3A3D',
3927
3927
  700: '#666666',
3928
3928
  600: '#58667E',
3929
3929
  500: '#808A9D',
3930
3930
  400: '#A6B0C3',
3931
- 300: '#242E40',
3932
- 200: '#1A1A1A',
3933
- 100: '#111111',
3934
- 50: '#0D0D0D'
3931
+ 300: '#2E3238',
3932
+ 200: '#0D1421',
3933
+ 100: '#1F293C',
3934
+ 50: '#1A2232'
3935
3935
  },
3936
3936
  success: {
3937
- 400: '#19DE92',
3937
+ 400: '#2EBD85',
3938
3938
  300: '#42DFA3',
3939
3939
  200: '#93EDCB',
3940
3940
  100: '#115D41',
3941
3941
  50: '#053322',
3942
3942
  contrastText: '#000',
3943
- main: '#19DE92',
3944
- A100: '#19DE92',
3943
+ main: '#2EBD85',
3944
+ A100: '#2EBD85',
3945
3945
  A80: '#42DFA3',
3946
- A60: '#42DFA3',
3947
- A40: '#93EDCB',
3948
- A20: '#115D41'
3946
+ A60: '#93EDCB',
3947
+ A40: '#115D41',
3948
+ A20: '#053322'
3949
3949
  },
3950
3950
  warning: {
3951
3951
  400: '#FFB703',
@@ -3962,14 +3962,14 @@ var RabexDarkPalette = /*#__PURE__*/_extends({}, base, {
3962
3962
  A20: '#1A1A1A'
3963
3963
  },
3964
3964
  error: {
3965
- 400: '#EC5058',
3965
+ 400: '#F6465D',
3966
3966
  300: '#F0686F',
3967
3967
  200: '#FF8F94',
3968
3968
  100: '#470005',
3969
3969
  50: '#171717',
3970
3970
  contrastText: '#000',
3971
- main: '#EC5058',
3972
- A100: '#EC5058',
3971
+ main: '#F6465D',
3972
+ A100: '#F6465D',
3973
3973
  A80: '#F0686F',
3974
3974
  A60: '#FF8F94',
3975
3975
  A40: '#470005',
@@ -3990,13 +3990,13 @@ var RabexDarkPalette = /*#__PURE__*/_extends({}, base, {
3990
3990
  A20: '#161616'
3991
3991
  },
3992
3992
  textColor: {
3993
- 950: '#FFFFFF',
3993
+ 950: '#EAECEF',
3994
3994
  900: '#CED1DD',
3995
3995
  800: '#31343E',
3996
3996
  700: '#333640',
3997
3997
  600: '#3A3A3D',
3998
3998
  500: '#333333',
3999
- 400: '#58667E',
3999
+ 400: '#A0A2A4',
4000
4000
  300: '#808A9D',
4001
4001
  200: '#A6B0C3',
4002
4002
  100: '#242E40',
@@ -4007,30 +4007,30 @@ var RabexDarkPalette = /*#__PURE__*/_extends({}, base, {
4007
4007
  A60: '#333640',
4008
4008
  A50: '#3A3A3D',
4009
4009
  A40: '#333333',
4010
- A30: '#58667E',
4010
+ A30: '#A0A2A4',
4011
4011
  A20: '#808A9D',
4012
4012
  A10: '#242E40',
4013
4013
  A0: '#0D0D0D'
4014
4014
  },
4015
4015
  base: {
4016
4016
  950: '#E0E2E9',
4017
- 900: '#333640',
4017
+ 900: '#323546',
4018
4018
  800: '#3A3A3D',
4019
4019
  700: '#666666',
4020
4020
  600: '#58667E',
4021
4021
  500: '#808A9D',
4022
4022
  400: '#A6B0C3',
4023
- 300: '#242E40',
4024
- 200: '#1A1A1A',
4025
- 100: '#111111',
4026
- 50: '#0D0D0D',
4027
- main: '#17181B',
4028
- A100: '#17181B',
4029
- A80: '#E0E2E9',
4030
- A60: '#333640',
4031
- A40: '#3A3A3D',
4032
- A20: '#666666',
4033
- A0: '#0D0D0D'
4023
+ 300: '#2E3238',
4024
+ 200: '#0D1421',
4025
+ 100: '#1F293C',
4026
+ 50: '#1A2232',
4027
+ main: '#E0E2E9',
4028
+ A100: '#E0E2E9',
4029
+ A80: '#323546',
4030
+ A60: '#666666',
4031
+ A40: '#808A9D',
4032
+ A20: '#2E3238',
4033
+ A0: '#1A2232'
4034
4034
  },
4035
4035
  grayBackground: {
4036
4036
  main: '#646B80',
@@ -4200,7 +4200,7 @@ var RabexTab = {
4200
4200
  return _extends({
4201
4201
  minWidth: 80,
4202
4202
  fontWeight: '600',
4203
- color: theme.palette.textColor.A60,
4203
+ color: theme.palette.textColor[900],
4204
4204
  padding: theme.spacing(0, 2),
4205
4205
  '&': {
4206
4206
  position: 'relative'
@@ -4240,11 +4240,11 @@ var RabexTab = {
4240
4240
  display: 'none'
4241
4241
  },
4242
4242
  '&.Mui-selected': {
4243
- backgroundColor: theme.palette.base.A0
4243
+ backgroundColor: 'transparent'
4244
4244
  },
4245
4245
  '&.Mui-disabled': {
4246
4246
  cursor: 'not-allowed',
4247
- color: theme.palette.textColor.A40
4247
+ color: theme.palette.textColor[200]
4248
4248
  },
4249
4249
  '& .MuiTab-iconWrapper': {
4250
4250
  fontSize: '14px'
@@ -4636,20 +4636,20 @@ var components$1 = {
4636
4636
  styleOverrides: {
4637
4637
  root: function root(_ref) {
4638
4638
  var theme = _ref.theme;
4639
- return _extends({}, theme.palette.mode === 'dark' ? {
4640
- backgroundColor: theme.palette.base.A40,
4639
+ return {
4640
+ backgroundColor: theme.palette.base[50],
4641
4641
  backgroundImage: 'none',
4642
4642
  boxShadow: 'none'
4643
- } : {});
4643
+ };
4644
4644
  },
4645
4645
  outlined: function outlined(_ref2) {
4646
4646
  var theme = _ref2.theme;
4647
4647
  return {
4648
- border: "1px solid " + theme.palette.base.A20
4648
+ border: "1px solid " + theme.palette.base[100]
4649
4649
  };
4650
4650
  },
4651
4651
  rounded: {
4652
- borderRadius: 16
4652
+ borderRadius: 12
4653
4653
  }
4654
4654
  },
4655
4655
  variants: [{
@@ -4805,10 +4805,10 @@ var RabexIconButton = {
4805
4805
  var bgColor = _ref2.bgColor,
4806
4806
  theme = _ref2.theme;
4807
4807
  return {
4808
- backgroundColor: bgColor || theme.palette.secondary.A100,
4808
+ backgroundColor: bgColor || theme.palette.secondary[500],
4809
4809
  '&:hover': {
4810
4810
  backgroundColor: bgColor ? bgColor + "CC" // Add opacity to custom color
4811
- : theme.palette.secondary.A60
4811
+ : theme.palette.secondary[400]
4812
4812
  }
4813
4813
  };
4814
4814
  }
@@ -4819,9 +4819,9 @@ var RabexIconButton = {
4819
4819
  style: function style(_ref3) {
4820
4820
  var theme = _ref3.theme;
4821
4821
  return {
4822
- color: theme.palette.primary.A100,
4822
+ color: theme.palette.primary[500],
4823
4823
  '&:hover': {
4824
- backgroundColor: theme.palette.primary.A10
4824
+ backgroundColor: theme.palette.primary[100]
4825
4825
  }
4826
4826
  };
4827
4827
  }
@@ -4832,9 +4832,9 @@ var RabexIconButton = {
4832
4832
  style: function style(_ref4) {
4833
4833
  var theme = _ref4.theme;
4834
4834
  return {
4835
- color: theme.palette.secondary.A100,
4835
+ color: theme.palette.secondary[500],
4836
4836
  '&:hover': {
4837
- backgroundColor: theme.palette.secondary.A10
4837
+ backgroundColor: theme.palette.secondary[400]
4838
4838
  }
4839
4839
  };
4840
4840
  }
@@ -4845,9 +4845,9 @@ var RabexIconButton = {
4845
4845
  style: function style(_ref5) {
4846
4846
  var theme = _ref5.theme;
4847
4847
  return {
4848
- color: theme.palette.error.A100,
4848
+ color: theme.palette.error[400],
4849
4849
  '&:hover': {
4850
- backgroundColor: theme.palette.error.A10
4850
+ backgroundColor: theme.palette.error[50]
4851
4851
  }
4852
4852
  };
4853
4853
  }
@@ -4858,9 +4858,9 @@ var RabexIconButton = {
4858
4858
  style: function style(_ref6) {
4859
4859
  var theme = _ref6.theme;
4860
4860
  return {
4861
- color: theme.palette.success.A100,
4861
+ color: theme.palette.success[400],
4862
4862
  '&:hover': {
4863
- backgroundColor: theme.palette.success.A10
4863
+ backgroundColor: theme.palette.success[50]
4864
4864
  }
4865
4865
  };
4866
4866
  }
@@ -5599,14 +5599,14 @@ var components$6 = {
5599
5599
  }
5600
5600
  },
5601
5601
  '& .MuiInputBase-input': {
5602
- color: palette.textColor.A80,
5602
+ color: palette.textColor[900],
5603
5603
  padding: spacing(0),
5604
5604
  '&.Mui-disabled': {
5605
- WebkitTextFillColor: palette.textColor.A40
5605
+ WebkitTextFillColor: palette.textColor[200]
5606
5606
  },
5607
5607
  '&::placeholder': {
5608
5608
  opacity: 1,
5609
- color: palette.textColor.A40
5609
+ color: palette.textColor[200]
5610
5610
  }
5611
5611
  }
5612
5612
  };
@@ -6300,12 +6300,12 @@ var FormikSelect = function FormikSelect(_ref) {
6300
6300
  }, text));
6301
6301
  };
6302
6302
 
6303
- var _excluded$i = ["title", "helperTextEndAdornment", "helperTextEndAdornmentProps", "titleProps", "helperText", "helperTextIcon", "helperTextProps", "value", "onChange", "valueFormat", "valueFormatOption", "fullWidth", "size"];
6304
- function _handleHelperColor$1(props, key) {
6303
+ var _excluded$i = ["title", "helperTextEndAdornment", "helperTextEndAdornmentProps", "titleProps", "helperText", "helperTextIcon", "helperTextProps", "value", "onChange", "valueFormat", "valueFormatOption", "fullWidth", "size", "fill"];
6304
+ function _handleHelperColor$1(theme, props, key) {
6305
6305
  var _props$key;
6306
- if (props.error) return 'error.A100';
6307
- if (props.success) return 'success.A100';
6308
- return ((_props$key = props[key]) === null || _props$key === void 0 ? void 0 : _props$key.color) || 'textColor.A60';
6306
+ if (props.error) return theme.palette.error[400];
6307
+ if (props.success) return theme.palette.success[400];
6308
+ return ((_props$key = props[key]) === null || _props$key === void 0 ? void 0 : _props$key.color) || theme.palette.textColor[300];
6309
6309
  }
6310
6310
  /**
6311
6311
  * The TextField let users enter and edit text.
@@ -6336,6 +6336,9 @@ var MuiTextFieldStyled = /*#__PURE__*/styled(MuiTextField, {
6336
6336
  return {};
6337
6337
  });
6338
6338
  var TextField = function TextField(props) {
6339
+ var theme = useTheme();
6340
+ var isDark = theme.palette.mode === 'dark';
6341
+ var palette = theme.palette;
6339
6342
  var _ref = props || {},
6340
6343
  title = _ref.title,
6341
6344
  helperTextEndAdornment = _ref.helperTextEndAdornment,
@@ -6350,7 +6353,9 @@ var TextField = function TextField(props) {
6350
6353
  valueFormatOption = _ref.valueFormatOption,
6351
6354
  fullWidth = _ref.fullWidth,
6352
6355
  size = _ref.size,
6356
+ fill = _ref.fill,
6353
6357
  other = _objectWithoutPropertiesLoose(_ref, _excluded$i);
6358
+ var effectiveFill = isDark ? false : fill;
6354
6359
  if (!valueFormat && !!valueFormatOption) {
6355
6360
  console.warn("'valueFormatOption' Only Work With known 'valueFormat's...");
6356
6361
  }
@@ -6375,10 +6380,11 @@ var TextField = function TextField(props) {
6375
6380
  gap: size === 'sm' ? 1 : 2,
6376
6381
  width: fullWidth ? '100%' : 'unset'
6377
6382
  }, title && React__default.createElement(Typography, Object.assign({
6378
- color: other.disabled ? 'textColor.A40' : 'textColor.A80'
6383
+ color: other.disabled ? palette.textColor[200] : palette.textColor[900]
6379
6384
  }, titleProps), title), React__default.createElement(MuiTextFieldStyled, Object.assign({
6380
6385
  size: size
6381
6386
  }, other, {
6387
+ fill: effectiveFill,
6382
6388
  value: valueFormat ? _valueFormatHandler(value) : value,
6383
6389
  onChange: valueFormat ? _onChangeFormatHandler : onChange
6384
6390
  })), helperText && React__default.createElement(Stack, {
@@ -6387,7 +6393,7 @@ var TextField = function TextField(props) {
6387
6393
  }, React__default.createElement(Typography, Object.assign({}, helperTextProps, size === 'sm' && {
6388
6394
  variant: 'body3'
6389
6395
  }, {
6390
- color: _handleHelperColor$1(props, 'helperTextProps')
6396
+ color: _handleHelperColor$1(theme, props, 'helperTextProps')
6391
6397
  }, helperTextIcon && {
6392
6398
  sx: {
6393
6399
  display: 'flex',
@@ -6397,7 +6403,7 @@ var TextField = function TextField(props) {
6397
6403
  }), helperTextIcon && helperTextIcon, helperText), helperTextEndAdornment && React__default.createElement(Typography, Object.assign({}, helperTextEndAdornmentProps, size === 'sm' && {
6398
6404
  variant: 'body3'
6399
6405
  }, {
6400
- color: _handleHelperColor$1(props, 'helperTextEndAdornmentProps')
6406
+ color: _handleHelperColor$1(theme, props, 'helperTextEndAdornmentProps')
6401
6407
  }), helperTextEndAdornment)));
6402
6408
  };
6403
6409
  TextField.defaultProps = {
@@ -6411,7 +6417,7 @@ TextField.defaultProps = {
6411
6417
  },
6412
6418
  helperTextProps: {
6413
6419
  variant: 'body3',
6414
- color: 'textColor.A60'
6420
+ color: 'textColor.A50'
6415
6421
  },
6416
6422
  helperTextEndAdornmentProps: {
6417
6423
  variant: 'body3',