md-components-mdigial-azamat 0.0.109 → 0.0.112

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 (52) hide show
  1. package/dist/ActionCardList/ActionCardList.js +8 -6
  2. package/dist/ActionCardList/index.js +1 -1
  3. package/dist/ActionCardList/info.js +1 -1
  4. package/dist/ActionIconList/ActionIconList.js +5 -3
  5. package/dist/AllComponents.js +11 -8
  6. package/dist/AllComponentsInfo.js +83 -81
  7. package/dist/ButtonsList/ButtonsList.js +25 -19
  8. package/dist/CardImageList/CardImageList.js +87 -71
  9. package/dist/CardImageList/info.js +1 -1
  10. package/dist/CardImageList/schema.js +57 -0
  11. package/dist/Cards/CardImage/CardImage.js +102 -55
  12. package/dist/Cards/CardImage/index.js +6 -1
  13. package/dist/Cards/CardImage/info.js +1 -1
  14. package/dist/Cards/CardImage/schema.js +32 -0
  15. package/dist/Cards/CardImage/types.js +3 -2
  16. package/dist/Cards/WarningCard/WarningCard.js +7 -5
  17. package/dist/Cards/WarningCard/index.js +1 -1
  18. package/dist/Cards/WarningCard/info.js +1 -1
  19. package/dist/Flex-86aee720.js +78 -0
  20. package/dist/Footer/Footer.js +5 -5
  21. package/dist/Forms/FormDefault/index.js +1 -1
  22. package/dist/Forms/FormDefault/info.js +9 -7
  23. package/dist/Forms/helpers/renderFormFields.js +1 -1
  24. package/dist/Forms/model/components.js +7 -5
  25. package/dist/Header/Header.js +1 -1
  26. package/dist/Header/components/HeaderMainMobile/HeaderMainMobile.js +12 -12
  27. package/dist/Header/components/HeaderMobile/HeaderMobile.js +1 -1
  28. package/dist/Header/components/HeaderSearch/HeaderSearch.js +1 -1
  29. package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +10 -10
  30. package/dist/Header/components/HeaderWeb/HeaderWeb.js +15 -15
  31. package/dist/HeroIconsBanner/HeroIconsBanner.js +73 -56
  32. package/dist/IconList/IconList.js +53 -33
  33. package/dist/ModalBody/index.js +1 -1
  34. package/dist/PageViewer/renderComponents.js +1 -1
  35. package/dist/PreviewList/PreviewList.js +19 -19
  36. package/dist/PreviewList/components/PreviewCard/PreviewCard.js +29 -29
  37. package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
  38. package/dist/RenderAllComponents/const.js +1 -1
  39. package/dist/SearchBlock/SearchBlock.js +102 -0
  40. package/dist/SearchBlock/index.js +4 -0
  41. package/dist/SearchBlock/info.js +11 -0
  42. package/dist/SearchBlock/schema.js +36 -0
  43. package/dist/assets/index.css +1 -1
  44. package/dist/{clientApi-642fea4b.js → clientApi-ccb08ba6.js} +7 -7
  45. package/dist/{componentsMap-855b1df7.js → componentsMap-cac6c316.js} +4 -3
  46. package/dist/{data.mock-182979d1.js → data.mock-ebc679ec.js} +107 -27
  47. package/dist/{index-497f59a8.js → index-b795390d.js} +23 -20
  48. package/dist/{index.module-c8833286.js → index.module-8835bf96.js} +1 -1
  49. package/dist/{info-34fbb2a8.js → info-d05a1f02.js} +171 -158
  50. package/dist/main.js +107 -104
  51. package/dist/trash/HeroLargeCards/index.js +7 -6
  52. package/package.json +1 -1
