md-components-mdigial-azamat 0.0.10 → 0.0.12
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.
- package/README.md +4 -0
- package/dist/AllComponents.js +130 -0
- package/dist/AnimatedSwiper/Slide/Slide.js +57 -0
- package/dist/AnimatedSwiper/Slide/index.js +4 -0
- package/dist/AnimatedSwiper/index.js +117 -0
- package/dist/AnimatedSwiper/types.js +1 -0
- package/dist/Banner/Banner.js +45 -49
- package/dist/BannerAndText/index.js +14 -13
- package/dist/CardIconList/CardIconList.js +23 -22
- package/dist/CardImageList/CardImageList.js +15 -14
- package/dist/CardImageSecondary/CardImageSecondary.js +50 -0
- package/dist/CardImageSecondary/index.js +4 -0
- package/dist/CardImageSecondary/types.js +1 -0
- package/dist/CardImageSecondaryList/CardImageSecondaryList.js +21 -0
- package/dist/CardImageSecondaryList/index.js +4 -0
- package/dist/CardImageSecondaryList/types.js +1 -0
- package/dist/CardInfoTable/index.js +153 -0
- package/dist/CardInfoTable/types.js +1 -0
- package/dist/Cards/CardImage/CardImage.js +8 -7
- package/dist/Cards/ColoredCard/index.js +5 -4
- package/dist/Cards/ContentCard/ContentCard.js +17 -15
- package/dist/Cards/FeaturesCard/index.js +3 -3
- package/dist/Cards/WarningCard/WarningCard.js +27 -25
- package/dist/Cards/WarningCard/model.js +1 -1
- package/dist/ComponentContainer-0fcc2695.js +16 -0
- package/dist/ConfigProvider/index.js +5 -3
- package/dist/ContentCardList/ContentCardList.js +13 -12
- package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +21 -15
- package/dist/DownloadFile/components/DownloadFileBright/index.js +103 -0
- package/dist/DownloadFile/components/DownloadFileBright/types.js +1 -0
- package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +16 -14
- package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +20 -18
- package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +19 -17
- package/dist/EmptyBox/EmptyBox.js +5 -0
- package/dist/EmptyBox/types.js +1 -0
- package/dist/Faq/Faq.js +16 -15
- package/dist/Faq/components/Collapse/Collapse.js +9 -8
- package/dist/Faq/components/FeedbackForm/FeedbackForm.js +95 -94
- package/dist/Faq/components/PlusMinusIcon/PlusMinusIcon.js +1 -1
- package/dist/HeroPossibilityBanner/index.js +24 -16
- package/dist/HtmlContent/HtmlContent.js +6 -5
- package/dist/InfoBanner/index.js +73 -0
- package/dist/InfoBanner/types.js +1 -0
- package/dist/InfoBannerList/InfoBannerList.js +37 -0
- package/dist/InfoBannerList/index.js +4 -0
- package/dist/InfoBannerList/types.js +1 -0
- package/dist/InstructionList/InstructionList.js +14 -13
- package/dist/InstructionList/components/InstructionCard/InstructionCard.js +13 -12
- package/dist/InstructionList/components/InstructionModal/InstructionModal.js +2 -2
- package/dist/IntroBanner/IntroBanner.js +60 -0
- package/dist/IntroBanner/index.js +4 -0
- package/dist/IntroBanner/types.js +1 -0
- package/dist/MainBanner/MainBanner.js +30 -21
- package/dist/MultiCards/index.js +33 -25
- package/dist/Partners/Partners.js +7 -6
- package/dist/PartnersColors/PartnersColors.js +20 -19
- package/dist/PartnersColors/components/PartnerCard/PartnerCard.js +1 -1
- package/dist/PartnersColors/components/PartnerTab/PartnerTab.js +2 -2
- package/dist/PreviewList/PreviewList.js +17 -16
- package/dist/PreviewList/components/PreviewCard/PreviewCard.js +15 -13
- package/dist/PromoPoster/PromoPoster.js +36 -0
- package/dist/PromoPoster/types.js +1 -0
- package/dist/RenderAllComponents/RenderAllComponents.js +82 -0
- package/dist/RenderAllComponents/const.js +43 -0
- package/dist/RenderAllComponents/index.js +4 -0
- package/dist/Segments/Segments.js +14 -13
- package/dist/StandartTable/components/CardMarkedRow/index.js +75 -0
- package/dist/StandartTable/components/CardMarkedRow/types.js +1 -0
- package/dist/StandartTable/components/CardWarning/index.js +89 -0
- package/dist/StandartTable/components/CardWarning/types.js +1 -0
- package/dist/StandartTable/index.js +48 -0
- package/dist/StandartTable/types.js +1 -0
- package/dist/Stepper/Stepper.js +14 -13
- package/dist/SwiperList/SwiperList.js +50 -3189
- package/dist/SwiperList/components/Bullet/Bullet.js +1 -1
- package/dist/SwiperList/components/Slide/Slide.js +2 -2
- package/dist/TasksBanner/TasksBanner.js +108 -0
- package/dist/TasksBanner/index.js +4 -0
- package/dist/TasksBanner/types.js +1 -0
- package/dist/TasksBannerList/TasksBannerList.js +17 -0
- package/dist/TasksBannerList/index.js +4 -0
- package/dist/TasksBannerList/types.js +1 -0
- package/dist/Video/VideoFull/VideoFull.js +4 -3
- package/dist/Video/VideoList/VideoList.js +10 -9
- package/dist/Video/VideoListMini/VideoListMini.js +8 -7
- package/dist/Video/components/VideoPlayer/VideoPlayer.js +1 -1
- package/dist/VideoMainBanner/VideoMainBanner.js +148 -0
- package/dist/VideoMainBanner/index.js +4 -0
- package/dist/VideoMainBanner/types.js +1 -0
- package/dist/assets/TasksBanner.css +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cn-eacd4725.js → cn-d8c04b28.js} +1 -0
- package/dist/const-9041b93a.js +5 -0
- package/dist/data.mock-741c2220.js +1714 -0
- package/dist/{index-fb8c9446.js → index-60dfa873.js} +1 -1
- package/dist/{index-cd468670.js → index-6e0f7db0.js} +8 -7
- package/dist/index-b3d6aed3.js +52 -0
- package/dist/main.js +1 -1
- package/dist/{palette-52b06a82.js → palette-ac8c8a5f.js} +7 -2
- package/dist/swiper-react-c049ea66.js +3158 -0
- package/dist/trash/HeroLargeCards/index.js +1 -1
- package/dist/useScreenSize-c1b64c02.js +19 -0
- package/package.json +1 -1
- package/dist/ComponentContainer-41408843.js +0 -15
- package/dist/index-89dcf24f.js +0 -54
- package/dist/main.d.ts +0 -39
- /package/dist/assets/{SwiperList.css → swiper-react.css} +0 -0
- /package/dist/assets/{Slide.css → swiper.css} +0 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { I as h } from "../../../Icon-70ea6cb8.js";
|
|
3
|
+
import { p as r } from "../../../palette-ac8c8a5f.js";
|
|
4
|
+
import { B as u } from "../../../index-b3d6aed3.js";
|
|
5
|
+
import { a as w } from "../../../const-9041b93a.js";
|
|
6
|
+
import { C as j } from "../../../ComponentContainer-0fcc2695.js";
|
|
7
|
+
import { I as y } from "../../../index-60dfa873.js";
|
|
8
|
+
import { c as B } from "../../../cn-d8c04b28.js";
|
|
9
|
+
import { u as N } from "../../../useScreenSize-c1b64c02.js";
|
|
10
|
+
const W = ({
|
|
11
|
+
title: m,
|
|
12
|
+
description: s,
|
|
13
|
+
file: n,
|
|
14
|
+
icon: p,
|
|
15
|
+
button_text: b,
|
|
16
|
+
button_link: c,
|
|
17
|
+
variant: e = "big",
|
|
18
|
+
buttonVariant: x,
|
|
19
|
+
className: f = "",
|
|
20
|
+
isDark: a,
|
|
21
|
+
linkClassName: g = ""
|
|
22
|
+
}) => {
|
|
23
|
+
const i = N(960), o = e === "big" ? i ? 106 : 343 : i ? 106 : 64, d = x === w.Brand;
|
|
24
|
+
return /* @__PURE__ */ l(
|
|
25
|
+
j,
|
|
26
|
+
{
|
|
27
|
+
className: `flex justify-between items-center rounded-[20px]
|
|
28
|
+
${e === "big" ? "p-[48px]" : "p-[32px] gap-[32px]"}
|
|
29
|
+
${a ? "bg-black7" : "bg-white"}
|
|
30
|
+
max-tablet:flex-col max-tablet:items-start max-tablet:justify-start max-tablet:p-[24px] max-tablet:gap-[0] max-tablet:my-[48px] my-[88px]
|
|
31
|
+
max-tablet:relative w-[calc(100%-239px)]
|
|
32
|
+
${f}`,
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ l("div", { className: "flex flex-col h-full w-full", children: [
|
|
35
|
+
/* @__PURE__ */ t(
|
|
36
|
+
"p",
|
|
37
|
+
{
|
|
38
|
+
className: `font-[700]
|
|
39
|
+
${a ? "text-[#f4f6f7]" : "text-[#0e0f11]"}
|
|
40
|
+
${e === "big" ? "text-[32px] leading-[40px]" : "text-[24px] leading-[32px]"}
|
|
41
|
+
max-tablet:text-[24px] max-tablet:leading-[28px]
|
|
42
|
+
mb-[16px] max-tablet:mt-[24px] max-tablet:mb-[12px] max-tablet:text-center`,
|
|
43
|
+
children: m
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
/* @__PURE__ */ t(
|
|
47
|
+
"p",
|
|
48
|
+
{
|
|
49
|
+
className: `font-[400] text-[16px] leading-[24px]
|
|
50
|
+
${a ? "text-[#f4f6f7]" : "text-[#40474f]"}
|
|
51
|
+
mb-[32px] max-tablet:mb-[24px] max-tablet:text-center`,
|
|
52
|
+
children: s
|
|
53
|
+
}
|
|
54
|
+
),
|
|
55
|
+
/* @__PURE__ */ t(
|
|
56
|
+
"a",
|
|
57
|
+
{
|
|
58
|
+
className: `mt-auto ${g} w-fit max-tablet:w-full`,
|
|
59
|
+
href: n || c || "#",
|
|
60
|
+
download: !0,
|
|
61
|
+
target: "_blank",
|
|
62
|
+
children: /* @__PURE__ */ l(
|
|
63
|
+
u,
|
|
64
|
+
{
|
|
65
|
+
className: "w-fit max-tablet:w-full flex items-center justify-center",
|
|
66
|
+
variant: x,
|
|
67
|
+
children: [
|
|
68
|
+
b,
|
|
69
|
+
/* @__PURE__ */ t(
|
|
70
|
+
h,
|
|
71
|
+
{
|
|
72
|
+
name: "download",
|
|
73
|
+
size: 20,
|
|
74
|
+
color: d ? r.white : r.blackBG
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
] }),
|
|
83
|
+
/* @__PURE__ */ t(
|
|
84
|
+
y,
|
|
85
|
+
{
|
|
86
|
+
src: p,
|
|
87
|
+
alt: m,
|
|
88
|
+
width: o,
|
|
89
|
+
height: o,
|
|
90
|
+
className: B(
|
|
91
|
+
"absolute top-1/2 right-6 w-[343px] !h-auto -translate-y-1/2 max-tablet:relative max-tablet:!h-[106px]",
|
|
92
|
+
"max-tablet:top-auto max-tablet:right-auto max-tablet:-translate-y-0 max-tablet:order-[-1] max-tablet:mx-auto"
|
|
93
|
+
),
|
|
94
|
+
imageStyles: "object-contain object-bottom max-tablet:object-center"
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
};
|
|
101
|
+
export {
|
|
102
|
+
W as DownloadFileBright
|
|
103
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,39 +1,41 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { I as
|
|
3
|
-
import { p as
|
|
4
|
-
import { B as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { I as r } from "../../../Icon-70ea6cb8.js";
|
|
3
|
+
import { p as t } from "../../../palette-ac8c8a5f.js";
|
|
4
|
+
import { B as n } from "../../../index-b3d6aed3.js";
|
|
5
|
+
import { a as s } from "../../../const-9041b93a.js";
|
|
6
|
+
import { C as i } from "../../../ComponentContainer-0fcc2695.js";
|
|
7
|
+
const p = ["data"], c = ({ data: o }) => /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: o == null ? void 0 : o.map((l) => /* @__PURE__ */ a("div", { className: "px-[48px] py-8 bg-white rounded-[20px] flex justify-between items-center gap-[64px]", children: [
|
|
8
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-4 max-tablet:flex-col max-tablet:items-start", children: [
|
|
8
9
|
/* @__PURE__ */ e(
|
|
9
|
-
|
|
10
|
+
r,
|
|
10
11
|
{
|
|
11
12
|
className: "flex-shrink-0",
|
|
12
13
|
name: "file",
|
|
13
|
-
color:
|
|
14
|
+
color: t.greenLight,
|
|
14
15
|
size: 44
|
|
15
16
|
}
|
|
16
17
|
),
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col max-tablet:gap-2 ", children: [
|
|
18
19
|
/* @__PURE__ */ e("p", { className: "text-[20px] leading-7 font-bold", children: l == null ? void 0 : l.title }),
|
|
19
20
|
/* @__PURE__ */ e("p", { className: "text-[16px] leading-6", children: l == null ? void 0 : l.text })
|
|
20
21
|
] })
|
|
21
22
|
] }),
|
|
22
23
|
/* @__PURE__ */ e(
|
|
23
|
-
|
|
24
|
+
n,
|
|
24
25
|
{
|
|
25
26
|
variant: s.Secondary,
|
|
26
27
|
iconRight: /* @__PURE__ */ e(
|
|
27
|
-
|
|
28
|
+
r,
|
|
28
29
|
{
|
|
29
30
|
name: "download",
|
|
30
31
|
size: 20,
|
|
31
|
-
color:
|
|
32
|
+
color: t.blackBG
|
|
32
33
|
}
|
|
33
34
|
)
|
|
34
35
|
}
|
|
35
36
|
)
|
|
36
37
|
] })) }) });
|
|
38
|
+
c.propsToEdit = p;
|
|
37
39
|
export {
|
|
38
|
-
|
|
40
|
+
c as DownloadFileFull
|
|
39
41
|
};
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { I as
|
|
3
|
-
import { p as
|
|
4
|
-
import { B as s
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { jsx as r, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { I as n } from "../../../Icon-70ea6cb8.js";
|
|
3
|
+
import { p as e } from "../../../palette-ac8c8a5f.js";
|
|
4
|
+
import { B as s } from "../../../index-b3d6aed3.js";
|
|
5
|
+
import { a as c } from "../../../const-9041b93a.js";
|
|
6
|
+
import { C as i } from "../../../ComponentContainer-0fcc2695.js";
|
|
7
|
+
const p = ["data"], d = ({ data: l }) => /* @__PURE__ */ r(i, { children: /* @__PURE__ */ r("div", { className: "grid grid-cols-2 gap-6 max-tablet:grid-cols-1", children: l == null ? void 0 : l.map((o) => /* @__PURE__ */ a(
|
|
7
8
|
"div",
|
|
8
9
|
{
|
|
9
10
|
className: "p-[32px] bg-white rounded-[20px] flex justify-between gap-[40px]",
|
|
10
11
|
children: [
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
12
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col ", children: /* @__PURE__ */ a("div", { children: [
|
|
13
|
+
/* @__PURE__ */ r("p", { className: "text-[24px] leading-8 font-bold mb-4", children: o == null ? void 0 : o.title }),
|
|
14
|
+
/* @__PURE__ */ r("p", { className: "text-[16px] leading-6", children: o == null ? void 0 : o.text }),
|
|
15
|
+
/* @__PURE__ */ r(
|
|
15
16
|
s,
|
|
16
17
|
{
|
|
17
|
-
iconRight: /* @__PURE__ */
|
|
18
|
-
|
|
18
|
+
iconRight: /* @__PURE__ */ r(
|
|
19
|
+
n,
|
|
19
20
|
{
|
|
20
21
|
name: "download",
|
|
21
22
|
size: 20,
|
|
22
|
-
color:
|
|
23
|
+
color: e.blackBG
|
|
23
24
|
}
|
|
24
25
|
),
|
|
25
26
|
className: "mt-8",
|
|
@@ -28,19 +29,20 @@ const h = ({ data: r }) => /* @__PURE__ */ o(i, { children: /* @__PURE__ */ o("d
|
|
|
28
29
|
}
|
|
29
30
|
)
|
|
30
31
|
] }) }),
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
|
|
32
|
+
/* @__PURE__ */ r(
|
|
33
|
+
n,
|
|
33
34
|
{
|
|
34
35
|
className: "flex-shrink-0",
|
|
35
36
|
name: "file",
|
|
36
|
-
color:
|
|
37
|
+
color: e.greenLight,
|
|
37
38
|
size: 48
|
|
38
39
|
}
|
|
39
40
|
)
|
|
40
41
|
]
|
|
41
42
|
},
|
|
42
|
-
|
|
43
|
+
o == null ? void 0 : o.id
|
|
43
44
|
)) }) });
|
|
45
|
+
d.propsToEdit = p;
|
|
44
46
|
export {
|
|
45
|
-
|
|
47
|
+
d as DownloadFileHalf
|
|
46
48
|
};
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { I as
|
|
3
|
-
import { p as e } from "../../../palette-
|
|
4
|
-
import { B as s
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { jsx as r, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { I as n } from "../../../Icon-70ea6cb8.js";
|
|
3
|
+
import { p as e } from "../../../palette-ac8c8a5f.js";
|
|
4
|
+
import { B as s } from "../../../index-b3d6aed3.js";
|
|
5
|
+
import { a as p } from "../../../const-9041b93a.js";
|
|
6
|
+
import { C as c } from "../../../ComponentContainer-0fcc2695.js";
|
|
7
|
+
const i = ["data"], d = ({ data: l }) => /* @__PURE__ */ r(c, { children: /* @__PURE__ */ r("div", { className: "grid grid-cols-4 gap-6 max-tablet:grid-cols-1", children: l == null ? void 0 : l.map((o) => /* @__PURE__ */ a(
|
|
7
8
|
"div",
|
|
8
9
|
{
|
|
9
10
|
className: "p-[24px] bg-white rounded-[20px] flex flex-col gap-8",
|
|
10
11
|
children: [
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
|
|
12
|
+
/* @__PURE__ */ r(
|
|
13
|
+
n,
|
|
13
14
|
{
|
|
14
15
|
name: "file",
|
|
15
16
|
color: e.greenLight,
|
|
16
17
|
size: 44
|
|
17
18
|
}
|
|
18
19
|
),
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col gap-4", children: [
|
|
21
|
+
/* @__PURE__ */ r("p", { className: "text-[20px] leading-[28px] font-bold", children: o == null ? void 0 : o.title }),
|
|
22
|
+
/* @__PURE__ */ r("p", { className: "text-[16px] leading-6", children: o == null ? void 0 : o.text })
|
|
22
23
|
] }),
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ r(
|
|
24
25
|
s,
|
|
25
26
|
{
|
|
26
|
-
iconRight: /* @__PURE__ */
|
|
27
|
-
|
|
27
|
+
iconRight: /* @__PURE__ */ r(
|
|
28
|
+
n,
|
|
28
29
|
{
|
|
29
30
|
name: "download",
|
|
30
31
|
size: 20,
|
|
@@ -32,14 +33,15 @@ const g = ({ data: r }) => /* @__PURE__ */ o(i, { children: /* @__PURE__ */ o("d
|
|
|
32
33
|
}
|
|
33
34
|
),
|
|
34
35
|
className: "w-full",
|
|
35
|
-
variant:
|
|
36
|
+
variant: p.Secondary,
|
|
36
37
|
children: "Скачать"
|
|
37
38
|
}
|
|
38
39
|
)
|
|
39
40
|
]
|
|
40
41
|
},
|
|
41
|
-
|
|
42
|
+
o == null ? void 0 : o.id
|
|
42
43
|
)) }) });
|
|
44
|
+
d.propsToEdit = i;
|
|
43
45
|
export {
|
|
44
|
-
|
|
46
|
+
d as DownloadFileMini
|
|
45
47
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/Faq/Faq.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Collapse as
|
|
3
|
-
import { FeedbackForm as
|
|
4
|
-
import { HtmlContent as
|
|
5
|
-
import { C as e } from "../ComponentContainer-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
|
|
1
|
+
import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { Collapse as x } from "./components/Collapse/Collapse.js";
|
|
3
|
+
import { FeedbackForm as a } from "./components/FeedbackForm/FeedbackForm.js";
|
|
4
|
+
import { HtmlContent as c } from "../HtmlContent/HtmlContent.js";
|
|
5
|
+
import { C as e } from "../ComponentContainer-0fcc2695.js";
|
|
6
|
+
const s = ["data", "title"], d = ({ data: o, title: n }) => o != null && o.length ? /* @__PURE__ */ r(e, { children: /* @__PURE__ */ p("div", { className: "w-full mx-auto flex flex-col gap-[48px] transition-all duration-1000 max-tablet:gap-[30px]", children: [
|
|
7
|
+
n && /* @__PURE__ */ r("p", { className: "text-[44px] leading-[55px] font-bold text-center text-black2 max-tablet:text-[24px] max-tablet:leading-[30px] m-0", children: n }),
|
|
8
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col bg-white p-12 rounded-[20px] max-tablet:p-6", children: o == null ? void 0 : o.map((l) => /* @__PURE__ */ r(
|
|
9
|
+
x,
|
|
10
10
|
{
|
|
11
11
|
title: l == null ? void 0 : l.title,
|
|
12
|
-
children: /* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
|
|
12
|
+
children: /* @__PURE__ */ p("div", { children: [
|
|
13
|
+
/* @__PURE__ */ r(
|
|
14
|
+
c,
|
|
15
15
|
{
|
|
16
16
|
data: l == null ? void 0 : l.description,
|
|
17
17
|
className: "text-[18px] leading-[26px] text-blackBG "
|
|
18
18
|
}
|
|
19
19
|
),
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
|
|
20
|
+
/* @__PURE__ */ r(
|
|
21
|
+
a,
|
|
22
22
|
{
|
|
23
23
|
faqId: l == null ? void 0 : l.id,
|
|
24
24
|
percent: l == null ? void 0 : l.percentage
|
|
@@ -30,6 +30,7 @@ const g = ({ data: r, title: o }) => r != null && r.length ? /* @__PURE__ */ n(e
|
|
|
30
30
|
l == null ? void 0 : l.id
|
|
31
31
|
)) })
|
|
32
32
|
] }) }) : null;
|
|
33
|
+
d.propsToEdit = s;
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
+
d as Faq
|
|
35
36
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as m, useState as
|
|
3
|
-
import { PlusMinusIcon as
|
|
4
|
-
const
|
|
2
|
+
import { useRef as m, useState as o, useEffect as u } from "react";
|
|
3
|
+
import { PlusMinusIcon as h } from "../PlusMinusIcon/PlusMinusIcon.js";
|
|
4
|
+
const x = ["title", "children"], b = ({ title: l, children: n }) => {
|
|
5
5
|
var r;
|
|
6
|
-
const e = m(null), [s, c] =
|
|
6
|
+
const e = m(null), [s, c] = o(!1), [a, p] = o("0px"), d = () => c((f) => !f);
|
|
7
7
|
return u(() => {
|
|
8
8
|
e.current && p(s ? `${e.current.scrollHeight + 16}px` : "0px");
|
|
9
9
|
}, [s, (r = e.current) == null ? void 0 : r.scrollHeight]), /* @__PURE__ */ i(
|
|
@@ -17,8 +17,8 @@ const v = ({ title: n, children: o }) => {
|
|
|
17
17
|
onClick: d,
|
|
18
18
|
className: "cursor-pointer flex justify-between items-center font-semibold leading-[26px] text-[18px] text-blackBG py-8 max-tablet:py-6",
|
|
19
19
|
children: [
|
|
20
|
-
/* @__PURE__ */ t("p", { className: "flex items-center gap-3", children:
|
|
21
|
-
/* @__PURE__ */ t(
|
|
20
|
+
/* @__PURE__ */ t("p", { className: "flex items-center gap-3", children: l }),
|
|
21
|
+
/* @__PURE__ */ t(h, { isActive: s })
|
|
22
22
|
]
|
|
23
23
|
}
|
|
24
24
|
),
|
|
@@ -30,13 +30,14 @@ const v = ({ title: n, children: o }) => {
|
|
|
30
30
|
style: {
|
|
31
31
|
height: a
|
|
32
32
|
},
|
|
33
|
-
children: /* @__PURE__ */ t("div", { className: "pt-2 pb-4", children:
|
|
33
|
+
children: /* @__PURE__ */ t("div", { className: "pt-2 pb-4", children: n })
|
|
34
34
|
}
|
|
35
35
|
)
|
|
36
36
|
]
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
39
|
};
|
|
40
|
+
b.propsToEdit = x;
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
+
b as Collapse
|
|
42
43
|
};
|