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
@@ -1,10 +1,12 @@
1
- import { jsxs as b, jsx as l } from "react/jsx-runtime";
2
- import { useState as A, useRef as m } from "react";
3
- import { A as E, C as I, a as B } from "../navigation-b894d0cd.js";
4
- import { Bullet as C } from "../SwiperList/components/Bullet/Bullet.js";
5
- import { FieldTypes as o } from "../Types/FiledTypes.js";
6
- import { a as L, N as T, b as O } from "../swiper-react-90953710.js";
7
- import { c as R } from "../createBoolean-56064b0d.js";
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: o.TITLE,
17
- description: o.DESCRIPTION,
18
- image: o.FILE,
19
- icon: o.FILE,
20
- is_black: o.BOOLEAN,
21
- is_promo: o.BOOLEAN,
22
- is_yellow: o.BOOLEAN
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
- }, _ = R({
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 = m(null), i = z(960), s = i ? 1.2 : 3, v = i ? 16 : 0, N = w ? {
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 = m(null), g = m(null), p = (e == null ? void 0 : e.length) <= s + 1 ? [...e, ...e] : e, d = (e == null ? void 0 : e.length) <= s + 1 ? a % (e == null ? void 0 : e.length) : a;
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__ */ l("p", { className: "text-[44px] leading-[52px] font-bold text-center mb-[48px]", children: x }),
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__ */ l(
50
- L,
51
+ /* @__PURE__ */ o(
52
+ C,
51
53
  {
52
- modules: [T, E],
54
+ modules: [B, I],
53
55
  className: "feature_swiper",
54
56
  initialSlide: 0,
55
- slidesPerView: s,
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 r = t.realIndex;
65
- h(r);
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, r) => {
73
- const f = r === a;
74
- return /* @__PURE__ */ l(O, { children: /* @__PURE__ */ l(
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": f && !i
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]": f && !i
89
+ "h-[122px] w-[122px]": m && !i
88
90
  }),
89
91
  imgStyle: n({
90
- "h-[122px] w-[122px]": f && !i
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__ */ l(
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__ */ l(
106
- I,
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__ */ l(
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__ */ l(
122
- B,
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__ */ l(
132
- C,
133
+ (e == null ? void 0 : e.length) && /* @__PURE__ */ o(
134
+ E,
133
135
  {
134
136
  count: e.length,
135
137
  active: d,
@@ -1,26 +1,32 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { actionsGenerator as p } from "../Actions/actionsGenerator.js";
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { actionsGenerator as c } from "../Actions/actionsGenerator.js";
3
3
  import "../Actions/projectActions.js";
4
4
  import "../Actions/types.js";
5
- import { B as c } from "../index-875e92ce.js";
5
+ import { B as l } from "../index-875e92ce.js";
6
6
  import { b as f, a as u } from "../const-53dff524.js";
7
- const d = ({
8
- buttons: t,
9
- className: e,
10
- gap: n = 4
11
- }) => !t || t.length === 0 ? null : /* @__PURE__ */ a(
12
- "div",
7
+ import { F as B } from "../Flex-86aee720.js";
8
+ import { c as g } from "../cn-6a4bf187.js";
9
+ const C = ({
10
+ buttons: r,
11
+ className: n,
12
+ gap: a = 4
13
+ }) => !r || r.length === 0 ? null : /* @__PURE__ */ i(
14
+ B,
13
15
  {
14
- className: e || `flex flex-wrap items-center justify-center gap-${n} mb-16 max-tablet:mb-10 max-tablet:w-full`,
15
- children: t.map((o, m) => {
16
- const { action: l, link: s, ...r } = o, i = p(l, s);
17
- return /* @__PURE__ */ a(
18
- c,
16
+ wrap: !0,
17
+ align: "center",
18
+ justify: "center",
19
+ gap: `${a * 0.25}rem`,
20
+ className: g("w-full", n),
21
+ children: r.map((e, m) => {
22
+ const { action: s, link: p, ...t } = e, o = c(s, p);
23
+ return /* @__PURE__ */ i(
24
+ l,
19
25
  {
20
- variant: r.variant || f.Primary,
21
- size: r.size || u.XL,
22
- onClick: i == null ? void 0 : i.onClick,
23
- ...r
26
+ variant: t.variant || f.Primary,
27
+ size: t.size || u.XL,
28
+ onClick: o == null ? void 0 : o.onClick,
29
+ ...t
24
30
  },
25
31
  m
26
32
  );
@@ -28,5 +34,5 @@ const d = ({
28
34
  }
29
35
  );
30
36
  export {
31
- d as ButtonsList
37
+ C as ButtonsList
32
38
  };
@@ -1,78 +1,135 @@
1
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
2
- import { AllActionsObject as c } from "../Actions/types.js";
3
- import { CardImage as x } from "../Cards/CardImage/CardImage.js";
4
- import { CardImageVariant as m } from "../Cards/CardImage/types.js";
5
- import { FieldTypes as e } from "../Types/FiledTypes.js";
6
- import { B as f } from "../index-875e92ce.js";
7
- import { B as d } from "../const-53dff524.js";
8
- import { C as g } from "../ComponentContainer-dca711c6.js";
9
- import { c as p } from "../cn-6a4bf187.js";
10
- const b = {
11
- type: "cards",
12
- dataType: "array",
13
- label: "Карточки",
14
- data: {
15
- action: c,
16
- title: e.TITLE,
17
- description: e.DESCRIPTION,
18
- image: e.FILE,
19
- is_black: e.BOOLEAN,
20
- variant: {
21
- options: [
22
- {
23
- label: "Large",
24
- value: m.LARGE
25
- },
26
- {
27
- label: "Small",
28
- value: m.SMALL
29
- }
30
- ],
31
- type: e.VARIANT
32
- }
1
+ import { jsx as t, jsxs as c } from "react/jsx-runtime";
2
+ import { useState as S } from "react";
3
+ import { CardImage as g } from "../Cards/CardImage/CardImage.js";
4
+ import "../Cards/CardImage/info.js";
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]: {
15
+ title: "text-black",
16
+ description: "text-graySoft"
17
+ },
18
+ [r.SECONDARY]: {
19
+ title: "text-white",
20
+ description: "text-white/80"
33
21
  }
34
- }, u = ["title", "description", b, "grid", d], N = ({
35
- cards: r,
36
- title: l,
37
- description: i,
38
- grid: s,
39
- button: o
40
- }) => /* @__PURE__ */ t(g, { children: /* @__PURE__ */ n("div", { className: "w-full flex flex-col items-center gap-[24px]", children: [
41
- l && /* @__PURE__ */ t(
42
- "h2",
43
- {
44
- className: `font-bold max-tablet:text-[26px] text-[44px] max-tablet:leading-[32px] leading-[42px]
45
- mb-[24px] max-tablet:mb-[8px] font-variant-numeric font-feature-settings`,
46
- children: l
47
- }
48
- ),
49
- i && /* @__PURE__ */ t("p", { className: "text-[18px] leading-[26px] text-graySoft text-center", children: i }),
50
- /* @__PURE__ */ t(
51
- "div",
52
- {
53
- className: p(
54
- `w-full grid grid-cols-${s} items-stretch gap-6`,
55
- "max-tablet:grid-cols-1"
56
- ),
57
- children: r == null ? void 0 : r.map((a) => /* @__PURE__ */ t(
58
- x,
59
- {
60
- data: a
61
- },
62
- a == null ? void 0 : a.id
63
- ))
64
- }
65
- ),
66
- o && /* @__PURE__ */ t("div", { className: "flex flex-wrap gap-4", children: /* @__PURE__ */ t(
67
- f,
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,
31
+ title: s,
32
+ description: p,
33
+ grid: h,
34
+ button: x,
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,
68
42
  {
69
- className: p("w-fit z-10 max-tablet:w-full"),
70
- ...o
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
+ }
109
+ ),
110
+ /* @__PURE__ */ t(
111
+ C,
112
+ {
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
+ ]
71
129
  }
72
- ) })
73
- ] }) });
74
- N.propsToEdit = u;
130
+ ) });
131
+ };
132
+ z.propsToEdit = v;
75
133
  export {
76
- N as CardImageList,
77
- u as propsToEdit
134
+ z as CardImageList
78
135
  };
@@ -1,5 +1,5 @@
1
1
  import { C as o } from "../index-0a5f313c.js";
2
- import { propsToEdit as t } from "./CardImageList.js";
2
+ import { propsToEdit as t } from "./schema.js";
3
3
  const i = {
4
4
  title: "Список карточек с изображениями",
5
5
  description: "Компонент для отображения списка карточек с изображениями, заголовками, описаниями и кнопками действий. Используется для представления продуктов, услуг или других элементов в виде сетки карточек.",
@@ -0,0 +1,62 @@
1
+ import { AllActionsObject as t } from "../Actions/types.js";
2
+ import { CardImageVariant as e, CardImageSize as l } from "../Cards/CardImage/types.js";
3
+ import { FieldTypes as a } from "../Types/FiledTypes.js";
4
+ import { B as i } from "../const-53dff524.js";
5
+ const r = {
6
+ type: "cards",
7
+ dataType: "array",
8
+ label: "Карточки",
9
+ data: {
10
+ action: t,
11
+ title: a.TITLE,
12
+ description: a.DESCRIPTION,
13
+ image: a.FILE,
14
+ is_black: a.BOOLEAN
15
+ }
16
+ }, o = {
17
+ label: "Вариант",
18
+ key: "variant",
19
+ value: e.PRIMARY,
20
+ options: [
21
+ {
22
+ label: "Primary",
23
+ value: e.PRIMARY
24
+ },
25
+ {
26
+ label: "Secondary",
27
+ value: e.SECONDARY
28
+ }
29
+ ],
30
+ type: a.VARIANT
31
+ }, s = {
32
+ label: "Размер",
33
+ key: "size",
34
+ value: l.LARGE,
35
+ options: [
36
+ {
37
+ label: "Large",
38
+ value: l.LARGE
39
+ },
40
+ {
41
+ label: "Small",
42
+ value: l.SMALL
43
+ }
44
+ ],
45
+ type: a.VARIANT
46
+ }, c = [
47
+ "title",
48
+ "description",
49
+ o,
50
+ s,
51
+ r,
52
+ "grid",
53
+ i,
54
+ {
55
+ type: a.BOOLEAN,
56
+ label: "Слайдер на мобилке",
57
+ key: "is_mobile_slider"
58
+ }
59
+ ];
60
+ export {
61
+ c as propsToEdit
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,6 @@
1
+ import { ActionSecondaryCard as a } from "./ActionSecondaryCard.js";
2
+ import { ActionSecondaryCardVariant as t } from "./types.js";
3
+ export {
4
+ a as ActionSecondaryCard,
5
+ t as ActionSecondaryCardVariant
6
+ };
@@ -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
+ };
@@ -0,0 +1,4 @@
1
+ var R = /* @__PURE__ */ ((r) => (r.PRIMARY = "primary", r.SECONDARY = "secondary", r))(R || {});
2
+ export {
3
+ R as ActionSecondaryCardVariant
4
+ };