@kystverket/styrbord 1.2.5 → 1.2.6

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
@@ -398,7 +398,15 @@ const x8 = ({ file: r, className: n }) => /* @__PURE__ */ u.jsx(B, { className:
398
398
  file: r,
399
399
  className: n,
400
400
  tabIndex: e
401
- }) => /* @__PURE__ */ u.jsx("embed", { tabIndex: e, className: `${d0.previewFile} ${n || ""}`, src: r.src }), D8 = () => {
401
+ }) => /* @__PURE__ */ u.jsx(
402
+ "iframe",
403
+ {
404
+ tabIndex: e,
405
+ title: r.fileName,
406
+ className: `${d0.previewFile} ${n || ""}`,
407
+ src: r.src
408
+ }
409
+ ), D8 = () => {
402
410
  const r = k2(null), n = k2(!1), e = k2(!1), t = k2(0), a = k2(0), i = r1((l) => {
403
411
  r.current && (n.current = !0, e.current = !1, t.current = l.pageX - r.current.offsetLeft, a.current = r.current.scrollLeft);
404
412
  }, []), s = r1((l) => {
@@ -508,7 +516,7 @@ const x8 = ({ file: r, className: n }) => /* @__PURE__ */ u.jsx(B, { className:
508
516
  children: /* @__PURE__ */ u.jsx(t2, { material: "arrow_forward", size: "xl" })
509
517
  }
510
518
  ),
511
- /* @__PURE__ */ u.jsx(B, { className: Z2.fileInnerContainer, children: e.map((Z, S) => /* @__PURE__ */ u.jsx(B, { className: `${Z2.file} ${Z2[r]} ${H(S)}`, children: /* @__PURE__ */ u.jsx(g3, { tabIndex: S === o ? 0 : -1, mode: "full", file: Z }, S) })) })
519
+ /* @__PURE__ */ u.jsx(B, { className: Z2.fileInnerContainer, children: e.map((Z, S) => /* @__PURE__ */ u.jsx(B, { className: `${Z2.file} ${Z2[r]} ${H(S)}`, children: /* @__PURE__ */ u.jsx(g3, { tabIndex: S === o ? 0 : -1, mode: "full", file: Z }) }, `${S}-display`)) })
512
520
  ] }),
513
521
  /* @__PURE__ */ u.jsx(
514
522
  "div",
@@ -534,7 +542,7 @@ const x8 = ({ file: r, className: n }) => /* @__PURE__ */ u.jsx(B, { className:
534
542
  "aria-selected": o === S,
535
543
  children: /* @__PURE__ */ u.jsx(g3, { file: Z })
536
544
  },
537
- S
545
+ `${S}-preview`
538
546
  ))
539
547
  }
540
548
  )