@arbeidstilsynet/design-react 0.4.2 → 0.6.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 +394 -388
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +396 -393
- package/dist/index.js.map +1 -1
- package/dist/src/components/header/header.d.ts +28 -3
- package/dist/src/components/header/headerContext.d.ts +8 -0
- package/dist/src/components/header/headerIllustration.d.ts +24 -0
- package/dist/src/components/header/headerLogo.d.ts +25 -0
- package/dist/src/components/header/headerMenu.d.ts +57 -0
- package/dist/src/components/header/headerNavbar.d.ts +21 -0
- package/dist/src/components/header/headerTitle.d.ts +28 -8
- package/dist/src/components/header/index.d.ts +55 -20
- package/dist/src/components/header/stories-helpers/headeStoriesIllustation.d.ts +6 -0
- package/dist/src/components/header/stories-helpers/headerStoriesMenuItems.d.ts +28 -0
- package/dist/src/digdir.d.ts +1 -1
- package/package.json +20 -20
- package/dist/src/components/header/headerDefaultLogo.d.ts +0 -5
- package/dist/src/components/header/headerTitleDropdown.d.ts +0 -14
- package/dist/src/components/header/headerTitleLinks.d.ts +0 -11
- package/dist/src/components/header/headerTitleLogo.d.ts +0 -7
package/dist/index.cjs
CHANGED
|
@@ -12,7 +12,7 @@ var hasRequiredReactJsxRuntime_production;
|
|
|
12
12
|
function requireReactJsxRuntime_production() {
|
|
13
13
|
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
14
14
|
hasRequiredReactJsxRuntime_production = 1;
|
|
15
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
15
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
16
16
|
function jsxProd(type, config, maybeKey) {
|
|
17
17
|
var key = null;
|
|
18
18
|
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
@@ -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)
|
|
@@ -251,7 +251,7 @@ function requireReactJsxRuntime_development() {
|
|
|
251
251
|
function isValidElement(object) {
|
|
252
252
|
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
253
253
|
}
|
|
254
|
-
var React = require$$0, REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
254
|
+
var React = require$$0, REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
255
255
|
return null;
|
|
256
256
|
};
|
|
257
257
|
React = {
|
|
@@ -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;
|
|
@@ -471,7 +471,7 @@ function DefaultLabel(t0) {
|
|
|
471
471
|
const text3 = defaultLabelText?.[2];
|
|
472
472
|
let t1;
|
|
473
473
|
let t2;
|
|
474
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
474
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
475
475
|
t1 = /* @__PURE__ */ jsxRuntimeExports.jsx(akselIcons.CloudUpIcon, { title: "Cloud" });
|
|
476
476
|
t2 = {
|
|
477
477
|
display: "flex",
|
|
@@ -484,7 +484,7 @@ function DefaultLabel(t0) {
|
|
|
484
484
|
t2 = $[1];
|
|
485
485
|
}
|
|
486
486
|
let t3;
|
|
487
|
-
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
487
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
488
488
|
t3 = {
|
|
489
489
|
textDecoration: "underline"
|
|
490
490
|
};
|
|
@@ -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
|
] });
|
|
@@ -913,17 +910,25 @@ const FilePicker = Object.assign(FilePicker$1, {
|
|
|
913
910
|
Files: FilePickerFiles,
|
|
914
911
|
Errors: FilePickerErrors
|
|
915
912
|
});
|
|
913
|
+
const HeaderContext = require$$0.createContext({
|
|
914
|
+
links: [],
|
|
915
|
+
headerRef: {
|
|
916
|
+
current: null
|
|
917
|
+
}
|
|
918
|
+
});
|
|
916
919
|
function Header$1(t0) {
|
|
917
|
-
const $ = compilerRuntimeExports.c(
|
|
920
|
+
const $ = compilerRuntimeExports.c(23);
|
|
918
921
|
let children;
|
|
919
922
|
let className;
|
|
920
923
|
let ref;
|
|
921
924
|
let rest;
|
|
925
|
+
let t1;
|
|
922
926
|
if ($[0] !== t0) {
|
|
923
927
|
({
|
|
924
928
|
ref,
|
|
925
929
|
className,
|
|
926
930
|
children,
|
|
931
|
+
links: t1,
|
|
927
932
|
...rest
|
|
928
933
|
} = t0);
|
|
929
934
|
$[0] = t0;
|
|
@@ -931,155 +936,154 @@ function Header$1(t0) {
|
|
|
931
936
|
$[2] = className;
|
|
932
937
|
$[3] = ref;
|
|
933
938
|
$[4] = rest;
|
|
939
|
+
$[5] = t1;
|
|
934
940
|
} else {
|
|
935
941
|
children = $[1];
|
|
936
942
|
className = $[2];
|
|
937
943
|
ref = $[3];
|
|
938
944
|
rest = $[4];
|
|
945
|
+
t1 = $[5];
|
|
939
946
|
}
|
|
940
|
-
let
|
|
941
|
-
if ($[
|
|
942
|
-
|
|
943
|
-
$[5] = className;
|
|
947
|
+
let t2;
|
|
948
|
+
if ($[6] !== t1) {
|
|
949
|
+
t2 = t1 === void 0 ? [] : t1;
|
|
944
950
|
$[6] = t1;
|
|
951
|
+
$[7] = t2;
|
|
945
952
|
} else {
|
|
946
|
-
|
|
953
|
+
t2 = $[7];
|
|
947
954
|
}
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
955
|
+
const links = t2;
|
|
956
|
+
const internalRef = require$$0.useRef(null);
|
|
957
|
+
const headerRef = ref ?? internalRef;
|
|
958
|
+
let t3;
|
|
959
|
+
if ($[8] !== headerRef || $[9] !== links) {
|
|
960
|
+
t3 = {
|
|
961
|
+
links,
|
|
962
|
+
headerRef
|
|
963
|
+
};
|
|
964
|
+
$[8] = headerRef;
|
|
965
|
+
$[9] = links;
|
|
966
|
+
$[10] = t3;
|
|
956
967
|
} else {
|
|
957
|
-
|
|
968
|
+
t3 = $[10];
|
|
958
969
|
}
|
|
959
|
-
return t2;
|
|
960
|
-
}
|
|
961
|
-
function HeaderDefaultLogo(t0) {
|
|
962
|
-
const $ = compilerRuntimeExports.c(23);
|
|
963
|
-
const {
|
|
964
|
-
width: t1,
|
|
965
|
-
height: t2
|
|
966
|
-
} = t0;
|
|
967
|
-
const width = t1 === void 0 ? 48 : t1;
|
|
968
|
-
const height = t2 === void 0 ? 40 : t2;
|
|
969
|
-
let t10;
|
|
970
|
-
let t11;
|
|
971
|
-
let t12;
|
|
972
|
-
let t13;
|
|
973
|
-
let t14;
|
|
974
|
-
let t15;
|
|
975
|
-
let t16;
|
|
976
|
-
let t17;
|
|
977
|
-
let t18;
|
|
978
|
-
let t19;
|
|
979
|
-
let t20;
|
|
980
|
-
let t21;
|
|
981
|
-
let t22;
|
|
982
|
-
let t3;
|
|
983
970
|
let t4;
|
|
971
|
+
if ($[11] !== className) {
|
|
972
|
+
t4 = clsx("at-header", className);
|
|
973
|
+
$[11] = className;
|
|
974
|
+
$[12] = t4;
|
|
975
|
+
} else {
|
|
976
|
+
t4 = $[12];
|
|
977
|
+
}
|
|
984
978
|
let t5;
|
|
979
|
+
if ($[13] !== children) {
|
|
980
|
+
t5 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "at-header__container", children });
|
|
981
|
+
$[13] = children;
|
|
982
|
+
$[14] = t5;
|
|
983
|
+
} else {
|
|
984
|
+
t5 = $[14];
|
|
985
|
+
}
|
|
985
986
|
let t6;
|
|
987
|
+
if ($[15] !== headerRef || $[16] !== rest || $[17] !== t4 || $[18] !== t5) {
|
|
988
|
+
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx("header", { ref: headerRef, className: t4, ...rest, children: t5 });
|
|
989
|
+
$[15] = headerRef;
|
|
990
|
+
$[16] = rest;
|
|
991
|
+
$[17] = t4;
|
|
992
|
+
$[18] = t5;
|
|
993
|
+
$[19] = t6;
|
|
994
|
+
} else {
|
|
995
|
+
t6 = $[19];
|
|
996
|
+
}
|
|
986
997
|
let t7;
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
t5 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "34.2183", y: "6.36298", width: "2.08381", height: "0.108768", fill: "#085E55" });
|
|
993
|
-
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "7.67719", y: "13.5688", width: "2.82411", height: "0.108768", fill: "#085E55" });
|
|
994
|
-
t7 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "6.27887", y: "12.8889", width: "2.82411", height: "0.108768", fill: "#085E55" });
|
|
995
|
-
t8 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "37.3441", y: "15.7985", width: "2.82411", height: "0.108768", fill: "#085E55" });
|
|
996
|
-
t9 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "36.1102", y: "16.4512", width: "2.82411", height: "0.108768", fill: "#085E55" });
|
|
997
|
-
t10 = /* @__PURE__ */ jsxRuntimeExports.jsx("ellipse", { cx: "30.2138", cy: "10.6896", rx: "4.8805", ry: "4.84016", fill: "white" });
|
|
998
|
-
t11 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M27.5607 7.28931C27.6145 7.24779 27.692 7.25736 27.7339 7.31068L30.3616 10.6573L30.5837 13.631C30.5887 13.6983 30.5377 13.757 30.4697 13.762C30.4018 13.767 30.3426 13.7164 30.3376 13.649L30.121 10.7492L27.5392 7.46104C27.4973 7.40772 27.5069 7.33083 27.5607 7.28931Z", fill: "black" });
|
|
999
|
-
t12 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { y: "38.9753", width: "48", height: "0.29752", fill: "black" });
|
|
1000
|
-
t13 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M19.1388 13.5608C19.1388 12.6441 18.3894 11.9009 17.465 11.9009H15.8471C14.9227 11.9009 14.1733 12.6441 14.1733 13.5608V22.7458H19.1388V13.5608Z", fill: "#FFE9B4" });
|
|
1001
|
-
t14 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M19.1388 13.4778C19.1388 12.6069 18.4269 11.9009 17.5487 11.9009H15.8471C14.9227 11.9009 14.1733 12.6441 14.1733 13.5608V15.0547H17.5487C18.4269 15.0547 19.1388 14.3487 19.1388 13.4778Z", fill: "black" });
|
|
1002
|
-
t15 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M14.1733 13.9482H13.5038C12.5794 13.9482 11.8301 14.6914 11.8301 15.6082V22.7459H14.1733V13.9482Z", fill: "black" });
|
|
1003
|
-
t16 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M11.8301 17.1574H11.7185C10.7941 17.1574 10.0447 17.9006 10.0447 18.8174V23.0225H11.8301V17.1574Z", fill: "black" });
|
|
1004
|
-
t17 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M9.48675 38.8454L9.56881 37.6655L8.70715 24.1285C8.64853 23.2105 9.39296 22.4363 10.3308 22.4392L13.4228 22.4507H16.4384H18.247L21.9193 22.4421C22.948 22.4421 23.7657 23.2882 23.7071 24.2954L22.0248 38.8857L21.7904 38.8771L9.48675 38.8454Z", fill: "#11C1B0" });
|
|
1005
|
-
t18 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M21.7639 23.7544C22.7926 23.4493 23.3905 22.7212 23.6865 23.7371L26.6525 32.8337L36.758 36.4597C37.2298 36.6295 37.4584 37.159 37.2504 37.608C37.0774 37.9878 36.6466 38.1893 36.2363 38.0799L24.0734 34.9029L20.3219 25.3141C19.9556 24.2954 20.7088 24.0623 21.7609 23.7515L21.7639 23.7544Z", fill: "#11C1B0" });
|
|
1006
|
-
t19 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12.693 23.8752L15.1402 33.205L25.4597 37.0756C25.9433 37.2569 26.166 37.8037 25.9491 38.2613C25.7645 38.6498 25.3219 38.8483 24.9028 38.7332L12.4644 35.2943L8.91224 25.0033L12.693 23.8752Z", fill: "#11C1B0" });
|
|
1007
|
-
t20 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M22.9831 36.1431L25.4626 37.0727C25.9462 37.254 26.1689 37.8007 25.9521 38.2583C25.7674 38.6468 25.3249 38.8454 24.9058 38.7303L22.0013 37.9302L22.9831 36.1431Z", fill: "#FFE9B4" });
|
|
1008
|
-
t21 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M18.2147 37.8959H39.8588V38.8887H18.2147V37.8959Z", fill: "#085E55" });
|
|
1009
|
-
t22 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M26.1426 38.8138H39.8588L42.353 28.5516H28.6367L26.1426 38.8138Z", fill: "#085E55" });
|
|
1010
|
-
$[0] = t10;
|
|
1011
|
-
$[1] = t11;
|
|
1012
|
-
$[2] = t12;
|
|
1013
|
-
$[3] = t13;
|
|
1014
|
-
$[4] = t14;
|
|
1015
|
-
$[5] = t15;
|
|
1016
|
-
$[6] = t16;
|
|
1017
|
-
$[7] = t17;
|
|
1018
|
-
$[8] = t18;
|
|
1019
|
-
$[9] = t19;
|
|
1020
|
-
$[10] = t20;
|
|
1021
|
-
$[11] = t21;
|
|
1022
|
-
$[12] = t22;
|
|
1023
|
-
$[13] = t3;
|
|
1024
|
-
$[14] = t4;
|
|
1025
|
-
$[15] = t5;
|
|
1026
|
-
$[16] = t6;
|
|
1027
|
-
$[17] = t7;
|
|
1028
|
-
$[18] = t8;
|
|
1029
|
-
$[19] = t9;
|
|
998
|
+
if ($[20] !== t3 || $[21] !== t6) {
|
|
999
|
+
t7 = /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderContext, { value: t3, children: t6 });
|
|
1000
|
+
$[20] = t3;
|
|
1001
|
+
$[21] = t6;
|
|
1002
|
+
$[22] = t7;
|
|
1030
1003
|
} else {
|
|
1031
|
-
|
|
1032
|
-
t11 = $[1];
|
|
1033
|
-
t12 = $[2];
|
|
1034
|
-
t13 = $[3];
|
|
1035
|
-
t14 = $[4];
|
|
1036
|
-
t15 = $[5];
|
|
1037
|
-
t16 = $[6];
|
|
1038
|
-
t17 = $[7];
|
|
1039
|
-
t18 = $[8];
|
|
1040
|
-
t19 = $[9];
|
|
1041
|
-
t20 = $[10];
|
|
1042
|
-
t21 = $[11];
|
|
1043
|
-
t22 = $[12];
|
|
1044
|
-
t3 = $[13];
|
|
1045
|
-
t4 = $[14];
|
|
1046
|
-
t5 = $[15];
|
|
1047
|
-
t6 = $[16];
|
|
1048
|
-
t7 = $[17];
|
|
1049
|
-
t8 = $[18];
|
|
1050
|
-
t9 = $[19];
|
|
1004
|
+
t7 = $[22];
|
|
1051
1005
|
}
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
t17,
|
|
1070
|
-
t18,
|
|
1071
|
-
t19,
|
|
1072
|
-
t20,
|
|
1073
|
-
t21,
|
|
1074
|
-
t22
|
|
1075
|
-
] });
|
|
1076
|
-
$[20] = height;
|
|
1077
|
-
$[21] = width;
|
|
1078
|
-
$[22] = t23;
|
|
1006
|
+
return t7;
|
|
1007
|
+
}
|
|
1008
|
+
function HeaderIllustration(t0) {
|
|
1009
|
+
const $ = compilerRuntimeExports.c(10);
|
|
1010
|
+
let children;
|
|
1011
|
+
let className;
|
|
1012
|
+
let rest;
|
|
1013
|
+
if ($[0] !== t0) {
|
|
1014
|
+
({
|
|
1015
|
+
className,
|
|
1016
|
+
children,
|
|
1017
|
+
...rest
|
|
1018
|
+
} = t0);
|
|
1019
|
+
$[0] = t0;
|
|
1020
|
+
$[1] = children;
|
|
1021
|
+
$[2] = className;
|
|
1022
|
+
$[3] = rest;
|
|
1079
1023
|
} else {
|
|
1080
|
-
|
|
1024
|
+
children = $[1];
|
|
1025
|
+
className = $[2];
|
|
1026
|
+
rest = $[3];
|
|
1081
1027
|
}
|
|
1082
|
-
|
|
1028
|
+
let t1;
|
|
1029
|
+
if ($[4] !== className) {
|
|
1030
|
+
t1 = clsx("at-header__illustration", className);
|
|
1031
|
+
$[4] = className;
|
|
1032
|
+
$[5] = t1;
|
|
1033
|
+
} else {
|
|
1034
|
+
t1 = $[5];
|
|
1035
|
+
}
|
|
1036
|
+
let t2;
|
|
1037
|
+
if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
|
|
1038
|
+
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, ...rest, children });
|
|
1039
|
+
$[6] = children;
|
|
1040
|
+
$[7] = rest;
|
|
1041
|
+
$[8] = t1;
|
|
1042
|
+
$[9] = t2;
|
|
1043
|
+
} else {
|
|
1044
|
+
t2 = $[9];
|
|
1045
|
+
}
|
|
1046
|
+
return t2;
|
|
1047
|
+
}
|
|
1048
|
+
function HeaderLogo(t0) {
|
|
1049
|
+
const $ = compilerRuntimeExports.c(10);
|
|
1050
|
+
let children;
|
|
1051
|
+
let className;
|
|
1052
|
+
let rest;
|
|
1053
|
+
if ($[0] !== t0) {
|
|
1054
|
+
({
|
|
1055
|
+
className,
|
|
1056
|
+
children,
|
|
1057
|
+
...rest
|
|
1058
|
+
} = t0);
|
|
1059
|
+
$[0] = t0;
|
|
1060
|
+
$[1] = children;
|
|
1061
|
+
$[2] = className;
|
|
1062
|
+
$[3] = rest;
|
|
1063
|
+
} else {
|
|
1064
|
+
children = $[1];
|
|
1065
|
+
className = $[2];
|
|
1066
|
+
rest = $[3];
|
|
1067
|
+
}
|
|
1068
|
+
let t1;
|
|
1069
|
+
if ($[4] !== className) {
|
|
1070
|
+
t1 = clsx("at-header__logo", className);
|
|
1071
|
+
$[4] = className;
|
|
1072
|
+
$[5] = t1;
|
|
1073
|
+
} else {
|
|
1074
|
+
t1 = $[5];
|
|
1075
|
+
}
|
|
1076
|
+
let t2;
|
|
1077
|
+
if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
|
|
1078
|
+
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, ...rest, children });
|
|
1079
|
+
$[6] = children;
|
|
1080
|
+
$[7] = rest;
|
|
1081
|
+
$[8] = t1;
|
|
1082
|
+
$[9] = t2;
|
|
1083
|
+
} else {
|
|
1084
|
+
t2 = $[9];
|
|
1085
|
+
}
|
|
1086
|
+
return t2;
|
|
1083
1087
|
}
|
|
1084
1088
|
const useIsomorphicLayoutEffect = typeof window !== "undefined" ? require$$0.useLayoutEffect : require$$0.useEffect;
|
|
1085
1089
|
const IS_SERVER = typeof window === "undefined";
|
|
@@ -1177,344 +1181,338 @@ function useMediaQuery(query, t0) {
|
|
|
1177
1181
|
useIsomorphicLayoutEffect(t7, t8);
|
|
1178
1182
|
return matches;
|
|
1179
1183
|
}
|
|
1180
|
-
function
|
|
1181
|
-
const $ = compilerRuntimeExports.c(
|
|
1184
|
+
function HeaderMenu(t0) {
|
|
1185
|
+
const $ = compilerRuntimeExports.c(52);
|
|
1182
1186
|
let children;
|
|
1183
1187
|
let className;
|
|
1184
|
-
let controls;
|
|
1185
|
-
let links;
|
|
1186
1188
|
let rest;
|
|
1187
|
-
let
|
|
1189
|
+
let t1;
|
|
1190
|
+
let t2;
|
|
1191
|
+
let triggerContent;
|
|
1188
1192
|
if ($[0] !== t0) {
|
|
1189
1193
|
({
|
|
1190
1194
|
className,
|
|
1191
|
-
controls,
|
|
1192
|
-
links,
|
|
1193
|
-
userName,
|
|
1194
1195
|
children,
|
|
1196
|
+
triggerContent,
|
|
1197
|
+
mobileMenuText: t1,
|
|
1198
|
+
closeButtonText: t2,
|
|
1195
1199
|
...rest
|
|
1196
1200
|
} = t0);
|
|
1197
1201
|
$[0] = t0;
|
|
1198
1202
|
$[1] = children;
|
|
1199
1203
|
$[2] = className;
|
|
1200
|
-
$[3] =
|
|
1201
|
-
$[4] =
|
|
1202
|
-
$[5] =
|
|
1203
|
-
$[6] =
|
|
1204
|
+
$[3] = rest;
|
|
1205
|
+
$[4] = t1;
|
|
1206
|
+
$[5] = t2;
|
|
1207
|
+
$[6] = triggerContent;
|
|
1204
1208
|
} else {
|
|
1205
1209
|
children = $[1];
|
|
1206
1210
|
className = $[2];
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
+
rest = $[3];
|
|
1212
|
+
t1 = $[4];
|
|
1213
|
+
t2 = $[5];
|
|
1214
|
+
triggerContent = $[6];
|
|
1211
1215
|
}
|
|
1216
|
+
const mobileMenuText = t1 === void 0 ? "Meny" : t1;
|
|
1217
|
+
const closeButtonText = t2 === void 0 ? "Lukk" : t2;
|
|
1212
1218
|
const [open, setOpen] = require$$0.useState(false);
|
|
1213
|
-
const
|
|
1214
|
-
const
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1219
|
+
const [backdropTop, setBackdropTop] = require$$0.useState(0);
|
|
1220
|
+
const {
|
|
1221
|
+
links,
|
|
1222
|
+
headerRef
|
|
1223
|
+
} = require$$0.use(HeaderContext);
|
|
1224
|
+
const isMobile = useMediaQuery("(max-width: 48rem)");
|
|
1225
|
+
let t3;
|
|
1226
|
+
let t4;
|
|
1227
|
+
if ($[7] !== headerRef || $[8] !== open) {
|
|
1228
|
+
t3 = () => {
|
|
1229
|
+
if (!open || !headerRef.current) {
|
|
1230
|
+
return;
|
|
1231
|
+
}
|
|
1232
|
+
const updateBackdropPosition = () => {
|
|
1233
|
+
const rect = headerRef.current?.getBoundingClientRect();
|
|
1234
|
+
if (rect) {
|
|
1235
|
+
setBackdropTop(rect.bottom);
|
|
1236
|
+
}
|
|
1237
|
+
};
|
|
1238
|
+
updateBackdropPosition();
|
|
1239
|
+
window.addEventListener("scroll", updateBackdropPosition, true);
|
|
1240
|
+
window.addEventListener("resize", updateBackdropPosition);
|
|
1241
|
+
return () => {
|
|
1242
|
+
window.removeEventListener("scroll", updateBackdropPosition, true);
|
|
1243
|
+
window.removeEventListener("resize", updateBackdropPosition);
|
|
1244
|
+
};
|
|
1245
|
+
};
|
|
1246
|
+
t4 = [open, headerRef];
|
|
1247
|
+
$[7] = headerRef;
|
|
1248
|
+
$[8] = open;
|
|
1249
|
+
$[9] = t3;
|
|
1250
|
+
$[10] = t4;
|
|
1220
1251
|
} else {
|
|
1221
|
-
|
|
1252
|
+
t3 = $[9];
|
|
1253
|
+
t4 = $[10];
|
|
1222
1254
|
}
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
$[
|
|
1255
|
+
require$$0.useLayoutEffect(t3, t4);
|
|
1256
|
+
let t5;
|
|
1257
|
+
if ($[11] !== className) {
|
|
1258
|
+
t5 = clsx("at-header__right", className);
|
|
1259
|
+
$[11] = className;
|
|
1260
|
+
$[12] = t5;
|
|
1228
1261
|
} else {
|
|
1229
|
-
|
|
1262
|
+
t5 = $[12];
|
|
1230
1263
|
}
|
|
1231
|
-
const
|
|
1232
|
-
let
|
|
1233
|
-
if ($[
|
|
1234
|
-
|
|
1264
|
+
const t6 = isMobile ? "primary" : "tertiary";
|
|
1265
|
+
let t7;
|
|
1266
|
+
if ($[13] !== isMobile || $[14] !== mobileMenuText || $[15] !== open || $[16] !== triggerContent) {
|
|
1267
|
+
t7 = isMobile ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
1235
1268
|
open ? /* @__PURE__ */ jsxRuntimeExports.jsx(akselIcons.XMarkIcon, { "aria-hidden": true }) : /* @__PURE__ */ jsxRuntimeExports.jsx(akselIcons.MenuHamburgerIcon, { "aria-hidden": true }),
|
|
1236
|
-
|
|
1269
|
+
mobileMenuText
|
|
1237
1270
|
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
1238
|
-
|
|
1271
|
+
triggerContent,
|
|
1239
1272
|
open ? /* @__PURE__ */ jsxRuntimeExports.jsx(akselIcons.ChevronUpIcon, { "aria-hidden": true }) : /* @__PURE__ */ jsxRuntimeExports.jsx(akselIcons.ChevronDownIcon, { "aria-hidden": true })
|
|
1240
1273
|
] });
|
|
1241
|
-
$[
|
|
1242
|
-
$[
|
|
1243
|
-
$[
|
|
1244
|
-
$[
|
|
1274
|
+
$[13] = isMobile;
|
|
1275
|
+
$[14] = mobileMenuText;
|
|
1276
|
+
$[15] = open;
|
|
1277
|
+
$[16] = triggerContent;
|
|
1278
|
+
$[17] = t7;
|
|
1245
1279
|
} else {
|
|
1246
|
-
|
|
1280
|
+
t7 = $[17];
|
|
1247
1281
|
}
|
|
1248
|
-
let
|
|
1249
|
-
if ($[
|
|
1250
|
-
|
|
1251
|
-
$[
|
|
1252
|
-
$[
|
|
1253
|
-
$[
|
|
1254
|
-
$[18] = t5;
|
|
1282
|
+
let t8;
|
|
1283
|
+
if ($[18] !== t6 || $[19] !== t7) {
|
|
1284
|
+
t8 = /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Dropdown.Trigger, { "data-size": "sm", variant: t6, children: t7 });
|
|
1285
|
+
$[18] = t6;
|
|
1286
|
+
$[19] = t7;
|
|
1287
|
+
$[20] = t8;
|
|
1255
1288
|
} else {
|
|
1256
|
-
|
|
1289
|
+
t8 = $[20];
|
|
1257
1290
|
}
|
|
1258
|
-
let
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1291
|
+
let t10;
|
|
1292
|
+
let t9;
|
|
1293
|
+
if ($[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1294
|
+
t9 = () => setOpen(true);
|
|
1295
|
+
t10 = () => setOpen(false);
|
|
1296
|
+
$[21] = t10;
|
|
1297
|
+
$[22] = t9;
|
|
1262
1298
|
} else {
|
|
1263
|
-
|
|
1299
|
+
t10 = $[21];
|
|
1300
|
+
t9 = $[22];
|
|
1264
1301
|
}
|
|
1265
|
-
let
|
|
1266
|
-
if ($[
|
|
1267
|
-
|
|
1268
|
-
$[
|
|
1269
|
-
$[
|
|
1270
|
-
$[22] = t7;
|
|
1302
|
+
let t11;
|
|
1303
|
+
if ($[23] !== links) {
|
|
1304
|
+
t11 = links?.map(_temp$1);
|
|
1305
|
+
$[23] = links;
|
|
1306
|
+
$[24] = t11;
|
|
1271
1307
|
} else {
|
|
1272
|
-
|
|
1308
|
+
t11 = $[24];
|
|
1273
1309
|
}
|
|
1274
|
-
let
|
|
1275
|
-
if ($[
|
|
1276
|
-
|
|
1277
|
-
$[
|
|
1310
|
+
let t12;
|
|
1311
|
+
if ($[25] !== links) {
|
|
1312
|
+
t12 = links && links.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("at-header__dropdown-item-mobile at-header__dropdown-controls"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Divider, {}) }) });
|
|
1313
|
+
$[25] = links;
|
|
1314
|
+
$[26] = t12;
|
|
1278
1315
|
} else {
|
|
1279
|
-
|
|
1316
|
+
t12 = $[26];
|
|
1280
1317
|
}
|
|
1281
|
-
let
|
|
1282
|
-
if ($[
|
|
1283
|
-
|
|
1284
|
-
$[
|
|
1285
|
-
$[
|
|
1286
|
-
$[26] = t9;
|
|
1318
|
+
let t13;
|
|
1319
|
+
if ($[27] !== children) {
|
|
1320
|
+
t13 = children && /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "at-header__dropdown-controls", children }) });
|
|
1321
|
+
$[27] = children;
|
|
1322
|
+
$[28] = t13;
|
|
1287
1323
|
} else {
|
|
1288
|
-
|
|
1324
|
+
t13 = $[28];
|
|
1289
1325
|
}
|
|
1290
|
-
let
|
|
1291
|
-
if ($[
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1326
|
+
let t14;
|
|
1327
|
+
if ($[29] !== t11 || $[30] !== t12 || $[31] !== t13) {
|
|
1328
|
+
t14 = /* @__PURE__ */ jsxRuntimeExports.jsxs(designsystemetReact.Dropdown.List, { children: [
|
|
1329
|
+
t11,
|
|
1330
|
+
t12,
|
|
1331
|
+
t13
|
|
1296
1332
|
] });
|
|
1297
|
-
$[
|
|
1298
|
-
$[
|
|
1299
|
-
$[
|
|
1333
|
+
$[29] = t11;
|
|
1334
|
+
$[30] = t12;
|
|
1335
|
+
$[31] = t13;
|
|
1336
|
+
$[32] = t14;
|
|
1300
1337
|
} else {
|
|
1301
|
-
|
|
1338
|
+
t14 = $[32];
|
|
1302
1339
|
}
|
|
1303
|
-
let
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1340
|
+
let t15;
|
|
1341
|
+
let t16;
|
|
1342
|
+
if ($[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1343
|
+
t15 = () => setOpen(false);
|
|
1344
|
+
t16 = /* @__PURE__ */ jsxRuntimeExports.jsx(akselIcons.XMarkIcon, { "aria-hidden": true });
|
|
1345
|
+
$[33] = t15;
|
|
1346
|
+
$[34] = t16;
|
|
1347
|
+
} else {
|
|
1348
|
+
t15 = $[33];
|
|
1349
|
+
t16 = $[34];
|
|
1350
|
+
}
|
|
1351
|
+
let t17;
|
|
1352
|
+
if ($[35] !== closeButtonText) {
|
|
1353
|
+
t17 = /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "at-header__dropdown-close-mobile", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(designsystemetReact.Button, { type: "button", variant: "secondary", onClick: t15, children: [
|
|
1354
|
+
t16,
|
|
1355
|
+
closeButtonText
|
|
1308
1356
|
] }) }) });
|
|
1309
|
-
$[
|
|
1357
|
+
$[35] = closeButtonText;
|
|
1358
|
+
$[36] = t17;
|
|
1310
1359
|
} else {
|
|
1311
|
-
|
|
1360
|
+
t17 = $[36];
|
|
1312
1361
|
}
|
|
1313
|
-
let
|
|
1314
|
-
if ($[
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1362
|
+
let t18;
|
|
1363
|
+
if ($[37] !== open || $[38] !== t14 || $[39] !== t17) {
|
|
1364
|
+
t18 = /* @__PURE__ */ jsxRuntimeExports.jsxs(designsystemetReact.Dropdown, { open, onOpen: t9, onClose: t10, placement: "bottom", className: "at-header__dropdown-content", children: [
|
|
1365
|
+
t14,
|
|
1366
|
+
t17
|
|
1318
1367
|
] });
|
|
1319
|
-
$[
|
|
1320
|
-
$[
|
|
1321
|
-
$[
|
|
1368
|
+
$[37] = open;
|
|
1369
|
+
$[38] = t14;
|
|
1370
|
+
$[39] = t17;
|
|
1371
|
+
$[40] = t18;
|
|
1322
1372
|
} else {
|
|
1323
|
-
|
|
1373
|
+
t18 = $[40];
|
|
1324
1374
|
}
|
|
1325
|
-
let
|
|
1326
|
-
if ($[
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1375
|
+
let t19;
|
|
1376
|
+
if ($[41] !== t18 || $[42] !== t8) {
|
|
1377
|
+
t19 = /* @__PURE__ */ jsxRuntimeExports.jsxs(designsystemetReact.Dropdown.TriggerContext, { children: [
|
|
1378
|
+
t8,
|
|
1379
|
+
t18
|
|
1330
1380
|
] });
|
|
1331
|
-
$[
|
|
1332
|
-
$[
|
|
1333
|
-
$[
|
|
1381
|
+
$[41] = t18;
|
|
1382
|
+
$[42] = t8;
|
|
1383
|
+
$[43] = t19;
|
|
1334
1384
|
} else {
|
|
1335
|
-
|
|
1385
|
+
t19 = $[43];
|
|
1336
1386
|
}
|
|
1337
|
-
let
|
|
1338
|
-
if ($[
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1387
|
+
let t20;
|
|
1388
|
+
if ($[44] !== backdropTop || $[45] !== open) {
|
|
1389
|
+
t20 = open ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "aria-hidden": true, className: "at-header__dropdown-backdrop", style: {
|
|
1390
|
+
top: backdropTop
|
|
1391
|
+
} }) : null;
|
|
1392
|
+
$[44] = backdropTop;
|
|
1393
|
+
$[45] = open;
|
|
1394
|
+
$[46] = t20;
|
|
1342
1395
|
} else {
|
|
1343
|
-
|
|
1396
|
+
t20 = $[46];
|
|
1344
1397
|
}
|
|
1345
|
-
let
|
|
1346
|
-
if ($[
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1398
|
+
let t21;
|
|
1399
|
+
if ($[47] !== rest || $[48] !== t19 || $[49] !== t20 || $[50] !== t5) {
|
|
1400
|
+
t21 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t5, ...rest, children: [
|
|
1401
|
+
t19,
|
|
1402
|
+
t20
|
|
1350
1403
|
] });
|
|
1351
|
-
$[
|
|
1352
|
-
$[
|
|
1353
|
-
$[
|
|
1354
|
-
$[
|
|
1355
|
-
$[
|
|
1404
|
+
$[47] = rest;
|
|
1405
|
+
$[48] = t19;
|
|
1406
|
+
$[49] = t20;
|
|
1407
|
+
$[50] = t5;
|
|
1408
|
+
$[51] = t21;
|
|
1356
1409
|
} else {
|
|
1357
|
-
|
|
1410
|
+
t21 = $[51];
|
|
1358
1411
|
}
|
|
1359
|
-
return
|
|
1360
|
-
}
|
|
1361
|
-
function _temp2$1(link) {
|
|
1362
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("at-header__title-dropdown-controls", "at-header__title-dropdown-item-mobile"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Link, { href: link.href, className: clsx("at-header__title-link"), children: link.label }) }) }, "nav-" + link.href);
|
|
1412
|
+
return t21;
|
|
1363
1413
|
}
|
|
1364
|
-
function _temp$1(
|
|
1365
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("at-
|
|
1414
|
+
function _temp$1(link, index) {
|
|
1415
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("at-header__dropdown-controls", "at-header__dropdown-item-mobile"), children: require$$0.isValidElement(link) ? /* @__PURE__ */ jsxRuntimeExports.jsx(reactSlot.Slot, { className: clsx("at-header__link", "ds-link"), children: link }) : link }) }, "nav-" + index);
|
|
1366
1416
|
}
|
|
1367
|
-
function
|
|
1368
|
-
const $ = compilerRuntimeExports.c(
|
|
1369
|
-
let children;
|
|
1417
|
+
function HeaderNavbar(t0) {
|
|
1418
|
+
const $ = compilerRuntimeExports.c(11);
|
|
1370
1419
|
let className;
|
|
1371
|
-
let links;
|
|
1372
1420
|
let rest;
|
|
1373
1421
|
if ($[0] !== t0) {
|
|
1374
1422
|
({
|
|
1375
1423
|
className,
|
|
1376
|
-
links,
|
|
1377
|
-
children,
|
|
1378
1424
|
...rest
|
|
1379
1425
|
} = t0);
|
|
1380
1426
|
$[0] = t0;
|
|
1381
|
-
$[1] =
|
|
1382
|
-
$[2] =
|
|
1383
|
-
$[3] = links;
|
|
1384
|
-
$[4] = rest;
|
|
1427
|
+
$[1] = className;
|
|
1428
|
+
$[2] = rest;
|
|
1385
1429
|
} else {
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
links = $[3];
|
|
1389
|
-
rest = $[4];
|
|
1430
|
+
className = $[1];
|
|
1431
|
+
rest = $[2];
|
|
1390
1432
|
}
|
|
1433
|
+
const {
|
|
1434
|
+
links
|
|
1435
|
+
} = require$$0.use(HeaderContext);
|
|
1391
1436
|
let t1;
|
|
1392
|
-
if ($[
|
|
1393
|
-
t1 = clsx(className);
|
|
1394
|
-
$[
|
|
1395
|
-
$[
|
|
1437
|
+
if ($[3] !== className) {
|
|
1438
|
+
t1 = clsx("at-header__center", className);
|
|
1439
|
+
$[3] = className;
|
|
1440
|
+
$[4] = t1;
|
|
1396
1441
|
} else {
|
|
1397
|
-
t1 = $[
|
|
1442
|
+
t1 = $[4];
|
|
1398
1443
|
}
|
|
1399
1444
|
let t2;
|
|
1400
|
-
if ($[
|
|
1401
|
-
t2 =
|
|
1402
|
-
$[
|
|
1403
|
-
$[
|
|
1404
|
-
$[9] = t2;
|
|
1445
|
+
if ($[5] !== links) {
|
|
1446
|
+
t2 = links?.map(_temp);
|
|
1447
|
+
$[5] = links;
|
|
1448
|
+
$[6] = t2;
|
|
1405
1449
|
} else {
|
|
1406
|
-
t2 = $[
|
|
1450
|
+
t2 = $[6];
|
|
1407
1451
|
}
|
|
1408
1452
|
let t3;
|
|
1409
|
-
if ($[
|
|
1453
|
+
if ($[7] !== rest || $[8] !== t1 || $[9] !== t2) {
|
|
1410
1454
|
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("nav", { className: t1, ...rest, children: t2 });
|
|
1411
|
-
$[
|
|
1412
|
-
$[
|
|
1413
|
-
$[
|
|
1414
|
-
$[
|
|
1455
|
+
$[7] = rest;
|
|
1456
|
+
$[8] = t1;
|
|
1457
|
+
$[9] = t2;
|
|
1458
|
+
$[10] = t3;
|
|
1415
1459
|
} else {
|
|
1416
|
-
t3 = $[
|
|
1460
|
+
t3 = $[10];
|
|
1417
1461
|
}
|
|
1418
1462
|
return t3;
|
|
1419
1463
|
}
|
|
1420
|
-
function
|
|
1421
|
-
|
|
1422
|
-
}
|
|
1423
|
-
function _temp(child) {
|
|
1424
|
-
if (require$$0.isValidElement(child)) {
|
|
1425
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(reactSlot.Slot, { className: clsx("at-header__title-link", "ds-link"), children: child });
|
|
1464
|
+
function _temp(link, idx) {
|
|
1465
|
+
if (require$$0.isValidElement(link)) {
|
|
1466
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(reactSlot.Slot, { className: clsx("at-header__link", "ds-link"), children: link }, link.key ?? idx);
|
|
1426
1467
|
}
|
|
1427
|
-
return
|
|
1468
|
+
return link;
|
|
1428
1469
|
}
|
|
1429
|
-
function
|
|
1430
|
-
const $ = compilerRuntimeExports.c(
|
|
1431
|
-
let
|
|
1470
|
+
function HeaderTitle(t0) {
|
|
1471
|
+
const $ = compilerRuntimeExports.c(10);
|
|
1472
|
+
let children;
|
|
1432
1473
|
let className;
|
|
1433
|
-
let logo;
|
|
1434
1474
|
let rest;
|
|
1435
1475
|
if ($[0] !== t0) {
|
|
1436
1476
|
({
|
|
1437
1477
|
className,
|
|
1438
|
-
|
|
1439
|
-
appName,
|
|
1478
|
+
children,
|
|
1440
1479
|
...rest
|
|
1441
1480
|
} = t0);
|
|
1442
1481
|
$[0] = t0;
|
|
1443
|
-
$[1] =
|
|
1482
|
+
$[1] = children;
|
|
1444
1483
|
$[2] = className;
|
|
1445
|
-
$[3] =
|
|
1446
|
-
$[4] = rest;
|
|
1484
|
+
$[3] = rest;
|
|
1447
1485
|
} else {
|
|
1448
|
-
|
|
1486
|
+
children = $[1];
|
|
1449
1487
|
className = $[2];
|
|
1450
|
-
|
|
1451
|
-
rest = $[4];
|
|
1488
|
+
rest = $[3];
|
|
1452
1489
|
}
|
|
1453
1490
|
let t1;
|
|
1454
|
-
if ($[
|
|
1455
|
-
t1 = clsx(className);
|
|
1456
|
-
$[
|
|
1457
|
-
$[
|
|
1491
|
+
if ($[4] !== className) {
|
|
1492
|
+
t1 = clsx("at-header__left", className);
|
|
1493
|
+
$[4] = className;
|
|
1494
|
+
$[5] = t1;
|
|
1458
1495
|
} else {
|
|
1459
|
-
t1 = $[
|
|
1496
|
+
t1 = $[5];
|
|
1460
1497
|
}
|
|
1461
1498
|
let t2;
|
|
1462
|
-
if ($[7]
|
|
1463
|
-
t2 =
|
|
1464
|
-
$[
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
let t3;
|
|
1469
|
-
if ($[8] !== logo) {
|
|
1470
|
-
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t2, children: logo });
|
|
1471
|
-
$[8] = logo;
|
|
1472
|
-
$[9] = t3;
|
|
1473
|
-
} else {
|
|
1474
|
-
t3 = $[9];
|
|
1475
|
-
}
|
|
1476
|
-
let t4;
|
|
1477
|
-
if ($[10] !== appName) {
|
|
1478
|
-
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Heading, { children: appName });
|
|
1479
|
-
$[10] = appName;
|
|
1480
|
-
$[11] = t4;
|
|
1481
|
-
} else {
|
|
1482
|
-
t4 = $[11];
|
|
1483
|
-
}
|
|
1484
|
-
let t5;
|
|
1485
|
-
if ($[12] !== rest || $[13] !== t1 || $[14] !== t3 || $[15] !== t4) {
|
|
1486
|
-
t5 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t1, ...rest, children: [
|
|
1487
|
-
t3,
|
|
1488
|
-
t4
|
|
1489
|
-
] });
|
|
1490
|
-
$[12] = rest;
|
|
1491
|
-
$[13] = t1;
|
|
1492
|
-
$[14] = t3;
|
|
1493
|
-
$[15] = t4;
|
|
1494
|
-
$[16] = t5;
|
|
1499
|
+
if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
|
|
1500
|
+
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, ...rest, children });
|
|
1501
|
+
$[6] = children;
|
|
1502
|
+
$[7] = rest;
|
|
1503
|
+
$[8] = t1;
|
|
1504
|
+
$[9] = t2;
|
|
1495
1505
|
} else {
|
|
1496
|
-
|
|
1506
|
+
t2 = $[9];
|
|
1497
1507
|
}
|
|
1498
|
-
return
|
|
1499
|
-
}
|
|
1500
|
-
function HeaderTitle({
|
|
1501
|
-
className,
|
|
1502
|
-
logo = /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderDefaultLogo, {}),
|
|
1503
|
-
appName,
|
|
1504
|
-
userName,
|
|
1505
|
-
links = [],
|
|
1506
|
-
controls = [],
|
|
1507
|
-
children,
|
|
1508
|
-
...rest
|
|
1509
|
-
}) {
|
|
1510
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("at-header__title-background", className), ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("at-header__title"), children: [
|
|
1511
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(HeaderTitleLogo, { className: clsx("at-header__title-left"), logo, appName }),
|
|
1512
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(HeaderTitleLinks, { className: clsx("at-header__title-center"), links, children }),
|
|
1513
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(HeaderTitleDropdown, { className: clsx("at-header__title-right"), links, userName, controls, children })
|
|
1514
|
-
] }) });
|
|
1508
|
+
return t2;
|
|
1515
1509
|
}
|
|
1516
1510
|
const Header = Object.assign(Header$1, {
|
|
1517
|
-
Title: HeaderTitle
|
|
1511
|
+
Title: HeaderTitle,
|
|
1512
|
+
Illustration: HeaderIllustration,
|
|
1513
|
+
Logo: HeaderLogo,
|
|
1514
|
+
Navbar: HeaderNavbar,
|
|
1515
|
+
Menu: HeaderMenu
|
|
1518
1516
|
});
|
|
1519
1517
|
const LogoBlack = (t0) => {
|
|
1520
1518
|
const $ = compilerRuntimeExports.c(20);
|
|
@@ -1540,7 +1538,7 @@ const LogoBlack = (t0) => {
|
|
|
1540
1538
|
let t7;
|
|
1541
1539
|
let t8;
|
|
1542
1540
|
let t9;
|
|
1543
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1541
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1544
1542
|
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M36.3473 34.143L41.2281 22.7844H42.78L47.6608 34.143H45.3666L44.287 31.6238H39.7211L38.6415 34.143H36.3473ZM40.5308 29.667H43.4323L41.9928 26.3157L40.5308 29.667Z", fill: "black" });
|
|
1545
1543
|
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M53.3064 28.1377C53.1489 28.0927 52.8565 28.0477 52.5416 28.0477C51.6195 28.0477 50.8772 28.7225 50.6298 29.1948V34.1431H48.5156V26.2708H50.5399V27.058C51.0122 26.4733 51.8669 26.0909 52.8341 26.0909C53.1489 26.0909 53.3289 26.1134 53.5538 26.1584L53.3064 28.1377Z", fill: "black" });
|
|
1546
1544
|
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M54.8583 34.143V22.6046H56.9726V26.8331C57.5799 26.3382 58.3446 26.1133 59.1993 26.1133C61.3361 26.1133 63.068 27.8902 63.068 30.2294C63.068 31.309 62.6856 32.2762 62.0558 32.9959C61.3586 33.8056 60.2564 34.323 59.0869 34.323C58.2996 34.323 57.5349 34.0755 56.9051 33.5357V34.1655H54.8583V34.143ZM56.9501 31.3765C57.355 31.9613 58.0522 32.3436 58.8394 32.3436C60.0315 32.3436 60.9087 31.444 60.9087 30.2069C60.9087 29.0598 60.1215 28.0476 58.8844 28.0476C58.0747 28.0476 57.3774 28.43 56.9276 29.0148V31.3765H56.9501Z", fill: "black" });
|
|
@@ -1650,7 +1648,7 @@ const LogoWhite = (t0) => {
|
|
|
1650
1648
|
let t7;
|
|
1651
1649
|
let t8;
|
|
1652
1650
|
let t9;
|
|
1653
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1651
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1654
1652
|
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M36.3473 34.143L41.2281 22.7844H42.78L47.6608 34.143H45.3666L44.287 31.6238H39.7211L38.6415 34.143H36.3473ZM40.5308 29.667H43.4323L41.9928 26.3157L40.5308 29.667Z", fill: "white" });
|
|
1655
1653
|
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M53.3064 28.1377C53.1489 28.0927 52.8565 28.0477 52.5416 28.0477C51.6195 28.0477 50.8772 28.7225 50.6298 29.1948V34.1431H48.5156V26.2708H50.5399V27.058C51.0122 26.4733 51.8669 26.0909 52.8341 26.0909C53.1489 26.0909 53.3289 26.1134 53.5538 26.1584L53.3064 28.1377Z", fill: "white" });
|
|
1656
1654
|
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M54.8583 34.143V22.6046H56.9726V26.8331C57.5799 26.3382 58.3446 26.1133 59.1993 26.1133C61.3361 26.1133 63.068 27.8902 63.068 30.2294C63.068 31.309 62.6856 32.2762 62.0558 32.9959C61.3586 33.8056 60.2564 34.323 59.0869 34.323C58.2996 34.323 57.5349 34.0755 56.9051 33.5357V34.1655H54.8583V34.143ZM56.9501 31.3765C57.355 31.9613 58.0522 32.3436 58.8394 32.3436C60.0315 32.3436 60.9087 31.444 60.9087 30.2069C60.9087 29.0598 60.1215 28.0476 58.8844 28.0476C58.0747 28.0476 57.3774 28.43 56.9276 29.0148V31.3765H56.9501Z", fill: "white" });
|
|
@@ -1810,7 +1808,7 @@ const LogoGreen = (t0) => {
|
|
|
1810
1808
|
let t7;
|
|
1811
1809
|
let t8;
|
|
1812
1810
|
let t9;
|
|
1813
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1811
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1814
1812
|
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M17.0715 32.4211C25.5309 32.4211 32.3887 25.5565 32.3887 17.0886C32.3887 8.62069 25.5309 1.7561 17.0715 1.7561C8.6121 1.7561 1.75438 8.62069 1.75438 17.0886C1.75438 25.5565 8.6121 32.4211 17.0715 32.4211Z", fill: "white" });
|
|
1815
1813
|
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M36.3473 34.1773L41.2281 22.8074H42.78L47.6608 34.1773H45.3666L44.287 31.6556H39.7211L38.6415 34.1773H36.3473ZM40.5308 29.6969H43.4323L41.9928 26.3422L40.5308 29.6969Z", fill: "black" });
|
|
1816
1814
|
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M53.3064 28.1659C53.1489 28.1209 52.8565 28.0758 52.5416 28.0758C51.6195 28.0758 50.8772 28.7513 50.6298 29.2241V34.1773H48.5155V26.2972H50.5398V27.0852C51.0122 26.4998 51.8669 26.1171 52.834 26.1171C53.1489 26.1171 53.3289 26.1396 53.5538 26.1846L53.3064 28.1659Z", fill: "black" });
|
|
@@ -2040,6 +2038,10 @@ Object.defineProperty(exports, "DropdownTriggerContext", {
|
|
|
2040
2038
|
enumerable: true,
|
|
2041
2039
|
get: () => designsystemetReact.DropdownTriggerContext
|
|
2042
2040
|
});
|
|
2041
|
+
Object.defineProperty(exports, "EXPERIMENTAL_AvatarStack", {
|
|
2042
|
+
enumerable: true,
|
|
2043
|
+
get: () => designsystemetReact.EXPERIMENTAL_AvatarStack
|
|
2044
|
+
});
|
|
2043
2045
|
Object.defineProperty(exports, "EXPERIMENTAL_Suggestion", {
|
|
2044
2046
|
enumerable: true,
|
|
2045
2047
|
get: () => designsystemetReact.EXPERIMENTAL_Suggestion
|
|
@@ -2346,7 +2348,11 @@ exports.FilePickerDropzone = FilePickerDropzone;
|
|
|
2346
2348
|
exports.FilePickerErrors = FilePickerErrors;
|
|
2347
2349
|
exports.FilePickerFiles = FilePickerFiles;
|
|
2348
2350
|
exports.Header = Header;
|
|
2349
|
-
exports.
|
|
2351
|
+
exports.HeaderContext = HeaderContext;
|
|
2352
|
+
exports.HeaderIllustration = HeaderIllustration;
|
|
2353
|
+
exports.HeaderLogo = HeaderLogo;
|
|
2354
|
+
exports.HeaderMenu = HeaderMenu;
|
|
2355
|
+
exports.HeaderNavbar = HeaderNavbar;
|
|
2350
2356
|
exports.HeaderTitle = HeaderTitle;
|
|
2351
2357
|
exports.LightDarkLogo = LightDarkLogo;
|
|
2352
2358
|
exports.LogoBlack = LogoBlack;
|