@rabex-kit/rabex-ui 0.2.30 → 0.2.32
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/Theme/Autocomplete/index.d.ts +17 -1
- package/dist/Theme/Modal/index.d.ts +0 -1
- package/dist/Theme/SegmentedControlTab/index.d.ts +5 -0
- package/dist/rabex-ui.cjs.development.js +93 -9
- 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 +93 -9
- package/dist/rabex-ui.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/rabex-ui.esm.js
CHANGED
|
@@ -2682,7 +2682,7 @@ var components = {
|
|
|
2682
2682
|
// const primaryColor = palette.primary[500] || palette[color].A100;
|
|
2683
2683
|
var primaryColor = color !== 'primary' ? palette[color][400] : palette.primary[500];
|
|
2684
2684
|
var textColor = palette.textColor[50] || palette[color].A0;
|
|
2685
|
-
var disableBackgroundColor = palette.primary[400]
|
|
2685
|
+
var disableBackgroundColor = color === 'primary' ? palette.primary[400] : palette[color][200];
|
|
2686
2686
|
return {
|
|
2687
2687
|
// backgroundColor: palette[color].A100,
|
|
2688
2688
|
backgroundColor: primaryColor,
|
|
@@ -2698,7 +2698,10 @@ var components = {
|
|
|
2698
2698
|
},
|
|
2699
2699
|
'&.Mui-disabled': {
|
|
2700
2700
|
color: palette.mode === 'light' ? textColor : palette.textColor.A90,
|
|
2701
|
-
backgroundColor:
|
|
2701
|
+
backgroundColor: disableBackgroundColor
|
|
2702
|
+
// palette.mode === 'light'
|
|
2703
|
+
// ? disableBackgroundColor
|
|
2704
|
+
// : darken(palette[color].A100 as string, 0.1),
|
|
2702
2705
|
}
|
|
2703
2706
|
};
|
|
2704
2707
|
},
|
|
@@ -2706,7 +2709,7 @@ var components = {
|
|
|
2706
2709
|
var palette = _ref3.theme.palette;
|
|
2707
2710
|
var secondaryColor = palette.secondary[500] || palette.secondary.A100;
|
|
2708
2711
|
var textColor = palette.textColor[900] || palette.textColor.A80;
|
|
2709
|
-
var hoverColor = palette.secondary[
|
|
2712
|
+
var hoverColor = palette.secondary[400] || darken(palette.secondary.A100, 0.05);
|
|
2710
2713
|
return {
|
|
2711
2714
|
backgroundColor: palette.mode === 'light' ? secondaryColor : palette.secondary.A60,
|
|
2712
2715
|
color: palette.mode === 'light' ? textColor : palette.textColor.A0,
|
|
@@ -2714,11 +2717,11 @@ var components = {
|
|
|
2714
2717
|
backgroundColor: palette.mode === 'light' ? hoverColor : palette.secondary.A60
|
|
2715
2718
|
},
|
|
2716
2719
|
'&:active': {
|
|
2717
|
-
backgroundColor: palette.mode === 'light' ? palette.secondary[
|
|
2720
|
+
backgroundColor: palette.mode === 'light' ? palette.secondary[400] || darken(palette.secondary.A100, 0.05) : palette.secondary.A60,
|
|
2718
2721
|
boxShadow: '0px 0px 0px 4px #0000000D'
|
|
2719
2722
|
},
|
|
2720
2723
|
'&:focused': {
|
|
2721
|
-
backgroundColor: palette.mode === 'light' ? palette.secondary[
|
|
2724
|
+
backgroundColor: palette.mode === 'light' ? palette.secondary[400] || darken(palette.secondary.A100, 0.05) : palette.secondary.A60,
|
|
2722
2725
|
boxShadow: '0px 0px 0px 4px #0000000D'
|
|
2723
2726
|
},
|
|
2724
2727
|
'&.Mui-disabled': {
|
|
@@ -3355,6 +3358,9 @@ var RabexTabs = {
|
|
|
3355
3358
|
borderRadius: theme.spacing(2),
|
|
3356
3359
|
backgroundColor: theme.palette.secondary[500],
|
|
3357
3360
|
color: theme.palette.textColor[900],
|
|
3361
|
+
'&.Mui-disabled': {
|
|
3362
|
+
color: theme.palette.textColor[200]
|
|
3363
|
+
},
|
|
3358
3364
|
'&:hover': {
|
|
3359
3365
|
backgroundColor: theme.palette.primary[600],
|
|
3360
3366
|
color: theme.palette.textColor[50]
|
|
@@ -4801,8 +4807,8 @@ var RabexModal = {
|
|
|
4801
4807
|
var theme = _ref.theme;
|
|
4802
4808
|
return {
|
|
4803
4809
|
'&:not(.MuiMenu-root, .MuiPopover-root) .MuiBackdrop-root': {
|
|
4804
|
-
backdropFilter: 'blur(2px)',
|
|
4805
|
-
backgroundColor: alpha(theme.palette.
|
|
4810
|
+
// backdropFilter: 'blur(2px)',
|
|
4811
|
+
backgroundColor: alpha(theme.palette.base[600] || '', 0.7)
|
|
4806
4812
|
}
|
|
4807
4813
|
};
|
|
4808
4814
|
}
|
|
@@ -5097,6 +5103,74 @@ var RabexLoadingButton = {
|
|
|
5097
5103
|
components: components$8
|
|
5098
5104
|
};
|
|
5099
5105
|
|
|
5106
|
+
var components$9 = {
|
|
5107
|
+
styleOverrides: {
|
|
5108
|
+
root: function root(_ref) {
|
|
5109
|
+
return {
|
|
5110
|
+
'&.MuiAutocomplete-root': {}
|
|
5111
|
+
};
|
|
5112
|
+
},
|
|
5113
|
+
input: function input(_ref2) {
|
|
5114
|
+
return {
|
|
5115
|
+
padding: '0 !important'
|
|
5116
|
+
};
|
|
5117
|
+
},
|
|
5118
|
+
paper: function paper(_ref3) {
|
|
5119
|
+
return {
|
|
5120
|
+
borderRadius: '8px !important'
|
|
5121
|
+
};
|
|
5122
|
+
},
|
|
5123
|
+
listbox: function listbox(_ref4) {
|
|
5124
|
+
var theme = _ref4.theme;
|
|
5125
|
+
return {
|
|
5126
|
+
padding: '8px 4px !important',
|
|
5127
|
+
borderRadius: '8px !important',
|
|
5128
|
+
backgroundColor: theme.palette.base[50] + " !important",
|
|
5129
|
+
gap: '4px !important',
|
|
5130
|
+
display: 'flex',
|
|
5131
|
+
flexDirection: 'column'
|
|
5132
|
+
};
|
|
5133
|
+
},
|
|
5134
|
+
option: function option(_ref5) {
|
|
5135
|
+
var theme = _ref5.theme;
|
|
5136
|
+
return {
|
|
5137
|
+
backgroundColor: 'transparent !important',
|
|
5138
|
+
borderRadius: '8px !important',
|
|
5139
|
+
padding: '0 !important',
|
|
5140
|
+
transition: theme.transitions.create(['background-color', 'transform'], {
|
|
5141
|
+
duration: theme.transitions.duration.shorter
|
|
5142
|
+
}),
|
|
5143
|
+
// Hover state - FIXED syntax
|
|
5144
|
+
'&:hover': {
|
|
5145
|
+
backgroundColor: theme.palette.base[200] + " !important",
|
|
5146
|
+
boxShadow: 'unset'
|
|
5147
|
+
},
|
|
5148
|
+
// Selected state
|
|
5149
|
+
'&[aria-selected="true"]': {
|
|
5150
|
+
backgroundColor: theme.palette.base[200] + " !important",
|
|
5151
|
+
'&:hover': {
|
|
5152
|
+
boxShadow: '0px 0px 0px 4px rgba(0, 0, 0, 0.05)',
|
|
5153
|
+
backgroundColor: theme.palette.base[200] + " !important"
|
|
5154
|
+
}
|
|
5155
|
+
},
|
|
5156
|
+
// Focused state (keyboard navigation)
|
|
5157
|
+
'&.Mui-focused': {
|
|
5158
|
+
backgroundColor: theme.palette.base[200] + " !important"
|
|
5159
|
+
}
|
|
5160
|
+
};
|
|
5161
|
+
},
|
|
5162
|
+
noOptions: function noOptions(_ref6) {
|
|
5163
|
+
return {};
|
|
5164
|
+
},
|
|
5165
|
+
loading: function loading(_ref7) {
|
|
5166
|
+
return {};
|
|
5167
|
+
}
|
|
5168
|
+
}
|
|
5169
|
+
};
|
|
5170
|
+
var RabexAutocomplete = {
|
|
5171
|
+
components: components$9
|
|
5172
|
+
};
|
|
5173
|
+
|
|
5100
5174
|
var getDesignTokens = function getDesignTokens(_ref) {
|
|
5101
5175
|
var deviceType = _ref.deviceType,
|
|
5102
5176
|
_ref$mode = _ref.mode,
|
|
@@ -5158,7 +5232,8 @@ var getDesignTokens = function getDesignTokens(_ref) {
|
|
|
5158
5232
|
MuiPagination: RabexPagination.components,
|
|
5159
5233
|
MuiPaginationItem: RabexPaginationItem.components,
|
|
5160
5234
|
MuiGrid: RabexGrid.components,
|
|
5161
|
-
MuiLoadingButton: RabexLoadingButton.components
|
|
5235
|
+
MuiLoadingButton: RabexLoadingButton.components,
|
|
5236
|
+
MuiAutocomplete: RabexAutocomplete.components
|
|
5162
5237
|
}),
|
|
5163
5238
|
palette: _extends({}, mode === 'light' ? createPalette(RabexLightPalette) : createPalette(RabexDarkPalette)),
|
|
5164
5239
|
typography: RabexTypography.typography,
|
|
@@ -6201,6 +6276,15 @@ var SegmentedControl = /*#__PURE__*/styled(MuiTabs, {
|
|
|
6201
6276
|
'& .MuiTab-root.Mui-selected': {
|
|
6202
6277
|
backgroundColor: theme.palette.base[50],
|
|
6203
6278
|
color: theme.palette.textColor[900]
|
|
6279
|
+
},
|
|
6280
|
+
'& .MuiTab-root.Mui-disabled': {
|
|
6281
|
+
backgroundColor: theme.palette.base[50],
|
|
6282
|
+
color: theme.palette.textColor[200]
|
|
6283
|
+
},
|
|
6284
|
+
'& .MuiTab-root:hover': {
|
|
6285
|
+
backgroundColor: 'transparent',
|
|
6286
|
+
color: theme.palette.textColor[900],
|
|
6287
|
+
border: "1px solid " + theme.palette.base[50]
|
|
6204
6288
|
}
|
|
6205
6289
|
}
|
|
6206
6290
|
}, ownerState.size === 'sm' && {
|
|
@@ -6300,7 +6384,7 @@ var SegmentedControlTab = /*#__PURE__*/styled(function (props) {
|
|
|
6300
6384
|
},
|
|
6301
6385
|
'&.Mui-disabled': {
|
|
6302
6386
|
cursor: 'not-allowed',
|
|
6303
|
-
color: theme.palette.
|
|
6387
|
+
color: theme.palette.textColor[200]
|
|
6304
6388
|
},
|
|
6305
6389
|
'& .MuiTab-iconWrapper': {
|
|
6306
6390
|
fontSize: '14px'
|