md-components-mdigial-azamat 0.0.300 → 0.0.301

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.
@@ -1,15 +1,16 @@
1
1
  import { jsx as e, jsxs as a, Fragment as h } from "react/jsx-runtime";
2
2
  import { FieldTypes as l } from "../Types/FiledTypes.js";
3
- import { B } from "../index-db918f20.js";
4
- import { B as C } from "../const-6b683c28.js";
5
- import { C as S } from "../ComponentContainer-dca711c6.js";
3
+ import { e as B, t as S, a as T } from "../themeProps-d4f49292.js";
4
+ import { B as j } from "../index-db918f20.js";
5
+ import { B as I } from "../const-6b683c28.js";
6
+ import { C as O } from "../ComponentContainer-dca711c6.js";
6
7
  import { I as u } from "../index-df8034eb.js";
7
- import { S as s } from "../SafeHtml-c00e29eb.js";
8
- import { S as T } from "../index-9003c9ff.js";
9
- import { s as j } from "../const-2634f715.js";
8
+ import { S as x } from "../SafeHtml-c00e29eb.js";
9
+ import { S as P } from "../index-9003c9ff.js";
10
+ import { s as R } from "../const-2634f715.js";
10
11
  import { c as o } from "../cn-6a4bf187.js";
11
- import { u as I } from "../useScreenSize-c1b64c02.js";
12
- const O = {
12
+ import { u as L } from "../useScreenSize-c1b64c02.js";
13
+ const E = {
13
14
  type: "qr",
14
15
  label: "QR Блок",
15
16
  dataType: "object",
@@ -27,10 +28,10 @@ const O = {
27
28
  },
28
29
  color_text: l.COLOR,
29
30
  color_bg: l.COLOR,
30
- button: C
31
+ button: I
31
32
  }
32
33
  }
