@versini/ui-panel 2.0.2 → 2.0.3

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.
Files changed (2) hide show
  1. package/dist/index.js +34 -34
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
- import { jsx as c, jsxs as C, Fragment as X } from "react/jsx-runtime";
1
+ import { jsx as c, jsxs as S, Fragment as X } from "react/jsx-runtime";
2
2
  import * as b from "react";
3
3
  import V, { useRef as _, useLayoutEffect as F, useMemo as q, useState as Z, useEffect as R, useCallback as le, useId as H } from "react";
4
4
  import i from "clsx";
5
5
  import { useFloating as ce, useClick as se, useDismiss as de, useRole as ue, useInteractions as me, useMergeRefs as ge, FloatingPortal as he, FloatingOverlay as be, FloatingFocusManager as fe } from "@floating-ui/react";
6
6
  /*!
7
- @versini/ui-panel v2.0.2
7
+ @versini/ui-panel v2.0.3
8
8
  © 2025 gizmette.com
9
9
  */
10
10
  try {
11
11
  window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
12
- version: "2.0.2",
13
- buildTime: "03/19/2025 03:54 PM EDT",
12
+ version: "2.0.3",
13
+ buildTime: "03/19/2025 06:10 PM EDT",
14
14
  homepage: "https://github.com/aversini/ui-components",
15
15
  license: "MIT"
16
16
  });
@@ -256,11 +256,11 @@ const U = "av-messagebox", j = "av-panel", Y = "av-button", B = "icon", J = "but
256
256
  "dark:text-copy-accent-dark": e === "system"
257
257
  },
258
258
  r
259
- ), Se = ({
259
+ ), Ce = ({
260
260
  animated: e
261
261
  }) => i({
262
262
  "transition-opacity duration-300 ease-in": e
263
- }), Ce = ({
263
+ }), Se = ({
264
264
  type: e,
265
265
  className: t,
266
266
  raw: r,
@@ -399,7 +399,7 @@ const Le = {
399
399
  animated: k = !1,
400
400
  ...te
401
401
  }, ae) => {
402
- const oe = Ce({
402
+ const oe = Se({
403
403
  type: B,
404
404
  mode: r,
405
405
  focusMode: a,
@@ -416,10 +416,10 @@ const Le = {
416
416
  radius: y,
417
417
  variant: ee,
418
418
  animated: k
419
- }), ne = Ee({ mode: r, raw: d, iconClassName: re }), $ = Se({ animated: k }), [p, T] = O(), [x, L] = O(), [E, D] = O(), A = _(0), w = _(null), ie = Me([ae, w]);
419
+ }), ne = Ee({ mode: r, raw: d, iconClassName: re }), D = Ce({ animated: k }), [p, T] = O(), [x, L] = O(), [E, $] = O(), A = _(0), w = _(null), ie = Me([ae, w]);
420
420
  return F(() => {
421
- E && E.current && k && (A.current = D.width + Ae[g] + (s ? 0 : Oe));
422
- }, [D, E, g, s, k]), F(() => {
421
+ E && E.current && k && (A.current = $.width + Ae[g] + (s ? 0 : Oe));
422
+ }, [$, E, g, s, k]), F(() => {
423
423
  w && w.current && k && (u && p && T.width > 0 ? (p.current && (p.current.style.opacity = "100"), w.current.style.width = `${T.width + A.current}px`) : h && L.width > 0 ? (x.current && (x.current.style.opacity = "100"), w.current.style.width = `${L.width + A.current}px`) : (p.current && (p.current.style.opacity = "0"), x.current && (x.current.style.opacity = "0"), w.current.style.width = `${Le[g]}px`));
424
424
  }, [
425
425
  T,
@@ -430,7 +430,7 @@ const Le = {
430
430
  x,
431
431
  g,
432
432
  k
433
- ]), /* @__PURE__ */ C(
433
+ ]), /* @__PURE__ */ S(
434
434
  K,
435
435
  {
436
436
  ref: ie,
@@ -445,7 +445,7 @@ const Le = {
445
445
  {
446
446
  label: h,
447
447
  labelRef: x,
448
- labelClass: $,
448
+ labelClass: D,
449
449
  labelInnerClass: "pr-2"
450
450
  }
451
451
  ),
@@ -455,7 +455,7 @@ const Le = {
455
455
  {
456
456
  label: u,
457
457
  labelRef: p,
458
- labelClass: $,
458
+ labelClass: D,
459
459
  labelInnerClass: "pl-2"
460
460
  }
461
461
  )
@@ -471,13 +471,13 @@ const Le = {
471
471
  }) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: a, children: r }) });
472
472
  z.displayName = "ButtonIcon";
473
473
  /*!
474
- @versini/ui-button v6.0.2
474
+ @versini/ui-button v6.0.3
475
475
  © 2025 gizmette.com
476
476
  */
477
477
  try {
478
478
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
479
- version: "6.0.2",
480
- buildTime: "03/19/2025 03:54 PM EDT",
479
+ version: "6.0.3",
480
+ buildTime: "03/19/2025 06:10 PM EDT",
481
481
  homepage: "https://github.com/aversini/ui-components",
482
482
  license: "MIT"
483
483
  });
