@arbeidstilsynet/design-react 0.5.0 → 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.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import require$$0, { createContext, use, useLayoutEffect, useEffect, useState, useId, Children, isValidElement } from "react";
2
+ import require$$0, { createContext, use, useRef, useLayoutEffect, useEffect, useState, isValidElement } from "react";
3
3
  import { CloudUpIcon, TrashIcon, XMarkIcon, MenuHamburgerIcon, ChevronUpIcon, ChevronDownIcon } from "@navikt/aksel-icons";
4
4
  import { useDropzone } from "react-dropzone";
5
- import { Spinner, Button, ValidationMessage, Table, Link, Dropdown, Divider, Heading } from "@digdir/designsystemet-react";
6
- import { Alert, Avatar, Badge, BadgePosition, Breadcrumbs, BreadcrumbsItem, BreadcrumbsLink, BreadcrumbsList, Button as Button2, Card, CardBlock, Checkbox, Chip, ChipButton, ChipCheckbox, ChipRadio, ChipRemovable, Combobox, ComboboxEmpty, ComboboxOption, Details, DetailsContent, DetailsSummary, Dialog, DialogBlock, DialogTrigger, DialogTriggerContext, Divider as Divider2, Dropdown as Dropdown2, DropdownButton, DropdownHeading, DropdownItem, DropdownList, DropdownTrigger, DropdownTriggerContext, EXPERIMENTAL_Suggestion, EXPERIMENTAL_SuggestionClear, EXPERIMENTAL_SuggestionEmpty, EXPERIMENTAL_SuggestionInput, EXPERIMENTAL_SuggestionList, EXPERIMENTAL_SuggestionOption, ErrorSummary, ErrorSummaryHeading, ErrorSummaryItem, ErrorSummaryLink, ErrorSummaryList, Field, FieldAffix, FieldAffixes, FieldCounter, FieldDescription, Fieldset, FieldsetDescription, FieldsetLegend, Heading as Heading2, Input, Label, Link as Link2, List, ListItem, ListOrdered, ListUnordered, Pagination, PaginationButton, PaginationItem, PaginationList, Paragraph, Popover, PopoverTrigger, PopoverTriggerContext, Radio, RovingFocusItem, RovingFocusRoot, Search, SearchButton, SearchClear, SearchInput, Select, SelectOptgroup, SelectOption, Skeleton, SkipLink, Spinner as Spinner2, Switch, Table as Table2, TableBody, TableCell, TableFoot, TableHead, TableHeaderCell, TableRow, Tabs, TabsList, TabsPanel, TabsTab, Tag, Textarea, Textfield, ToggleGroup, ToggleGroupItem, Tooltip, ValidationMessage as ValidationMessage2, omit, useCheckboxGroup, useDebounceCallback, useIsomorphicLayoutEffect, useMediaQuery, usePagination, useRadioGroup, useSynchronizedAnimation } from "@digdir/designsystemet-react";
5
+ import { Spinner, Button, ValidationMessage, Table, Link, Dropdown, Divider } from "@digdir/designsystemet-react";
6
+ import { Alert, Avatar, Badge, BadgePosition, Breadcrumbs, BreadcrumbsItem, BreadcrumbsLink, BreadcrumbsList, Button as Button2, Card, CardBlock, Checkbox, Chip, ChipButton, ChipCheckbox, ChipRadio, ChipRemovable, Combobox, ComboboxEmpty, ComboboxOption, Details, DetailsContent, DetailsSummary, Dialog, DialogBlock, DialogTrigger, DialogTriggerContext, Divider as Divider2, Dropdown as Dropdown2, DropdownButton, DropdownHeading, DropdownItem, DropdownList, DropdownTrigger, DropdownTriggerContext, EXPERIMENTAL_AvatarStack, EXPERIMENTAL_Suggestion, EXPERIMENTAL_SuggestionClear, EXPERIMENTAL_SuggestionEmpty, EXPERIMENTAL_SuggestionInput, EXPERIMENTAL_SuggestionList, EXPERIMENTAL_SuggestionOption, ErrorSummary, ErrorSummaryHeading, ErrorSummaryItem, ErrorSummaryLink, ErrorSummaryList, Field, FieldAffix, FieldAffixes, FieldCounter, FieldDescription, Fieldset, FieldsetDescription, FieldsetLegend, Heading, Input, Label, Link as Link2, List, ListItem, ListOrdered, ListUnordered, Pagination, PaginationButton, PaginationItem, PaginationList, Paragraph, Popover, PopoverTrigger, PopoverTriggerContext, Radio, RovingFocusItem, RovingFocusRoot, Search, SearchButton, SearchClear, SearchInput, Select, SelectOptgroup, SelectOption, Skeleton, SkipLink, Spinner as Spinner2, Switch, Table as Table2, TableBody, TableCell, TableFoot, TableHead, TableHeaderCell, TableRow, Tabs, TabsList, TabsPanel, TabsTab, Tag, Textarea, Textfield, ToggleGroup, ToggleGroupItem, Tooltip, ValidationMessage as ValidationMessage2, omit, useCheckboxGroup, useDebounceCallback, useIsomorphicLayoutEffect, useMediaQuery, usePagination, useRadioGroup, useSynchronizedAnimation } from "@digdir/designsystemet-react";
7
7
  import { Slot } from "@radix-ui/react-slot";
