md-components-mdigial-azamat 0.0.41 → 0.0.43

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,60 +1,63 @@
1
- import { jsx as o, jsxs as t } from "react/jsx-runtime";
2
- import { WarningCardVariant as r, warningCardVariant as l } from "./model.js";
3
- import { I as a } from "../../Icon-70ea6cb8.js";
4
- import { b as c } from "../../const-637b0dca.js";
5
- import { B as d } from "../../index-6af94f99.js";
6
- import { C as p } from "../../ComponentContainer-cdb2528c.js";
7
- import { c as m } from "../../cn-6a4bf187.js";
8
- const x = [
1
+ import { jsx as r, jsxs as t } from "react/jsx-runtime";
2
+ import { WarningCardVariant as e, WarningCardVariantKey as p, warningCardVariant as m } from "./model.js";
3
+ import { I as x } from "../../Icon-70ea6cb8.js";
4
+ import { b as f } from "../../const-637b0dca.js";
5
+ import { B as g } from "../../index-6af94f99.js";
6
+ import { C } from "../../ComponentContainer-cdb2528c.js";
7
+ import { c as h } from "../../cn-6a4bf187.js";
8
+ const u = [
9
9
  "title",
10
10
  "title_color",
11
11
  "description",
12
12
  "description_color",
13
- c,
14
- l
15
- ], f = ({
16
- title: i,
17
- description: n,
18
- button: s,
19
- variant: e
20
- }) => /* @__PURE__ */ o(p, { children: /* @__PURE__ */ o(
21
- "div",
22
- {
23
- className: "rounded-[24px] p-6",
24
- style: { background: r[e].background },
25
- children: /* @__PURE__ */ t("div", { className: "flex gap-4 items-center justify-between", children: [
26
- /* @__PURE__ */ t("div", { className: "flex gap-4 items-center", children: [
27
- /* @__PURE__ */ o(
28
- a,
29
- {
30
- name: r[e].icon,
31
- size: 40
32
- }
33
- ),
34
- /* @__PURE__ */ t("div", { className: "flex flex-col gap-1", children: [
35
- /* @__PURE__ */ o(
36
- "p",
13
+ f,
14
+ m
15
+ ], N = ({
16
+ title: l,
17
+ description: c,
18
+ button: d,
19
+ variant: o = p.Orange
20
+ }) => {
21
+ var n, i, a, s;
22
+ return /* @__PURE__ */ r(C, { children: /* @__PURE__ */ r(
23
+ "div",
24
+ {
25
+ className: "rounded-[24px] p-6",
26
+ style: { background: (n = e[o]) == null ? void 0 : n.background },
27
+ children: /* @__PURE__ */ t("div", { className: "flex gap-4 items-center justify-between", children: [
28
+ /* @__PURE__ */ t("div", { className: "flex gap-4 items-center", children: [
29
+ /* @__PURE__ */ r(
30
+ x,
37
31
  {
38
- className: m("text-[24px] leading-8 font-bold"),
39
- style: { color: r[e].textColor },
40
- children: i
32
+ name: (i = e[o]) == null ? void 0 : i.icon,
33
+ size: 40
41
34
  }
42
35
  ),
43
- /* @__PURE__ */ o(
44
- "p",
45
- {
46
- className: "text-[16px] leading-6",
47
- style: { color: r[e].textColor },
48
- children: n
49
- }
50
- )
51
- ] })
52
- ] }),
53
- /* @__PURE__ */ o(d, { ...s })
54
- ] })
55
- }
56
- ) });
57
- f.propsToEdit = x;
36
+ /* @__PURE__ */ t("div", { className: "flex flex-col gap-1", children: [
37
+ /* @__PURE__ */ r(
38
+ "p",
39
+ {
40
+ className: h("text-[24px] leading-8 font-bold"),
41
+ style: { color: (a = e[o]) == null ? void 0 : a.textColor },
42
+ children: l
43
+ }
44
+ ),
45
+ /* @__PURE__ */ r(
46
+ "p",
47
+ {
48
+ className: "text-[16px] leading-6",
49
+ style: { color: (s = e[o]) == null ? void 0 : s.textColor },
50
+ children: c
51
+ }
52
+ )
53
+ ] })
54
+ ] }),
55
+ /* @__PURE__ */ r(g, { ...d })
56
+ ] })
57
+ }
58
+ ) });
59
+ };
60
+ N.propsToEdit = u;
58
61
  export {
59
- f as WarningCard
62
+ N as WarningCard
60
63
  };
@@ -1,9 +1,9 @@
1
- import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
- import { useState as d } from "react";
1
+ import { jsxs as s, jsx as p } from "react/jsx-runtime";
2
+ import { useState as a } from "react";
3
3
  import { FieldTypes as r } from "../Types/FiledTypes.js";
4
4
  import { C as x } from "../ComponentContainer-cdb2528c.js";
5
- import { PartnerCard as c } from "./components/PartnerCard/PartnerCard.js";
6
- import { PartnerTab as f } from "./components/PartnerTab/PartnerTab.js";
5
+ import { PartnerCard as f } from "./components/PartnerCard/PartnerCard.js";
6
+ import { PartnerTab as c } from "./components/PartnerTab/PartnerTab.js";
7
7
  const T = {
8
8
  type: "categories",
9
9
  label: "Категории",
@@ -11,7 +11,8 @@ const T = {
11
11
  data: {
12
12
  title: r.TITLE,
13
13
  color: r.COLOR,
14
- image: r.FILE
14
+ image: r.FILE,
15
+ id: r.NUMBER
15
16
  }
16
17
  }, y = {
17
18
  type: "cards",
@@ -21,28 +22,28 @@ const T = {
21
22
  title: r.TITLE,
22
23
  logo: r.FILE
23
24
  }
24
- }, g = ["title", "subtitle", T, y], C = ({
25
+ }, C = ["title", "subtitle", T, y], E = ({
25
26
  title: l,
26
- subtitle: a,
27
- categories: o,
28
- cards: p
27
+ subtitle: n,
28
+ categories: e,
29
+ cards: o
29
30
  }) => {
30
31
  var i;
31
- const [s, n] = d(((i = o[0]) == null ? void 0 : i.id) || 0);
32
- return /* @__PURE__ */ m(x, { children: [
33
- /* @__PURE__ */ e("p", { className: "uppercase text-[16px] leading-[24px] font-[500] text-center text-graySoft", children: a }),
34
- /* @__PURE__ */ e("h2", { className: "text-[44px] leading-[52px] font-bold text-center", children: l }),
35
- /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-[12px] mt-[48px]", children: o == null ? void 0 : o.map((t) => /* @__PURE__ */ e(
36
- f,
32
+ const [m, d] = a(((i = e == null ? void 0 : e[0]) == null ? void 0 : i.id) || 0);
33
+ return /* @__PURE__ */ s(x, { children: [
34
+ /* @__PURE__ */ p("p", { className: "uppercase text-[16px] leading-[24px] font-[500] text-center text-graySoft", children: n }),
35
+ /* @__PURE__ */ p("h2", { className: "text-[44px] leading-[52px] font-bold text-center", children: l }),
36
+ /* @__PURE__ */ p("div", { className: "flex flex-wrap gap-[12px] mt-[48px]", children: e == null ? void 0 : e.map((t) => /* @__PURE__ */ p(
37
+ c,
37
38
  {
38
39
  category: t,
39
- isActive: t.id === s,
40
- onClick: n
40
+ isActive: (t == null ? void 0 : t.id) === m,
41
+ onClick: d
41
42
  },
42
43
  t == null ? void 0 : t.id
43
44
  )) }),
44
- /* @__PURE__ */ e("div", { className: "grid grid-cols-[repeat(2,1fr)] md:grid-cols-[repeat(5,1fr)] gap-[16px] mt-[32px]", children: p == null ? void 0 : p.map((t) => /* @__PURE__ */ e(
45
- c,
45
+ /* @__PURE__ */ p("div", { className: "grid grid-cols-[repeat(2,1fr)] md:grid-cols-[repeat(5,1fr)] gap-[16px] mt-[32px]", children: o == null ? void 0 : o.map((t) => /* @__PURE__ */ p(
46
+ f,
46
47
  {
47
48
  card: t
48
49
  },
@@ -50,7 +51,7 @@ const T = {
50
51
  )) })
51
52
  ] });
52
53
  };
53
- C.propsToEdit = g;
54
+ E.propsToEdit = C;
54
55
  export {
55
- C as PartnersColors
56
+ E as PartnersColors
56
57
  };
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.41",
5
+ "version": "0.0.43",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",