md-components-mdigial-azamat 0.0.41 → 0.0.42

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,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.42",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",