md-components-mdigial-azamat 0.0.46 → 0.0.48

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,4 +1,4 @@
1
- import { M as o, B as t, C as n, S as r, a as e, V as a, b as i, c as p, d as m, e as s, f as d, P as l, g as c, W as D, F as L, D as f, h as C, i as B, j as F, I as y, k, l as w, A as I, m as S, T as _, n as g, E as M, o as P, p as V, q as u, r as T, s as b, t as A } from "./data.mock-2412b65a.js";
1
+ import { M as o, B as t, C as n, S as r, a as e, V as a, b as i, c as p, d as m, e as s, f as d, P as l, g as c, W as D, F as L, D as f, h as C, i as B, j as F, I as y, k, l as w, A as I, m as S, T as _, n as g, E as M, o as P, p as V, q as u, r as T, s as b, t as A } from "./data.mock-61df66ed.js";
2
2
  import H from "./AnimatedSwiper/index.js";
3
3
  import { Banner as h } from "./Banner/Banner.js";
4
4
  import { CardIconList as q } from "./CardIconList/CardIconList.js";
@@ -1,20 +1,20 @@
1
- import { jsx as r, jsxs as m } from "react/jsx-runtime";
2
- import { CardImage as c } from "../Cards/CardImage/CardImage.js";
1
+ import { jsx as e, jsxs as p } from "react/jsx-runtime";
2
+ import { CardImage as n } from "../Cards/CardImage/CardImage.js";
3
3
  import { CardImageVariant as o } from "../Cards/CardImage/types.js";
