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.
Files changed (166) hide show
  1. package/dist/ActionCardList/ActionCardList.js +32 -7
  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 +29 -4
  10. package/dist/AllComponents.js +35 -9
  11. package/dist/AllComponentsInfo.js +107 -89
  12. package/dist/AnimatedSwiper/index.js +40 -38
  13. package/dist/ButtonsList/ButtonsList.js +25 -19
  14. package/dist/CardImageList/CardImageList.js +130 -73
  15. package/dist/CardImageList/info.js +1 -1
  16. package/dist/CardImageList/schema.js +62 -0
  17. package/dist/Cards/ActionSecondaryCard/ActionSecondaryCard.js +77 -0
  18. package/dist/Cards/ActionSecondaryCard/index.js +6 -0
  19. package/dist/Cards/ActionSecondaryCard/info.js +11 -0
  20. package/dist/Cards/ActionSecondaryCard/types.js +4 -0
  21. package/dist/Cards/CardImage/CardImage.js +100 -55
  22. package/dist/Cards/CardImage/index.js +6 -1
  23. package/dist/Cards/CardImage/info.js +1 -1
  24. package/dist/Cards/CardImage/schema.js +32 -0
  25. package/dist/Cards/CardImage/types.js +3 -2
  26. package/dist/Cards/InfoCard/InfoCard.js +114 -0
  27. package/dist/Cards/InfoCard/index.js +9 -0
  28. package/dist/Cards/InfoCard/info.js +11 -0
  29. package/dist/Cards/InfoCard/schema.js +60 -0
  30. package/dist/Cards/InfoCard/types.js +4 -0
  31. package/dist/Cards/PostCard/PostCard.js +60 -0
  32. package/dist/Cards/PostCard/index.js +6 -0
  33. package/dist/Cards/PostCard/info.js +11 -0
  34. package/dist/Cards/PostCard/types.js +4 -0
  35. package/dist/Cards/WarningCard/WarningCard.js +31 -6
  36. package/dist/Cards/WarningCard/index.js +1 -1
  37. package/dist/Cards/WarningCard/info.js +1 -1
  38. package/dist/Cards/WarningCard/model.js +1 -1
  39. package/dist/CurrencyRates/CurrencyRates.js +78 -0
  40. package/dist/CurrencyRates/components/Calculator.js +101 -0
  41. package/dist/CurrencyRates/components/RateCell.js +15 -0
  42. package/dist/CurrencyRates/components/RatesTable.js +134 -0
  43. package/dist/CurrencyRates/components/index.js +6 -0
  44. package/dist/CurrencyRates/index.js +8 -0
  45. package/dist/CurrencyRates/info.js +11 -0
  46. package/dist/CurrencyRates/schema.js +63 -0
  47. package/dist/CurrencyRates/types.js +4 -0
  48. package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +1 -1
  49. package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +1 -1
  50. package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +1 -1
  51. package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +1 -1
  52. package/dist/DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js +1 -1
  53. package/dist/Faq/Faq.js +1 -1
  54. package/dist/Faq/components/FeedbackForm/FeedbackForm.js +55 -6
  55. package/dist/Faq/components/FeedbackForm/index.js +1 -1
  56. package/dist/FieldInput-ef2a18d4.js +2743 -0
  57. package/dist/Flex-86aee720.js +78 -0
  58. package/dist/Footer/Footer.js +5 -5
  59. package/dist/Forms/FormDefault/FormDefault.js +12 -0
  60. package/dist/Forms/FormDefault/components/FieldCustom.js +11 -0
  61. package/dist/Forms/FormDefault/components/FieldInput.js +11 -0
  62. package/dist/Forms/FormDefault/components/FieldSection.js +10 -0
  63. package/dist/Forms/FormDefault/components/FormContent.js +10 -0
  64. package/dist/Forms/FormDefault/components/FormFields.js +7 -0
  65. package/dist/Forms/FormDefault/components/FormSuccessMessage.js +49 -0
  66. package/dist/Forms/FormDefault/components/index.js +6 -0
  67. package/dist/Forms/FormDefault/hooks/index.js +10 -0
  68. package/dist/Forms/FormDefault/hooks/useFieldOptions.js +32 -0
  69. package/dist/Forms/FormDefault/hooks/useFieldValidation.js +33 -0
  70. package/dist/Forms/FormDefault/hooks/useFieldVisibility.js +24 -0
  71. package/dist/Forms/FormDefault/hooks/useFormSubmission.js +64 -0
  72. package/dist/Forms/FormDefault/index.js +6 -12
  73. package/dist/Forms/FormDefault/info.js +3 -113
  74. package/dist/Forms/FormDefault/model/componentRegistry.js +134 -0
  75. package/dist/Forms/FormDefault/model/fieldTypes.js +18 -0
  76. package/dist/Forms/FormDefault/model/formElementTypes.js +18 -0
  77. package/dist/Forms/FormDefault/model/index.js +13 -0
  78. package/dist/Forms/FormDefault/model/requestForm.js +4 -0
  79. package/dist/Forms/{model/components.js → FormDefault/schema.js} +36 -7
  80. package/dist/Forms/FormDefault/utils.js +20 -0
  81. package/dist/Grid-331af266.js +80 -0
  82. package/dist/Header/Header.js +54 -42
  83. package/dist/Header/components/HeaderMainMobile/HeaderMainMobile.js +26 -24
  84. package/dist/Header/components/HeaderMobile/HeaderMobile.js +67 -52
  85. package/dist/Header/components/HeaderSearch/HeaderSearch.js +1 -1
  86. package/dist/Header/components/HeaderTab/HeaderTab.js +17 -15
  87. package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +10 -9
  88. package/dist/Header/components/HeaderWeb/HeaderWeb.js +134 -114
  89. package/dist/Header/components/TabsOutlined/TabsOutlined.js +8 -7
  90. package/dist/HeroIconsBanner/HeroIconsBanner.js +71 -54
  91. package/dist/IconList/IconList.js +59 -33
  92. package/dist/InfoCardList/InfoCardList.js +100 -0
  93. package/dist/InfoCardList/index.js +6 -0
  94. package/dist/InfoCardList/info.js +11 -0
  95. package/dist/InfoCardList/schema.js +39 -0
  96. package/dist/InfoCardList/types.js +1 -0
  97. package/dist/ModalBody/index.js +1 -1
  98. package/dist/PageViewer/renderComponents.js +1 -1
  99. package/dist/PostsList/PostsList.js +78 -0
  100. package/dist/PostsList/index.js +4 -0
  101. package/dist/PostsList/info.js +11 -0
  102. package/dist/PostsList/schema.js +49 -0
  103. package/dist/PostsList/types.js +1 -0
  104. package/dist/PostsSlider/PostsSlider.js +78 -0
  105. package/dist/PostsSlider/index.js +4 -0
  106. package/dist/PostsSlider/info.js +11 -0
  107. package/dist/PostsSlider/schema.js +49 -0
  108. package/dist/PostsSlider/types.js +1 -0
  109. package/dist/PreviewList/PreviewList.js +19 -19
  110. package/dist/PreviewList/components/PreviewCard/PreviewCard.js +29 -29
  111. package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
  112. package/dist/RenderAllComponents/const.js +1 -1
  113. package/dist/SearchBlock/SearchBlock.js +101 -0
  114. package/dist/SearchBlock/index.js +4 -0
  115. package/dist/SearchBlock/info.js +11 -0
  116. package/dist/SearchBlock/schema.js +36 -0
  117. package/dist/SegmentedContent/SegmentedContent.js +160 -0
  118. package/dist/SegmentedContent/components/ContentCard.js +50 -0
  119. package/dist/SegmentedContent/components/index.js +4 -0
  120. package/dist/SegmentedContent/index.js +8 -0
  121. package/dist/SegmentedContent/info.js +12 -0
  122. package/dist/SegmentedContent/schema.js +108 -0
  123. package/dist/SegmentedContent/types.js +1 -0
  124. package/dist/Segments/Segments.js +36 -28
  125. package/dist/Segments/index.js +8 -2
  126. package/dist/Segments/info.js +1 -1
  127. package/dist/Segments/schema.js +21 -0
  128. package/dist/Segments/types.js +4 -1
  129. package/dist/SegmentsIcons/SegmentsIcons.js +92 -0
  130. package/dist/SegmentsIcons/index.js +8 -0
  131. package/dist/SegmentsIcons/info.js +11 -0
  132. package/dist/SegmentsIcons/schema.js +14 -0
  133. package/dist/SegmentsIcons/types.js +1 -0
  134. package/dist/SwiperList/SwiperList.js +13 -11
  135. package/dist/assets/index.css +1 -1
  136. package/dist/{clientApi-642fea4b.js → clientApi-ccb08ba6.js} +7 -7
  137. package/dist/{componentsMap-855b1df7.js → componentsMap-29ccdfcc.js} +6 -3
  138. package/dist/{data.mock-182979d1.js → data.mock-bb32e8ee.js} +485 -133
  139. package/dist/index-0791c17f.js +56 -0
  140. package/dist/index-2ec92a04.js +32 -0
  141. package/dist/{index-497f59a8.js → index-b795390d.js} +23 -20
  142. package/dist/index.esm-0558519f.js +1171 -0
  143. package/dist/{index.module-c8833286.js → index.module-8835bf96.js} +1 -1
  144. package/dist/info-72904479.js +791 -0
  145. package/dist/main.js +151 -116
  146. package/dist/{mousewheel-865ae601.js → mousewheel-afbc6d42.js} +1 -1
  147. package/dist/navigation-266856e7.js +136 -0
  148. package/dist/navigation-cd786a0d.js +133 -0
  149. package/dist/{palette-c2fe86ec.js → palette-256cf77a.js} +3 -1
  150. package/dist/{swiper-react-90953710.js → swiper-react-3c2710e8.js} +695 -825
  151. package/dist/trash/HeroLargeCards/index.js +7 -6
  152. package/dist/types-c3843cc0.js +4 -0
  153. package/dist/useDraggableScroll-440da9b7.js +29 -0
  154. package/dist/useTranslation-d7a3ca6f.js +298 -0
  155. package/package.json +1 -1
  156. package/dist/FileLoader/fileLoader.js +0 -22
  157. package/dist/FileLoader/index.js +0 -8
  158. package/dist/Forms/FormDefault/componentTypes.js +0 -31
  159. package/dist/Forms/FormDefault/fieldTypesList.js +0 -45
  160. package/dist/Forms/helpers/renderFormFields.js +0 -7
  161. package/dist/Forms/model/requestForm.js +0 -4
  162. package/dist/index-6686852d.js +0 -1794
  163. package/dist/index-a0ed2e4a.js +0 -1221
  164. package/dist/info-34fbb2a8.js +0 -1534
  165. package/dist/navigation-b894d0cd.js +0 -183
  166. /package/dist/Forms/{types/formItems.js → FormDefault/model/types.js} +0 -0
