md-components-mdigial-azamat 0.0.112 → 0.0.114

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.
Files changed (147) hide show
  1. package/dist/ActionCardList/ActionCardList.js +28 -5
  2. package/dist/ActionCardList/index.js +1 -1
  3. package/dist/ActionCardList/info.js +1 -1
  4. package/dist/ActionCardSecondaryList/ActionCardSecondaryList.js +32 -0
  5. package/dist/ActionCardSecondaryList/index.js +6 -0
  6. package/dist/ActionCardSecondaryList/info.js +11 -0
  7. package/dist/ActionCardSecondaryList/schema.js +51 -0
  8. package/dist/ActionCardSecondaryList/types.js +4 -0
  9. package/dist/ActionIconList/ActionIconList.js +25 -2
  10. package/dist/AllComponents.js +28 -5
  11. package/dist/AllComponentsInfo.js +111 -95
  12. package/dist/AnimatedSwiper/index.js +40 -38
  13. package/dist/CardImageList/CardImageList.js +122 -81
  14. package/dist/CardImageList/schema.js +17 -12
  15. package/dist/Cards/ActionSecondaryCard/ActionSecondaryCard.js +77 -0
  16. package/dist/Cards/ActionSecondaryCard/index.js +6 -0
  17. package/dist/Cards/ActionSecondaryCard/info.js +11 -0
  18. package/dist/Cards/ActionSecondaryCard/types.js +4 -0
  19. package/dist/Cards/CardImage/CardImage.js +48 -50
  20. package/dist/Cards/InfoCard/InfoCard.js +114 -0
  21. package/dist/Cards/InfoCard/index.js +9 -0
  22. package/dist/Cards/InfoCard/info.js +11 -0
  23. package/dist/Cards/InfoCard/schema.js +60 -0
  24. package/dist/Cards/InfoCard/types.js +4 -0
  25. package/dist/Cards/PostCard/PostCard.js +60 -0
  26. package/dist/Cards/PostCard/index.js +6 -0
  27. package/dist/Cards/PostCard/info.js +11 -0
  28. package/dist/Cards/PostCard/types.js +4 -0
  29. package/dist/Cards/WarningCard/WarningCard.js +27 -4
  30. package/dist/Cards/WarningCard/index.js +1 -1
  31. package/dist/Cards/WarningCard/info.js +1 -1
  32. package/dist/Cards/WarningCard/model.js +1 -1
  33. package/dist/CurrencyRates/CurrencyRates.js +78 -0
  34. package/dist/CurrencyRates/components/Calculator.js +101 -0
  35. package/dist/CurrencyRates/components/RateCell.js +15 -0
  36. package/dist/CurrencyRates/components/RatesTable.js +134 -0
  37. package/dist/CurrencyRates/components/index.js +6 -0
  38. package/dist/CurrencyRates/index.js +8 -0
  39. package/dist/CurrencyRates/info.js +11 -0
  40. package/dist/CurrencyRates/schema.js +63 -0
  41. package/dist/CurrencyRates/types.js +4 -0
  42. package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +1 -1
  43. package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +1 -1
  44. package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +1 -1
  45. package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +1 -1
  46. package/dist/DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js +1 -1
  47. package/dist/Faq/Faq.js +1 -1
  48. package/dist/Faq/components/FeedbackForm/FeedbackForm.js +55 -6
  49. package/dist/Faq/components/FeedbackForm/index.js +1 -1
  50. package/dist/FieldInput-ef2a18d4.js +2743 -0
  51. package/dist/Forms/FormDefault/FormDefault.js +12 -0
  52. package/dist/Forms/FormDefault/components/FieldCustom.js +11 -0
  53. package/dist/Forms/FormDefault/components/FieldInput.js +11 -0
  54. package/dist/Forms/FormDefault/components/FieldSection.js +10 -0
  55. package/dist/Forms/FormDefault/components/FormContent.js +10 -0
  56. package/dist/Forms/FormDefault/components/FormFields.js +7 -0
  57. package/dist/Forms/FormDefault/components/FormSuccessMessage.js +49 -0
  58. package/dist/Forms/FormDefault/components/index.js +6 -0
  59. package/dist/Forms/FormDefault/hooks/index.js +10 -0
  60. package/dist/Forms/FormDefault/hooks/useFieldOptions.js +32 -0
  61. package/dist/Forms/FormDefault/hooks/useFieldValidation.js +33 -0
  62. package/dist/Forms/FormDefault/hooks/useFieldVisibility.js +24 -0
  63. package/dist/Forms/FormDefault/hooks/useFormSubmission.js +64 -0
  64. package/dist/Forms/FormDefault/index.js +6 -12
  65. package/dist/Forms/FormDefault/info.js +3 -115
  66. package/dist/Forms/FormDefault/model/componentRegistry.js +134 -0
  67. package/dist/Forms/FormDefault/model/fieldTypes.js +18 -0
  68. package/dist/Forms/FormDefault/model/formElementTypes.js +18 -0
  69. package/dist/Forms/FormDefault/model/index.js +13 -0
  70. package/dist/Forms/FormDefault/model/requestForm.js +4 -0
  71. package/dist/Forms/{model/components.js → FormDefault/schema.js} +32 -5
  72. package/dist/Forms/FormDefault/utils.js +20 -0
  73. package/dist/Grid-331af266.js +80 -0
  74. package/dist/Header/Header.js +54 -42
  75. package/dist/Header/components/HeaderMainMobile/HeaderMainMobile.js +21 -19
  76. package/dist/Header/components/HeaderMobile/HeaderMobile.js +67 -52
  77. package/dist/Header/components/HeaderTab/HeaderTab.js +17 -15
  78. package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +8 -7
  79. package/dist/Header/components/HeaderWeb/HeaderWeb.js +134 -114
  80. package/dist/Header/components/TabsOutlined/TabsOutlined.js +8 -7
  81. package/dist/HeroIconsBanner/HeroIconsBanner.js +25 -25
  82. package/dist/IconList/IconList.js +60 -54
  83. package/dist/InfoCardList/InfoCardList.js +100 -0
  84. package/dist/InfoCardList/index.js +6 -0
  85. package/dist/InfoCardList/info.js +11 -0
  86. package/dist/InfoCardList/schema.js +39 -0
  87. package/dist/InfoCardList/types.js +1 -0
  88. package/dist/PageViewer/renderComponents.js +1 -1
  89. package/dist/PostsList/PostsList.js +78 -0
  90. package/dist/PostsList/index.js +4 -0
  91. package/dist/PostsList/info.js +11 -0
  92. package/dist/PostsList/schema.js +49 -0
  93. package/dist/PostsList/types.js +1 -0
  94. package/dist/PostsSlider/PostsSlider.js +78 -0
  95. package/dist/PostsSlider/index.js +4 -0
  96. package/dist/PostsSlider/info.js +11 -0
  97. package/dist/PostsSlider/schema.js +49 -0
  98. package/dist/PostsSlider/types.js +1 -0
  99. package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
  100. package/dist/RenderAllComponents/const.js +1 -1
  101. package/dist/SearchBlock/SearchBlock.js +36 -37
  102. package/dist/SegmentedContent/SegmentedContent.js +160 -0
  103. package/dist/SegmentedContent/components/ContentCard.js +50 -0
  104. package/dist/SegmentedContent/components/index.js +4 -0
  105. package/dist/SegmentedContent/index.js +8 -0
  106. package/dist/SegmentedContent/info.js +12 -0
  107. package/dist/SegmentedContent/schema.js +108 -0
  108. package/dist/SegmentedContent/types.js +1 -0
  109. package/dist/Segments/Segments.js +36 -28
  110. package/dist/Segments/index.js +8 -2
  111. package/dist/Segments/info.js +1 -1
  112. package/dist/Segments/schema.js +21 -0
  113. package/dist/Segments/types.js +4 -1
  114. package/dist/SegmentsIcons/SegmentsIcons.js +92 -0
  115. package/dist/SegmentsIcons/index.js +8 -0
  116. package/dist/SegmentsIcons/info.js +11 -0
  117. package/dist/SegmentsIcons/schema.js +14 -0
  118. package/dist/SegmentsIcons/types.js +1 -0
  119. package/dist/SwiperList/SwiperList.js +13 -11
  120. package/dist/assets/index.css +1 -1
  121. package/dist/{componentsMap-cac6c316.js → componentsMap-6fc8d724.js} +5 -3
  122. package/dist/{data.mock-ebc679ec.js → data.mock-a00d8eec.js} +546 -148
  123. package/dist/index-0791c17f.js +56 -0
  124. package/dist/index-2ec92a04.js +32 -0
  125. package/dist/index.esm-0558519f.js +1171 -0
  126. package/dist/info-ce6598a7.js +794 -0
  127. package/dist/main.js +151 -119
  128. package/dist/{mousewheel-865ae601.js → mousewheel-afbc6d42.js} +1 -1
  129. package/dist/navigation-266856e7.js +136 -0
  130. package/dist/navigation-cd786a0d.js +133 -0
  131. package/dist/{palette-c2fe86ec.js → palette-256cf77a.js} +3 -1
  132. package/dist/{swiper-react-90953710.js → swiper-react-3c2710e8.js} +695 -825
  133. package/dist/types-c3843cc0.js +4 -0
  134. package/dist/useDraggableScroll-440da9b7.js +29 -0
  135. package/dist/useTranslation-d7a3ca6f.js +298 -0
  136. package/package.json +1 -1
  137. package/dist/FileLoader/fileLoader.js +0 -22
  138. package/dist/FileLoader/index.js +0 -8
  139. package/dist/Forms/FormDefault/componentTypes.js +0 -31
  140. package/dist/Forms/FormDefault/fieldTypesList.js +0 -45
  141. package/dist/Forms/helpers/renderFormFields.js +0 -7
  142. package/dist/Forms/model/requestForm.js +0 -4
  143. package/dist/index-6686852d.js +0 -1794
  144. package/dist/index-a0ed2e4a.js +0 -1221
  145. package/dist/info-d05a1f02.js +0 -1547
  146. package/dist/navigation-b894d0cd.js +0 -183
  147. /package/dist/Forms/{types/formItems.js → FormDefault/model/types.js} +0 -0