8
8
  var jsxRuntime = { exports: {} };
9
9
  var reactJsxRuntime_production = {};
@@ -11,7 +11,7 @@ var hasRequiredReactJsxRuntime_production;
11
11
  function requireReactJsxRuntime_production() {
12
12
  if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
13
13
  hasRequiredReactJsxRuntime_production = 1;
14
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
14
+ var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
15
15
  function jsxProd(type, config, maybeKey) {
16
16
  var key = null;
17
17
  void 0 !== maybeKey && (key = "" + maybeKey);
@@ -250,7 +250,7 @@ function requireReactJsxRuntime_development() {
250
250
  function isValidElement2(object) {
251
251
  return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
252
252
  }
253
- 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() {
253
+ 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() {
254
254
  return null;
255
255
  };
256
256
  React = {
@@ -470,7 +470,7 @@ function DefaultLabel(t0) {
470
470
  const text3 = defaultLabelText?.[2];
471
471
  let t1;
472
472
  let t2;
473
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
473
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
474
474
  t1 = /* @__PURE__ */ jsxRuntimeExports.jsx(CloudUpIcon, { title: "Cloud" });
475
475
  t2 = {
476
476
  display: "flex",
@@ -483,7 +483,7 @@ function DefaultLabel(t0) {
483
483
  t2 = $[1];
484
484
  }
485
485
  let t3;
486
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
486
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
487
487
  t3 = {
488
488
  textDecoration: "underline"
489
489
  };
@@ -909,17 +909,25 @@ const FilePicker = Object.assign(FilePicker$1, {
909
909
  Files: FilePickerFiles,
910
910
  Errors: FilePickerErrors
911
911
  });
912
+ const HeaderContext = createContext({
913
+ links: [],
914
+ headerRef: {
915
+ current: null
916
+ }
917
+ });
912
918
  function Header$1(t0) {
913
- const $ = compilerRuntimeExports.c(12);
919
+ const $ = compilerRuntimeExports.c(23);
914
920
  let children;
915
921
  let className;
916
922
  let ref;
917
923
  let rest;
924
+ let t1;
918
925
  if ($[0] !== t0) {
919
926
  ({
920
927
  ref,
921
928
  className,
922
929
  children,
930
+ links: t1,
923
931
  ...rest
924
932
  } = t0);
925
933
  $[0] = t0;
@@ -927,155 +935,154 @@ function Header$1(t0) {
927
935
  $[2] = className;
928
936
  $[3] = ref;
929
937
  $[4] = rest;
938
+ $[5] = t1;
930
939
  } else {
931
940
  children = $[1];
932
941
  className = $[2];
933
942
  ref = $[3];
934
943
  rest = $[4];
944
+ t1 = $[5];
935
945
  }
936
- let t1;
937
- if ($[5] !== className) {
938
- t1 = clsx("at-header", className);
939
- $[5] = className;
946
+ let t2;
947
+ if ($[6] !== t1) {
948
+ t2 = t1 === void 0 ? [] : t1;
940
949
  $[6] = t1;
950
+ $[7] = t2;
941
951
  } else {
942
- t1 = $[6];
952
+ t2 = $[7];
943
953
  }
944
- let t2;
945
- if ($[7] !== children || $[8] !== ref || $[9] !== rest || $[10] !== t1) {
946
- t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref, className: t1, ...rest, children });
947
- $[7] = children;
948
- $[8] = ref;
949
- $[9] = rest;
950
- $[10] = t1;
951
- $[11] = t2;
954
+ const links = t2;
955
+ const internalRef = useRef(null);
956
+ const headerRef = ref ?? internalRef;
957
+ let t3;
958
+ if ($[8] !== headerRef || $[9] !== links) {
959
+ t3 = {
960
+ links,
961
+ headerRef
962
+ };
963
+ $[8] = headerRef;
964
+ $[9] = links;
965
+ $[10] = t3;
952
966
  } else {
953
- t2 = $[11];
967
+ t3 = $[10];
954
968
  }
955
- return t2;
956
- }
957
- function HeaderDefaultLogo(t0) {
958
- const $ = compilerRuntimeExports.c(23);
959
- const {
960
- width: t1,
961
- height: t2
962
- } = t0;
963
- const width = t1 === void 0 ? 48 : t1;
964
- const height = t2 === void 0 ? 40 : t2;
965
- let t10;
966
- let t11;
967
- let t12;
968
- let t13;
969
- let t14;
970
- let t15;
971
- let t16;
972
- let t17;
973
- let t18;
974
- let t19;
975
- let t20;
976
- let t21;
977
- let t22;
978
- let t3;
979
969
  let t4;
970
+ if ($[11] !== className) {
971
+ t4 = clsx("at-header", className);
972
+ $[11] = className;
973
+ $[12] = t4;
974
+ } else {
975
+ t4 = $[12];
976
+ }
980
977
  let t5;
978
+ if ($[13] !== children) {
979
+ t5 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "at-header__container", children });
980
+ $[13] = children;
981
+ $[14] = t5;
982
+ } else {
983
+ t5 = $[14];
984
+ }
981
985
  let t6;
986
+ if ($[15] !== headerRef || $[16] !== rest || $[17] !== t4 || $[18] !== t5) {
987
+ t6 = /* @__PURE__ */ jsxRuntimeExports.jsx("header", { ref: headerRef, className: t4, ...rest, children: t5 });
988
+ $[15] = headerRef;
989
+ $[16] = rest;
990
+ $[17] = t4;
991
+ $[18] = t5;
992
+ $[19] = t6;
993
+ } else {
994
+ t6 = $[19];
995
+ }
982
996
  let t7;
983
- let t8;
984
- let t9;
985
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
986
- t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M39.6146 39.0748C44.2288 34.9752 47.1325 29.0195 47.1325 22.3899C47.1325 10.0245 37.0294 6.10352e-05 24.567 6.10352e-05C12.1047 6.10352e-05 2.00159 10.0245 2.00159 22.3899C2.00159 29.0189 4.90531 34.9752 9.51947 39.0748H39.6146Z", fill: "#B3E5DF" });
987
- t4 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "16.7253", y: "20.4756", width: "2.08381", height: "0.108768", fill: "#085E55" });
988
- t5 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "34.2183", y: "6.36298", width: "2.08381", height: "0.108768", fill: "#085E55" });
989
- t6 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "7.67719", y: "13.5688", width: "2.82411", height: "0.108768", fill: "#085E55" });
990
- t7 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "6.27887", y: "12.8889", width: "2.82411", height: "0.108768", fill: "#085E55" });
991
- t8 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "37.3441", y: "15.7985", width: "2.82411", height: "0.108768", fill: "#085E55" });
992
- t9 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "36.1102", y: "16.4512", width: "2.82411", height: "0.108768", fill: "#085E55" });
993
- t10 = /* @__PURE__ */ jsxRuntimeExports.jsx("ellipse", { cx: "30.2138", cy: "10.6896", rx: "4.8805", ry: "4.84016", fill: "white" });
994
- 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" });
995
- t12 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { y: "38.9753", width: "48", height: "0.29752", fill: "black" });
996
- 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" });
997
- 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" });
998
- 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" });
999
- 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" });
1000
- 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" });
1001
- 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" });
1002
- 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" });
1003
- 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" });
1004
- t21 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M18.2147 37.8959H39.8588V38.8887H18.2147V37.8959Z", fill: "#085E55" });
1005
- t22 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M26.1426 38.8138H39.8588L42.353 28.5516H28.6367L26.1426 38.8138Z", fill: "#085E55" });
1006
- $[0] = t10;
1007
- $[1] = t11;
1008
- $[2] = t12;
1009
- $[3] = t13;
1010
- $[4] = t14;
1011
- $[5] = t15;
1012
- $[6] = t16;
1013
- $[7] = t17;
1014
- $[8] = t18;
1015
- $[9] = t19;
1016
- $[10] = t20;
1017
- $[11] = t21;
1018
- $[12] = t22;
1019
- $[13] = t3;
1020
- $[14] = t4;
1021
- $[15] = t5;
1022
- $[16] = t6;
1023
- $[17] = t7;
1024
- $[18] = t8;
1025
- $[19] = t9;
997
+ if ($[20] !== t3 || $[21] !== t6) {
998
+ t7 = /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderContext, { value: t3, children: t6 });
999
+ $[20] = t3;
1000
+ $[21] = t6;
1001
+ $[22] = t7;
1026
1002
  } else {
1027
- t10 = $[0];
1028
- t11 = $[1];
1029
- t12 = $[2];
1030
- t13 = $[3];
1031
- t14 = $[4];
1032
- t15 = $[5];
1033
- t16 = $[6];
1034
- t17 = $[7];
1035
- t18 = $[8];
1036
- t19 = $[9];
1037
- t20 = $[10];
1038
- t21 = $[11];
1039
- t22 = $[12];
1040
- t3 = $[13];
1041
- t4 = $[14];
1042
- t5 = $[15];
1043
- t6 = $[16];
1044
- t7 = $[17];
1045
- t8 = $[18];
1046
- t9 = $[19];
1003
+ t7 = $[22];
1047
1004
  }
