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,10 +1,12 @@
|
|
|
1
|
-
import { jsxs as b, jsx as
|
|
2
|
-
import { useState as A, useRef as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { jsxs as b, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as A, useRef as f } from "react";
|
|
3
|
+
import { Bullet as E } from "../SwiperList/components/Bullet/Bullet.js";
|
|
4
|
+
import { FieldTypes as l } from "../Types/FiledTypes.js";
|
|
5
|
+
import { A as I } from "../navigation-cd786a0d.js";
|
|
6
|
+
import { N as B } from "../navigation-266856e7.js";
|
|
7
|
+
import { a as C, b as L } from "../swiper-react-3c2710e8.js";
|
|
8
|
+
import { c as T } from "../createBoolean-56064b0d.js";
|
|
9
|
+
import { C as O, a as R } from "../index-0791c17f.js";
|
|
8
10
|
import { c as n } from "../cn-6a4bf187.js";
|
|
9
11
|
import { u as z } from "../useScreenSize-c1b64c02.js";
|
|
10
12
|
import { Slide as P } from "./Slide/Slide.js";
|
|
@@ -13,15 +15,15 @@ const F = {
|
|
|
13
15
|
label: "Карточки слайдера",
|
|
14
16
|
dataType: "array",
|
|
15
17
|
data: {
|
|
16
|
-
title:
|
|
17
|
-
description:
|
|
18
|
-
image:
|
|
19
|
-
icon:
|
|
20
|
-
is_black:
|
|
21
|
-
is_promo:
|
|
22
|
-
is_yellow:
|
|
18
|
+
title: l.TITLE,
|
|
19
|
+
description: l.DESCRIPTION,
|
|
20
|
+
image: l.FILE,
|
|
21
|
+
icon: l.FILE,
|
|
22
|
+
is_black: l.BOOLEAN,
|
|
23
|
+
is_promo: l.BOOLEAN,
|
|
24
|
+
is_yellow: l.BOOLEAN
|
|
23
25
|
}
|
|
24
|
-
}, _ =
|
|
26
|
+
}, _ = T({
|
|
25
27
|
label: "Тема темного цвета",
|
|
26
28
|
type: "isLight"
|
|
27
29
|
}), j = [
|
|
@@ -38,21 +40,21 @@ function V({
|
|
|
38
40
|
isLight: y = !1,
|
|
39
41
|
isButton: u = !0
|
|
40
42
|
}) {
|
|
41
|
-
const [a, h] = A(1), S =
|
|
43
|
+
const [a, h] = A(1), S = f(null), i = z(960), r = i ? 1.2 : 3, v = i ? 16 : 0, N = w ? {
|
|
42
44
|
delay: 3e3,
|
|
43
45
|
disableOnInteraction: !1,
|
|
44
46
|
waitForTransition: !0
|
|
45
|
-
} : !1, c =
|
|
47
|
+
} : !1, c = f(null), g = f(null), p = (e == null ? void 0 : e.length) <= r + 1 ? [...e, ...e] : e, d = (e == null ? void 0 : e.length) <= r + 1 ? a % (e == null ? void 0 : e.length) : a;
|
|
46
48
|
return /* @__PURE__ */ b("div", { className: "flex flex-col items-center gap-6 h-fit max-w-[1232px] w-full mx-auto px-4 relative max-tablet:max-w-full max-tablet:p-0", children: [
|
|
47
|
-
x && /* @__PURE__ */
|
|
49
|
+
x && /* @__PURE__ */ o("p", { className: "text-[44px] leading-[52px] font-bold text-center mb-[48px]", children: x }),
|
|
48
50
|
/* @__PURE__ */ b("div", { className: "relative w-full h-[346px] max-tablet:h-fit", children: [
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
|
|
51
|
+
/* @__PURE__ */ o(
|
|
52
|
+
C,
|
|
51
53
|
{
|
|
52
|
-
modules: [
|
|
54
|
+
modules: [B, I],
|
|
53
55
|
className: "feature_swiper",
|
|
54
56
|
initialSlide: 0,
|
|
55
|
-
slidesPerView:
|
|
57
|
+
slidesPerView: r,
|
|
56
58
|
spaceBetween: v,
|
|
57
59
|
centeredSlides: !0,
|
|
58
60
|
speed: 500,
|
|
@@ -61,17 +63,17 @@ function V({
|
|
|
61
63
|
S.current = t, h(t.realIndex);
|
|
62
64
|
},
|
|
63
65
|
onBeforeTransitionStart: (t) => {
|
|
64
|
-
let
|
|
65
|
-
h(
|
|
66
|
+
let s = t.realIndex;
|
|
67
|
+
h(s);
|
|
66
68
|
},
|
|
67
69
|
navigation: {
|
|
68
70
|
nextEl: c.current,
|
|
69
71
|
prevEl: g.current
|
|
70
72
|
},
|
|
71
73
|
loop: !0,
|
|
72
|
-
children: p == null ? void 0 : p.map((t,
|
|
73
|
-
const
|
|
74
|
-
return /* @__PURE__ */
|
|
74
|
+
children: p == null ? void 0 : p.map((t, s) => {
|
|
75
|
+
const m = s === a;
|
|
76
|
+
return /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(
|
|
75
77
|
P,
|
|
76
78
|
{
|
|
77
79
|
image: t == null ? void 0 : t.image,
|
|
@@ -80,14 +82,14 @@ function V({
|
|
|
80
82
|
className: n(
|
|
81
83
|
"h-[314px] transition-all duration-500 transform scale-[0.85] relative max-tablet:h-[288px] max-tablet:scale-100",
|
|
82
84
|
{
|
|
83
|
-
"!h-[346px] !w-full transform scale-100 flex flex-col gap-[40px] md:h-auto md:gap-6":
|
|
85
|
+
"!h-[346px] !w-full transform scale-100 flex flex-col gap-[40px] md:h-auto md:gap-6": m && !i
|
|
84
86
|
}
|
|
85
87
|
),
|
|
86
88
|
imgClassName: n({
|
|
87
|
-
"h-[122px] w-[122px]":
|
|
89
|
+
"h-[122px] w-[122px]": m && !i
|
|
88
90
|
}),
|
|
89
91
|
imgStyle: n({
|
|
90
|
-
"h-[122px] w-[122px]":
|
|
92
|
+
"h-[122px] w-[122px]": m && !i
|
|
91
93
|
}),
|
|
92
94
|
isLight: y
|
|
93
95
|
}
|
|
@@ -95,15 +97,15 @@ function V({
|
|
|
95
97
|
})
|
|
96
98
|
}
|
|
97
99
|
),
|
|
98
|
-
u && /* @__PURE__ */
|
|
100
|
+
u && /* @__PURE__ */ o(
|
|
99
101
|
"button",
|
|
100
102
|
{
|
|
101
103
|
ref: g,
|
|
102
104
|
className: n(
|
|
103
105
|
"absolute h-[40px] w-[40px] left-0 top-[200px] translate-x-[-50%] translate-y-[-50%] z-10 p-[8px] rounded-[50%] bg-graySoft border-none cursor-pointer max-tablet:hidden"
|
|
104
106
|
),
|
|
105
|
-
children: /* @__PURE__ */
|
|
106
|
-
|
|
107
|
+
children: /* @__PURE__ */ o(
|
|
108
|
+
O,
|
|
107
109
|
{
|
|
108
110
|
size: 24,
|
|
109
111
|
color: "#ffffff"
|
|
@@ -111,15 +113,15 @@ function V({
|
|
|
111
113
|
)
|
|
112
114
|
}
|
|
113
115
|
),
|
|
114
|
-
u && /* @__PURE__ */
|
|
116
|
+
u && /* @__PURE__ */ o(
|
|
115
117
|
"button",
|
|
116
118
|
{
|
|
117
119
|
ref: c,
|
|
118
120
|
className: n(
|
|
119
121
|
"absolute h-[40px] w-[40px] right-0 top-[200px] translate-x-[-50%] translate-y-[-50%] z-10 p-[8px] rounded-[50%] bg-graySoft border-none cursor-pointer max-tablet:hidden"
|
|
120
122
|
),
|
|
121
|
-
children: /* @__PURE__ */
|
|
122
|
-
|
|
123
|
+
children: /* @__PURE__ */ o(
|
|
124
|
+
R,
|
|
123
125
|
{
|
|
124
126
|
size: 24,
|
|
125
127
|
color: "#ffffff"
|
|
@@ -128,8 +130,8 @@ function V({
|
|
|
128
130
|
}
|
|
129
131
|
)
|
|
130
132
|
] }),
|
|
131
|
-
(e == null ? void 0 : e.length) && /* @__PURE__ */
|
|
132
|
-
|
|
133
|
+
(e == null ? void 0 : e.length) && /* @__PURE__ */ o(
|
|
134
|
+
E,
|
|
133
135
|
{
|
|
134
136
|
count: e.length,
|
|
135
137
|
active: d,
|
|
@@ -1,94 +1,135 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
1
|
+
import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { useState as S } from "react";
|
|
2
3
|
import { CardImage as g } from "../Cards/CardImage/CardImage.js";
|
|
3
4
|
import "../Cards/CardImage/info.js";
|
|
4
|
-
import { CardImageVariant as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
import { CardImageVariant as r, CardImageSize as n } from "../Cards/CardImage/types.js";
|
|
6
|
+
import { Bullet as C } from "../SwiperList/components/Bullet/Bullet.js";
|
|
7
|
+
import { a as u, b as N } from "../swiper-react-3c2710e8.js";
|
|
8
|
+
import { B as A } from "../index-875e92ce.js";
|
|
9
|
+
import { C as I } from "../ComponentContainer-dca711c6.js";
|
|
10
|
+
import { F as R } from "../Flex-86aee720.js";
|
|
11
|
+
import { c as o } from "../cn-6a4bf187.js";
|
|
12
|
+
import { propsToEdit as v } from "./schema.js";
|
|
13
|
+
import '../assets/swiper.css';/* empty css */const b = {
|
|
14
|
+
[r.PRIMARY]: {
|
|
12
15
|
title: "text-black",
|
|
13
|
-
description: "text-graySoft"
|
|
14
|
-
container: ""
|
|
16
|
+
description: "text-graySoft"
|
|
15
17
|
},
|
|
16
|
-
[
|
|
18
|
+
[r.SECONDARY]: {
|
|
17
19
|
title: "text-white",
|
|
18
|
-
description: "text-white/80"
|
|
19
|
-
container: "max-w-[1440px]"
|
|
20
|
+
description: "text-white/80"
|
|
20
21
|
}
|
|
21
|
-
},
|
|
22
|
-
[n.SMALL]:
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
|
|
22
|
+
}, E = {
|
|
23
|
+
[n.SMALL]: {
|
|
24
|
+
title: "font-extrabold text-[52px] max-tablet:text-[28px] leading-none max-tablet:leading-9 max-tablet:font-bold"
|
|
25
|
+
},
|
|
26
|
+
[n.LARGE]: {
|
|
27
|
+
title: "font-bold max-tablet:text-[26px] text-[44px] max-tablet:leading-[32px] leading-[42px]"
|
|
28
|
+
}
|
|
29
|
+
}, z = ({
|
|
30
|
+
cards: i,
|
|
26
31
|
title: s,
|
|
27
32
|
description: p,
|
|
28
|
-
grid:
|
|
33
|
+
grid: h,
|
|
29
34
|
button: x,
|
|
30
|
-
variant:
|
|
31
|
-
size:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
o
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
35
|
+
variant: l = r.PRIMARY,
|
|
36
|
+
size: m = n.LARGE,
|
|
37
|
+
is_mobile_slider: f = !1
|
|
38
|
+
}) => {
|
|
39
|
+
const [a, w] = S(0);
|
|
40
|
+
return /* @__PURE__ */ t(I, { children: /* @__PURE__ */ c(
|
|
41
|
+
R,
|
|
42
|
+
{
|
|
43
|
+
vertical: !0,
|
|
44
|
+
align: "center",
|
|
45
|
+
gap: 24,
|
|
46
|
+
className: "w-full",
|
|
47
|
+
children: [
|
|
48
|
+
s && /* @__PURE__ */ t(
|
|
49
|
+
"h2",
|
|
50
|
+
{
|
|
51
|
+
className: o(
|
|
52
|
+
"text-center mb-6 max-tablet:mb-2 font-variant-numeric font-feature-settings",
|
|
53
|
+
E[m].title,
|
|
54
|
+
b[l].title
|
|
55
|
+
),
|
|
56
|
+
children: s
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
p && /* @__PURE__ */ t(
|
|
60
|
+
"p",
|
|
61
|
+
{
|
|
62
|
+
className: o(
|
|
63
|
+
"text-lg leading-[26px] text-center",
|
|
64
|
+
b[l].description
|
|
65
|
+
),
|
|
66
|
+
children: p
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
/* @__PURE__ */ t(
|
|
70
|
+
"div",
|
|
71
|
+
{
|
|
72
|
+
className: o(
|
|
73
|
+
`w-full grid grid-cols-${h} items-stretch gap-6`,
|
|
74
|
+
f ? "max-tablet:hidden" : "max-tablet:grid-cols-1"
|
|
75
|
+
),
|
|
76
|
+
children: i == null ? void 0 : i.map((e) => /* @__PURE__ */ t(
|
|
77
|
+
g,
|
|
78
|
+
{
|
|
79
|
+
data: {
|
|
80
|
+
...e,
|
|
81
|
+
variant: l || (e == null ? void 0 : e.variant),
|
|
82
|
+
size: m || (e == null ? void 0 : e.size)
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
e == null ? void 0 : e.id
|
|
86
|
+
))
|
|
87
|
+
}
|
|
88
|
+
),
|
|
89
|
+
f && /* @__PURE__ */ c("div", { className: "w-full hidden max-tablet:block", children: [
|
|
90
|
+
/* @__PURE__ */ t(
|
|
91
|
+
u,
|
|
92
|
+
{
|
|
93
|
+
spaceBetween: 12,
|
|
94
|
+
slidesPerView: 1.5,
|
|
95
|
+
slidesOffsetBefore: 16,
|
|
96
|
+
slidesOffsetAfter: 16,
|
|
97
|
+
onSlideChange: (e) => w(e.realIndex),
|
|
98
|
+
children: i == null ? void 0 : i.map((e) => /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(
|
|
99
|
+
g,
|
|
100
|
+
{
|
|
101
|
+
data: {
|
|
102
|
+
...e,
|
|
103
|
+
variant: l || (e == null ? void 0 : e.variant),
|
|
104
|
+
size: m || (e == null ? void 0 : e.size)
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
) }, e == null ? void 0 : e.id))
|
|
108
|
+
}
|
|
67
109
|
),
|
|
68
|
-
|
|
69
|
-
|
|
110
|
+
/* @__PURE__ */ t(
|
|
111
|
+
C,
|
|
70
112
|
{
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
N.propsToEdit = w;
|
|
113
|
+
count: (i == null ? void 0 : i.length) || 0,
|
|
114
|
+
active: a,
|
|
115
|
+
activeColor: l === r.SECONDARY ? "white" : "black",
|
|
116
|
+
anActiveColor: l === r.SECONDARY ? "rgba(255, 255, 255, 0.4)" : "rgba(0, 0, 0, 0.2)",
|
|
117
|
+
className: "mt-8 hidden max-tablet:flex"
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
] }),
|
|
121
|
+
x && /* @__PURE__ */ t("div", { className: "flex flex-wrap gap-4", children: /* @__PURE__ */ t(
|
|
122
|
+
A,
|
|
123
|
+
{
|
|
124
|
+
className: o("w-fit z-10 max-tablet:w-full"),
|
|
125
|
+
...x
|
|
126
|
+
}
|
|
127
|
+
) })
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
) });
|
|
131
|
+
};
|
|
132
|
+
z.propsToEdit = v;
|
|
92
133
|
export {
|
|
93
|
-
|
|
134
|
+
z as CardImageList
|
|
94
135
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { AllActionsObject as
|
|
2
|
-
import { CardImageVariant as e, CardImageSize as
|
|
1
|
+
import { AllActionsObject as t } from "../Actions/types.js";
|
|
2
|
+
import { CardImageVariant as e, CardImageSize as l } from "../Cards/CardImage/types.js";
|
|
3
3
|
import { FieldTypes as a } from "../Types/FiledTypes.js";
|
|
4
|
-
import { B as
|
|
5
|
-
const
|
|
4
|
+
import { B as i } from "../const-53dff524.js";
|
|
5
|
+
const r = {
|
|
6
6
|
type: "cards",
|
|
7
7
|
dataType: "array",
|
|
8
8
|
label: "Карточки",
|
|
9
9
|
data: {
|
|
10
|
-
action:
|
|
10
|
+
action: t,
|
|
11
11
|
title: a.TITLE,
|
|
12
12
|
description: a.DESCRIPTION,
|
|
13
13
|
image: a.FILE,
|
|
@@ -31,27 +31,32 @@ const i = {
|
|
|
31
31
|
}, s = {
|
|
32
32
|
label: "Размер",
|
|
33
33
|
key: "size",
|
|
34
|
-
value:
|
|
34
|
+
value: l.LARGE,
|
|
35
35
|
options: [
|
|
36
36
|
{
|
|
37
37
|
label: "Large",
|
|
38
|
-
value:
|
|
38
|
+
value: l.LARGE
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
label: "Small",
|
|
42
|
-
value:
|
|
42
|
+
value: l.SMALL
|
|
43
43
|
}
|
|
44
44
|
],
|
|
45
45
|
type: a.VARIANT
|
|
46
|
-
},
|
|
46
|
+
}, c = [
|
|
47
47
|
"title",
|
|
48
48
|
"description",
|
|
49
49
|
o,
|
|
50
50
|
s,
|
|
51
|
-
|
|
51
|
+
r,
|
|
52
52
|
"grid",
|
|
53
|
-
|
|
53
|
+
i,
|
|
54
|
+
{
|
|
55
|
+
type: a.BOOLEAN,
|
|
56
|
+
label: "Слайдер на мобилке",
|
|
57
|
+
key: "is_mobile_slider"
|
|
58
|
+
}
|
|
54
59
|
];
|
|
55
60
|
export {
|
|
56
|
-
|
|
61
|
+
c as propsToEdit
|
|
57
62
|
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { actionsGenerator as s } from "../../Actions/actionsGenerator.js";
|
|
3
|
+
import { F as l } from "../../Flex-86aee720.js";
|
|
4
|
+
import { I as p } from "../../index-9384c6d6.js";
|
|
5
|
+
import { c as r } from "../../cn-6a4bf187.js";
|
|
6
|
+
import { ActionSecondaryCardVariant as i } from "./types.js";
|
|
7
|
+
const m = {
|
|
8
|
+
[i.PRIMARY]: {
|
|
9
|
+
container: "bg-white backdrop-blur-[2px]",
|
|
10
|
+
title: "text-blackBG",
|
|
11
|
+
description: "text-graySoft"
|
|
12
|
+
},
|
|
13
|
+
[i.SECONDARY]: {
|
|
14
|
+
container: "bg-white/15 backdrop-blur-[2px] border border-white/15",
|
|
15
|
+
title: "text-white",
|
|
16
|
+
description: "text-[#F4F6F7]"
|
|
17
|
+
}
|
|
18
|
+
}, y = ({
|
|
19
|
+
item: t,
|
|
20
|
+
variant: n = i.PRIMARY
|
|
21
|
+
}) => {
|
|
22
|
+
const a = m[n], { onClick: c } = s(t.action);
|
|
23
|
+
return /* @__PURE__ */ o(
|
|
24
|
+
l,
|
|
25
|
+
{
|
|
26
|
+
justify: "between",
|
|
27
|
+
gap: 12,
|
|
28
|
+
onClick: c,
|
|
29
|
+
className: r(
|
|
30
|
+
"w-full rounded-3xl cursor-pointer overflow-hidden min-h-[152px] max-tablet:min-h-[80px] transition-opacity hover:opacity-80",
|
|
31
|
+
a.container
|
|
32
|
+
),
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ o(
|
|
35
|
+
l,
|
|
36
|
+
{
|
|
37
|
+
vertical: !0,
|
|
38
|
+
justify: "center",
|
|
39
|
+
gap: 12,
|
|
40
|
+
className: "h-full py-8 pl-8 max-tablet:pl-4 max-tablet:py-4 max-w-[50%]",
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ e(
|
|
43
|
+
"h4",
|
|
44
|
+
{
|
|
45
|
+
className: r("text-xl font-bold max-tablet:text-base", a.title),
|
|
46
|
+
children: t.title
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ e(
|
|
50
|
+
"p",
|
|
51
|
+
{
|
|
52
|
+
className: r(
|
|
53
|
+
"text-base leading-6 max-tablet:hidden",
|
|
54
|
+
a.description
|
|
55
|
+
),
|
|
56
|
+
children: t.description
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
/* @__PURE__ */ e("div", { className: "h-full pr-8 max-tablet:pr-4", children: /* @__PURE__ */ e(
|
|
63
|
+
p,
|
|
64
|
+
{
|
|
65
|
+
src: t.image,
|
|
66
|
+
alt: t.title,
|
|
67
|
+
className: "w-fit h-full",
|
|
68
|
+
imageStyles: "w-auto max-h-[152px] max-tablet:max-h-[80px] object-contain"
|
|
69
|
+
}
|
|
70
|
+
) })
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
};
|
|
75
|
+
export {
|
|
76
|
+
y as ActionSecondaryCard
|
|
77
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { propsToEdit as o } from "../../ActionCardSecondaryList/schema.js";
|
|
2
|
+
import { C as t } from "../../index-0a5f313c.js";
|
|
3
|
+
const i = {
|
|
4
|
+
title: "Акционная карта (вторичная)",
|
|
5
|
+
description: "Карточка с заголовком и картинкой",
|
|
6
|
+
types: [t.cards],
|
|
7
|
+
propsToEdit: o
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
i as actionSecondaryCardInfo
|
|
11
|
+
};
|