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,36 @@
|
|
|
1
|
+
import { FieldTypes as a } from "../Types/FiledTypes.js";
|
|
2
|
+
const e = [
|
|
3
|
+
"title",
|
|
4
|
+
"placeholder",
|
|
5
|
+
{
|
|
6
|
+
type: "data",
|
|
7
|
+
label: "Стили",
|
|
8
|
+
dataType: "object",
|
|
9
|
+
data: {
|
|
10
|
+
keys: {
|
|
11
|
+
background: a.STRING
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
type: "data",
|
|
17
|
+
label: "Теги",
|
|
18
|
+
dataType: "object",
|
|
19
|
+
data: {
|
|
20
|
+
keys: {
|
|
21
|
+
tags: {
|
|
22
|
+
label: "Список тегов",
|
|
23
|
+
dataType: "array",
|
|
24
|
+
type: "items",
|
|
25
|
+
data: {
|
|
26
|
+
label: a.STRING,
|
|
27
|
+
action: a.STRING
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
];
|
|
34
|
+
export {
|
|
35
|
+
e as propsToEdit
|
|
36
|
+
};
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { useState as d, useEffect as v } from "react";
|
|
3
|
+
import { actionsGenerator as k } from "../Actions/actionsGenerator.js";
|
|
4
|
+
import { SegmentsIcons as S } from "../SegmentsIcons/SegmentsIcons.js";
|
|
5
|
+
import "../SegmentsIcons/schema.js";
|
|
6
|
+
import "../SegmentsIcons/info.js";
|
|
7
|
+
import { Bullet as _ } from "../SwiperList/components/Bullet/Bullet.js";
|
|
8
|
+
import { a as N, b as x } from "../swiper-react-3c2710e8.js";
|
|
9
|
+
import { B as L } from "../index-875e92ce.js";
|
|
10
|
+
import { C as B } from "../ComponentContainer-dca711c6.js";
|
|
11
|
+
import { F as f } from "../Flex-86aee720.js";
|
|
12
|
+
import { G as I } from "../Grid-331af266.js";
|
|
13
|
+
import { c as M } from "../cn-6a4bf187.js";
|
|
14
|
+
import { ContentCard as r } from "./components/ContentCard.js";
|
|
15
|
+
import { propsToEdit as G } from "./schema.js";
|
|
16
|
+
import '../assets/swiper.css';/* empty css */const R = ({
|
|
17
|
+
gradient: c = "",
|
|
18
|
+
color: n,
|
|
19
|
+
className: a,
|
|
20
|
+
size: o = 24
|
|
21
|
+
}) => /* @__PURE__ */ e(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
className: M(a),
|
|
25
|
+
style: {
|
|
26
|
+
width: o,
|
|
27
|
+
height: o,
|
|
28
|
+
background: n || c,
|
|
29
|
+
WebkitMaskImage: `url("data:image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' width='12' height='22' viewBox='0 0 12 22'> <path fill='black' d='M8.58579 10L0 1.41421L1.41421 0L10 8.58579C10.0128 8.59862 10.0257 8.61144 10.0385 8.62425C10.3384 8.92405 10.6299 9.21542 10.8379 9.48809C11.0724 9.79548 11.2929 10.1934 11.2929 10.7071C11.2929 11.2208 11.0724 11.6187 10.8379 11.9261C10.6299 12.1988 10.3384 12.4901 10.0385 12.7899C10.0257 12.8027 10.0128 12.8156 10 12.8284L1.41421 21.4142L0 20L8.58579 11.4142C8.93911 11.0609 9.13147 10.8655 9.24787 10.713C9.24939 10.711 9.25087 10.709 9.25231 10.7071C9.25087 10.7052 9.24939 10.7032 9.24787 10.7013C9.13147 10.5487 8.93911 10.3533 8.58579 10Z'/> </svg>")`,
|
|
30
|
+
WebkitMaskRepeat: "no-repeat",
|
|
31
|
+
WebkitMaskSize: "contain",
|
|
32
|
+
WebkitMaskPosition: "center"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
), W = ({ title: c, items: n }) => {
|
|
36
|
+
var p, m, g, h;
|
|
37
|
+
const [a, o] = d(0), [w, u] = d(0), [l, b] = d(null), t = n == null ? void 0 : n[a], C = (n == null ? void 0 : n.map((s) => s.segment)) || [];
|
|
38
|
+
return v(() => {
|
|
39
|
+
l && l.slideTo(0);
|
|
40
|
+
}, [a, l]), n != null && n.length ? /* @__PURE__ */ e(B, { children: /* @__PURE__ */ i(
|
|
41
|
+
f,
|
|
42
|
+
{
|
|
43
|
+
vertical: !0,
|
|
44
|
+
align: "center",
|
|
45
|
+
className: "gap-12 max-tablet:gap-6",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ e("h2", { className: "text-center text-white max-tablet:text-[32px] max-tablet:leading-10 max-tablet:font-bold text-[56px] leading-[52px] font-extrabold", children: c }),
|
|
48
|
+
/* @__PURE__ */ e(
|
|
49
|
+
S,
|
|
50
|
+
{
|
|
51
|
+
data: C,
|
|
52
|
+
activeSegment: a,
|
|
53
|
+
onChange: o
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ i(
|
|
57
|
+
I,
|
|
58
|
+
{
|
|
59
|
+
gap: 20,
|
|
60
|
+
cols: 2,
|
|
61
|
+
className: "w-full max-tablet:hidden",
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ e(
|
|
64
|
+
r,
|
|
65
|
+
{
|
|
66
|
+
title: t.content.left_card.title,
|
|
67
|
+
description: t.content.left_card.description,
|
|
68
|
+
image: t.content.left_card.image,
|
|
69
|
+
imageHeight: "h-[340px]"
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ i(
|
|
73
|
+
f,
|
|
74
|
+
{
|
|
75
|
+
vertical: !0,
|
|
76
|
+
gap: 16,
|
|
77
|
+
children: [
|
|
78
|
+
/* @__PURE__ */ e(
|
|
79
|
+
r,
|
|
80
|
+
{
|
|
81
|
+
title: t.content.right_card.title,
|
|
82
|
+
description: t.content.right_card.description,
|
|
83
|
+
image: t.content.right_card.image,
|
|
84
|
+
imageHeight: "h-[316px]"
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
/* @__PURE__ */ e(
|
|
88
|
+
L,
|
|
89
|
+
{
|
|
90
|
+
className: "text-white/90 w-full text-2xl font-bold justify-between h-20 p-6",
|
|
91
|
+
style: { background: t.segment.activeColor },
|
|
92
|
+
title: (m = (p = t == null ? void 0 : t.content) == null ? void 0 : p.button) == null ? void 0 : m.text,
|
|
93
|
+
...k((h = (g = t == null ? void 0 : t.content) == null ? void 0 : g.button) == null ? void 0 : h.actions),
|
|
94
|
+
iconRight: /* @__PURE__ */ e("div", { className: "p-3 rounded-2xl bg-white", children: /* @__PURE__ */ e(
|
|
95
|
+
R,
|
|
96
|
+
{
|
|
97
|
+
gradient: t.segment.activeColor
|
|
98
|
+
}
|
|
99
|
+
) })
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
/* @__PURE__ */ i("div", { className: "w-full hidden max-tablet:block", children: [
|
|
109
|
+
/* @__PURE__ */ i(
|
|
110
|
+
N,
|
|
111
|
+
{
|
|
112
|
+
spaceBetween: 12,
|
|
113
|
+
slidesPerView: "auto",
|
|
114
|
+
breakpoints: {
|
|
115
|
+
640: {
|
|
116
|
+
slidesPerView: 2
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
onSwiper: b,
|
|
120
|
+
onSlideChange: (s) => u(s.realIndex),
|
|
121
|
+
className: "w-full",
|
|
122
|
+
children: [
|
|
123
|
+
/* @__PURE__ */ e(x, { className: "!h-auto !w-[280px] sm:!w-[calc(50%-6px)]", children: /* @__PURE__ */ e(
|
|
124
|
+
r,
|
|
125
|
+
{
|
|
126
|
+
title: t.content.left_card.title,
|
|
127
|
+
description: t.content.left_card.description,
|
|
128
|
+
image: t.content.left_card.image
|
|
129
|
+
}
|
|
130
|
+
) }),
|
|
131
|
+
/* @__PURE__ */ e(x, { className: "!h-auto !w-[280px] sm:!w-[calc(50%-6px)]", children: /* @__PURE__ */ e(
|
|
132
|
+
r,
|
|
133
|
+
{
|
|
134
|
+
title: t.content.right_card.title,
|
|
135
|
+
description: t.content.right_card.description,
|
|
136
|
+
image: t.content.right_card.image
|
|
137
|
+
}
|
|
138
|
+
) })
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
),
|
|
142
|
+
/* @__PURE__ */ e(
|
|
143
|
+
_,
|
|
144
|
+
{
|
|
145
|
+
count: 2,
|
|
146
|
+
active: w,
|
|
147
|
+
activeColor: "white",
|
|
148
|
+
anActiveColor: "rgba(255, 255, 255, 0.8)",
|
|
149
|
+
className: "mt-6 sm:hidden"
|
|
150
|
+
}
|
|
151
|
+
)
|
|
152
|
+
] })
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
) }) : null;
|
|
156
|
+
};
|
|
157
|
+
W.propsToEdit = G;
|
|
158
|
+
export {
|
|
159
|
+
W as SegmentedContent
|
|
160
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { F as l } from "../../Flex-86aee720.js";
|
|
3
|
+
import { I as p } from "../../index-9384c6d6.js";
|
|
4
|
+
import { c as x } from "../../cn-6a4bf187.js";
|
|
5
|
+
const h = ({
|
|
6
|
+
title: e,
|
|
7
|
+
description: r,
|
|
8
|
+
image: m,
|
|
9
|
+
imageHeight: i,
|
|
10
|
+
className: n,
|
|
11
|
+
children: o
|
|
12
|
+
}) => /* @__PURE__ */ a(
|
|
13
|
+
l,
|
|
14
|
+
{
|
|
15
|
+
vertical: !0,
|
|
16
|
+
justify: "between",
|
|
17
|
+
align: "center",
|
|
18
|
+
className: x(
|
|
19
|
+
"w-full max-tablet:min-h-[266px] max-tablet:min-w-[280px] flex-1 rounded-xl max-tablet:rounded-3xl max-tablet:gap-[22px] max-tablet:h-full bg-white/15 border border-white/15 backdrop-blur-[15px]",
|
|
20
|
+
n
|
|
21
|
+
),
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ a(
|
|
24
|
+
l,
|
|
25
|
+
{
|
|
26
|
+
vertical: !0,
|
|
27
|
+
gap: 20,
|
|
28
|
+
className: "w-full px-12 pt-8 pb-6 min-h-[208px] max-tablet:min-h-fit max-tablet:p-4",
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ t("h3", { className: "text-white text-[32px] leading-10 font-bold max-tablet:text-base", children: e }),
|
|
31
|
+
/* @__PURE__ */ t("p", { className: "text-white/80 text-lg leading-[26px] max-tablet:hidden", children: r })
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
/* @__PURE__ */ t(
|
|
36
|
+
p,
|
|
37
|
+
{
|
|
38
|
+
src: m,
|
|
39
|
+
alt: e,
|
|
40
|
+
className: x("w-full", i, "max-tablet:h-[162px]"),
|
|
41
|
+
imageStyles: "h-auto object-contain"
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
o
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
export {
|
|
49
|
+
h as ContentCard
|
|
50
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { C as o } from "../types-c3843cc0.js";
|
|
2
|
+
import { propsToEdit as t } from "./schema.js";
|
|
3
|
+
const p = {
|
|
4
|
+
title: "Сегментированный контент",
|
|
5
|
+
description: "Блок с переключением контента по сегментам",
|
|
6
|
+
group: "Бизнес компоненты",
|
|
7
|
+
key: o.SegmentedContent,
|
|
8
|
+
propsToEdit: t
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
p as segmentedContentInfo
|
|
12
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { AllActionsObject as t } from "../Actions/types.js";
|
|
2
|
+
import { FieldTypes as e } from "../Types/FiledTypes.js";
|
|
3
|
+
const y = {
|
|
4
|
+
title: {
|
|
5
|
+
type: e.TITLE,
|
|
6
|
+
label: "Заголовок",
|
|
7
|
+
key: "title"
|
|
8
|
+
},
|
|
9
|
+
items: {
|
|
10
|
+
type: e.ARRAY,
|
|
11
|
+
label: "Сервисы",
|
|
12
|
+
key: "items",
|
|
13
|
+
props: {
|
|
14
|
+
segment: {
|
|
15
|
+
type: e.OBJECT,
|
|
16
|
+
label: "Сегмент",
|
|
17
|
+
key: "segment",
|
|
18
|
+
props: {
|
|
19
|
+
title: {
|
|
20
|
+
type: e.TITLE,
|
|
21
|
+
label: "Название таба",
|
|
22
|
+
key: "title"
|
|
23
|
+
},
|
|
24
|
+
icon: {
|
|
25
|
+
type: e.FILE,
|
|
26
|
+
label: "Иконка",
|
|
27
|
+
key: "icon"
|
|
28
|
+
},
|
|
29
|
+
activeColor: {
|
|
30
|
+
type: e.COLOR,
|
|
31
|
+
label: "Активный цвет (градиент)",
|
|
32
|
+
key: "activeColor"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
content: {
|
|
37
|
+
type: e.OBJECT,
|
|
38
|
+
label: "Контент",
|
|
39
|
+
key: "content",
|
|
40
|
+
props: {
|
|
41
|
+
left_card: {
|
|
42
|
+
type: e.OBJECT,
|
|
43
|
+
label: "Левая карточка",
|
|
44
|
+
key: "left_card",
|
|
45
|
+
props: {
|
|
46
|
+
title: {
|
|
47
|
+
type: e.TITLE,
|
|
48
|
+
label: "Заголовок",
|
|
49
|
+
key: "title"
|
|
50
|
+
},
|
|
51
|
+
description: {
|
|
52
|
+
type: e.STRING,
|
|
53
|
+
label: "Описание",
|
|
54
|
+
key: "description"
|
|
55
|
+
},
|
|
56
|
+
image: {
|
|
57
|
+
type: e.FILE,
|
|
58
|
+
label: "Изображение",
|
|
59
|
+
key: "image"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
right_card: {
|
|
64
|
+
type: e.OBJECT,
|
|
65
|
+
label: "Правая карточка",
|
|
66
|
+
key: "right_card",
|
|
67
|
+
props: {
|
|
68
|
+
title: {
|
|
69
|
+
type: e.TITLE,
|
|
70
|
+
label: "Заголовок",
|
|
71
|
+
key: "title"
|
|
72
|
+
},
|
|
73
|
+
description: {
|
|
74
|
+
type: e.STRING,
|
|
75
|
+
label: "Описание",
|
|
76
|
+
key: "description"
|
|
77
|
+
},
|
|
78
|
+
image: {
|
|
79
|
+
type: e.FILE,
|
|
80
|
+
label: "Изображение",
|
|
81
|
+
key: "image"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
button: {
|
|
86
|
+
type: e.OBJECT,
|
|
87
|
+
label: "Кнопка",
|
|
88
|
+
key: "button",
|
|
89
|
+
props: {
|
|
90
|
+
text: {
|
|
91
|
+
type: e.TITLE,
|
|
92
|
+
label: "Текст кнопки",
|
|
93
|
+
key: "text"
|
|
94
|
+
},
|
|
95
|
+
actions: {
|
|
96
|
+
...t,
|
|
97
|
+
key: "actions"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
export {
|
|
107
|
+
y as propsToEdit
|
|
108
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,34 +1,43 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import { c as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useState as b } from "react";
|
|
3
|
+
import { F as d } from "../Flex-86aee720.js";
|
|
4
|
+
import { c as i } from "../cn-6a4bf187.js";
|
|
5
|
+
import { propsToEdit as u } from "./schema.js";
|
|
6
|
+
import { SegmentsVariant as e } from "./types.js";
|
|
7
|
+
const p = {
|
|
8
|
+
[e.PRIMARY]: {
|
|
9
|
+
container: "rounded-[20px] bg-[#E3E4E8] p-1",
|
|
10
|
+
item: "rounded-[19px] text-gray-800 font-semibold max-tablet:text-[16px] max-tablet:leading-[27px] max-tablet:px-4 max-tablet:py-2 text-[20px] leading-[30px] px-8 py-4 w-[275px]",
|
|
11
|
+
activeItem: "bg-white"
|
|
12
|
+
},
|
|
13
|
+
[e.SECONDARY]: {
|
|
14
|
+
container: "rounded-xl bg-white/15 border border-white/15 backdrop-blur-[15px]",
|
|
15
|
+
item: "text-white rounded-[13px] text-sm leading-5 py-[14px] w-[180px] max-tablet:pr-5 max-tablet:pl-4",
|
|
16
|
+
activeItem: "bg-white text-black font-medium"
|
|
11
17
|
}
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
}, g = ({
|
|
19
|
+
data: r,
|
|
20
|
+
activeSegment: x = 0,
|
|
21
|
+
variant: l = e.PRIMARY
|
|
22
|
+
}) => {
|
|
23
|
+
const [m, c] = b(x), s = (t) => {
|
|
24
|
+
c(t);
|
|
25
|
+
}, o = p[l] || p[e.PRIMARY];
|
|
26
|
+
return /* @__PURE__ */ n(
|
|
27
|
+
d,
|
|
18
28
|
{
|
|
19
|
-
className:
|
|
20
|
-
"
|
|
29
|
+
className: i(
|
|
30
|
+
"w-fit mx-auto max-tablet:w-full overflow-x-auto no-scrollbar cursor-grab active:cursor-grabbing",
|
|
31
|
+
o.container
|
|
21
32
|
),
|
|
22
|
-
children:
|
|
33
|
+
children: r == null ? void 0 : r.map((t, a) => /* @__PURE__ */ n(
|
|
23
34
|
"div",
|
|
24
35
|
{
|
|
25
36
|
onClick: () => s(a),
|
|
26
|
-
className:
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"text-[20px] leading-[30px] px-8 py-4 w-[275px]",
|
|
31
|
-
a === l ? "bg-white" : "bg-transparent"
|
|
37
|
+
className: i(
|
|
38
|
+
"bg-transparent cursor-pointer text-center whitespace-nowrap transition-colors duration-200 max-tablet:min-w-min max-tablet:flex-1",
|
|
39
|
+
o.item,
|
|
40
|
+
a === m && o.activeItem
|
|
32
41
|
),
|
|
33
42
|
children: t == null ? void 0 : t.title
|
|
34
43
|
},
|
|
@@ -37,8 +46,7 @@ const c = {
|
|
|
37
46
|
}
|
|
38
47
|
);
|
|
39
48
|
};
|
|
40
|
-
|
|
49
|
+
g.propsToEdit = u;
|
|
41
50
|
export {
|
|
42
|
-
|
|
43
|
-
m as propsToEdit
|
|
51
|
+
g as Segments
|
|
44
52
|
};
|
package/dist/Segments/index.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import { Segments as
|
|
1
|
+
import { Segments as r } from "./Segments.js";
|
|
2
|
+
import { SegmentsVariant as m } from "./types.js";
|
|
3
|
+
import { segmentsInfo as f } from "./info.js";
|
|
4
|
+
import { propsToEdit as s } from "./schema.js";
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
r as Segments,
|
|
7
|
+
m as SegmentsVariant,
|
|
8
|
+
s as propsToEdit,
|
|
9
|
+
f as segmentsInfo
|
|
4
10
|
};
|
package/dist/Segments/info.js
CHANGED
|
@@ -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 n = {
|
|
4
4
|
title: "Сегменты",
|
|
5
5
|
description: "Компонент для навигации и переключения между разделами с помощью сегментированных кнопок. Используется для организации контента и улучшения навигации по странице.",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SegmentsVariant as a } from "./types.js";
|
|
2
|
+
import { FieldTypes as t } from "../Types/FiledTypes.js";
|
|
3
|
+
const e = {
|
|
4
|
+
type: "data",
|
|
5
|
+
label: "Сегменты",
|
|
6
|
+
dataType: "array",
|
|
7
|
+
data: {
|
|
8
|
+
title: t.TITLE
|
|
9
|
+
}
|
|
10
|
+
}, r = {
|
|
11
|
+
type: t.VARIANT,
|
|
12
|
+
label: "Вариант",
|
|
13
|
+
key: "variant",
|
|
14
|
+
options: [
|
|
15
|
+
{ label: "Primary", value: a.PRIMARY },
|
|
16
|
+
{ label: "Secondary", value: a.SECONDARY }
|
|
17
|
+
]
|
|
18
|
+
}, i = [e, "activeSegment", r];
|
|
19
|
+
export {
|
|
20
|
+
i as propsToEdit
|
|
21
|
+
};
|
package/dist/Segments/types.js
CHANGED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { jsxs as m, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as f, useRef as y, useEffect as u } from "react";
|
|
3
|
+
import { u as E } from "../useDraggableScroll-440da9b7.js";
|
|
4
|
+
import { F as p } from "../Flex-86aee720.js";
|
|
5
|
+
import { I as j } from "../index-9384c6d6.js";
|
|
6
|
+
import { c as b } from "../cn-6a4bf187.js";
|
|
7
|
+
import { propsToEdit as I } from "./schema.js";
|
|
8
|
+
const N = ({
|
|
9
|
+
data: r,
|
|
10
|
+
activeSegment: o = 0,
|
|
11
|
+
onChange: s
|
|
12
|
+
}) => {
|
|
13
|
+
var d;
|
|
14
|
+
const [i, l] = f(o), [n, x] = f({
|
|
15
|
+
left: 0,
|
|
16
|
+
width: 0
|
|
17
|
+
}), c = y([]), { ref: w, events: h } = E();
|
|
18
|
+
u(() => {
|
|
19
|
+
l(o);
|
|
20
|
+
}, [o]), u(() => {
|
|
21
|
+
const t = () => {
|
|
22
|
+
const e = c.current[i];
|
|
23
|
+
e && x({
|
|
24
|
+
left: e.offsetLeft,
|
|
25
|
+
width: e.offsetWidth
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
return t(), window.addEventListener("resize", t), () => {
|
|
29
|
+
window.removeEventListener("resize", t);
|
|
30
|
+
};
|
|
31
|
+
}, [i, r]);
|
|
32
|
+
const v = (t) => {
|
|
33
|
+
l(t), s == null || s(t);
|
|
34
|
+
};
|
|
35
|
+
return /* @__PURE__ */ m(
|
|
36
|
+
p,
|
|
37
|
+
{
|
|
38
|
+
ref: w,
|
|
39
|
+
...h,
|
|
40
|
+
className: b(
|
|
41
|
+
"w-full mx-auto overflow-x-auto no-scrollbar cursor-grab active:cursor-grabbing relative",
|
|
42
|
+
"rounded-2xl bg-white/15 backdrop-blur-[15px] border border-white/15"
|
|
43
|
+
),
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ a(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
className: "absolute top-0 bottom-0 my-auto rounded-2xl transition-all duration-300 ease-in-out",
|
|
49
|
+
style: {
|
|
50
|
+
left: n.left,
|
|
51
|
+
width: n.width,
|
|
52
|
+
background: ((d = r[i]) == null ? void 0 : d.activeColor) || "transparent",
|
|
53
|
+
height: "100%"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
r == null ? void 0 : r.map((t, e) => /* @__PURE__ */ m(
|
|
58
|
+
p,
|
|
59
|
+
{
|
|
60
|
+
ref: (g) => c.current[e] = g,
|
|
61
|
+
align: "center",
|
|
62
|
+
gap: 8,
|
|
63
|
+
onClick: () => v(e),
|
|
64
|
+
className: b(
|
|
65
|
+
"justify-start max-tablet:justify-center cursor-pointer whitespace-nowrap transition-all duration-300 ease-in-out p-4 flex-1 rounded-2xl max-tablet:pl-3 max-tablet:pr-4 relative z-10",
|
|
66
|
+
"min-w-[186px] max-tablet:min-w-min"
|
|
67
|
+
),
|
|
68
|
+
children: [
|
|
69
|
+
t.icon && /* @__PURE__ */ a(
|
|
70
|
+
j,
|
|
71
|
+
{
|
|
72
|
+
src: t.icon,
|
|
73
|
+
alt: t.title,
|
|
74
|
+
width: 40,
|
|
75
|
+
height: 40,
|
|
76
|
+
className: "h-10 w-10 object-contain max-tablet:hidden",
|
|
77
|
+
draggable: !1
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
/* @__PURE__ */ a("span", { className: "text-white text-sm font-extrabold leading-5 select-none", children: t.title })
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
e
|
|
84
|
+
))
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
};
|
|
89
|
+
N.propsToEdit = I;
|
|
90
|
+
export {
|
|
91
|
+
N as SegmentsIcons
|
|
92
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { C as o } from "../index-0a5f313c.js";
|
|
2
|
+
import { propsToEdit as t } from "./schema.js";
|
|
3
|
+
const n = {
|
|
4
|
+
title: "Сегменты с иконками",
|
|
5
|
+
description: "Компонент для навигации с иконками и индивидуальным цветом для каждого сегмента.",
|
|
6
|
+
types: [o.navigation],
|
|
7
|
+
propsToEdit: t
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
n as segmentsIconsInfo
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FieldTypes as t } from "../Types/FiledTypes.js";
|
|
2
|
+
const a = {
|
|
3
|
+
type: "data",
|
|
4
|
+
label: "Сегменты с иконками",
|
|
5
|
+
dataType: "array",
|
|
6
|
+
data: {
|
|
7
|
+
title: t.TITLE,
|
|
8
|
+
icon: t.FILE,
|
|
9
|
+
activeColor: t.COLOR
|
|
10
|
+
}
|
|
11
|
+
}, o = [a, "activeSegment"];
|
|
12
|
+
export {
|
|
13
|
+
o as propsToEdit
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|