md-components-mdigial-azamat 0.0.65 → 0.0.67

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.
@@ -38,7 +38,7 @@ import "./Cards/CardImage/CardImage.js";
38
38
  import "./Cards/ContentCard/ContentCard.js";
39
39
  import { WarningCard as lo } from "./Cards/WarningCard/WarningCard.js";
40
40
  import "./Cards/ColoredCard/index.js";
41
- import "./index-50634e2b.js";
41
+ import "./index-04224eb4.js";
42
42
  import { DownloadFileBanner as co } from "./DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
43
43
  import { DownloadFileFull as Do } from "./DownloadFile/components/DownloadFileFull/DownloadFileFull.js";
44
44
  import { DownloadFileHalf as fo } from "./DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as l, jsxs as n } from "react/jsx-runtime";
2
- import { S as r, F as f } from "../index-50634e2b.js";
2
+ import { S as r, F as f } from "../index-04224eb4.js";
3
3
  import { FieldTypes as t } from "../Types/FiledTypes.js";
4
4
  import { C as m } from "../ComponentContainer-cdb2528c.js";
5
5
  import { c } from "../cn-6a4bf187.js";
@@ -1,12 +1,12 @@
1
- import { jsx as e, jsxs as p } from "react/jsx-runtime";
2
- import { CardImage as n } from "../Cards/CardImage/CardImage.js";
3
- import { CardImageVariant as o } from "../Cards/CardImage/types.js";
1
+ import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
+ import { CardImage as c } from "../Cards/CardImage/CardImage.js";
3
+ import { CardImageVariant as m } from "../Cards/CardImage/types.js";
4
4
  import { FieldTypes as t } from "../Types/FiledTypes.js";
5
- import { B as c } from "../index-875e92ce.js";
5
+ import { B as x } from "../index-875e92ce.js";
6
6
  import { B as d } from "../const-53dff524.js";
7
7
  import { C as f } from "../ComponentContainer-cdb2528c.js";
