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
|
|
2
|
-
import { WarningCardVariant as
|
|
3
|
-
import { I as
|
|
4
|
-
import { b as
|
|
5
|
-
import { B as
|
|
6
|
-
import { C
|
|
7
|
-
import { c as
|
|
8
|
-
const
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
],
|
|
16
|
-
title:
|
|
17
|
-
description:
|
|
18
|
-
button:
|
|
19
|
-
variant:
|
|
20
|
-
}) =>
|
|
21
|
-
|
|
22
|
-
{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
children: i
|
|
32
|
+
name: (i = e[o]) == null ? void 0 : i.icon,
|
|
33
|
+
size: 40
|
|
41
34
|
}
|
|
42
35
|
),
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
) }
|
|
57
|
-
|
|
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
|
-
|
|
62
|
+
N as WarningCard
|
|
60
63
|
};
|
|
@@ -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
|
};
|