@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
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
import { Theme } from '@mui/material';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
components: {
|
|
4
|
+
defaultProps?: Partial<import("@mui/material").AutocompleteProps<any, any, any, any, "div">> | undefined;
|
|
5
|
+
styleOverrides?: Partial<Record<"root" | "fullWidth" | "expanded" | "focused" | "focusVisible" | "tag" | "tagSizeSmall" | "tagSizeMedium" | "hasPopupIcon" | "hasClearIcon" | "inputRoot" | "input" | "inputFocused" | "endAdornment" | "clearIndicator" | "popupIndicator" | "popupIndicatorOpen" | "popper" | "popperDisablePortal" | "paper" | "listbox" | "loading" | "noOptions" | "option" | "groupLabel" | "groupUl", string | number | boolean | import("@mui/styled-engine").CSSObject | import("@mui/styled-engine").ComponentSelector | import("@mui/styled-engine").Keyframes | import("@mui/styled-engine").SerializedStyles | import("@mui/styled-engine").ArrayCSSInterpolation | ((props: {
|
|
6
|
+
ownerState: import("@mui/material").AutocompleteProps<any, any, any, any, "div"> & Record<string, unknown>;
|
|
7
|
+
} & {
|
|
8
|
+
theme: Pick<Theme, "unstable_sx" | "unstable_sxConfig" | "mixins" | "palette" | "shadows" | "transitions" | "typography" | "zIndex" | "unstable_strictMode" | "shape" | "breakpoints" | "direction" | "spacing">;
|
|
9
|
+
} & Record<string, unknown>) => import("@mui/styled-engine").CSSInterpolation) | null | undefined>> | undefined;
|
|
10
|
+
variants?: {
|
|
11
|
+
props: Partial<import("@mui/material").AutocompleteProps<any, any, any, any, "div">>;
|
|
12
|
+
style: import("@mui/styled-engine").Interpolation<{
|
|
13
|
+
theme: Theme;
|
|
14
|
+
}>;
|
|
15
|
+
}[] | undefined;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
2
18
|
export default _default;
|
|
@@ -11,6 +11,7 @@ declare const _default: {
|
|
|
11
11
|
'&': {
|
|
12
12
|
position: string;
|
|
13
13
|
};
|
|
14
|
+
'& .MuiTab-root': {};
|
|
14
15
|
'&::after': {
|
|
15
16
|
content: string;
|
|
16
17
|
position: string;
|
|
@@ -30,6 +31,10 @@ declare const _default: {
|
|
|
30
31
|
'&.Mui-disabled': {
|
|
31
32
|
cursor: string;
|
|
32
33
|
color: any;
|
|
34
|
+
backgroundColor: any;
|
|
35
|
+
};
|
|
36
|
+
'&:hover': {
|
|
37
|
+
backgroundColor: string;
|
|
33
38
|
};
|
|
34
39
|
'& .MuiTab-iconWrapper': {
|
|
35
40
|
fontSize: string;
|
|
@@ -2686,7 +2686,7 @@ var components = {
|
|
|
2686
2686
|
// const primaryColor = palette.primary[500] || palette[color].A100;
|
|
2687
2687
|
var primaryColor = color !== 'primary' ? palette[color][400] : palette.primary[500];
|
|
2688
2688
|
var textColor = palette.textColor[50] || palette[color].A0;
|
|
2689
|
-
var disableBackgroundColor = palette.primary[400]
|
|
2689
|
+
var disableBackgroundColor = color === 'primary' ? palette.primary[400] : palette[color][200];
|
|
2690
2690
|
return {
|
|
2691
2691
|
// backgroundColor: palette[color].A100,
|
|
2692
2692
|
backgroundColor: primaryColor,
|
|
@@ -2702,7 +2702,10 @@ var components = {
|
|
|
2702
2702
|
},
|
|
2703
2703
|
'&.Mui-disabled': {
|
|
2704
2704
|
color: palette.mode === 'light' ? textColor : palette.textColor.A90,
|
|
2705
|
-
backgroundColor:
|
|
2705
|
+
backgroundColor: disableBackgroundColor
|
|
2706
|
+
// palette.mode === 'light'
|
|
2707
|
+
// ? disableBackgroundColor
|
|
2708
|
+
// : darken(palette[color].A100 as string, 0.1),
|
|
2706
2709
|
}
|
|
2707
2710
|
};
|
|
2708
2711
|
},
|
|
@@ -2710,7 +2713,7 @@ var components = {
|
|
|
2710
2713
|
var palette = _ref3.theme.palette;
|
|
2711
2714
|
var secondaryColor = palette.secondary[500] || palette.secondary.A100;
|
|
2712
2715
|
var textColor = palette.textColor[900] || palette.textColor.A80;
|
|
2713
|
-
var hoverColor = palette.secondary[
|
|
2716
|
+
var hoverColor = palette.secondary[400] || colorManipulator_js.darken(palette.secondary.A100, 0.05);
|
|
2714
2717
|
return {
|
|
2715
2718
|
backgroundColor: palette.mode === 'light' ? secondaryColor : palette.secondary.A60,
|
|
2716
2719
|
color: palette.mode === 'light' ? textColor : palette.textColor.A0,
|
|
@@ -2718,11 +2721,11 @@ var components = {
|
|
|
2718
2721
|
backgroundColor: palette.mode === 'light' ? hoverColor : palette.secondary.A60
|
|
2719
2722
|
},
|
|
2720
2723
|
'&:active': {
|
|
2721
|
-
backgroundColor: palette.mode === 'light' ? palette.secondary[
|
|
2724
|
+
backgroundColor: palette.mode === 'light' ? palette.secondary[400] || colorManipulator_js.darken(palette.secondary.A100, 0.05) : palette.secondary.A60,
|
|
2722
2725
|
boxShadow: '0px 0px 0px 4px #0000000D'
|
|
2723
2726
|
},
|
|
2724
2727
|
'&:focused': {
|
|
2725
|
-
backgroundColor: palette.mode === 'light' ? palette.secondary[
|
|
2728
|
+
backgroundColor: palette.mode === 'light' ? palette.secondary[400] || colorManipulator_js.darken(palette.secondary.A100, 0.05) : palette.secondary.A60,
|
|
2726
2729
|
boxShadow: '0px 0px 0px 4px #0000000D'
|
|
2727
2730
|
},
|
|
2728
2731
|
'&.Mui-disabled': {
|
|
@@ -3359,6 +3362,9 @@ var RabexTabs = {
|
|
|
3359
3362
|
borderRadius: theme.spacing(2),
|
|
3360
3363
|
backgroundColor: theme.palette.secondary[500],
|
|
3361
3364
|
color: theme.palette.textColor[900],
|
|
3365
|
+
'&.Mui-disabled': {
|
|
3366
|
+
color: theme.palette.textColor[200]
|
|
3367
|
+
},
|
|
3362
3368
|
'&:hover': {
|
|
3363
3369
|
backgroundColor: theme.palette.primary[600],
|
|
3364
3370
|
color: theme.palette.textColor[50]
|
|
@@ -4805,8 +4811,8 @@ var RabexModal = {
|
|
|
4805
4811
|
var theme = _ref.theme;
|
|
4806
4812
|
return {
|
|
4807
4813
|
'&:not(.MuiMenu-root, .MuiPopover-root) .MuiBackdrop-root': {
|
|
4808
|
-
backdropFilter: 'blur(2px)',
|
|
4809
|
-
backgroundColor: colorManipulator_js.alpha(theme.palette.
|
|
4814
|
+
// backdropFilter: 'blur(2px)',
|
|
4815
|
+
backgroundColor: colorManipulator_js.alpha(theme.palette.base[600] || '', 0.7)
|
|
4810
4816
|
}
|
|
4811
4817
|
};
|
|
4812
4818
|
}
|
|
@@ -5101,6 +5107,74 @@ var RabexLoadingButton = {
|
|
|
5101
5107
|
components: components$8
|
|
5102
5108
|
};
|
|
5103
5109
|
|
|
5110
|
+
var components$9 = {
|
|
5111
|
+
styleOverrides: {
|
|
5112
|
+
root: function root(_ref) {
|
|
5113
|
+
return {
|
|
5114
|
+
'&.MuiAutocomplete-root': {}
|
|
5115
|
+
};
|
|
5116
|
+
},
|
|
5117
|
+
input: function input(_ref2) {
|
|
5118
|
+
return {
|
|
5119
|
+
padding: '0 !important'
|
|
5120
|
+
};
|
|
5121
|
+
},
|
|
5122
|
+
paper: function paper(_ref3) {
|
|
5123
|
+
return {
|
|
5124
|
+
borderRadius: '8px !important'
|
|
5125
|
+
};
|
|
5126
|
+
},
|
|
5127
|
+
listbox: function listbox(_ref4) {
|
|
5128
|
+
var theme = _ref4.theme;
|
|
5129
|
+
return {
|
|
5130
|
+
padding: '8px 4px !important',
|
|
5131
|
+
borderRadius: '8px !important',
|
|
5132
|
+
backgroundColor: theme.palette.base[50] + " !important",
|
|
5133
|
+
gap: '4px !important',
|
|
5134
|
+
display: 'flex',
|
|
5135
|
+
flexDirection: 'column'
|
|
5136
|
+
};
|
|
5137
|
+
},
|
|
5138
|
+
option: function option(_ref5) {
|
|
5139
|
+
var theme = _ref5.theme;
|
|
5140
|
+
return {
|
|
5141
|
+
backgroundColor: 'transparent !important',
|
|
5142
|
+
borderRadius: '8px !important',
|
|
5143
|
+
padding: '0 !important',
|
|
5144
|
+
transition: theme.transitions.create(['background-color', 'transform'], {
|
|
5145
|
+
duration: theme.transitions.duration.shorter
|
|
5146
|
+
}),
|
|
5147
|
+
// Hover state - FIXED syntax
|
|
5148
|
+
'&:hover': {
|
|
5149
|
+
backgroundColor: theme.palette.base[200] + " !important",
|
|
5150
|
+
boxShadow: 'unset'
|
|
5151
|
+
},
|
|
5152
|
+
// Selected state
|
|
5153
|
+
'&[aria-selected="true"]': {
|
|
5154
|
+
backgroundColor: theme.palette.base[200] + " !important",
|
|
5155
|
+
'&:hover': {
|
|
5156
|
+
boxShadow: '0px 0px 0px 4px rgba(0, 0, 0, 0.05)',
|
|
5157
|
+
backgroundColor: theme.palette.base[200] + " !important"
|
|
5158
|
+
}
|
|
5159
|
+
},
|
|
5160
|
+
// Focused state (keyboard navigation)
|
|
5161
|
+
'&.Mui-focused': {
|
|
5162
|
+
backgroundColor: theme.palette.base[200] + " !important"
|
|
5163
|
+
}
|
|
5164
|
+
};
|
|
5165
|
+
},
|
|
5166
|
+
noOptions: function noOptions(_ref6) {
|
|
5167
|
+
return {};
|
|
5168
|
+
},
|
|
5169
|
+
loading: function loading(_ref7) {
|
|
5170
|
+
return {};
|
|
5171
|
+
}
|
|
5172
|
+
}
|
|
5173
|
+
};
|
|
5174
|
+
var RabexAutocomplete = {
|
|
5175
|
+
components: components$9
|
|
5176
|
+
};
|
|
5177
|
+
|
|
5104
5178
|
var getDesignTokens = function getDesignTokens(_ref) {
|
|
5105
5179
|
var deviceType = _ref.deviceType,
|
|
5106
5180
|
_ref$mode = _ref.mode,
|
|
@@ -5162,7 +5236,8 @@ var getDesignTokens = function getDesignTokens(_ref) {
|
|
|
5162
5236
|
MuiPagination: RabexPagination.components,
|
|
5163
5237
|
MuiPaginationItem: RabexPaginationItem.components,
|
|
5164
5238
|
MuiGrid: RabexGrid.components,
|
|
5165
|
-
MuiLoadingButton: RabexLoadingButton.components
|
|
5239
|
+
MuiLoadingButton: RabexLoadingButton.components,
|
|
5240
|
+
MuiAutocomplete: RabexAutocomplete.components
|
|
5166
5241
|
}),
|
|
5167
5242
|
palette: _extends({}, mode === 'light' ? createPalette(RabexLightPalette) : createPalette(RabexDarkPalette)),
|
|
5168
5243
|
typography: RabexTypography.typography,
|
|
@@ -6205,6 +6280,15 @@ var SegmentedControl = /*#__PURE__*/styled(MuiTabs, {
|
|
|
6205
6280
|
'& .MuiTab-root.Mui-selected': {
|
|
6206
6281
|
backgroundColor: theme.palette.base[50],
|
|
6207
6282
|
color: theme.palette.textColor[900]
|
|
6283
|
+
},
|
|
6284
|
+
'& .MuiTab-root.Mui-disabled': {
|
|
6285
|
+
backgroundColor: theme.palette.base[50],
|
|
6286
|
+
color: theme.palette.textColor[200]
|
|
6287
|
+
},
|
|
6288
|
+
'& .MuiTab-root:hover': {
|
|
6289
|
+
backgroundColor: 'transparent',
|
|
6290
|
+
color: theme.palette.textColor[900],
|
|
6291
|
+
border: "1px solid " + theme.palette.base[50]
|
|
6208
6292
|
}
|
|
6209
6293
|
}
|
|
6210
6294
|
}, ownerState.size === 'sm' && {
|
|
@@ -6304,7 +6388,7 @@ var SegmentedControlTab = /*#__PURE__*/styled(function (props) {
|
|
|
6304
6388
|
},
|
|
6305
6389
|
'&.Mui-disabled': {
|
|
6306
6390
|
cursor: 'not-allowed',
|
|
6307
|
-
color: theme.palette.
|
|
6391
|
+
color: theme.palette.textColor[200]
|
|
6308
6392
|
},
|
|
6309
6393
|
'& .MuiTab-iconWrapper': {
|
|
6310
6394
|
fontSize: '14px'
|