md-components-mdigial-azamat 0.0.87 → 0.0.88
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.
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const s = (e) => {
|
|
2
|
+
const l = {};
|
|
3
|
+
return e != null && e.modal && (l.onClick = () => {
|
|
4
|
+
var r;
|
|
5
|
+
const o = (r = e == null ? void 0 : e.modal) == null ? void 0 : r.modal_slug;
|
|
6
|
+
if (o) {
|
|
7
|
+
sessionStorage.setItem("modal_slug", o);
|
|
8
|
+
const t = new URL(window.location.href);
|
|
9
|
+
t.searchParams.set("modal_slug", o), window.history.pushState({}, "", t.toString());
|
|
10
|
+
}
|
|
11
|
+
}), l;
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
s as actionsGenerator
|
|
15
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs as p, jsx as x } from "react/jsx-runtime";
|
|
2
|
+
import { actionsGenerator as s } from "../../Actions/actionsGenerator.js";
|
|
2
3
|
import { FieldTypes as l } from "../../Types/FiledTypes.js";
|
|
3
|
-
import { I as
|
|
4
|
+
import { I as c } from "../../index-9384c6d6.js";
|
|
4
5
|
import { c as i } from "../../cn-6a4bf187.js";
|
|
5
|
-
const
|
|
6
|
+
const n = {
|
|
6
7
|
type: "data",
|
|
7
8
|
label: "Данные карточки с изображением",
|
|
8
9
|
dataType: "object",
|
|
@@ -15,11 +16,12 @@ const r = {
|
|
|
15
16
|
is_black: l.BOOLEAN
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
|
-
},
|
|
19
|
-
const
|
|
19
|
+
}, m = [n], b = ({ data: e }) => {
|
|
20
|
+
const o = (e == null ? void 0 : e.variant) === "large" ? "h-[364px]" : "h-[264px]", t = (e == null ? void 0 : e.variant) === "small" ? "w-[364px]" : "w-[264px]", r = s(e == null ? void 0 : e.action);
|
|
20
21
|
return /* @__PURE__ */ p(
|
|
21
22
|
"div",
|
|
22
23
|
{
|
|
24
|
+
...r,
|
|
23
25
|
className: i(
|
|
24
26
|
"w-full overflow-hidden bg-white rounded-[20px] flex flex-1 flex-col items-center justify-between",
|
|
25
27
|
{ "!bg-black": e == null ? void 0 : e.is_black }
|
|
@@ -48,20 +50,20 @@ const r = {
|
|
|
48
50
|
)
|
|
49
51
|
] }),
|
|
50
52
|
/* @__PURE__ */ x(
|
|
51
|
-
|
|
53
|
+
c,
|
|
52
54
|
{
|
|
53
55
|
src: e == null ? void 0 : e.image,
|
|
54
56
|
alt: e == null ? void 0 : e.title,
|
|
55
|
-
className: `w-full ${
|
|
56
|
-
imageStyles: `${
|
|
57
|
+
className: `w-full ${o} max-tablet:h-[200px] box-border`,
|
|
58
|
+
imageStyles: `${t} h-full max-tablet:w-[200px] object-contain`
|
|
57
59
|
}
|
|
58
60
|
)
|
|
59
61
|
]
|
|
60
62
|
}
|
|
61
63
|
);
|
|
62
64
|
};
|
|
63
|
-
|
|
65
|
+
b.propsToEdit = m;
|
|
64
66
|
export {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
b as CardImage,
|
|
68
|
+
m as propsToEdit
|
|
67
69
|
};
|