@versini/ui-panel 1.3.7 → 1.3.9
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/index.js +30 -30
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as n, jsxs as x, Fragment as $ } from "react/jsx-runtime";
|
|
2
2
|
import i from "clsx";
|
|
3
3
|
import * as m from "react";
|
|
4
|
-
import M, { useId as
|
|
4
|
+
import M, { useId as V, useRef as D, useEffect as W } from "react";
|
|
5
5
|
import { useFloating as G, useClick as X, useDismiss as Y, useRole as q, useInteractions as H, useMergeRefs as J, FloatingPortal as K, FloatingOverlay as Q, FloatingFocusManager as Z } from "@floating-ui/react";
|
|
6
6
|
/*!
|
|
7
|
-
@versini/ui-panel v1.3.
|
|
7
|
+
@versini/ui-panel v1.3.9
|
|
8
8
|
© 2025 gizmette.com
|
|
9
9
|
*/
|
|
10
10
|
try {
|
|
11
11
|
window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
|
|
12
|
-
version: "1.3.
|
|
13
|
-
buildTime: "01/13/2025
|
|
12
|
+
version: "1.3.9",
|
|
13
|
+
buildTime: "01/13/2025 07:45 PM EST",
|
|
14
14
|
homepage: "https://github.com/aversini/ui-components",
|
|
15
15
|
license: "MIT"
|
|
16
16
|
});
|
|
17
17
|
} catch {
|
|
18
18
|
}
|
|
19
|
-
const C = "av-messagebox",
|
|
19
|
+
const C = "av-messagebox", P = "av-panel", O = "av-button", _ = "icon", z = "button", T = "link", ee = ({
|
|
20
20
|
type: e,
|
|
21
21
|
size: t,
|
|
22
22
|
labelRight: r,
|
|
@@ -25,7 +25,7 @@ const C = "av-messagebox", A = "av-panel", O = "av-button", _ = "icon", V = "but
|
|
|
25
25
|
}) => {
|
|
26
26
|
const l = "max-h-8 py-0 px-2", s = "max-h-9 h-8 px-3", d = "max-h-12 py-2 px-4";
|
|
27
27
|
switch (e) {
|
|
28
|
-
case
|
|
28
|
+
case z:
|
|
29
29
|
case T:
|
|
30
30
|
return i({
|
|
31
31
|
[l]: t === "small",
|
|
@@ -53,7 +53,7 @@ const C = "av-messagebox", A = "av-panel", O = "av-button", _ = "icon", V = "but
|
|
|
53
53
|
}) => {
|
|
54
54
|
const o = "text-sm font-medium", l = "text-base font-medium", s = "text-lg font-medium";
|
|
55
55
|
switch (e) {
|
|
56
|
-
case
|
|
56
|
+
case z:
|
|
57
57
|
case T:
|
|
58
58
|
return i({
|
|
59
59
|
"text-center": e === T,
|
|
@@ -237,7 +237,7 @@ const C = "av-messagebox", A = "av-panel", O = "av-button", _ = "icon", V = "but
|
|
|
237
237
|
"focus:outline-focus-light": e === "light",
|
|
238
238
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
239
239
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
240
|
-
}),
|
|
240
|
+
}), U = ({
|
|
241
241
|
type: e,
|
|
242
242
|
className: t,
|
|
243
243
|
raw: r,
|
|
@@ -298,7 +298,7 @@ const C = "av-messagebox", A = "av-panel", O = "av-button", _ = "icon", V = "but
|
|
|
298
298
|
);
|
|
299
299
|
});
|
|
300
300
|
L.displayName = "BaseButton";
|
|
301
|
-
const
|
|
301
|
+
const A = M.forwardRef(
|
|
302
302
|
({
|
|
303
303
|
children: e,
|
|
304
304
|
disabled: t = !1,
|
|
@@ -320,7 +320,7 @@ const U = M.forwardRef(
|
|
|
320
320
|
variant: I = "primary",
|
|
321
321
|
...E
|
|
322
322
|
}, B) => {
|
|
323
|
-
const S =
|
|
323
|
+
const S = U({
|
|
324
324
|
type: _,
|
|
325
325
|
mode: r,
|
|
326
326
|
focusMode: a,
|
|
@@ -360,15 +360,15 @@ const U = M.forwardRef(
|
|
|
360
360
|
);
|
|
361
361
|
}
|
|
362
362
|
);
|
|
363
|
-
|
|
363
|
+
A.displayName = "ButtonIcon";
|
|
364
364
|
/*!
|
|
365
|
-
@versini/ui-button v4.0.
|
|
365
|
+
@versini/ui-button v4.0.9
|
|
366
366
|
© 2025 gizmette.com
|
|
367
367
|
*/
|
|
368
368
|
try {
|
|
369
369
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
370
|
-
version: "4.0.
|
|
371
|
-
buildTime: "01/13/2025
|
|
370
|
+
version: "4.0.9",
|
|
371
|
+
buildTime: "01/13/2025 07:45 PM EST",
|
|
372
372
|
homepage: "https://github.com/aversini/ui-components",
|
|
373
373
|
license: "MIT"
|
|
374
374
|
});
|
|
@@ -396,7 +396,7 @@ const ce = M.forwardRef(
|
|
|
396
396
|
radius: I = "large",
|
|
397
397
|
...E
|
|
398
398
|
}, B) => {
|
|
399
|
-
const S =
|
|
399
|
+
const S = U({
|
|
400
400
|
type: _,
|
|
401
401
|
mode: r,
|
|
402
402
|
focusMode: a,
|
|
@@ -483,13 +483,13 @@ const ge = ({
|
|
|
483
483
|
] });
|
|
484
484
|
};
|
|
485
485
|
/*!
|
|
486
|
-
@versini/ui-svgicon v4.0.
|
|
486
|
+
@versini/ui-svgicon v4.0.3
|
|
487
487
|
© 2025 gizmette.com
|
|
488
488
|
*/
|
|
489
489
|
try {
|
|
490
490
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
491
|
-
version: "4.0.
|
|
492
|
-
buildTime: "01/13/2025
|
|
491
|
+
version: "4.0.3",
|
|
492
|
+
buildTime: "01/13/2025 07:45 PM EST",
|
|
493
493
|
homepage: "https://github.com/aversini/ui-components",
|
|
494
494
|
license: "MIT"
|
|
495
495
|
});
|
|
@@ -514,13 +514,13 @@ const me = ({
|
|
|
514
514
|
}
|
|
515
515
|
);
|
|
516
516
|
/*!
|
|
517
|
-
@versini/ui-icons v4.4.
|
|
517
|
+
@versini/ui-icons v4.4.2
|
|
518
518
|
© 2025 gizmette.com
|
|
519
519
|
*/
|
|
520
520
|
try {
|
|
521
521
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
522
|
-
version: "4.4.
|
|
523
|
-
buildTime: "01/13/2025
|
|
522
|
+
version: "4.4.2",
|
|
523
|
+
buildTime: "01/13/2025 07:45 PM EST",
|
|
524
524
|
homepage: "https://github.com/aversini/ui-components",
|
|
525
525
|
license: "MIT"
|
|
526
526
|
});
|
|
@@ -587,10 +587,10 @@ const be = m.forwardRef(function(e, t) {
|
|
|
587
587
|
}
|
|
588
588
|
) }) }) });
|
|
589
589
|
}), fe = m.forwardRef(function({ children: e, ...t }, r) {
|
|
590
|
-
const { setLabelId: a } = N(), o =
|
|
590
|
+
const { setLabelId: a } = N(), o = V();
|
|
591
591
|
return m.useLayoutEffect(() => (a(o), () => a(void 0)), [o, a]), /* @__PURE__ */ n("h1", { ...t, ref: r, id: o, children: e });
|
|
592
592
|
}), ve = m.forwardRef(function({ children: e, ...t }, r) {
|
|
593
|
-
const { setDescriptionId: a } = N(), o =
|
|
593
|
+
const { setDescriptionId: a } = N(), o = V();
|
|
594
594
|
return m.useLayoutEffect(() => (a(o), () => a(void 0)), [o, a]), /* @__PURE__ */ n("div", { ...t, ref: r, id: o, children: e });
|
|
595
595
|
}), pe = m.forwardRef(function(e, t) {
|
|
596
596
|
const { setOpen: r } = N(), { trigger: a, className: o, ...l } = e, s = m.useCallback(() => r(!1), [r]);
|
|
@@ -601,13 +601,13 @@ const be = m.forwardRef(function(e, t) {
|
|
|
601
601
|
}) });
|
|
602
602
|
});
|
|
603
603
|
/*!
|
|
604
|
-
@versini/ui-modal v1.2.
|
|
604
|
+
@versini/ui-modal v1.2.3
|
|
605
605
|
© 2025 gizmette.com
|
|
606
606
|
*/
|
|
607
607
|
try {
|
|
608
608
|
window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
|
|
609
|
-
version: "1.2.
|
|
610
|
-
buildTime: "01/13/2025
|
|
609
|
+
version: "1.2.3",
|
|
610
|
+
buildTime: "01/13/2025 07:45 PM EST",
|
|
611
611
|
homepage: "https://github.com/aversini/ui-components",
|
|
612
612
|
license: "MIT"
|
|
613
613
|
});
|
|
@@ -619,8 +619,8 @@ const k = "panel", w = "messagebox", ye = ({
|
|
|
619
619
|
borderMode: r
|
|
620
620
|
}) => ({
|
|
621
621
|
main: i("prose prose-lighter flex flex-col bg-surface-medium", {
|
|
622
|
-
[`${
|
|
623
|
-
[`${
|
|
622
|
+
[`${P} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === k,
|
|
623
|
+
[`${P} w-full sm:w-[95%] md:max-w-2xl`]: t === k && !e,
|
|
624
624
|
[`${C} rounded-lg border-2`]: t === w,
|
|
625
625
|
[`${C} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === w && !e,
|
|
626
626
|
[`${e}`]: !!e,
|
|
@@ -653,7 +653,7 @@ const k = "panel", w = "messagebox", ye = ({
|
|
|
653
653
|
{
|
|
654
654
|
className: g.close,
|
|
655
655
|
trigger: /* @__PURE__ */ n(
|
|
656
|
-
|
|
656
|
+
A,
|
|
657
657
|
{
|
|
658
658
|
mode: "dark",
|
|
659
659
|
focusMode: "light",
|
|
@@ -672,6 +672,6 @@ const k = "panel", w = "messagebox", ye = ({
|
|
|
672
672
|
};
|
|
673
673
|
export {
|
|
674
674
|
C as MESSAGEBOX_CLASSNAME,
|
|
675
|
-
|
|
675
|
+
P as PANEL_CLASSNAME,
|
|
676
676
|
Ne as Panel
|
|
677
677
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-panel",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@tailwindcss/typography": "0.5.15",
|
|
42
|
-
"@versini/ui-button": "4.0.
|
|
43
|
-
"@versini/ui-icons": "4.4.
|
|
44
|
-
"@versini/ui-modal": "1.2.
|
|
42
|
+
"@versini/ui-button": "4.0.9",
|
|
43
|
+
"@versini/ui-icons": "4.4.2",
|
|
44
|
+
"@versini/ui-modal": "1.2.3",
|
|
45
45
|
"clsx": "2.1.1",
|
|
46
46
|
"tailwindcss": "3.4.17"
|
|
47
47
|
},
|
|
48
48
|
"sideEffects": [
|
|
49
49
|
"**/*.css"
|
|
50
50
|
],
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "62e5ad9aef3842ebba9e968c0cde595e6fd81544"
|
|
52
52
|
}
|