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