md-components-mdigial-azamat 0.0.89 → 0.0.91

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.
@@ -2,14 +2,14 @@ import { jsx as o, jsxs as u } from "react/jsx-runtime";
2
2
  import { useState as h, useEffect as c, useCallback as b } from "react";
3
3
  import { c as y } from "./cn-6a4bf187.js";
4
4
  import { createPortal as g } from "react-dom";
5
- const w = ({ children: n, element: r = document.body }) => g(n, r), v = (n) => {
6
- const { className: r, children: l, isOpen: e, onClose: t, lazy: m } = n, [p, x] = h(!1);
5
+ const v = ({ children: n, element: r = document.body }) => g(n, r), w = (n) => {
6
+ const { className: r, children: a, isOpen: e, onClose: t, lazy: p } = n, [x, m] = h(!1);
7
7
  c(() => {
8
- e && x(!0);
8
+ e && m(!0);
9
9
  }, [e]), c(() => (e ? (document.body.style.overflow = "hidden", document.body.style.paddingRight = "var(--scrollbar-width, 0px)") : (document.body.style.overflow = "", document.body.style.paddingRight = ""), () => {
10
10
  document.body.style.overflow = "", document.body.style.paddingRight = "";
11
11
  }), [e]);
12
- const a = b(
12
+ const l = b(
13
13
  (i) => {
14
14
  i.key === "Escape" && (t == null || t());
15
15
  },
@@ -17,24 +17,24 @@ const w = ({ children: n, element: r = document.body }) => g(n, r), v = (n) => {
17
17
  );
18
18
  c(() => {
19
19
  if (e) {
20
- window.addEventListener("keydown", a);
20
+ window.addEventListener("keydown", l);
21
21
  const i = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])', s = document.querySelector('[role="dialog"]'), d = s == null ? void 0 : s.querySelectorAll(
22
22
  i
23
23
  )[0];
24
24
  d == null || d.focus();
25
25
  }
26
26
  return () => {
27
- window.removeEventListener("keydown", a);
27
+ window.removeEventListener("keydown", l);
28
28
  };
29
- }, [e, a]);
29
+ }, [e, l]);
30
30
  const f = (i) => {
31
31
  i.stopPropagation();
32
32
  };
33
- return m && !p ? null : /* @__PURE__ */ o(w, { children: /* @__PURE__ */ o(
33
+ return p && !x ? null : /* @__PURE__ */ o(v, { children: /* @__PURE__ */ o(
34
34
  "div",
35
35
  {
36
36
  className: y(
37
- "fixed inset-0 z-[9999] flex items-center justify-center bg-black/60 transition-all duration-300",
37
+ "fixed inset-0 z-[100000000] flex items-center justify-center bg-black/60 transition-all duration-300",
38
38
  e ? "opacity-100 pointer-events-auto" : "opacity-0 pointer-events-none",
39
39
  r
40
40
  ),
@@ -45,7 +45,7 @@ const w = ({ children: n, element: r = document.body }) => g(n, r), v = (n) => {
45
45
  "div",
46
46
  {
47
47
  className: y(
48
- "relative bg-white p-6 rounded-[24px] shadow-2xl max-w-[95%] sm:max-w-[500px] w-full max-h-[90vh] overflow-y-auto transform transition-all duration-300",
48
+ "relative bg-white p-6 rounded-[24px] shadow-2xl max-w-[1200px] w-[100%] max-h-[90vh] overflow-y-auto transform transition-all duration-300",
49
49
  e ? "scale-100 opacity-100" : "scale-95 opacity-0"
50
50
  ),
51
51
  onClick: f,
@@ -91,7 +91,7 @@ const w = ({ children: n, element: r = document.body }) => g(n, r), v = (n) => {
91
91
  )
92
92
  }
93
93
  ),
94
- /* @__PURE__ */ o("div", { className: "mt-2 text-[#0e0f11]", children: l })
94
+ /* @__PURE__ */ o("div", { className: "mt-2 text-[#0e0f11]", children: a })
95
95
  ]
96
96
  }
97
97
  )
@@ -100,22 +100,22 @@ const w = ({ children: n, element: r = document.body }) => g(n, r), v = (n) => {
100
100
  }, j = ({
101
101
  components: n = [],
102
102
  title: r,
103
- description: l,
103
+ description: a,
104
104
  isOpen: e,
105
105
  onClose: t
106
106
  }) => /* @__PURE__ */ u(
107
- v,
107
+ w,
108
108
  {
109
109
  isOpen: e,
110
110
  onClose: t,
111
111
  children: [
112
112
  /* @__PURE__ */ o("h2", { className: "text-[44px] leading-[52px] font-bold mb-[24px] text-center", children: r }),
113
- /* @__PURE__ */ o("p", { className: "text-[18px] leading-[26px] text-graySoft text-center", children: l }),
113
+ /* @__PURE__ */ o("p", { className: "text-[18px] leading-[26px] text-graySoft text-center", children: a }),
114
114
  n
115
115
  ]
116
116
  }
117
117
  );
118
118
  export {
119
- v as M,
119
+ w as M,
120
120
  j as a
121
121
  };
package/dist/main.js CHANGED
@@ -43,7 +43,7 @@ import { FieldTypes as Ko } from "./Types/FiledTypes.js";
43
43
  import { B as Qo } from "./const-53dff524.js";
44
44
  import { Space as Uo } from "./Space/Space.js";
45
45
  import { FileBannerSecondary as Yo } from "./DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js";
46
- import { M as $o, a as or } from "./index-5aaa0755.js";
46
+ import { M as $o, a as or } from "./index-51282dc9.js";
47
47
  import { useState as f, useCallback as r } from "react";
48
48
  import { S as er } from "./size-b1291031.js";
49
49
  import { TitleBlock as ar } from "./TitleBlock/TitleBlock.js";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "md-components-mdigial-azamat",
3
3
  "author": "Azamat Raimbekov",
4
4
  "private": false,
5
- "version": "0.0.89",
5
+ "version": "0.0.91",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",