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
|
|
2
|
-
import { useState as
|
|
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
|
|
6
|
-
import { PartnerTab as
|
|
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
|
-
},
|
|
25
|
+
}, C = ["title", "subtitle", T, y], E = ({
|
|
25
26
|
title: l,
|
|
26
|
-
subtitle:
|
|
27
|
-
categories:
|
|
28
|
-
cards:
|
|
27
|
+
subtitle: n,
|
|
28
|
+
categories: e,
|
|
29
|
+
cards: o
|
|
29
30
|
}) => {
|
|
30
31
|
var i;
|
|
31
|
-
const [
|
|
32
|
-
return /* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
|
|
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 ===
|
|
40
|
-
onClick:
|
|
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__ */
|
|
45
|
-
|
|
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
|
-
|
|
54
|
+
E.propsToEdit = C;
|
|
54
55
|
export {
|
|
55
|
-
|
|
56
|
+
E as PartnersColors
|
|
56
57
|
};
|