md-components-mdigial-azamat 0.0.33 → 0.0.36
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/dist/AllComponents.js +29 -5
- package/dist/AnimatedSwiper/Slide/Slide.js +2 -2
- package/dist/AnimatedSwiper/index.js +5 -3
- package/dist/Banner/Banner.js +152 -8
- package/dist/Banner/index.js +2 -2
- package/dist/BannerAndText/index.js +56 -23
- package/dist/CardIconList/CardIconList.js +81 -22
- package/dist/CardIconList/index.js +2 -2
- package/dist/CardImageList/CardImageList.js +75 -8
- package/dist/CardImageList/index.js +1 -1
- package/dist/CardImageSecondary/CardImageSecondary.js +57 -23
- package/dist/CardImageSecondary/index.js +1 -1
- package/dist/CardImageSecondaryList/CardImageSecondaryList.js +27 -4
- package/dist/CardImageSecondaryList/index.js +1 -1
- package/dist/CardInfoTable/index.js +187 -22
- package/dist/Cards/CardImage/CardImage.js +2 -2
- package/dist/Cards/ColoredCard/index.js +2 -2
- package/dist/Cards/ContentCard/ContentCard.js +38 -5
- package/dist/Cards/ContentCard/index.js +2 -2
- package/dist/Cards/FeaturesCard/index.js +3 -3
- package/dist/Cards/WarningCard/WarningCard.js +58 -6
- package/dist/Cards/WarningCard/index.js +1 -1
- package/dist/Cards/WarningCard/model.js +39 -7
- package/dist/ComponentContainer-cdb2528c.js +16 -0
- package/dist/ContentCardList/ContentCardList.js +34 -21
- package/dist/ContentCardList/index.js +2 -2
- package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +41 -5
- package/dist/DownloadFile/components/DownloadFileBanner/index.js +2 -2
- package/dist/DownloadFile/components/DownloadFileBright/index.js +74 -7
- package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +49 -6
- package/dist/DownloadFile/components/DownloadFileFull/index.js +1 -1
- package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +46 -5
- package/dist/DownloadFile/components/DownloadFileHalf/index.js +2 -2
- package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +56 -7
- package/dist/DownloadFile/components/DownloadFileMini/index.js +2 -2
- package/dist/Faq/Faq.js +44 -20
- package/dist/Faq/components/Collapse/Collapse.js +37 -19
- package/dist/Faq/components/FeedbackForm/FeedbackForm.js +1061 -4
- package/dist/Faq/components/FeedbackForm/index.js +2 -2
- package/dist/Faq/components/PlusMinusIcon/PlusMinusIcon.js +1 -1
- package/dist/Faq/index.js +2 -2
- package/dist/Footer/Footer.js +452 -0
- package/dist/Footer/components/ContactOfFooter/ContactOfFooter.js +34 -0
- package/dist/Footer/components/LinkToApp/LinkToApp.js +45 -0
- package/dist/Footer/components/LinkToAppMobile/LinkToAppMobile.js +28 -0
- package/dist/Footer/components/ListNavigation/ListNavigation.js +221 -0
- package/dist/Footer/components/NavigationFooter/NavigationFooter.js +31 -0
- package/dist/Footer/components/SocialButtonsList/SocialButtonsList.js +37 -0
- package/dist/Footer/types.js +1 -0
- package/dist/GooglePlayButton-35331c37.js +100 -0
- package/dist/Header/Header.js +8 -0
- package/dist/Header/components/HeaderCard/HeaderCard.js +37 -0
- package/dist/Header/components/HeaderCard/index.js +4 -0
- package/dist/Header/components/HeaderMainMobile/HeaderMainMobile.js +208 -0
- package/dist/Header/components/HeaderMenu/HeaderMenu.js +41 -0
- package/dist/Header/components/HeaderMenu/index.js +1 -0
- package/dist/Header/components/HeaderMenuMobile/HeaderMenuMobile.js +47 -0
- package/dist/Header/components/HeaderMobile/HeaderMobile.js +11 -0
- package/dist/Header/components/HeaderMobile/index.js +4 -0
- package/dist/Header/components/HeaderResults/HeaderResults.js +46 -0
- package/dist/Header/components/HeaderResults/index.js +4 -0
- package/dist/Header/components/HeaderSearch/HeaderSearch.js +13 -0
- package/dist/Header/components/HeaderSearch/index.js +4 -0
- package/dist/Header/components/HeaderSearchMobile/HeaderSearchMobile.js +78 -0
- package/dist/Header/components/HeaderTab/HeaderTab.js +34 -0
- package/dist/Header/components/HeaderTab/index.js +4 -0
- package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +55 -0
- package/dist/Header/components/HeaderWeb/HeaderWeb.js +149 -0
- package/dist/Header/components/HeaderWeb/index.js +4 -0
- package/dist/Header/components/SelectLanguage/SelectLanguage.js +79 -0
- package/dist/Header/components/SelectLanguage/index.js +4 -0
- package/dist/Header/components/TabsOutlined/TabsOutlined.js +50 -0
- package/dist/Header/components/TabsOutlined/index.js +4 -0
- package/dist/Header/const.js +4 -0
- package/dist/Header/index.js +4 -0
- package/dist/Header/types.js +5 -0
- package/dist/HeroPossibilityBanner/index.js +1 -1
- package/dist/HtmlContent/HtmlContent.js +1 -1
- package/dist/Icon-70ea6cb8.js +187 -0
- package/dist/InfoBanner/index.js +89 -8
- package/dist/InfoBannerList/InfoBannerList.js +5 -4
- package/dist/InfoBannerList/index.js +2 -2
- package/dist/InstructionList/InstructionList.js +6 -4
- package/dist/InstructionList/components/InstructionCard/InstructionCard.js +31 -7
- package/dist/InstructionList/components/InstructionCard/index.js +2 -2
- package/dist/InstructionList/components/InstructionModal/InstructionModal.js +2 -2
- package/dist/InstructionList/index.js +1 -1
- package/dist/IntroBanner/IntroBanner.js +68 -6
- package/dist/IntroBanner/index.js +1 -1
- package/dist/MainBanner/MainBanner.js +84 -6
- package/dist/MainBanner/index.js +2 -2
- package/dist/MultiCards/index.js +88 -5
- package/dist/PageViewer/PageViewer.js +22 -4
- package/dist/PageViewer/renderComponents.js +1 -1
- package/dist/Partners/Partners.js +2 -2
- package/dist/PartnersColors/PartnersColors.js +1 -1
- package/dist/PartnersColors/components/PartnerCard/PartnerCard.js +1 -1
- package/dist/PartnersColors/components/PartnerTab/PartnerTab.js +2 -2
- package/dist/PreviewList/PreviewList.js +4 -2
- package/dist/PreviewList/components/PreviewCard/PreviewCard.js +32 -8
- package/dist/PreviewList/components/PreviewCard/index.js +2 -2
- package/dist/PreviewList/index.js +1 -1
- package/dist/PromoPoster/PromoPoster.js +4 -4
- package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
- package/dist/RenderAllComponents/const.js +11 -11
- package/dist/Segments/Segments.js +10 -10
- package/dist/StandartTable/components/CardMarkedRow/index.js +33 -9
- package/dist/StandartTable/components/CardWarning/index.js +87 -6
- package/dist/StandartTable/index.js +5 -4
- package/dist/Stepper/Stepper.js +50 -6
- package/dist/Stepper/index.js +1 -1
- package/dist/SwiperList/SwiperList.js +5 -4
- package/dist/SwiperList/components/Bullet/Bullet.js +1 -1
- package/dist/SwiperList/index.js +1 -1
- package/dist/TasksBanner/TasksBanner.js +5 -5
- package/dist/TasksBanner/index.js +2 -2
- package/dist/TasksBannerList/TasksBannerList.js +2 -2
- package/dist/TasksBannerList/index.js +1 -1
- package/dist/Video/VideoFull/VideoFull.js +1 -1
- package/dist/Video/VideoList/VideoList.js +15 -15
- package/dist/Video/VideoListMini/VideoListMini.js +14 -14
- package/dist/Video/components/VideoPlayer/VideoPlayer.js +1 -1
- package/dist/VideoMainBanner/VideoMainBanner.js +168 -7
- package/dist/VideoMainBanner/index.js +2 -2
- package/dist/assets/index.css +1 -1
- package/dist/{cn-d8c04b28.js → cn-6a4bf187.js} +521 -488
- package/dist/componentsMap-d8bad886.js +68 -0
- package/dist/const-637b0dca.js +27 -0
- package/dist/data.mock-483400cb.js +1713 -0
- package/dist/header-97863d08.js +22 -0
- package/dist/{index-60dfa873.js → index-2265d593.js} +1 -1
- package/dist/index-3a534581.js +261 -0
- package/dist/index-4f8399c3.js +925 -0
- package/dist/index-66837af1.js +313 -0
- package/dist/index-6af94f99.js +53 -0
- package/dist/{index-a379154f.js → index-815f0132.js} +2 -2
- package/dist/languages-list-8419e560.js +22 -0
- package/dist/logo-99aa20bd.js +27 -0
- package/dist/main.js +87 -67
- package/dist/mousewheel-865ae601.js +153 -0
- package/dist/palette-b47a76c9.js +46 -0
- package/dist/routes-382632ac.js +7 -0
- package/dist/search-dd4eb6f8.js +5 -0
- package/dist/{index-b093f70c.js → swiper-react-90953710.js} +780 -1098
- package/dist/trash/HeroLargeCards/index.js +1 -1
- package/dist/useClickOutside-197b0df2.js +12 -0
- package/dist/useScreenSize-c1b64c02.js +19 -0
- package/package.json +4 -2
- package/dist/ComponentContainer-0fcc2695.js +0 -16
- package/dist/componentsMap-6d7d63d5.js +0 -47
- package/dist/index-b999483f.js +0 -5314
- package/dist/model-9e50e351.js +0 -69
|
@@ -1,9 +1,52 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "../../../Types/FiledTypes.js";
|
|
3
|
-
import {
|
|
4
|
-
import "../../../
|
|
5
|
-
import "../../../
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { DataTypesEnum as s, FieldTypes as o } from "../../../Types/FiledTypes.js";
|
|
3
|
+
import { I as r } from "../../../Icon-70ea6cb8.js";
|
|
4
|
+
import { p as n } from "../../../palette-b47a76c9.js";
|
|
5
|
+
import { B as i } from "../../../index-6af94f99.js";
|
|
6
|
+
import { a as p } from "../../../const-637b0dca.js";
|
|
7
|
+
import { C as c } from "../../../ComponentContainer-cdb2528c.js";
|
|
8
|
+
const d = {
|
|
9
|
+
dataType: s.array,
|
|
10
|
+
type: "data",
|
|
11
|
+
label: "Файлы для скачивания",
|
|
12
|
+
data: {
|
|
13
|
+
title: o.STRING,
|
|
14
|
+
text: o.STRING,
|
|
15
|
+
file: o.FILE
|
|
16
|
+
}
|
|
17
|
+
}, x = [d], m = ({ data: a }) => /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: a == null ? void 0 : a.map((l) => /* @__PURE__ */ t("div", { className: "px-[48px] py-8 bg-white rounded-[20px] flex justify-between items-center gap-[64px]", children: [
|
|
18
|
+
/* @__PURE__ */ t("div", { className: "flex items-center gap-4 max-tablet:flex-col max-tablet:items-start", children: [
|
|
19
|
+
/* @__PURE__ */ e(
|
|
20
|
+
r,
|
|
21
|
+
{
|
|
22
|
+
className: "flex-shrink-0",
|
|
23
|
+
name: "file",
|
|
24
|
+
color: n.greenLight,
|
|
25
|
+
size: 44
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ t("div", { className: "flex flex-col max-tablet:gap-2 ", children: [
|
|
29
|
+
/* @__PURE__ */ e("p", { className: "text-[20px] leading-7 font-bold", children: l == null ? void 0 : l.title }),
|
|
30
|
+
/* @__PURE__ */ e("p", { className: "text-[16px] leading-6", children: l == null ? void 0 : l.text })
|
|
31
|
+
] })
|
|
32
|
+
] }),
|
|
33
|
+
/* @__PURE__ */ e(
|
|
34
|
+
i,
|
|
35
|
+
{
|
|
36
|
+
variant: p.Secondary,
|
|
37
|
+
iconRight: /* @__PURE__ */ e(
|
|
38
|
+
r,
|
|
39
|
+
{
|
|
40
|
+
name: "download",
|
|
41
|
+
size: 20,
|
|
42
|
+
color: n.blackBG
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
] })) }) });
|
|
48
|
+
m.propsToEdit = x;
|
|
6
49
|
export {
|
|
7
50
|
m as DownloadFileFull,
|
|
8
|
-
|
|
51
|
+
d as downloadFileFullProps
|
|
9
52
|
};
|
|
@@ -1,7 +1,48 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import "../../../
|
|
4
|
-
import "../../../
|
|
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-b47a76c9.js";
|
|
4
|
+
import { B as s } from "../../../index-6af94f99.js";
|
|
5
|
+
import { a as c } from "../../../const-637b0dca.js";
|
|
6
|
+
import { C as i } from "../../../ComponentContainer-cdb2528c.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(
|
|
8
|
+
"div",
|
|
9
|
+
{
|
|
10
|
+
className: "p-[32px] bg-white rounded-[20px] flex justify-between gap-[40px]",
|
|
11
|
+
children: [
|
|
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(
|
|
16
|
+
s,
|
|
17
|
+
{
|
|
18
|
+
iconRight: /* @__PURE__ */ r(
|
|
19
|
+
n,
|
|
20
|
+
{
|
|
21
|
+
name: "download",
|
|
22
|
+
size: 20,
|
|
23
|
+
color: e.blackBG
|
|
24
|
+
}
|
|
25
|
+
),
|
|
26
|
+
className: "mt-8",
|
|
27
|
+
variant: c.Secondary,
|
|
28
|
+
children: "Скачать"
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
] }) }),
|
|
32
|
+
/* @__PURE__ */ r(
|
|
33
|
+
n,
|
|
34
|
+
{
|
|
35
|
+
className: "flex-shrink-0",
|
|
36
|
+
name: "file",
|
|
37
|
+
color: e.greenLight,
|
|
38
|
+
size: 48
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
o == null ? void 0 : o.id
|
|
44
|
+
)) }) });
|
|
45
|
+
d.propsToEdit = p;
|
|
5
46
|
export {
|
|
6
|
-
|
|
47
|
+
d as DownloadFileHalf
|
|
7
48
|
};
|
|
@@ -1,9 +1,58 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "../../../Types/FiledTypes.js";
|
|
3
|
-
import {
|
|
4
|
-
import "../../../
|
|
5
|
-
import "../../../
|
|
1
|
+
import { jsx as a, jsxs as e } from "react/jsx-runtime";
|
|
2
|
+
import { DataTypesEnum as s, FieldTypes as r } from "../../../Types/FiledTypes.js";
|
|
3
|
+
import { I as n } from "../../../Icon-70ea6cb8.js";
|
|
4
|
+
import { p } from "../../../palette-b47a76c9.js";
|
|
5
|
+
import { B as i } from "../../../index-6af94f99.js";
|
|
6
|
+
import { a as t } from "../../../const-637b0dca.js";
|
|
7
|
+
import { C as d } from "../../../ComponentContainer-cdb2528c.js";
|
|
8
|
+
const y = {
|
|
9
|
+
dataType: s.array,
|
|
10
|
+
type: "data",
|
|
11
|
+
label: "Файлы для скачивания",
|
|
12
|
+
data: {
|
|
13
|
+
title: r.STRING,
|
|
14
|
+
text: r.STRING,
|
|
15
|
+
file: r.FILE
|
|
16
|
+
}
|
|
17
|
+
}, c = ["data"], x = ({ data: l }) => /* @__PURE__ */ a(d, { children: /* @__PURE__ */ a("div", { className: "grid grid-cols-4 gap-6 max-tablet:grid-cols-1", children: l == null ? void 0 : l.map((o) => /* @__PURE__ */ e(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
className: "p-[24px] bg-white rounded-[20px] flex flex-col gap-8",
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ a(
|
|
23
|
+
n,
|
|
24
|
+
{
|
|
25
|
+
name: "file",
|
|
26
|
+
color: p.greenLight,
|
|
27
|
+
size: 44
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
/* @__PURE__ */ e("div", { className: "flex flex-col gap-4", children: [
|
|
31
|
+
/* @__PURE__ */ a("p", { className: "text-[20px] leading-[28px] font-bold", children: o == null ? void 0 : o.title }),
|
|
32
|
+
/* @__PURE__ */ a("p", { className: "text-[16px] leading-6", children: o == null ? void 0 : o.text })
|
|
33
|
+
] }),
|
|
34
|
+
/* @__PURE__ */ a(
|
|
35
|
+
i,
|
|
36
|
+
{
|
|
37
|
+
iconRight: /* @__PURE__ */ a(
|
|
38
|
+
n,
|
|
39
|
+
{
|
|
40
|
+
name: "download",
|
|
41
|
+
size: 20,
|
|
42
|
+
color: p.blackBG
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
className: "w-full",
|
|
46
|
+
variant: t.Secondary,
|
|
47
|
+
children: "Скачать"
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
o == null ? void 0 : o.id
|
|
53
|
+
)) }) });
|
|
54
|
+
x.propsToEdit = c;
|
|
6
55
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
56
|
+
x as DownloadFileMini,
|
|
57
|
+
y as downloadFileMiniProps
|
|
9
58
|
};
|
package/dist/Faq/Faq.js
CHANGED
|
@@ -1,22 +1,46 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "./components/Collapse/Collapse.js";
|
|
3
|
-
import {
|
|
4
|
-
import "../HtmlContent/HtmlContent.js";
|
|
5
|
-
import "../
|
|
6
|
-
import "../
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { jsx as o, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { Collapse as e } from "./components/Collapse/Collapse.js";
|
|
3
|
+
import { FeedbackForm as t } from "./components/FeedbackForm/FeedbackForm.js";
|
|
4
|
+
import { HtmlContent as x } from "../HtmlContent/HtmlContent.js";
|
|
5
|
+
import { FieldTypes as p } from "../Types/FiledTypes.js";
|
|
6
|
+
import { C as c } from "../ComponentContainer-cdb2528c.js";
|
|
7
|
+
const d = {
|
|
8
|
+
type: "data",
|
|
9
|
+
label: "Вопрос",
|
|
10
|
+
dataType: "array",
|
|
11
|
+
data: {
|
|
12
|
+
title: p.TITLE,
|
|
13
|
+
description: p.HTML_CONTENT,
|
|
14
|
+
percentage: p.NUMBER
|
|
15
|
+
}
|
|
16
|
+
}, s = [d, "title"], f = ({ data: r, title: a }) => r != null && r.length ? /* @__PURE__ */ o(c, { children: /* @__PURE__ */ n("div", { className: "w-full mx-auto flex flex-col gap-[48px] transition-all duration-1000 max-tablet:gap-[30px]", children: [
|
|
17
|
+
a && /* @__PURE__ */ o("p", { className: "text-[44px] leading-[55px] font-bold text-center text-black2 max-tablet:text-[24px] max-tablet:leading-[30px] m-0", children: a }),
|
|
18
|
+
/* @__PURE__ */ o("div", { className: "flex flex-col bg-white p-12 rounded-[20px] max-tablet:p-6", children: r == null ? void 0 : r.map((l) => /* @__PURE__ */ o(
|
|
19
|
+
e,
|
|
20
|
+
{
|
|
21
|
+
title: l == null ? void 0 : l.title,
|
|
22
|
+
children: /* @__PURE__ */ n("div", { children: [
|
|
23
|
+
/* @__PURE__ */ o(
|
|
24
|
+
x,
|
|
25
|
+
{
|
|
26
|
+
data: l == null ? void 0 : l.description,
|
|
27
|
+
className: "text-[18px] leading-[26px] text-blackBG "
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
/* @__PURE__ */ o(
|
|
31
|
+
t,
|
|
32
|
+
{
|
|
33
|
+
faqId: l == null ? void 0 : l.id,
|
|
34
|
+
percent: l == null ? void 0 : l.percentage
|
|
35
|
+
},
|
|
36
|
+
l == null ? void 0 : l.id
|
|
37
|
+
)
|
|
38
|
+
] })
|
|
39
|
+
},
|
|
40
|
+
l == null ? void 0 : l.id
|
|
41
|
+
)) })
|
|
42
|
+
] }) }) : null;
|
|
43
|
+
f.propsToEdit = s;
|
|
20
44
|
export {
|
|
21
|
-
|
|
45
|
+
f as Faq
|
|
22
46
|
};
|
|
@@ -1,43 +1,61 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { PlusMinusIcon as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
e.
|
|
9
|
-
}
|
|
1
|
+
import { jsxs as r, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as u, useState as c, useEffect as x } from "react";
|
|
3
|
+
import { PlusMinusIcon as b } from "../PlusMinusIcon/PlusMinusIcon.js";
|
|
4
|
+
import { I as g } from "../../../index-2265d593.js";
|
|
5
|
+
const y = ["title", "children", "icon"], v = ({ title: n, children: p, icon: i }) => {
|
|
6
|
+
var a;
|
|
7
|
+
const t = u(null), [o, d] = c(!1), [m, f] = c("0px"), l = () => d((e) => !e), h = (e) => {
|
|
8
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), l());
|
|
9
|
+
};
|
|
10
|
+
return x(() => {
|
|
11
|
+
t.current && f(o ? `${t.current.scrollHeight + 16}px` : "0px");
|
|
12
|
+
}, [o, (a = t.current) == null ? void 0 : a.scrollHeight]), /* @__PURE__ */ r(
|
|
10
13
|
"div",
|
|
11
14
|
{
|
|
12
15
|
className: "border-b border-[#44537140] transition-all last:border-b-0",
|
|
13
16
|
children: [
|
|
14
|
-
/* @__PURE__ */
|
|
17
|
+
/* @__PURE__ */ r(
|
|
15
18
|
"div",
|
|
16
19
|
{
|
|
17
|
-
|
|
20
|
+
role: "button",
|
|
21
|
+
tabIndex: 0,
|
|
22
|
+
onClick: l,
|
|
23
|
+
onKeyDown: h,
|
|
18
24
|
className: "cursor-pointer flex justify-between items-center font-semibold leading-[26px] text-[18px] text-blackBG py-8 max-tablet:py-6",
|
|
19
25
|
children: [
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
|
|
26
|
+
/* @__PURE__ */ r("p", { className: "flex items-center gap-3", children: [
|
|
27
|
+
i && /* @__PURE__ */ s(
|
|
28
|
+
g,
|
|
29
|
+
{
|
|
30
|
+
src: i,
|
|
31
|
+
alt: n,
|
|
32
|
+
width: 20,
|
|
33
|
+
height: 20,
|
|
34
|
+
className: "opacity-60"
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
n
|
|
38
|
+
] }),
|
|
39
|
+
/* @__PURE__ */ s(b, { isActive: o })
|
|
22
40
|
]
|
|
23
41
|
}
|
|
24
42
|
),
|
|
25
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ s(
|
|
26
44
|
"div",
|
|
27
45
|
{
|
|
28
|
-
ref:
|
|
46
|
+
ref: t,
|
|
29
47
|
className: "overflow-hidden transition-[height] duration-300 ease-in-out",
|
|
30
48
|
style: {
|
|
31
|
-
height:
|
|
49
|
+
height: m
|
|
32
50
|
},
|
|
33
|
-
children: /* @__PURE__ */
|
|
51
|
+
children: /* @__PURE__ */ s("div", { className: "pt-2 pb-4", children: p })
|
|
34
52
|
}
|
|
35
53
|
)
|
|
36
54
|
]
|
|
37
55
|
}
|
|
38
56
|
);
|
|
39
57
|
};
|
|
40
|
-
|
|
58
|
+
v.propsToEdit = y;
|
|
41
59
|
export {
|
|
42
|
-
|
|
60
|
+
v as Collapse
|
|
43
61
|
};
|