@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 +3 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -39
- package/dist/index.js.map +1 -1
- package/dist/src/components/filepicker/filepickerContext.d.ts +1 -1
- package/dist/src/components/filepicker/filepickerErrors.d.ts +1 -1
- package/dist/src/components/logo/lightdarklogo.d.ts +1 -1
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -7,15 +7,6 @@ import { Alert, Avatar as Avatar2, Badge, BadgePosition, Breadcrumbs, Breadcrumb
|
|
|
7
7
|
import { Slot } from "@radix-ui/react-slot";
|
|
8
8
|
var jsxRuntime = { exports: {} };
|
|
9
9
|
var reactJsxRuntime_production = {};
|
|
10
|
-
/**
|
|
11
|
-
* @license React
|
|
12
|
-
* react-jsx-runtime.production.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/
|
|
19
10
|
var hasRequiredReactJsxRuntime_production;
|
|
20
11
|
function requireReactJsxRuntime_production() {
|
|
21
12
|
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
@@ -45,15 +36,6 @@ function requireReactJsxRuntime_production() {
|
|
|
45
36
|
return reactJsxRuntime_production;
|
|
46
37
|
}
|
|
47
38
|
var reactJsxRuntime_development = {};
|
|
48
|
-
/**
|
|
49
|
-
* @license React
|
|
50
|
-
* react-jsx-runtime.development.js
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/
|
|
57
39
|
var hasRequiredReactJsxRuntime_development;
|
|
58
40
|
function requireReactJsxRuntime_development() {
|
|
59
41
|
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
@@ -324,15 +306,6 @@ function requireJsxRuntime() {
|
|
|
324
306
|
var jsxRuntimeExports = requireJsxRuntime();
|
|
325
307
|
var compilerRuntime = { exports: {} };
|
|
326
308
|
var reactCompilerRuntime_production = {};
|
|
327
|
-
/**
|
|
328
|
-
* @license React
|
|
329
|
-
* react-compiler-runtime.production.js
|
|
330
|
-
*
|
|
331
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
332
|
-
*
|
|
333
|
-
* This source code is licensed under the MIT license found in the
|
|
334
|
-
* LICENSE file in the root directory of this source tree.
|
|
335
|
-
*/
|
|
336
309
|
var hasRequiredReactCompilerRuntime_production;
|
|
337
310
|
function requireReactCompilerRuntime_production() {
|
|
338
311
|
if (hasRequiredReactCompilerRuntime_production) return reactCompilerRuntime_production;
|
|
@@ -344,15 +317,6 @@ function requireReactCompilerRuntime_production() {
|
|
|
344
317
|
return reactCompilerRuntime_production;
|
|
345
318
|
}
|
|
346
319
|
var reactCompilerRuntime_development = {};
|
|
347
|
-
/**
|
|
348
|
-
* @license React
|
|
349
|
-
* react-compiler-runtime.development.js
|
|
350
|
-
*
|
|
351
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
352
|
-
*
|
|
353
|
-
* This source code is licensed under the MIT license found in the
|
|
354
|
-
* LICENSE file in the root directory of this source tree.
|
|
355
|
-
*/
|
|
356
320
|
var hasRequiredReactCompilerRuntime_development;
|
|
357
321
|
function requireReactCompilerRuntime_development() {
|
|
358
322
|
if (hasRequiredReactCompilerRuntime_development) return reactCompilerRuntime_development;
|
|
@@ -763,7 +727,7 @@ function FilePickerErrors(t0) {
|
|
|
763
727
|
}
|
|
764
728
|
let t3;
|
|
765
729
|
if ($[7] !== rest || $[8] !== t1 || $[9] !== t2) {
|
|
766
|
-
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("
|
|
730
|
+
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("output", { className: t1, ...rest, children: t2 });
|
|
767
731
|
$[7] = rest;
|
|
768
732
|
$[8] = t1;
|
|
769
733
|
$[9] = t2;
|
|
@@ -781,7 +745,7 @@ function formatFileSize(bytes) {
|
|
|
781
745
|
const k = 1024;
|
|
782
746
|
const sizes = ["Bytes", "KB", "MB", "GB"];
|
|
783
747
|
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
784
|
-
return parseFloat((bytes / Math.pow(k, i)).toFixed(1)) + " " + sizes[i];
|
|
748
|
+
return Number.parseFloat((bytes / Math.pow(k, i)).toFixed(1)) + " " + sizes[i];
|
|
785
749
|
}
|
|
786
750
|
function FilePickerFiles(t0) {
|
|
787
751
|
const $ = compilerRuntimeExports.c(38);
|
|
@@ -1404,7 +1368,7 @@ function _temp(name) {
|
|
|
1404
1368
|
if (names.length === 1) {
|
|
1405
1369
|
return names[0].charAt(0).toUpperCase();
|
|
1406
1370
|
}
|
|
1407
|
-
return names[0].charAt(0).toUpperCase() + names
|
|
1371
|
+
return names[0].charAt(0).toUpperCase() + names.at(-1).charAt(0).toUpperCase();
|
|
1408
1372
|
}
|
|
1409
1373
|
function HeaderSearch(t0) {
|
|
1410
1374
|
const $ = compilerRuntimeExports.c(10);
|