md-components-mdigial-azamat 0.0.112 → 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 +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-29ccdfcc.js} +5 -3
- package/dist/{data.mock-ebc679ec.js → data.mock-bb32e8ee.js} +420 -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-72904479.js +791 -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
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as x, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { actionsGenerator as f } from "../../Actions/actionsGenerator.js";
|
|
3
3
|
import "../../Actions/projectActions.js";
|
|
4
4
|
import "../../Actions/types.js";
|
|
5
5
|
import { F as p } from "../../Flex-86aee720.js";
|
|
6
|
-
import { I as
|
|
6
|
+
import { I as w } from "../../index-9384c6d6.js";
|
|
7
7
|
import { c as t } from "../../cn-6a4bf187.js";
|
|
8
|
-
import { propsToEdit as
|
|
9
|
-
import { CardImageVariant as
|
|
8
|
+
import { propsToEdit as u } from "./schema.js";
|
|
9
|
+
import { CardImageVariant as l, CardImageSize as m } from "./types.js";
|
|
10
10
|
const o = {
|
|
11
|
-
[
|
|
12
|
-
|
|
11
|
+
[l.PRIMARY]: {
|
|
12
|
+
container: "bg-white",
|
|
13
13
|
title: "text-blackBG",
|
|
14
14
|
description: "text-graySoft"
|
|
15
15
|
},
|
|
16
|
-
[
|
|
17
|
-
|
|
16
|
+
[l.SECONDARY]: {
|
|
17
|
+
container: "bg-white/15 backdrop-blur-[15px]",
|
|
18
18
|
title: "text-white",
|
|
19
19
|
description: "text-white/80"
|
|
20
20
|
}
|
|
21
21
|
}, a = {
|
|
22
|
-
[
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
27
|
},
|
|
28
|
-
[
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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"
|
|
33
33
|
}
|
|
34
|
-
},
|
|
34
|
+
}, I = ({ data: s }) => {
|
|
35
35
|
const {
|
|
36
|
-
variant: i =
|
|
37
|
-
size: e =
|
|
38
|
-
title:
|
|
39
|
-
description:
|
|
40
|
-
image:
|
|
41
|
-
action:
|
|
42
|
-
is_black:
|
|
43
|
-
} =
|
|
44
|
-
return /* @__PURE__ */
|
|
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
45
|
p,
|
|
46
46
|
{
|
|
47
47
|
...h,
|
|
@@ -50,69 +50,67 @@ const o = {
|
|
|
50
50
|
justify: "between",
|
|
51
51
|
className: t(
|
|
52
52
|
"w-full overflow-hidden flex-1 transition-colors duration-300",
|
|
53
|
-
o[i].
|
|
54
|
-
a[e].
|
|
53
|
+
o[i].container,
|
|
54
|
+
a[e].container,
|
|
55
55
|
{
|
|
56
|
-
"!bg-black":
|
|
56
|
+
"!bg-black": n
|
|
57
57
|
}
|
|
58
58
|
),
|
|
59
59
|
children: [
|
|
60
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ x(
|
|
61
61
|
p,
|
|
62
62
|
{
|
|
63
63
|
vertical: !0,
|
|
64
64
|
align: "center",
|
|
65
|
-
className: t("w-full", a[e].
|
|
65
|
+
className: t("w-full", a[e].content),
|
|
66
66
|
children: [
|
|
67
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ r(
|
|
68
68
|
"p",
|
|
69
69
|
{
|
|
70
70
|
className: t(
|
|
71
71
|
"font-bold text-2xl text-center max-tablet:text-xl max-tablet:leading-6",
|
|
72
72
|
o[i].title,
|
|
73
73
|
{
|
|
74
|
-
"text-white":
|
|
74
|
+
"text-white": n
|
|
75
75
|
}
|
|
76
76
|
),
|
|
77
|
-
children:
|
|
77
|
+
children: c
|
|
78
78
|
}
|
|
79
79
|
),
|
|
80
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ r(
|
|
81
81
|
"p",
|
|
82
82
|
{
|
|
83
83
|
className: t(
|
|
84
84
|
"text-base leading-6 text-center max-tablet:text-sm max-tablet:leading-5",
|
|
85
85
|
o[i].description,
|
|
86
|
+
a[e].description,
|
|
86
87
|
{
|
|
87
|
-
"!text-white/80":
|
|
88
|
+
"!text-white/80": n
|
|
88
89
|
}
|
|
89
90
|
),
|
|
90
|
-
children:
|
|
91
|
+
children: d
|
|
91
92
|
}
|
|
92
93
|
)
|
|
93
94
|
]
|
|
94
95
|
}
|
|
95
96
|
),
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
|
|
97
|
+
/* @__PURE__ */ r(
|
|
98
|
+
w,
|
|
98
99
|
{
|
|
99
|
-
src:
|
|
100
|
-
alt:
|
|
100
|
+
src: b,
|
|
101
|
+
alt: c,
|
|
101
102
|
className: t(
|
|
102
103
|
"w-full box-border max-tablet:h-[200px]",
|
|
103
|
-
a[e].
|
|
104
|
+
a[e].image
|
|
104
105
|
),
|
|
105
|
-
imageStyles:
|
|
106
|
-
a[e].imgWidth,
|
|
107
|
-
"h-full max-tablet:w-[200px] object-contain"
|
|
108
|
-
)
|
|
106
|
+
imageStyles: "h-full max-tablet:w-[200px] object-contain"
|
|
109
107
|
}
|
|
110
108
|
)
|
|
111
109
|
]
|
|
112
110
|
}
|
|
113
111
|
);
|
|
114
112
|
};
|
|
115
|
-
|
|
113
|
+
I.propsToEdit = u;
|
|
116
114
|
export {
|
|
117
|
-
|
|
115
|
+
I as CardImage
|
|
118
116
|
};
|
|
@@ -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";
|
|
@@ -30,7 +32,7 @@ import "../../PreviewList/PreviewList.js";
|
|
|
30
32
|
import "../CardImage/CardImage.js";
|
|
31
33
|
import "../CardImage/info.js";
|
|
32
34
|
import "../ContentCard/ContentCard.js";
|
|
33
|
-
import { W as
|
|
35
|
+
import { W as yo, p as zo } from "../../info-72904479.js";
|
|
34
36
|
import "../ColoredCard/index.js";
|
|
35
37
|
import "../FeaturesCard/index.js";
|
|
36
38
|
import "../../DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
|
|
@@ -57,6 +59,7 @@ import "../../TasksBannerList/TasksBannerList.js";
|
|
|
57
59
|
import "../../TitleBlock/TitleBlock.js";
|
|
58
60
|
import "../../VideoMainBanner/VideoMainBanner.js";
|
|
59
61
|
import "react-dom";
|
|
62
|
+
import "../../ActionCardSecondaryList/info.js";
|
|
60
63
|
import "../../AnimatedSwiper/info.js";
|
|
61
64
|
import "../../Banner/info.js";
|
|
62
65
|
import "../../BannerAndText/info.js";
|
|
@@ -69,7 +72,10 @@ import "../../CardInfoTable/info.js";
|
|
|
69
72
|
import "../ColoredCard/info.js";
|
|
70
73
|
import "../ContentCard/info.js";
|
|
71
74
|
import "../FeaturesCard/info.js";
|
|
75
|
+
import "../InfoCard/info.js";
|
|
76
|
+
import "../PostCard/info.js";
|
|
72
77
|
import "../../ContentCardList/info.js";
|
|
78
|
+
import "../../CurrencyRates/info.js";
|
|
73
79
|
import "../../DownloadFile/components/DownloadFileBanner/info.js";
|
|
74
80
|
import "../../DownloadFile/components/DownloadFileBright/info.js";
|
|
75
81
|
import "../../DownloadFile/components/DownloadFileFull/info.js";
|
|
@@ -83,16 +89,19 @@ 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
102
|
import "../../SearchBlock/info.js";
|
|
95
|
-
import "../../
|
|
103
|
+
import "../../SegmentedContent/info.js";
|
|
104
|
+
import "../../SegmentsIcons/info.js";
|
|
96
105
|
import "../../Space/info.js";
|
|
97
106
|
import "../../StandartTable/info.js";
|
|
98
107
|
import "../../Stepper/info.js";
|
|
@@ -107,9 +116,23 @@ import "../../Actions/types.js";
|
|
|
107
116
|
import "../../Actions/projectActions.js";
|
|
108
117
|
import "../../Flex-86aee720.js";
|
|
109
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";
|
|
110
133
|
import "../../Icon-70ea6cb8.js";
|
|
111
134
|
import "../../ComponentContainer-dca711c6.js";
|
|
112
135
|
export {
|
|
113
|
-
|
|
114
|
-
|
|
136
|
+
yo as WarningCard,
|
|
137
|
+
zo as propsToEdit
|
|
115
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 = {
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { C as x } from "../ComponentContainer-dca711c6.js";
|
|
3
|
+
import { F as a } from "../Flex-86aee720.js";
|
|
4
|
+
import { c } from "../cn-6a4bf187.js";
|
|
5
|
+
import { Calculator as b } from "./components/Calculator.js";
|
|
6
|
+
import { RatesTable as d } from "./components/RatesTable.js";
|
|
7
|
+
import { propsToEdit as f } from "./schema.js";
|
|
8
|
+
import { CurrencyRatesVariant as r } from "./types.js";
|
|
9
|
+
const h = {
|
|
10
|
+
[r.PRIMARY]: {
|
|
11
|
+
container: "bg-white text-blackBG",
|
|
12
|
+
title: "text-blackBG"
|
|
13
|
+
},
|
|
14
|
+
[r.SECONDARY]: {
|
|
15
|
+
container: "bg-white/15 backdrop-blur-[20px] border border-white/15 text-white",
|
|
16
|
+
title: "text-white"
|
|
17
|
+
}
|
|
18
|
+
}, u = ({
|
|
19
|
+
title: m = "Курсы валют",
|
|
20
|
+
calculatorTitle: p = "Калькулятор",
|
|
21
|
+
rates: t,
|
|
22
|
+
variant: o = r.PRIMARY
|
|
23
|
+
}) => {
|
|
24
|
+
var i;
|
|
25
|
+
const l = h[o], s = ((i = t == null ? void 0 : t[0]) == null ? void 0 : i.symbol) || "c";
|
|
26
|
+
return /* @__PURE__ */ e(x, { children: /* @__PURE__ */ n(
|
|
27
|
+
a,
|
|
28
|
+
{
|
|
29
|
+
vertical: !0,
|
|
30
|
+
gap: 16,
|
|
31
|
+
className: c(
|
|
32
|
+
"w-full rounded-3xl p-8 max-tablet:p-4",
|
|
33
|
+
l.container
|
|
34
|
+
),
|
|
35
|
+
children: [
|
|
36
|
+
/* @__PURE__ */ e(
|
|
37
|
+
"h2",
|
|
38
|
+
{
|
|
39
|
+
className: c(
|
|
40
|
+
"text-[28px] font-bold leading-[42px] max-tablet:text-[22px] max-tablet:leading-[26px]",
|
|
41
|
+
l.title
|
|
42
|
+
),
|
|
43
|
+
children: m
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
/* @__PURE__ */ n(
|
|
47
|
+
a,
|
|
48
|
+
{
|
|
49
|
+
vertical: !0,
|
|
50
|
+
gap: 32,
|
|
51
|
+
className: "w-full",
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ e(
|
|
54
|
+
b,
|
|
55
|
+
{
|
|
56
|
+
title: p,
|
|
57
|
+
symbol: s,
|
|
58
|
+
variant: o
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
t && t.length > 0 && /* @__PURE__ */ e(
|
|
62
|
+
d,
|
|
63
|
+
{
|
|
64
|
+
rates: t,
|
|
65
|
+
variant: o
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
) });
|
|
74
|
+
};
|
|
75
|
+
u.propsToEdit = f;
|
|
76
|
+
export {
|
|
77
|
+
u as CurrencyRates
|
|
78
|
+
};
|