@@ -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-cac6c316.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-ebc679ec.js";
2
2
  const j = [
3
3
  a,
4
4
  t,
@@ -0,0 +1,102 @@
1
+ import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
+ import { useRef as x } from "react";
3
+ import { F as n } from "../Flex-86aee720.js";
4
+ import { c as u } from "../cn-6a4bf187.js";
5
+ const h = {
6
+ black: "stroke-[#0E0F11]",
7
+ gray: "stroke-[#758795]"
8
+ }, m = ({ className: r, variant: o = "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: r,
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: u(h[o], "stroke-[1.6]"),
22
+ strokeLinecap: "round"
23
+ }
24
+ )
25
+ }
26
+ ), C = ({
27
+ title: r,
28
+ placeholder: o,
29
+ tags: p = [],
30
+ onSearch: c,
31
+ onTagClick: a
32
+ }) => {
33
+ const l = x(null), s = () => {
34
+ c && l.current && c(l.current.value);
35
+ };
36
+ return /* @__PURE__ */ i(
37
+ n,
38
+ {
39
+ vertical: !0,
40
+ align: "center",
41
+ justify: "center",
42
+ className: "max-w-[880px] mx-auto",
43
+ children: [
44
+ r && /* @__PURE__ */ e("h2", { className: "text-white text-[56px] leading-[68px] font-bold text-center mb-12", children: r }),
45
+ /* @__PURE__ */ i(
46
+ n,
47
+ {
48
+ align: "center",
49
+ gap: 8,
50
+ className: "w-full mb-6 p-2 rounded-[20px] bg-white/50 backdrop-blur-[2px] border-[2px] border-[#D4E3FF]",
51
+ children: [
52
+ /* @__PURE__ */ e(
53
+ "input",
54
+ {
55
+ ref: l,
56
+ type: "text",
57
+ placeholder: o,
58
+ onKeyDown: (t) => {
59
+ t.key === "Enter" && s();
60
+ },
61
+ className: "w-full text-[#0E0F11] h-16 py-5 px-6 text-lg leading-6 rounded-2xl border-[#D4E3FF] outline-none placeholder:text-[#7893B0]"
62
+ }
63
+ ),
64
+ /* @__PURE__ */ e(
65
+ n,
66
+ {
67
+ component: "button",
68
+ "aria-label": "Search",
69
+ onClick: s,
70
+ align: "center",
71
+ justify: "center",
72
+ className: "flex-shrink-0 size-[64px] bg-white rounded-2xl hover:bg-gray-100 transition-colors cursor-pointer border border-[#D4E3FF]",
73
+ children: /* @__PURE__ */ e(m, { variant: "gray" })
74
+ }
75
+ )
76
+ ]
77
+ }
78
+ ),
79
+ /* @__PURE__ */ e(
80
+ n,
81
+ {
82
+ wrap: !0,
83
+ justify: "center",
84
+ className: "max-w-[600px] gap-x-3 gap-y-4",
85
+ children: p.map((t, d) => /* @__PURE__ */ e(
86
+ "button",
87
+ {
88
+ onClick: () => a == null ? void 0 : a(t),
89
+ className: "bg-[#C2C1C159] hover:bg-white/30 text-white px-4 py-2.5 rounded-xl backdrop-blur-[2px] transition-colors cursor-pointer border-none text-base leading-6 font-medium",
90
+ children: t.label
91
+ },
92
+ d
93
+ ))
94
+ }
95
+ )
96
+ ]
97
+ }
98
+ );
99
+ };
100
+ export {
101
+ C as SearchBlock
102
+ };
@@ -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
+ };
@@ -0,0 +1,36 @@
1
+ import { FieldTypes as a } from "../Types/FiledTypes.js";
2
+ const e = [
3
+ "title",
4
+ "placeholder",
5
+ {
6
+ type: "data",
7
+ label: "Стили",
8
+ dataType: "object",
9
+ data: {
10
+ keys: {
11
+ background: a.STRING
12
+ }
13
+ }
14
+ },
15
+ {
16
+ type: "data",
17
+ label: "Теги",
18
+ dataType: "object",
19
+ data: {
20
+ keys: {
21
+ tags: {
22
+ label: "Список тегов",
23
+ dataType: "array",
24
+ type: "items",
25
+ data: {
26
+ label: a.STRING,
27
+ action: a.STRING
28
+ }
29
+ }
30
+ }
31
+ }
32
+ }
33
+ ];
34
+ export {
35
+ e as propsToEdit
36
+ };