@arbeidstilsynet/design-react 0.5.0 → 0.7.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 +510 -376
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +511 -380
- 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/headerMenuRow.d.ts +17 -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 +89 -20
- package/dist/src/components/header/stories-helpers/headerStoriesIllustration.d.ts +4 -0
- package/dist/src/components/header/stories-helpers/headerStoriesTitle.d.ts +4 -0
- package/dist/src/digdir.d.ts +1 -1
- package/package.json +19 -19
- 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
|
@@ -6,13 +6,14 @@ const akselIcons = require("@navikt/aksel-icons");
|
|
|
6
6
|
const reactDropzone = require("react-dropzone");
|
|
7
7
|
const designsystemetReact = require("@digdir/designsystemet-react");
|
|
8
8
|
const reactSlot = require("@radix-ui/react-slot");
|
|
9
|
+
const clsx$1 = require("clsx");
|
|
9
10
|
var jsxRuntime = { exports: {} };
|
|
10
11
|
var reactJsxRuntime_production = {};
|
|
11
12
|
var hasRequiredReactJsxRuntime_production;
|
|
12
13
|
function requireReactJsxRuntime_production() {
|
|
13
14
|
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
14
15
|
hasRequiredReactJsxRuntime_production = 1;
|
|
15
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
16
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
16
17
|
function jsxProd(type, config, maybeKey) {
|
|
17
18
|
var key = null;
|
|
18
19
|
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
@@ -251,7 +252,7 @@ function requireReactJsxRuntime_development() {
|
|
|
251
252
|
function isValidElement(object) {
|
|
252
253
|
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
253
254
|
}
|
|
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() {
|
|
255
|
+
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
256
|
return null;
|
|
256
257
|
};
|
|
257
258
|
React = {
|
|
@@ -471,7 +472,7 @@ function DefaultLabel(t0) {
|
|
|
471
472
|
const text3 = defaultLabelText?.[2];
|
|
472
473
|
let t1;
|
|
473
474
|
let t2;
|
|
474
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
475
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
475
476
|
t1 = /* @__PURE__ */ jsxRuntimeExports.jsx(akselIcons.CloudUpIcon, { title: "Cloud" });
|
|
476
477
|
t2 = {
|
|
477
478
|
display: "flex",
|
|
@@ -484,7 +485,7 @@ function DefaultLabel(t0) {
|
|
|
484
485
|
t2 = $[1];
|
|
485
486
|
}
|
|
486
487
|
let t3;
|
|
487
|
-
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
488
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
488
489
|
t3 = {
|
|
489
490
|
textDecoration: "underline"
|
|
490
491
|
};
|
|
@@ -910,17 +911,25 @@ const FilePicker = Object.assign(FilePicker$1, {
|
|
|
910
911
|
Files: FilePickerFiles,
|
|
911
912
|
Errors: FilePickerErrors
|
|
912
913
|
});
|
|
914
|
+
const HeaderContext = require$$0.createContext({
|
|
915
|
+
links: [],
|
|
916
|
+
headerRef: {
|
|
917
|
+
current: null
|
|
918
|
+
}
|
|
919
|
+
});
|
|
913
920
|
function Header$1(t0) {
|
|
914
|
-
const $ = compilerRuntimeExports.c(
|
|
921
|
+
const $ = compilerRuntimeExports.c(23);
|
|
915
922
|
let children;
|
|
916
923
|
let className;
|
|
917
924
|
let ref;
|
|
918
925
|
let rest;
|
|
926
|
+
let t1;
|
|
919
927
|
if ($[0] !== t0) {
|
|
920
928
|
({
|
|
921
929
|
ref,
|
|
922
930
|
className,
|
|
923
931
|
children,
|
|
932
|
+
links: t1,
|
|
924
933
|
...rest
|
|
925
934
|
} = t0);
|
|
926
935
|
$[0] = t0;
|
|
@@ -928,155 +937,154 @@ function Header$1(t0) {
|
|
|
928
937
|
$[2] = className;
|
|
929
938
|
$[3] = ref;
|
|
930
939
|
$[4] = rest;
|
|
940
|
+
$[5] = t1;
|
|
931
941
|
} else {
|
|
932
942
|
children = $[1];
|
|
933
943
|
className = $[2];
|
|
934
944
|
ref = $[3];
|
|
935
945
|
rest = $[4];
|
|
946
|
+
t1 = $[5];
|
|
936
947
|
}
|
|
937
|
-
let
|
|
938
|
-
if ($[
|
|
939
|
-
|
|
940
|
-
$[5] = className;
|
|
948
|
+
let t2;
|
|
949
|
+
if ($[6] !== t1) {
|
|
950
|
+
t2 = t1 === void 0 ? [] : t1;
|
|
941
951
|
$[6] = t1;
|
|
952
|
+
$[7] = t2;
|
|
942
953
|
} else {
|
|
943
|
-
|
|
954
|
+
t2 = $[7];
|
|
944
955
|
}
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
956
|
+
const links = t2;
|
|
957
|
+
const internalRef = require$$0.useRef(null);
|
|
958
|
+
const headerRef = ref ?? internalRef;
|
|
959
|
+
let t3;
|
|
960
|
+
if ($[8] !== headerRef || $[9] !== links) {
|
|
961
|
+
t3 = {
|
|
962
|
+
links,
|
|
963
|
+
headerRef
|
|
964
|
+
};
|
|
965
|
+
$[8] = headerRef;
|
|
966
|
+
$[9] = links;
|
|
967
|
+
$[10] = t3;
|
|
953
968
|
} else {
|
|
954
|
-
|
|
969
|
+
t3 = $[10];
|
|
955
970
|
}
|
|
956
|
-
return t2;
|
|
957
|
-
}
|
|
958
|
-
function HeaderDefaultLogo(t0) {
|
|
959
|
-
const $ = compilerRuntimeExports.c(23);
|
|
960
|
-
const {
|
|
961
|
-
width: t1,
|
|
962
|
-
height: t2
|
|
963
|
-
} = t0;
|
|
964
|
-
const width = t1 === void 0 ? 48 : t1;
|
|
965
|
-
const height = t2 === void 0 ? 40 : t2;
|
|
966
|
-
let t10;
|
|
967
|
-
let t11;
|
|
968
|
-
let t12;
|
|
969
|
-
let t13;
|
|
970
|
-
let t14;
|
|
971
|
-
let t15;
|
|
972
|
-
let t16;
|
|
973
|
-
let t17;
|
|
974
|
-
let t18;
|
|
975
|
-
let t19;
|
|
976
|
-
let t20;
|
|
977
|
-
let t21;
|
|
978
|
-
let t22;
|
|
979
|
-
let t3;
|
|
980
971
|
let t4;
|
|
972
|
+
if ($[11] !== className) {
|
|
973
|
+
t4 = clsx("at-header", className);
|
|
974
|
+
$[11] = className;
|
|
975
|
+
$[12] = t4;
|
|
976
|
+
} else {
|
|
977
|
+
t4 = $[12];
|
|
978
|
+
}
|
|
981
979
|
let t5;
|
|
980
|
+
if ($[13] !== children) {
|
|
981
|
+
t5 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "at-header__container", children });
|
|
982
|
+
$[13] = children;
|
|
983
|
+
$[14] = t5;
|
|
984
|
+
} else {
|
|
985
|
+
t5 = $[14];
|
|
986
|
+
}
|
|
982
987
|
let t6;
|
|
988
|
+
if ($[15] !== headerRef || $[16] !== rest || $[17] !== t4 || $[18] !== t5) {
|
|
989
|
+
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx("header", { ref: headerRef, className: t4, ...rest, children: t5 });
|
|
990
|
+
$[15] = headerRef;
|
|
991
|
+
$[16] = rest;
|
|
992
|
+
$[17] = t4;
|
|
993
|
+
$[18] = t5;
|
|
994
|
+
$[19] = t6;
|
|
995
|
+
} else {
|
|
996
|
+
t6 = $[19];
|
|
997
|
+
}
|
|
983
998
|
let t7;
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
t5 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "34.2183", y: "6.36298", width: "2.08381", height: "0.108768", fill: "#085E55" });
|
|
990
|
-
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "7.67719", y: "13.5688", width: "2.82411", height: "0.108768", fill: "#085E55" });
|
|
991
|
-
t7 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "6.27887", y: "12.8889", width: "2.82411", height: "0.108768", fill: "#085E55" });
|
|
992
|
-
t8 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "37.3441", y: "15.7985", width: "2.82411", height: "0.108768", fill: "#085E55" });
|
|
993
|
-
t9 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "36.1102", y: "16.4512", width: "2.82411", height: "0.108768", fill: "#085E55" });
|
|
994
|
-
t10 = /* @__PURE__ */ jsxRuntimeExports.jsx("ellipse", { cx: "30.2138", cy: "10.6896", rx: "4.8805", ry: "4.84016", fill: "white" });
|
|
995
|
-
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" });
|
|
996
|
-
t12 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { y: "38.9753", width: "48", height: "0.29752", fill: "black" });
|
|
997
|
-
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" });
|
|
998
|
-
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" });
|
|
999
|
-
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" });
|
|
1000
|
-
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" });
|
|
1001
|
-
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" });
|
|
1002
|
-
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" });
|
|
1003
|
-
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" });
|
|
1004
|
-
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" });
|
|
1005
|
-
t21 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M18.2147 37.8959H39.8588V38.8887H18.2147V37.8959Z", fill: "#085E55" });
|
|
1006
|
-
t22 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M26.1426 38.8138H39.8588L42.353 28.5516H28.6367L26.1426 38.8138Z", fill: "#085E55" });
|
|
1007
|
-
$[0] = t10;
|
|
1008
|
-
$[1] = t11;
|
|
1009
|
-
$[2] = t12;
|
|
1010
|
-
$[3] = t13;
|
|
1011
|
-
$[4] = t14;
|
|
1012
|
-
$[5] = t15;
|
|
1013
|
-
$[6] = t16;
|
|
1014
|
-
$[7] = t17;
|
|
1015
|
-
$[8] = t18;
|
|
1016
|
-
$[9] = t19;
|
|
1017
|
-
$[10] = t20;
|
|
1018
|
-
$[11] = t21;
|
|
1019
|
-
$[12] = t22;
|
|
1020
|
-
$[13] = t3;
|
|
1021
|
-
$[14] = t4;
|
|
1022
|
-
$[15] = t5;
|
|
1023
|
-
$[16] = t6;
|
|
1024
|
-
$[17] = t7;
|
|
1025
|
-
$[18] = t8;
|
|
1026
|
-
$[19] = t9;
|
|
999
|
+
if ($[20] !== t3 || $[21] !== t6) {
|
|
1000
|
+
t7 = /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderContext, { value: t3, children: t6 });
|
|
1001
|
+
$[20] = t3;
|
|
1002
|
+
$[21] = t6;
|
|
1003
|
+
$[22] = t7;
|
|
1027
1004
|
} else {
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
t9 = $[19];
|
|
1048
|
-
}
|
|
1049
|
-
let t23;
|
|
1050
|
-
if ($[20] !== height || $[21] !== width) {
|
|
1051
|
-
t23 = /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width, height, viewBox: "0 0 48 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1052
|
-
t3,
|
|
1053
|
-
t4,
|
|
1054
|
-
t5,
|
|
1055
|
-
t6,
|
|
1056
|
-
t7,
|
|
1057
|
-
t8,
|
|
1058
|
-
t9,
|
|
1059
|
-
t10,
|
|
1060
|
-
t11,
|
|
1061
|
-
t12,
|
|
1062
|
-
t13,
|
|
1063
|
-
t14,
|
|
1064
|
-
t15,
|
|
1065
|
-
t16,
|
|
1066
|
-
t17,
|
|
1067
|
-
t18,
|
|
1068
|
-
t19,
|
|
1069
|
-
t20,
|
|
1070
|
-
t21,
|
|
1071
|
-
t22
|
|
1072
|
-
] });
|
|
1073
|
-
$[20] = height;
|
|
1074
|
-
$[21] = width;
|
|
1075
|
-
$[22] = t23;
|
|
1005
|
+
t7 = $[22];
|
|
1006
|
+
}
|
|
1007
|
+
return t7;
|
|
1008
|
+
}
|
|
1009
|
+
function HeaderIllustration(t0) {
|
|
1010
|
+
const $ = compilerRuntimeExports.c(10);
|
|
1011
|
+
let children;
|
|
1012
|
+
let className;
|
|
1013
|
+
let rest;
|
|
1014
|
+
if ($[0] !== t0) {
|
|
1015
|
+
({
|
|
1016
|
+
className,
|
|
1017
|
+
children,
|
|
1018
|
+
...rest
|
|
1019
|
+
} = t0);
|
|
1020
|
+
$[0] = t0;
|
|
1021
|
+
$[1] = children;
|
|
1022
|
+
$[2] = className;
|
|
1023
|
+
$[3] = rest;
|
|
1076
1024
|
} else {
|
|
1077
|
-
|
|
1025
|
+
children = $[1];
|
|
1026
|
+
className = $[2];
|
|
1027
|
+
rest = $[3];
|
|
1028
|
+
}
|
|
1029
|
+
let t1;
|
|
1030
|
+
if ($[4] !== className) {
|
|
1031
|
+
t1 = clsx("at-header__illustration", className);
|
|
1032
|
+
$[4] = className;
|
|
1033
|
+
$[5] = t1;
|
|
1034
|
+
} else {
|
|
1035
|
+
t1 = $[5];
|
|
1036
|
+
}
|
|
1037
|
+
let t2;
|
|
1038
|
+
if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
|
|
1039
|
+
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, ...rest, children });
|
|
1040
|
+
$[6] = children;
|
|
1041
|
+
$[7] = rest;
|
|
1042
|
+
$[8] = t1;
|
|
1043
|
+
$[9] = t2;
|
|
1044
|
+
} else {
|
|
1045
|
+
t2 = $[9];
|
|
1078
1046
|
}
|
|
1079
|
-
return
|
|
1047
|
+
return t2;
|
|
1048
|
+
}
|
|
1049
|
+
function HeaderLogo(t0) {
|
|
1050
|
+
const $ = compilerRuntimeExports.c(10);
|
|
1051
|
+
let children;
|
|
1052
|
+
let className;
|
|
1053
|
+
let rest;
|
|
1054
|
+
if ($[0] !== t0) {
|
|
1055
|
+
({
|
|
1056
|
+
className,
|
|
1057
|
+
children,
|
|
1058
|
+
...rest
|
|
1059
|
+
} = t0);
|
|
1060
|
+
$[0] = t0;
|
|
1061
|
+
$[1] = children;
|
|
1062
|
+
$[2] = className;
|
|
1063
|
+
$[3] = rest;
|
|
1064
|
+
} else {
|
|
1065
|
+
children = $[1];
|
|
1066
|
+
className = $[2];
|
|
1067
|
+
rest = $[3];
|
|
1068
|
+
}
|
|
1069
|
+
let t1;
|
|
1070
|
+
if ($[4] !== className) {
|
|
1071
|
+
t1 = clsx("at-header__logo", className);
|
|
1072
|
+
$[4] = className;
|
|
1073
|
+
$[5] = t1;
|
|
1074
|
+
} else {
|
|
1075
|
+
t1 = $[5];
|
|
1076
|
+
}
|
|
1077
|
+
let t2;
|
|
1078
|
+
if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
|
|
1079
|
+
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, ...rest, children });
|
|
1080
|
+
$[6] = children;
|
|
1081
|
+
$[7] = rest;
|
|
1082
|
+
$[8] = t1;
|
|
1083
|
+
$[9] = t2;
|
|
1084
|
+
} else {
|
|
1085
|
+
t2 = $[9];
|
|
1086
|
+
}
|
|
1087
|
+
return t2;
|
|
1080
1088
|
}
|
|
1081
1089
|
const useIsomorphicLayoutEffect = typeof window !== "undefined" ? require$$0.useLayoutEffect : require$$0.useEffect;
|
|
1082
1090
|
const IS_SERVER = typeof window === "undefined";
|
|
@@ -1174,344 +1182,459 @@ function useMediaQuery(query, t0) {
|
|
|
1174
1182
|
useIsomorphicLayoutEffect(t7, t8);
|
|
1175
1183
|
return matches;
|
|
1176
1184
|
}
|
|
1177
|
-
function
|
|
1178
|
-
const $ = compilerRuntimeExports.c(
|
|
1185
|
+
function HeaderMenu(t0) {
|
|
1186
|
+
const $ = compilerRuntimeExports.c(53);
|
|
1179
1187
|
let children;
|
|
1180
1188
|
let className;
|
|
1181
|
-
let controls;
|
|
1182
|
-
let links;
|
|
1183
1189
|
let rest;
|
|
1184
|
-
let
|
|
1190
|
+
let t1;
|
|
1191
|
+
let t2;
|
|
1192
|
+
let triggerContent;
|
|
1185
1193
|
if ($[0] !== t0) {
|
|
1186
1194
|
({
|
|
1187
1195
|
className,
|
|
1188
|
-
controls,
|
|
1189
|
-
links,
|
|
1190
|
-
userName,
|
|
1191
1196
|
children,
|
|
1197
|
+
triggerContent,
|
|
1198
|
+
mobileMenuText: t1,
|
|
1199
|
+
closeButtonText: t2,
|
|
1192
1200
|
...rest
|
|
1193
1201
|
} = t0);
|
|
1194
1202
|
$[0] = t0;
|
|
1195
1203
|
$[1] = children;
|
|
1196
1204
|
$[2] = className;
|
|
1197
|
-
$[3] =
|
|
1198
|
-
$[4] =
|
|
1199
|
-
$[5] =
|
|
1200
|
-
$[6] =
|
|
1205
|
+
$[3] = rest;
|
|
1206
|
+
$[4] = t1;
|
|
1207
|
+
$[5] = t2;
|
|
1208
|
+
$[6] = triggerContent;
|
|
1201
1209
|
} else {
|
|
1202
1210
|
children = $[1];
|
|
1203
1211
|
className = $[2];
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1212
|
+
rest = $[3];
|
|
1213
|
+
t1 = $[4];
|
|
1214
|
+
t2 = $[5];
|
|
1215
|
+
triggerContent = $[6];
|
|
1208
1216
|
}
|
|
1217
|
+
const mobileMenuText = t1 === void 0 ? "Meny" : t1;
|
|
1218
|
+
const closeButtonText = t2 === void 0 ? "Lukk" : t2;
|
|
1209
1219
|
const [open, setOpen] = require$$0.useState(false);
|
|
1210
|
-
const
|
|
1211
|
-
const
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1220
|
+
const [backdropTop, setBackdropTop] = require$$0.useState(0);
|
|
1221
|
+
const {
|
|
1222
|
+
links,
|
|
1223
|
+
headerRef
|
|
1224
|
+
} = require$$0.use(HeaderContext);
|
|
1225
|
+
const isMobile = useMediaQuery("(max-width: 48rem)");
|
|
1226
|
+
let t3;
|
|
1227
|
+
let t4;
|
|
1228
|
+
if ($[7] !== headerRef || $[8] !== open) {
|
|
1229
|
+
t3 = () => {
|
|
1230
|
+
if (!open || !headerRef.current) {
|
|
1231
|
+
return;
|
|
1232
|
+
}
|
|
1233
|
+
const updateBackdropPosition = () => {
|
|
1234
|
+
const rect = headerRef.current?.getBoundingClientRect();
|
|
1235
|
+
if (rect) {
|
|
1236
|
+
setBackdropTop(rect.bottom);
|
|
1237
|
+
}
|
|
1238
|
+
};
|
|
1239
|
+
updateBackdropPosition();
|
|
1240
|
+
window.addEventListener("scroll", updateBackdropPosition, true);
|
|
1241
|
+
window.addEventListener("resize", updateBackdropPosition);
|
|
1242
|
+
return () => {
|
|
1243
|
+
window.removeEventListener("scroll", updateBackdropPosition, true);
|
|
1244
|
+
window.removeEventListener("resize", updateBackdropPosition);
|
|
1245
|
+
};
|
|
1246
|
+
};
|
|
1247
|
+
t4 = [open, headerRef];
|
|
1248
|
+
$[7] = headerRef;
|
|
1249
|
+
$[8] = open;
|
|
1250
|
+
$[9] = t3;
|
|
1251
|
+
$[10] = t4;
|
|
1217
1252
|
} else {
|
|
1218
|
-
|
|
1253
|
+
t3 = $[9];
|
|
1254
|
+
t4 = $[10];
|
|
1219
1255
|
}
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
$[
|
|
1256
|
+
require$$0.useLayoutEffect(t3, t4);
|
|
1257
|
+
let t5;
|
|
1258
|
+
if ($[11] !== className) {
|
|
1259
|
+
t5 = clsx("at-header__right", className);
|
|
1260
|
+
$[11] = className;
|
|
1261
|
+
$[12] = t5;
|
|
1225
1262
|
} else {
|
|
1226
|
-
|
|
1263
|
+
t5 = $[12];
|
|
1227
1264
|
}
|
|
1228
|
-
const
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1265
|
+
const t6 = isMobile ? "sm" : void 0;
|
|
1266
|
+
const t7 = isMobile ? "primary" : "tertiary";
|
|
1267
|
+
let t8;
|
|
1268
|
+
if ($[13] !== isMobile || $[14] !== mobileMenuText || $[15] !== open || $[16] !== triggerContent) {
|
|
1269
|
+
t8 = isMobile ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
1232
1270
|
open ? /* @__PURE__ */ jsxRuntimeExports.jsx(akselIcons.XMarkIcon, { "aria-hidden": true }) : /* @__PURE__ */ jsxRuntimeExports.jsx(akselIcons.MenuHamburgerIcon, { "aria-hidden": true }),
|
|
1233
|
-
|
|
1271
|
+
mobileMenuText
|
|
1234
1272
|
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
1235
|
-
|
|
1273
|
+
triggerContent,
|
|
1236
1274
|
open ? /* @__PURE__ */ jsxRuntimeExports.jsx(akselIcons.ChevronUpIcon, { "aria-hidden": true }) : /* @__PURE__ */ jsxRuntimeExports.jsx(akselIcons.ChevronDownIcon, { "aria-hidden": true })
|
|
1237
1275
|
] });
|
|
1238
|
-
$[
|
|
1239
|
-
$[
|
|
1240
|
-
$[
|
|
1241
|
-
$[
|
|
1276
|
+
$[13] = isMobile;
|
|
1277
|
+
$[14] = mobileMenuText;
|
|
1278
|
+
$[15] = open;
|
|
1279
|
+
$[16] = triggerContent;
|
|
1280
|
+
$[17] = t8;
|
|
1242
1281
|
} else {
|
|
1243
|
-
|
|
1282
|
+
t8 = $[17];
|
|
1244
1283
|
}
|
|
1245
|
-
let
|
|
1246
|
-
if ($[
|
|
1247
|
-
|
|
1248
|
-
$[
|
|
1249
|
-
$[
|
|
1250
|
-
$[
|
|
1251
|
-
$[
|
|
1284
|
+
let t9;
|
|
1285
|
+
if ($[18] !== t6 || $[19] !== t7 || $[20] !== t8) {
|
|
1286
|
+
t9 = /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Dropdown.Trigger, { "data-size": t6, variant: t7, className: "at-header__dropdown-trigger", children: t8 });
|
|
1287
|
+
$[18] = t6;
|
|
1288
|
+
$[19] = t7;
|
|
1289
|
+
$[20] = t8;
|
|
1290
|
+
$[21] = t9;
|
|
1252
1291
|
} else {
|
|
1253
|
-
|
|
1292
|
+
t9 = $[21];
|
|
1254
1293
|
}
|
|
1255
|
-
let
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1294
|
+
let t10;
|
|
1295
|
+
let t11;
|
|
1296
|
+
if ($[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1297
|
+
t10 = () => setOpen(true);
|
|
1298
|
+
t11 = () => setOpen(false);
|
|
1299
|
+
$[22] = t10;
|
|
1300
|
+
$[23] = t11;
|
|
1259
1301
|
} else {
|
|
1260
|
-
|
|
1302
|
+
t10 = $[22];
|
|
1303
|
+
t11 = $[23];
|
|
1261
1304
|
}
|
|
1262
|
-
let
|
|
1263
|
-
if ($[
|
|
1264
|
-
|
|
1265
|
-
$[
|
|
1266
|
-
$[
|
|
1267
|
-
$[22] = t7;
|
|
1305
|
+
let t12;
|
|
1306
|
+
if ($[24] !== links) {
|
|
1307
|
+
t12 = links?.map(_temp$1);
|
|
1308
|
+
$[24] = links;
|
|
1309
|
+
$[25] = t12;
|
|
1268
1310
|
} else {
|
|
1269
|
-
|
|
1311
|
+
t12 = $[25];
|
|
1270
1312
|
}
|
|
1271
|
-
let
|
|
1272
|
-
if ($[
|
|
1273
|
-
|
|
1274
|
-
$[
|
|
1313
|
+
let t13;
|
|
1314
|
+
if ($[26] !== links) {
|
|
1315
|
+
t13 = 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, {}) }) });
|
|
1316
|
+
$[26] = links;
|
|
1317
|
+
$[27] = t13;
|
|
1275
1318
|
} else {
|
|
1276
|
-
|
|
1319
|
+
t13 = $[27];
|
|
1277
1320
|
}
|
|
1278
|
-
let
|
|
1279
|
-
if ($[
|
|
1280
|
-
|
|
1281
|
-
$[
|
|
1282
|
-
$[
|
|
1283
|
-
$[26] = t9;
|
|
1321
|
+
let t14;
|
|
1322
|
+
if ($[28] !== children) {
|
|
1323
|
+
t14 = children && /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "at-header__dropdown-controls", children }) });
|
|
1324
|
+
$[28] = children;
|
|
1325
|
+
$[29] = t14;
|
|
1284
1326
|
} else {
|
|
1285
|
-
|
|
1327
|
+
t14 = $[29];
|
|
1286
1328
|
}
|
|
1287
|
-
let
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
]
|
|
1294
|
-
$[27] = t7;
|
|
1295
|
-
$[28] = t9;
|
|
1296
|
-
$[29] = t10;
|
|
1329
|
+
let t15;
|
|
1330
|
+
let t16;
|
|
1331
|
+
if ($[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1332
|
+
t15 = () => setOpen(false);
|
|
1333
|
+
t16 = /* @__PURE__ */ jsxRuntimeExports.jsx(akselIcons.XMarkIcon, { "aria-hidden": true });
|
|
1334
|
+
$[30] = t15;
|
|
1335
|
+
$[31] = t16;
|
|
1297
1336
|
} else {
|
|
1298
|
-
|
|
1337
|
+
t15 = $[30];
|
|
1338
|
+
t16 = $[31];
|
|
1299
1339
|
}
|
|
1300
|
-
let
|
|
1301
|
-
if ($[
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1340
|
+
let t17;
|
|
1341
|
+
if ($[32] !== closeButtonText) {
|
|
1342
|
+
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: [
|
|
1343
|
+
t16,
|
|
1344
|
+
closeButtonText
|
|
1305
1345
|
] }) }) });
|
|
1306
|
-
$[
|
|
1346
|
+
$[32] = closeButtonText;
|
|
1347
|
+
$[33] = t17;
|
|
1307
1348
|
} else {
|
|
1308
|
-
|
|
1349
|
+
t17 = $[33];
|
|
1309
1350
|
}
|
|
1310
|
-
let
|
|
1311
|
-
if ($[
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1351
|
+
let t18;
|
|
1352
|
+
if ($[34] !== t12 || $[35] !== t13 || $[36] !== t14 || $[37] !== t17) {
|
|
1353
|
+
t18 = /* @__PURE__ */ jsxRuntimeExports.jsxs(designsystemetReact.Dropdown.List, { children: [
|
|
1354
|
+
t12,
|
|
1355
|
+
t13,
|
|
1356
|
+
t14,
|
|
1357
|
+
t17
|
|
1315
1358
|
] });
|
|
1316
|
-
$[
|
|
1317
|
-
$[
|
|
1318
|
-
$[
|
|
1359
|
+
$[34] = t12;
|
|
1360
|
+
$[35] = t13;
|
|
1361
|
+
$[36] = t14;
|
|
1362
|
+
$[37] = t17;
|
|
1363
|
+
$[38] = t18;
|
|
1319
1364
|
} else {
|
|
1320
|
-
|
|
1365
|
+
t18 = $[38];
|
|
1321
1366
|
}
|
|
1322
|
-
let
|
|
1323
|
-
if ($[
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1367
|
+
let t19;
|
|
1368
|
+
if ($[39] !== open || $[40] !== t18) {
|
|
1369
|
+
t19 = /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Dropdown, { open, onOpen: t10, onClose: t11, placement: "bottom", className: "at-header__dropdown-content", children: t18 });
|
|
1370
|
+
$[39] = open;
|
|
1371
|
+
$[40] = t18;
|
|
1372
|
+
$[41] = t19;
|
|
1373
|
+
} else {
|
|
1374
|
+
t19 = $[41];
|
|
1375
|
+
}
|
|
1376
|
+
let t20;
|
|
1377
|
+
if ($[42] !== t19 || $[43] !== t9) {
|
|
1378
|
+
t20 = /* @__PURE__ */ jsxRuntimeExports.jsxs(designsystemetReact.Dropdown.TriggerContext, { children: [
|
|
1379
|
+
t9,
|
|
1380
|
+
t19
|
|
1327
1381
|
] });
|
|
1328
|
-
$[
|
|
1329
|
-
$[
|
|
1330
|
-
$[
|
|
1382
|
+
$[42] = t19;
|
|
1383
|
+
$[43] = t9;
|
|
1384
|
+
$[44] = t20;
|
|
1331
1385
|
} else {
|
|
1332
|
-
|
|
1386
|
+
t20 = $[44];
|
|
1333
1387
|
}
|
|
1334
|
-
let
|
|
1335
|
-
if ($[
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1388
|
+
let t21;
|
|
1389
|
+
if ($[45] !== backdropTop || $[46] !== open) {
|
|
1390
|
+
t21 = open ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "aria-hidden": true, className: "at-header__dropdown-backdrop", style: {
|
|
1391
|
+
top: backdropTop
|
|
1392
|
+
} }) : null;
|
|
1393
|
+
$[45] = backdropTop;
|
|
1394
|
+
$[46] = open;
|
|
1395
|
+
$[47] = t21;
|
|
1339
1396
|
} else {
|
|
1340
|
-
|
|
1397
|
+
t21 = $[47];
|
|
1341
1398
|
}
|
|
1342
|
-
let
|
|
1343
|
-
if ($[
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1399
|
+
let t22;
|
|
1400
|
+
if ($[48] !== rest || $[49] !== t20 || $[50] !== t21 || $[51] !== t5) {
|
|
1401
|
+
t22 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t5, ...rest, children: [
|
|
1402
|
+
t20,
|
|
1403
|
+
t21
|
|
1347
1404
|
] });
|
|
1348
|
-
$[
|
|
1349
|
-
$[
|
|
1350
|
-
$[
|
|
1351
|
-
$[
|
|
1352
|
-
$[
|
|
1405
|
+
$[48] = rest;
|
|
1406
|
+
$[49] = t20;
|
|
1407
|
+
$[50] = t21;
|
|
1408
|
+
$[51] = t5;
|
|
1409
|
+
$[52] = t22;
|
|
1353
1410
|
} else {
|
|
1354
|
-
|
|
1411
|
+
t22 = $[52];
|
|
1355
1412
|
}
|
|
1356
|
-
return
|
|
1413
|
+
return t22;
|
|
1357
1414
|
}
|
|
1358
|
-
function
|
|
1359
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("at-
|
|
1415
|
+
function _temp$1(link, index) {
|
|
1416
|
+
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);
|
|
1360
1417
|
}
|
|
1361
|
-
function
|
|
1362
|
-
|
|
1363
|
-
}
|
|
1364
|
-
function HeaderTitleLinks(t0) {
|
|
1365
|
-
const $ = compilerRuntimeExports.c(14);
|
|
1366
|
-
let children;
|
|
1418
|
+
function HeaderMenuRow(t0) {
|
|
1419
|
+
const $ = compilerRuntimeExports.c(10);
|
|
1367
1420
|
let className;
|
|
1368
|
-
let
|
|
1421
|
+
let padded;
|
|
1369
1422
|
let rest;
|
|
1370
1423
|
if ($[0] !== t0) {
|
|
1371
1424
|
({
|
|
1372
1425
|
className,
|
|
1373
|
-
|
|
1374
|
-
children,
|
|
1426
|
+
padded,
|
|
1375
1427
|
...rest
|
|
1376
1428
|
} = t0);
|
|
1377
1429
|
$[0] = t0;
|
|
1378
|
-
$[1] =
|
|
1379
|
-
$[2] =
|
|
1380
|
-
$[3] =
|
|
1381
|
-
$[4] = rest;
|
|
1382
|
-
} else {
|
|
1383
|
-
children = $[1];
|
|
1384
|
-
className = $[2];
|
|
1385
|
-
links = $[3];
|
|
1386
|
-
rest = $[4];
|
|
1387
|
-
}
|
|
1388
|
-
let t1;
|
|
1389
|
-
if ($[5] !== className) {
|
|
1390
|
-
t1 = clsx(className);
|
|
1391
|
-
$[5] = className;
|
|
1392
|
-
$[6] = t1;
|
|
1430
|
+
$[1] = className;
|
|
1431
|
+
$[2] = padded;
|
|
1432
|
+
$[3] = rest;
|
|
1393
1433
|
} else {
|
|
1394
|
-
|
|
1434
|
+
className = $[1];
|
|
1435
|
+
padded = $[2];
|
|
1436
|
+
rest = $[3];
|
|
1395
1437
|
}
|
|
1438
|
+
const t1 = padded && "padded";
|
|
1396
1439
|
let t2;
|
|
1397
|
-
if ($[
|
|
1398
|
-
t2 =
|
|
1399
|
-
$[
|
|
1400
|
-
$[
|
|
1401
|
-
$[
|
|
1440
|
+
if ($[4] !== className || $[5] !== t1) {
|
|
1441
|
+
t2 = clsx$1("at-header__menu-row", t1, className);
|
|
1442
|
+
$[4] = className;
|
|
1443
|
+
$[5] = t1;
|
|
1444
|
+
$[6] = t2;
|
|
1402
1445
|
} else {
|
|
1403
|
-
t2 = $[
|
|
1446
|
+
t2 = $[6];
|
|
1404
1447
|
}
|
|
1405
1448
|
let t3;
|
|
1406
|
-
if ($[
|
|
1407
|
-
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1408
|
-
$[
|
|
1409
|
-
$[
|
|
1410
|
-
$[
|
|
1411
|
-
$[13] = t3;
|
|
1449
|
+
if ($[7] !== rest || $[8] !== t2) {
|
|
1450
|
+
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx(reactSlot.Slot, { className: t2, ...rest });
|
|
1451
|
+
$[7] = rest;
|
|
1452
|
+
$[8] = t2;
|
|
1453
|
+
$[9] = t3;
|
|
1412
1454
|
} else {
|
|
1413
|
-
t3 = $[
|
|
1455
|
+
t3 = $[9];
|
|
1414
1456
|
}
|
|
1415
1457
|
return t3;
|
|
1416
1458
|
}
|
|
1417
|
-
function
|
|
1418
|
-
|
|
1419
|
-
}
|
|
1420
|
-
function _temp(child) {
|
|
1421
|
-
if (require$$0.isValidElement(child)) {
|
|
1422
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(reactSlot.Slot, { className: clsx("at-header__title-link", "ds-link"), children: child });
|
|
1423
|
-
}
|
|
1424
|
-
return child;
|
|
1425
|
-
}
|
|
1426
|
-
function HeaderTitleLogo(t0) {
|
|
1427
|
-
const $ = compilerRuntimeExports.c(17);
|
|
1428
|
-
let appName;
|
|
1459
|
+
function HeaderMenuIcon(t0) {
|
|
1460
|
+
const $ = compilerRuntimeExports.c(8);
|
|
1429
1461
|
let className;
|
|
1430
|
-
let logo;
|
|
1431
1462
|
let rest;
|
|
1432
1463
|
if ($[0] !== t0) {
|
|
1433
1464
|
({
|
|
1434
1465
|
className,
|
|
1435
|
-
logo,
|
|
1436
|
-
appName,
|
|
1437
1466
|
...rest
|
|
1438
1467
|
} = t0);
|
|
1439
1468
|
$[0] = t0;
|
|
1440
|
-
$[1] =
|
|
1441
|
-
$[2] =
|
|
1442
|
-
$[3] = logo;
|
|
1443
|
-
$[4] = rest;
|
|
1469
|
+
$[1] = className;
|
|
1470
|
+
$[2] = rest;
|
|
1444
1471
|
} else {
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
logo = $[3];
|
|
1448
|
-
rest = $[4];
|
|
1472
|
+
className = $[1];
|
|
1473
|
+
rest = $[2];
|
|
1449
1474
|
}
|
|
1450
1475
|
let t1;
|
|
1451
|
-
if ($[
|
|
1452
|
-
t1 = clsx(className);
|
|
1453
|
-
$[
|
|
1454
|
-
$[
|
|
1476
|
+
if ($[3] !== className) {
|
|
1477
|
+
t1 = clsx$1("at-header__menu-icon", className);
|
|
1478
|
+
$[3] = className;
|
|
1479
|
+
$[4] = t1;
|
|
1455
1480
|
} else {
|
|
1456
|
-
t1 = $[
|
|
1481
|
+
t1 = $[4];
|
|
1457
1482
|
}
|
|
1458
1483
|
let t2;
|
|
1459
|
-
if ($[
|
|
1460
|
-
t2 =
|
|
1484
|
+
if ($[5] !== rest || $[6] !== t1) {
|
|
1485
|
+
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, ...rest });
|
|
1486
|
+
$[5] = rest;
|
|
1487
|
+
$[6] = t1;
|
|
1461
1488
|
$[7] = t2;
|
|
1462
1489
|
} else {
|
|
1463
1490
|
t2 = $[7];
|
|
1464
1491
|
}
|
|
1492
|
+
return t2;
|
|
1493
|
+
}
|
|
1494
|
+
function HeaderMenuBadge(t0) {
|
|
1495
|
+
const $ = compilerRuntimeExports.c(10);
|
|
1496
|
+
let className;
|
|
1497
|
+
let rest;
|
|
1498
|
+
let t1;
|
|
1499
|
+
if ($[0] !== t0) {
|
|
1500
|
+
({
|
|
1501
|
+
className,
|
|
1502
|
+
color: t1,
|
|
1503
|
+
...rest
|
|
1504
|
+
} = t0);
|
|
1505
|
+
$[0] = t0;
|
|
1506
|
+
$[1] = className;
|
|
1507
|
+
$[2] = rest;
|
|
1508
|
+
$[3] = t1;
|
|
1509
|
+
} else {
|
|
1510
|
+
className = $[1];
|
|
1511
|
+
rest = $[2];
|
|
1512
|
+
t1 = $[3];
|
|
1513
|
+
}
|
|
1514
|
+
const color = t1 === void 0 ? "info" : t1;
|
|
1515
|
+
const t2 = `at-header__menu-badge-${color}`;
|
|
1465
1516
|
let t3;
|
|
1466
|
-
if ($[
|
|
1467
|
-
t3 =
|
|
1468
|
-
$[
|
|
1469
|
-
$[
|
|
1517
|
+
if ($[4] !== className || $[5] !== t2) {
|
|
1518
|
+
t3 = clsx$1(t2, className);
|
|
1519
|
+
$[4] = className;
|
|
1520
|
+
$[5] = t2;
|
|
1521
|
+
$[6] = t3;
|
|
1470
1522
|
} else {
|
|
1471
|
-
t3 = $[
|
|
1523
|
+
t3 = $[6];
|
|
1472
1524
|
}
|
|
1473
1525
|
let t4;
|
|
1474
|
-
if ($[
|
|
1475
|
-
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1476
|
-
$[
|
|
1477
|
-
$[
|
|
1526
|
+
if ($[7] !== rest || $[8] !== t3) {
|
|
1527
|
+
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t3, ...rest });
|
|
1528
|
+
$[7] = rest;
|
|
1529
|
+
$[8] = t3;
|
|
1530
|
+
$[9] = t4;
|
|
1478
1531
|
} else {
|
|
1479
|
-
t4 = $[
|
|
1532
|
+
t4 = $[9];
|
|
1480
1533
|
}
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1534
|
+
return t4;
|
|
1535
|
+
}
|
|
1536
|
+
function HeaderNavbar(t0) {
|
|
1537
|
+
const $ = compilerRuntimeExports.c(11);
|
|
1538
|
+
let className;
|
|
1539
|
+
let rest;
|
|
1540
|
+
if ($[0] !== t0) {
|
|
1541
|
+
({
|
|
1542
|
+
className,
|
|
1543
|
+
...rest
|
|
1544
|
+
} = t0);
|
|
1545
|
+
$[0] = t0;
|
|
1546
|
+
$[1] = className;
|
|
1547
|
+
$[2] = rest;
|
|
1548
|
+
} else {
|
|
1549
|
+
className = $[1];
|
|
1550
|
+
rest = $[2];
|
|
1551
|
+
}
|
|
1552
|
+
const {
|
|
1553
|
+
links
|
|
1554
|
+
} = require$$0.use(HeaderContext);
|
|
1555
|
+
let t1;
|
|
1556
|
+
if ($[3] !== className) {
|
|
1557
|
+
t1 = clsx("at-header__center", className);
|
|
1558
|
+
$[3] = className;
|
|
1559
|
+
$[4] = t1;
|
|
1492
1560
|
} else {
|
|
1493
|
-
|
|
1561
|
+
t1 = $[4];
|
|
1494
1562
|
}
|
|
1495
|
-
|
|
1563
|
+
let t2;
|
|
1564
|
+
if ($[5] !== links) {
|
|
1565
|
+
t2 = links?.map(_temp);
|
|
1566
|
+
$[5] = links;
|
|
1567
|
+
$[6] = t2;
|
|
1568
|
+
} else {
|
|
1569
|
+
t2 = $[6];
|
|
1570
|
+
}
|
|
1571
|
+
let t3;
|
|
1572
|
+
if ($[7] !== rest || $[8] !== t1 || $[9] !== t2) {
|
|
1573
|
+
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("nav", { className: t1, ...rest, children: t2 });
|
|
1574
|
+
$[7] = rest;
|
|
1575
|
+
$[8] = t1;
|
|
1576
|
+
$[9] = t2;
|
|
1577
|
+
$[10] = t3;
|
|
1578
|
+
} else {
|
|
1579
|
+
t3 = $[10];
|
|
1580
|
+
}
|
|
1581
|
+
return t3;
|
|
1496
1582
|
}
|
|
1497
|
-
function
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1583
|
+
function _temp(link, idx) {
|
|
1584
|
+
if (require$$0.isValidElement(link)) {
|
|
1585
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(reactSlot.Slot, { className: clsx("at-header__link", "ds-link"), children: link }, link.key ?? idx);
|
|
1586
|
+
}
|
|
1587
|
+
return link;
|
|
1588
|
+
}
|
|
1589
|
+
function HeaderTitle(t0) {
|
|
1590
|
+
const $ = compilerRuntimeExports.c(10);
|
|
1591
|
+
let children;
|
|
1592
|
+
let className;
|
|
1593
|
+
let rest;
|
|
1594
|
+
if ($[0] !== t0) {
|
|
1595
|
+
({
|
|
1596
|
+
className,
|
|
1597
|
+
children,
|
|
1598
|
+
...rest
|
|
1599
|
+
} = t0);
|
|
1600
|
+
$[0] = t0;
|
|
1601
|
+
$[1] = children;
|
|
1602
|
+
$[2] = className;
|
|
1603
|
+
$[3] = rest;
|
|
1604
|
+
} else {
|
|
1605
|
+
children = $[1];
|
|
1606
|
+
className = $[2];
|
|
1607
|
+
rest = $[3];
|
|
1608
|
+
}
|
|
1609
|
+
let t1;
|
|
1610
|
+
if ($[4] !== className) {
|
|
1611
|
+
t1 = clsx("at-header__left", className);
|
|
1612
|
+
$[4] = className;
|
|
1613
|
+
$[5] = t1;
|
|
1614
|
+
} else {
|
|
1615
|
+
t1 = $[5];
|
|
1616
|
+
}
|
|
1617
|
+
let t2;
|
|
1618
|
+
if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
|
|
1619
|
+
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, ...rest, children });
|
|
1620
|
+
$[6] = children;
|
|
1621
|
+
$[7] = rest;
|
|
1622
|
+
$[8] = t1;
|
|
1623
|
+
$[9] = t2;
|
|
1624
|
+
} else {
|
|
1625
|
+
t2 = $[9];
|
|
1626
|
+
}
|
|
1627
|
+
return t2;
|
|
1512
1628
|
}
|
|
1513
1629
|
const Header = Object.assign(Header$1, {
|
|
1514
|
-
Title: HeaderTitle
|
|
1630
|
+
Title: HeaderTitle,
|
|
1631
|
+
Illustration: HeaderIllustration,
|
|
1632
|
+
Logo: HeaderLogo,
|
|
1633
|
+
Navbar: HeaderNavbar,
|
|
1634
|
+
Menu: HeaderMenu,
|
|
1635
|
+
MenuRow: HeaderMenuRow,
|
|
1636
|
+
MenuIcon: HeaderMenuIcon,
|
|
1637
|
+
MenuBadge: HeaderMenuBadge
|
|
1515
1638
|
});
|
|
1516
1639
|
const LogoBlack = (t0) => {
|
|
1517
1640
|
const $ = compilerRuntimeExports.c(20);
|
|
@@ -1537,7 +1660,7 @@ const LogoBlack = (t0) => {
|
|
|
1537
1660
|
let t7;
|
|
1538
1661
|
let t8;
|
|
1539
1662
|
let t9;
|
|
1540
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1663
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1541
1664
|
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" });
|
|
1542
1665
|
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" });
|
|
1543
1666
|
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" });
|
|
@@ -1647,7 +1770,7 @@ const LogoWhite = (t0) => {
|
|
|
1647
1770
|
let t7;
|
|
1648
1771
|
let t8;
|
|
1649
1772
|
let t9;
|
|
1650
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1773
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1651
1774
|
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" });
|
|
1652
1775
|
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" });
|
|
1653
1776
|
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" });
|
|
@@ -1807,7 +1930,7 @@ const LogoGreen = (t0) => {
|
|
|
1807
1930
|
let t7;
|
|
1808
1931
|
let t8;
|
|
1809
1932
|
let t9;
|
|
1810
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1933
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
1811
1934
|
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" });
|
|
1812
1935
|
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" });
|
|
1813
1936
|
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" });
|
|
@@ -2037,6 +2160,10 @@ Object.defineProperty(exports, "DropdownTriggerContext", {
|
|
|
2037
2160
|
enumerable: true,
|
|
2038
2161
|
get: () => designsystemetReact.DropdownTriggerContext
|
|
2039
2162
|
});
|
|
2163
|
+
Object.defineProperty(exports, "EXPERIMENTAL_AvatarStack", {
|
|
2164
|
+
enumerable: true,
|
|
2165
|
+
get: () => designsystemetReact.EXPERIMENTAL_AvatarStack
|
|
2166
|
+
});
|
|
2040
2167
|
Object.defineProperty(exports, "EXPERIMENTAL_Suggestion", {
|
|
2041
2168
|
enumerable: true,
|
|
2042
2169
|
get: () => designsystemetReact.EXPERIMENTAL_Suggestion
|
|
@@ -2343,7 +2470,14 @@ exports.FilePickerDropzone = FilePickerDropzone;
|
|
|
2343
2470
|
exports.FilePickerErrors = FilePickerErrors;
|
|
2344
2471
|
exports.FilePickerFiles = FilePickerFiles;
|
|
2345
2472
|
exports.Header = Header;
|
|
2346
|
-
exports.
|
|
2473
|
+
exports.HeaderContext = HeaderContext;
|
|
2474
|
+
exports.HeaderIllustration = HeaderIllustration;
|
|
2475
|
+
exports.HeaderLogo = HeaderLogo;
|
|
2476
|
+
exports.HeaderMenu = HeaderMenu;
|
|
2477
|
+
exports.HeaderMenuBadge = HeaderMenuBadge;
|
|
2478
|
+
exports.HeaderMenuIcon = HeaderMenuIcon;
|
|
2479
|
+
exports.HeaderMenuRow = HeaderMenuRow;
|
|
2480
|
+
exports.HeaderNavbar = HeaderNavbar;
|
|
2347
2481
|
exports.HeaderTitle = HeaderTitle;
|
|
2348
2482
|
exports.LightDarkLogo = LightDarkLogo;
|
|
2349
2483
|
exports.LogoBlack = LogoBlack;
|