@arbeidstilsynet/design-react 0.3.5 → 0.3.7

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
@@ -8,15 +8,6 @@ const designsystemetReact = require("@digdir/designsystemet-react");
8
8
  const reactSlot = require("@radix-ui/react-slot");
9
9
  var jsxRuntime = { exports: {} };
10
10
  var reactJsxRuntime_production = {};
11
- /**
12
- * @license React
13
- * react-jsx-runtime.production.js
14
- *
15
- * Copyright (c) Meta Platforms, Inc. and affiliates.
16
- *
17
- * This source code is licensed under the MIT license found in the
18
- * LICENSE file in the root directory of this source tree.
19
- */
20
11
  var hasRequiredReactJsxRuntime_production;
21
12
  function requireReactJsxRuntime_production() {
22
13
  if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
@@ -46,15 +37,6 @@ function requireReactJsxRuntime_production() {
46
37
  return reactJsxRuntime_production;
47
38
  }
48
39
  var reactJsxRuntime_development = {};
49
- /**
50
- * @license React
51
- * react-jsx-runtime.development.js
52
- *
53
- * Copyright (c) Meta Platforms, Inc. and affiliates.
54
- *
55
- * This source code is licensed under the MIT license found in the
56
- * LICENSE file in the root directory of this source tree.
57
- */
58
40
  var hasRequiredReactJsxRuntime_development;
59
41
  function requireReactJsxRuntime_development() {
60
42
  if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
@@ -325,15 +307,6 @@ function requireJsxRuntime() {
325
307
  var jsxRuntimeExports = requireJsxRuntime();
326
308
  var compilerRuntime = { exports: {} };
327
309
  var reactCompilerRuntime_production = {};
328
- /**
329
- * @license React
330
- * react-compiler-runtime.production.js
331
- *
332
- * Copyright (c) Meta Platforms, Inc. and affiliates.
333
- *
334
- * This source code is licensed under the MIT license found in the
335
- * LICENSE file in the root directory of this source tree.
336
- */
337
310
  var hasRequiredReactCompilerRuntime_production;
338
311
  function requireReactCompilerRuntime_production() {
339
312
  if (hasRequiredReactCompilerRuntime_production) return reactCompilerRuntime_production;
@@ -345,15 +318,6 @@ function requireReactCompilerRuntime_production() {
345
318
  return reactCompilerRuntime_production;
346
319
  }
347
320
  var reactCompilerRuntime_development = {};
348
- /**
349
- * @license React
350
- * react-compiler-runtime.development.js
351
- *
352
- * Copyright (c) Meta Platforms, Inc. and affiliates.
353
- *
354
- * This source code is licensed under the MIT license found in the
355
- * LICENSE file in the root directory of this source tree.
356
- */
357
321
  var hasRequiredReactCompilerRuntime_development;
358
322
  function requireReactCompilerRuntime_development() {
359
323
  if (hasRequiredReactCompilerRuntime_development) return reactCompilerRuntime_development;
@@ -764,7 +728,7 @@ function FilePickerErrors(t0) {
764
728
  }
765
729
  let t3;
766
730
  if ($[7] !== rest || $[8] !== t1 || $[9] !== t2) {
767
- t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, role: "status", ...rest, children: t2 });
731
+ t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("output", { className: t1, ...rest, children: t2 });
768
732
  $[7] = rest;
769
733
  $[8] = t1;
770
734
  $[9] = t2;
@@ -782,7 +746,7 @@ function formatFileSize(bytes) {
782
746
  const k = 1024;
783
747
  const sizes = ["Bytes", "KB", "MB", "GB"];
784
748
  const i = Math.floor(Math.log(bytes) / Math.log(k));
785
- return parseFloat((bytes / Math.pow(k, i)).toFixed(1)) + " " + sizes[i];
749
+ return Number.parseFloat((bytes / Math.pow(k, i)).toFixed(1)) + " " + sizes[i];
786
750
  }
787
751
  function FilePickerFiles(t0) {
788
752
  const $ = compilerRuntimeExports.c(38);
@@ -1405,7 +1369,7 @@ function _temp(name) {
1405
1369
  if (names.length === 1) {
1406
1370
  return names[0].charAt(0).toUpperCase();
1407
1371
  }
1408
- return names[0].charAt(0).toUpperCase() + names[names.length - 1].charAt(0).toUpperCase();
1372
+ return names[0].charAt(0).toUpperCase() + names.at(-1).charAt(0).toUpperCase();
1409
1373
  }
1410
1374
  function HeaderSearch(t0) {
1411
1375
  const $ = compilerRuntimeExports.c(10);