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