@kystverket/styrbord 1.2.2 → 1.2.4
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.
package/dist/main.js
CHANGED
|
@@ -370,7 +370,11 @@ const r8 = "_frame_ilave_1", a8 = "_content_ilave_17", i8 = "_file_ilave_22", s8
|
|
|
370
370
|
if (r.contentType === "pdf") return /* @__PURE__ */ u.jsx(x8, { tabIndex: t, file: r, className: n });
|
|
371
371
|
if (r.contentType === "json") return /* @__PURE__ */ u.jsx(L8, { tabIndex: t, file: r, className: n });
|
|
372
372
|
}, y8 = ({ file: r, className: n }) => /* @__PURE__ */ u.jsx("img", { src: r.src, className: `${d0.image} ${n || ""}` }), w8 = ({ file: r, className: n }) => /* @__PURE__ */ u.jsx("img", { className: `${d0.previewFile} ${n || ""}`, src: r.src }), b8 = ({ file: r, className: n }) => /* @__PURE__ */ u.jsx(B, { align: "center", justify: "center", className: `${d0.thumbnail} ${d0.flexCenter} ${n || ""}`, children: /* @__PURE__ */ u.jsx("p", { children: r.fileName }) });
|
|
373
|
-
function L8({
|
|
373
|
+
function L8({
|
|
374
|
+
file: r,
|
|
375
|
+
className: n,
|
|
376
|
+
tabIndex: e
|
|
377
|
+
}) {
|
|
374
378
|
const t = (s) => {
|
|
375
379
|
const o = window.getSelection(), l = document.createRange();
|
|
376
380
|
l.selectNodeContents(s), o == null || o.removeAllRanges(), o == null || o.addRange(l);
|
|
@@ -390,7 +394,11 @@ function L8({ file: r, className: n, tabIndex: e }) {
|
|
|
390
394
|
}
|
|
391
395
|
);
|
|
392
396
|
}
|
|
393
|
-
const _8 = ({ file: r, className: n }) => /* @__PURE__ */ u.jsx(B, { className: `${d0.thumbnail} ${d0.flexCenter} ${n || ""}`, children: /* @__PURE__ */ u.jsx("p", { children: r.fileName }) }), x8 = ({
|
|
397
|
+
const _8 = ({ file: r, className: n }) => /* @__PURE__ */ u.jsx(B, { className: `${d0.thumbnail} ${d0.flexCenter} ${n || ""}`, children: /* @__PURE__ */ u.jsx("p", { children: r.fileName }) }), x8 = ({
|
|
398
|
+
file: r,
|
|
399
|
+
className: n,
|
|
400
|
+
tabIndex: e
|
|
401
|
+
}) => /* @__PURE__ */ u.jsx("embed", { tabIndex: e, className: `${d0.previewFile} ${n || ""}`, src: r.src }), k8 = () => {
|
|
394
402
|
const r = k2(null), n = k2(!1), e = k2(!1), t = k2(0), a = k2(0), i = r1((l) => {
|
|
395
403
|
r.current && (n.current = !0, e.current = !1, t.current = l.pageX - r.current.offsetLeft, a.current = r.current.scrollLeft);
|
|
396
404
|
}, []), s = r1((l) => {
|
|
@@ -608,9 +616,9 @@ b5.displayName = "FilePreviewer";
|
|
|
608
616
|
b5.Thumbnail.displayName = "FilePreviewer.Thumbnail";
|
|
609
617
|
const j8 = "_kyvDivider_ukpgq_1", V8 = {
|
|
610
618
|
kyvDivider: j8
|
|
611
|
-
}, _l = () => /* @__PURE__ */ u.jsx("hr", { className: V8.kyvDivider }), A8 = "
|
|
612
|
-
"width-full": "_width-
|
|
613
|
-
"width-md": "_width-
|
|
619
|
+
}, _l = () => /* @__PURE__ */ u.jsx("hr", { className: V8.kyvDivider }), A8 = "_closeButton_18188_8", B8 = "_alert_18188_17", $4 = {
|
|
620
|
+
"width-full": "_width-full_18188_2",
|
|
621
|
+
"width-md": "_width-md_18188_5",
|
|
614
622
|
closeButton: A8,
|
|
615
623
|
alert: B8
|
|
616
624
|
}, Y8 = "_icon_zv10m_2", W8 = "_filled_zv10m_7", o7 = {
|