md-components-mdigial-azamat 0.0.112 → 0.0.114
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/ActionCardList/ActionCardList.js +28 -5
- package/dist/ActionCardList/index.js +1 -1
- package/dist/ActionCardList/info.js +1 -1
- package/dist/ActionCardSecondaryList/ActionCardSecondaryList.js +32 -0
- package/dist/ActionCardSecondaryList/index.js +6 -0
- package/dist/ActionCardSecondaryList/info.js +11 -0
- package/dist/ActionCardSecondaryList/schema.js +51 -0
- package/dist/ActionCardSecondaryList/types.js +4 -0
- package/dist/ActionIconList/ActionIconList.js +25 -2
- package/dist/AllComponents.js +28 -5
- package/dist/AllComponentsInfo.js +111 -95
- package/dist/AnimatedSwiper/index.js +40 -38
- package/dist/CardImageList/CardImageList.js +122 -81
- package/dist/CardImageList/schema.js +17 -12
- package/dist/Cards/ActionSecondaryCard/ActionSecondaryCard.js +77 -0
- package/dist/Cards/ActionSecondaryCard/index.js +6 -0
- package/dist/Cards/ActionSecondaryCard/info.js +11 -0
- package/dist/Cards/ActionSecondaryCard/types.js +4 -0
- package/dist/Cards/CardImage/CardImage.js +48 -50
- package/dist/Cards/InfoCard/InfoCard.js +114 -0
- package/dist/Cards/InfoCard/index.js +9 -0
- package/dist/Cards/InfoCard/info.js +11 -0
- package/dist/Cards/InfoCard/schema.js +60 -0
- package/dist/Cards/InfoCard/types.js +4 -0
- package/dist/Cards/PostCard/PostCard.js +60 -0
- package/dist/Cards/PostCard/index.js +6 -0
- package/dist/Cards/PostCard/info.js +11 -0
- package/dist/Cards/PostCard/types.js +4 -0
- package/dist/Cards/WarningCard/WarningCard.js +27 -4
- package/dist/Cards/WarningCard/index.js +1 -1
- package/dist/Cards/WarningCard/info.js +1 -1
- package/dist/Cards/WarningCard/model.js +1 -1
- package/dist/CurrencyRates/CurrencyRates.js +78 -0
- package/dist/CurrencyRates/components/Calculator.js +101 -0
- package/dist/CurrencyRates/components/RateCell.js +15 -0
- package/dist/CurrencyRates/components/RatesTable.js +134 -0
- package/dist/CurrencyRates/components/index.js +6 -0
- package/dist/CurrencyRates/index.js +8 -0
- package/dist/CurrencyRates/info.js +11 -0
- package/dist/CurrencyRates/schema.js +63 -0
- package/dist/CurrencyRates/types.js +4 -0
- package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +1 -1
- package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +1 -1
- package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +1 -1
- package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +1 -1
- package/dist/DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js +1 -1
- package/dist/Faq/Faq.js +1 -1
- package/dist/Faq/components/FeedbackForm/FeedbackForm.js +55 -6
- package/dist/Faq/components/FeedbackForm/index.js +1 -1
- package/dist/FieldInput-ef2a18d4.js +2743 -0
- package/dist/Forms/FormDefault/FormDefault.js +12 -0
- package/dist/Forms/FormDefault/components/FieldCustom.js +11 -0
- package/dist/Forms/FormDefault/components/FieldInput.js +11 -0
- package/dist/Forms/FormDefault/components/FieldSection.js +10 -0
- package/dist/Forms/FormDefault/components/FormContent.js +10 -0
- package/dist/Forms/FormDefault/components/FormFields.js +7 -0
- package/dist/Forms/FormDefault/components/FormSuccessMessage.js +49 -0
- package/dist/Forms/FormDefault/components/index.js +6 -0
- package/dist/Forms/FormDefault/hooks/index.js +10 -0
- package/dist/Forms/FormDefault/hooks/useFieldOptions.js +32 -0
- package/dist/Forms/FormDefault/hooks/useFieldValidation.js +33 -0
- package/dist/Forms/FormDefault/hooks/useFieldVisibility.js +24 -0
- package/dist/Forms/FormDefault/hooks/useFormSubmission.js +64 -0
- package/dist/Forms/FormDefault/index.js +6 -12
- package/dist/Forms/FormDefault/info.js +3 -115
- package/dist/Forms/FormDefault/model/componentRegistry.js +134 -0
- package/dist/Forms/FormDefault/model/fieldTypes.js +18 -0
- package/dist/Forms/FormDefault/model/formElementTypes.js +18 -0
- package/dist/Forms/FormDefault/model/index.js +13 -0
- package/dist/Forms/FormDefault/model/requestForm.js +4 -0
- package/dist/Forms/{model/components.js → FormDefault/schema.js} +32 -5
- package/dist/Forms/FormDefault/utils.js +20 -0
- package/dist/Grid-331af266.js +80 -0
- package/dist/Header/Header.js +54 -42
- package/dist/Header/components/HeaderMainMobile/HeaderMainMobile.js +21 -19
- package/dist/Header/components/HeaderMobile/HeaderMobile.js +67 -52
- package/dist/Header/components/HeaderTab/HeaderTab.js +17 -15
- package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +8 -7
- package/dist/Header/components/HeaderWeb/HeaderWeb.js +134 -114
- package/dist/Header/components/TabsOutlined/TabsOutlined.js +8 -7
- package/dist/HeroIconsBanner/HeroIconsBanner.js +25 -25
- package/dist/IconList/IconList.js +60 -54
- package/dist/InfoCardList/InfoCardList.js +100 -0
- package/dist/InfoCardList/index.js +6 -0
- package/dist/InfoCardList/info.js +11 -0
- package/dist/InfoCardList/schema.js +39 -0
- package/dist/InfoCardList/types.js +1 -0
- package/dist/PageViewer/renderComponents.js +1 -1
- package/dist/PostsList/PostsList.js +78 -0
- package/dist/PostsList/index.js +4 -0
- package/dist/PostsList/info.js +11 -0
- package/dist/PostsList/schema.js +49 -0
- package/dist/PostsList/types.js +1 -0
- package/dist/PostsSlider/PostsSlider.js +78 -0
- package/dist/PostsSlider/index.js +4 -0
- package/dist/PostsSlider/info.js +11 -0
- package/dist/PostsSlider/schema.js +49 -0
- package/dist/PostsSlider/types.js +1 -0
- package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
- package/dist/RenderAllComponents/const.js +1 -1
- package/dist/SearchBlock/SearchBlock.js +36 -37
- package/dist/SegmentedContent/SegmentedContent.js +160 -0
- package/dist/SegmentedContent/components/ContentCard.js +50 -0
- package/dist/SegmentedContent/components/index.js +4 -0
- package/dist/SegmentedContent/index.js +8 -0
- package/dist/SegmentedContent/info.js +12 -0
- package/dist/SegmentedContent/schema.js +108 -0
- package/dist/SegmentedContent/types.js +1 -0
- package/dist/Segments/Segments.js +36 -28
- package/dist/Segments/index.js +8 -2
- package/dist/Segments/info.js +1 -1
- package/dist/Segments/schema.js +21 -0
- package/dist/Segments/types.js +4 -1
- package/dist/SegmentsIcons/SegmentsIcons.js +92 -0
- package/dist/SegmentsIcons/index.js +8 -0
- package/dist/SegmentsIcons/info.js +11 -0
- package/dist/SegmentsIcons/schema.js +14 -0
- package/dist/SegmentsIcons/types.js +1 -0
- package/dist/SwiperList/SwiperList.js +13 -11
- package/dist/assets/index.css +1 -1
- package/dist/{componentsMap-cac6c316.js → componentsMap-6fc8d724.js} +5 -3
- package/dist/{data.mock-ebc679ec.js → data.mock-a00d8eec.js} +546 -148
- package/dist/index-0791c17f.js +56 -0
- package/dist/index-2ec92a04.js +32 -0
- package/dist/index.esm-0558519f.js +1171 -0
- package/dist/info-ce6598a7.js +794 -0
- package/dist/main.js +151 -119
- package/dist/{mousewheel-865ae601.js → mousewheel-afbc6d42.js} +1 -1
- package/dist/navigation-266856e7.js +136 -0
- package/dist/navigation-cd786a0d.js +133 -0
- package/dist/{palette-c2fe86ec.js → palette-256cf77a.js} +3 -1
- package/dist/{swiper-react-90953710.js → swiper-react-3c2710e8.js} +695 -825
- package/dist/types-c3843cc0.js +4 -0
- package/dist/useDraggableScroll-440da9b7.js +29 -0
- package/dist/useTranslation-d7a3ca6f.js +298 -0
- package/package.json +1 -1
- package/dist/FileLoader/fileLoader.js +0 -22
- package/dist/FileLoader/index.js +0 -8
- package/dist/Forms/FormDefault/componentTypes.js +0 -31
- package/dist/Forms/FormDefault/fieldTypesList.js +0 -45
- package/dist/Forms/helpers/renderFormFields.js +0 -7
- package/dist/Forms/model/requestForm.js +0 -4
- package/dist/index-6686852d.js +0 -1794
- package/dist/index-a0ed2e4a.js +0 -1221
- package/dist/info-d05a1f02.js +0 -1547
- package/dist/navigation-b894d0cd.js +0 -183
- /package/dist/Forms/{types/formItems.js → FormDefault/model/types.js} +0 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { jsx as t, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { useState as b } from "react";
|
|
3
|
+
import { InfoCard as n } from "../Cards/InfoCard/InfoCard.js";
|
|
4
|
+
import { InfoCardVariant as l } from "../Cards/InfoCard/types.js";
|
|
5
|
+
import "../Cards/InfoCard/schema.js";
|
|
6
|
+
import { Bullet as c } from "../SwiperList/components/Bullet/Bullet.js";
|
|
7
|
+
import { a as d, b as h } from "../swiper-react-3c2710e8.js";
|
|
8
|
+
import { C as w } from "../ComponentContainer-dca711c6.js";
|
|
9
|
+
import { F as C } from "../Flex-86aee720.js";
|
|
10
|
+
import { G as R } from "../Grid-331af266.js";
|
|
11
|
+
import { c as g } from "../cn-6a4bf187.js";
|
|
12
|
+
import { propsToEdit as I } from "./schema.js";
|
|
13
|
+
import '../assets/swiper.css';/* empty css */const N = {
|
|
14
|
+
[l.PRIMARY]: {
|
|
15
|
+
title: "text-blackBG"
|
|
16
|
+
},
|
|
17
|
+
[l.SECONDARY]: {
|
|
18
|
+
title: "text-white"
|
|
19
|
+
}
|
|
20
|
+
}, S = ({
|
|
21
|
+
title: r,
|
|
22
|
+
variant: o = l.PRIMARY,
|
|
23
|
+
grid: p = "3",
|
|
24
|
+
cards: e
|
|
25
|
+
}) => {
|
|
26
|
+
const [s, x] = b(0), f = N[o];
|
|
27
|
+
return /* @__PURE__ */ t(w, { children: /* @__PURE__ */ m(
|
|
28
|
+
C,
|
|
29
|
+
{
|
|
30
|
+
vertical: !0,
|
|
31
|
+
align: "center",
|
|
32
|
+
className: "gap-12 max-tablet:gap-6",
|
|
33
|
+
children: [
|
|
34
|
+
r && /* @__PURE__ */ t(
|
|
35
|
+
"h2",
|
|
36
|
+
{
|
|
37
|
+
className: g(
|
|
38
|
+
"text-center max-tablet:text-[32px] max-tablet:leading-10 max-tablet:font-bold text-[56px] leading-[52px] font-extrabold",
|
|
39
|
+
f.title
|
|
40
|
+
),
|
|
41
|
+
children: r
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
/* @__PURE__ */ t(
|
|
45
|
+
R,
|
|
46
|
+
{
|
|
47
|
+
cols: Number(p),
|
|
48
|
+
gap: 24,
|
|
49
|
+
className: "w-full max-tablet:hidden",
|
|
50
|
+
children: e == null ? void 0 : e.map((i, a) => /* @__PURE__ */ t(
|
|
51
|
+
n,
|
|
52
|
+
{
|
|
53
|
+
...i,
|
|
54
|
+
variant: o || l.PRIMARY
|
|
55
|
+
},
|
|
56
|
+
a
|
|
57
|
+
))
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ m("div", { className: "w-full hidden max-tablet:block", children: [
|
|
61
|
+
/* @__PURE__ */ t(
|
|
62
|
+
d,
|
|
63
|
+
{
|
|
64
|
+
spaceBetween: 12,
|
|
65
|
+
slidesPerView: 1,
|
|
66
|
+
breakpoints: {
|
|
67
|
+
640: {
|
|
68
|
+
slidesPerView: 1.5
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
onSlideChange: (i) => x(i.realIndex),
|
|
72
|
+
className: "w-full",
|
|
73
|
+
children: e == null ? void 0 : e.map((i, a) => /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t(
|
|
74
|
+
n,
|
|
75
|
+
{
|
|
76
|
+
...i,
|
|
77
|
+
variant: o || l.PRIMARY
|
|
78
|
+
}
|
|
79
|
+
) }, a))
|
|
80
|
+
}
|
|
81
|
+
),
|
|
82
|
+
/* @__PURE__ */ t(
|
|
83
|
+
c,
|
|
84
|
+
{
|
|
85
|
+
count: (e == null ? void 0 : e.length) || 0,
|
|
86
|
+
active: s,
|
|
87
|
+
activeColor: o === l.SECONDARY ? "white" : "black",
|
|
88
|
+
anActiveColor: o === l.SECONDARY ? "rgba(255, 255, 255, 0.4)" : "rgba(0, 0, 0, 0.2)",
|
|
89
|
+
className: "mt-6 hidden max-tablet:flex"
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
] })
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
) });
|
|
96
|
+
};
|
|
97
|
+
S.propsToEdit = I;
|
|
98
|
+
export {
|
|
99
|
+
S as InfoCardList
|
|
100
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { C as o } from "../index-0a5f313c.js";
|
|
2
|
+
import { propsToEdit as t } from "./schema.js";
|
|
3
|
+
const p = {
|
|
4
|
+
title: "Список инфо карточек",
|
|
5
|
+
description: "Секция со списком инфо карточек, расположенных в сетке. Включает заголовок и описание секции.",
|
|
6
|
+
types: [o.cards],
|
|
7
|
+
propsToEdit: t
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
p as infoCardListInfo
|
|
11
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { InfoCardItemSchema as r } from "../Cards/InfoCard/schema.js";
|
|
2
|
+
import { InfoCardVariant as a } from "../Cards/InfoCard/types.js";
|
|
3
|
+
import { FieldTypes as e } from "../Types/FiledTypes.js";
|
|
4
|
+
const i = [
|
|
5
|
+
{
|
|
6
|
+
key: "title",
|
|
7
|
+
type: e.TITLE,
|
|
8
|
+
label: "Заголовок секции"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
key: "description",
|
|
12
|
+
type: e.DESCRIPTION,
|
|
13
|
+
label: "Описание секции"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
key: "variant",
|
|
17
|
+
type: e.VARIANT,
|
|
18
|
+
label: "Вариант карточек",
|
|
19
|
+
options: [
|
|
20
|
+
{ label: "Primary", value: a.PRIMARY },
|
|
21
|
+
{ label: "Secondary", value: a.SECONDARY }
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
key: "grid",
|
|
26
|
+
type: e.NUMBER,
|
|
27
|
+
label: "Колонок в сетке"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
key: "cards",
|
|
31
|
+
type: "array",
|
|
32
|
+
label: "Список карточек",
|
|
33
|
+
itemLabel: "Карточка",
|
|
34
|
+
data: r
|
|
35
|
+
}
|
|
36
|
+
];
|
|
37
|
+
export {
|
|
38
|
+
i as propsToEdit
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as f, useEffect as x } from "react";
|
|
3
|
+
import { PostCard as w } from "../Cards/PostCard/PostCard.js";
|
|
4
|
+
import { PostCardVariant as a } from "../Cards/PostCard/types.js";
|
|
5
|
+
import { a as h, b as u } from "../swiper-react-3c2710e8.js";
|
|
6
|
+
import { C as v } from "../ComponentContainer-dca711c6.js";
|
|
7
|
+
import { F as y } from "../Flex-86aee720.js";
|
|
8
|
+
import { c as b } from "../cn-6a4bf187.js";
|
|
9
|
+
import '../assets/swiper.css';/* empty css */const g = {
|
|
10
|
+
[a.PRIMARY]: {
|
|
11
|
+
title: "text-blackBG"
|
|
12
|
+
},
|
|
13
|
+
[a.SECONDARY]: {
|
|
14
|
+
title: "text-white"
|
|
15
|
+
}
|
|
16
|
+
}, O = ({
|
|
17
|
+
title: o,
|
|
18
|
+
cards: i,
|
|
19
|
+
variant: r = a.PRIMARY
|
|
20
|
+
}) => {
|
|
21
|
+
const [n, l] = f(0), p = g[r];
|
|
22
|
+
return x(() => {
|
|
23
|
+
const t = () => {
|
|
24
|
+
const s = window.innerWidth, m = Math.max((s - 1232) / 2, 16), c = Math.max(0, m - 16);
|
|
25
|
+
l(c);
|
|
26
|
+
};
|
|
27
|
+
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
28
|
+
}, []), /* @__PURE__ */ d(
|
|
29
|
+
y,
|
|
30
|
+
{
|
|
31
|
+
vertical: !0,
|
|
32
|
+
className: "w-full overflow-hidden gap-12 max-tablet:gap-6",
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ e(v, { children: o && /* @__PURE__ */ e(
|
|
35
|
+
"h2",
|
|
36
|
+
{
|
|
37
|
+
className: b(
|
|
38
|
+
"text-[56px] font-bold max-tablet:text-[32px] max-tablet:leading-[40px] max-tablet:text-center",
|
|
39
|
+
p.title
|
|
40
|
+
),
|
|
41
|
+
children: o
|
|
42
|
+
}
|
|
43
|
+
) }),
|
|
44
|
+
/* @__PURE__ */ e(
|
|
45
|
+
h,
|
|
46
|
+
{
|
|
47
|
+
slidesPerView: "auto",
|
|
48
|
+
spaceBetween: 24,
|
|
49
|
+
slidesOffsetAfter: n,
|
|
50
|
+
className: "w-full !overflow-visible",
|
|
51
|
+
style: {
|
|
52
|
+
paddingLeft: "max((100% - 1232px) / 2, 16px)",
|
|
53
|
+
paddingRight: "16px"
|
|
54
|
+
},
|
|
55
|
+
children: i == null ? void 0 : i.map((t, s) => /* @__PURE__ */ e(
|
|
56
|
+
u,
|
|
57
|
+
{
|
|
58
|
+
className: "opacity-50 transition-opacity duration-300 [&.swiper-slide-active]:opacity-100 [&.swiper-slide-active+*]:opacity-100 [&.swiper-slide-active+*+*]:opacity-100 [&.swiper-slide-active+*+*+*]:opacity-100",
|
|
59
|
+
style: { width: "290px", height: "auto" },
|
|
60
|
+
children: /* @__PURE__ */ e(
|
|
61
|
+
w,
|
|
62
|
+
{
|
|
63
|
+
item: t,
|
|
64
|
+
variant: r
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
},
|
|
68
|
+
t.id || s
|
|
69
|
+
))
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
O as PostsList
|
|
78
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { AllActionsObject as t } from "../Actions/types.js";
|
|
2
|
+
import { FieldTypes as e } from "../Types/FiledTypes.js";
|
|
3
|
+
const a = {
|
|
4
|
+
title: {
|
|
5
|
+
type: e.STRING,
|
|
6
|
+
label: "Заголовок",
|
|
7
|
+
key: "title"
|
|
8
|
+
},
|
|
9
|
+
description: {
|
|
10
|
+
type: e.STRING,
|
|
11
|
+
label: "Описание",
|
|
12
|
+
key: "description"
|
|
13
|
+
},
|
|
14
|
+
date: {
|
|
15
|
+
type: e.STRING,
|
|
16
|
+
label: "Дата",
|
|
17
|
+
key: "date"
|
|
18
|
+
},
|
|
19
|
+
image: {
|
|
20
|
+
type: e.FILE,
|
|
21
|
+
label: "Картинка",
|
|
22
|
+
key: "image"
|
|
23
|
+
},
|
|
24
|
+
action: {
|
|
25
|
+
...t,
|
|
26
|
+
label: "Действие"
|
|
27
|
+
}
|
|
28
|
+
}, l = {
|
|
29
|
+
type: "cards",
|
|
30
|
+
label: "Карточки постов",
|
|
31
|
+
dataType: "array",
|
|
32
|
+
data: a
|
|
33
|
+
}, o = {
|
|
34
|
+
label: "Заголовок секции",
|
|
35
|
+
type: e.STRING,
|
|
36
|
+
key: "title"
|
|
37
|
+
}, r = {
|
|
38
|
+
label: "Вариант",
|
|
39
|
+
type: "select",
|
|
40
|
+
options: [
|
|
41
|
+
{ label: "Primary (White)", value: "primary" },
|
|
42
|
+
{ label: "Secondary (Glass)", value: "secondary" }
|
|
43
|
+
],
|
|
44
|
+
key: "variant"
|
|
45
|
+
}, s = [o, l, r];
|
|
46
|
+
export {
|
|
47
|
+
a as fieldProps,
|
|
48
|
+
s as propsToEdit
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as f, useEffect as x } from "react";
|
|
3
|
+
import { PostCard as w } from "../Cards/PostCard/PostCard.js";
|
|
4
|
+
import { PostCardVariant as a } from "../Cards/PostCard/types.js";
|
|
5
|
+
import { a as h, b as u } from "../swiper-react-3c2710e8.js";
|
|
6
|
+
import { C as v } from "../ComponentContainer-dca711c6.js";
|
|
7
|
+
import { F as y } from "../Flex-86aee720.js";
|
|
8
|
+
import { c as b } from "../cn-6a4bf187.js";
|
|
9
|
+
import '../assets/swiper.css';/* empty css */const g = {
|
|
10
|
+
[a.PRIMARY]: {
|
|
11
|
+
title: "text-blackBG"
|
|
12
|
+
},
|
|
13
|
+
[a.SECONDARY]: {
|
|
14
|
+
title: "text-white"
|
|
15
|
+
}
|
|
16
|
+
}, O = ({
|
|
17
|
+
title: o,
|
|
18
|
+
cards: i,
|
|
19
|
+
variant: r = a.PRIMARY
|
|
20
|
+
}) => {
|
|
21
|
+
const [n, l] = f(0), p = g[r];
|
|
22
|
+
return x(() => {
|
|
23
|
+
const t = () => {
|
|
24
|
+
const s = window.innerWidth, m = Math.max((s - 1232) / 2, 16), c = Math.max(0, m - 16);
|
|
25
|
+
l(c);
|
|
26
|
+
};
|
|
27
|
+
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
28
|
+
}, []), /* @__PURE__ */ d(
|
|
29
|
+
y,
|
|
30
|
+
{
|
|
31
|
+
vertical: !0,
|
|
32
|
+
className: "w-full overflow-hidden gap-12 max-tablet:gap-6",
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ e(v, { children: o && /* @__PURE__ */ e(
|
|
35
|
+
"h2",
|
|
36
|
+
{
|
|
37
|
+
className: b(
|
|
38
|
+
"text-[56px] font-bold max-tablet:text-[32px] max-tablet:leading-[40px] max-tablet:text-center",
|
|
39
|
+
p.title
|
|
40
|
+
),
|
|
41
|
+
children: o
|
|
42
|
+
}
|
|
43
|
+
) }),
|
|
44
|
+
/* @__PURE__ */ e(
|
|
45
|
+
h,
|
|
46
|
+
{
|
|
47
|
+
slidesPerView: "auto",
|
|
48
|
+
spaceBetween: 24,
|
|
49
|
+
slidesOffsetAfter: n,
|
|
50
|
+
className: "w-full !overflow-visible",
|
|
51
|
+
style: {
|
|
52
|
+
paddingLeft: "max((100% - 1232px) / 2, 16px)",
|
|
53
|
+
paddingRight: "16px"
|
|
54
|
+
},
|
|
55
|
+
children: i == null ? void 0 : i.map((t, s) => /* @__PURE__ */ e(
|
|
56
|
+
u,
|
|
57
|
+
{
|
|
58
|
+
className: "opacity-50 transition-opacity duration-300 [&.swiper-slide-active]:opacity-100 [&.swiper-slide-active+*]:opacity-100 [&.swiper-slide-active+*+*]:opacity-100 [&.swiper-slide-active+*+*+*]:opacity-100",
|
|
59
|
+
style: { width: "290px", height: "auto" },
|
|
60
|
+
children: /* @__PURE__ */ e(
|
|
61
|
+
w,
|
|
62
|
+
{
|
|
63
|
+
item: t,
|
|
64
|
+
variant: r
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
},
|
|
68
|
+
t.id || s
|
|
69
|
+
))
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
O as PostsSlider
|
|
78
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { C as o } from "../types-c3843cc0.js";
|
|
2
|
+
import { PostsSlider as r } from "./PostsSlider.js";
|
|
3
|
+
import { propsToEdit as t } from "./schema.js";
|
|
4
|
+
const m = {
|
|
5
|
+
key: o.PostsSlider,
|
|
6
|
+
component: r,
|
|
7
|
+
propsToEdit: t
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
m as postsSliderInfo
|
|
11
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { AllActionsObject as t } from "../Actions/types.js";
|
|
2
|
+
import { FieldTypes as e } from "../Types/FiledTypes.js";
|
|
3
|
+
const a = {
|
|
4
|
+
title: {
|
|
5
|
+
type: e.STRING,
|
|
6
|
+
label: "Заголовок",
|
|
7
|
+
key: "title"
|
|
8
|
+
},
|
|
9
|
+
description: {
|
|
10
|
+
type: e.STRING,
|
|
11
|
+
label: "Описание",
|
|
12
|
+
key: "description"
|
|
13
|
+
},
|
|
14
|
+
date: {
|
|
15
|
+
type: e.STRING,
|
|
16
|
+
label: "Дата",
|
|
17
|
+
key: "date"
|
|
18
|
+
},
|
|
19
|
+
image: {
|
|
20
|
+
type: e.FILE,
|
|
21
|
+
label: "Картинка",
|
|
22
|
+
key: "image"
|
|
23
|
+
},
|
|
24
|
+
action: {
|
|
25
|
+
...t,
|
|
26
|
+
label: "Действие"
|
|
27
|
+
}
|
|
28
|
+
}, l = {
|
|
29
|
+
type: "cards",
|
|
30
|
+
label: "Карточки постов",
|
|
31
|
+
dataType: "array",
|
|
32
|
+
data: a
|
|
33
|
+
}, o = {
|
|
34
|
+
label: "Заголовок секции",
|
|
35
|
+
type: e.STRING,
|
|
36
|
+
key: "title"
|
|
37
|
+
}, r = {
|
|
38
|
+
label: "Вариант карточек",
|
|
39
|
+
type: "select",
|
|
40
|
+
options: [
|
|
41
|
+
{ label: "Primary (White)", value: "primary" },
|
|
42
|
+
{ label: "Secondary (Glass)", value: "secondary" }
|
|
43
|
+
],
|
|
44
|
+
key: "variant"
|
|
45
|
+
}, s = [o, l, r];
|
|
46
|
+
export {
|
|
47
|
+
a as fieldProps,
|
|
48
|
+
s as propsToEdit
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, Fragment as t } from "react/jsx-runtime";
|
|
2
|
-
import { c as i } from "../componentsMap-
|
|
2
|
+
import { c as i } from "../componentsMap-6fc8d724.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(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as a, B as t, a as s, C as n, S as D, b as r, V as e, c as i, d as o, e as d, P as l, f as C, g as B, h as L, W as m, i as w, j as p, F as I, D as g, k as F, l as S, m as c, I as M, n as P, o as f, p as u, A as V, q as T, T as W, r as b, E as x, s as h, t as k, u as q, v, w as y, x as A } from "../data.mock-
|
|
1
|
+
import { M as a, B as t, a as s, C as n, S as D, b as r, V as e, c as i, d as o, e as d, P as l, f as C, g as B, h as L, W as m, i as w, j as p, F as I, D as g, k as F, l as S, m as c, I as M, n as P, o as f, p as u, A as V, q as T, T as W, r as b, E as x, s as h, t as k, u as q, v, w as y, x as A } from "../data.mock-a00d8eec.js";
|
|
2
2
|
const j = [
|
|
3
3
|
a,
|
|
4
4
|
t,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { F as
|
|
4
|
-
import { c as
|
|
5
|
-
const
|
|
1
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as m } from "react";
|
|
3
|
+
import { F as r } from "../Flex-86aee720.js";
|
|
4
|
+
import { c as b } from "../cn-6a4bf187.js";
|
|
5
|
+
const d = {
|
|
6
6
|
black: "stroke-[#0E0F11]",
|
|
7
7
|
gray: "stroke-[#758795]"
|
|
8
|
-
},
|
|
8
|
+
}, u = ({ className: t, variant: l = "black" }) => /* @__PURE__ */ e(
|
|
9
9
|
"svg",
|
|
10
10
|
{
|
|
11
11
|
width: "21",
|
|
@@ -13,83 +13,82 @@ const h = {
|
|
|
13
13
|
viewBox: "0 0 21 21",
|
|
14
14
|
fill: "none",
|
|
15
15
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16
|
-
className:
|
|
16
|
+
className: t,
|
|
17
17
|
children: /* @__PURE__ */ e(
|
|
18
18
|
"path",
|
|
19
19
|
{
|
|
20
20
|
d: "M19.7998 19.8L15.3138 15.306M17.7998 9.29999C17.7998 11.5543 16.9043 13.7163 15.3102 15.3104C13.7162 16.9045 11.5541 17.8 9.2998 17.8C7.04546 17.8 4.88346 16.9045 3.2894 15.3104C1.69534 13.7163 0.799805 11.5543 0.799805 9.29999C0.799805 7.04565 1.69534 4.88364 3.2894 3.28958C4.88346 1.69552 7.04546 0.799988 9.2998 0.799988C11.5541 0.799988 13.7162 1.69552 15.3102 3.28958C16.9043 4.88364 17.7998 7.04565 17.7998 9.29999Z",
|
|
21
|
-
className:
|
|
21
|
+
className: b(d[l], "stroke-[1.6]"),
|
|
22
22
|
strokeLinecap: "round"
|
|
23
23
|
}
|
|
24
24
|
)
|
|
25
25
|
}
|
|
26
26
|
), C = ({
|
|
27
|
-
title:
|
|
28
|
-
placeholder:
|
|
29
|
-
tags:
|
|
30
|
-
onSearch:
|
|
31
|
-
onTagClick:
|
|
27
|
+
title: t,
|
|
28
|
+
placeholder: l,
|
|
29
|
+
tags: i = [],
|
|
30
|
+
onSearch: x,
|
|
31
|
+
onTagClick: n
|
|
32
32
|
}) => {
|
|
33
|
-
const
|
|
34
|
-
|
|
33
|
+
const o = m(null), s = () => {
|
|
34
|
+
x && o.current && x(o.current.value);
|
|
35
35
|
};
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
-
|
|
36
|
+
return /* @__PURE__ */ c(
|
|
37
|
+
r,
|
|
38
38
|
{
|
|
39
39
|
vertical: !0,
|
|
40
40
|
align: "center",
|
|
41
41
|
justify: "center",
|
|
42
42
|
className: "max-w-[880px] mx-auto",
|
|
43
43
|
children: [
|
|
44
|
-
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
|
|
44
|
+
t && /* @__PURE__ */ e("h2", { className: "text-white text-[56px] leading-[68px] font-bold text-center max-tablet:text-[28px] max-tablet:leading-9 mb-12 max-tablet:mb-8", children: t }),
|
|
45
|
+
/* @__PURE__ */ c(
|
|
46
|
+
r,
|
|
47
47
|
{
|
|
48
48
|
align: "center",
|
|
49
|
-
gap:
|
|
50
|
-
className: "w-full mb-6 p-2 rounded-[20px] bg-white/50 backdrop-blur-[2px] border-[2px] border-[#D4E3FF]",
|
|
49
|
+
className: "w-full gap-2 max-tablet:gap-1 mb-6 p-2 max-tablet:p-1 rounded-[20px] max-tablet:rounded-2xl bg-white/50 backdrop-blur-[2px] border-[2px] border-[#D4E3FF]",
|
|
51
50
|
children: [
|
|
52
51
|
/* @__PURE__ */ e(
|
|
53
52
|
"input",
|
|
54
53
|
{
|
|
55
|
-
ref:
|
|
54
|
+
ref: o,
|
|
56
55
|
type: "text",
|
|
57
|
-
placeholder:
|
|
58
|
-
onKeyDown: (
|
|
59
|
-
|
|
56
|
+
placeholder: l,
|
|
57
|
+
onKeyDown: (a) => {
|
|
58
|
+
a.key === "Enter" && s();
|
|
60
59
|
},
|
|
61
|
-
className: "w-full text-[#0E0F11] h-16 py-5 px-6 text-lg leading-6 rounded-2xl border-[#D4E3FF] outline-none placeholder:text-[#7893B0]"
|
|
60
|
+
className: "w-full text-[#0E0F11] h-16 max-tablet:h-[52px] py-5 px-6 max-tablet:p-3 text-lg leading-6 max-tablet:text-base rounded-2xl border-[#D4E3FF] outline-none placeholder:text-[#7893B0]"
|
|
62
61
|
}
|
|
63
62
|
),
|
|
64
63
|
/* @__PURE__ */ e(
|
|
65
|
-
|
|
64
|
+
r,
|
|
66
65
|
{
|
|
67
66
|
component: "button",
|
|
68
67
|
"aria-label": "Search",
|
|
69
68
|
onClick: s,
|
|
70
69
|
align: "center",
|
|
71
70
|
justify: "center",
|
|
72
|
-
className: "flex-shrink-0 size-[64px] bg-white rounded-2xl hover:bg-gray-100 transition-colors cursor-pointer border border-[#D4E3FF]",
|
|
73
|
-
children: /* @__PURE__ */ e(
|
|
71
|
+
className: "flex-shrink-0 size-[64px] max-tablet:size-[52px] bg-white rounded-2xl hover:bg-gray-100 transition-colors cursor-pointer border border-[#D4E3FF]",
|
|
72
|
+
children: /* @__PURE__ */ e(u, { variant: "gray" })
|
|
74
73
|
}
|
|
75
74
|
)
|
|
76
75
|
]
|
|
77
76
|
}
|
|
78
77
|
),
|
|
79
78
|
/* @__PURE__ */ e(
|
|
80
|
-
|
|
79
|
+
r,
|
|
81
80
|
{
|
|
82
81
|
wrap: !0,
|
|
83
82
|
justify: "center",
|
|
84
|
-
className: "max-w-[600px] gap-x-3 gap-y-4",
|
|
85
|
-
children:
|
|
83
|
+
className: "max-w-[600px] gap-x-3 gap-y-4 max-tablet:gap-x-2 max-tablet:gap-y-3",
|
|
84
|
+
children: i.map((a, p) => /* @__PURE__ */ e(
|
|
86
85
|
"button",
|
|
87
86
|
{
|
|
88
|
-
onClick: () =>
|
|
89
|
-
className: "bg-[#C2C1C159] hover:bg-white/30 text-white px-4 py-2.5 rounded-xl backdrop-blur-[2px] transition-colors cursor-pointer border-none text-base leading-6 font-medium",
|
|
90
|
-
children:
|
|
87
|
+
onClick: () => n == null ? void 0 : n(a),
|
|
88
|
+
className: "bg-[#C2C1C159] hover:bg-white/30 text-white px-4 py-2.5 max-tablet:py-2 max-tablet:px-3 rounded-xl backdrop-blur-[2px] transition-colors cursor-pointer border-none text-base leading-6 max-tablet:text-sm font-medium",
|
|
89
|
+
children: a.label
|
|
91
90
|
},
|
|
92
|
-
|
|
91
|
+
p
|
|
93
92
|
))
|
|
94
93
|
}
|
|
95
94
|
)
|