md-components-mdigial-azamat 0.0.67 → 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,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.67",
5
+ "version": "0.0.68",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",