4
- import { FieldTypes as a } from "../Types/FiledTypes.js";
5
- import { B as d } from "../index-10605794.js";
6
- import { B as f } from "../const-53dff524.js";
7
- import { C as x } from "../ComponentContainer-cdb2528c.js";
8
- import { c as n } from "../cn-6a4bf187.js";
9
- const g = {
4
+ import { FieldTypes as t } from "../Types/FiledTypes.js";
5
+ import { B as c } from "../index-10605794.js";
6
+ import { B as d } from "../const-53dff524.js";
7
+ import { C as f } from "../ComponentContainer-cdb2528c.js";
8
+ import { c as m } from "../cn-6a4bf187.js";
9
+ const x = {
10
10
  type: "cards",
11
11
  dataType: "array",
12
12
  label: "Карточки",
13
13
  data: {
14
- title: a.TITLE,
15
- description: a.DESCRIPTION,
16
- image: a.FILE,
17
- is_black: a.BOOLEAN,
14
+ title: t.TITLE,
15
+ description: t.DESCRIPTION,
16
+ image: t.FILE,
17
+ is_black: t.BOOLEAN,
18
18
  variant: {
19
19
  options: [
20
20
  {
@@ -26,16 +26,16 @@ const g = {
26
26
  value: o.SMALL
27
27
  }
28
28
  ],
29
- type: a.VARIANT
29
+ type: t.VARIANT
30
30
  }
31
31
  }
32
- }, h = [g, "title", "grid", f], v = ({
33
- cards: t,
32
+ }, g = ["title", x, "grid", d], b = ({
33
+ cards: r,
34
34
  title: i,
35
- grid: p,
35
+ grid: s,
36
36
  button: l
37
- }) => /* @__PURE__ */ r(x, { children: /* @__PURE__ */ m("div", { className: "w-full flex flex-col items-center gap-6", children: [
38
- i && /* @__PURE__ */ r(
37
+ }) => /* @__PURE__ */ e(f, { children: /* @__PURE__ */ p("div", { className: "w-full flex flex-col items-center gap-6", children: [
38
+ i && /* @__PURE__ */ e(
39
39
  "p",
40
40
  {
41
41
  className: `font-bold max-tablet:text-[26px] text-[44px] max-tablet:leading-[32px] leading-[42px]
@@ -43,36 +43,32 @@ const g = {
43
43
  children: i
44
44
  }
45
45
  ),
46
- /* @__PURE__ */ r(
46
+ /* @__PURE__ */ e(
47
47
  "div",
48
48
  {
49
- className: n(
50
- `grid grid-cols-${p} items-stretch gap-6`,
49
+ className: m(
50
+ `grid grid-cols-${s} items-stretch gap-6`,
51
51
  "max-tablet:grid-cols-1"
52
52
  ),
53
- children: t == null ? void 0 : t.map((e) => /* @__PURE__ */ r(
54
- c,
53
+ children: r == null ? void 0 : r.map((a) => /* @__PURE__ */ e(
54
+ n,
55
55
  {
56
- data: e
56
+ data: a
57
57
  },
58
- e == null ? void 0 : e.id
58
+ a == null ? void 0 : a.id
59
59
  ))
60
60
  }
61
61
  ),
62
- !!(l != null && l.length) && /* @__PURE__ */ r("div", { className: "flex flex-wrap gap-4", children: l.map((e, s) => /* @__PURE__ */ r(
63
- "a",
62
+ l && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-4", children: /* @__PURE__ */ e(
63
+ c,
64
64
  {
65
- href: (e == null ? void 0 : e.link) || "#",
66
- className: n("w-fit z-10 max-tablet:w-full"),
67
- target: "_blank",
68
- rel: "noopener noreferrer",
69
- children: /* @__PURE__ */ r(d, { variant: e.variant, children: e.text })
70
- },
71
- s
72
- )) })
65
+ className: m("w-fit z-10 max-tablet:w-full"),
66
+ ...l
67
+ }
68
+ ) })
73
69
  ] }) });
74
- v.propsToEdit = h;
70
+ b.propsToEdit = g;
75
71
  export {
76
- v as CardImageList,
77
- h as propsToEdit
72
+ b as CardImageList,
73
+ g as propsToEdit
78
74
  };
@@ -1,5 +1,5 @@
1
1
  import { OptionTypesEnum as e, DataTypesEnum as o } from "../../Types/FiledTypes.js";
2
- import { p as r } from "../../palette-b47a76c9.js";
2
+ import { p as r } from "../../palette-6c943596.js";
3
3
  import { g as n } from "../../generateSelectOptions-7b23cdb8.js";
4
4
  var t = /* @__PURE__ */ ((a) => (a.Orange = "orange", a.Gray = "gray", a.Black = "black", a))(t || {});
5
5
  const c = {
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
2
  import { I as o } from "../../../Icon-70ea6cb8.js";
3
- import { p as t } from "../../../palette-b47a76c9.js";
3
+ import { p as t } from "../../../palette-6c943596.js";
4
4
  import { B as n } from "../../../index-10605794.js";
5
5
  import { C as s } from "../../../ComponentContainer-cdb2528c.js";
6
6
  const c = ["title", "text", "link"], m = ({
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
2
  import { DataTypesEnum as s, FieldTypes as o } from "../../../Types/FiledTypes.js";
3
3
  import { I as r } from "../../../Icon-70ea6cb8.js";
4
- import { p as n } from "../../../palette-b47a76c9.js";
4
+ import { p as n } from "../../../palette-6c943596.js";
5
5
  import { B as i } from "../../../index-10605794.js";
6
6
  import { b as p } from "../../../const-53dff524.js";
7
7
  import { C as c } from "../../../ComponentContainer-cdb2528c.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as r, jsxs as a } from "react/jsx-runtime";
2
2
  import { I as n } from "../../../Icon-70ea6cb8.js";
3
- import { p as e } from "../../../palette-b47a76c9.js";
3
+ import { p as e } from "../../../palette-6c943596.js";
4
4
  import { B as s } from "../../../index-10605794.js";
5
5
  import { b as c } from "../../../const-53dff524.js";
6
6
  import { C as i } from "../../../ComponentContainer-cdb2528c.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as a, jsxs as e } from "react/jsx-runtime";
2
2
  import { DataTypesEnum as s, FieldTypes as r } from "../../../Types/FiledTypes.js";
3
3
  import { I as n } from "../../../Icon-70ea6cb8.js";
4
- import { p } from "../../../palette-b47a76c9.js";
4
+ import { p } from "../../../palette-6c943596.js";
5
5
  import { B as i } from "../../../index-10605794.js";
6
6
  import { b as t } from "../../../const-53dff524.js";
7
7
  import { C as d } from "../../../ComponentContainer-cdb2528c.js";
@@ -8,8 +8,8 @@ import x from "../HeaderMenuMobile/HeaderMenuMobile.js";
8
8
  import A from "../HeaderSearchMobile/HeaderSearchMobile.js";
9
9
  const I = ({
10
10
  sections: o,
11
- darkTheme: d,
12
- className: c
11
+ darkTheme: c,
12
+ className: d
13
13
  }) => {
14
14
  const [e, l] = a(n.MAIN), t = (r) => {
15
15
  l(r);
@@ -29,44 +29,35 @@ const I = ({
29
29
  return document.body.style.overflow = "hidden", () => {
30
30
  document.body.style.overflow = "auto";
31
31
  };
32
- }, [e]), /* @__PURE__ */ H(
33
- "div",
34
- {
35
- className: R(
36
- "w-full left-0 right-0 max-w-full overflow-hidden",
37
- c
38
- ),
39
- children: [
40
- /* @__PURE__ */ s(
41
- S,
42
- {
43
- render: e,
44
- show: t,
45
- darkEffect: d,
46
- setSearchValue: p
47
- }
48
- ),
49
- /* @__PURE__ */ s(
50
- x,
51
- {
52
- show: t,
53
- sectionsData: Array.isArray(o) ? o : [o],
54
- className: "top-[56px]",
55
- render: e
56
- }
57
- ),
58
- /* @__PURE__ */ s(
59
- A,
60
- {
61
- render: e,
62
- show: t,
63
- results: i,
64
- showResults: f
65
- }
66
- )
67
- ]
68
- }
69
- );
32
+ }, [e]), /* @__PURE__ */ H("div", { className: R("w-full left-0 right-0 max-w-full", d), children: [
33
+ /* @__PURE__ */ s(
34
+ S,
35
+ {
36
+ render: e,
37
+ show: t,
38
+ darkEffect: c,
39
+ setSearchValue: p
40
+ }
41
+ ),
42
+ /* @__PURE__ */ s(
43
+ x,
44
+ {
45
+ show: t,
46
+ sectionsData: Array.isArray(o) ? o : [o],
47
+ className: "top-[56px]",
48
+ render: e
49
+ }
50
+ ),
51
+ /* @__PURE__ */ s(
52
+ A,
53
+ {
54
+ render: e,
55
+ show: t,
56
+ results: i,
57
+ showResults: f
58
+ }
59
+ )
60
+ ] });
70
61
  };
71
62
  export {
72
63
  I as HeaderMobile
@@ -121,7 +121,7 @@ const F = "category", H = "link", se = ({ sections: r, darkTheme: p }) => {
121
121
  "div",
122
122
  {
123
123
  className: k(
124
- "flex bg-white rounded-2xl backdrop-blur-md w-full shadow-lg absolute top-[75px] left-0 z-50 transition-all duration-300 ease-out",
124
+ "flex bg-white rounded-2xl backdrop-blur-md w-full shadow-lg absolute top-[59px] left-0 z-50 transition-all duration-300 ease-out",
125
125
  u ? "opacity-100 translate-y-0 pointer-events-auto visible" : "opacity-0 -translate-y-5 pointer-events-none invisible"
126
126
  ),
127
127
  ref: M,
@@ -8,9 +8,12 @@ const f = {
8
8
  label: "Баннер карточка",
9
9
  dataType: "object",
10
10
  data: {
11
- image: t.FILE
11
+ keys: {
12
+ image: t.FILE,
13
+ image_mob: t.FILE
14
+ }
12
15
  }
13
- }, x = {
16
+ }, m = {
14
17
  type: "cards",
15
18
  label: "Карточки функций",
16
19
  dataType: "array",
@@ -19,29 +22,31 @@ const f = {
19
22
  description: t.DESCRIPTION,
20
23
  icon: t.FILE
21
24
  }
22
- }, m = {
25
+ }, x = {
23
26
  type: "text_card",
24
27
  label: "Текстовая карточка",
25
28
  dataType: "object",
26
29
  data: {
27
- title: t.TITLE,
28
- description: t.DESCRIPTION,
29
- color_text: t.COLOR
30
+ keys: {
31
+ title: t.TITLE,
32
+ description: t.DESCRIPTION,
33
+ color_text: t.COLOR
34
+ }
30
35
  }
31
36
  }, b = {
32
37
  type: "is_cards_first",
33
38
  label: "Первая карточка",
34
39
  dataType: "boolean"
35
- }, T = {
40
+ }, _ = {
36
41
  type: "is_banner_first",
37
42
  label: "Первая карточка",
38
43
  dataType: "boolean"
39
- }, _ = [
44
+ }, T = [
40
45
  "title",
41
46
  f,
42
- x,
43
47
  m,
44
- T,
48
+ x,
49
+ _,
45
50
  b
46
51
  ], y = ({
47
52
  title: r,
@@ -84,8 +89,8 @@ const f = {
84
89
  }
85
90
  )
86
91
  ] });
87
- y.propsToEdit = _;
92
+ y.propsToEdit = T;
88
93
  export {
89
94
  y as MultiCards,
90
- _ as propsToEdit
95
+ T as propsToEdit
91
96
  };
@@ -1,4 +1,4 @@
1
- import { M as a, B as t, u as s, C as n, S as D, a as r, V as e, b as i, c as o, d, P as l, e as C, f as B, g as L, W as m, v as w, w as p, F as I, h as g, D as F, i as S, j as c, I as M, x as P, k as f, l as u, A as V, m as T, T as W, n as b, E as x, o as h, p as k, q, r as v, s as y, t as A } from "../data.mock-2412b65a.js";
1
+ import { M as a, B as t, u as s, C as n, S as D, a as r, V as e, b as i, c as o, d, P as l, e as C, f as B, g as L, W as m, v as w, w as p, F as I, h as g, D as F, i as S, j as c, I as M, x as P, k as f, l as u, A as V, m as T, T as W, n as b, E as x, o as h, p as k, q, r as v, s as y, t as A } from "../data.mock-61df66ed.js";
2
2
  const j = [
3
3
  a,
4
4
  t,
@@ -1,53 +1,56 @@
1
- import { jsx as r, jsxs as o } from "react/jsx-runtime";
2
- import { FieldTypes as s } from "../Types/FiledTypes.js";
1
+ import { jsx as t, jsxs as a } from "react/jsx-runtime";
2
+ import { FieldTypes as o } from "../Types/FiledTypes.js";
3
3
  import { B as c } from "../index-10605794.js";
4
- import { B as i } from "../const-53dff524.js";
4
+ import { B as x } from "../const-53dff524.js";
5
5
  import { C as d } from "../ComponentContainer-cdb2528c.js";
6
- import { I as x } from "../index-2265d593.js";
7
- const f = {
6
+ import { I as f } from "../index-2265d593.js";
7
+ import { c as i } from "../cn-6a4bf187.js";
8
+ const g = {
8
9
  type: "data",
9
10
  label: "Шаги",
10
11
  dataType: "array",
11
12
  data: {
12
- text: s.DESCRIPTION,
13
- icon: s.FILE
13
+ text: o.DESCRIPTION,
14
+ icon: o.FILE,
15
+ color: o.COLOR
14
16
  }
15
- }, m = [f, "title", i], h = ({ data: l, title: n, button: t }) => /* @__PURE__ */ r(d, { children: /* @__PURE__ */ o("div", { className: "flex items-center flex-col", children: [
16
- n && /* @__PURE__ */ r("p", { className: "font-bold max-tablet:text-[26px] text-[44px] mb-12 max-tablet:leading-[32px] leading-[42px] font-variant-numeric font-feature-settings", children: n }),
17
- /* @__PURE__ */ r("div", { className: "grid grid-cols-3 gap-6 max-tablet:grid-cols-1", children: l == null ? void 0 : l.map((e, a) => {
18
- const p = a + 1;
19
- return /* @__PURE__ */ o(
17
+ }, h = ["title", g, x], b = ({ data: r, title: l, button: p }) => /* @__PURE__ */ t(d, { children: /* @__PURE__ */ a("div", { className: "flex items-center flex-col", children: [
18
+ l && /* @__PURE__ */ t("p", { className: "font-bold max-tablet:text-[26px] text-[44px] mb-12 max-tablet:leading-[32px] leading-[42px] font-variant-numeric font-feature-settings", children: l }),
19
+ /* @__PURE__ */ t("div", { className: "grid grid-cols-3 gap-6 max-tablet:grid-cols-1", children: r == null ? void 0 : r.map((e, n) => {
20
+ const s = n + 1;
21
+ return /* @__PURE__ */ a(
20
22
  "div",
21
23
  {
22
- className: "p-8 bg-white rounded-[20px] flex flex-col gap-6 items-center",
24
+ className: "p-8 bg-white rounded-[20px] flex flex-col items-center",
23
25
  children: [
24
- e.icon ? /* @__PURE__ */ r(
25
- x,
26
+ e.icon ? /* @__PURE__ */ t(
27
+ f,
26
28
  {
27
29
  src: e.icon,
28
- className: "w-[72px] h-[72px] rounded-full overflow-hidden"
30
+ className: "w-[72px] h-[72px] rounded-full overflow-hidden mb-[24px]"
29
31
  }
30
- ) : /* @__PURE__ */ r("span", { className: "w-[72px] h-[72px] rounded-full bg-greenLight font-bold overflow-hidden flex items-center justify-center text-white text-[24px] leading-8 ", children: p }),
31
- /* @__PURE__ */ r("p", { className: "text-blackBG text-[18px] leading-[26px] text-center", children: e == null ? void 0 : e.text })
32
+ ) : /* @__PURE__ */ t(
33
+ "span",
34
+ {
35
+ className: i(
36
+ "w-[72px] h-[72px] rounded-full font-bold overflow-hidden flex items-center justify-center text-white text-[24px] leading-8 ",
37
+ e.color ? `bg-[${e.color}]` : "bg-greenLight"
38
+ ),
39
+ children: s
40
+ }
41
+ ),
42
+ e.text && /* @__PURE__ */ t("p", { className: "text-blackBG text-[18px] leading-[26px] text-center", children: e == null ? void 0 : e.text }),
43
+ (e == null ? void 0 : e.title) && /* @__PURE__ */ t("h3", { className: "text-blackBG text-[22px] leading-[30px] font-bold text-center mb-[16px]", children: e == null ? void 0 : e.title }),
44
+ (e == null ? void 0 : e.description) && /* @__PURE__ */ t("p", { className: "text-gray3 text-[15px] leading-[22px] text-center", children: e == null ? void 0 : e.description })
32
45
  ]
33
46
  },
34
- a
47
+ n
35
48
  );
36
49
  }) }),
37
- !!(t != null && t.length) && /* @__PURE__ */ r("div", { className: "flex items-center gap-4 mt-6", children: t.map((e, a) => /* @__PURE__ */ r(
38
- "a",
39
- {
40
- href: (e == null ? void 0 : e.link) || "#",
41
- className: "w-fit z-10 max-tablet:w-full",
42
- target: "_blank",
43
- rel: "noopener noreferrer",
44
- children: /* @__PURE__ */ r(c, { variant: e.variant, children: e.text })
45
- },
46
- a
47
- )) })
50
+ /* @__PURE__ */ t(c, { ...p })
48
51
  ] }) });
49
- h.propsToEdit = m;
52
+ b.propsToEdit = h;
50
53
  export {
51
- h as Stepper,
52
- m as propsToEdit
54
+ b as Stepper,
55
+ h as propsToEdit
53
56
  };