@arbeidstilsynet/design-react 0.3.4 → 0.3.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/index.js CHANGED
@@ -763,7 +763,7 @@ function FilePickerErrors(t0) {
763
763
  }
764
764
  let t3;
765
765
  if ($[7] !== rest || $[8] !== t1 || $[9] !== t2) {
766
- t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, role: "status", ...rest, children: t2 });
766
+ t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("output", { className: t1, ...rest, children: t2 });
767
767
  $[7] = rest;
768
768
  $[8] = t1;
769
769
  $[9] = t2;
@@ -781,7 +781,7 @@ function formatFileSize(bytes) {
781
781
  const k = 1024;
782
782
  const sizes = ["Bytes", "KB", "MB", "GB"];
783
783
  const i = Math.floor(Math.log(bytes) / Math.log(k));
784
- return parseFloat((bytes / Math.pow(k, i)).toFixed(1)) + " " + sizes[i];
784
+ return Number.parseFloat((bytes / Math.pow(k, i)).toFixed(1)) + " " + sizes[i];
785
785
  }
786
786
  function FilePickerFiles(t0) {
787
787
  const $ = compilerRuntimeExports.c(38);
@@ -1404,7 +1404,7 @@ function _temp(name) {
1404
1404
  if (names.length === 1) {
1405
1405
  return names[0].charAt(0).toUpperCase();
1406
1406
  }
1407
- return names[0].charAt(0).toUpperCase() + names[names.length - 1].charAt(0).toUpperCase();
1407
+ return names[0].charAt(0).toUpperCase() + names.at(-1).charAt(0).toUpperCase();
1408
1408
  }
1409
1409
  function HeaderSearch(t0) {
1410
1410
  const $ = compilerRuntimeExports.c(10);