@rabex-kit/rabex-ui 0.1.11 → 0.1.18

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.
@@ -5,6 +5,7 @@ import MuiAccordionSummary from '@mui/material/AccordionSummary/AccordionSummary
5
5
  import MuiAlert from '@mui/material/Alert/Alert.js';
6
6
  import Stack$1 from '@mui/material/Stack/Stack.js';
7
7
  import MuiTypography from '@mui/material/Typography/Typography.js';
8
+ import useTheme from '@mui/material/styles/useTheme.js';
8
9
  import useMediaQuery from '@mui/material/useMediaQuery/useMediaQuery.js';
9
10
  export { default as useMediaQuery } from '@mui/material/useMediaQuery/useMediaQuery.js';
10
11
  export { default as useScrollTrigger } from '@mui/material/useScrollTrigger/useScrollTrigger.js';
@@ -35,7 +36,6 @@ import MuiFormLabel from '@mui/material/FormLabel/FormLabel.js';
35
36
  import MuiGrid from '@mui/material/Unstable_Grid2';
36
37
  import MuiIconButton from '@mui/material/IconButton/IconButton.js';
37
38
  import MuiInput from '@mui/material/Input/Input.js';
38
- import useTheme from '@mui/material/styles/useTheme.js';
39
39
  import MuiInputAdornment from '@mui/material/InputAdornment/InputAdornment.js';
40
40
  import MuiInputLabel from '@mui/material/InputLabel/InputLabel.js';
41
41
  import MuiLinearProgress from '@mui/material/LinearProgress/LinearProgress.js';
@@ -260,7 +260,7 @@ var AlertAction = function AlertAction(_ref) {
260
260
  })));
261
261
  };
262
262
 
263
- var _excluded$1 = ["weight", "sx"];
263
+ var _excluded$1 = ["weight", "sx", "color"];
264
264
  var fontWeight = {
265
265
  bold: '700',
266
266
  semiBold: '600',
@@ -285,11 +285,15 @@ var fontWeight = {
285
285
  var Typography = function Typography(_ref) {
286
286
  var weight = _ref.weight,
287
287
  sx = _ref.sx,
288
+ color = _ref.color,
288
289
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
290
+ var _useTheme = useTheme(),
291
+ palette = _useTheme.palette;
289
292
  return React.createElement(MuiTypography, Object.assign({
290
293
  sx: _extends({}, sx, {
291
294
  fontWeight: weight ? fontWeight[weight] : 'regular'
292
- })
295
+ }),
296
+ color: color || palette.textColor[900]
293
297
  }, props));
294
298
  };
295
299
  Typography.defaultProps = {
@@ -2315,8 +2319,7 @@ var RabexTypography = {
2315
2319
  helperText: 'span',
2316
2320
  inputLabel2: 'span',
2317
2321
  body4: 'span',
2318
- body5: 'span',
2319
- paragraph: 'span'
2322
+ body5: 'span'
2320
2323
  }
2321
2324
  }
2322
2325
  },
@@ -2419,11 +2422,6 @@ var RabexTypography = {
2419
2422
  fontSize: '12px',
2420
2423
  lineHeight: '24px',
2421
2424
  fontFamily: 'Yekan, Arial'
2422
- },
2423
- paragraph: {
2424
- fontSize: '12px',
2425
- lineHeight: '24px',
2426
- fontFamily: 'Yekan, Arial'
2427
2425
  }
2428
2426
  }
2429
2427
  };
@@ -3110,7 +3108,14 @@ var RabexTabs = {
3110
3108
  return _extends({
3111
3109
  borderRadius: 8,
3112
3110
  minHeight: 'unset',
3113
- color: theme.palette.base.A10
3111
+ color: theme.palette.base.A10,
3112
+ '& .MuiTab-root.Mui-selected': {
3113
+ borderRadius: 4,
3114
+ color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
3115
+ },
3116
+ '& .MuiTabs-flexContainer': {
3117
+ padding: theme.spacing(1)
3118
+ }
3114
3119
  }, ownerState.mode === 'underline' && {
3115
3120
  '& .MuiTab-root.Mui-selected': {
3116
3121
  borderRadius: 4,
@@ -3649,8 +3654,8 @@ var RabexDivider = {
3649
3654
  root: function root(_ref) {
3650
3655
  var theme = _ref.theme;
3651
3656
  return {
3652
- borderStyle: 'dashed',
3653
- borderColor: theme.palette.grayBackground.A80
3657
+ borderStyle: 'solid',
3658
+ borderColor: theme.palette.base[200]
3654
3659
  };
3655
3660
  }
3656
3661
  }
@@ -5665,7 +5670,7 @@ var _excluded$m = ["theme"];
5665
5670
  var SegmentedControl = /*#__PURE__*/styled(MuiTabs, {
5666
5671
  name: 'SegmentedControl',
5667
5672
  shouldForwardProp: function shouldForwardProp(prop) {
5668
- return !['size', 'isSeparate', 'hasBorder'].includes(prop);
5673
+ return !['size'].includes(prop);
5669
5674
  }
5670
5675
  })(function (_ref) {
5671
5676
  var theme = _ref.theme,
@@ -5713,22 +5718,6 @@ var SegmentedControl = /*#__PURE__*/styled(MuiTabs, {
5713
5718
  color: 'inherit',
5714
5719
  borderRadius: theme.spacing(2)
5715
5720
  }
5716
- }, ownerState.isSeparate && {
5717
- '& .MuiTabs-flexContainer': {
5718
- gap: theme.spacing(1),
5719
- padding: theme.spacing(1)
5720
- },
5721
- '& .MuiTab-root': {
5722
- borderRadius: theme.spacing(1),
5723
- padding: theme.spacing(2, 3)
5724
- }
5725
- }, ownerState.hasBorder && {
5726
- border: "2px dotted " + theme.palette.divider,
5727
- '& .MuiTab-root': {
5728
- borderRadius: theme.spacing(1),
5729
- border: "2px dotted " + theme.palette.divider,
5730
- lineHeight: theme.spacing(2)
5731
- }
5732
5721
  }, ownerState.variant === 'fullWidth' && {
5733
5722
  width: '100%'
5734
5723
  }, {
@@ -5740,9 +5729,7 @@ var SegmentedControl = /*#__PURE__*/styled(MuiTabs, {
5740
5729
  });
5741
5730
  SegmentedControl.defaultProps = {
5742
5731
  variant: 'fullWidth',
5743
- size: 'sm',
5744
- isSeparate: false,
5745
- hasBorder: false
5732
+ size: 'sm'
5746
5733
  };
5747
5734
 
5748
5735
  // Custom SegmentedControlTab with applied styles