1048
- let t23;
1049
- if ($[20] !== height || $[21] !== width) {
1050
- t23 = /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width, height, viewBox: "0 0 48 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1051
- t3,
1052
- t4,
1053
- t5,
1054
- t6,
1055
- t7,
1056
- t8,
1057
- t9,
1058
- t10,
1059
- t11,
1060
- t12,
1061
- t13,
1062
- t14,
1063
- t15,
1064
- t16,
1065
- t17,
1066
- t18,
1067
- t19,
1068
- t20,
1069
- t21,
1070
- t22
1071
- ] });
1072
- $[20] = height;
1073
- $[21] = width;
1074
- $[22] = t23;
1005
+ return t7;
1006
+ }
1007
+ function HeaderIllustration(t0) {
1008
+ const $ = compilerRuntimeExports.c(10);
1009
+ let children;
1010
+ let className;
1011
+ let rest;
1012
+ if ($[0] !== t0) {
1013
+ ({
1014
+ className,
1015
+ children,
1016
+ ...rest
1017
+ } = t0);
1018
+ $[0] = t0;
1019
+ $[1] = children;
1020
+ $[2] = className;
1021
+ $[3] = rest;
1075
1022
  } else {
1076
- t23 = $[22];
1023
+ children = $[1];
1024
+ className = $[2];
1025
+ rest = $[3];
1077
1026
  }
1078
- return t23;
1027
+ let t1;
1028
+ if ($[4] !== className) {
1029
+ t1 = clsx("at-header__illustration", className);
1030
+ $[4] = className;
1031
+ $[5] = t1;
1032
+ } else {
1033
+ t1 = $[5];
1034
+ }
1035
+ let t2;
1036
+ if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
1037
+ t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, ...rest, children });
1038
+ $[6] = children;
1039
+ $[7] = rest;
1040
+ $[8] = t1;
1041
+ $[9] = t2;
1042
+ } else {
1043
+ t2 = $[9];
1044
+ }
1045
+ return t2;
1046
+ }
1047
+ function HeaderLogo(t0) {
1048
+ const $ = compilerRuntimeExports.c(10);
1049
+ let children;
1050
+ let className;
1051
+ let rest;
1052
+ if ($[0] !== t0) {
1053
+ ({
1054
+ className,
1055
+ children,
1056
+ ...rest
1057
+ } = t0);
1058
+ $[0] = t0;
1059
+ $[1] = children;
1060
+ $[2] = className;
1061
+ $[3] = rest;
1062
+ } else {
1063
+ children = $[1];
1064
+ className = $[2];
1065
+ rest = $[3];
1066
+ }
1067
+ let t1;
1068
+ if ($[4] !== className) {
1069
+ t1 = clsx("at-header__logo", className);
1070
+ $[4] = className;
1071
+ $[5] = t1;
1072
+ } else {
1073
+ t1 = $[5];
1074
+ }
1075
+ let t2;
1076
+ if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
1077
+ t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, ...rest, children });
1078
+ $[6] = children;
1079
+ $[7] = rest;
1080
+ $[8] = t1;
1081
+ $[9] = t2;
1082
+ } else {
1083
+ t2 = $[9];
1084
+ }
1085
+ return t2;
1079
1086
  }
