md-components-mdigial-azamat 0.0.109 → 0.0.113
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 +32 -7
- 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 +29 -4
- package/dist/AllComponents.js +35 -9
- package/dist/AllComponentsInfo.js +107 -89
- package/dist/AnimatedSwiper/index.js +40 -38
- package/dist/ButtonsList/ButtonsList.js +25 -19
- package/dist/CardImageList/CardImageList.js +130 -73
- package/dist/CardImageList/info.js +1 -1
- package/dist/CardImageList/schema.js +62 -0
- 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 +100 -55
- package/dist/Cards/CardImage/index.js +6 -1
- package/dist/Cards/CardImage/info.js +1 -1
- package/dist/Cards/CardImage/schema.js +32 -0
- package/dist/Cards/CardImage/types.js +3 -2
- 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 +31 -6
- 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/Flex-86aee720.js +78 -0
- package/dist/Footer/Footer.js +5 -5
- 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 -113
- 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} +36 -7
- 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 +26 -24
- package/dist/Header/components/HeaderMobile/HeaderMobile.js +67 -52
- package/dist/Header/components/HeaderSearch/HeaderSearch.js +1 -1
- package/dist/Header/components/HeaderTab/HeaderTab.js +17 -15
- package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +10 -9
- package/dist/Header/components/HeaderWeb/HeaderWeb.js +134 -114
- package/dist/Header/components/TabsOutlined/TabsOutlined.js +8 -7
- package/dist/HeroIconsBanner/HeroIconsBanner.js +71 -54
- package/dist/IconList/IconList.js +59 -33
- 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/ModalBody/index.js +1 -1
- 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/PreviewList/PreviewList.js +19 -19
- package/dist/PreviewList/components/PreviewCard/PreviewCard.js +29 -29
- package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
- package/dist/RenderAllComponents/const.js +1 -1
- package/dist/SearchBlock/SearchBlock.js +101 -0
- package/dist/SearchBlock/index.js +4 -0
- package/dist/SearchBlock/info.js +11 -0
- package/dist/SearchBlock/schema.js +36 -0
- 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/{clientApi-642fea4b.js → clientApi-ccb08ba6.js} +7 -7
- package/dist/{componentsMap-855b1df7.js → componentsMap-29ccdfcc.js} +6 -3
- package/dist/{data.mock-182979d1.js → data.mock-bb32e8ee.js} +485 -133
- package/dist/index-0791c17f.js +56 -0
- package/dist/index-2ec92a04.js +32 -0
- package/dist/{index-497f59a8.js → index-b795390d.js} +23 -20
- package/dist/index.esm-0558519f.js +1171 -0
- package/dist/{index.module-c8833286.js → index.module-8835bf96.js} +1 -1
- package/dist/info-72904479.js +791 -0
- package/dist/main.js +151 -116
- 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/trash/HeroLargeCards/index.js +7 -6
- 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-34fbb2a8.js +0 -1534
- package/dist/navigation-b894d0cd.js +0 -183
- /package/dist/Forms/{types/formItems.js → FormDefault/model/types.js} +0 -0
|
@@ -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
|
+
|
package/dist/ModalBody/index.js
CHANGED
|
@@ -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,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { B as
|
|
1
|
+
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { B as s } from "../index-875e92ce.js";
|
|
3
3
|
import { c as o } from "../const-53dff524.js";
|
|
4
|
-
import { C as
|
|
5
|
-
import { PreviewCardData as
|
|
4
|
+
import { C as c } from "../ComponentContainer-dca711c6.js";
|
|
5
|
+
import { PreviewCardData as d, PreviewCard as n } from "./components/PreviewCard/PreviewCard.js";
|
|
6
6
|
const f = {
|
|
7
7
|
type: "cards",
|
|
8
8
|
dataType: "array",
|
|
9
9
|
label: "Карточки",
|
|
10
10
|
data: {
|
|
11
|
-
...
|
|
11
|
+
...d
|
|
12
12
|
}
|
|
13
13
|
}, g = [
|
|
14
14
|
"title",
|
|
@@ -17,35 +17,35 @@ const f = {
|
|
|
17
17
|
o,
|
|
18
18
|
"grid"
|
|
19
19
|
], h = ({
|
|
20
|
-
title:
|
|
21
|
-
cards:
|
|
20
|
+
title: r,
|
|
21
|
+
cards: a,
|
|
22
22
|
button: e,
|
|
23
|
-
grid:
|
|
24
|
-
description:
|
|
25
|
-
}) => /* @__PURE__ */
|
|
26
|
-
|
|
23
|
+
grid: x = 3,
|
|
24
|
+
description: i
|
|
25
|
+
}) => /* @__PURE__ */ p(c, { className: "flex flex-col items-center", children: [
|
|
26
|
+
r && /* @__PURE__ */ t(
|
|
27
27
|
"h2",
|
|
28
28
|
{
|
|
29
29
|
className: `font-bold text-[44px] max-tablet:text-[26px] max-tablet:leading-[32px] leading-[42px] text-center
|
|
30
30
|
mb-[24px] max-tablet:mb-[8px] font-variant-numeric font-feature-settings`,
|
|
31
|
-
children:
|
|
31
|
+
children: r
|
|
32
32
|
}
|
|
33
33
|
),
|
|
34
|
-
|
|
35
|
-
/* @__PURE__ */
|
|
34
|
+
i && /* @__PURE__ */ t("p", { className: "text-[20px] max-tablet:text-[16px] max-tablet:leading-[20px] leading-[26px] text-graySoft text-center mb-[36px] max-tablet:mb-[32px]", children: i }),
|
|
35
|
+
/* @__PURE__ */ t(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
38
|
-
className: `w-full grid grid-cols-${
|
|
39
|
-
children:
|
|
40
|
-
|
|
38
|
+
className: `w-full grid grid-cols-${x} items-stretch gap-[24px] max-tablet:grid-cols-1`,
|
|
39
|
+
children: a == null ? void 0 : a.map((l, m) => /* @__PURE__ */ t(
|
|
40
|
+
n,
|
|
41
41
|
{
|
|
42
42
|
...l
|
|
43
43
|
},
|
|
44
|
-
|
|
44
|
+
m
|
|
45
45
|
))
|
|
46
46
|
}
|
|
47
47
|
),
|
|
48
|
-
((e == null ? void 0 : e.title) || (e == null ? void 0 : e.children)) && /* @__PURE__ */
|
|
48
|
+
((e == null ? void 0 : e.title) || (e == null ? void 0 : e.children)) && /* @__PURE__ */ t(s, { ...e })
|
|
49
49
|
] });
|
|
50
50
|
h.propsToEdit = g;
|
|
51
51
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { FieldTypes as
|
|
3
|
-
import { B as
|
|
4
|
-
import { B as
|
|
5
|
-
import { I as
|
|
6
|
-
const
|
|
1
|
+
import { jsxs as o, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { FieldTypes as a } from "../../../Types/FiledTypes.js";
|
|
3
|
+
import { B as t } from "../../../index-875e92ce.js";
|
|
4
|
+
import { B as c } from "../../../const-53dff524.js";
|
|
5
|
+
import { I as d } from "../../../index-9384c6d6.js";
|
|
6
|
+
const x = [
|
|
7
7
|
"title",
|
|
8
8
|
"subtitle",
|
|
9
9
|
"image",
|
|
@@ -11,42 +11,42 @@ const m = [
|
|
|
11
11
|
"id",
|
|
12
12
|
"background_color"
|
|
13
13
|
], w = {
|
|
14
|
-
title:
|
|
15
|
-
subtitle:
|
|
16
|
-
image:
|
|
17
|
-
button:
|
|
18
|
-
background_color:
|
|
19
|
-
},
|
|
20
|
-
title:
|
|
21
|
-
subtitle:
|
|
22
|
-
image:
|
|
14
|
+
title: a.TITLE,
|
|
15
|
+
subtitle: a.DESCRIPTION,
|
|
16
|
+
image: a.FILE,
|
|
17
|
+
button: c,
|
|
18
|
+
background_color: a.COLOR
|
|
19
|
+
}, m = ({
|
|
20
|
+
title: r,
|
|
21
|
+
subtitle: i,
|
|
22
|
+
image: p,
|
|
23
23
|
button: e,
|
|
24
|
-
background_color:
|
|
25
|
-
}) => /* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
24
|
+
background_color: s
|
|
25
|
+
}) => /* @__PURE__ */ o("div", { className: "w-full flex flex-col rounded-[20px] overflow-hidden", children: [
|
|
26
|
+
/* @__PURE__ */ l(
|
|
27
27
|
"div",
|
|
28
28
|
{
|
|
29
|
-
style: { background:
|
|
29
|
+
style: { background: s },
|
|
30
30
|
className: "relative w-full h-[256px] max-tablet:h-[224px]",
|
|
31
|
-
children: /* @__PURE__ */
|
|
32
|
-
|
|
31
|
+
children: /* @__PURE__ */ l(
|
|
32
|
+
d,
|
|
33
33
|
{
|
|
34
|
-
src:
|
|
35
|
-
alt:
|
|
34
|
+
src: p,
|
|
35
|
+
alt: r,
|
|
36
36
|
className: "w-full h-full",
|
|
37
37
|
imageStyles: "object-contain"
|
|
38
38
|
}
|
|
39
39
|
)
|
|
40
40
|
}
|
|
41
41
|
),
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
((e == null ? void 0 : e.title) || (e == null ? void 0 : e.children)) && /* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ o("div", { className: "bg-white p-[32px] max-tablet:px-[24px] max-tablet:py-[32px] flex flex-col gap-[8px] h-full", children: [
|
|
43
|
+
r && /* @__PURE__ */ l("p", { className: "text-[24px] leading-[32px] font-bold", children: r }),
|
|
44
|
+
i && /* @__PURE__ */ l("p", { className: "text-[14px] leading-[20px] text-graySoft", children: i }),
|
|
45
|
+
((e == null ? void 0 : e.title) || (e == null ? void 0 : e.children)) && /* @__PURE__ */ l(t, { ...e })
|
|
46
46
|
] })
|
|
47
47
|
] });
|
|
48
|
-
|
|
48
|
+
m.propsToEdit = x;
|
|
49
49
|
export {
|
|
50
|
-
|
|
50
|
+
m as PreviewCard,
|
|
51
51
|
w as PreviewCardData
|
|
52
52
|
};
|
|
@@ -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-29ccdfcc.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-bb32e8ee.js";
|
|
2
2
|
const j = [
|
|
3
3
|
a,
|
|
4
4
|
t,
|
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
black: "stroke-[#0E0F11]",
|
|
7
|
+
gray: "stroke-[#758795]"
|
|
8
|
+
}, u = ({ className: t, variant: l = "black" }) => /* @__PURE__ */ e(
|
|
9
|
+
"svg",
|
|
10
|
+
{
|
|
11
|
+
width: "21",
|
|
12
|
+
height: "21",
|
|
13
|
+
viewBox: "0 0 21 21",
|
|
14
|
+
fill: "none",
|
|
15
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16
|
+
className: t,
|
|
17
|
+
children: /* @__PURE__ */ e(
|
|
18
|
+
"path",
|
|
19
|
+
{
|
|
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: b(d[l], "stroke-[1.6]"),
|
|
22
|
+
strokeLinecap: "round"
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
), C = ({
|
|
27
|
+
title: t,
|
|
28
|
+
placeholder: l,
|
|
29
|
+
tags: i = [],
|
|
30
|
+
onSearch: x,
|
|
31
|
+
onTagClick: n
|
|
32
|
+
}) => {
|
|
33
|
+
const o = m(null), s = () => {
|
|
34
|
+
x && o.current && x(o.current.value);
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ c(
|
|
37
|
+
r,
|
|
38
|
+
{
|
|
39
|
+
vertical: !0,
|
|
40
|
+
align: "center",
|
|
41
|
+
justify: "center",
|
|
42
|
+
className: "max-w-[880px] mx-auto",
|
|
43
|
+
children: [
|
|
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
|
+
{
|
|
48
|
+
align: "center",
|
|
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]",
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ e(
|
|
52
|
+
"input",
|
|
53
|
+
{
|
|
54
|
+
ref: o,
|
|
55
|
+
type: "text",
|
|
56
|
+
placeholder: l,
|
|
57
|
+
onKeyDown: (a) => {
|
|
58
|
+
a.key === "Enter" && s();
|
|
59
|
+
},
|
|
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]"
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ e(
|
|
64
|
+
r,
|
|
65
|
+
{
|
|
66
|
+
component: "button",
|
|
67
|
+
"aria-label": "Search",
|
|
68
|
+
onClick: s,
|
|
69
|
+
align: "center",
|
|
70
|
+
justify: "center",
|
|
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" })
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
/* @__PURE__ */ e(
|
|
79
|
+
r,
|
|
80
|
+
{
|
|
81
|
+
wrap: !0,
|
|
82
|
+
justify: "center",
|
|
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(
|
|
85
|
+
"button",
|
|
86
|
+
{
|
|
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
|
|
90
|
+
},
|
|
91
|
+
p
|
|
92
|
+
))
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
};
|
|
99
|
+
export {
|
|
100
|
+
C as SearchBlock
|
|
101
|
+
};
|
|
@@ -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.banners],
|
|
7
|
+
propsToEdit: t
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
p as searchBlockInfo
|
|
11
|
+
};
|