@rabex-kit/rabex-ui 0.1.10 → 0.1.11

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.
@@ -2249,7 +2249,7 @@ var TabPanel = function TabPanel(_ref) {
2249
2249
  var Tabs = /*#__PURE__*/styled(MuiTabs, {
2250
2250
  name: 'MuiTabs',
2251
2251
  shouldForwardProp: function shouldForwardProp(prop) {
2252
- return !['hasBorder', 'isSeprate', 'size'].includes(prop);
2252
+ return !['hasBorder', 'isSeprate', 'size', 'mode'].includes(prop);
2253
2253
  }
2254
2254
  })(function () {
2255
2255
  return {};
@@ -2261,7 +2261,8 @@ Tabs.defaultProps = {
2261
2261
  hasBorder: false,
2262
2262
  isSeprate: false,
2263
2263
  variant: 'fullWidth',
2264
- size: 'sm'
2264
+ size: 'sm',
2265
+ mode: 'underline'
2265
2266
  };
2266
2267
 
2267
2268
  var RabexTypography = {
@@ -3110,6 +3111,24 @@ var RabexTabs = {
3110
3111
  borderRadius: 8,
3111
3112
  minHeight: 'unset',
3112
3113
  color: theme.palette.base.A10
3114
+ }, ownerState.mode === 'underline' && {
3115
+ '& .MuiTab-root.Mui-selected': {
3116
+ borderRadius: 4,
3117
+ color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
3118
+ },
3119
+ '& .MuiTabs-flexContainer': {
3120
+ padding: theme.spacing(1)
3121
+ },
3122
+ backgroundColor: 'unset'
3123
+ }, ownerState.mode === 'pill' && {
3124
+ '& .MuiTab-root.Mui-selected': {
3125
+ borderRadius: 4,
3126
+ color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
3127
+ },
3128
+ '& .MuiTabs-flexContainer': {
3129
+ padding: theme.spacing(1)
3130
+ },
3131
+ backgroundColor: theme.palette.mode === 'light' ? theme.palette.secondary.A100 : theme.palette.secondary.A100
3113
3132
  }, ownerState.size === 'sm' && {
3114
3133
  height: theme.spacing(8),
3115
3134
  borderRadius: theme.spacing(2),
@@ -3122,7 +3141,7 @@ var RabexTabs = {
3122
3141
  height: theme.spacing(14),
3123
3142
  borderRadius: theme.spacing(3),
3124
3143
  padding: theme.spacing(3, 4)
3125
- }, !ownerState.isSeprate && {
3144
+ }, ownerState.mode === 'underline' && {
3126
3145
  '& .MuiTab-root.Mui-selected': {
3127
3146
  borderRadius: 4,
3128
3147
  color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
@@ -3130,33 +3149,16 @@ var RabexTabs = {
3130
3149
  '& .MuiTabs-flexContainer': {
3131
3150
  padding: theme.spacing(1)
3132
3151
  },
3133
- backgroundColor: theme.palette.mode === 'light' ? theme.palette.secondary.A100 : theme.palette.secondary.A100
3134
- }, ownerState.isSeprate && {
3135
- backgroundColor: 'unset',
3152
+ backgroundColor: 'unset'
3153
+ }, ownerState.mode === 'pill' && {
3154
+ '& .MuiTab-root.Mui-selected': {
3155
+ borderRadius: 4,
3156
+ color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
3157
+ },
3136
3158
  '& .MuiTabs-flexContainer': {
3137
- gridGap: theme.spacing(1.5),
3138
3159
  padding: theme.spacing(1)
3139
3160
  },
3140
- '& .MuiTab-root': {
3141
- borderRadius: '7px',
3142
- padding: theme.spacing(2, 3)
3143
- },
3144
- '& .MuiTab-root.Mui-selected': {
3145
- borderRadius: 5,
3146
- color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0,
3147
- boxShadow: theme.shadows[2]
3148
- },
3149
- '& .MuiTab-root::after': {
3150
- display: 'none'
3151
- }
3152
- }, ownerState.hasBorder && ownerState.isSeprate && {
3153
- '& .MuiTab-root': {
3154
- borderRadius: 5,
3155
- padding: theme.spacing(2, 3),
3156
- border: "2px dotted " + theme.palette.base.A40
3157
- }
3158
- }, ownerState.hasBorder && !ownerState.isSeprate && {
3159
- border: "2px dotted " + theme.palette.base.A40
3161
+ backgroundColor: theme.palette.mode === 'light' ? theme.palette.secondary.A100 : theme.palette.secondary.A100
3160
3162
  }, ownerState.variant === 'fullWidth' && {
3161
3163
  width: '100%'
3162
3164
  }, ownerState.orientation === 'vertical' && {
@@ -3167,7 +3169,7 @@ var RabexTabs = {
3167
3169
  });
3168
3170
  },
3169
3171
  indicator: {
3170
- display: 'none'
3172
+ display: 'show'
3171
3173
  }
3172
3174
  },
3173
3175
  variants: []
@@ -5743,12 +5745,10 @@ SegmentedControl.defaultProps = {
5743
5745
  hasBorder: false
5744
5746
  };
5745
5747
 
5746
- // Custom SegmentedControlTab with styled applied based on size
5748
+ // Custom SegmentedControlTab with applied styles
5747
5749
  var SegmentedControlTab = /*#__PURE__*/styled(function (props) {
5748
5750
  return React.createElement(MuiTab, Object.assign({}, props, {
5749
- label:
5750
- // Render custom Typography for the label
5751
- React.createElement(Typography, {
5751
+ label: React.createElement(Typography, {
5752
5752
  variant: "body2",
5753
5753
  weight: "semiBold"
5754
5754
  }, props.label)
@@ -5757,16 +5757,27 @@ var SegmentedControlTab = /*#__PURE__*/styled(function (props) {
5757
5757
  var theme = _ref.theme;
5758
5758
  return {
5759
5759
  minWidth: 80,
5760
- color: theme.palette.mode === 'light' ? theme.palette.textColor[900] : theme.palette.textColor.A40,
5760
+ fontWeight: 600,
5761
+ color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A40,
5762
+ padding: theme.spacing(0, 2),
5761
5763
  position: 'relative',
5762
5764
  minHeight: 24,
5763
- borderRadius: 'unset',
5765
+ borderRadius: theme.spacing(1),
5764
5766
  '&::after': {
5767
+ content: "''",
5768
+ position: 'absolute',
5769
+ width: 1,
5770
+ height: 12,
5771
+ background: theme.palette.grayBackground.A40,
5772
+ top: 'calc(50% - 6px)',
5773
+ left: 0
5774
+ },
5775
+ '&.Mui-selected::after, &:first-of-type::after, &.Mui-selected + .MuiTab-root::after': {
5765
5776
  content: 'unset',
5766
5777
  display: 'none'
5767
5778
  },
5768
- '&.MuiTab-root.Mui-selected': {
5769
- backgroundColor: theme.palette.mode === 'light' ? theme.palette.base[50] : theme.palette.secondary.A80,
5779
+ '&.Mui-selected': {
5780
+ backgroundColor: theme.palette.mode === 'light' ? theme.palette.base.A0 : theme.palette.secondary.A80,
5770
5781
  color: theme.palette.textColor[900]
5771
5782
  },
5772
5783
  '&.Mui-disabled': {