@@ -534,7 +534,7 @@ const Ve = ({
534
534
  ...s
535
535
  }) => {
536
536
  const m = i(o, a);
537
- return /* @__PURE__ */ c(X, { children: /* @__PURE__ */ C(
537
+ return /* @__PURE__ */ c(X, { children: /* @__PURE__ */ S(
538
538
  "svg",
539
539
  {
540
540
  xmlns: "http://www.w3.org/2000/svg",
@@ -553,13 +553,13 @@ const Ve = ({
553
553
  ) });
554
554
  };
555
555
  /*!
556
- @versini/ui-svgicon v4.1.1
556
+ @versini/ui-svgicon v4.2.0
557
557
  © 2025 gizmette.com
558
558
  */
559
559
  try {
560
560
  window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
561
- version: "4.1.1",
562
- buildTime: "02/27/2025 03:46 PM EST",
561
+ version: "4.2.0",
562
+ buildTime: "03/19/2025 05:27 PM EDT",
563
563
  homepage: "https://github.com/aversini/ui-components",
564
564
  license: "MIT"
565
565
  });
@@ -590,20 +590,20 @@ const ze = ({
590
590
  }
591
591
  );
592
592
  /*!
593
- @versini/ui-icons v4.8.1
593
+ @versini/ui-icons v4.8.2
594
594
  © 2025 gizmette.com
595
595
  */
596
596
  try {
597
597
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
598
- version: "4.8.1",
599
- buildTime: "02/27/2025 03:46 PM EST",
598
+ version: "4.8.2",
599
+ buildTime: "03/19/2025 05:27 PM EDT",
600
600
  homepage: "https://github.com/aversini/ui-components",
601
601
  license: "MIT"
602
602
  });
603
603
  } catch {
604
604
  }
605
605
  const Q = b.createContext(null);
606
- function $e({
606
+ function De({
607
607
  initialOpen: e = !1,
608
608
  open: t,
609
609
  onOpenChange: r
@@ -637,11 +637,11 @@ const M = () => {
637
637
  throw new Error("Modal components must be wrapped in <Modal />");
638
638
  return e;
639
639
  };
640
- function De({
640
+ function $e({
641
641
  children: e,
642
642
  ...t
643
643
  }) {
644
- const r = $e(t);
644
+ const r = De(t);
645
645
  return /* @__PURE__ */ c(Q.Provider, { value: r, children: e });
646
646
  }
647
647
  const Fe = b.forwardRef(function(e, t) {
@@ -683,13 +683,13 @@ const Fe = b.forwardRef(function(e, t) {
683
683
  try {
684
684
  window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
685
685
  version: "2.0.0",
686
- buildTime: "03/19/2025 03:54 PM EDT",
686
+ buildTime: "03/19/2025 06:10 PM EDT",
687
687
  homepage: "https://github.com/aversini/ui-components",
688
688
  license: "MIT"
689
689
  });
690
690
  } catch {
691
691
  }
692
- const N = "panel", S = "messagebox", Ge = ({
692
+ const N = "panel", C = "messagebox", Ge = ({
693
693
  className: e,
694
694
  kind: t,
695
695
  borderMode: r,
@@ -699,13 +699,13 @@ const N = "panel", S = "messagebox", Ge = ({
699
699
  "duration-200 ease-out": a,
700
700
  [`${j} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === N,
701
701
  [`${j} w-full sm:w-[95%] md:max-w-2xl`]: t === N && !e,
702
- [`${U} rounded-lg border-2`]: t === S,
703
- [`${U} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === S && !e,
702
+ [`${U} rounded-lg border-2`]: t === C,
703
+ [`${U} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === C && !e,
704
704
  [`${e}`]: !!e,
705
705
  "sm:border-border-dark": r === "dark" && t === N,
706
706
  "sm:border-border-accent": r === "light" && t === N,
707
- "border-border-dark": r === "dark" && t === S,
708
- "border-border-accent": r === "light" && t === S
707
+ "border-border-dark": r === "dark" && t === C,
708
+ "border-border-accent": r === "light" && t === C
709
709
  }),
710
710
  content: "flex flex-col py-2 sm:py-4 sm:px-4 px-2 overflow-y-auto",
711
711
  footer: "flex grow flex-col sm:p-4 p-2",
@@ -751,8 +751,8 @@ const N = "panel", S = "messagebox", Ge = ({
751
751
  }, 100);
752
752
  return () => clearTimeout(v);
753
753
  }
754
- }, [e, s, m]), /* @__PURE__ */ c(X, { children: e && /* @__PURE__ */ c(De, { open: e, onOpenChange: t, children: /* @__PURE__ */ C(Fe, { className: h.main, style: g, children: [
755
- /* @__PURE__ */ C("div", { className: "flex flex-row-reverse items-center justify-between", children: [
754
+ }, [e, s, m]), /* @__PURE__ */ c(X, { children: e && /* @__PURE__ */ c($e, { open: e, onOpenChange: t, children: /* @__PURE__ */ S(Fe, { className: h.main, style: g, children: [
755
+ /* @__PURE__ */ S("div", { className: "flex flex-row-reverse items-center justify-between", children: [
756
756
  /* @__PURE__ */ c(
757
757
  Ye,
758
758
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-panel",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -40,8 +40,8 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@tailwindcss/typography": "0.5.16",
43
- "@versini/ui-button": "6.0.2",
44
- "@versini/ui-icons": "4.8.1",
43
+ "@versini/ui-button": "6.0.3",
44
+ "@versini/ui-icons": "4.8.2",
45
45
  "@versini/ui-modal": "2.0.0",
46
46
  "clsx": "2.1.1",
47
47
  "tailwindcss": "4.0.14"
@@ -49,5 +49,5 @@
49
49
  "sideEffects": [
50
50
  "**/*.css"
51
51
  ],
52
- "gitHead": "d49d5de3e0b587456da5a6da691396873e9ffe2d"
52
+ "gitHead": "b49e510e164843553df3b3dd194c17b7e122e986"
53
53
  }