md-components-mdigial-azamat 0.0.55 → 0.0.56

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,26 +1,36 @@
1
- import { jsx as r, jsxs as a } from "react/jsx-runtime";
1
+ import { jsx as l, jsxs as e } from "react/jsx-runtime";
2
+ import { DataTypesEnum as t, FieldTypes as r } from "../../../Types/FiledTypes.js";
2
3
  import { I as n } from "../../../Icon-70ea6cb8.js";
3
- import { p as e } from "../../../palette-6c943596.js";
4
- import { B as s } from "../../../index-875e92ce.js";
4
+ import { p as s } from "../../../palette-6c943596.js";
5
+ import { B as p } from "../../../index-875e92ce.js";
5
6
  import { b as c } from "../../../const-53dff524.js";
6
- import { C as i } from "../../../ComponentContainer-cdb2528c.js";
7
- const p = ["data"], d = ({ data: l }) => /* @__PURE__ */ r(i, { children: /* @__PURE__ */ r("div", { className: "grid grid-cols-2 gap-6 max-tablet:grid-cols-1", children: l == null ? void 0 : l.map((o) => /* @__PURE__ */ a(
7
+ import { C as d } from "../../../ComponentContainer-cdb2528c.js";
8
+ const x = {
9
+ dataType: t.array,
10
+ type: "data",
11
+ label: "Файлы для скачивания",
12
+ data: {
13
+ title: r.STRING,
14
+ text: r.STRING,
15
+ file: r.FILE
16
+ }
17
+ }, f = [x, "color_icon"], m = ({ data: a, color_icon: i }) => /* @__PURE__ */ l(d, { children: /* @__PURE__ */ l("div", { className: "grid grid-cols-2 gap-6 max-tablet:grid-cols-1", children: a == null ? void 0 : a.map((o) => /* @__PURE__ */ e(
8
18
  "div",
9
19
  {
10
20
  className: "p-[32px] bg-white rounded-[20px] flex justify-between gap-[40px]",
11
21
  children: [
12
- /* @__PURE__ */ r("div", { className: "flex flex-col ", children: /* @__PURE__ */ a("div", { children: [
13
- /* @__PURE__ */ r("p", { className: "text-[24px] leading-8 font-bold mb-4", children: o == null ? void 0 : o.title }),
14
- /* @__PURE__ */ r("p", { className: "text-[16px] leading-6", children: o == null ? void 0 : o.text }),
15
- /* @__PURE__ */ r(
16
- s,
22
+ /* @__PURE__ */ l("div", { className: "flex flex-col ", children: /* @__PURE__ */ e("div", { children: [
23
+ /* @__PURE__ */ l("p", { className: "text-[24px] leading-8 font-bold mb-4", children: o == null ? void 0 : o.title }),
24
+ /* @__PURE__ */ l("p", { className: "text-[16px] leading-6", children: o == null ? void 0 : o.text }),
25
+ /* @__PURE__ */ l(
26
+ p,
17
27
  {
18
- iconRight: /* @__PURE__ */ r(
28
+ iconRight: /* @__PURE__ */ l(
19
29
  n,
20
30
  {
21
31
  name: "download",
22
32
  size: 20,
23
- color: e.blackBG
33
+ color: s.blackBG
24
34
  }
25
35
  ),
26
36
  className: "mt-8",
@@ -29,12 +39,12 @@ const p = ["data"], d = ({ data: l }) => /* @__PURE__ */ r(i, { children: /* @__
29
39
  }
30
40
  )
31
41
  ] }) }),
32
- /* @__PURE__ */ r(
42
+ /* @__PURE__ */ l(
33
43
  n,
34
44
  {
35
45
  className: "flex-shrink-0",
36
46
  name: "file",
37
- color: e.greenLight,
47
+ color: i || s.greenLight,
38
48
  size: 48
39
49
  }
40
50
  )
@@ -42,8 +52,9 @@ const p = ["data"], d = ({ data: l }) => /* @__PURE__ */ r(i, { children: /* @__
42
52
  },
43
53
  o == null ? void 0 : o.id
44
54
  )) }) });
45
- d.propsToEdit = p;
55
+ m.propsToEdit = f;
46
56
  export {
47
- d as DownloadFileHalf,
48
- p as propsToEdit
57
+ m as DownloadFileHalf,
58
+ x as downloadFileFullProps,
59
+ f as propsToEdit
49
60
  };
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.55",
5
+ "version": "0.0.56",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",