@availity/mui-menu 0.2.3 → 0.2.5
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/CHANGELOG.md +17 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +12 -4
- package/dist/index.mjs +3 -5
- package/package.json +2 -2
- package/src/lib/Menu.tsx +3 -8
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.2.5](https://github.com/Availity/element/compare/@availity/mui-menu@0.2.4...@availity/mui-menu@0.2.5) (2024-04-04)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `mui-icon` updated to version `0.8.1`
|
|
10
|
+
* `mui-button` updated to version `0.6.5`
|
|
11
|
+
|
|
12
|
+
### Performance Improvements
|
|
13
|
+
|
|
14
|
+
* **mui-menu:** use path imports for material deps ([5aa6657](https://github.com/Availity/element/commit/5aa665701d8b74acf94cb83a22b986ff37217170))
|
|
15
|
+
|
|
16
|
+
## [0.2.4](https://github.com/Availity/element/compare/@availity/mui-menu@0.2.3...@availity/mui-menu@0.2.4) (2024-03-15)
|
|
17
|
+
|
|
18
|
+
### Dependency Updates
|
|
19
|
+
|
|
20
|
+
* `mui-icon` updated to version `0.8.0`
|
|
21
|
+
* `mui-button` updated to version `0.6.4`
|
|
5
22
|
## [0.2.3](https://github.com/Availity/element/compare/@availity/mui-menu@0.2.2...@availity/mui-menu@0.2.3) (2024-02-22)
|
|
6
23
|
|
|
7
24
|
### Dependency Updates
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { MenuProps as MenuProps$1
|
|
1
|
+
import { MenuProps as MenuProps$1 } from '@mui/material/Menu';
|
|
2
|
+
import { MenuItemProps as MenuItemProps$1 } from '@mui/material/MenuItem';
|
|
3
|
+
import { MenuListProps as MenuListProps$1 } from '@mui/material/MenuList';
|
|
2
4
|
|
|
3
5
|
type MenuProps = Omit<MenuProps$1, 'BackdropComponent' | 'BackdropProps' | 'classes' | 'disableAutoFocusItem' | 'disableEnforceFocus' | 'disableEscapeKeyDown' | 'elevation' | 'onBackdropClick' | 'PopoverClasses' | 'ref' | 'sx' | 'TransitionComponent' | 'TransitionProps'>;
|
|
4
6
|
declare const Menu: (props: MenuProps) => JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
18
24
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
25
|
|
|
20
26
|
// src/index.ts
|
|
@@ -27,22 +33,24 @@ __export(src_exports, {
|
|
|
27
33
|
module.exports = __toCommonJS(src_exports);
|
|
28
34
|
|
|
29
35
|
// src/lib/Menu.tsx
|
|
30
|
-
var
|
|
36
|
+
var import_Menu = __toESM(require("@mui/material/Menu"));
|
|
37
|
+
var import_MenuItem = __toESM(require("@mui/material/MenuItem"));
|
|
38
|
+
var import_MenuList = __toESM(require("@mui/material/MenuList"));
|
|
31
39
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
32
40
|
var Menu = (props) => {
|
|
33
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
41
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Menu.default, {
|
|
34
42
|
...props
|
|
35
43
|
});
|
|
36
44
|
};
|
|
37
45
|
var MenuItem = (props) => {
|
|
38
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
46
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_MenuItem.default, {
|
|
39
47
|
...props,
|
|
40
48
|
disableRipple: true,
|
|
41
49
|
disableTouchRipple: true
|
|
42
50
|
});
|
|
43
51
|
};
|
|
44
52
|
var MenuList = (props) => {
|
|
45
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
53
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_MenuList.default, {
|
|
46
54
|
...props
|
|
47
55
|
});
|
|
48
56
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
// src/lib/Menu.tsx
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
MenuList as MuiMenuList
|
|
6
|
-
} from "@mui/material";
|
|
2
|
+
import { default as MuiMenu } from "@mui/material/Menu";
|
|
3
|
+
import { default as MuiMenuItem } from "@mui/material/MenuItem";
|
|
4
|
+
import { default as MuiMenuList } from "@mui/material/MenuList";
|
|
7
5
|
import { jsx } from "react/jsx-runtime";
|
|
8
6
|
var Menu = (props) => {
|
|
9
7
|
return /* @__PURE__ */ jsx(MuiMenu, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-menu",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Availity MUI Menu Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"publish:canary": "yarn npm publish --access public --tag canary"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@availity/mui-icon": "^0.
|
|
35
|
+
"@availity/mui-icon": "^0.8.1",
|
|
36
36
|
"@mui/material": "^5.14.12",
|
|
37
37
|
"react": "18.2.0",
|
|
38
38
|
"react-dom": "18.2.0",
|
package/src/lib/Menu.tsx
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
MenuItem as MuiMenuItem,
|
|
5
|
-
MenuItemProps as MuiMenuItemProps,
|
|
6
|
-
MenuList as MuiMenuList,
|
|
7
|
-
MenuListProps as MuiMenuListProps,
|
|
8
|
-
} from '@mui/material';
|
|
1
|
+
import { default as MuiMenu, MenuProps as MuiMenuProps } from '@mui/material/Menu';
|
|
2
|
+
import { default as MuiMenuItem, MenuItemProps as MuiMenuItemProps } from '@mui/material/MenuItem';
|
|
3
|
+
import { default as MuiMenuList, MenuListProps as MuiMenuListProps } from '@mui/material/MenuList';
|
|
9
4
|
|
|
10
5
|
export type MenuProps = Omit<
|
|
11
6
|
MuiMenuProps,
|