md-components-mdigial-azamat 0.0.66 → 0.0.68

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,11 +1,11 @@
1
1
  import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
- import { CardImage as x } from "../Cards/CardImage/CardImage.js";
2
+ import { CardImage as c } from "../Cards/CardImage/CardImage.js";
3
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 p } from "../cn-6a4bf187.js";
8
+ import { c as s } from "../cn-6a4bf187.js";
9
9
  const g = {
10
10
  type: "cards",
11
11
  dataType: "array",
@@ -31,29 +31,29 @@ const g = {
31
31
  }
32
32
  }, b = ["title", "description", g, "grid", d], N = ({
33
33
  cards: r,
34
- title: l,
35
- description: i,
36
- grid: s,
34
+ title: i,
35
+ description: l,
36
+ grid: p,
37
37
  button: o
38
38
  }) => /* @__PURE__ */ e(f, { children: /* @__PURE__ */ n("div", { className: "w-full flex flex-col items-center gap-6", children: [
39
- l && /* @__PURE__ */ e(
39
+ i && /* @__PURE__ */ e(
40
40
  "p",
41
41
  {
42
42
  className: `font-bold max-tablet:text-[26px] text-[44px] max-tablet:leading-[32px] leading-[42px]
43
43
  mb-[24px] font-variant-numeric font-feature-settings`,
44
- children: l
44
+ children: i
45
45
  }
46
46
  ),
47
- i && /* @__PURE__ */ e("p", { className: "text-center text-graySoft text-[16px] leading-[24px] max-tablet:text-[15px] max-tablet:leading-[22px]", children: i }),
47
+ l && /* @__PURE__ */ e("p", { className: "text-[18px] leading-[26px] text-graySoft text-center", children: l }),
48
48
  /* @__PURE__ */ e(
49
49
  "div",
50
50
  {
51
- className: p(
52
- `grid grid-cols-${s} items-stretch gap-6`,
51
+ className: s(
52
+ `grid grid-cols-${p} items-stretch gap-6`,
53
53
  "max-tablet:grid-cols-1"
54
54
  ),
55
55
  children: r == null ? void 0 : r.map((a) => /* @__PURE__ */ e(
56
- x,
56
+ c,
57
57
  {
58
58
  data: a
59
59
  },
@@ -62,9 +62,9 @@ const g = {
62
62
  }
63
63
  ),
64
64
  o && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-4", children: /* @__PURE__ */ e(
65
- c,
65
+ x,
66
66
  {
67
- className: p("w-fit z-10 max-tablet:w-full"),
67
+ className: s("w-fit z-10 max-tablet:w-full"),
68
68
  ...o
69
69
  }
70
70
  ) })
@@ -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,33 +1,41 @@
1
- import { jsxs as o, jsx as s } from "react/jsx-runtime";
2
- import { B as c } from "../index-875e92ce.js";
3
- import { c as d } from "../const-53dff524.js";
4
- import { C as l } from "../ComponentContainer-cdb2528c.js";
5
- import { PreviewCardData as x, PreviewCard as t } from "./components/PreviewCard/PreviewCard.js";
6
- const n = {
1
+ import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
+ import { B as o } from "../index-875e92ce.js";
3
+ import { c as t } from "../const-53dff524.js";
4
+ import { C as c } from "../ComponentContainer-cdb2528c.js";
5
+ import { PreviewCardData as d, PreviewCard as f } from "./components/PreviewCard/PreviewCard.js";
6
+ const g = {
7
7
  type: "cards",
8
8
  dataType: "array",
9
9
  label: "Карточки",
10
10
  data: {
11
- ...x
11
+ ...d
12
12
  }
13
- }, f = ["title", n, d, "grid"], g = ({
14
- title: e,
15
- cards: a,
16
- button: r,
17
- grid: i = 3
18
- }) => /* @__PURE__ */ o(l, { className: "flex flex-col items-center", children: [
19
- (e == null ? void 0 : e.length) && /* @__PURE__ */ s("p", { className: "text-[44px] leading-[52px] font-bold text-center mb-[48px]", children: e }),
20
- /* @__PURE__ */ s("div", { className: `grid grid-cols-${i} items-stretch gap-[24px]`, children: a == null ? void 0 : a.map((p, m) => /* @__PURE__ */ s(
21
- t,
13
+ }, n = [
14
+ "title",
15
+ "description",
16
+ g,
17
+ t,
18
+ "grid"
19
+ ], h = ({
20
+ title: a,
21
+ cards: p,
22
+ button: e,
23
+ grid: m = 3,
24
+ description: s
25
+ }) => /* @__PURE__ */ i(c, { className: "flex flex-col items-center", children: [
26
+ (a == null ? void 0 : a.length) && /* @__PURE__ */ r("p", { className: "text-[44px] leading-[52px] font-bold text-center mb-[48px]", children: a }),
27
+ (s == null ? void 0 : s.length) && /* @__PURE__ */ r("p", { className: "text-[18px] leading-[26px] text-graySoft text-center", children: s }),
28
+ /* @__PURE__ */ r("div", { className: `grid grid-cols-${m} items-stretch gap-[24px]`, children: p == null ? void 0 : p.map((l, x) => /* @__PURE__ */ r(
29
+ f,
22
30
  {
23
- ...p
31
+ ...l
24
32
  },
25
- m
33
+ x
26
34
  )) }),
27
- ((r == null ? void 0 : r.title) || (r == null ? void 0 : r.children)) && /* @__PURE__ */ s(c, { ...r })
35
+ ((e == null ? void 0 : e.title) || (e == null ? void 0 : e.children)) && /* @__PURE__ */ r(o, { ...e })
28
36
  ] });
29
- g.propsToEdit = f;
37
+ h.propsToEdit = n;
30
38
  export {
31
- g as PreviewList,
32
- f as propsToEdit
39
+ h as PreviewList,
40
+ n as propsToEdit
33
41
  };
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.66",
5
+ "version": "0.0.68",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",