@versini/ui-menu 4.0.12 → 5.0.0
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/components/Menu/MenuItem.js +23 -23
- package/dist/index.js +3 -3
- package/package.json +6 -6
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useListItem as
|
|
1
|
+
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useListItem as h, useFloatingTree as N, useMergeRefs as g } from "@floating-ui/react";
|
|
3
3
|
import u from "clsx";
|
|
4
4
|
import * as I from "react";
|
|
5
|
-
import { MenuContext as
|
|
6
|
-
const
|
|
5
|
+
import { MenuContext as v } from "./MenuContext.js";
|
|
6
|
+
const C = ({
|
|
7
7
|
children: e,
|
|
8
8
|
fill: t,
|
|
9
9
|
viewBox: s,
|
|
@@ -15,7 +15,7 @@ const M = ({
|
|
|
15
15
|
...d
|
|
16
16
|
}) => {
|
|
17
17
|
const a = u(m, l);
|
|
18
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ p(
|
|
19
19
|
"svg",
|
|
20
20
|
{
|
|
21
21
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -31,29 +31,29 @@ const M = ({
|
|
|
31
31
|
e
|
|
32
32
|
]
|
|
33
33
|
}
|
|
34
|
-
)
|
|
34
|
+
);
|
|
35
35
|
};
|
|
36
36
|
/*!
|
|
37
|
-
@versini/ui-svgicon v4.2.
|
|
37
|
+
@versini/ui-svgicon v4.2.1
|
|
38
38
|
© 2025 gizmette.com
|
|
39
39
|
*/
|
|
40
40
|
try {
|
|
41
41
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
42
|
-
version: "4.2.
|
|
43
|
-
buildTime: "
|
|
42
|
+
version: "4.2.1",
|
|
43
|
+
buildTime: "08/27/2025 08:27 AM EDT",
|
|
44
44
|
homepage: "https://github.com/aversini/ui-components",
|
|
45
45
|
license: "MIT"
|
|
46
46
|
});
|
|
47
47
|
} catch {
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const M = ({
|
|
50
50
|
className: e,
|
|
51
51
|
viewBox: t,
|
|
52
52
|
title: s,
|
|
53
53
|
monotone: l,
|
|
54
54
|
...i
|
|
55
55
|
}) => /* @__PURE__ */ p(
|
|
56
|
-
|
|
56
|
+
C,
|
|
57
57
|
{
|
|
58
58
|
defaultViewBox: "0 0 448 512",
|
|
59
59
|
size: "size-5",
|
|
@@ -74,19 +74,19 @@ const S = ({
|
|
|
74
74
|
}
|
|
75
75
|
);
|
|
76
76
|
/*!
|
|
77
|
-
@versini/ui-icons v4.
|
|
77
|
+
@versini/ui-icons v4.11.0
|
|
78
78
|
© 2025 gizmette.com
|
|
79
79
|
*/
|
|
80
80
|
try {
|
|
81
81
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
82
|
-
version: "4.
|
|
83
|
-
buildTime: "
|
|
82
|
+
version: "4.11.0",
|
|
83
|
+
buildTime: "08/27/2025 08:28 AM EDT",
|
|
84
84
|
homepage: "https://github.com/aversini/ui-components",
|
|
85
85
|
license: "MIT"
|
|
86
86
|
});
|
|
87
87
|
} catch {
|
|
88
88
|
}
|
|
89
|
-
const
|
|
89
|
+
const S = I.forwardRef(
|
|
90
90
|
({
|
|
91
91
|
label: e,
|
|
92
92
|
disabled: t,
|
|
@@ -98,7 +98,7 @@ const V = I.forwardRef(
|
|
|
98
98
|
...r
|
|
99
99
|
}, d) => {
|
|
100
100
|
let a = "";
|
|
101
|
-
const f = I.useContext(
|
|
101
|
+
const f = I.useContext(v), _ = h({ label: t ? null : e }), b = N(), w = g([_.ref, d]);
|
|
102
102
|
if (l && i)
|
|
103
103
|
return /* @__PURE__ */ o(
|
|
104
104
|
"div",
|
|
@@ -138,7 +138,7 @@ const V = I.forwardRef(
|
|
|
138
138
|
}
|
|
139
139
|
}),
|
|
140
140
|
children: [
|
|
141
|
-
n && /* @__PURE__ */ o(
|
|
141
|
+
n && /* @__PURE__ */ o(M, { className: "mr-2", size: "size-4" }),
|
|
142
142
|
s,
|
|
143
143
|
e && /* @__PURE__ */ o("span", { className: a, children: e })
|
|
144
144
|
]
|
|
@@ -146,11 +146,11 @@ const V = I.forwardRef(
|
|
|
146
146
|
);
|
|
147
147
|
}
|
|
148
148
|
);
|
|
149
|
-
|
|
150
|
-
const
|
|
149
|
+
S.displayName = "MenuItem";
|
|
150
|
+
const T = ({ className: e, ...t }) => {
|
|
151
151
|
const s = u(e, "my-1 border-t border-border-medium");
|
|
152
152
|
return /* @__PURE__ */ o("div", { className: s, ...t });
|
|
153
|
-
},
|
|
153
|
+
}, k = ({
|
|
154
154
|
className: e,
|
|
155
155
|
...t
|
|
156
156
|
}) => {
|
|
@@ -161,7 +161,7 @@ const k = ({ className: e, ...t }) => {
|
|
|
161
161
|
return /* @__PURE__ */ o("div", { className: s, ...t });
|
|
162
162
|
};
|
|
163
163
|
export {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
k as MenuGroupLabel,
|
|
165
|
+
S as MenuItem,
|
|
166
|
+
T as MenuSeparator
|
|
167
167
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Menu as _ } from "./components/Menu/Menu.js";
|
|
2
2
|
import { MenuGroupLabel as n, MenuItem as t, MenuSeparator as u } from "./components/Menu/MenuItem.js";
|
|
3
3
|
/*!
|
|
4
|
-
@versini/ui-menu
|
|
4
|
+
@versini/ui-menu v5.0.0
|
|
5
5
|
© 2025 gizmette.com
|
|
6
6
|
*/
|
|
7
7
|
try {
|
|
8
8
|
window.__VERSINI_UI_MENU__ || (window.__VERSINI_UI_MENU__ = {
|
|
9
|
-
version: "
|
|
10
|
-
buildTime: "
|
|
9
|
+
version: "5.0.0",
|
|
10
|
+
buildTime: "09/01/2025 03:18 PM EDT",
|
|
11
11
|
homepage: "https://github.com/aversini/ui-components",
|
|
12
12
|
license: "MIT"
|
|
13
13
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-menu",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -37,22 +37,22 @@
|
|
|
37
37
|
"test": "vitest run"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"react": "^
|
|
41
|
-
"react-dom": "^
|
|
40
|
+
"react": "^19.0.0",
|
|
41
|
+
"react-dom": "^19.0.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@testing-library/jest-dom": "6.8.0",
|
|
45
|
-
"@versini/ui-types": "
|
|
45
|
+
"@versini/ui-types": "6.0.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@floating-ui/react": "0.27.16",
|
|
49
49
|
"@tailwindcss/typography": "0.5.16",
|
|
50
|
-
"@versini/ui-icons": "4.
|
|
50
|
+
"@versini/ui-icons": "4.11.0",
|
|
51
51
|
"clsx": "2.1.1",
|
|
52
52
|
"tailwindcss": "4.1.12"
|
|
53
53
|
},
|
|
54
54
|
"sideEffects": [
|
|
55
55
|
"**/*.css"
|
|
56
56
|
],
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "70a47e9e30172dbb7b36306773fe9511e437fba6"
|
|
58
58
|
}
|