1080
1087
  const useIsomorphicLayoutEffect2 = typeof window !== "undefined" ? useLayoutEffect : useEffect;
1081
1088
  const IS_SERVER = typeof window === "undefined";
@@ -1173,344 +1180,338 @@ function useMediaQuery2(query, t0) {
1173
1180
  useIsomorphicLayoutEffect2(t7, t8);
1174
1181
  return matches;
1175
1182
  }
1176
- function HeaderTitleDropdown(t0) {
1177
- const $ = compilerRuntimeExports.c(44);
1183
+ function HeaderMenu(t0) {
1184
+ const $ = compilerRuntimeExports.c(52);
1178
1185
  let children;
1179
1186
  let className;
1180
- let controls;
1181
- let links;
1182
1187
  let rest;
1183
- let userName;
1188
+ let t1;
1189
+ let t2;
1190
+ let triggerContent;
1184
1191
  if ($[0] !== t0) {
1185
1192
  ({
1186
1193
  className,
1187
- controls,
1188
- links,
1189
- userName,
1190
1194
  children,
1195
+ triggerContent,
1196
+ mobileMenuText: t1,
1197
+ closeButtonText: t2,
1191
1198
  ...rest
1192
1199
  } = t0);
1193
1200
  $[0] = t0;
1194
1201
  $[1] = children;
1195
1202
  $[2] = className;
1196
- $[3] = controls;
1197
- $[4] = links;
1198
- $[5] = rest;
1199
- $[6] = userName;
1203
+ $[3] = rest;
1204
+ $[4] = t1;
1205
+ $[5] = t2;
1206
+ $[6] = triggerContent;
1200
1207
  } else {
1201
1208
  children = $[1];
1202
1209
  className = $[2];
1203
- controls = $[3];
1204
- links = $[4];
1205
- rest = $[5];
1206
- userName = $[6];
1210
+ rest = $[3];
1211
+ t1 = $[4];
1212
+ t2 = $[5];
1213
+ triggerContent = $[6];
1207
1214
  }
1215
+ const mobileMenuText = t1 === void 0 ? "Meny" : t1;
1216
+ const closeButtonText = t2 === void 0 ? "Lukk" : t2;
1208
1217
  const [open, setOpen] = useState(false);
1209
- const id = useId();
1210
- const isMobile = useMediaQuery2("(max-width: 768px)");
1211
- let t1;
1212
- if ($[7] !== className) {
1213
- t1 = clsx(className);
1214
- $[7] = className;
1215
- $[8] = t1;
1218
+ const [backdropTop, setBackdropTop] = useState(0);
1219
+ const {
1220
+ links,
1221
+ headerRef
1222
+ } = use(HeaderContext);
1223
+ const isMobile = useMediaQuery2("(max-width: 48rem)");
1224
+ let t3;
1225
+ let t4;
1226
+ if ($[7] !== headerRef || $[8] !== open) {
1227
+ t3 = () => {
1228
+ if (!open || !headerRef.current) {
1229
+ return;
1230
+ }
1231
+ const updateBackdropPosition = () => {
1232
+ const rect = headerRef.current?.getBoundingClientRect();
1233
+ if (rect) {
1234
+ setBackdropTop(rect.bottom);
1235
+ }
1236
+ };
1237
+ updateBackdropPosition();
1238
+ window.addEventListener("scroll", updateBackdropPosition, true);
1239
+ window.addEventListener("resize", updateBackdropPosition);
1240
+ return () => {
1241
+ window.removeEventListener("scroll", updateBackdropPosition, true);
1242
+ window.removeEventListener("resize", updateBackdropPosition);
1243
+ };
1244
+ };
1245
+ t4 = [open, headerRef];
1246
+ $[7] = headerRef;
1247
+ $[8] = open;
1248
+ $[9] = t3;
1249
+ $[10] = t4;
1216
1250
  } else {
1217
- t1 = $[8];
1251
+ t3 = $[9];
1252
+ t4 = $[10];
1218
1253
  }
1219
- let t2;
1220
- if ($[9] !== open) {
1221
- t2 = () => setOpen(!open);
1222
- $[9] = open;
1223
- $[10] = t2;
1254
+ useLayoutEffect(t3, t4);
1255
+ let t5;
1256
+ if ($[11] !== className) {
1257
+ t5 = clsx("at-header__right", className);
1258
+ $[11] = className;
1259
+ $[12] = t5;
1224
1260
  } else {
1225
- t2 = $[10];
1261
+ t5 = $[12];
1226
1262
  }
1227
- const t3 = isMobile ? "primary" : "tertiary";
1228
- let t4;
1229
- if ($[11] !== isMobile || $[12] !== open || $[13] !== userName) {
1230
- t4 = isMobile ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
1263
+ const t6 = isMobile ? "primary" : "tertiary";
1264
+ let t7;
1265
+ if ($[13] !== isMobile || $[14] !== mobileMenuText || $[15] !== open || $[16] !== triggerContent) {
1266
+ t7 = isMobile ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
1231
1267
  open ? /* @__PURE__ */ jsxRuntimeExports.jsx(XMarkIcon, { "aria-hidden": true }) : /* @__PURE__ */ jsxRuntimeExports.jsx(MenuHamburgerIcon, { "aria-hidden": true }),
1232
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "at-header__title-dropdown-text", children: "Meny" })
1268
+ mobileMenuText
1233
1269
  ] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
1234
- userName,
1270
+ triggerContent,
1235
1271
  open ? /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronUpIcon, { "aria-hidden": true }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronDownIcon, { "aria-hidden": true })
1236
1272
  ] });