33
- }, R = [
34
+ }, z = [
34
35
  "bg_image",
35
36
  "image",
36
37
  {
@@ -42,33 +43,35 @@ const O = {
42
43
  { label: "XL", value: "xl" }
43
44
  ]
44
45
  },
45
- "background_color",
46
+ B,
46
47
  "title",
47
- "text_color",
48
+ S,
49
+ T,
48
50
  "description",
49
- j,
50
- O
51
- ], L = ({
51
+ R,
52
+ E
53
+ ], H = ({
52
54
  bg_image: i,
53
55
  image: c,
54
56
  image_size: p,
55
- title: x,
57
+ title: s,
56
58
  background_color: w,
59
+ title_color: y,
57
60
  text_color: r = "inherit",
58
61
  description: b,
59
62
  buttons: n,
60
63
  qr: t
61
64
  }) => {
62
65
  var _;
63
- const d = I(960), y = t == null ? void 0 : t.swap_qr_buttons, N = p === "xl" ? 520 : 400, v = p === "xl" ? 280 : 218, f = !!n && /* @__PURE__ */ e("div", { className: "flex items-center gap-4 mt-6 max-tablet:flex-col max-tablet:gap-[10px] max-tablet:mt-[5px]", children: n == null ? void 0 : n.map((m, k) => /* @__PURE__ */ e(
64
- T,
66
+ const d = L(960), N = t == null ? void 0 : t.swap_qr_buttons, v = p === "xl" ? 520 : 400, k = p === "xl" ? 280 : 218, f = !!n && /* @__PURE__ */ e("div", { className: "flex items-center gap-4 mt-6 max-tablet:flex-col max-tablet:gap-[10px] max-tablet:mt-[5px]", children: n == null ? void 0 : n.map((m, C) => /* @__PURE__ */ e(
67
+ P,
65
68
  {
66
69
  ...m,
67
70
  link: (m == null ? void 0 : m.link) ?? "#",
68
71
  target: "_blank",
69
72
  className: "z-10 w-[200px] whitespace-nowrap max-tablet:w-full"
70
73
  },
71
- k
74
+ C
72
75
  )) }), g = !!t && /* @__PURE__ */ a("div", { className: "flex flex-col gap-4 mt-6 max-tablet:items-center max-tablet:gap-[10px] max-tablet:mt-[5px]", children: [
73
76
  (t == null ? void 0 : t.banner_qr) && /* @__PURE__ */ a(
74
77
  "div",
@@ -92,7 +95,7 @@ const O = {
92
95
  ),
93
96
  /* @__PURE__ */ a("div", { className: "flex flex-col gap-1", children: [
94
97
  (t == null ? void 0 : t.banner_qr_text) && /* @__PURE__ */ e("div", { style: { color: (t == null ? void 0 : t.color_text) || "#18191c" }, children: /* @__PURE__ */ e(
95
- s,
98
+ x,
96
99
  {
97
100
  html: t.banner_qr_text,
98
101
  as: "p",
@@ -103,7 +106,7 @@ const O = {
103
106
  }
104
107
  ) }),
105
108
  (t == null ? void 0 : t.banner_qr_description) && /* @__PURE__ */ e("div", { style: { color: (t == null ? void 0 : t.color_text) || "#7893b0" }, children: /* @__PURE__ */ e(
106
- s,
109
+ x,
107
110
  {
108
111
  html: t.banner_qr_description,
109
112
  as: "p",
@@ -115,7 +118,7 @@ const O = {
115
118
  }
116
119
  ),
117
120
  (t == null ? void 0 : t.button) && /* @__PURE__ */ e(
118
- B,
121
+ j,
119
122
  {
120
123
  ...t.button,
121
124
  link: (_ = t.button) == null ? void 0 : _.link,
@@ -125,7 +128,7 @@ const O = {
125
128
  }
126
129
  )
127
130
  ] });
128
- return /* @__PURE__ */ e(S, { children: /* @__PURE__ */ a(
131
+ return /* @__PURE__ */ e(O, { children: /* @__PURE__ */ a(
129
132
  "div",
130
133
  {
131
134
  className: o(
@@ -137,18 +140,18 @@ const O = {
137
140
  },
138
141
  children: [
139
142
  /* @__PURE__ */ a("div", { className: " flex flex-col gap-4 w-[40%] max-tablet:w-full justify-center p-12 max-tablet:p-8 max-tablet:pb-0", children: [
140
- x && /* @__PURE__ */ e(
143
+ s && /* @__PURE__ */ e(
141
144
  "p",
142
145
  {
143
146
  className: o(
144
147
  "text-[32px] font-bold leading-[40px] text-left text-black m-0 max-tablet:text-center max-tablet:text-[24px] max-tablet:leading-[28px]"
145
148
  ),
146
- style: { color: r },
147
- children: x
149
+ style: { color: y || r },
150
+ children: s
148
151
  }
149
152
  ),
150
153
  b && /* @__PURE__ */ e("div", { style: { color: r }, children: /* @__PURE__ */ e(
151
- s,
154
+ x,
152
155
  {
153
156
  html: b,
154
157
  as: "div",
@@ -157,7 +160,7 @@ const O = {
157
160
  )
158
161
  }
159
162
  ) }),
160
- y ? /* @__PURE__ */ a(h, { children: [
163
+ N ? /* @__PURE__ */ a(h, { children: [
161
164
  g,
162
165
  f
163
166
  ] }) : /* @__PURE__ */ a(h, { children: [
@@ -169,9 +172,9 @@ const O = {
169
172
  u,
170
173
  {
171
174
  src: c,
172
- alt: x,
175
+ alt: s,
173
176
  width: d ? 312 : 588,
174
- height: d ? v : N,
177
+ height: d ? k : v,
175
178
  className: o("max-tablet:!w-full align-bottom items-end mt-auto"),
176
179
  imageStyles: "object-contain object-bottom"
177
180
  }
@@ -180,8 +183,8 @@ const O = {
180
183
  }
181
184
  ) });
182
185
  };
183
- L.propsToEdit = R;
186
+ H.propsToEdit = z;
184
187
  export {
185
- L as Banner,
186
- R as propsToEdit
188
+ H as Banner,
189
+ z as propsToEdit
187
190
  };
@@ -1,134 +1,137 @@
1
- import { jsx as i, jsxs as b } from "react/jsx-runtime";
2
- import { useState as N } from "react";
3
- import { CardImage as w } from "../Cards/CardImage/CardImage.js";
1
+ import { jsx as i, jsxs as S } from "react/jsx-runtime";
2
+ import { useState as I } from "react";
3
+ import { CardImage as C } from "../Cards/CardImage/CardImage.js";
4
4
  import "../Cards/CardImage/info.js";
5
- import { CardImageVariant as r, CardImageSize as s } from "../Cards/CardImage/types.js";
6
- import { Bullet as A } from "../SwiperList/components/Bullet/Bullet.js";
7
- import { S as v, a as I } from "../swiper-react-f34d3a3b.js";
8
- import { B as R } from "../index-db918f20.js";
9
- import { C as u } from "../ComponentContainer-dca711c6.js";
10
- import { F as E } from "../Flex-86aee720.js";
11
- import { S as L } from "../SafeHtml-c00e29eb.js";
5
+ import { CardImageVariant as m, CardImageSize as x } from "../Cards/CardImage/types.js";
6
+ import { Bullet as R } from "../SwiperList/components/Bullet/Bullet.js";
7
+ import { S as _, a as u } from "../swiper-react-f34d3a3b.js";
8
+ import { B as E } from "../index-db918f20.js";
9
+ import { C as L } from "../ComponentContainer-dca711c6.js";
10
+ import { F as k } from "../Flex-86aee720.js";
11
+ import { S as y } from "../SafeHtml-c00e29eb.js";
12
12
  import { c as o } from "../cn-6a4bf187.js";
13
- import { propsToEdit as k } from "./schema.js";
14
- import '../assets/swiper.816446ca.css';/* empty css */const S = {
15
- [r.PRIMARY]: {
13
+ import { propsToEdit as z } from "./schema.js";
14
+ import '../assets/swiper.816446ca.css';/* empty css */const v = {
15
+ [m.PRIMARY]: {
16
16
  title: "text-black",
17
17
  description: "text-graySoft"
18
18
  },
19
- [r.SECONDARY]: {
19
+ [m.SECONDARY]: {
20
20
  title: "text-white",
21
21
  description: "text-white/80"
22
22
  }
23
- }, z = {
24
- [s.SMALL]: {
23
+ }, B = {
24
+ [x.SMALL]: {
25
25
  title: "font-bold max-tablet:text-[26px] text-[44px] max-tablet:leading-[34px] leading-[52px]"
26
26
  },
27
- [s.LARGE]: {
27
+ [x.LARGE]: {
28
28
  title: "font-bold max-tablet:text-[26px] text-[44px] max-tablet:leading-[34px] leading-[52px]"
29
29
  }
30
- }, B = ({
30
+ }, O = ({
31
31
  cards: t,
32
- title: x,
33
- description: p,
34
- grid: f,
35
- button: m,
36
- variant: l = r.PRIMARY,
37
- size: n = s.LARGE,
38
- is_mobile_slider: h = !1,
39
- is_highlighted: g = !1
32
+ title: h,
33
+ title_color: s,
34
+ description: f,
35
+ text_color: n,
36
+ grid: g,
37
+ button: r,
38
+ variant: l = m.PRIMARY,
39
+ size: p = x.LARGE,
40
+ is_mobile_slider: c = !1,
41
+ is_highlighted: b = !1
40
42
  }) => {
41
- const [C, _] = N(0), c = f < 3;
42
- return /* @__PURE__ */ i(u, { children: /* @__PURE__ */ b(
43
- E,
43
+ const [N, A] = I(0), w = g < 3;
44
+ return /* @__PURE__ */ i(L, { children: /* @__PURE__ */ S(
45
+ k,
44
46
  {
45
47
  vertical: !0,
46
48
  align: "center",
47
49
  gap: 24,
48
50
  className: "w-full",
49
51
  children: [
50
- x && /* @__PURE__ */ i(
52
+ h && /* @__PURE__ */ i(
51
53
  "h2",
52
54
  {
53
55
  className: o(
54
56
  "text-center mb-6 max-tablet:mb-2 font-variant-numeric font-feature-settings",
55
- z[n].title,
56
- S[l].title
57
+ B[p].title,
58
+ !s && v[l].title
57
59
  ),
58
- children: x
60
+ style: s ? { color: s } : void 0,
61
+ children: h
59
62
  }
60
63
  ),
61
- p && /* @__PURE__ */ i(
62
- L,
64
+ f && /* @__PURE__ */ i("div", { style: n ? { color: n } : void 0, children: /* @__PURE__ */ i(
65
+ y,
63
66
  {
64
- html: p,
67
+ html: f,
65
68
  as: "div",
66
69
  className: o(
67
70
  "text-lg leading-[26px] text-center [&_h1]:text-3xl [&_h1]:font-bold [&_h1]:mb-2 [&_h2]:text-2xl [&_h2]:font-semibold [&_h2]:mb-1",
68
- S[l].description
71
+ !n && v[l].description
69
72
  )
70
73
  }
71
- ),
74
+ ) }),
72
75
  /* @__PURE__ */ i(
73
76
  "div",
74
77
  {
75
78
  className: o(
76
- `w-full grid grid-cols-${f} items-stretch gap-6`,
77
- h ? "max-tablet:hidden" : "max-tablet:grid-cols-1"
79
+ `w-full grid grid-cols-${g} items-stretch gap-6`,
80
+ c ? "max-tablet:hidden" : "max-tablet:grid-cols-1"
78
81
  ),
79
82
  children: t == null ? void 0 : t.map((e) => /* @__PURE__ */ i(
80
- w,
83
+ C,
81
84
  {
82
85
  data: {
83
86
  ...e,
84
- with_large_title: c,
87
+ with_large_title: w,
85
88
  variant: l || (e == null ? void 0 : e.variant),
86
- size: n || (e == null ? void 0 : e.size),
87
- is_highlighted: (e == null ? void 0 : e.is_highlighted) || g
89
+ size: p || (e == null ? void 0 : e.size),
90
+ is_highlighted: (e == null ? void 0 : e.is_highlighted) || b
88
91
  }
89
92
  },
90
93
  e == null ? void 0 : e.id
91
94
  ))
92
95
  }
93
96
  ),
94
- h && /* @__PURE__ */ b("div", { className: "w-full hidden max-tablet:block", children: [
97
+ c && /* @__PURE__ */ S("div", { className: "w-full hidden max-tablet:block", children: [
95
98
  /* @__PURE__ */ i(
96
- v,
99
+ _,
97
100
  {
98
101
  spaceBetween: 12,
99
102
  slidesPerView: 1.5,
100
103
  slidesOffsetBefore: 16,
101
104
  slidesOffsetAfter: 16,
102
- onSlideChange: (e) => _(e.realIndex),
103
- children: t == null ? void 0 : t.map((e) => /* @__PURE__ */ i(I, { children: /* @__PURE__ */ i(
104
- w,
105
+ onSlideChange: (e) => A(e.realIndex),
106
+ children: t == null ? void 0 : t.map((e) => /* @__PURE__ */ i(u, { children: /* @__PURE__ */ i(
107
+ C,
105
108
  {
106
109
  data: {
107
110
  ...e,
108
- with_large_title: c,
111
+ with_large_title: w,
109
112
  variant: l || (e == null ? void 0 : e.variant),
110
- size: n || (e == null ? void 0 : e.size),
111
- is_highlighted: (e == null ? void 0 : e.is_highlighted) || g
113
+ size: p || (e == null ? void 0 : e.size),
114
+ is_highlighted: (e == null ? void 0 : e.is_highlighted) || b
112
115
  }
113
116
  }
114
117
  ) }, e == null ? void 0 : e.id))
115
118
  }
116
119
  ),
117
120
  /* @__PURE__ */ i(
118
- A,
121
+ R,
119
122
  {
120
123
  count: (t == null ? void 0 : t.length) || 0,
121
- active: C,
122
- activeColor: l === r.SECONDARY ? "white" : "black",
123
- anActiveColor: l === r.SECONDARY ? "rgba(255, 255, 255, 0.4)" : "rgba(0, 0, 0, 0.2)",
124
+ active: N,
125
+ activeColor: l === m.SECONDARY ? "white" : "black",
126
+ anActiveColor: l === m.SECONDARY ? "rgba(255, 255, 255, 0.4)" : "rgba(0, 0, 0, 0.2)",
124
127
  className: "mt-8 hidden max-tablet:flex"
125
128
  }
126
129
  )
127
130
  ] }),
128
- (m == null ? void 0 : m.link) && /* @__PURE__ */ i("div", { className: "flex flex-wrap gap-4", children: /* @__PURE__ */ i(
129
- R,
131
+ (r == null ? void 0 : r.link) && /* @__PURE__ */ i("div", { className: "flex flex-wrap gap-4", children: /* @__PURE__ */ i(
132
+ E,
130
133
  {
131
- ...m,
134
+ ...r,
132
135
  target: "_blank",
133
136
  className: o("w-fit z-10 max-tablet:w-full")
134
137
  }
@@ -137,7 +140,7 @@ import '../assets/swiper.816446ca.css';/* empty css */const S =
137
140
  }
138
141
  ) });
139
142
  };
140
- B.propsToEdit = k;
143
+ O.propsToEdit = z;
141
144
  export {
142
- B as CardImageList
145
+ O as CardImageList
143
146
  };
@@ -1,10 +1,11 @@
1
- import { AllActionsObject as o } from "../Actions/types.js";
2
- import { CardImageVariant as l, CardImageSize as t } from "../Cards/CardImage/types.js";
3
- import { DataTypesEnum as a, FieldTypes as e } from "../Types/FiledTypes.js";
4
- import { B as i } from "../const-6b683c28.js";
5
- const r = {
1
+ import { AllActionsObject as i } from "../Actions/types.js";
2
+ import { CardImageVariant as t, CardImageSize as a } from "../Cards/CardImage/types.js";
3
+ import { DataTypesEnum as l, FieldTypes as e } from "../Types/FiledTypes.js";
4
+ import { t as r, a as p } from "../themeProps-d4f49292.js";
5
+ import { B as o } from "../const-6b683c28.js";
6
+ const y = {
6
7
  label: "Карточки",
7
- dataType: a.array,
8
+ dataType: l.array,
8
9
  key: "cards",
9
10
  data: {
10
11
  title: {
@@ -33,11 +34,11 @@ const r = {
33
34
  key: "is_highlighted"
34
35
  },
35
36
  action: {
36
- ...o,
37
+ ...i,
37
38
  label: "Действие"
38
39
  },
39
40
  button: {
40
- ...i,
41
+ ...o,
41
42
  key: "button",
42
43
  label: "Кнопка в карточке"
43
44
  },
@@ -45,50 +46,62 @@ const r = {
45
46
  type: e.COLOR,
46
47
  label: "Цвет фона карточки",
47
48
  key: "background_color"
49
+ },
50
+ title_color: {
51
+ type: e.COLOR,
52
+ label: "Цвет заголовка карточки",
53
+ key: "title_color"
54
+ },
55
+ text_color: {
56
+ type: e.COLOR,
57
+ label: "Цвет текста карточки",
58
+ key: "text_color"
48
59
  }
49
60
  }
50
61
  }, s = {
51
62
  label: "Вариант",
52
63
  key: "variant",
53
- dataType: a.select,
64
+ dataType: l.select,
54
65
  options: [
55
66
  {
56
67
  label: "Primary",
57
- value: l.PRIMARY
68
+ value: t.PRIMARY
58
69
  },
59
70
  {
60
71
  label: "Secondary",
61
- value: l.SECONDARY
72
+ value: t.SECONDARY
62
73
  }
63
74
  ]
64
- }, y = {
75
+ }, b = {
65
76
  label: "Размер",
66
77
  key: "size",
67
- dataType: a.select,
78
+ dataType: l.select,
68
79
  options: [
69
80
  {
70
81
  label: "Large",
71
- value: t.LARGE
82
+ value: a.LARGE
72
83
  },
73
84
  {
74
85
  label: "Small",
75
- value: t.SMALL
86
+ value: a.SMALL
76
87
  }
77
88
  ]
78
- }, d = [
89
+ }, g = [
79
90
  "title",
91
+ r,
80
92
  "description",
93
+ p,
81
94
  s,
95
+ b,
82
96
  y,
83
- r,
84
97
  "grid",
85
- i,
98
+ o,
86
99
  {
87
- dataType: a.boolean,
100
+ dataType: l.boolean,
88
101
  label: "Слайдер на мобилке",
89
102
  key: "is_mobile_slider"
90
103
  }
91
104
  ];
92
105
  export {
93
- d as propsToEdit
106
+ g as propsToEdit
94
107
  };