md-components-mdigial-azamat 0.0.54 → 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.
@@ -44,7 +44,7 @@ import { DownloadFileMini as Do } from "./DownloadFile/components/DownloadFileMi
44
44
  import "./Faq/components/Collapse/Collapse.js";
45
45
  import "react/jsx-runtime";
46
46
  import "react";
47
- import "./index-1211cb6b.js";
47
+ import "./index-875e92ce.js";
48
48
  import "./const-53dff524.js";
49
49
  import "./InstructionList/components/InstructionCard/InstructionCard.js";
50
50
  import "./PreviewList/components/PreviewCard/PreviewCard.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as t, jsxs as o } from "react/jsx-runtime";
2
2
  import { FieldTypes as x } from "../Types/FiledTypes.js";
3
- import { B as b } from "../index-1211cb6b.js";
3
+ import { B as b } from "../index-875e92ce.js";
4
4
  import { B as N, c as _ } from "../const-53dff524.js";
5
5
  import { C as y } from "../ComponentContainer-cdb2528c.js";
6
6
  import { I as g } from "../index-2265d593.js";
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as p } from "react/jsx-runtime";
2
2
  import { CardImage as n } from "../Cards/CardImage/CardImage.js";
3
3
  import { CardImageVariant as o } from "../Cards/CardImage/types.js";
4
4
  import { FieldTypes as t } from "../Types/FiledTypes.js";
5
- import { B as c } from "../index-1211cb6b.js";
5
+ import { B as c } 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
8
  import { c as m } from "../cn-6a4bf187.js";
@@ -3,7 +3,7 @@ import { forwardRef as g } from "react";
3
3
  import { FieldTypes as i } from "../Types/FiledTypes.js";
4
4
  import { C as h } from "../ComponentContainer-cdb2528c.js";
5
5
  import { c as p } from "../cn-6a4bf187.js";
6
- import { B as y } from "../index-1211cb6b.js";
6
+ import { B as y } from "../index-875e92ce.js";
7
7
  import { b as w, a as u } from "../const-53dff524.js";
8
8
  import { I as _ } from "../index-2265d593.js";