1237
- $[11] = isMobile;
1238
- $[12] = open;
1239
- $[13] = userName;
1240
- $[14] = t4;
1273
+ $[13] = isMobile;
1274
+ $[14] = mobileMenuText;
1275
+ $[15] = open;
1276
+ $[16] = triggerContent;
1277
+ $[17] = t7;
1241
1278
  } else {
1242
- t4 = $[14];
1279
+ t7 = $[17];
1243
1280
  }
1244
- let t5;
1245
- if ($[15] !== t2 || $[16] !== t3 || $[17] !== t4) {
1246
- t5 = /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Trigger, { onClick: t2, "data-size": "sm", variant: t3, className: "at-header__title-dropdown-trigger", children: t4 });
1247
- $[15] = t2;
1248
- $[16] = t3;
1249
- $[17] = t4;
1250
- $[18] = t5;
1281
+ let t8;
1282
+ if ($[18] !== t6 || $[19] !== t7) {
1283
+ t8 = /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Trigger, { "data-size": "sm", variant: t6, children: t7 });
1284
+ $[18] = t6;
1285
+ $[19] = t7;
1286
+ $[20] = t8;
1251
1287
  } else {
1252
- t5 = $[18];
1288
+ t8 = $[20];
1253
1289
  }
1254
- let t6;
1255
- if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
1256
- t6 = () => setOpen(false);
1257
- $[19] = t6;
1290
+ let t10;
1291
+ let t9;
1292
+ if ($[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1293
+ t9 = () => setOpen(true);
1294
+ t10 = () => setOpen(false);
1295
+ $[21] = t10;
1296
+ $[22] = t9;
1258
1297
  } else {
1259
- t6 = $[19];
1298
+ t10 = $[21];
1299
+ t9 = $[22];
1260
1300
  }
1261
- let t7;
1262
- if ($[20] !== children || $[21] !== links) {
1263
- t7 = children ? Children.map(children, _temp$1) : links?.map(_temp2$1);
1264
- $[20] = children;
1265
- $[21] = links;
1266
- $[22] = t7;
1301
+ let t11;
1302
+ if ($[23] !== links) {
1303
+ t11 = links?.map(_temp$1);
1304
+ $[23] = links;
1305
+ $[24] = t11;
1267
1306
  } else {
1268
- t7 = $[22];
1307
+ t11 = $[24];
1269
1308
  }
1270
- let t8;
1271
- if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
1272
- t8 = /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("at-header__title-dropdown-item-mobile at-header__title-dropdown-controls"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {}) }) });
1273
- $[23] = t8;
1309
+ let t12;
1310
+ if ($[25] !== links) {
1311
+ t12 = links && links.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("at-header__dropdown-item-mobile at-header__dropdown-controls"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {}) }) });
1312
+ $[25] = links;
1313
+ $[26] = t12;
1274
1314
  } else {
1275
- t8 = $[23];
1315
+ t12 = $[26];
1276
1316
  }
1277
- let t9;
1278
- if ($[24] !== controls || $[25] !== id) {
1279
- t9 = controls?.map((control, index_0) => /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "at-header__title-dropdown-controls", children: control }) }, id + "-control-" + index_0));
1280
- $[24] = controls;
1281
- $[25] = id;
1282
- $[26] = t9;
1317
+ let t13;
1318
+ if ($[27] !== children) {
1319
+ t13 = children && /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "at-header__dropdown-controls", children }) });
1320
+ $[27] = children;
1321
+ $[28] = t13;
1283
1322
  } else {
1284
- t9 = $[26];
1323
+ t13 = $[28];
1285
1324
  }
