@versini/ui-menu 3.2.13 → 3.3.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 +134 -51
- package/dist/index.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +5 -5
|
@@ -1,87 +1,170 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useListItem as
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
5
|
-
import { MenuContext as
|
|
6
|
-
const
|
|
1
|
+
import { jsxs as _, Fragment as g, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useListItem as v, useFloatingTree as C, useMergeRefs as M } from "@floating-ui/react";
|
|
3
|
+
import f from "clsx";
|
|
4
|
+
import * as w from "react";
|
|
5
|
+
import { MenuContext as S } from "./MenuContext.js";
|
|
6
|
+
const y = ({
|
|
7
|
+
children: t,
|
|
8
|
+
fill: s,
|
|
9
|
+
viewBox: o,
|
|
10
|
+
className: a,
|
|
11
|
+
defaultViewBox: r,
|
|
12
|
+
size: u,
|
|
13
|
+
title: l,
|
|
14
|
+
semantic: e = !1,
|
|
15
|
+
...b
|
|
16
|
+
}) => {
|
|
17
|
+
const d = f(u, a);
|
|
18
|
+
return /* @__PURE__ */ _(g, { children: [
|
|
19
|
+
/* @__PURE__ */ n(
|
|
20
|
+
"svg",
|
|
21
|
+
{
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
className: d,
|
|
24
|
+
viewBox: o || r,
|
|
25
|
+
fill: s || "currentColor",
|
|
26
|
+
role: "img",
|
|
27
|
+
"aria-hidden": !e,
|
|
28
|
+
focusable: !1,
|
|
29
|
+
...b,
|
|
30
|
+
children: t
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
l && e && /* @__PURE__ */ n("span", { className: "sr-only", children: l })
|
|
34
|
+
] });
|
|
35
|
+
};
|
|
36
|
+
/*!
|
|
37
|
+
@versini/ui-svgicon v4.0.7
|
|
38
|
+
© 2025 gizmette.com
|
|
39
|
+
*/
|
|
40
|
+
try {
|
|
41
|
+
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
42
|
+
version: "4.0.7",
|
|
43
|
+
buildTime: "01/20/2025 01:49 PM EST",
|
|
44
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
45
|
+
license: "MIT"
|
|
46
|
+
});
|
|
47
|
+
} catch {
|
|
48
|
+
}
|
|
49
|
+
const V = ({
|
|
50
|
+
className: t,
|
|
51
|
+
viewBox: s,
|
|
52
|
+
title: o,
|
|
53
|
+
monotone: a,
|
|
54
|
+
...r
|
|
55
|
+
}) => /* @__PURE__ */ _(
|
|
56
|
+
y,
|
|
57
|
+
{
|
|
58
|
+
defaultViewBox: "0 0 448 512",
|
|
59
|
+
size: "size-5",
|
|
60
|
+
viewBox: s,
|
|
61
|
+
className: t,
|
|
62
|
+
title: o || "Copied",
|
|
63
|
+
...r,
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ n(
|
|
66
|
+
"path",
|
|
67
|
+
{
|
|
68
|
+
d: "M0 96v320c0 35.3 28.7 64 64 64h320c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64C28.7 32 0 60.7 0 96m104 160c0-6.1 2.3-12.3 7-17 9.4-9.4 24.6-9.4 33.9 0l47 47 111-111c4.7-4.7 10.8-7 17-7s12.3 2.3 17 7c2.3 2.3 4.1 5 5.3 7.9.6 1.5 1 2.9 1.3 4.4.2 1.1.3 2.2.3 2.2.1 1.2.1 1.2.1 2.5-.1 1.5-.1 1.9-.1 2.3-.1.7-.2 1.5-.3 2.2-.3 1.5-.7 3-1.3 4.4-1.2 2.9-2.9 5.6-5.3 7.9l-128 128c-4.7 4.7-10.8 7-17 7s-12.3-2.3-17-7l-64-64c-4.7-4.7-7-10.8-7-17z",
|
|
69
|
+
opacity: ".4"
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ n("path", { d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z" })
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
/*!
|
|
77
|
+
@versini/ui-icons v4.6.1
|
|
78
|
+
© 2025 gizmette.com
|
|
79
|
+
*/
|
|
80
|
+
try {
|
|
81
|
+
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
82
|
+
version: "4.6.1",
|
|
83
|
+
buildTime: "01/21/2025 01:33 PM EST",
|
|
84
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
85
|
+
license: "MIT"
|
|
86
|
+
});
|
|
87
|
+
} catch {
|
|
88
|
+
}
|
|
89
|
+
const R = w.forwardRef(
|
|
7
90
|
({
|
|
8
|
-
label:
|
|
9
|
-
disabled:
|
|
10
|
-
icon:
|
|
11
|
-
raw:
|
|
12
|
-
children:
|
|
13
|
-
ignoreClick:
|
|
14
|
-
selected:
|
|
91
|
+
label: t,
|
|
92
|
+
disabled: s,
|
|
93
|
+
icon: o,
|
|
94
|
+
raw: a = !1,
|
|
95
|
+
children: r,
|
|
96
|
+
ignoreClick: u = !1,
|
|
97
|
+
selected: l = !1,
|
|
15
98
|
...e
|
|
16
|
-
},
|
|
99
|
+
}, b) => {
|
|
17
100
|
let d = "";
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
20
|
-
return /* @__PURE__ */
|
|
101
|
+
const I = w.useContext(S), x = v({ label: s ? null : t }), c = C(), h = M([x.ref, b]);
|
|
102
|
+
if (a && r)
|
|
103
|
+
return /* @__PURE__ */ n(
|
|
21
104
|
"div",
|
|
22
105
|
{
|
|
23
106
|
role: "menuitem",
|
|
24
|
-
...
|
|
25
|
-
onClick(
|
|
26
|
-
var
|
|
27
|
-
|
|
107
|
+
...I.getItemProps({
|
|
108
|
+
onClick(m) {
|
|
109
|
+
var i;
|
|
110
|
+
u || ((i = e.onClick) == null || i.call(e, m), c == null || c.events.emit("click"));
|
|
28
111
|
}
|
|
29
112
|
}),
|
|
30
|
-
children:
|
|
113
|
+
children: r
|
|
31
114
|
}
|
|
32
115
|
);
|
|
33
|
-
|
|
34
|
-
const
|
|
116
|
+
o && (d = "pl-2");
|
|
117
|
+
const N = f(
|
|
118
|
+
"items-center flex-row",
|
|
35
119
|
"m-0 first:mt-0 mt-2 sm:mt-1 px-2 py-1 flex w-full rounded-md border border-transparent text-left text-base outline-none focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline disabled:cursor-not-allowed disabled:text-copy-medium",
|
|
36
120
|
{
|
|
37
|
-
"bg-
|
|
38
|
-
"bg-none": !t && !a,
|
|
39
|
-
"focus:text-copy-dark": a
|
|
121
|
+
"bg-none": !s && !l
|
|
40
122
|
}
|
|
41
123
|
);
|
|
42
|
-
return /* @__PURE__ */
|
|
124
|
+
return /* @__PURE__ */ _(
|
|
43
125
|
"button",
|
|
44
126
|
{
|
|
45
127
|
...e,
|
|
46
|
-
ref:
|
|
128
|
+
ref: h,
|
|
47
129
|
role: "menuitem",
|
|
48
|
-
className:
|
|
130
|
+
className: N,
|
|
49
131
|
tabIndex: 0,
|
|
50
|
-
disabled:
|
|
51
|
-
...
|
|
52
|
-
onClick(
|
|
53
|
-
var
|
|
54
|
-
|
|
132
|
+
disabled: s,
|
|
133
|
+
...I.getItemProps({
|
|
134
|
+
onClick(m) {
|
|
135
|
+
var i;
|
|
136
|
+
u || ((i = e.onClick) == null || i.call(e, m), c == null || c.events.emit("click"));
|
|
55
137
|
},
|
|
56
|
-
onFocus(
|
|
57
|
-
var
|
|
58
|
-
(
|
|
138
|
+
onFocus(m) {
|
|
139
|
+
var i;
|
|
140
|
+
(i = e.onFocus) == null || i.call(e, m), I.setHasFocusInside(!0);
|
|
59
141
|
}
|
|
60
142
|
}),
|
|
61
143
|
children: [
|
|
62
|
-
n,
|
|
63
|
-
|
|
144
|
+
l && /* @__PURE__ */ n(V, { className: "mr-2", size: "size-4" }),
|
|
145
|
+
o,
|
|
146
|
+
t && /* @__PURE__ */ n("span", { className: d, children: t })
|
|
64
147
|
]
|
|
65
148
|
}
|
|
66
149
|
);
|
|
67
150
|
}
|
|
68
151
|
);
|
|
69
152
|
R.displayName = "MenuItem";
|
|
70
|
-
const
|
|
71
|
-
const
|
|
72
|
-
return /* @__PURE__ */
|
|
73
|
-
},
|
|
74
|
-
className:
|
|
75
|
-
...
|
|
153
|
+
const E = ({ className: t, ...s }) => {
|
|
154
|
+
const o = f(t, "my-1 border-t border-border-medium");
|
|
155
|
+
return /* @__PURE__ */ n("div", { className: o, ...s });
|
|
156
|
+
}, p = ({
|
|
157
|
+
className: t,
|
|
158
|
+
...s
|
|
76
159
|
}) => {
|
|
77
|
-
const
|
|
78
|
-
|
|
160
|
+
const o = f(
|
|
161
|
+
t,
|
|
79
162
|
"pt-1 mb-2 text-sm text-copy-dark border-b border-border-medium"
|
|
80
163
|
);
|
|
81
|
-
return /* @__PURE__ */
|
|
164
|
+
return /* @__PURE__ */ n("div", { className: o, ...s });
|
|
82
165
|
};
|
|
83
166
|
export {
|
|
84
|
-
|
|
167
|
+
p as MenuGroupLabel,
|
|
85
168
|
R as MenuItem,
|
|
86
|
-
|
|
169
|
+
E as MenuSeparator
|
|
87
170
|
};
|
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 v3.
|
|
4
|
+
@versini/ui-menu v3.3.0
|
|
5
5
|
© 2025 gizmette.com
|
|
6
6
|
*/
|
|
7
7
|
try {
|
|
8
8
|
window.__VERSINI_UI_MENU__ || (window.__VERSINI_UI_MENU__ = {
|
|
9
|
-
version: "3.
|
|
10
|
-
buildTime: "
|
|
9
|
+
version: "3.3.0",
|
|
10
|
+
buildTime: "02/18/2025 11:57 AM EST",
|
|
11
11
|
homepage: "https://github.com/aversini/ui-components",
|
|
12
12
|
license: "MIT"
|
|
13
13
|
});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::-ms-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-ms-input-placeholder,textarea::-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}@keyframes blink{50%{fill:transparent}}@keyframes av-tooltip-fade-in{0%{opacity:0}to{opacity:100}}.visible{visibility:visible}.fixed{position:fixed}.relative{position:relative}.m-0{margin:0}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mt-2{margin-top:.5rem}.flex{display:flex}.size-6{width:1.5rem;height:1.5rem}.size-px{width:1px;height:1px}.w-full{width:100%}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded{border-radius:.25rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-border-medium{--tw-border-opacity: 1;border-color:var(--av-border-medium, rgb(148 163 184 / var(--tw-border-opacity, 1)))}.border-transparent{border-color:transparent}.bg-surface-light{--tw-bg-opacity: 1;background-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-bg-opacity, 1)))}.bg-
|
|
1
|
+
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::-ms-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-ms-input-placeholder,textarea::-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}@keyframes blink{50%{fill:transparent}}@keyframes av-tooltip-fade-in{0%{opacity:0}to{opacity:100}}.visible{visibility:visible}.fixed{position:fixed}.relative{position:relative}.m-0{margin:0}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mr-2{margin-right:.5rem}.mt-2{margin-top:.5rem}.flex{display:flex}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-px{width:1px;height:1px}.w-full{width:100%}.flex-row{flex-direction:row}.items-center{align-items:center}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded{border-radius:.25rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-border-medium{--tw-border-opacity: 1;border-color:var(--av-border-medium, rgb(148 163 184 / var(--tw-border-opacity, 1)))}.border-transparent{border-color:transparent}.bg-surface-light{--tw-bg-opacity: 1;background-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-bg-opacity, 1)))}.bg-none{background-image:none}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.pl-2{padding-left:.5rem}.pt-1{padding-top:.25rem}.text-left{text-align:left}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-copy-dark{--tw-text-opacity: 1;color:var(--av-copy-dark, rgb(15 23 42 / var(--tw-text-opacity, 1)))}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-border-dark{--tw-shadow-color: var(--av-border-dark, rgb(15 23 42 / 1));--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.first\:mt-0:first-child{margin-top:0}.focus\:border:focus{border-width:1px}.focus\:border-border-medium:focus{--tw-border-opacity: 1;border-color:var(--av-border-medium, rgb(148 163 184 / var(--tw-border-opacity, 1)))}.focus\:bg-surface-lighter:focus{--tw-bg-opacity: 1;background-color:var(--av-surface-lighter, rgb(226 232 240 / var(--tw-bg-opacity, 1)))}.focus\:underline:focus{-webkit-text-decoration-line:underline;text-decoration-line:underline}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:text-copy-medium:disabled{--tw-text-opacity: 1;color:var(--av-copy-medium, rgb(148 163 184 / var(--tw-text-opacity, 1)))}@media (min-width: 640px){.sm\:mt-1{margin-top:.25rem}.sm\:size-6{width:1.5rem;height:1.5rem}.sm\:p-2{padding:.5rem}}@media (min-width: 768px){.md\:size-px{width:1px;height:1px}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-menu",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"react-dom": "^18.3.1 || ^19.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@versini/ui-
|
|
43
|
-
"@versini/ui-types": "4.5.0"
|
|
42
|
+
"@versini/ui-types": "4.5.1"
|
|
44
43
|
},
|
|
45
44
|
"dependencies": {
|
|
46
|
-
"@floating-ui/react": "0.27.
|
|
45
|
+
"@floating-ui/react": "0.27.4",
|
|
47
46
|
"@tailwindcss/typography": "0.5.16",
|
|
47
|
+
"@versini/ui-icons": "4.6.1",
|
|
48
48
|
"clsx": "2.1.1",
|
|
49
49
|
"tailwindcss": "3.4.17"
|
|
50
50
|
},
|
|
51
51
|
"sideEffects": [
|
|
52
52
|
"**/*.css"
|
|
53
53
|
],
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "eb688b1a1deb5f8275d5b55d4cc3150f820ab549"
|
|
55
55
|
}
|