md-components-mdigial-azamat 0.0.83 → 0.0.86

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.
@@ -31,7 +31,7 @@ import "../PartnersColors/PartnersColors.js";
31
31
  import "../PreviewList/PreviewList.js";
32
32
  import "../Cards/CardImage/CardImage.js";
33
33
  import "../Cards/ContentCard/ContentCard.js";
34
- import "../info-a3b95669.js";
34
+ import "../info-af79abc0.js";
35
35
  import "../Cards/ColoredCard/index.js";
36
36
  import "../Cards/FeaturesCard/index.js";
37
37
  import "../DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
@@ -56,6 +56,7 @@ import "../SwiperList/SwiperList.js";
56
56
  import "../TasksBanner/TasksBanner.js";
57
57
  import "../TasksBannerList/TasksBannerList.js";
58
58
  import "../VideoMainBanner/VideoMainBanner.js";
59
+ import "../index-869896ab.js";
59
60
  import { S as E } from "../size-b1291031.js";
60
61
  import "../AnimatedSwiper/info.js";
61
62
  import "../Banner/info.js";
@@ -8,7 +8,7 @@ import "./CardInfoTable/index.js";
8
8
  import "./ContentCardList/ContentCardList.js";
9
9
  import "./DownloadFile/components/DownloadFileBright/index.js";
10
10
  import "./Faq/Faq.js";
11
- import { a as Vo, A as Wo } from "./info-a3b95669.js";
11
+ import { a as Wo, A as Xo } from "./info-af79abc0.js";
12
12
  import "./InfoBannerList/InfoBannerList.js";
13
13
  import "./IntroBanner/IntroBanner.js";
14
14
  import "./MainBanner/MainBanner.js";
@@ -53,6 +53,7 @@ import "./DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js";
53
53
  import "./InfoBanner/index.js";
54
54
  import "./Space/Space.js";
55
55
  import "./TasksBanner/TasksBanner.js";
56
+ import "./index-869896ab.js";
56
57
  import "./AnimatedSwiper/info.js";
57
58
  import "./Banner/info.js";
58
59
  import "./BannerAndText/info.js";
@@ -98,6 +99,6 @@ import "./Video/VideoListMini/info.js";
98
99
  import "./VideoMainBanner/info.js";
99
100
  import "./Actions/types.js";
100
101
  export {
101
- Vo as AllComponents,
102
- Wo as AllComponentsData
102
+ Wo as AllComponents,
103
+ Xo as AllComponentsData
103
104
  };
@@ -10,7 +10,7 @@ import { cardImageInfo as f } from "./Cards/CardImage/info.js";
10
10
  import { coloredCardInfo as I } from "./Cards/ColoredCard/info.js";
11
11
  import { contentCardInfo as d } from "./Cards/ContentCard/info.js";
12
12
  import { featuresCardInfo as p } from "./Cards/FeaturesCard/info.js";
13
- import { w as s, f as l } from "./info-a3b95669.js";
13
+ import { w as s, f as l } from "./info-af79abc0.js";
14
14
  import { contentCardListInfo as C } from "./ContentCardList/info.js";
15
15
  import { downloadFileBannerInfo as B } from "./DownloadFile/components/DownloadFileBanner/info.js";
16
16
  import { downloadFileBrightInfo as L } from "./DownloadFile/components/DownloadFileBright/info.js";
@@ -29,7 +29,7 @@ import "../../PartnersColors/PartnersColors.js";
29
29
  import "../../PreviewList/PreviewList.js";
30
30
  import "../CardImage/CardImage.js";
31
31
  import "../ContentCard/ContentCard.js";
32
- import { W as Xr, p as Yr } from "../../info-a3b95669.js";
32
+ import { W as Yr, p as Zr } from "../../info-af79abc0.js";
33
33
  import "../ColoredCard/index.js";
34
34
  import "../FeaturesCard/index.js";
35
35
  import "../../DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
@@ -54,6 +54,7 @@ import "../../SwiperList/SwiperList.js";
54
54
  import "../../TasksBanner/TasksBanner.js";
55
55
  import "../../TasksBannerList/TasksBannerList.js";
56
56
  import "../../VideoMainBanner/VideoMainBanner.js";
57
+ import "../../index-869896ab.js";
57
58
  import "../../AnimatedSwiper/info.js";
58
59
  import "../../Banner/info.js";
59
60
  import "../../BannerAndText/info.js";
@@ -101,6 +102,6 @@ import "../../Actions/types.js";
101
102
  import "../../Icon-70ea6cb8.js";
102
103
  import "../../ComponentContainer-05e27e82.js";
