@junyiacademy/ui-test 1.5.9 → 1.5.10
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.
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { MenuItemProps } from '@mui/material';
|
|
3
2
|
export interface SelectMenuItemProps extends MenuItemProps {
|
|
4
3
|
value?: any;
|
|
5
4
|
disabled?: boolean;
|
|
6
5
|
}
|
|
7
|
-
declare const SelectMenuItem:
|
|
6
|
+
declare const SelectMenuItem: ({ children, value, disabled, ...otherProps }: SelectMenuItemProps) => JSX.Element;
|
|
8
7
|
export default SelectMenuItem;
|
|
@@ -4,8 +4,8 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const material_1 = require("@mui/material");
|
|
6
6
|
const MenuItem_1 = require("@mui/material/MenuItem");
|
|
7
|
-
const SelectMenuItem =
|
|
8
|
-
var { children, value = '' } = _a, otherProps = tslib_1.__rest(_a, ["children", "value"]);
|
|
7
|
+
const SelectMenuItem = (_a) => {
|
|
8
|
+
var { children, value = '', disabled = false } = _a, otherProps = tslib_1.__rest(_a, ["children", "value", "disabled"]);
|
|
9
9
|
return (react_1.default.createElement(material_1.MenuItem, Object.assign({ sx: (theme) => ({
|
|
10
10
|
whiteSpace: 'unset',
|
|
11
11
|
color: theme.palette.text.primary,
|
|
@@ -16,5 +16,5 @@ const SelectMenuItem = react_1.default.forwardRef((_a) => {
|
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
18
|
}), value: value }, otherProps), children));
|
|
19
|
-
}
|
|
19
|
+
};
|
|
20
20
|
exports.default = SelectMenuItem;
|