@versini/ui-modal 2.0.1 → 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.
@@ -4,16 +4,16 @@ import b from "clsx";
4
4
  import * as a from "react";
5
5
  import { useId as f } from "react";
6
6
  import { ModalContext as C } from "./ModalContext.js";
7
- import { useModalContext as d, useModal as x } from "./ModalHooks.js";
7
+ import { useModalContext as d, useModal as v } from "./ModalHooks.js";
8
8
  function I({
9
9
  children: s,
10
10
  ...t
11
11
  }) {
12
- const n = x(t);
12
+ const n = v(t);
13
13
  return /* @__PURE__ */ l(C.Provider, { value: n, children: s });
14
14
  }
15
15
  const w = a.forwardRef(function(t, n) {
16
- const { context: r, ...e } = d(), o = m([e.refs.setFloating, n]);
16
+ const { context: r, ...o } = d(), e = m([o.refs.setFloating, n]);
17
17
  if (!r.open)
18
18
  return null;
19
19
  const { overlayBackground: c, ...i } = t, u = b("grid place-items-center", {
@@ -23,22 +23,22 @@ const w = a.forwardRef(function(t, n) {
23
23
  return /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(p, { className: u, lockScroll: !0, children: /* @__PURE__ */ l(M, { context: r, children: /* @__PURE__ */ l(
24
24
  "div",
25
25
  {
26
- ref: o,
27
- "aria-labelledby": e.labelId,
28
- "aria-describedby": e.descriptionId,
29
- ...e.getFloatingProps(i),
26
+ ref: e,
27
+ "aria-labelledby": o.labelId,
28
+ "aria-describedby": o.descriptionId,
29
+ ...o.getFloatingProps(i),
30
30
  children: i.children
31
31
  }
32
32
  ) }) }) });
33
33
  }), D = a.forwardRef(function({ children: t, ...n }, r) {
34
- const { setLabelId: e } = d(), o = f();
35
- return a.useLayoutEffect(() => (e(o), () => e(void 0)), [o, e]), /* @__PURE__ */ l("h1", { ...n, ref: r, id: o, children: t });
34
+ const { setLabelId: o } = d(), e = f();
35
+ return a.useLayoutEffect(() => (o(e), () => o(void 0)), [e, o]), /* @__PURE__ */ l("h1", { ...n, ref: r, id: e, children: t });
36
36
  }), E = a.forwardRef(function({ children: t, ...n }, r) {
37
- const { setDescriptionId: e } = d(), o = f();
38
- return a.useLayoutEffect(() => (e(o), () => e(void 0)), [o, e]), /* @__PURE__ */ l("div", { ...n, ref: r, id: o, children: t });
37
+ const { setDescriptionId: o } = d(), e = f();
38
+ return a.useLayoutEffect(() => (o(e), () => o(void 0)), [e, o]), /* @__PURE__ */ l("div", { ...n, ref: r, id: e, children: t });
39
39
  }), L = a.forwardRef(function(t, n) {
40
- const { setOpen: r } = d(), { trigger: e, className: o, ...c } = t, i = a.useCallback(() => r(!1), [r]);
41
- return /* @__PURE__ */ l("div", { className: o, children: a.cloneElement(e, {
40
+ const { setOpen: r } = d(), { trigger: o, className: e, ...c } = t, i = a.useCallback(() => r(!1), [r]);
41
+ return /* @__PURE__ */ l("div", { className: e, children: a.cloneElement(o, {
42
42
  ref: n,
43
43
  onClick: i,
44
44
  ...c
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { Modal as _, ModalClose as n, ModalContent as t, ModalDescription as a, ModalHeading as d } from "./components/Modal/Modal.js";
2
2
  /*!
3
- @versini/ui-modal v2.0.1
3
+ @versini/ui-modal v2.0.3
4
4
  © 2025 gizmette.com
5
5
  */
6
6
  try {
7
7
  window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
8
- version: "2.0.1",
9
- buildTime: "04/02/2025 04:18 PM EDT",
8
+ version: "2.0.3",
9
+ buildTime: "05/26/2025 03:48 PM EDT",
10
10
  homepage: "https://github.com/aversini/ui-components",
11
11
  license: "MIT"
12
12
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-modal",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -35,14 +35,14 @@
35
35
  "react-dom": "^18.3.1 || ^19.0.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@versini/ui-types": "5.0.1"
38
+ "@versini/ui-types": "5.0.3"
39
39
  },
40
40
  "dependencies": {
41
- "@floating-ui/react": "0.27.6",
41
+ "@floating-ui/react": "0.27.9",
42
42
  "clsx": "2.1.1"
43
43
  },
44
44
  "sideEffects": [
45
45
  "**/*.css"
46
46
  ],
47
- "gitHead": "bd0dc5cacbcb1457f384709b76609590ff9c22c1"
47
+ "gitHead": "863a399128080a19f2668e458d495110aa0f68f8"
48
48
  }