103
104
  export {
104
- Xr as WarningCard,
105
- Yr as propsToEdit
105
+ Yr as WarningCard,
106
+ Zr as propsToEdit
106
107
  };
@@ -1,4 +1,4 @@
1
- import { W as n } from "../../info-a3b95669.js";
1
+ import { W as n } from "../../info-af79abc0.js";
2
2
  export {
3
3
  n as WarningCard
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import "../../index-0a5f313c.js";
2
- import { w as n } from "../../info-a3b95669.js";
2
+ import { w as n } from "../../info-af79abc0.js";
3
3
  export {
4
4
  n as warningCardInfo
5
5
  };
@@ -3,7 +3,7 @@ import "react";
3
3
  import "../../index-a0ed2e4a.js";
4
4
  import "../../index-875e92ce.js";
5
5
  import "../../const-53dff524.js";
6
- import { F as f, g as F } from "../../info-a3b95669.js";
6
+ import { F as f, g as F } from "../../info-af79abc0.js";
7
7
  import "../../ComponentContainer-05e27e82.js";
8
8
  import "../../useScreenSize-c1b64c02.js";
9
9
  export {
@@ -27,7 +27,7 @@ import "../../PartnersColors/PartnersColors.js";
27
27
  import "../../PreviewList/PreviewList.js";
28
28
  import "../../Cards/CardImage/CardImage.js";
29
29
  import "../../Cards/ContentCard/ContentCard.js";
30
- import { e as Xo, f as Yo, d as Zo, i as _o } from "../../info-a3b95669.js";
30
+ import { e as Yo, f as Zo, d as _o, i as $o } from "../../info-af79abc0.js";
31
31
  import "../../Cards/ColoredCard/index.js";
32
32
  import "../../Cards/FeaturesCard/index.js";
33
33
  import "../../DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
@@ -53,6 +53,7 @@ import "../../TasksBanner/TasksBanner.js";
53
53
  import "../../TasksBannerList/TasksBannerList.js";
54
54
  import "../../VideoMainBanner/VideoMainBanner.js";
55
55
  import "../../Types/FiledTypes.js";
56
+ import "../../index-869896ab.js";
56
57
  import "../../AnimatedSwiper/info.js";
57
58
  import "../../Banner/info.js";
58
59
  import "../../BannerAndText/info.js";
@@ -100,8 +101,8 @@ import "../../Actions/types.js";
100
101
  import "../../index-0a5f313c.js";
101
102
  import "./componentTypes.js";
102
103
  export {
103
- Xo as FormFieldsProps,
104
- Yo as formDefaultInfo,
105
- Zo as formDefaultProps,
106
- _o as info
104
+ Yo as FormFieldsProps,
105
+ Zo as formDefaultInfo,
106
+ _o as formDefaultProps,
107
+ $o as info
107
108
  };
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../index-a0ed2e4a.js";
3
3
  import "../../FileLoader/index.js";
4
- import { r as p } from "../../info-a3b95669.js";
4
+ import { r as p } from "../../info-af79abc0.js";
5
5
  export {
6
6
  p as renderFormFields
7
7
  };
@@ -28,7 +28,7 @@ import "../../PartnersColors/PartnersColors.js";
28
28
  import "../../PreviewList/PreviewList.js";
29
29
  import "../../Cards/CardImage/CardImage.js";
30
30
  import "../../Cards/ContentCard/ContentCard.js";
31
- import { b as Vo, c as Wo } from "../../info-a3b95669.js";
31
+ import { b as Wo, c as Xo } from "../../info-af79abc0.js";
32
32
  import "../../Cards/ColoredCard/index.js";
33
33
  import "../../Cards/FeaturesCard/index.js";
34
34
  import "../../DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
@@ -53,6 +53,7 @@ import "../../SwiperList/SwiperList.js";
53
53
  import "../../TasksBanner/TasksBanner.js";
54
54
  import "../../TasksBannerList/TasksBannerList.js";
55
55
  import "../../VideoMainBanner/VideoMainBanner.js";
56
+ import "../../index-869896ab.js";
56
57
  import "../../AnimatedSwiper/info.js";
57
58
  import "../../Banner/info.js";
58
59
  import "../../BannerAndText/info.js";
@@ -98,6 +99,6 @@ import "../../Video/VideoListMini/info.js";
98
99
  import "../../VideoMainBanner/info.js";
99
100
  import "../../Actions/types.js";
100
101
  export {
101
- Vo as componentsList,
102
- Wo as componentsMap
102
+ Wo as componentsList,
103
+ Xo as componentsMap
103
104
  };
@@ -0,0 +1,120 @@
1
+ import { jsx as o, jsxs as u } from "react/jsx-runtime";
2
+ import { useState as h, useEffect as c, useCallback as b } from "react";
3
+ import { c as y } from "../cn-6a4bf187.js";
4
+ import { r as g } from "../index-869896ab.js";
5
+ const w = ({ children: n, element: r = document.body }) => g.createPortal(n, r), v = (n) => {
6
+ const { className: r, children: l, isOpen: e, onClose: t, lazy: m } = n, [p, x] = h(!1);
7
+ c(() => {
8
+ e && x(!0);
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
+ document.body.style.overflow = "", document.body.style.paddingRight = "";
11
+ }), [e]);
12
+ const a = b(
13
+ (i) => {
14
+ i.key === "Escape" && (t == null || t());
15
+ },
16
+ [t]
17
+ );
18
+ c(() => {
19
+ if (e) {
20
+ window.addEventListener("keydown", a);
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
+ i
23
+ )[0];
24
+ d == null || d.focus();
25
+ }
26
+ return () => {
27
+ window.removeEventListener("keydown", a);
28
+ };
29
+ }, [e, a]);
30
+ const f = (i) => {
31
+ i.stopPropagation();
32
+ };
33
+ return m && !p ? null : /* @__PURE__ */ o(w, { children: /* @__PURE__ */ o(
34
+ "div",
35
+ {
36
+ className: y(
37
+ "fixed inset-0 z-[9999] flex items-center justify-center bg-black/60 transition-all duration-300",
38
+ e ? "opacity-100 pointer-events-auto" : "opacity-0 pointer-events-none",
39
+ r
40
+ ),
41
+ onClick: t,
42
+ role: "dialog",
43
+ "aria-modal": "true",
44
+ children: /* @__PURE__ */ u(
45
+ "div",
46
+ {
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",
49
+ e ? "scale-100 opacity-100" : "scale-95 opacity-0"
50
+ ),
51
+ onClick: f,
52
+ children: [
53
+ /* @__PURE__ */ o(
54
+ "button",
55
+ {
56
+ onClick: t,
57
+ className: "absolute top-4 right-4 p-2 rounded-full hover:bg-gray-100 transition-colors text-gray-500",
58
+ "aria-label": "Close",
59
+ children: /* @__PURE__ */ u(
60
+ "svg",
61
+ {
62
+ width: "24",
63
+ height: "24",
64
+ viewBox: "0 0 24 24",
65
+ fill: "none",
66
+ stroke: "currentColor",
67
+ strokeWidth: "2",
68
+ strokeLinecap: "round",
69
+ strokeLinejoin: "round",
70
+ children: [
71
+ /* @__PURE__ */ o(
72
+ "line",
73
+ {
74
+ x1: "18",
75
+ y1: "6",
76
+ x2: "6",
77
+ y2: "18"
78
+ }
79
+ ),
80
+ /* @__PURE__ */ o(
81
+ "line",
82
+ {
83
+ x1: "6",
84
+ y1: "6",
85
+ x2: "18",
86
+ y2: "18"
87
+ }
88
+ )
89
+ ]
90
+ }
91
+ )
92
+ }
93
+ ),
94
+ /* @__PURE__ */ o("div", { className: "mt-2 text-[#0e0f11]", children: l })
95
+ ]
96
+ }
97
+ )
98
+ }
99
+ ) });
100
+ }, j = ({
101
+ components: n = [],
102
+ title: r,
103
+ description: l,
104
+ isOpen: e,
105
+ onClose: t
106
+ }) => /* @__PURE__ */ u(
107
+ v,
108
+ {
109
+ isOpen: e,
110
+ onClose: t,
111
+ children: [
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 }),
114
+ n
115
+ ]
116
+ }
117
+ );
118
+ export {
119
+ j as ModalBody
120
+ };
@@ -1,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { c as f } from "../componentsMap-5b44ddfd.js";
2
+ import { c as f } from "../componentsMap-9e7decf2.js";
3
3
  const a = (p) => p.map((r) => {
4
4
  const s = f[r.key];
5
5
  if (!s)
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, Fragment as t } from "react/jsx-runtime";
2
- import { c as i } from "../componentsMap-5b44ddfd.js";
2
+ import { c as i } from "../componentsMap-9e7decf2.js";
3
3
  const d = ({ components: o, device: p }) => /* @__PURE__ */ n(t, { children: o.map((r) => {
4
4
  const e = i[r.key];
5
5
  return e ? /* @__PURE__ */ n(