md-components-mdigial-azamat 0.0.53 → 0.0.55

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.
package/README.md CHANGED
@@ -1,3 +1,10 @@
1
+
2
+
3
+ npm version patch
4
+ npm run build
5
+ npm publish
6
+
7
+
1
8
  # MBank UI Component Library
2
9
 
3
10
  Библиотека компонентов для MBank - современная UI библиотека на React + TypeScript + Vite.
@@ -119,7 +126,3 @@ parserOptions: {
119
126
  ## 👤 Автор
120
127
 
121
128
  **Azamat Raimbekov**
122
-
123
- npm version patch
124
- npm run build
125
- npm publish
@@ -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-10605794.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-10605794.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-10605794.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-10605794.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-10605794.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-10605794.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-10605794.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-10605794.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-10605794.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,7 +1,7 @@
1
1
  import { jsx as r, jsxs as a } from "react/jsx-runtime";
2
2
  import { I as n } from "../../../Icon-70ea6cb8.js";
3
3
  import { p as e } from "../../../palette-6c943596.js";
4
- import { B as s } from "../../../index-10605794.js";
4
+ import { B as s } from "../../../index-875e92ce.js";
5
5
  import { b as c } from "../../../const-53dff524.js";
6
6
  import { C as i } from "../../../ComponentContainer-cdb2528c.js";
7
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(
@@ -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-10605794.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-10605794.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-10605794.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-10605794.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-10605794.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-10605794.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-10605794.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-10605794.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-10605794.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-10605794.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-10605794.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-10605794.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 = {
@@ -4,14 +4,14 @@ import { c as m } from "./cn-6a4bf187.js";
4
4
  import { a as t, b as e } from "./const-53dff524.js";
5
5
  const y = h(
6
6
  ({
7
- children: o,
8
- size: s = t.XL,
9
- variant: d = e.Primary,
7
+ children: a,
8
+ size: d = t.XL,
9
+ variant: n = e.Primary,
10
10
  loading: i = !1,
11
- iconRight: a,
12
- iconLeft: l,
13
- className: n,
14
- title: p,
11
+ iconRight: l,
12
+ iconLeft: o,
13
+ className: p,
14
+ title: s,
15
15
  ...b
16
16
  }, x) => {
17
17
  const g = {
@@ -27,21 +27,21 @@ 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 /* @__PURE__ */ c(
30
+ return !a && !s ? null : /* @__PURE__ */ c(
31
31
  "button",
32
32
  {
33
33
  className: m(
34
34
  "flex items-center justify-center gap-2 border-none font-i font-medium cursor-pointer w-fit ",
35
- g[s],
36
- u[d],
37
- n
35
+ g[d],
36
+ u[n],
37
+ p
38
38
  ),
39
39
  ref: x,
40
40
  ...b,
41
41
  children: [
42
- i ? /* @__PURE__ */ r("span", { className: "flex justify-center items-center w-[22px] h-[22px] p-[2px] bg-transparent rounded-full border-2 border-[#0e0f11] border-t-transparent animate-spin" }) : l && /* @__PURE__ */ r("span", { className: "flex items-center", children: l }),
43
- p || o,
44
- a && /* @__PURE__ */ r("span", { className: "flex items-center", children: a })
42
+ i ? /* @__PURE__ */ r("span", { className: "flex justify-center items-center w-[22px] h-[22px] p-[2px] bg-transparent rounded-full border-2 border-[#0e0f11] border-t-transparent animate-spin" }) : o && /* @__PURE__ */ r("span", { className: "flex items-center", children: o }),
43
+ s || a,
44
+ l && /* @__PURE__ */ r("span", { className: "flex items-center", children: l })
45
45
  ]
46
46
  }
47
47
  );
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.53",
5
+ "version": "0.0.55",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",