1286
- let t10;
1287
- if ($[27] !== t7 || $[28] !== t9) {
1288
- t10 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown.List, { children: [
1289
- t7,
1290
- t8,
1291
- t9
1325
+ let t14;
1326
+ if ($[29] !== t11 || $[30] !== t12 || $[31] !== t13) {
1327
+ t14 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown.List, { children: [
1328
+ t11,
1329
+ t12,
1330
+ t13
1292
1331
  ] });
1293
- $[27] = t7;
1294
- $[28] = t9;
1295
- $[29] = t10;
1332
+ $[29] = t11;
1333
+ $[30] = t12;
1334
+ $[31] = t13;
1335
+ $[32] = t14;
1296
1336
  } else {
1297
- t10 = $[29];
1337
+ t14 = $[32];
1298
1338
  }
1299
- let t11;
1300
- if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
1301
- t11 = /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "at-header__title-dropdown-close-mobile", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { type: "button", variant: "secondary", onClick: () => setOpen(false), children: [
1302
- /* @__PURE__ */ jsxRuntimeExports.jsx(XMarkIcon, { "aria-hidden": true }),
1303
- "Lukk"
1339
+ let t15;
1340
+ let t16;
1341
+ if ($[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1342
+ t15 = () => setOpen(false);
1343
+ t16 = /* @__PURE__ */ jsxRuntimeExports.jsx(XMarkIcon, { "aria-hidden": true });
1344
+ $[33] = t15;
1345
+ $[34] = t16;
1346
+ } else {
1347
+ t15 = $[33];
1348
+ t16 = $[34];
1349
+ }
1350
+ let t17;
1351
+ if ($[35] !== closeButtonText) {
1352
+ t17 = /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "at-header__dropdown-close-mobile", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { type: "button", variant: "secondary", onClick: t15, children: [
1353
+ t16,
1354
+ closeButtonText
1304
1355
  ] }) }) });
1305
- $[30] = t11;
1356
+ $[35] = closeButtonText;
1357
+ $[36] = t17;
1306
1358
  } else {
1307
- t11 = $[30];
1359
+ t17 = $[36];
1308
1360
  }
1309
- let t12;
1310
- if ($[31] !== open || $[32] !== t10) {
1311
- t12 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown, { open, onClose: t6, placement: "bottom", className: "at-header__title-dropdown-content", children: [
1312
- t10,
1313
- t11
1361
+ let t18;
1362
+ if ($[37] !== open || $[38] !== t14 || $[39] !== t17) {
1363
+ t18 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown, { open, onOpen: t9, onClose: t10, placement: "bottom", className: "at-header__dropdown-content", children: [
1364
+ t14,
1365
+ t17
1314
1366
  ] });
1315
- $[31] = open;
1316
- $[32] = t10;
1317
- $[33] = t12;
1367
+ $[37] = open;
1368
+ $[38] = t14;
1369
+ $[39] = t17;
1370
+ $[40] = t18;
1318
1371
  } else {
1319
- t12 = $[33];
1372
+ t18 = $[40];
1320
1373
  }
1321
- let t13;
1322
- if ($[34] !== t12 || $[35] !== t5) {
1323
- t13 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown.TriggerContext, { children: [
1324
- t5,
1325
- t12
1374
+ let t19;
1375
+ if ($[41] !== t18 || $[42] !== t8) {
1376
+ t19 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown.TriggerContext, { children: [
1377
+ t8,
1378
+ t18
1326
1379
  ] });
1327
- $[34] = t12;
1328
- $[35] = t5;
1329
- $[36] = t13;
1380
+ $[41] = t18;
1381
+ $[42] = t8;
1382
+ $[43] = t19;
1330
1383
  } else {
1331
- t13 = $[36];
1384
+ t19 = $[43];
1332
1385
  }
1333
- let t14;
1334
- if ($[37] !== open) {
1335
- t14 = open ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "aria-hidden": true, className: "at-header__title-dropdown-backdrop" }) : null;
1336
- $[37] = open;
1337
- $[38] = t14;
1386
+ let t20;
1387
+ if ($[44] !== backdropTop || $[45] !== open) {
1388
+ t20 = open ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "aria-hidden": true, className: "at-header__dropdown-backdrop", style: {
1389
+ top: backdropTop
1390
+ } }) : null;
1391
+ $[44] = backdropTop;
1392
+ $[45] = open;
1393
+ $[46] = t20;
1338
1394
  } else {
1339
- t14 = $[38];
1395
+ t20 = $[46];
1340
1396
  }
1341
- let t15;
1342
- if ($[39] !== rest || $[40] !== t1 || $[41] !== t13 || $[42] !== t14) {
1343
- t15 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t1, ...rest, children: [
1344
- t13,
1345
- t14
1397
+ let t21;
1398
+ if ($[47] !== rest || $[48] !== t19 || $[49] !== t20 || $[50] !== t5) {
1399
+ t21 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t5, ...rest, children: [
1400
+ t19,
1401
+ t20
1346
1402
  ] });
1347
- $[39] = rest;
1348
- $[40] = t1;
1349
- $[41] = t13;
1350
- $[42] = t14;
1351
- $[43] = t15;
1403
+ $[47] = rest;
1404
+ $[48] = t19;
1405
+ $[49] = t20;
1406
+ $[50] = t5;
1407
+ $[51] = t21;
1352
1408
  } else {
1353
- t15 = $[43];
1409
+ t21 = $[51];
1354
1410
  }
1355
- return t15;
1356
- }
1357
- function _temp2$1(link) {
1358
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("at-header__title-dropdown-controls", "at-header__title-dropdown-item-mobile"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { href: link.href, className: clsx("at-header__title-link"), children: link.label }) }) }, "nav-" + link.href);
1411
+ return t21;
1359
1412
  }