@@ -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 "react/jsx-runtime";
2
- import { a as p } from "../index-497f59a8.js";
2
+ import { a as p } from "../index-b795390d.js";
3
3
  import "react";
4
4
  export {
5
5
  p as ModalBody
@@ -1,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { c as f } from "../componentsMap-855b1df7.js";
2
+ import { c as f } from "../componentsMap-29ccdfcc.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,14 +1,14 @@
1
- import { jsxs as s, jsx as a } from "react/jsx-runtime";
2
- import { B as i } from "../index-875e92ce.js";
1
+ import { jsxs as p, jsx as t } from "react/jsx-runtime";
2
+ import { B as s } from "../index-875e92ce.js";
3
3
  import { c as o } from "../const-53dff524.js";
4
- import { C as n } from "../ComponentContainer-dca711c6.js";
5
- import { PreviewCardData as c, PreviewCard as d } from "./components/PreviewCard/PreviewCard.js";
4
+ import { C as c } from "../ComponentContainer-dca711c6.js";
5
+ import { PreviewCardData as d, PreviewCard as n } from "./components/PreviewCard/PreviewCard.js";
6
6
  const f = {
7
7
  type: "cards",
8
8
  dataType: "array",
9
9
  label: "Карточки",
10
10
  data: {
11
- ...c
11
+ ...d
12
12
  }
13
13
  }, g = [
14
14
  "title",
@@ -17,35 +17,35 @@ const f = {
17
17
  o,
18
18
  "grid"
19
19
  ], h = ({
20
- title: t,
21
- cards: x,
20
+ title: r,
21
+ cards: a,
22
22
  button: e,
23
- grid: m = 3,
24
- description: r
25
- }) => /* @__PURE__ */ s(n, { className: "flex flex-col items-center", children: [
26
- (t == null ? void 0 : t.length) && /* @__PURE__ */ a(
23
+ grid: x = 3,
24
+ description: i
25
+ }) => /* @__PURE__ */ p(c, { className: "flex flex-col items-center", children: [
26
+ r && /* @__PURE__ */ t(
27
27
  "h2",
28
28
  {
29
29
  className: `font-bold text-[44px] max-tablet:text-[26px] max-tablet:leading-[32px] leading-[42px] text-center
30
30
  mb-[24px] max-tablet:mb-[8px] font-variant-numeric font-feature-settings`,
31
- children: t
31
+ children: r
32
32
  }
33
33
  ),
34
- (r == null ? void 0 : r.length) && /* @__PURE__ */ a("p", { className: "text-[20px] max-tablet:text-[16px] max-tablet:leading-[20px] leading-[26px] text-graySoft text-center mb-[36px] max-tablet:mb-[32px]", children: r }),
35
- /* @__PURE__ */ a(
34
+ i && /* @__PURE__ */ t("p", { className: "text-[20px] max-tablet:text-[16px] max-tablet:leading-[20px] leading-[26px] text-graySoft text-center mb-[36px] max-tablet:mb-[32px]", children: i }),
35
+ /* @__PURE__ */ t(
36
36
  "div",
37
37
  {
38
- className: `w-full grid grid-cols-${m} items-stretch gap-[24px] max-tablet:grid-cols-1`,
39
- children: x == null ? void 0 : x.map((l, p) => /* @__PURE__ */ a(
40
- d,
38
+ className: `w-full grid grid-cols-${x} items-stretch gap-[24px] max-tablet:grid-cols-1`,
39
+ children: a == null ? void 0 : a.map((l, m) => /* @__PURE__ */ t(
40
+ n,
41
41
  {
42
42
  ...l
43
43
  },
44
- p
44
+ m
45
45
  ))
46
46
  }
47
47
  ),
48
- ((e == null ? void 0 : e.title) || (e == null ? void 0 : e.children)) && /* @__PURE__ */ a(i, { ...e })
48
+ ((e == null ? void 0 : e.title) || (e == null ? void 0 : e.children)) && /* @__PURE__ */ t(s, { ...e })
49
49
  ] });
50
50
  h.propsToEdit = g;
51
51
  export {
@@ -1,9 +1,9 @@
1
- import { jsxs as p, jsx as a } from "react/jsx-runtime";
2
- import { FieldTypes as r } from "../../../Types/FiledTypes.js";
3
- import { B as c } from "../../../index-875e92ce.js";
4
- import { B as d } from "../../../const-53dff524.js";
5
- import { I as x } from "../../../index-9384c6d6.js";
6
- const m = [
1
+ import { jsxs as o, jsx as l } from "react/jsx-runtime";
2
+ import { FieldTypes as a } from "../../../Types/FiledTypes.js";
3
+ import { B as t } from "../../../index-875e92ce.js";
4
+ import { B as c } from "../../../const-53dff524.js";
5
+ import { I as d } from "../../../index-9384c6d6.js";
6
+ const x = [
7
7
  "title",
8
8
  "subtitle",
9
9
  "image",
@@ -11,42 +11,42 @@ const m = [
11
11
  "id",
12
12
  "background_color"
13
13
  ], w = {
14
- title: r.TITLE,
15
- subtitle: r.DESCRIPTION,
16
- image: r.FILE,
17
- button: d,
18
- background_color: r.COLOR
19
- }, t = ({
20
- title: l,
21
- subtitle: o,
22
- image: s,
14
+ title: a.TITLE,
15
+ subtitle: a.DESCRIPTION,
16
+ image: a.FILE,
17
+ button: c,
18
+ background_color: a.COLOR
19
+ }, m = ({
20
+ title: r,
21
+ subtitle: i,
22
+ image: p,
23
23
  button: e,
24
- background_color: i
25
- }) => /* @__PURE__ */ p("div", { className: "w-full flex flex-col rounded-[20px] overflow-hidden", children: [
26
- /* @__PURE__ */ a(
24
+ background_color: s
25
+ }) => /* @__PURE__ */ o("div", { className: "w-full flex flex-col rounded-[20px] overflow-hidden", children: [
26
+ /* @__PURE__ */ l(
27
27
  "div",
28
28
  {
29
- style: { background: i },
29
+ style: { background: s },
30
30
  className: "relative w-full h-[256px] max-tablet:h-[224px]",
31
- children: /* @__PURE__ */ a(
32
- x,
31
+ children: /* @__PURE__ */ l(
32
+ d,
33
33
  {
34
- src: s,
35
- alt: l,
34
+ src: p,
35
+ alt: r,
36
36
  className: "w-full h-full",
37
37
  imageStyles: "object-contain"
38
38
  }
39
39
  )
40
40
  }
41
41
  ),
42
- /* @__PURE__ */ p("div", { className: "bg-white p-[32px] max-tablet:px-[24px] max-tablet:py-[32px] flex flex-col gap-[8px] h-full", children: [
43
- (l == null ? void 0 : l.length) && /* @__PURE__ */ a("p", { className: "text-[24px] leading-[32px] font-bold", children: l }),
44
- o && /* @__PURE__ */ a("p", { className: "text-[14px] leading-[20px] text-graySoft", children: o }),
45
- ((e == null ? void 0 : e.title) || (e == null ? void 0 : e.children)) && /* @__PURE__ */ a(c, { ...e })
42
+ /* @__PURE__ */ o("div", { className: "bg-white p-[32px] max-tablet:px-[24px] max-tablet:py-[32px] flex flex-col gap-[8px] h-full", children: [
43
+ r && /* @__PURE__ */ l("p", { className: "text-[24px] leading-[32px] font-bold", children: r }),
44
+ i && /* @__PURE__ */ l("p", { className: "text-[14px] leading-[20px] text-graySoft", children: i }),
45
+ ((e == null ? void 0 : e.title) || (e == null ? void 0 : e.children)) && /* @__PURE__ */ l(t, { ...e })
46
46
  ] })
47
47
  ] });
48
- t.propsToEdit = m;
48
+ m.propsToEdit = x;
49
49
  export {
50
- t as PreviewCard,
50
+ m as PreviewCard,
51
51
  w as PreviewCardData
52
52
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, Fragment as t } from "react/jsx-runtime";
2
- import { c as i } from "../componentsMap-855b1df7.js";
2
+ import { c as i } from "../componentsMap-29ccdfcc.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-182979d1.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-bb32e8ee.js";
2
2
  const j = [
3
3
  a,
4
4
  t,
@@ -0,0 +1,101 @@
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
+ black: "stroke-[#0E0F11]",
7
+ gray: "stroke-[#758795]"
8
+ }, u = ({ className: t, variant: l = "black" }) => /* @__PURE__ */ e(
9
+ "svg",
10
+ {
11
+ width: "21",
12
+ height: "21",
13
+ viewBox: "0 0 21 21",
14
+ fill: "none",
15
+ xmlns: "http://www.w3.org/2000/svg",
16
+ className: t,
17
+ children: /* @__PURE__ */ e(
18
+ "path",
19
+ {
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: b(d[l], "stroke-[1.6]"),
22
+ strokeLinecap: "round"
23
+ }
24
+ )
25
+ }
26
+ ), C = ({
27
+ title: t,
28
+ placeholder: l,
29
+ tags: i = [],
30
+ onSearch: x,
31
+ onTagClick: n
32
+ }) => {
33
+ const o = m(null), s = () => {
34
+ x && o.current && x(o.current.value);
35
+ };
36
+ return /* @__PURE__ */ c(
37
+ r,
38
+ {
39
+ vertical: !0,
40
+ align: "center",
41
+ justify: "center",
42
+ className: "max-w-[880px] mx-auto",
43
+ children: [
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
+ {
48
+ align: "center",
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]",
50
+ children: [
51
+ /* @__PURE__ */ e(
52
+ "input",
53
+ {
54
+ ref: o,
55
+ type: "text",
56
+ placeholder: l,
57
+ onKeyDown: (a) => {
58
+ a.key === "Enter" && s();
59
+ },
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]"
61
+ }
62
+ ),
63
+ /* @__PURE__ */ e(
64
+ r,
65
+ {
66
+ component: "button",
67
+ "aria-label": "Search",
68
+ onClick: s,
69
+ align: "center",
70
+ justify: "center",
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" })
73
+ }
74
+ )
75
+ ]
76
+ }
77
+ ),
78
+ /* @__PURE__ */ e(
79
+ r,
80
+ {
81
+ wrap: !0,
82
+ justify: "center",
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(
85
+ "button",
86
+ {
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
90
+ },
91
+ p
92
+ ))
93
+ }
94
+ )
95
+ ]
96
+ }
97
+ );
98
+ };
99
+ export {
100
+ C as SearchBlock
101
+ };
@@ -0,0 +1,4 @@
1
+ import { SearchBlock as c } from "./SearchBlock.js";
2
+ export {
3
+ c as SearchBlock
4
+ };
@@ -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.banners],
7
+ propsToEdit: t
8
+ };
9
+ export {
10
+ p as searchBlockInfo
11
+ };