9
9
  const d = {
@@ -1,6 +1,6 @@
1
1
  import { jsxs as r, jsx as a } from "react/jsx-runtime";
2
2
  import { HtmlContent as o } from "../../HtmlContent/HtmlContent.js";
3
- import { B as t } from "../../index-1211cb6b.js";
3
+ import { B as t } from "../../index-875e92ce.js";
4
4
  import { c as s } from "../../const-53dff524.js";
5
5
  import { I as d } from "../../index-2265d593.js";
6
6
  const x = [
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as t } from "react/jsx-runtime";
2
2
  import { warningCardVariant as p, WarningCardVariant as e, WarningCardVariantKey as m } from "./model.js";
3
3
  import { I as x } from "../../Icon-70ea6cb8.js";
4
4
  import { B as f } from "../../const-53dff524.js";
5
- import { B as g } from "../../index-1211cb6b.js";
5
+ import { B as g } from "../../index-875e92ce.js";
6
6
  import { C } from "../../ComponentContainer-cdb2528c.js";
7
7
  import { c as h } from "../../cn-6a4bf187.js";
8
8
  const u = [
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
2
  import { I as o } from "../../../Icon-70ea6cb8.js";
3
3
  import { p as t } from "../../../palette-6c943596.js";
4
- import { B as n } from "../../../index-1211cb6b.js";
4
+ import { B as n } from "../../../index-875e92ce.js";
5
5
  import { C as s } from "../../../ComponentContainer-cdb2528c.js";
6
6
  const c = ["title", "text", "link"], m = ({
7
7
  title: a,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
- import { B as b } from "../../../index-1211cb6b.js";
2
+ import { B as b } from "../../../index-875e92ce.js";
3
3
  import { C as r } from "../../../ComponentContainer-cdb2528c.js";
4
4
  import { I as n } from "../../../index-2265d593.js";
5
5
  import { c } from "../../../cn-6a4bf187.js";
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
2
  import { DataTypesEnum as s, FieldTypes as o } from "../../../Types/FiledTypes.js";
3
3
  import { I as r } from "../../../Icon-70ea6cb8.js";
4
4
  import { p as n } from "../../../palette-6c943596.js";
5
- import { B as i } from "../../../index-1211cb6b.js";
5
+ import { B as i } from "../../../index-875e92ce.js";
6
6
  import { b as p } from "../../../const-53dff524.js";
7
7
  import { C as c } from "../../../ComponentContainer-cdb2528c.js";
8
8
  const d = {
@@ -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-1211cb6b.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
  };
@@ -2,7 +2,7 @@ import { jsx as a, jsxs as e } from "react/jsx-runtime";
2
2
  import { DataTypesEnum as s, FieldTypes as r } from "../../../Types/FiledTypes.js";
3
3
  import { I as n } from "../../../Icon-70ea6cb8.js";
4
4
  import { p } from "../../../palette-6c943596.js";
5
- import { B as i } from "../../../index-1211cb6b.js";
5
+ import { B as i } from "../../../index-875e92ce.js";
6
6
  import { b as t } from "../../../const-53dff524.js";
7
7
  import { C as d } from "../../../ComponentContainer-cdb2528c.js";
8
8
  const b = {
@@ -1,6 +1,6 @@
1
1
  import { jsx as ie, jsxs as De } from "react/jsx-runtime";
2
2
  import M, { useState as wt } from "react";
3
- import { B as $e } from "../../../index-1211cb6b.js";
3
+ import { B as $e } from "../../../index-875e92ce.js";
4
4
  import { a as je, b as Ke } from "../../../const-53dff524.js";
5
5
  var ce = (e) => e.type === "checkbox", re = (e) => e instanceof Date, B = (e) => e == null;
6
6
  const lt = (e) => typeof e == "object";
@@ -1,5 +1,5 @@
1
1
  import { jsxs as l, jsx as n } from "react/jsx-runtime";
2
- import { B as r } from "../../../index-1211cb6b.js";
2
+ import { B as r } from "../../../index-875e92ce.js";
3
3
  import { b as o, a as i } from "../../../const-53dff524.js";
4
4
  import { I as t } from "../../../index-2265d593.js";
5
5
  const p = ({ data: e }) => e ? /* @__PURE__ */ l(
@@ -1,7 +1,7 @@
1
1
  import { jsxs as b, jsx as t } from "react/jsx-runtime";
2
2
  import { c as l, a as x } from "../cn-6a4bf187.js";
3
3
  import { FieldTypes as n } from "../Types/FiledTypes.js";
4
- import { B as m } from "../index-1211cb6b.js";
4
+ import { B as m } from "../index-875e92ce.js";
5
5
  import { I as s } from "../index-2265d593.js";
6
6
  import { u as p } from "../useScreenSize-c1b64c02.js";
7
7
  const c = {
@@ -1,5 +1,5 @@
1
1
  import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
- import { B as a } from "../index-1211cb6b.js";
2
+ import { B as a } from "../index-875e92ce.js";
3
3
  import { c as i } from "../const-53dff524.js";
4
4
  import { C as p } from "../ComponentContainer-cdb2528c.js";
5
5
  import { InstructionCardData as m, InstructionCard as l } from "./components/InstructionCard/InstructionCard.js";
@@ -1,5 +1,5 @@
1
1
  import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
- import { B as b } from "../index-1211cb6b.js";
2
+ import { B as b } from "../index-875e92ce.js";
3
3
  import { C as c } from "../ComponentContainer-cdb2528c.js";
4
4
  import { I as e } from "../index-2265d593.js";
5
5
  import { u as d } from "../useScreenSize-c1b64c02.js";
@@ -1,5 +1,5 @@
1
1
  import { jsxs as o, jsx as l } from "react/jsx-runtime";
2
- import { B as f } from "../index-1211cb6b.js";
2
+ import { B as f } from "../index-875e92ce.js";
3
3
  import { c as d } from "../const-53dff524.js";
4
4
  import { C as b } from "../ComponentContainer-cdb2528c.js";
5
5
  import { I as t } from "../index-2265d593.js";
@@ -1,8 +1,8 @@
1
1
  import { jsxs as o, jsx as a } from "react/jsx-runtime";
2
2
  import { BannerAndText as p } from "../BannerAndText/index.js";
3
- import { CardIconList as c } from "../CardIconList/CardIconList.js";
3
+ import { CardIconList as d } from "../CardIconList/CardIconList.js";
4
4
  import { FieldTypes as t } from "../Types/FiledTypes.js";
5
- import { C as d } from "../ComponentContainer-cdb2528c.js";
5
+ import { C as c } from "../ComponentContainer-cdb2528c.js";
6
6
  const m = {
7
7
  type: "banner_card",
8
8
  label: "Баннер карточка",
@@ -20,7 +20,9 @@ const m = {
20
20
  data: {
21
21
  title: t.TITLE,
22
22
  description: t.DESCRIPTION,
23
- icon: t.FILE
23
+ image: t.FILE,
24
+ link: t.LINK,
25
+ link_text: t.TITLE
24
26
  }
25
27
  }, f = {
26
28
  type: "text_card",
@@ -35,11 +37,11 @@ const m = {
35
37
  }
36
38
  }, b = {
37
39
  type: "is_cards_first",
38
- label: "Первая карточка",
40
+ label: "Первая карточка Баннера",
39
41
  dataType: "boolean"
40
42
  }, T = {
41
43
  type: "is_banner_first",
42
- label: "Первая карточка",
44
+ label: "Сменить порядок карточек",
43
45
  dataType: "boolean"
44
46
  }, _ = [
45
47
  "title",
@@ -55,7 +57,7 @@ const m = {
55
57
  cards: i,
56
58
  is_banner_first: n,
57
59
  is_cards_first: l
58
- }) => /* @__PURE__ */ o(d, { className: "flex flex-col items-center gap-[24px]", children: [
60
+ }) => /* @__PURE__ */ o(c, { className: "flex flex-col items-center gap-[24px]", children: [
59
61
  r && /* @__PURE__ */ a(
60
62
  "p",
61
63
  {
@@ -78,7 +80,7 @@ const m = {
78
80
  }
79
81
  ),
80
82
  /* @__PURE__ */ a(
81
- c,
83
+ d,
82
84
  {
83
85
  cards: i,
84
86
  turnover: l,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as o, jsx as s } from "react/jsx-runtime";
2
- import { B as c } from "../index-1211cb6b.js";
2
+ import { B as c } from "../index-875e92ce.js";
3
3
  import { c as d } from "../const-53dff524.js";
4
4
  import { C as l } from "../ComponentContainer-cdb2528c.js";
5
5
  import { PreviewCardData as x, PreviewCard as t } from "./components/PreviewCard/PreviewCard.js";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
2
  import { FieldTypes as a } from "../../../Types/FiledTypes.js";
3
3
  import { B as o } from "../../../const-53dff524.js";
4
- import { B as d } from "../../../index-1211cb6b.js";
4
+ import { B as d } from "../../../index-875e92ce.js";
5
5
  import { I as c } from "../../../index-2265d593.js";
6
6
  const m = ["title", "subtitle", "image", "button", "id"], v = {
7
7
  title: a.TITLE,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as n, jsx as s } from "react/jsx-runtime";
2
2
  import { a as r } from "../../../cn-6a4bf187.js";
3
3
  import { HtmlContent as c } from "../../../HtmlContent/HtmlContent.js";
4
- import { B as x } from "../../../index-1211cb6b.js";
4
+ import { B as x } from "../../../index-875e92ce.js";
5
5
  import { b as p, a as t } from "../../../const-53dff524.js";
6
6
  import { I as f } from "../../../index-2265d593.js";
7
7
  const B = ({
@@ -1,6 +1,6 @@
1
1
  import { jsx as r, jsxs as a } from "react/jsx-runtime";
2
2
  import { FieldTypes as t } from "../Types/FiledTypes.js";
3
- import { B as c } from "../index-1211cb6b.js";
3
+ import { B as c } from "../index-875e92ce.js";
4
4
  import { B as x } from "../const-53dff524.js";
5
5
  import { C as d } from "../ComponentContainer-cdb2528c.js";
6
6
  import { I as f } from "../index-2265d593.js";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
2
  import { a as t, c as u } from "../cn-6a4bf187.js";
3
3
  import { FieldTypes as m } from "../Types/FiledTypes.js";
4
- import { B as y } from "../index-1211cb6b.js";
4
+ import { B as y } from "../index-875e92ce.js";
5
5
  import { C as g } from "../ComponentContainer-cdb2528c.js";
6
6
  import { I as w } from "../index-2265d593.js";
7
7
  const v = {
@@ -27,7 +27,7 @@ const y = h(
27
27
  [e.Brand]: "bg-greenLight text-white hover:bg-green disabled:bg-lightGray5 disabled:cursor-not-allowed",
28
28
  [e.Grey]: "bg-greyLight text-blackBG"
29
29
  };
30
- return !a || !s ? null : /* @__PURE__ */ c(
30
+ return !a && !s ? null : /* @__PURE__ */ c(
31
31
  "button",
32
32
  {
33
33
  className: m(
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.54",
5
+ "version": "0.0.56",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",