@rabex-kit/rabex-ui 0.1.10 → 0.1.13
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.
- package/dist/SegmentedControl/index.d.ts +0 -2
- package/dist/Tabs/index.d.ts +1 -0
- package/dist/Theme/Tabs/index.d.ts +2098 -182
- package/dist/rabex-ui.cjs.development.js +57 -57
- package/dist/rabex-ui.cjs.development.js.map +1 -1
- package/dist/rabex-ui.cjs.production.min.js +1 -1
- package/dist/rabex-ui.cjs.production.min.js.map +1 -1
- package/dist/rabex-ui.esm.js +57 -57
- package/dist/rabex-ui.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/rabex-ui.esm.js
CHANGED
@@ -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 = {
|
@@ -3109,7 +3110,32 @@ var RabexTabs = {
|
|
3109
3110
|
return _extends({
|
3110
3111
|
borderRadius: 8,
|
3111
3112
|
minHeight: 'unset',
|
3112
|
-
color: theme.palette.base.A10
|
3113
|
+
color: theme.palette.base.A10,
|
3114
|
+
'& .MuiTab-root.Mui-selected': {
|
3115
|
+
borderRadius: 4,
|
3116
|
+
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
|
3117
|
+
},
|
3118
|
+
'& .MuiTabs-flexContainer': {
|
3119
|
+
padding: theme.spacing(1)
|
3120
|
+
}
|
3121
|
+
}, ownerState.mode === 'underline' && {
|
3122
|
+
'& .MuiTab-root.Mui-selected': {
|
3123
|
+
borderRadius: 4,
|
3124
|
+
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
|
3125
|
+
},
|
3126
|
+
'& .MuiTabs-flexContainer': {
|
3127
|
+
padding: theme.spacing(1)
|
3128
|
+
},
|
3129
|
+
backgroundColor: 'unset'
|
3130
|
+
}, ownerState.mode === 'pill' && {
|
3131
|
+
'& .MuiTab-root.Mui-selected': {
|
3132
|
+
borderRadius: 4,
|
3133
|
+
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
|
3134
|
+
},
|
3135
|
+
'& .MuiTabs-flexContainer': {
|
3136
|
+
padding: theme.spacing(1)
|
3137
|
+
},
|
3138
|
+
backgroundColor: theme.palette.mode === 'light' ? theme.palette.secondary.A100 : theme.palette.secondary.A100
|
3113
3139
|
}, ownerState.size === 'sm' && {
|
3114
3140
|
height: theme.spacing(8),
|
3115
3141
|
borderRadius: theme.spacing(2),
|
@@ -3122,7 +3148,7 @@ var RabexTabs = {
|
|
3122
3148
|
height: theme.spacing(14),
|
3123
3149
|
borderRadius: theme.spacing(3),
|
3124
3150
|
padding: theme.spacing(3, 4)
|
3125
|
-
},
|
3151
|
+
}, ownerState.mode === 'underline' && {
|
3126
3152
|
'& .MuiTab-root.Mui-selected': {
|
3127
3153
|
borderRadius: 4,
|
3128
3154
|
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
|
@@ -3130,33 +3156,16 @@ var RabexTabs = {
|
|
3130
3156
|
'& .MuiTabs-flexContainer': {
|
3131
3157
|
padding: theme.spacing(1)
|
3132
3158
|
},
|
3133
|
-
backgroundColor:
|
3134
|
-
}, ownerState.
|
3135
|
-
|
3159
|
+
backgroundColor: 'unset'
|
3160
|
+
}, ownerState.mode === 'pill' && {
|
3161
|
+
'& .MuiTab-root.Mui-selected': {
|
3162
|
+
borderRadius: 4,
|
3163
|
+
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
|
3164
|
+
},
|
3136
3165
|
'& .MuiTabs-flexContainer': {
|
3137
|
-
gridGap: theme.spacing(1.5),
|
3138
3166
|
padding: theme.spacing(1)
|
3139
3167
|
},
|
3140
|
-
'
|
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
|
3168
|
+
backgroundColor: theme.palette.mode === 'light' ? theme.palette.secondary.A100 : theme.palette.secondary.A100
|
3160
3169
|
}, ownerState.variant === 'fullWidth' && {
|
3161
3170
|
width: '100%'
|
3162
3171
|
}, ownerState.orientation === 'vertical' && {
|
@@ -3167,7 +3176,7 @@ var RabexTabs = {
|
|
3167
3176
|
});
|
3168
3177
|
},
|
3169
3178
|
indicator: {
|
3170
|
-
display: '
|
3179
|
+
display: 'show'
|
3171
3180
|
}
|
3172
3181
|
},
|
3173
3182
|
variants: []
|
@@ -5663,7 +5672,7 @@ var _excluded$m = ["theme"];
|
|
5663
5672
|
var SegmentedControl = /*#__PURE__*/styled(MuiTabs, {
|
5664
5673
|
name: 'SegmentedControl',
|
5665
5674
|
shouldForwardProp: function shouldForwardProp(prop) {
|
5666
|
-
return !['size'
|
5675
|
+
return !['size'].includes(prop);
|
5667
5676
|
}
|
5668
5677
|
})(function (_ref) {
|
5669
5678
|
var theme = _ref.theme,
|
@@ -5711,22 +5720,6 @@ var SegmentedControl = /*#__PURE__*/styled(MuiTabs, {
|
|
5711
5720
|
color: 'inherit',
|
5712
5721
|
borderRadius: theme.spacing(2)
|
5713
5722
|
}
|
5714
|
-
}, ownerState.isSeparate && {
|
5715
|
-
'& .MuiTabs-flexContainer': {
|
5716
|
-
gap: theme.spacing(1),
|
5717
|
-
padding: theme.spacing(1)
|
5718
|
-
},
|
5719
|
-
'& .MuiTab-root': {
|
5720
|
-
borderRadius: theme.spacing(1),
|
5721
|
-
padding: theme.spacing(2, 3)
|
5722
|
-
}
|
5723
|
-
}, ownerState.hasBorder && {
|
5724
|
-
border: "2px dotted " + theme.palette.divider,
|
5725
|
-
'& .MuiTab-root': {
|
5726
|
-
borderRadius: theme.spacing(1),
|
5727
|
-
border: "2px dotted " + theme.palette.divider,
|
5728
|
-
lineHeight: theme.spacing(2)
|
5729
|
-
}
|
5730
5723
|
}, ownerState.variant === 'fullWidth' && {
|
5731
5724
|
width: '100%'
|
5732
5725
|
}, {
|
@@ -5738,17 +5731,13 @@ var SegmentedControl = /*#__PURE__*/styled(MuiTabs, {
|
|
5738
5731
|
});
|
5739
5732
|
SegmentedControl.defaultProps = {
|
5740
5733
|
variant: 'fullWidth',
|
5741
|
-
size: 'sm'
|
5742
|
-
isSeparate: false,
|
5743
|
-
hasBorder: false
|
5734
|
+
size: 'sm'
|
5744
5735
|
};
|
5745
5736
|
|
5746
|
-
// Custom SegmentedControlTab with
|
5737
|
+
// Custom SegmentedControlTab with applied styles
|
5747
5738
|
var SegmentedControlTab = /*#__PURE__*/styled(function (props) {
|
5748
5739
|
return React.createElement(MuiTab, Object.assign({}, props, {
|
5749
|
-
label:
|
5750
|
-
// Render custom Typography for the label
|
5751
|
-
React.createElement(Typography, {
|
5740
|
+
label: React.createElement(Typography, {
|
5752
5741
|
variant: "body2",
|
5753
5742
|
weight: "semiBold"
|
5754
5743
|
}, props.label)
|
@@ -5757,16 +5746,27 @@ var SegmentedControlTab = /*#__PURE__*/styled(function (props) {
|
|
5757
5746
|
var theme = _ref.theme;
|
5758
5747
|
return {
|
5759
5748
|
minWidth: 80,
|
5760
|
-
|
5749
|
+
fontWeight: 600,
|
5750
|
+
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A40,
|
5751
|
+
padding: theme.spacing(0, 2),
|
5761
5752
|
position: 'relative',
|
5762
5753
|
minHeight: 24,
|
5763
|
-
borderRadius:
|
5754
|
+
borderRadius: theme.spacing(1),
|
5764
5755
|
'&::after': {
|
5756
|
+
content: "''",
|
5757
|
+
position: 'absolute',
|
5758
|
+
width: 1,
|
5759
|
+
height: 12,
|
5760
|
+
background: theme.palette.grayBackground.A40,
|
5761
|
+
top: 'calc(50% - 6px)',
|
5762
|
+
left: 0
|
5763
|
+
},
|
5764
|
+
'&.Mui-selected::after, &:first-of-type::after, &.Mui-selected + .MuiTab-root::after': {
|
5765
5765
|
content: 'unset',
|
5766
5766
|
display: 'none'
|
5767
5767
|
},
|
5768
|
-
'&.
|
5769
|
-
backgroundColor: theme.palette.mode === 'light' ? theme.palette.base
|
5768
|
+
'&.Mui-selected': {
|
5769
|
+
backgroundColor: theme.palette.mode === 'light' ? theme.palette.base.A0 : theme.palette.secondary.A80,
|
5770
5770
|
color: theme.palette.textColor[900]
|
5771
5771
|
},
|
5772
5772
|
'&.Mui-disabled': {
|