@@ -0,0 +1,100 @@
1
+ import { jsx as t, jsxs as m } from "react/jsx-runtime";
2
+ import { useState as b } from "react";
3
+ import { InfoCard as n } from "../Cards/InfoCard/InfoCard.js";
4
+ import { InfoCardVariant as l } from "../Cards/InfoCard/types.js";
5
+ import "../Cards/InfoCard/schema.js";
6
+ import { Bullet as c } from "../SwiperList/components/Bullet/Bullet.js";
7
+ import { a as d, b as h } from "../swiper-react-3c2710e8.js";
8
+ import { C as w } from "../ComponentContainer-dca711c6.js";
9
+ import { F as C } from "../Flex-86aee720.js";
10
+ import { G as R } from "../Grid-331af266.js";
11
+ import { c as g } from "../cn-6a4bf187.js";
12
+ import { propsToEdit as I } from "./schema.js";
13
+ import '../assets/swiper.css';/* empty css */const N = {
14
+ [l.PRIMARY]: {
15
+ title: "text-blackBG"
16
+ },
17
+ [l.SECONDARY]: {
18
+ title: "text-white"
19
+ }
20
+ }, S = ({
21
+ title: r,
22
+ variant: o = l.PRIMARY,
23
+ grid: p = "3",
24
+ cards: e
25
+ }) => {
26
+ const [s, x] = b(0), f = N[o];
27
+ return /* @__PURE__ */ t(w, { children: /* @__PURE__ */ m(
28
+ C,
29
+ {
30
+ vertical: !0,
31
+ align: "center",
32
+ className: "gap-12 max-tablet:gap-6",
33
+ children: [
34
+ r && /* @__PURE__ */ t(
35
+ "h2",
36
+ {
37
+ className: g(
38
+ "text-center max-tablet:text-[32px] max-tablet:leading-10 max-tablet:font-bold text-[56px] leading-[52px] font-extrabold",
39
+ f.title
40
+ ),
41
+ children: r
42
+ }
43
+ ),
44
+ /* @__PURE__ */ t(
45
+ R,
46
+ {
47
+ cols: Number(p),
48
+ gap: 24,
49
+ className: "w-full max-tablet:hidden",
50
+ children: e == null ? void 0 : e.map((i, a) => /* @__PURE__ */ t(
51
+ n,
52
+ {
53
+ ...i,
54
+ variant: o || l.PRIMARY
55
+ },
56
+ a
57
+ ))
58
+ }
59
+ ),
60
+ /* @__PURE__ */ m("div", { className: "w-full hidden max-tablet:block", children: [
61
+ /* @__PURE__ */ t(
62
+ d,
63
+ {
64
+ spaceBetween: 12,
65
+ slidesPerView: 1,
66
+ breakpoints: {
67
+ 640: {
68
+ slidesPerView: 1.5
69
+ }
70
+ },
71
+ onSlideChange: (i) => x(i.realIndex),
72
+ className: "w-full",
73
+ children: e == null ? void 0 : e.map((i, a) => /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t(
74
+ n,
75
+ {
76
+ ...i,
77
+ variant: o || l.PRIMARY
78
+ }
79
+ ) }, a))
80
+ }
81
+ ),
82
+ /* @__PURE__ */ t(
83
+ c,
84
+ {
85
+ count: (e == null ? void 0 : e.length) || 0,
86
+ active: s,
87
+ activeColor: o === l.SECONDARY ? "white" : "black",
88
+ anActiveColor: o === l.SECONDARY ? "rgba(255, 255, 255, 0.4)" : "rgba(0, 0, 0, 0.2)",
89
+ className: "mt-6 hidden max-tablet:flex"
90
+ }
91
+ )
92
+ ] })
93
+ ]
94
+ }
95
+ ) });
96
+ };
97
+ S.propsToEdit = I;
98
+ export {
99
+ S as InfoCardList
100
+ };
@@ -0,0 +1,6 @@
1
+ import { InfoCardList as p } from "./InfoCardList.js";
2
+ import { propsToEdit as f } from "./schema.js";
3
+ export {
4
+ p as InfoCardList,
5
+ f as propsToEdit
6
+ };
@@ -0,0 +1,11 @@
1
+ import { C as o } from "../index-0a5f313c.js";
2
+ import { propsToEdit as t } from "./schema.js";
3
+ const p = {
4
+ title: "Список инфо карточек",
5
+ description: "Секция со списком инфо карточек, расположенных в сетке. Включает заголовок и описание секции.",
6
+ types: [o.cards],
7
+ propsToEdit: t
8
+ };
9
+ export {
10
+ p as infoCardListInfo
11
+ };
@@ -0,0 +1,39 @@
1
+ import { InfoCardItemSchema as r } from "../Cards/InfoCard/schema.js";
2
+ import { InfoCardVariant as a } from "../Cards/InfoCard/types.js";
3
+ import { FieldTypes as e } from "../Types/FiledTypes.js";
4
+ const i = [
5
+ {
6
+ key: "title",
7
+ type: e.TITLE,
8
+ label: "Заголовок секции"
9
+ },
10
+ {
11
+ key: "description",
12
+ type: e.DESCRIPTION,
13
+ label: "Описание секции"
14
+ },
15
+ {
16
+ key: "variant",
17
+ type: e.VARIANT,
18
+ label: "Вариант карточек",
19
+ options: [
20
+ { label: "Primary", value: a.PRIMARY },
21
+ { label: "Secondary", value: a.SECONDARY }
22
+ ]
23
+ },
24
+ {
25
+ key: "grid",
26
+ type: e.NUMBER,
27
+ label: "Колонок в сетке"
28
+ },
29
+ {
30
+ key: "cards",
31
+ type: "array",
32
+ label: "Список карточек",
33
+ itemLabel: "Карточка",
34
+ data: r
35
+ }
36
+ ];
37
+ export {
38
+ i as propsToEdit
39
+ };
@@ -0,0 +1 @@
1
+
@@ -1,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { c as f } from "../componentsMap-cac6c316.js";
2
+ import { c as f } from "../componentsMap-6fc8d724.js";
3
3
  const a = (p) => p.map((r) => {
4
4
  const s = f[r.key];
5
5
  if (!s)
@@ -0,0 +1,78 @@
1
+ import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
+ import { useState as f, useEffect as x } from "react";
3
+ import { PostCard as w } from "../Cards/PostCard/PostCard.js";
4
+ import { PostCardVariant as a } from "../Cards/PostCard/types.js";
5
+ import { a as h, b as u } from "../swiper-react-3c2710e8.js";
6
+ import { C as v } from "../ComponentContainer-dca711c6.js";
7
+ import { F as y } from "../Flex-86aee720.js";
8
+ import { c as b } from "../cn-6a4bf187.js";
9
+ import '../assets/swiper.css';/* empty css */const g = {
10
+ [a.PRIMARY]: {
11
+ title: "text-blackBG"
12
+ },
13
+ [a.SECONDARY]: {
14
+ title: "text-white"
15
+ }
16
+ }, O = ({
17
+ title: o,
18
+ cards: i,
19
+ variant: r = a.PRIMARY
20
+ }) => {
21
+ const [n, l] = f(0), p = g[r];
22
+ return x(() => {
23
+ const t = () => {
24
+ const s = window.innerWidth, m = Math.max((s - 1232) / 2, 16), c = Math.max(0, m - 16);
25
+ l(c);
26
+ };
27
+ return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
28
+ }, []), /* @__PURE__ */ d(
29
+ y,
30
+ {
31
+ vertical: !0,
32
+ className: "w-full overflow-hidden gap-12 max-tablet:gap-6",
33
+ children: [
34
+ /* @__PURE__ */ e(v, { children: o && /* @__PURE__ */ e(
35
+ "h2",
36
+ {
37
+ className: b(
38
+ "text-[56px] font-bold max-tablet:text-[32px] max-tablet:leading-[40px] max-tablet:text-center",
39
+ p.title
40
+ ),
41
+ children: o
42
+ }
43
+ ) }),
44
+ /* @__PURE__ */ e(
45
+ h,
46
+ {
47
+ slidesPerView: "auto",
48
+ spaceBetween: 24,
49
+ slidesOffsetAfter: n,
50
+ className: "w-full !overflow-visible",
51
+ style: {
52
+ paddingLeft: "max((100% - 1232px) / 2, 16px)",
53
+ paddingRight: "16px"
54
+ },
55
+ children: i == null ? void 0 : i.map((t, s) => /* @__PURE__ */ e(
56
+ u,
57
+ {
58
+ className: "opacity-50 transition-opacity duration-300 [&.swiper-slide-active]:opacity-100 [&.swiper-slide-active+*]:opacity-100 [&.swiper-slide-active+*+*]:opacity-100 [&.swiper-slide-active+*+*+*]:opacity-100",
59
+ style: { width: "290px", height: "auto" },
60
+ children: /* @__PURE__ */ e(
61
+ w,
62
+ {
63
+ item: t,
64
+ variant: r
65
+ }
66
+ )
67
+ },
68
+ t.id || s
69
+ ))
70
+ }
71
+ )
72
+ ]
73
+ }
74
+ );
75
+ };
76
+ export {
77
+ O as PostsList
78
+ };
@@ -0,0 +1,4 @@
1
+ import { PostsList as t } from "./PostsList.js";
2
+ export {
3
+ t as PostsList
4
+ };
@@ -0,0 +1,11 @@
1
+ import { C as o } from "../types-c3843cc0.js";
2
+ import { PostsList as t } from "./PostsList.js";
3
+ import { propsToEdit as s } from "./schema.js";
4
+ const i = {
5
+ key: o.PostsList,
6
+ component: t,
7
+ propsToEdit: s
8
+ };
9
+ export {
10
+ i as postsListInfo
11
+ };
@@ -0,0 +1,49 @@
1
+ import { AllActionsObject as t } from "../Actions/types.js";
2
+ import { FieldTypes as e } from "../Types/FiledTypes.js";
3
+ const a = {
4
+ title: {
5
+ type: e.STRING,
6
+ label: "Заголовок",
7
+ key: "title"
8
+ },
9
+ description: {
10
+ type: e.STRING,
11
+ label: "Описание",
12
+ key: "description"
13
+ },
14
+ date: {
15
+ type: e.STRING,
16
+ label: "Дата",
17
+ key: "date"
18
+ },
19
+ image: {
20
+ type: e.FILE,
21
+ label: "Картинка",
22
+ key: "image"
23
+ },
24
+ action: {
25
+ ...t,
26
+ label: "Действие"
27
+ }
28
+ }, l = {
29
+ type: "cards",
30
+ label: "Карточки постов",
31
+ dataType: "array",
32
+ data: a
33
+ }, o = {
34
+ label: "Заголовок секции",
35
+ type: e.STRING,
36
+ key: "title"
37
+ }, r = {
38
+ label: "Вариант",
39
+ type: "select",
40
+ options: [
41
+ { label: "Primary (White)", value: "primary" },
42
+ { label: "Secondary (Glass)", value: "secondary" }
43
+ ],
44
+ key: "variant"
45
+ }, s = [o, l, r];
46
+ export {
47
+ a as fieldProps,
48
+ s as propsToEdit
49
+ };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,78 @@
1
+ import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
+ import { useState as f, useEffect as x } from "react";
3
+ import { PostCard as w } from "../Cards/PostCard/PostCard.js";
4
+ import { PostCardVariant as a } from "../Cards/PostCard/types.js";
5
+ import { a as h, b as u } from "../swiper-react-3c2710e8.js";
6
+ import { C as v } from "../ComponentContainer-dca711c6.js";
7
+ import { F as y } from "../Flex-86aee720.js";
8
+ import { c as b } from "../cn-6a4bf187.js";
9
+ import '../assets/swiper.css';/* empty css */const g = {
10
+ [a.PRIMARY]: {
11
+ title: "text-blackBG"
12
+ },
13
+ [a.SECONDARY]: {
14
+ title: "text-white"
15
+ }
16
+ }, O = ({
17
+ title: o,
18
+ cards: i,
19
+ variant: r = a.PRIMARY
20
+ }) => {
21
+ const [n, l] = f(0), p = g[r];
22
+ return x(() => {
23
+ const t = () => {
24
+ const s = window.innerWidth, m = Math.max((s - 1232) / 2, 16), c = Math.max(0, m - 16);
25
+ l(c);
26
+ };
27
+ return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
28
+ }, []), /* @__PURE__ */ d(
29
+ y,
30
+ {
31
+ vertical: !0,
32
+ className: "w-full overflow-hidden gap-12 max-tablet:gap-6",
33
+ children: [
34
+ /* @__PURE__ */ e(v, { children: o && /* @__PURE__ */ e(
35
+ "h2",
36
+ {
37
+ className: b(
38
+ "text-[56px] font-bold max-tablet:text-[32px] max-tablet:leading-[40px] max-tablet:text-center",
39
+ p.title
40
+ ),
41
+ children: o
42
+ }
43
+ ) }),
44
+ /* @__PURE__ */ e(
45
+ h,
46
+ {
47
+ slidesPerView: "auto",
48
+ spaceBetween: 24,
49
+ slidesOffsetAfter: n,
50
+ className: "w-full !overflow-visible",
51
+ style: {
52
+ paddingLeft: "max((100% - 1232px) / 2, 16px)",
53
+ paddingRight: "16px"
54
+ },
55
+ children: i == null ? void 0 : i.map((t, s) => /* @__PURE__ */ e(
56
+ u,
57
+ {
58
+ className: "opacity-50 transition-opacity duration-300 [&.swiper-slide-active]:opacity-100 [&.swiper-slide-active+*]:opacity-100 [&.swiper-slide-active+*+*]:opacity-100 [&.swiper-slide-active+*+*+*]:opacity-100",
59
+ style: { width: "290px", height: "auto" },
60
+ children: /* @__PURE__ */ e(
61
+ w,
62
+ {
63
+ item: t,
64
+ variant: r
65
+ }
66
+ )
67
+ },
68
+ t.id || s
69
+ ))
70
+ }
71
+ )
72
+ ]
73
+ }
74
+ );
75
+ };
76
+ export {
77
+ O as PostsSlider
78
+ };
@@ -0,0 +1,4 @@
1
+ import { PostsSlider as e } from "./PostsSlider.js";
2
+ export {
3
+ e as PostsSlider
4
+ };
@@ -0,0 +1,11 @@
1
+ import { C as o } from "../types-c3843cc0.js";
2
+ import { PostsSlider as r } from "./PostsSlider.js";
3
+ import { propsToEdit as t } from "./schema.js";
4
+ const m = {
5
+ key: o.PostsSlider,
6
+ component: r,
7
+ propsToEdit: t
8
+ };
9
+ export {
10
+ m as postsSliderInfo
11
+ };
@@ -0,0 +1,49 @@
1
+ import { AllActionsObject as t } from "../Actions/types.js";
2
+ import { FieldTypes as e } from "../Types/FiledTypes.js";
3
+ const a = {
4
+ title: {
5
+ type: e.STRING,
6
+ label: "Заголовок",
7
+ key: "title"
8
+ },
9
+ description: {
10
+ type: e.STRING,
11
+ label: "Описание",
12
+ key: "description"
13
+ },
14
+ date: {
15
+ type: e.STRING,
16
+ label: "Дата",
17
+ key: "date"
18
+ },
19
+ image: {
20
+ type: e.FILE,
21
+ label: "Картинка",
22
+ key: "image"
23
+ },
24
+ action: {
25
+ ...t,
26
+ label: "Действие"
27
+ }
28
+ }, l = {
29
+ type: "cards",
30
+ label: "Карточки постов",
31
+ dataType: "array",
32
+ data: a
33
+ }, o = {
34
+ label: "Заголовок секции",
35
+ type: e.STRING,
36
+ key: "title"
37
+ }, r = {
38
+ label: "Вариант карточек",
39
+ type: "select",
40
+ options: [
41
+ { label: "Primary (White)", value: "primary" },
42
+ { label: "Secondary (Glass)", value: "secondary" }
43
+ ],
44
+ key: "variant"
45
+ }, s = [o, l, r];
46
+ export {
47
+ a as fieldProps,
48
+ s as propsToEdit
49
+ };
@@ -0,0 +1 @@
1
+
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, Fragment as t } from "react/jsx-runtime";
2
- import { c as i } from "../componentsMap-cac6c316.js";
2
+ import { c as i } from "../componentsMap-6fc8d724.js";
3
3
  const d = ({ components: o, device: p }) => /* @__PURE__ */ n(t, { children: o.map((r) => {
4
4
  const e = i[r.key];
5
5
  return e ? /* @__PURE__ */ n(
@@ -1,4 +1,4 @@
1
- import { M as a, B as t, a as s, C as n, S as D, b as r, V as e, c as i, d as o, e as d, P as l, f as C, g as B, h as L, W as m, i as w, j as p, F as I, D as g, k as F, l as S, m as c, I as M, n as P, o as f, p as u, A as V, q as T, T as W, r as b, E as x, s as h, t as k, u as q, v, w as y, x as A } from "../data.mock-ebc679ec.js";
1
+ import { M as a, B as t, a as s, C as n, S as D, b as r, V as e, c as i, d as o, e as d, P as l, f as C, g as B, h as L, W as m, i as w, j as p, F as I, D as g, k as F, l as S, m as c, I as M, n as P, o as f, p as u, A as V, q as T, T as W, r as b, E as x, s as h, t as k, u as q, v, w as y, x as A } from "../data.mock-a00d8eec.js";
2
2
  const j = [
3
3
  a,
4
4
  t,
@@ -1,11 +1,11 @@
1
- import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
- import { useRef as x } from "react";
3
- import { F as n } from "../Flex-86aee720.js";
4
- import { c as u } from "../cn-6a4bf187.js";
5
- const h = {
1
+ import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
+ import { useRef as m } from "react";
3
+ import { F as r } from "../Flex-86aee720.js";
4
+ import { c as b } from "../cn-6a4bf187.js";
5
+ const d = {
6
6
  black: "stroke-[#0E0F11]",
7
7
  gray: "stroke-[#758795]"
8
- }, m = ({ className: r, variant: o = "black" }) => /* @__PURE__ */ e(
8
+ }, u = ({ className: t, variant: l = "black" }) => /* @__PURE__ */ e(
9
9
  "svg",
10
10
  {
11
11
  width: "21",
@@ -13,83 +13,82 @@ const h = {
13
13
  viewBox: "0 0 21 21",
14
14
  fill: "none",
15
15
  xmlns: "http://www.w3.org/2000/svg",
16
- className: r,
16
+ className: t,
17
17
  children: /* @__PURE__ */ e(
18
18
  "path",
19
19
  {
20
20
  d: "M19.7998 19.8L15.3138 15.306M17.7998 9.29999C17.7998 11.5543 16.9043 13.7163 15.3102 15.3104C13.7162 16.9045 11.5541 17.8 9.2998 17.8C7.04546 17.8 4.88346 16.9045 3.2894 15.3104C1.69534 13.7163 0.799805 11.5543 0.799805 9.29999C0.799805 7.04565 1.69534 4.88364 3.2894 3.28958C4.88346 1.69552 7.04546 0.799988 9.2998 0.799988C11.5541 0.799988 13.7162 1.69552 15.3102 3.28958C16.9043 4.88364 17.7998 7.04565 17.7998 9.29999Z",
21
- className: u(h[o], "stroke-[1.6]"),
21
+ className: b(d[l], "stroke-[1.6]"),
22
22
  strokeLinecap: "round"
23
23
  }
24
24
  )
25
25
  }
26
26
  ), C = ({
27
- title: r,
28
- placeholder: o,
29
- tags: p = [],
30
- onSearch: c,
31
- onTagClick: a
27
+ title: t,
28
+ placeholder: l,
29
+ tags: i = [],
30
+ onSearch: x,
31
+ onTagClick: n
32
32
  }) => {
33
- const l = x(null), s = () => {
34
- c && l.current && c(l.current.value);
33
+ const o = m(null), s = () => {
34
+ x && o.current && x(o.current.value);
35
35
  };
36
- return /* @__PURE__ */ i(
37
- n,
36
+ return /* @__PURE__ */ c(
37
+ r,
38
38
  {
39
39
  vertical: !0,
40
40
  align: "center",
41
41
  justify: "center",
42
42
  className: "max-w-[880px] mx-auto",
43
43
  children: [
44
- r && /* @__PURE__ */ e("h2", { className: "text-white text-[56px] leading-[68px] font-bold text-center mb-12", children: r }),
45
- /* @__PURE__ */ i(
46
- n,
44
+ t && /* @__PURE__ */ e("h2", { className: "text-white text-[56px] leading-[68px] font-bold text-center max-tablet:text-[28px] max-tablet:leading-9 mb-12 max-tablet:mb-8", children: t }),
45
+ /* @__PURE__ */ c(
46
+ r,
47
47
  {
48
48
  align: "center",
49
- gap: 8,
50
- className: "w-full mb-6 p-2 rounded-[20px] bg-white/50 backdrop-blur-[2px] border-[2px] border-[#D4E3FF]",
49
+ className: "w-full gap-2 max-tablet:gap-1 mb-6 p-2 max-tablet:p-1 rounded-[20px] max-tablet:rounded-2xl bg-white/50 backdrop-blur-[2px] border-[2px] border-[#D4E3FF]",
51
50
  children: [
52
51
  /* @__PURE__ */ e(
53
52
  "input",
54
53
  {
55
- ref: l,
54
+ ref: o,
56
55
  type: "text",
57
- placeholder: o,
58
- onKeyDown: (t) => {
59
- t.key === "Enter" && s();
56
+ placeholder: l,
57
+ onKeyDown: (a) => {
58
+ a.key === "Enter" && s();
60
59
  },
61
- className: "w-full text-[#0E0F11] h-16 py-5 px-6 text-lg leading-6 rounded-2xl border-[#D4E3FF] outline-none placeholder:text-[#7893B0]"
60
+ className: "w-full text-[#0E0F11] h-16 max-tablet:h-[52px] py-5 px-6 max-tablet:p-3 text-lg leading-6 max-tablet:text-base rounded-2xl border-[#D4E3FF] outline-none placeholder:text-[#7893B0]"
62
61
  }
63
62
  ),
64
63
  /* @__PURE__ */ e(
65
- n,
64
+ r,
66
65
  {
67
66
  component: "button",
68
67
  "aria-label": "Search",
69
68
  onClick: s,
70
69
  align: "center",
71
70
  justify: "center",
72
- className: "flex-shrink-0 size-[64px] bg-white rounded-2xl hover:bg-gray-100 transition-colors cursor-pointer border border-[#D4E3FF]",
73
- children: /* @__PURE__ */ e(m, { variant: "gray" })
71
+ className: "flex-shrink-0 size-[64px] max-tablet:size-[52px] bg-white rounded-2xl hover:bg-gray-100 transition-colors cursor-pointer border border-[#D4E3FF]",
72
+ children: /* @__PURE__ */ e(u, { variant: "gray" })
74
73
  }
75
74
  )
76
75
  ]
77
76
  }
78
77
  ),
79
78
  /* @__PURE__ */ e(
80
- n,
79
+ r,
81
80
  {
82
81
  wrap: !0,
83
82
  justify: "center",
84
- className: "max-w-[600px] gap-x-3 gap-y-4",
85
- children: p.map((t, d) => /* @__PURE__ */ e(
83
+ className: "max-w-[600px] gap-x-3 gap-y-4 max-tablet:gap-x-2 max-tablet:gap-y-3",
84
+ children: i.map((a, p) => /* @__PURE__ */ e(
86
85
  "button",
87
86
  {
88
- onClick: () => a == null ? void 0 : a(t),
89
- className: "bg-[#C2C1C159] hover:bg-white/30 text-white px-4 py-2.5 rounded-xl backdrop-blur-[2px] transition-colors cursor-pointer border-none text-base leading-6 font-medium",
90
- children: t.label
87
+ onClick: () => n == null ? void 0 : n(a),
88
+ className: "bg-[#C2C1C159] hover:bg-white/30 text-white px-4 py-2.5 max-tablet:py-2 max-tablet:px-3 rounded-xl backdrop-blur-[2px] transition-colors cursor-pointer border-none text-base leading-6 max-tablet:text-sm font-medium",
89
+ children: a.label
91
90
  },
92
- d
91
+ p
93
92
  ))
94
93
  }
95
94
  )