@situaction/traq-ui-ste 1.1.37 → 1.1.39

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.
@@ -6,7 +6,7 @@ import '../../styles/Modal.css';const F = "_overlay_b1r7c_1", L = "_modalContent
6
6
  centered: M
7
7
  }, Y = k(
8
8
  ({
9
- open: t,
9
+ open: a,
10
10
  onClose: c,
11
11
  children: _,
12
12
  position: l,
@@ -14,31 +14,33 @@ import '../../styles/Modal.css';const F = "_overlay_b1r7c_1", L = "_modalContent
14
14
  className: b,
15
15
  disableOverlay: v = !1,
16
16
  autoCloseCondition: m,
17
- anchorRef: a
18
- }, w) => {
19
- const y = C(null), g = w || y, [e, x] = E();
17
+ anchorRef: f
18
+ }, g) => {
19
+ const w = C(null), y = g || w, [e, x] = E();
20
20
  return N(() => {
21
- !m && m !== void 0 && t && c();
22
- }, [m, t, c]), B(() => {
23
- if (a != null && a.current && t && !l && !r) {
24
- const f = a.current.getBoundingClientRect();
21
+ !m && m !== void 0 && a && c();
22
+ }, [m, a, c]), B(() => {
23
+ if (f != null && f.current && a && !l && !r) {
24
+ const t = f.current.getBoundingClientRect();
25
25
  x({
26
- top: `${f.bottom + window.scrollY}px`,
27
- left: `${f.left + window.scrollX}px`
26
+ top: `${t.bottom + window.scrollY}px`,
27
+ left: `${t.left + window.scrollX}px`
28
28
  });
29
29
  }
30
- }, [a, t, l, r]), t ? /* @__PURE__ */ $(j, { children: [
30
+ }, [f, a, l, r]), a ? /* @__PURE__ */ $(j, { children: [
31
31
  !v && /* @__PURE__ */ u(
32
32
  "div",
33
33
  {
34
34
  className: d.overlay,
35
- onClick: c
35
+ onClick: (t) => {
36
+ t.stopPropagation(), c();
37
+ }
36
38
  }
37
39
  ),
38
40
  /* @__PURE__ */ u(
39
41
  "div",
40
42
  {
41
- ref: g,
43
+ ref: y,
42
44
  className: `${d.modalContent} ${b || ""} ${r ? d.centered : ""}`,
43
45
  style: {
44
46
  position: "absolute",
@@ -49,7 +51,7 @@ import '../../styles/Modal.css';const F = "_overlay_b1r7c_1", L = "_modalContent
49
51
  width: l == null ? void 0 : l.width,
50
52
  transform: r || !(l != null && l.top) && !(l != null && l.left) && !e ? "translate(-50%, -50%)" : void 0
51
53
  },
52
- onClick: (f) => f.stopPropagation(),
54
+ onClick: (t) => t.stopPropagation(),
53
55
  children: _
54
56
  }
55
57
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@situaction/traq-ui-ste",
3
- "version": "1.1.37",
3
+ "version": "1.1.39",
4
4
  "description": "library react component Situaction",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",