8
- import { c as m } from "../cn-6a4bf187.js";
9
- const x = {
8
+ import { c as s } from "../cn-6a4bf187.js";
9
+ const g = {
10
10
  type: "cards",
11
11
  dataType: "array",
12
12
  label: "Карточки",
@@ -19,22 +19,23 @@ const x = {
19
19
  options: [
20
20
  {
21
21
  label: "Large",
22
- value: o.LARGE
22
+ value: m.LARGE
23
23
  },
24
24
  {
25
25
  label: "Small",
26
- value: o.SMALL
26
+ value: m.SMALL
27
27
  }
28
28
  ],
29
29
  type: t.VARIANT
30
30
  }
31
31
  }
32
- }, g = ["title", x, "grid", d], b = ({
32
+ }, b = ["title", "description", g, "grid", d], N = ({
33
33
  cards: r,
34
34
  title: i,
35
- grid: s,
36
- button: l
37
- }) => /* @__PURE__ */ e(f, { children: /* @__PURE__ */ p("div", { className: "w-full flex flex-col items-center gap-6", children: [
35
+ description: l,
36
+ grid: p,
37
+ button: o
38
+ }) => /* @__PURE__ */ e(f, { children: /* @__PURE__ */ n("div", { className: "w-full flex flex-col items-center gap-6", children: [
38
39
  i && /* @__PURE__ */ e(
39
40
  "p",
40
41
  {
@@ -43,15 +44,16 @@ const x = {
43
44
  children: i
44
45
  }
45
46
  ),
47
+ l && /* @__PURE__ */ e("p", { className: "text-[18px] leading-[26px] text-graySoft text-center", children: l }),
46
48
  /* @__PURE__ */ e(
47
49
  "div",
48
50
  {
49
- className: m(
50
- `grid grid-cols-${s} items-stretch gap-6`,
51
+ className: s(
52
+ `grid grid-cols-${p} items-stretch gap-6`,
51
53
  "max-tablet:grid-cols-1"
52
54
  ),
53
55
  children: r == null ? void 0 : r.map((a) => /* @__PURE__ */ e(
54
- n,
56
+ c,
55
57
  {
56
58
  data: a
57
59
  },
@@ -59,16 +61,16 @@ const x = {
59
61
  ))
60
62
  }
61
63
  ),
62
- l && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-4", children: /* @__PURE__ */ e(
63
- c,
64
+ o && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-4", children: /* @__PURE__ */ e(
65
+ x,
64
66
  {
65
- className: m("w-fit z-10 max-tablet:w-full"),
66
- ...l
67
+ className: s("w-fit z-10 max-tablet:w-full"),
68
+ ...o
67
69
  }
68
70
  ) })
69
71
  ] }) });
70
- b.propsToEdit = g;
72
+ N.propsToEdit = b;
71
73
  export {
72
- b as CardImageList,
73
- g as propsToEdit
74
+ N as CardImageList,
75
+ b as propsToEdit
74
76
  };
@@ -3,7 +3,7 @@ import "../../Types/FiledTypes.js";
3
3
  import "../../index-875e92ce.js";
4
4
  import "../../index-9384c6d6.js";
5
5
  import "../../cn-6a4bf187.js";
6
- import { F as s, p as e } from "../../index-50634e2b.js";
6
+ import { F as s, p as e } from "../../index-04224eb4.js";
7
7
  export {
8
8
  s as FeaturesCard,
9
9
  e as propsToEdit
@@ -1,5 +1,5 @@
1
1
  import { C as o } from "../../index-b826f1c7.js";
2
- import { p as t } from "../../index-50634e2b.js";
2
+ import { p as t } from "../../index-04224eb4.js";
3
3
  const p = {
4
4
  title: "Карточка функции",
5
5
  description: "Компонент для отображения карточки функции с иконкой, заголовком, описанием и ссылкой. Используется для представления отдельных функций или возможностей продукта.",
@@ -1,8 +1,8 @@
1
- import { jsx as e, jsxs as s } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as p } from "react/jsx-runtime";
2
2
  import { ContentCard as m } from "../Cards/ContentCard/ContentCard.js";
3
3
  import { FieldTypes as i } from "../Types/FiledTypes.js";
4
- import { c as p } from "../const-53dff524.js";
5
- import { C as x } from "../ComponentContainer-cdb2528c.js";
4
+ import { c as x } from "../const-53dff524.js";
5
+ import { C as a } from "../ComponentContainer-cdb2528c.js";
6
6
  const f = {
7
7
  type: "cards",
8
8
  label: "Карточки",
@@ -11,9 +11,9 @@ const f = {
11
11
  title: i.TITLE,
12
12
  image: i.FILE,
13
13
  html_description: i.HTML_CONTENT,
14
- buttons: p
14
+ buttons: x
15
15
  }
16
- }, a = ["title", f], r = ({ title: n, cards: o }) => /* @__PURE__ */ e(x, { children: /* @__PURE__ */ s("div", { className: "w-full flex flex-col items-center justify-center", children: [
16
+ }, r = ["title", "description", f], b = ({ title: n, cards: o, description: l }) => /* @__PURE__ */ e(a, { children: /* @__PURE__ */ p("div", { className: "w-full flex flex-col items-center justify-center", children: [
17
17
  n && /* @__PURE__ */ e(
18
18
  "p",
19
19
  {
@@ -22,7 +22,8 @@ const f = {
22
22
  children: n
23
23
  }
24
24
  ),
25
- /* @__PURE__ */ e("div", { className: "flex flex-row max-tablet:flex-col gap-[24px]", children: o == null ? void 0 : o.map((t, l) => /* @__PURE__ */ e(
25
+ l && /* @__PURE__ */ e("p", { className: "text-[18px] leading-[26px] text-graySoft text-center", children: l }),
26
+ /* @__PURE__ */ e("div", { className: "flex flex-row max-tablet:flex-col gap-[24px]", children: o == null ? void 0 : o.map((t, s) => /* @__PURE__ */ e(
26
27
  m,
27
28
  {
28
29
  title: t == null ? void 0 : t.title,
@@ -30,11 +31,11 @@ const f = {
30
31
  html_description: t == null ? void 0 : t.html_description,
31
32
  buttons: t == null ? void 0 : t.buttons
32
33
  },
33
- l
34
+ s
34
35
  )) })
35
36
  ] }) });
36
- r.propsToEdit = a;
37
+ b.propsToEdit = r;
37
38
  export {
38
- r as ContentCardList,
39
- a as propsToEdit
39
+ b as ContentCardList,
40
+ r as propsToEdit
40
41
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { c as f } from "../componentsMap-7fd0c870.js";
2
+ import { c as f } from "../componentsMap-153c7a30.js";
3
3
  const a = (p) => p.map((r) => {
4
4
  const s = f[r.key];
5
5
  if (!s)
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, Fragment as t } from "react/jsx-runtime";
2
- import { c as i } from "../componentsMap-7fd0c870.js";
2
+ import { c as i } from "../componentsMap-153c7a30.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(
@@ -9,7 +9,7 @@ import { CardInfoTable as e } from "./CardInfoTable/index.js";
9
9
  import { CardImage as p } from "./Cards/CardImage/CardImage.js";
10
10
  import { ColoredCard as f } from "./Cards/ColoredCard/index.js";
11
11
  import { ContentCard as s } from "./Cards/ContentCard/ContentCard.js";
12
- import { F as d } from "./index-50634e2b.js";
12
+ import { F as d } from "./index-04224eb4.js";
13
13
  import { WarningCard as l } from "./Cards/WarningCard/WarningCard.js";
14
14
  import { ContentCardList as C } from "./ContentCardList/ContentCardList.js";
15
15
  import { DownloadFileBanner as B } from "./DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
@@ -1,5 +1,5 @@
1
- import { jsxs as s, jsx as o } from "react/jsx-runtime";
2
- import { FieldTypes as l } from "./Types/FiledTypes.js";
1
+ import { jsxs as s, jsx as l } from "react/jsx-runtime";
2
+ import { FieldTypes as o } from "./Types/FiledTypes.js";
3
3
  import { B as c } from "./index-875e92ce.js";
4
4
  import { I as x } from "./index-9384c6d6.js";
5
5
  import { c as m } from "./cn-6a4bf187.js";
@@ -13,22 +13,18 @@ const r = {
13
13
  dataType: "object",
14
14
  data: {
15
15
  keys: {
16
- title: l.TITLE,
17
- description: l.DESCRIPTION,
18
- image: l.FILE,
19
- link: l.LINK,
20
- link_text: l.TITLE
16
+ title: o.TITLE,
17
+ description: o.DESCRIPTION,
18
+ image: o.FILE,
19
+ link: o.LINK,
20
+ link_text: o.TITLE,
21
+ color_bg: o.COLOR,
22
+ item_color_text: o.COLOR,
23
+ color: o.COLOR,
24
+ color_text: o.COLOR
21
25
  }
22
26
  }
23
- }, b = [
24
- g,
25
- "size",
26
- "className",
27
- "color_bg",
28
- "item_color_text",
29
- "color",
30
- "color_text"
31
- ], f = ({ data: e, size: i, className: p }) => {
27
+ }, b = [g, "size", "className"], f = ({ data: e, size: i, className: p }) => {
32
28
  const n = i === r.SMALL ? 32 : 40;
33
29
  return /* @__PURE__ */ s(
34
30
  "div",
@@ -42,7 +38,7 @@ const r = {
42
38
  style: { background: e == null ? void 0 : e.color_bg },
43
39
  children: [
44
40
  /* @__PURE__ */ s("div", { className: "flex flex-col items-start gap-[32px]", children: [
45
- (e == null ? void 0 : e.badge) && /* @__PURE__ */ o(
41
+ (e == null ? void 0 : e.badge) && /* @__PURE__ */ l(
46
42
  "div",
47
43
  {
48
44
  className: "absolute top-[32px] right-[32px] rounded-[24px] text-[16px] leading-[20px] font-bold py-[7px] px-[18px] bg-yellowLight",
@@ -53,7 +49,7 @@ const r = {
53
49
  children: e == null ? void 0 : e.badge
54
50
  }
55
51
  ),
56
- (e == null ? void 0 : e.image) && /* @__PURE__ */ o(
52
+ (e == null ? void 0 : e.image) && /* @__PURE__ */ l(
57
53
  x,
58
54
  {
59
55
  src: e == null ? void 0 : e.image,
@@ -63,7 +59,7 @@ const r = {
63
59
  }
64
60
  ),
65
61
  /* @__PURE__ */ s("div", { className: "flex items-start flex-col gap-[12px]", children: [
66
- /* @__PURE__ */ o(
62
+ /* @__PURE__ */ l(
67
63
  "div",
68
64
  {
69
65
  className: "text-[24px] leading-[32px] font-bold",
@@ -71,7 +67,7 @@ const r = {
71
67
  children: e == null ? void 0 : e.title
72
68
  }
73
69
  ),
74
- /* @__PURE__ */ o(
70
+ /* @__PURE__ */ l(
75
71
  "div",
76
72
  {
77
73
  className: "text-[14px] leading-[20px] text-graySoft",
@@ -81,15 +77,15 @@ const r = {
81
77
  )
82
78
  ] })
83
79
  ] }),
84
- i === r.LARGE && ((e == null ? void 0 : e.button_type) === "button" ? /* @__PURE__ */ o(
80
+ i === r.LARGE && ((e == null ? void 0 : e.button_type) === "button" ? /* @__PURE__ */ l(
85
81
  "a",
86
82
  {
87
83
  href: e == null ? void 0 : e.link,
88
84
  target: "_blank",
89
85
  className: "font-inter text-[16px] leading-[24px] font-semibold",
90
- children: /* @__PURE__ */ o(c, { variant: e == null ? void 0 : e.button_variant, children: e == null ? void 0 : e.button_text })
86
+ children: /* @__PURE__ */ l(c, { variant: e == null ? void 0 : e.button_variant, children: e == null ? void 0 : e.button_text })
91
87
  }
92
- ) : /* @__PURE__ */ o(
88
+ ) : /* @__PURE__ */ l(
93
89
  "a",
94
90
  {
95
91
  href: e == null ? void 0 : e.link,
package/dist/main.js CHANGED
@@ -24,7 +24,7 @@ import { CardImage as O } from "./Cards/CardImage/CardImage.js";
24
24
  import { ContentCard as R } from "./Cards/ContentCard/ContentCard.js";
25
25
  import { WarningCard as X } from "./Cards/WarningCard/WarningCard.js";
26
26
  import { ColoredCard as _ } from "./Cards/ColoredCard/index.js";
27
- import { F as rr, S as or } from "./index-50634e2b.js";
27
+ import { F as rr, S as or } from "./index-04224eb4.js";
28
28
  import { DownloadFileBanner as tr } from "./DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
29
29
  import { DownloadFileFull as pr } from "./DownloadFile/components/DownloadFileFull/DownloadFileFull.js";
30
30
  import { DownloadFileHalf as nr } from "./DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "md-components-mdigial-azamat",
3
3
  "author": "Azamat Raimbekov",
4
4
  "private": false,
5
- "version": "0.0.65",
5
+ "version": "0.0.67",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",