md-components-mdigial-azamat 0.0.73 → 0.0.74
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,31 +1,52 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as p, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { FieldTypes as r } from "../../../Types/FiledTypes.js";
|
|
3
|
-
import { B as
|
|
4
|
-
import { B as
|
|
5
|
-
import { I as
|
|
6
|
-
const
|
|
3
|
+
import { B as c } from "../../../index-875e92ce.js";
|
|
4
|
+
import { B as d } from "../../../const-53dff524.js";
|
|
5
|
+
import { I as x } from "../../../index-9384c6d6.js";
|
|
6
|
+
const m = [
|
|
7
|
+
"title",
|
|
8
|
+
"subtitle",
|
|
9
|
+
"image",
|
|
10
|
+
"button",
|
|
11
|
+
"id",
|
|
12
|
+
"background_color"
|
|
13
|
+
], w = {
|
|
7
14
|
title: r.TITLE,
|
|
8
15
|
subtitle: r.DESCRIPTION,
|
|
9
16
|
image: r.FILE,
|
|
10
|
-
button:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
17
|
+
button: d,
|
|
18
|
+
background_color: r.COLOR
|
|
19
|
+
}, t = ({
|
|
20
|
+
title: l,
|
|
21
|
+
subtitle: o,
|
|
22
|
+
image: s,
|
|
23
|
+
button: e,
|
|
24
|
+
background_color: i
|
|
25
|
+
}) => /* @__PURE__ */ p("div", { className: "w-full flex flex-col rounded-[20px] overflow-hidden", children: [
|
|
26
|
+
/* @__PURE__ */ a(
|
|
27
|
+
"div",
|
|
14
28
|
{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
29
|
+
style: { background: i },
|
|
30
|
+
className: "relative w-full h-[256px] max-tablet:h-[224px]",
|
|
31
|
+
children: /* @__PURE__ */ a(
|
|
32
|
+
x,
|
|
33
|
+
{
|
|
34
|
+
src: s,
|
|
35
|
+
alt: l,
|
|
36
|
+
className: "w-full h-full",
|
|
37
|
+
imageStyles: "object-contain"
|
|
38
|
+
}
|
|
39
|
+
)
|
|
19
40
|
}
|
|
20
|
-
)
|
|
21
|
-
/* @__PURE__ */
|
|
41
|
+
),
|
|
42
|
+
/* @__PURE__ */ p("div", { className: "bg-white p-[32px] max-tablet:px-[24px] max-tablet:py-[32px] flex flex-col gap-[8px] h-full", children: [
|
|
22
43
|
(l == null ? void 0 : l.length) && /* @__PURE__ */ a("p", { className: "text-[24px] leading-[32px] font-bold", children: l }),
|
|
23
|
-
|
|
24
|
-
((e == null ? void 0 : e.title) || (e == null ? void 0 : e.children)) && /* @__PURE__ */ a(
|
|
44
|
+
o && /* @__PURE__ */ a("p", { className: "text-[14px] leading-[20px] text-graySoft", children: o }),
|
|
45
|
+
((e == null ? void 0 : e.title) || (e == null ? void 0 : e.children)) && /* @__PURE__ */ a(c, { ...e })
|
|
25
46
|
] })
|
|
26
47
|
] });
|
|
27
|
-
|
|
48
|
+
t.propsToEdit = m;
|
|
28
49
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
50
|
+
t as PreviewCard,
|
|
51
|
+
w as PreviewCardData
|
|
31
52
|
};
|