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
|
@@ -1,71 +1,116 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { actionsGenerator as
|
|
1
|
+
import { jsxs as x, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { actionsGenerator as f } from "../../Actions/actionsGenerator.js";
|
|
3
3
|
import "../../Actions/projectActions.js";
|
|
4
4
|
import "../../Actions/types.js";
|
|
5
|
-
import {
|
|
6
|
-
import { I as
|
|
7
|
-
import { c as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
5
|
+
import { F as p } from "../../Flex-86aee720.js";
|
|
6
|
+
import { I as w } from "../../index-9384c6d6.js";
|
|
7
|
+
import { c as t } from "../../cn-6a4bf187.js";
|
|
8
|
+
import { propsToEdit as u } from "./schema.js";
|
|
9
|
+
import { CardImageVariant as l, CardImageSize as m } from "./types.js";
|
|
10
|
+
const o = {
|
|
11
|
+
[l.PRIMARY]: {
|
|
12
|
+
container: "bg-white",
|
|
13
|
+
title: "text-blackBG",
|
|
14
|
+
description: "text-graySoft"
|
|
15
|
+
},
|
|
16
|
+
[l.SECONDARY]: {
|
|
17
|
+
container: "bg-white/15 backdrop-blur-[15px]",
|
|
18
|
+
title: "text-white",
|
|
19
|
+
description: "text-white/80"
|
|
20
|
+
}
|
|
21
|
+
}, a = {
|
|
22
|
+
[m.SMALL]: {
|
|
23
|
+
container: "rounded-3xl",
|
|
24
|
+
content: "pt-8 pb-4 px-6 max-tablet:p-4 gap-3",
|
|
25
|
+
description: "max-tablet:hidden",
|
|
26
|
+
image: "min-h-[256px] max-h-[272px] w-fit"
|
|
27
|
+
},
|
|
28
|
+
[m.LARGE]: {
|
|
29
|
+
container: "rounded-[20px]",
|
|
30
|
+
content: "p-12 max-tablet:py-6 max-tablet:px-8 gap-5 max-tablet:gap-4",
|
|
31
|
+
description: "",
|
|
32
|
+
image: "min-h-[264px] max-h-[356px] max-tablet:min-h-[262px] max-tablet:max-h-[262px] w-full"
|
|
20
33
|
}
|
|
21
|
-
},
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
34
|
+
}, I = ({ data: s }) => {
|
|
35
|
+
const {
|
|
36
|
+
variant: i = l.PRIMARY,
|
|
37
|
+
size: e = m.LARGE,
|
|
38
|
+
title: c,
|
|
39
|
+
description: d,
|
|
40
|
+
image: b,
|
|
41
|
+
action: g,
|
|
42
|
+
is_black: n
|
|
43
|
+
} = s || {}, h = f(g);
|
|
44
|
+
return /* @__PURE__ */ x(
|
|
45
|
+
p,
|
|
25
46
|
{
|
|
26
|
-
...
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
47
|
+
...h,
|
|
48
|
+
vertical: !0,
|
|
49
|
+
align: "center",
|
|
50
|
+
justify: "between",
|
|
51
|
+
className: t(
|
|
52
|
+
"w-full overflow-hidden flex-1 transition-colors duration-300",
|
|
53
|
+
o[i].container,
|
|
54
|
+
a[e].container,
|
|
55
|
+
{
|
|
56
|
+
"!bg-black": n
|
|
57
|
+
}
|
|
30
58
|
),
|
|
31
59
|
children: [
|
|
32
|
-
/* @__PURE__ */ p("div", { className: "w-full flex flex-col gap-[20px] p-[48px] max-tablet:gap-[16px] max-tablet:py-[24px] max-tablet:px-[32px]", children: [
|
|
33
|
-
/* @__PURE__ */ x(
|
|
34
|
-
"p",
|
|
35
|
-
{
|
|
36
|
-
className: i(
|
|
37
|
-
"font-bold text-[24px] leading-[32px] text-center text-blackBG max-tablet:text-[22px] max-tablet:leading-[26px]",
|
|
38
|
-
{ "!text-white": e == null ? void 0 : e.is_black }
|
|
39
|
-
),
|
|
40
|
-
children: e == null ? void 0 : e.title
|
|
41
|
-
}
|
|
42
|
-
),
|
|
43
|
-
/* @__PURE__ */ x(
|
|
44
|
-
"p",
|
|
45
|
-
{
|
|
46
|
-
className: i(
|
|
47
|
-
"text-[16px] leading-[24px] text-center text-graySoft max-tablet:text-[15px] max-tablet:leading-[22px]",
|
|
48
|
-
{ "!text-graySoft": e == null ? void 0 : e.is_black }
|
|
49
|
-
),
|
|
50
|
-
children: e == null ? void 0 : e.description
|
|
51
|
-
}
|
|
52
|
-
)
|
|
53
|
-
] }),
|
|
54
60
|
/* @__PURE__ */ x(
|
|
55
|
-
|
|
61
|
+
p,
|
|
62
|
+
{
|
|
63
|
+
vertical: !0,
|
|
64
|
+
align: "center",
|
|
65
|
+
className: t("w-full", a[e].content),
|
|
66
|
+
children: [
|
|
67
|
+
/* @__PURE__ */ r(
|
|
68
|
+
"p",
|
|
69
|
+
{
|
|
70
|
+
className: t(
|
|
71
|
+
"font-bold text-2xl text-center max-tablet:text-xl max-tablet:leading-6",
|
|
72
|
+
o[i].title,
|
|
73
|
+
{
|
|
74
|
+
"text-white": n
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
children: c
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
/* @__PURE__ */ r(
|
|
81
|
+
"p",
|
|
82
|
+
{
|
|
83
|
+
className: t(
|
|
84
|
+
"text-base leading-6 text-center max-tablet:text-sm max-tablet:leading-5",
|
|
85
|
+
o[i].description,
|
|
86
|
+
a[e].description,
|
|
87
|
+
{
|
|
88
|
+
"!text-white/80": n
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
children: d
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
/* @__PURE__ */ r(
|
|
98
|
+
w,
|
|
56
99
|
{
|
|
57
|
-
src:
|
|
58
|
-
alt:
|
|
59
|
-
className:
|
|
60
|
-
|
|
100
|
+
src: b,
|
|
101
|
+
alt: c,
|
|
102
|
+
className: t(
|
|
103
|
+
"w-full box-border max-tablet:h-[200px]",
|
|
104
|
+
a[e].image
|
|
105
|
+
),
|
|
106
|
+
imageStyles: "h-full max-tablet:w-[200px] object-contain"
|
|
61
107
|
}
|
|
62
108
|
)
|
|
63
109
|
]
|
|
64
110
|
}
|
|
65
111
|
);
|
|
66
112
|
};
|
|
67
|
-
|
|
113
|
+
I.propsToEdit = u;
|
|
68
114
|
export {
|
|
69
|
-
|
|
70
|
-
n as propsToEdit
|
|
115
|
+
I as CardImage
|
|
71
116
|
};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { CardImage as e } from "./CardImage.js";
|
|
2
|
+
import { cardImageInfo as o } from "./info.js";
|
|
3
|
+
import { CardImageSize as d, CardImageVariant as f } from "./types.js";
|
|
2
4
|
export {
|
|
3
|
-
e as CardImage
|
|
5
|
+
e as CardImage,
|
|
6
|
+
d as CardImageSize,
|
|
7
|
+
f as CardImageVariant,
|
|
8
|
+
o as cardImageInfo
|
|
4
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as o } from "../../index-0a5f313c.js";
|
|
2
|
-
import { propsToEdit as t } from "./
|
|
2
|
+
import { propsToEdit as t } from "./schema.js";
|
|
3
3
|
const p = {
|
|
4
4
|
title: "Карточка с изображением",
|
|
5
5
|
description: "Компонент для отображения карточки с изображением, заголовком и описанием. Используется для представления отдельных элементов с визуальным контентом.",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { FieldTypes as a } from "../../Types/FiledTypes.js";
|
|
2
|
+
import { CardImageVariant as e, CardImageSize as t } from "./types.js";
|
|
3
|
+
const l = {
|
|
4
|
+
type: "data",
|
|
5
|
+
label: "Данные карточки с изображением",
|
|
6
|
+
dataType: "object",
|
|
7
|
+
data: {
|
|
8
|
+
keys: {
|
|
9
|
+
title: a.TITLE,
|
|
10
|
+
description: a.DESCRIPTION,
|
|
11
|
+
image: a.FILE,
|
|
12
|
+
variant: {
|
|
13
|
+
type: a.VARIANT,
|
|
14
|
+
options: [
|
|
15
|
+
{ label: "Primary", value: e.PRIMARY },
|
|
16
|
+
{ label: "Secondary", value: e.SECONDARY }
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
size: {
|
|
20
|
+
type: a.VARIANT,
|
|
21
|
+
options: [
|
|
22
|
+
{ label: "Small", value: t.SMALL },
|
|
23
|
+
{ label: "Large", value: t.LARGE }
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
is_black: a.BOOLEAN
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}, r = [l];
|
|
30
|
+
export {
|
|
31
|
+
r as propsToEdit
|
|
32
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
var
|
|
1
|
+
var A = /* @__PURE__ */ ((r) => (r.LARGE = "large", r.SMALL = "small", r))(A || {}), R = /* @__PURE__ */ ((r) => (r.PRIMARY = "primary", r.SECONDARY = "secondary", r))(R || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
A as CardImageSize,
|
|
4
|
+
R as CardImageVariant
|
|
4
5
|
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { F as a } from "../../Flex-86aee720.js";
|
|
3
|
+
import { I as p } from "../../index-9384c6d6.js";
|
|
4
|
+
import { c as l } from "../../cn-6a4bf187.js";
|
|
5
|
+
import { propsToEdit as d } from "./schema.js";
|
|
6
|
+
import { InfoCardVariant as x } from "./types.js";
|
|
7
|
+
const h = {
|
|
8
|
+
[x.PRIMARY]: {
|
|
9
|
+
container: "bg-white text-blackBG",
|
|
10
|
+
description: "text-graySoft",
|
|
11
|
+
attributeLabel: "text-graySoft",
|
|
12
|
+
attributeValue: "text-graySoft",
|
|
13
|
+
divider: "border-b border-[#E0E5E8]"
|
|
14
|
+
},
|
|
15
|
+
[x.SECONDARY]: {
|
|
16
|
+
container: "bg-white/15 backdrop-blur-[2px] text-white border border-white/15",
|
|
17
|
+
description: "text-white",
|
|
18
|
+
attributeLabel: "text-white/90",
|
|
19
|
+
attributeValue: "text-white/90",
|
|
20
|
+
divider: "border-b border-white/20"
|
|
21
|
+
}
|
|
22
|
+
}, f = ({
|
|
23
|
+
title: n,
|
|
24
|
+
description: m,
|
|
25
|
+
image: s,
|
|
26
|
+
attributes: r,
|
|
27
|
+
variant: b = x.PRIMARY
|
|
28
|
+
}) => {
|
|
29
|
+
const t = h[b];
|
|
30
|
+
return /* @__PURE__ */ i(
|
|
31
|
+
a,
|
|
32
|
+
{
|
|
33
|
+
vertical: !0,
|
|
34
|
+
justify: "between",
|
|
35
|
+
className: l(
|
|
36
|
+
"w-full rounded-3xl py-8 max-tablet:py-0 max-tablet:flex-col-reverse max-tablet:items-center",
|
|
37
|
+
t.container
|
|
38
|
+
),
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ e(
|
|
41
|
+
a,
|
|
42
|
+
{
|
|
43
|
+
align: "end",
|
|
44
|
+
className: "w-full h-[292px] max-tablet:h-[160px]",
|
|
45
|
+
children: /* @__PURE__ */ e(
|
|
46
|
+
p,
|
|
47
|
+
{
|
|
48
|
+
src: s,
|
|
49
|
+
alt: n,
|
|
50
|
+
className: "w-full",
|
|
51
|
+
imageStyles: "w-full max-h-[292px] max-tablet:max-h-[160px] object-contain"
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ i(
|
|
57
|
+
a,
|
|
58
|
+
{
|
|
59
|
+
vertical: !0,
|
|
60
|
+
className: "px-6 pt-8 pb-4 gap-3 max-tablet:gap-2 max-tablet:p-4 max-tablet:items-center",
|
|
61
|
+
children: [
|
|
62
|
+
/* @__PURE__ */ e("h3", { className: "text-3xl leading-10 font-bold max-tablet:text-xl max-tablet:text-center", children: n }),
|
|
63
|
+
m && /* @__PURE__ */ e(
|
|
64
|
+
"p",
|
|
65
|
+
{
|
|
66
|
+
className: l(
|
|
67
|
+
"text-lg leading-[26px] min-h-[78px] max-tablet:text-[15px] max-tablet:leading-6 max-tablet:min-h-[48px] max-tablet:text-center",
|
|
68
|
+
t.description
|
|
69
|
+
),
|
|
70
|
+
children: m
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
r && r.length > 0 && /* @__PURE__ */ e(
|
|
77
|
+
a,
|
|
78
|
+
{
|
|
79
|
+
vertical: !0,
|
|
80
|
+
gap: 12,
|
|
81
|
+
className: "w-full px-6 max-tablet:hidden",
|
|
82
|
+
children: r.map((c, o) => /* @__PURE__ */ i(
|
|
83
|
+
a,
|
|
84
|
+
{
|
|
85
|
+
justify: "between",
|
|
86
|
+
align: "center",
|
|
87
|
+
gap: 12,
|
|
88
|
+
className: l(
|
|
89
|
+
"pb-3 w-full",
|
|
90
|
+
o !== r.length - 1 && t.divider
|
|
91
|
+
),
|
|
92
|
+
children: [
|
|
93
|
+
/* @__PURE__ */ e(
|
|
94
|
+
"span",
|
|
95
|
+
{
|
|
96
|
+
className: l("text-lg leading-[26px]", t.attributeLabel),
|
|
97
|
+
children: c.label
|
|
98
|
+
}
|
|
99
|
+
),
|
|
100
|
+
/* @__PURE__ */ e("span", { className: l("text-base text-end", t.attributeValue), children: c.value })
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
o
|
|
104
|
+
))
|
|
105
|
+
}
|
|
106
|
+
)
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
};
|
|
111
|
+
f.propsToEdit = d;
|
|
112
|
+
export {
|
|
113
|
+
f as InfoCard
|
|
114
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InfoCard as a } from "./InfoCard.js";
|
|
2
|
+
import { InfoCardVariant as t } from "./types.js";
|
|
3
|
+
import { InfoCardItemSchema as m, propsToEdit as p } from "./schema.js";
|
|
4
|
+
export {
|
|
5
|
+
a as InfoCard,
|
|
6
|
+
m as InfoCardItemSchema,
|
|
7
|
+
t as InfoCardVariant,
|
|
8
|
+
p as propsToEdit
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { C as o } from "../../index-0a5f313c.js";
|
|
2
|
+
import { propsToEdit as r } from "./schema.js";
|
|
3
|
+
const e = {
|
|
4
|
+
title: "Инфо карточка",
|
|
5
|
+
description: "Карточка с изображением, заголовком, описанием и списком атрибутов. Поддерживает варианты Primary и Secondary.",
|
|
6
|
+
types: [o.cards],
|
|
7
|
+
propsToEdit: r
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
e as infoCardInfo
|
|
11
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { AllActionsObject as l } from "../../Actions/types.js";
|
|
2
|
+
import { FieldTypes as e } from "../../Types/FiledTypes.js";
|
|
3
|
+
import { InfoCardVariant as a } from "./types.js";
|
|
4
|
+
const t = {
|
|
5
|
+
id: {
|
|
6
|
+
type: e.NUMBER,
|
|
7
|
+
label: "ID"
|
|
8
|
+
},
|
|
9
|
+
title: {
|
|
10
|
+
type: e.TITLE,
|
|
11
|
+
label: "Заголовок"
|
|
12
|
+
},
|
|
13
|
+
description: {
|
|
14
|
+
type: e.DESCRIPTION,
|
|
15
|
+
label: "Описание"
|
|
16
|
+
},
|
|
17
|
+
image: {
|
|
18
|
+
type: e.FILE,
|
|
19
|
+
label: "Изображение"
|
|
20
|
+
},
|
|
21
|
+
variant: {
|
|
22
|
+
type: e.VARIANT,
|
|
23
|
+
label: "Вариант",
|
|
24
|
+
options: [
|
|
25
|
+
{ label: "Primary", value: a.PRIMARY },
|
|
26
|
+
{ label: "Secondary", value: a.SECONDARY }
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
action: {
|
|
30
|
+
...l,
|
|
31
|
+
label: "Действие"
|
|
32
|
+
},
|
|
33
|
+
attributes: {
|
|
34
|
+
type: "array",
|
|
35
|
+
label: "Атрибуты",
|
|
36
|
+
itemLabel: "Атрибут",
|
|
37
|
+
data: {
|
|
38
|
+
label: {
|
|
39
|
+
type: e.STRING,
|
|
40
|
+
label: "Название"
|
|
41
|
+
},
|
|
42
|
+
value: {
|
|
43
|
+
type: e.STRING,
|
|
44
|
+
label: "Значение"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}, p = [
|
|
49
|
+
t.id,
|
|
50
|
+
t.title,
|
|
51
|
+
t.description,
|
|
52
|
+
t.image,
|
|
53
|
+
t.variant,
|
|
54
|
+
t.action,
|
|
55
|
+
t.attributes
|
|
56
|
+
];
|
|
57
|
+
export {
|
|
58
|
+
t as InfoCardItemSchema,
|
|
59
|
+
p as propsToEdit
|
|
60
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { actionsGenerator as d } from "../../Actions/actionsGenerator.js";
|
|
3
|
+
import { F as s } from "../../Flex-86aee720.js";
|
|
4
|
+
import { I as p } from "../../index-9384c6d6.js";
|
|
5
|
+
import { c as r } from "../../cn-6a4bf187.js";
|
|
6
|
+
import { PostCardVariant as o } from "./types.js";
|
|
7
|
+
const x = {
|
|
8
|
+
[o.PRIMARY]: {
|
|
9
|
+
container: "bg-white backdrop-blur-[12px]",
|
|
10
|
+
title: "text-blackBG",
|
|
11
|
+
date: "text-softGray"
|
|
12
|
+
},
|
|
13
|
+
[o.SECONDARY]: {
|
|
14
|
+
container: "bg-white/15 backdrop-blur-[15px]",
|
|
15
|
+
title: "text-white",
|
|
16
|
+
date: "text-white"
|
|
17
|
+
}
|
|
18
|
+
}, g = ({
|
|
19
|
+
item: t,
|
|
20
|
+
variant: c
|
|
21
|
+
}) => {
|
|
22
|
+
const { onClick: n } = d(t == null ? void 0 : t.action), i = c || t.variant || o.PRIMARY, e = x[i];
|
|
23
|
+
return /* @__PURE__ */ l(
|
|
24
|
+
s,
|
|
25
|
+
{
|
|
26
|
+
vertical: !0,
|
|
27
|
+
onClick: n,
|
|
28
|
+
className: r(
|
|
29
|
+
"w-full h-full rounded-3xl cursor-pointer overflow-hidden border border-white/25",
|
|
30
|
+
e.container
|
|
31
|
+
),
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ a(
|
|
34
|
+
p,
|
|
35
|
+
{
|
|
36
|
+
src: t.image,
|
|
37
|
+
alt: t.title,
|
|
38
|
+
className: "w-full aspect-[2/1]",
|
|
39
|
+
imageStyles: "w-full aspect-[2/1] object-cover"
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
/* @__PURE__ */ l(
|
|
43
|
+
s,
|
|
44
|
+
{
|
|
45
|
+
vertical: !0,
|
|
46
|
+
gap: 12,
|
|
47
|
+
className: "p-6 max-tablet:p-4",
|
|
48
|
+
children: [
|
|
49
|
+
t.date && /* @__PURE__ */ a("span", { className: r("text-[13px] leading-[16px]", e.date), children: t.date }),
|
|
50
|
+
/* @__PURE__ */ a("h3", { className: r("text-base font-medium", e.title), children: t.title })
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
g as PostCard
|
|
60
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { fieldProps as o } from "../../PostsList/schema.js";
|
|
2
|
+
import { C as r } from "../../types-c3843cc0.js";
|
|
3
|
+
import { PostCard as t } from "./PostCard.js";
|
|
4
|
+
const m = {
|
|
5
|
+
key: r.PostCard,
|
|
6
|
+
component: t,
|
|
7
|
+
propsToEdit: Object.keys(o)
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
m as postCardInfo
|
|
11
|
+
};
|
|
@@ -13,6 +13,8 @@ import "../../index-875e92ce.js";
|
|
|
13
13
|
import "../../const-53dff524.js";
|
|
14
14
|
import "../../Stepper/Stepper.js";
|
|
15
15
|
import "../../Segments/Segments.js";
|
|
16
|
+
import "../../Segments/info.js";
|
|
17
|
+
import "../../Segments/schema.js";
|
|
16
18
|
import "../../Video/VideoFull/VideoFull.js";
|
|
17
19
|
import "../../Video/VideoList/VideoList.js";
|
|
18
20
|
import "../../Video/VideoListMini/VideoListMini.js";
|
|
@@ -28,8 +30,9 @@ import "../../HeroPossibilityBanner/index.js";
|
|
|
28
30
|
import "../../PartnersColors/PartnersColors.js";
|
|
29
31
|
import "../../PreviewList/PreviewList.js";
|
|
30
32
|
import "../CardImage/CardImage.js";
|
|
33
|
+
import "../CardImage/info.js";
|
|
31
34
|
import "../ContentCard/ContentCard.js";
|
|
32
|
-
import { W as
|
|
35
|
+
import { W as yo, p as zo } from "../../info-72904479.js";
|
|
33
36
|
import "../ColoredCard/index.js";
|
|
34
37
|
import "../FeaturesCard/index.js";
|
|
35
38
|
import "../../DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
|
|
@@ -56,21 +59,23 @@ import "../../TasksBannerList/TasksBannerList.js";
|
|
|
56
59
|
import "../../TitleBlock/TitleBlock.js";
|
|
57
60
|
import "../../VideoMainBanner/VideoMainBanner.js";
|
|
58
61
|
import "react-dom";
|
|
62
|
+
import "../../ActionCardSecondaryList/info.js";
|
|
59
63
|
import "../../AnimatedSwiper/info.js";
|
|
60
64
|
import "../../Banner/info.js";
|
|
61
65
|
import "../../BannerAndText/info.js";
|
|
62
|
-
import "../../HeroIconsBanner/info.js";
|
|
63
66
|
import "../../ButtonsList/info.js";
|
|
64
67
|
import "../../CardIconList/info.js";
|
|
65
68
|
import "../../CardImageList/info.js";
|
|
66
69
|
import "../../CardImageSecondary/info.js";
|
|
67
70
|
import "../../CardImageSecondaryList/info.js";
|
|
68
71
|
import "../../CardInfoTable/info.js";
|
|
69
|
-
import "../CardImage/info.js";
|
|
70
72
|
import "../ColoredCard/info.js";
|
|
71
73
|
import "../ContentCard/info.js";
|
|
72
74
|
import "../FeaturesCard/info.js";
|
|
75
|
+
import "../InfoCard/info.js";
|
|
76
|
+
import "../PostCard/info.js";
|
|
73
77
|
import "../../ContentCardList/info.js";
|
|
78
|
+
import "../../CurrencyRates/info.js";
|
|
74
79
|
import "../../DownloadFile/components/DownloadFileBanner/info.js";
|
|
75
80
|
import "../../DownloadFile/components/DownloadFileBright/info.js";
|
|
76
81
|
import "../../DownloadFile/components/DownloadFileFull/info.js";
|
|
@@ -79,19 +84,24 @@ import "../../DownloadFile/components/DownloadFileMini/info.js";
|
|
|
79
84
|
import "../../Faq/info.js";
|
|
80
85
|
import "../../Footer/info.js";
|
|
81
86
|
import "../../Header/info.js";
|
|
87
|
+
import "../../HeroIconsBanner/info.js";
|
|
82
88
|
import "../../HeroPossibilityBanner/info.js";
|
|
83
89
|
import "../../IconList/info.js";
|
|
84
90
|
import "../../InfoBanner/info.js";
|
|
85
91
|
import "../../InfoBannerList/info.js";
|
|
92
|
+
import "../../InfoCardList/info.js";
|
|
86
93
|
import "../../InstructionList/info.js";
|
|
87
94
|
import "../../IntroBanner/info.js";
|
|
88
95
|
import "../../MainBanner/info.js";
|
|
89
96
|
import "../../MultiCards/info.js";
|
|
90
97
|
import "../../Partners/info.js";
|
|
91
98
|
import "../../PartnersColors/info.js";
|
|
99
|
+
import "../../PostsSlider/info.js";
|
|
92
100
|
import "../../PreviewList/info.js";
|
|
93
101
|
import "../../PromoPoster/info.js";
|
|
94
|
-
import "../../
|
|
102
|
+
import "../../SearchBlock/info.js";
|
|
103
|
+
import "../../SegmentedContent/info.js";
|
|
104
|
+
import "../../SegmentsIcons/info.js";
|
|
95
105
|
import "../../Space/info.js";
|
|
96
106
|
import "../../StandartTable/info.js";
|
|
97
107
|
import "../../Stepper/info.js";
|
|
@@ -104,10 +114,25 @@ import "../../Video/VideoListMini/info.js";
|
|
|
104
114
|
import "../../VideoMainBanner/info.js";
|
|
105
115
|
import "../../Actions/types.js";
|
|
106
116
|
import "../../Actions/projectActions.js";
|
|
117
|
+
import "../../Flex-86aee720.js";
|
|
107
118
|
import "../../HeroIconsBanner/HeroIconsBanner.js";
|
|
119
|
+
import "../../SegmentsIcons/SegmentsIcons.js";
|
|
120
|
+
import "../../SegmentsIcons/schema.js";
|
|
121
|
+
import "../../SegmentedContent/SegmentedContent.js";
|
|
122
|
+
import "../../SegmentedContent/schema.js";
|
|
123
|
+
import "../../InfoCardList/InfoCardList.js";
|
|
124
|
+
import "../../InfoCardList/schema.js";
|
|
125
|
+
import "../InfoCard/InfoCard.js";
|
|
126
|
+
import "../InfoCard/schema.js";
|
|
127
|
+
import "../../CurrencyRates/CurrencyRates.js";
|
|
128
|
+
import "../../CurrencyRates/schema.js";
|
|
129
|
+
import "../../ActionCardSecondaryList/ActionCardSecondaryList.js";
|
|
130
|
+
import "../ActionSecondaryCard/ActionSecondaryCard.js";
|
|
131
|
+
import "../PostCard/PostCard.js";
|
|
132
|
+
import "../../PostsSlider/PostsSlider.js";
|
|
108
133
|
import "../../Icon-70ea6cb8.js";
|
|
109
134
|
import "../../ComponentContainer-dca711c6.js";
|
|
110
135
|
export {
|
|
111
|
-
|
|
112
|
-
|
|
136
|
+
yo as WarningCard,
|
|
137
|
+
zo as propsToEdit
|
|
113
138
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OptionTypesEnum as e, DataTypesEnum as o } from "../../Types/FiledTypes.js";
|
|
2
|
-
import { p as r } from "../../palette-
|
|
2
|
+
import { p as r } from "../../palette-256cf77a.js";
|
|
3
3
|
import { g as n } from "../../generateSelectOptions-7b23cdb8.js";
|
|
4
4
|
var t = /* @__PURE__ */ ((a) => (a.Orange = "orange", a.Gray = "gray", a.Black = "black", a))(t || {});
|
|
5
5
|
const c = {
|