@versini/ui-panel 1.2.12 → 1.2.13
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 +20 -20
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as d, jsxs as x, Fragment as
|
|
1
|
+
import { jsx as d, jsxs as x, Fragment as A } from "react/jsx-runtime";
|
|
2
2
|
import i from "clsx";
|
|
3
3
|
import * as h from "react";
|
|
4
4
|
import S, { useId as O, useRef as F, useEffect as D } from "react";
|
|
5
5
|
import { useFloating as j, useClick as W, useDismiss as G, useRole as X, useInteractions as Y, useMergeRefs as q, FloatingPortal as H, FloatingOverlay as J, FloatingFocusManager as K } from "@floating-ui/react";
|
|
6
6
|
/*!
|
|
7
|
-
@versini/ui-panel v1.2.
|
|
7
|
+
@versini/ui-panel v1.2.13
|
|
8
8
|
© 2024 gizmette.com
|
|
9
9
|
*/
|
|
10
10
|
try {
|
|
11
11
|
window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
|
|
12
|
-
version: "1.2.
|
|
13
|
-
buildTime: "12/
|
|
12
|
+
version: "1.2.13",
|
|
13
|
+
buildTime: "12/31/2024 09:01 AM EST",
|
|
14
14
|
homepage: "https://github.com/aversini/ui-components",
|
|
15
15
|
license: "MIT"
|
|
16
16
|
});
|
|
@@ -32,7 +32,7 @@ const R = "av-messagebox", L = "av-panel", C = "av-button", T = "icon", Q = "but
|
|
|
32
32
|
[l]: t === "large"
|
|
33
33
|
});
|
|
34
34
|
case Z:
|
|
35
|
-
return i("
|
|
35
|
+
return i("text-center", {
|
|
36
36
|
[n]: t === "small",
|
|
37
37
|
[c]: t === "medium",
|
|
38
38
|
[l]: t === "large"
|
|
@@ -43,9 +43,9 @@ const R = "av-messagebox", L = "av-panel", C = "av-button", T = "icon", Q = "but
|
|
|
43
43
|
"justify-start": a === "left",
|
|
44
44
|
"justify-end": a === "right",
|
|
45
45
|
"h-6 w-6 p-0": t === "small" && !(r || o),
|
|
46
|
-
"h-6 px-
|
|
46
|
+
"h-6 px-2 text-sm font-medium": t === "small" && (r || o),
|
|
47
47
|
"h-8 w-8 p-1": t === "medium" && !(r || o),
|
|
48
|
-
"h-8 px-
|
|
48
|
+
"h-8 px-3 text-base font-medium": t === "medium" && (r || o),
|
|
49
49
|
"h-12 w-12 p-2": t === "large" && !(r || o),
|
|
50
50
|
"h-12 px-4 text-lg font-medium": t === "large" && (r || o)
|
|
51
51
|
});
|
|
@@ -340,13 +340,13 @@ const V = S.forwardRef(
|
|
|
340
340
|
);
|
|
341
341
|
V.displayName = "ButtonIcon";
|
|
342
342
|
/*!
|
|
343
|
-
@versini/ui-button v3.
|
|
343
|
+
@versini/ui-button v3.2.0
|
|
344
344
|
© 2024 gizmette.com
|
|
345
345
|
*/
|
|
346
346
|
try {
|
|
347
347
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
348
|
-
version: "3.
|
|
349
|
-
buildTime: "12/
|
|
348
|
+
version: "3.2.0",
|
|
349
|
+
buildTime: "12/31/2024 09:01 AM EST",
|
|
350
350
|
homepage: "https://github.com/aversini/ui-components",
|
|
351
351
|
license: "MIT"
|
|
352
352
|
});
|
|
@@ -389,7 +389,7 @@ const le = S.forwardRef(
|
|
|
389
389
|
noBackground: v,
|
|
390
390
|
align: p,
|
|
391
391
|
radius: N
|
|
392
|
-
}),
|
|
392
|
+
}), U = i({
|
|
393
393
|
"text-copy-accent-dark": r === "light" && !l,
|
|
394
394
|
"text-copy-light": r === "dark" && !l,
|
|
395
395
|
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !l,
|
|
@@ -422,7 +422,7 @@ const le = S.forwardRef(
|
|
|
422
422
|
...I,
|
|
423
423
|
children: [
|
|
424
424
|
u && /* @__PURE__ */ d("span", { className: "pr-2", children: u }),
|
|
425
|
-
/* @__PURE__ */ d("div", { className:
|
|
425
|
+
/* @__PURE__ */ d("div", { className: U, children: e }),
|
|
426
426
|
s && /* @__PURE__ */ d("span", { className: "pl-2", children: s })
|
|
427
427
|
]
|
|
428
428
|
}
|
|
@@ -442,7 +442,7 @@ const ne = ({
|
|
|
442
442
|
...m
|
|
443
443
|
}) => {
|
|
444
444
|
const g = i(n, o);
|
|
445
|
-
return /* @__PURE__ */ x(
|
|
445
|
+
return /* @__PURE__ */ x(A, { children: [
|
|
446
446
|
/* @__PURE__ */ d(
|
|
447
447
|
"svg",
|
|
448
448
|
{
|
|
@@ -467,7 +467,7 @@ const ne = ({
|
|
|
467
467
|
try {
|
|
468
468
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
469
469
|
version: "3.0.2",
|
|
470
|
-
buildTime: "12/
|
|
470
|
+
buildTime: "12/31/2024 09:01 AM EST",
|
|
471
471
|
homepage: "https://github.com/aversini/ui-components",
|
|
472
472
|
license: "MIT"
|
|
473
473
|
});
|
|
@@ -498,13 +498,13 @@ const ce = ({
|
|
|
498
498
|
try {
|
|
499
499
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
500
500
|
version: "3.0.2",
|
|
501
|
-
buildTime: "12/
|
|
501
|
+
buildTime: "12/31/2024 09:01 AM EST",
|
|
502
502
|
homepage: "https://github.com/aversini/ui-components",
|
|
503
503
|
license: "MIT"
|
|
504
504
|
});
|
|
505
505
|
} catch {
|
|
506
506
|
}
|
|
507
|
-
const
|
|
507
|
+
const P = h.createContext(null);
|
|
508
508
|
function se({
|
|
509
509
|
initialOpen: e = !1,
|
|
510
510
|
open: t,
|
|
@@ -534,7 +534,7 @@ function se({
|
|
|
534
534
|
);
|
|
535
535
|
}
|
|
536
536
|
const w = () => {
|
|
537
|
-
const e = h.useContext(
|
|
537
|
+
const e = h.useContext(P);
|
|
538
538
|
if (e == null)
|
|
539
539
|
throw new Error("Modal components must be wrapped in <Modal />");
|
|
540
540
|
return e;
|
|
@@ -544,7 +544,7 @@ function ge({
|
|
|
544
544
|
...t
|
|
545
545
|
}) {
|
|
546
546
|
const r = se(t);
|
|
547
|
-
return /* @__PURE__ */ d(
|
|
547
|
+
return /* @__PURE__ */ d(P.Provider, { value: r, children: e });
|
|
548
548
|
}
|
|
549
549
|
const he = h.forwardRef(function(e, t) {
|
|
550
550
|
const { context: r, ...o } = w(), a = q([o.refs.setFloating, t]);
|
|
@@ -585,7 +585,7 @@ const he = h.forwardRef(function(e, t) {
|
|
|
585
585
|
try {
|
|
586
586
|
window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
|
|
587
587
|
version: "1.1.7",
|
|
588
|
-
buildTime: "12/
|
|
588
|
+
buildTime: "12/31/2024 09:01 AM EST",
|
|
589
589
|
homepage: "https://github.com/aversini/ui-components",
|
|
590
590
|
license: "MIT"
|
|
591
591
|
});
|
|
@@ -624,7 +624,7 @@ const y = "panel", _ = "messagebox", fe = ({
|
|
|
624
624
|
const m = F(""), g = fe({ className: l, kind: c, borderMode: n });
|
|
625
625
|
return D(() => (e && (m.current = document.title, document.title = `${r} | ${m.current}`), () => {
|
|
626
626
|
e && (document.title = m.current);
|
|
627
|
-
}), [r, e]), /* @__PURE__ */ d(
|
|
627
|
+
}), [r, e]), /* @__PURE__ */ d(A, { children: e && /* @__PURE__ */ d(ge, { open: e, onOpenChange: t, children: /* @__PURE__ */ x(he, { className: g.main, children: [
|
|
628
628
|
/* @__PURE__ */ x("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
|
629
629
|
/* @__PURE__ */ d(
|
|
630
630
|
be,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-panel",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.13",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@tailwindcss/typography": "0.5.15",
|
|
42
|
-
"@versini/ui-button": "3.
|
|
42
|
+
"@versini/ui-button": "3.2.0",
|
|
43
43
|
"@versini/ui-icons": "3.0.2",
|
|
44
44
|
"@versini/ui-modal": "1.1.7",
|
|
45
45
|
"clsx": "2.1.1",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"sideEffects": [
|
|
49
49
|
"**/*.css"
|
|
50
50
|
],
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "50cdcea89f3a2fe910fe22c526e51523d7f0f410"
|
|
52
52
|
}
|