1360
- function _temp$1(child, index) {
1361
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("at-header__title-dropdown-controls", "at-header__title-dropdown-item-mobile"), children: isValidElement(child) ? /* @__PURE__ */ jsxRuntimeExports.jsx(Slot, { className: clsx("at-header__title-link", "ds-link"), children: child }) : child }) }, "nav-" + index);
1413
+ function _temp$1(link, index) {
1414
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("at-header__dropdown-controls", "at-header__dropdown-item-mobile"), children: isValidElement(link) ? /* @__PURE__ */ jsxRuntimeExports.jsx(Slot, { className: clsx("at-header__link", "ds-link"), children: link }) : link }) }, "nav-" + index);
1362
1415
  }
1363
- function HeaderTitleLinks(t0) {
1364
- const $ = compilerRuntimeExports.c(14);
1365
- let children;
1416
+ function HeaderNavbar(t0) {
1417
+ const $ = compilerRuntimeExports.c(11);
1366
1418
  let className;
1367
- let links;
1368
1419
  let rest;
1369
1420
  if ($[0] !== t0) {
1370
1421
  ({
1371
1422
  className,
1372
- links,
1373
- children,
1374
1423
  ...rest
1375
1424
  } = t0);
1376
1425
  $[0] = t0;
1377
- $[1] = children;
1378
- $[2] = className;
1379
- $[3] = links;
1380
- $[4] = rest;
1426
+ $[1] = className;
1427
+ $[2] = rest;
1381
1428
  } else {
1382
- children = $[1];
1383
- className = $[2];
1384
- links = $[3];
1385
- rest = $[4];
1429
+ className = $[1];
1430
+ rest = $[2];
1386
1431
  }
1432
+ const {
1433
+ links
1434
+ } = use(HeaderContext);
1387
1435
  let t1;
1388
- if ($[5] !== className) {
1389
- t1 = clsx(className);
1390
- $[5] = className;
1391
- $[6] = t1;
1436
+ if ($[3] !== className) {
1437
+ t1 = clsx("at-header__center", className);
1438
+ $[3] = className;
1439
+ $[4] = t1;
1392
1440
  } else {
1393
- t1 = $[6];
1441
+ t1 = $[4];
1394
1442
  }
1395
1443
  let t2;
1396
- if ($[7] !== children || $[8] !== links) {
1397
- t2 = children ? Children.map(children, _temp) : links?.map(_temp2);
1398
- $[7] = children;
1399
- $[8] = links;
1400
- $[9] = t2;
1444
+ if ($[5] !== links) {
1445
+ t2 = links?.map(_temp);
1446
+ $[5] = links;
1447
+ $[6] = t2;
1401
1448
  } else {
1402
- t2 = $[9];
1449
+ t2 = $[6];
1403
1450
  }
1404
1451
  let t3;
1405
- if ($[10] !== rest || $[11] !== t1 || $[12] !== t2) {
1452
+ if ($[7] !== rest || $[8] !== t1 || $[9] !== t2) {
1406
1453
  t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("nav", { className: t1, ...rest, children: t2 });
1407
- $[10] = rest;
1408
- $[11] = t1;
1409
- $[12] = t2;
1410
- $[13] = t3;
1454
+ $[7] = rest;
1455
+ $[8] = t1;
1456
+ $[9] = t2;
1457
+ $[10] = t3;
1411
1458
  } else {
1412
- t3 = $[13];
1459
+ t3 = $[10];
1413
1460
  }
1414
1461
  return t3;
1415
1462
  }
1416
- function _temp2(link) {
1417
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { href: link.href, className: clsx("at-header__title-link"), children: link.label }, link.href);
1418
- }
1419
- function _temp(child) {
1420
- if (isValidElement(child)) {
1421
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Slot, { className: clsx("at-header__title-link", "ds-link"), children: child });
1463
+ function _temp(link, idx) {
1464
+ if (isValidElement(link)) {
1465
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Slot, { className: clsx("at-header__link", "ds-link"), children: link }, link.key ?? idx);
1422
1466
  }
1423
- return child;
1467
+ return link;
1424
1468
  }
1425
- function HeaderTitleLogo(t0) {
1426
- const $ = compilerRuntimeExports.c(17);
1427
- let appName;
1469
+ function HeaderTitle(t0) {
1470
+ const $ = compilerRuntimeExports.c(10);
1471
+ let children;
1428
1472
  let className;
1429
- let logo;
1430
1473
  let rest;
1431
1474
  if ($[0] !== t0) {
1432
1475
  ({
1433
1476
  className,
1434
- logo,
1435
- appName,
1477
+ children,
1436
1478
  ...rest
1437
1479
  } = t0);
1438
1480
  $[0] = t0;
1439
- $[1] = appName;
1481
+ $[1] = children;
1440
1482
  $[2] = className;
1441
- $[3] = logo;
1442
- $[4] = rest;
1483
+ $[3] = rest;
1443
1484
  } else {
1444
- appName = $[1];
1485
+ children = $[1];
1445
1486
  className = $[2];
1446
- logo = $[3];
1447
- rest = $[4];
1487
+ rest = $[3];
1448
1488
  }
1449
1489
  let t1;
1450
- if ($[5] !== className) {
1451
- t1 = clsx(className);
1452
- $[5] = className;
1453
- $[6] = t1;
1490
+ if ($[4] !== className) {
1491
+ t1 = clsx("at-header__left", className);
1492
+ $[4] = className;
1493
+ $[5] = t1;
1454
1494
  } else {
1455
- t1 = $[6];
1495
+ t1 = $[5];
1456
1496
  }
1457
1497
  let t2;
1458
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
1459
- t2 = clsx("at-header__title-logo");
1460
- $[7] = t2;
1461
- } else {
1462
- t2 = $[7];
1463
- }
1464
- let t3;
1465
- if ($[8] !== logo) {
1466
- t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t2, children: logo });
1467
- $[8] = logo;
1468
- $[9] = t3;
1469
- } else {
1470
- t3 = $[9];
1471
- }
1472
- let t4;
1473
- if ($[10] !== appName) {
1474
- t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(Heading, { children: appName });
1475
- $[10] = appName;
1476
- $[11] = t4;
1477
- } else {
1478
- t4 = $[11];
1479
- }
1480
- let t5;
1481
- if ($[12] !== rest || $[13] !== t1 || $[14] !== t3 || $[15] !== t4) {
1482
- t5 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t1, ...rest, children: [
1483
- t3,
1484
- t4
1485
- ] });
1486
- $[12] = rest;
1487
- $[13] = t1;
1488
- $[14] = t3;
1489
- $[15] = t4;
1490
- $[16] = t5;
1498
+ if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
1499
+ t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, ...rest, children });
1500
+ $[6] = children;
1501
+ $[7] = rest;
1502
+ $[8] = t1;
1503
+ $[9] = t2;
1491
1504
  } else {
1492
- t5 = $[16];
1505
+ t2 = $[9];
1493
1506
  }
