@arbeidstilsynet/design-react 0.4.2 → 0.5.0
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 +8 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -12
- package/dist/index.js.map +1 -1
- package/package.json +19 -19
package/dist/index.cjs
CHANGED
|
@@ -41,7 +41,7 @@ var hasRequiredReactJsxRuntime_development;
|
|
|
41
41
|
function requireReactJsxRuntime_development() {
|
|
42
42
|
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
43
43
|
hasRequiredReactJsxRuntime_development = 1;
|
|
44
|
-
"production" !== process.env.NODE_ENV && function() {
|
|
44
|
+
"production" !== process.env.NODE_ENV && (function() {
|
|
45
45
|
function getComponentNameFromType(type) {
|
|
46
46
|
if (null == type) return null;
|
|
47
47
|
if ("function" === typeof type)
|
|
@@ -290,7 +290,7 @@ function requireReactJsxRuntime_development() {
|
|
|
290
290
|
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
291
291
|
);
|
|
292
292
|
};
|
|
293
|
-
}();
|
|
293
|
+
})();
|
|
294
294
|
return reactJsxRuntime_development;
|
|
295
295
|
}
|
|
296
296
|
var hasRequiredJsxRuntime;
|
|
@@ -322,7 +322,7 @@ var hasRequiredReactCompilerRuntime_development;
|
|
|
322
322
|
function requireReactCompilerRuntime_development() {
|
|
323
323
|
if (hasRequiredReactCompilerRuntime_development) return reactCompilerRuntime_development;
|
|
324
324
|
hasRequiredReactCompilerRuntime_development = 1;
|
|
325
|
-
"production" !== process.env.NODE_ENV && function() {
|
|
325
|
+
"production" !== process.env.NODE_ENV && (function() {
|
|
326
326
|
var ReactSharedInternals = require$$0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
327
327
|
reactCompilerRuntime_development.c = function(size) {
|
|
328
328
|
var dispatcher = ReactSharedInternals.H;
|
|
@@ -331,7 +331,7 @@ function requireReactCompilerRuntime_development() {
|
|
|
331
331
|
);
|
|
332
332
|
return dispatcher.useMemoCache(size);
|
|
333
333
|
};
|
|
334
|
-
}();
|
|
334
|
+
})();
|
|
335
335
|
return reactCompilerRuntime_development;
|
|
336
336
|
}
|
|
337
337
|
var hasRequiredCompilerRuntime;
|
|
@@ -857,13 +857,10 @@ function FilePickerFiles(t0) {
|
|
|
857
857
|
} = t122;
|
|
858
858
|
const size = formatFileSize(file.size);
|
|
859
859
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(designsystemetReact.Table.Row, { "data-error": hasError, children: [
|
|
860
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Table.Cell, { title: file.name, className: "at-filepicker-files-file__name",
|
|
861
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(akselIcons.FileTextIcon, { "aria-hidden": "true", fontSize: "1.5em" }),
|
|
862
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "at-filepicker-files-file__text", children: file.name })
|
|
863
|
-
] }) }),
|
|
860
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Table.Cell, { title: file.name, className: "at-filepicker-files-file__name", children: /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Link, { href: disabled ? void 0 : URL.createObjectURL(file), target: "_blank", rel: "noreferrer", "aria-disabled": disabled, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "at-filepicker-files-file__text", children: file.name }) }) }),
|
|
864
861
|
/* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Table.Cell, { title: size, children: size }),
|
|
865
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Table.Cell, { "data-color": "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(designsystemetReact.Button, { variant: "tertiary",
|
|
866
|
-
|
|
862
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Table.Cell, { "data-color": "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(designsystemetReact.Button, { variant: "tertiary", disabled, "aria-label": `Remove ${file.name}`, onClick: () => onRemove(id), className: "at-filepicker-files-file__button", children: [
|
|
863
|
+
removeButtonLabel,
|
|
867
864
|
/* @__PURE__ */ jsxRuntimeExports.jsx(akselIcons.TrashIcon, { "aria-hidden": true })
|
|
868
865
|
] }) })
|
|
869
866
|
] }, id);
|
|
@@ -894,7 +891,7 @@ function FilePickerFiles(t0) {
|
|
|
894
891
|
}
|
|
895
892
|
let t12;
|
|
896
893
|
if ($[33] !== rest || $[34] !== t11 || $[35] !== t4 || $[36] !== t9) {
|
|
897
|
-
t12 = /* @__PURE__ */ jsxRuntimeExports.jsxs(designsystemetReact.Table, { className: t4, ...rest, children: [
|
|
894
|
+
t12 = /* @__PURE__ */ jsxRuntimeExports.jsxs(designsystemetReact.Table, { "data-color": "neutral", className: t4, ...rest, children: [
|
|
898
895
|
t9,
|
|
899
896
|
t11
|
|
900
897
|
] });
|