@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.
- package/dist/Tabs/index.d.ts +1 -0
- package/dist/Theme/Tabs/index.d.ts +2042 -182
- package/dist/rabex-ui.cjs.development.js +47 -36
- 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 +47 -36
- package/dist/rabex-ui.esm.js.map +1 -1
- package/package.json +1 -1
@@ -2254,7 +2254,7 @@ var TabPanel = function TabPanel(_ref) {
|
|
2254
2254
|
var Tabs = /*#__PURE__*/styled(MuiTabs, {
|
2255
2255
|
name: 'MuiTabs',
|
2256
2256
|
shouldForwardProp: function shouldForwardProp(prop) {
|
2257
|
-
return !['hasBorder', 'isSeprate', 'size'].includes(prop);
|
2257
|
+
return !['hasBorder', 'isSeprate', 'size', 'mode'].includes(prop);
|
2258
2258
|
}
|
2259
2259
|
})(function () {
|
2260
2260
|
return {};
|
@@ -2266,7 +2266,8 @@ Tabs.defaultProps = {
|
|
2266
2266
|
hasBorder: false,
|
2267
2267
|
isSeprate: false,
|
2268
2268
|
variant: 'fullWidth',
|
2269
|
-
size: 'sm'
|
2269
|
+
size: 'sm',
|
2270
|
+
mode: 'underline'
|
2270
2271
|
};
|
2271
2272
|
|
2272
2273
|
var RabexTypography = {
|
@@ -3115,6 +3116,24 @@ var RabexTabs = {
|
|
3115
3116
|
borderRadius: 8,
|
3116
3117
|
minHeight: 'unset',
|
3117
3118
|
color: theme.palette.base.A10
|
3119
|
+
}, ownerState.mode === 'underline' && {
|
3120
|
+
'& .MuiTab-root.Mui-selected': {
|
3121
|
+
borderRadius: 4,
|
3122
|
+
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
|
3123
|
+
},
|
3124
|
+
'& .MuiTabs-flexContainer': {
|
3125
|
+
padding: theme.spacing(1)
|
3126
|
+
},
|
3127
|
+
backgroundColor: 'unset'
|
3128
|
+
}, ownerState.mode === 'pill' && {
|
3129
|
+
'& .MuiTab-root.Mui-selected': {
|
3130
|
+
borderRadius: 4,
|
3131
|
+
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
|
3132
|
+
},
|
3133
|
+
'& .MuiTabs-flexContainer': {
|
3134
|
+
padding: theme.spacing(1)
|
3135
|
+
},
|
3136
|
+
backgroundColor: theme.palette.mode === 'light' ? theme.palette.secondary.A100 : theme.palette.secondary.A100
|
3118
3137
|
}, ownerState.size === 'sm' && {
|
3119
3138
|
height: theme.spacing(8),
|
3120
3139
|
borderRadius: theme.spacing(2),
|
@@ -3127,7 +3146,7 @@ var RabexTabs = {
|
|
3127
3146
|
height: theme.spacing(14),
|
3128
3147
|
borderRadius: theme.spacing(3),
|
3129
3148
|
padding: theme.spacing(3, 4)
|
3130
|
-
},
|
3149
|
+
}, ownerState.mode === 'underline' && {
|
3131
3150
|
'& .MuiTab-root.Mui-selected': {
|
3132
3151
|
borderRadius: 4,
|
3133
3152
|
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
|
@@ -3135,33 +3154,16 @@ var RabexTabs = {
|
|
3135
3154
|
'& .MuiTabs-flexContainer': {
|
3136
3155
|
padding: theme.spacing(1)
|
3137
3156
|
},
|
3138
|
-
backgroundColor:
|
3139
|
-
}, ownerState.
|
3140
|
-
|
3157
|
+
backgroundColor: 'unset'
|
3158
|
+
}, ownerState.mode === 'pill' && {
|
3159
|
+
'& .MuiTab-root.Mui-selected': {
|
3160
|
+
borderRadius: 4,
|
3161
|
+
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
|
3162
|
+
},
|
3141
3163
|
'& .MuiTabs-flexContainer': {
|
3142
|
-
gridGap: theme.spacing(1.5),
|
3143
3164
|
padding: theme.spacing(1)
|
3144
3165
|
},
|
3145
|
-
'
|
3146
|
-
borderRadius: '7px',
|
3147
|
-
padding: theme.spacing(2, 3)
|
3148
|
-
},
|
3149
|
-
'& .MuiTab-root.Mui-selected': {
|
3150
|
-
borderRadius: 5,
|
3151
|
-
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0,
|
3152
|
-
boxShadow: theme.shadows[2]
|
3153
|
-
},
|
3154
|
-
'& .MuiTab-root::after': {
|
3155
|
-
display: 'none'
|
3156
|
-
}
|
3157
|
-
}, ownerState.hasBorder && ownerState.isSeprate && {
|
3158
|
-
'& .MuiTab-root': {
|
3159
|
-
borderRadius: 5,
|
3160
|
-
padding: theme.spacing(2, 3),
|
3161
|
-
border: "2px dotted " + theme.palette.base.A40
|
3162
|
-
}
|
3163
|
-
}, ownerState.hasBorder && !ownerState.isSeprate && {
|
3164
|
-
border: "2px dotted " + theme.palette.base.A40
|
3166
|
+
backgroundColor: theme.palette.mode === 'light' ? theme.palette.secondary.A100 : theme.palette.secondary.A100
|
3165
3167
|
}, ownerState.variant === 'fullWidth' && {
|
3166
3168
|
width: '100%'
|
3167
3169
|
}, ownerState.orientation === 'vertical' && {
|
@@ -3172,7 +3174,7 @@ var RabexTabs = {
|
|
3172
3174
|
});
|
3173
3175
|
},
|
3174
3176
|
indicator: {
|
3175
|
-
display: '
|
3177
|
+
display: 'show'
|
3176
3178
|
}
|
3177
3179
|
},
|
3178
3180
|
variants: []
|
@@ -5748,12 +5750,10 @@ SegmentedControl.defaultProps = {
|
|
5748
5750
|
hasBorder: false
|
5749
5751
|
};
|
5750
5752
|
|
5751
|
-
// Custom SegmentedControlTab with
|
5753
|
+
// Custom SegmentedControlTab with applied styles
|
5752
5754
|
var SegmentedControlTab = /*#__PURE__*/styled(function (props) {
|
5753
5755
|
return React__default.createElement(MuiTab, Object.assign({}, props, {
|
5754
|
-
label:
|
5755
|
-
// Render custom Typography for the label
|
5756
|
-
React__default.createElement(Typography, {
|
5756
|
+
label: React__default.createElement(Typography, {
|
5757
5757
|
variant: "body2",
|
5758
5758
|
weight: "semiBold"
|
5759
5759
|
}, props.label)
|
@@ -5762,16 +5762,27 @@ var SegmentedControlTab = /*#__PURE__*/styled(function (props) {
|
|
5762
5762
|
var theme = _ref.theme;
|
5763
5763
|
return {
|
5764
5764
|
minWidth: 80,
|
5765
|
-
|
5765
|
+
fontWeight: 600,
|
5766
|
+
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A40,
|
5767
|
+
padding: theme.spacing(0, 2),
|
5766
5768
|
position: 'relative',
|
5767
5769
|
minHeight: 24,
|
5768
|
-
borderRadius:
|
5770
|
+
borderRadius: theme.spacing(1),
|
5769
5771
|
'&::after': {
|
5772
|
+
content: "''",
|
5773
|
+
position: 'absolute',
|
5774
|
+
width: 1,
|
5775
|
+
height: 12,
|
5776
|
+
background: theme.palette.grayBackground.A40,
|
5777
|
+
top: 'calc(50% - 6px)',
|
5778
|
+
left: 0
|
5779
|
+
},
|
5780
|
+
'&.Mui-selected::after, &:first-of-type::after, &.Mui-selected + .MuiTab-root::after': {
|
5770
5781
|
content: 'unset',
|
5771
5782
|
display: 'none'
|
5772
5783
|
},
|
5773
|
-
'&.
|
5774
|
-
backgroundColor: theme.palette.mode === 'light' ? theme.palette.base
|
5784
|
+
'&.Mui-selected': {
|
5785
|
+
backgroundColor: theme.palette.mode === 'light' ? theme.palette.base.A0 : theme.palette.secondary.A80,
|
5775
5786
|
color: theme.palette.textColor[900]
|
5776
5787
|
},
|
5777
5788
|
'&.Mui-disabled': {
|