@rabex-kit/rabex-ui 0.2.64 → 0.2.67

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.
@@ -265,7 +265,7 @@ var AlertAction = function AlertAction(_ref) {
265
265
  })));
266
266
  };
267
267
 
268
- var _excluded$1 = ["weight", "color", "sx"];
268
+ var _excluded$1 = ["weight", "sx"];
269
269
  var fontWeight = {
270
270
  bold: '700',
271
271
  semiBold: '600',
@@ -289,16 +289,13 @@ var fontWeight = {
289
289
  */
290
290
  var Typography = function Typography(_ref) {
291
291
  var weight = _ref.weight,
292
- color = _ref.color,
293
292
  sx = _ref.sx,
294
293
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
295
- var _useTheme = useTheme(),
296
- palette = _useTheme.palette;
294
+ // const { palette } = useTheme();
297
295
  return React__default.createElement(MuiTypography, Object.assign({
298
296
  sx: _extends({}, sx, {
299
297
  fontWeight: weight ? fontWeight[weight] : 'regular'
300
- }),
301
- color: color || palette.textColor[900]
298
+ })
302
299
  }, props));
303
300
  };
304
301
  Typography.defaultProps = {
@@ -4275,11 +4272,11 @@ var colorModeConfig = function colorModeConfig(theme) {
4275
4272
  "default": {
4276
4273
  normal: {
4277
4274
  color: theme.palette.textColor[50],
4278
- backgroundColor: theme.palette.backgroundColor[900]
4275
+ backgroundColor: theme.palette.base[900]
4279
4276
  },
4280
4277
  light: {
4281
- color: theme.palette.backgroundColor[900],
4282
- backgroundColor: theme.palette.backgroundColor[200]
4278
+ color: theme.palette.textColor[900],
4279
+ backgroundColor: theme.palette.secondary[500]
4283
4280
  }
4284
4281
  },
4285
4282
  warning: {
@@ -4289,7 +4286,7 @@ var colorModeConfig = function colorModeConfig(theme) {
4289
4286
  },
4290
4287
  light: {
4291
4288
  color: theme.palette.textColor[900],
4292
- backgroundColor: theme.palette.mode === 'light' ? theme.palette.warning[50] : colorManipulator_js.alpha(theme.palette.warning[50], 0.5),
4289
+ backgroundColor: theme.palette.mode === 'light' ? theme.palette.warning[50] : colorManipulator_js.alpha(theme.palette.warning[400], 0.2),
4293
4290
  border: "1px solid " + theme.palette.warning[200]
4294
4291
  }
4295
4292
  },
@@ -4300,8 +4297,7 @@ var colorModeConfig = function colorModeConfig(theme) {
4300
4297
  },
4301
4298
  light: {
4302
4299
  color: theme.palette.primary[500],
4303
- backgroundColor: theme.palette.mode === 'light' ? theme.palette.info[50] : colorManipulator_js.alpha(theme.palette.info[50], 0.5),
4304
- border: "1px solid " + theme.palette.info[200]
4300
+ backgroundColor: theme.palette.mode === 'light' ? theme.palette.info[50] : colorManipulator_js.alpha(theme.palette.info[400], 0.2)
4305
4301
  }
4306
4302
  },
4307
4303
  primary: {
@@ -4311,8 +4307,7 @@ var colorModeConfig = function colorModeConfig(theme) {
4311
4307
  },
4312
4308
  light: {
4313
4309
  color: theme.palette.primary[500],
4314
- backgroundColor: theme.palette.mode === 'light' ? theme.palette.info[50] : colorManipulator_js.alpha(theme.palette.info[50], 0.5),
4315
- border: "1px solid " + theme.palette.info[200]
4310
+ backgroundColor: theme.palette.mode === 'light' ? theme.palette.info[50] : colorManipulator_js.alpha(theme.palette.info[400], 0.2)
4316
4311
  }
4317
4312
  },
4318
4313
  error: {
@@ -4322,8 +4317,7 @@ var colorModeConfig = function colorModeConfig(theme) {
4322
4317
  },
4323
4318
  light: {
4324
4319
  color: theme.palette.error[400],
4325
- backgroundColor: theme.palette.mode === 'light' ? theme.palette.error[50] : colorManipulator_js.alpha(theme.palette.error[50], 0.5),
4326
- border: "1px solid " + theme.palette.error[200]
4320
+ backgroundColor: theme.palette.mode === 'light' ? theme.palette.error[50] : colorManipulator_js.alpha(theme.palette.error[400], 0.2)
4327
4321
  }
4328
4322
  },
4329
4323
  success: {
@@ -4333,8 +4327,7 @@ var colorModeConfig = function colorModeConfig(theme) {
4333
4327
  },
4334
4328
  light: {
4335
4329
  color: theme.palette.success[400],
4336
- backgroundColor: theme.palette.mode === 'light' ? theme.palette.success[50] : colorManipulator_js.alpha(theme.palette.success[50], 0.5),
4337
- border: "1px solid " + theme.palette.success[200]
4330
+ backgroundColor: theme.palette.mode === 'light' ? theme.palette.success[50] : colorManipulator_js.alpha(theme.palette.success[400], 0.2)
4338
4331
  }
4339
4332
  }
4340
4333
  };
@@ -5464,7 +5457,7 @@ var components$5 = {
5464
5457
  borderRadius: 8,
5465
5458
  padding: spacing(3),
5466
5459
  '& .MuiAlert-icon': ownerState !== null && ownerState !== void 0 && ownerState.color ? {
5467
- color: palette[ownerState.color].A100
5460
+ color: palette[ownerState.color][400]
5468
5461
  } : {},
5469
5462
  '& .MuiAlert-action': {
5470
5463
  paddingTop: 0,
@@ -5493,7 +5486,7 @@ var components$5 = {
5493
5486
  overflow: 'hidden',
5494
5487
  padding: 0,
5495
5488
  width: '100%',
5496
- color: palette.textColor.A80
5489
+ color: palette.textColor[900]
5497
5490
  }, _ref3[breakpoints.down('lg')] = {
5498
5491
  lineHeight: '20px'
5499
5492
  }, _ref3;
@@ -5510,7 +5503,7 @@ var components$5 = {
5510
5503
  var palette = _ref5.theme.palette,
5511
5504
  ownerState = _ref5.ownerState;
5512
5505
  return {
5513
- backgroundColor: palette.mode === 'light' ? palette[ownerState.color][50] : colorManipulator_js.alpha(palette[ownerState.color][50], 0.5)
5506
+ backgroundColor: palette.mode === 'light' ? palette[ownerState.color][50] : colorManipulator_js.alpha(palette[ownerState.color][400], 0.2)
5514
5507
  };
5515
5508
  },
5516
5509
  outlined: function outlined(_ref6) {