1494
- return t5;
1495
- }
1496
- function HeaderTitle({
1497
- className,
1498
- logo = /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderDefaultLogo, {}),
1499
- appName,
1500
- userName,
1501
- links = [],
1502
- controls = [],
1503
- children,
1504
- ...rest
1505
- }) {
1506
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("at-header__title-background", className), ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("at-header__title"), children: [
1507
- /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderTitleLogo, { className: clsx("at-header__title-left"), logo, appName }),
1508
- /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderTitleLinks, { className: clsx("at-header__title-center"), links, children }),
1509
- /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderTitleDropdown, { className: clsx("at-header__title-right"), links, userName, controls, children })
1510
- ] }) });
1507
+ return t2;
1511
1508
  }
1512
1509
  const Header = Object.assign(Header$1, {
1513
- Title: HeaderTitle
1510
+ Title: HeaderTitle,
1511
+ Illustration: HeaderIllustration,
1512
+ Logo: HeaderLogo,
1513
+ Navbar: HeaderNavbar,
1514
+ Menu: HeaderMenu
1514
1515
  });
1515
1516
  const LogoBlack = (t0) => {
1516
1517
  const $ = compilerRuntimeExports.c(20);
@@ -1536,7 +1537,7 @@ const LogoBlack = (t0) => {
1536
1537
  let t7;
1537
1538
  let t8;
1538
1539
  let t9;
1539
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1540
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1540
1541
  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" });
1541
1542
  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" });
1542
1543
  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" });
@@ -1646,7 +1647,7 @@ const LogoWhite = (t0) => {
1646
1647
  let t7;
1647
1648
  let t8;
1648
1649
  let t9;
1649
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1650
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1650
1651
  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" });
1651
1652
  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" });
1652
1653
  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" });
@@ -1806,7 +1807,7 @@ const LogoGreen = (t0) => {
1806
1807
  let t7;
1807
1808
  let t8;
1808
1809
  let t9;
1809
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1810
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1810
1811
  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" });
1811
1812
  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" });
1812
1813
  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" });
@@ -1932,6 +1933,7 @@ export {
1932
1933
  DropdownList,
1933
1934
  DropdownTrigger,
1934
1935
  DropdownTriggerContext,
1936
+ EXPERIMENTAL_AvatarStack,
1935
1937
  EXPERIMENTAL_Suggestion,
1936
1938
  EXPERIMENTAL_SuggestionClear,
1937
1939
  EXPERIMENTAL_SuggestionEmpty,
@@ -1957,9 +1959,13 @@ export {
1957
1959
  FilePickerErrors,
1958
1960
  FilePickerFiles,
1959
1961
  Header,
1960
- HeaderDefaultLogo,
1962
+ HeaderContext,
1963
+ HeaderIllustration,
1964
+ HeaderLogo,
1965
+ HeaderMenu,
1966
+ HeaderNavbar,
1961
1967
  HeaderTitle,
1962
- Heading2 as Heading,
1968
+ Heading,
1963
1969
  Input,
1964
1970
  Label,
1965
1971
  LightDarkLogo,