@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.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import require$$0, { createContext, use, useLayoutEffect, useEffect, useState, useId, Children, isValidElement } from "react";
3
- import { CloudUpIcon, FileTextIcon, TrashIcon, XMarkIcon, MenuHamburgerIcon, ChevronUpIcon, ChevronDownIcon } from "@navikt/aksel-icons";
2
+ import require$$0, { createContext, use, useRef, useLayoutEffect, useEffect, useState, isValidElement } from "react";
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);
@@ -40,7 +40,7 @@ var hasRequiredReactJsxRuntime_development;
40
40
  function requireReactJsxRuntime_development() {
41
41
  if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
42
42
  hasRequiredReactJsxRuntime_development = 1;
43
- "production" !== process.env.NODE_ENV && function() {
43
+ "production" !== process.env.NODE_ENV && (function() {
44
44
  function getComponentNameFromType(type) {
45
45
  if (null == type) return null;
46
46
  if ("function" === typeof type)
@@ -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 = {
@@ -289,7 +289,7 @@ function requireReactJsxRuntime_development() {
289
289
  trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
290
290
  );
291
291
  };
292
- }();
292
+ })();
293
293
  return reactJsxRuntime_development;
294
294
  }
295
295
  var hasRequiredJsxRuntime;
@@ -321,7 +321,7 @@ var hasRequiredReactCompilerRuntime_development;
321
321
  function requireReactCompilerRuntime_development() {
322
322
  if (hasRequiredReactCompilerRuntime_development) return reactCompilerRuntime_development;
323
323
  hasRequiredReactCompilerRuntime_development = 1;
324
- "production" !== process.env.NODE_ENV && function() {
324
+ "production" !== process.env.NODE_ENV && (function() {
325
325
  var ReactSharedInternals = require$$0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
326
326
  reactCompilerRuntime_development.c = function(size) {
327
327
  var dispatcher = ReactSharedInternals.H;
@@ -330,7 +330,7 @@ function requireReactCompilerRuntime_development() {
330
330
  );
331
331
  return dispatcher.useMemoCache(size);
332
332
  };
333
- }();
333
+ })();
334
334
  return reactCompilerRuntime_development;
335
335
  }
336
336
  var hasRequiredCompilerRuntime;
@@ -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
  };
@@ -856,13 +856,10 @@ function FilePickerFiles(t0) {
856
856
  } = t122;
857
857
  const size = formatFileSize(file.size);
858
858
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Table.Row, { "data-error": hasError, children: [
859
- /* @__PURE__ */ jsxRuntimeExports.jsx(Table.Cell, { title: file.name, className: "at-filepicker-files-file__name", "data-color": "info", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Link, { href: disabled ? void 0 : URL.createObjectURL(file), target: "_blank", rel: "noreferrer", "aria-disabled": disabled, children: [
860
- /* @__PURE__ */ jsxRuntimeExports.jsx(FileTextIcon, { "aria-hidden": "true", fontSize: "1.5em" }),
861
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "at-filepicker-files-file__text", children: file.name })
862
- ] }) }),
859
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Table.Cell, { title: file.name, className: "at-filepicker-files-file__name", children: /* @__PURE__ */ jsxRuntimeExports.jsx(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 }) }) }),
863
860
  /* @__PURE__ */ jsxRuntimeExports.jsx(Table.Cell, { title: size, children: size }),
864
- /* @__PURE__ */ jsxRuntimeExports.jsx(Table.Cell, { "data-color": "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { variant: "tertiary", "data-size": "sm", disabled, "aria-label": `Remove ${file.name}`, onClick: () => onRemove(id), children: [
865
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "at-filepicker-files-file__remove-text", children: removeButtonLabel }),
861
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Table.Cell, { "data-color": "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { variant: "tertiary", disabled, "aria-label": `Remove ${file.name}`, onClick: () => onRemove(id), className: "at-filepicker-files-file__button", children: [
862
+ removeButtonLabel,
866
863
  /* @__PURE__ */ jsxRuntimeExports.jsx(TrashIcon, { "aria-hidden": true })
867
864
  ] }) })
868
865
  ] }, id);
@@ -893,7 +890,7 @@ function FilePickerFiles(t0) {
893
890
  }
894
891
  let t12;
895
892
  if ($[33] !== rest || $[34] !== t11 || $[35] !== t4 || $[36] !== t9) {
896
- t12 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Table, { className: t4, ...rest, children: [
893
+ t12 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Table, { "data-color": "neutral", className: t4, ...rest, children: [
897
894
  t9,
898
895
  t11
899
896
  ] });
@@ -912,17 +909,25 @@ const FilePicker = Object.assign(FilePicker$1, {
912
909
  Files: FilePickerFiles,
913
910
  Errors: FilePickerErrors
914
911
  });
912
+ const HeaderContext = createContext({
913
+ links: [],
914
+ headerRef: {
915
+ current: null
916
+ }
917
+ });
915
918
  function Header$1(t0) {
916
- const $ = compilerRuntimeExports.c(12);
919
+ const $ = compilerRuntimeExports.c(23);
917
920
  let children;
918
921
  let className;
919
922
  let ref;
920
923
  let rest;
924
+ let t1;
921
925
  if ($[0] !== t0) {
922
926
  ({
923
927
  ref,
924
928
  className,
925
929
  children,
930
+ links: t1,
926
931
  ...rest
927
932
  } = t0);
928
933
  $[0] = t0;
@@ -930,155 +935,154 @@ function Header$1(t0) {
930
935
  $[2] = className;
931
936
  $[3] = ref;
932
937
  $[4] = rest;
938
+ $[5] = t1;
933
939
  } else {
934
940
  children = $[1];
935
941
  className = $[2];
936
942
  ref = $[3];
937
943
  rest = $[4];
944
+ t1 = $[5];
938
945
  }
939
- let t1;
940
- if ($[5] !== className) {
941
- t1 = clsx("at-header", className);
942
- $[5] = className;
946
+ let t2;
947
+ if ($[6] !== t1) {
948
+ t2 = t1 === void 0 ? [] : t1;
943
949
  $[6] = t1;
950
+ $[7] = t2;
944
951
  } else {
945
- t1 = $[6];
952
+ t2 = $[7];
946
953
  }
947
- let t2;
948
- if ($[7] !== children || $[8] !== ref || $[9] !== rest || $[10] !== t1) {
949
- t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref, className: t1, ...rest, children });
950
- $[7] = children;
951
- $[8] = ref;
952
- $[9] = rest;
953
- $[10] = t1;
954
- $[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;
955
966
  } else {
956
- t2 = $[11];
967
+ t3 = $[10];
957
968
  }
958
- return t2;
959
- }
960
- function HeaderDefaultLogo(t0) {
961
- const $ = compilerRuntimeExports.c(23);
962
- const {
963
- width: t1,
964
- height: t2
965
- } = t0;
966
- const width = t1 === void 0 ? 48 : t1;
967
- const height = t2 === void 0 ? 40 : t2;
968
- let t10;
969
- let t11;
970
- let t12;
971
- let t13;
972
- let t14;
973
- let t15;
974
- let t16;
975
- let t17;
976
- let t18;
977
- let t19;
978
- let t20;
979
- let t21;
980
- let t22;
981
- let t3;
982
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
+ }
983
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
+ }
984
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
+ }
985
996
  let t7;
986
- let t8;
987
- let t9;
988
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
989
- 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" });
990
- t4 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "16.7253", y: "20.4756", width: "2.08381", height: "0.108768", fill: "#085E55" });
991
- t5 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "34.2183", y: "6.36298", width: "2.08381", height: "0.108768", fill: "#085E55" });
992
- t6 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "7.67719", y: "13.5688", width: "2.82411", height: "0.108768", fill: "#085E55" });
993
- t7 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "6.27887", y: "12.8889", width: "2.82411", height: "0.108768", fill: "#085E55" });
994
- t8 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "37.3441", y: "15.7985", width: "2.82411", height: "0.108768", fill: "#085E55" });
995
- t9 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "36.1102", y: "16.4512", width: "2.82411", height: "0.108768", fill: "#085E55" });
996
- t10 = /* @__PURE__ */ jsxRuntimeExports.jsx("ellipse", { cx: "30.2138", cy: "10.6896", rx: "4.8805", ry: "4.84016", fill: "white" });
997
- 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" });
998
- t12 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { y: "38.9753", width: "48", height: "0.29752", fill: "black" });
999
- 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" });
1000
- 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" });
1001
- 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" });
1002
- 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" });
1003
- 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" });
1004
- 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" });
1005
- 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" });
1006
- 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" });
1007
- t21 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M18.2147 37.8959H39.8588V38.8887H18.2147V37.8959Z", fill: "#085E55" });
1008
- t22 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M26.1426 38.8138H39.8588L42.353 28.5516H28.6367L26.1426 38.8138Z", fill: "#085E55" });
1009
- $[0] = t10;
1010
- $[1] = t11;
1011
- $[2] = t12;
1012
- $[3] = t13;
1013
- $[4] = t14;
1014
- $[5] = t15;
1015
- $[6] = t16;
1016
- $[7] = t17;
1017
- $[8] = t18;
1018
- $[9] = t19;
1019
- $[10] = t20;
1020
- $[11] = t21;
1021
- $[12] = t22;
1022
- $[13] = t3;
1023
- $[14] = t4;
1024
- $[15] = t5;
1025
- $[16] = t6;
1026
- $[17] = t7;
1027
- $[18] = t8;
1028
- $[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;
1029
1002
  } else {
1030
- t10 = $[0];
1031
- t11 = $[1];
1032
- t12 = $[2];
1033
- t13 = $[3];
1034
- t14 = $[4];
1035
- t15 = $[5];
1036
- t16 = $[6];
1037
- t17 = $[7];
1038
- t18 = $[8];
1039
- t19 = $[9];
1040
- t20 = $[10];
1041
- t21 = $[11];
1042
- t22 = $[12];
1043
- t3 = $[13];
1044
- t4 = $[14];
1045
- t5 = $[15];
1046
- t6 = $[16];
1047
- t7 = $[17];
1048
- t8 = $[18];
1049
- t9 = $[19];
1003
+ t7 = $[22];
1050
1004
  }
1051
- let t23;
1052
- if ($[20] !== height || $[21] !== width) {
1053
- t23 = /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width, height, viewBox: "0 0 48 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1054
- t3,
1055
- t4,
1056
- t5,
1057
- t6,
1058
- t7,
1059
- t8,
1060
- t9,
1061
- t10,
1062
- t11,
1063
- t12,
1064
- t13,
1065
- t14,
1066
- t15,
1067
- t16,
1068
- t17,
1069
- t18,
1070
- t19,
1071
- t20,
1072
- t21,
1073
- t22
1074
- ] });
1075
- $[20] = height;
1076
- $[21] = width;
1077
- $[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;
1078
1022
  } else {
1079
- t23 = $[22];
1023
+ children = $[1];
1024
+ className = $[2];
1025
+ rest = $[3];
1080
1026
  }
1081
- 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;
1082
1086
  }
1083
1087
  const useIsomorphicLayoutEffect2 = typeof window !== "undefined" ? useLayoutEffect : useEffect;
1084
1088
  const IS_SERVER = typeof window === "undefined";
@@ -1176,344 +1180,338 @@ function useMediaQuery2(query, t0) {
1176
1180
  useIsomorphicLayoutEffect2(t7, t8);
1177
1181
  return matches;
1178
1182
  }
1179
- function HeaderTitleDropdown(t0) {
1180
- const $ = compilerRuntimeExports.c(44);
1183
+ function HeaderMenu(t0) {
1184
+ const $ = compilerRuntimeExports.c(52);
1181
1185
  let children;
1182
1186
  let className;
1183
- let controls;
1184
- let links;
1185
1187
  let rest;
1186
- let userName;
1188
+ let t1;
1189
+ let t2;
1190
+ let triggerContent;
1187
1191
  if ($[0] !== t0) {
1188
1192
  ({
1189
1193
  className,
1190
- controls,
1191
- links,
1192
- userName,
1193
1194
  children,
1195
+ triggerContent,
1196
+ mobileMenuText: t1,
1197
+ closeButtonText: t2,
1194
1198
  ...rest
1195
1199
  } = t0);
1196
1200
  $[0] = t0;
1197
1201
  $[1] = children;
1198
1202
  $[2] = className;
1199
- $[3] = controls;
1200
- $[4] = links;
1201
- $[5] = rest;
1202
- $[6] = userName;
1203
+ $[3] = rest;
1204
+ $[4] = t1;
1205
+ $[5] = t2;
1206
+ $[6] = triggerContent;
1203
1207
  } else {
1204
1208
  children = $[1];
1205
1209
  className = $[2];
1206
- controls = $[3];
1207
- links = $[4];
1208
- rest = $[5];
1209
- userName = $[6];
1210
+ rest = $[3];
1211
+ t1 = $[4];
1212
+ t2 = $[5];
1213
+ triggerContent = $[6];
1210
1214
  }
1215
+ const mobileMenuText = t1 === void 0 ? "Meny" : t1;
1216
+ const closeButtonText = t2 === void 0 ? "Lukk" : t2;
1211
1217
  const [open, setOpen] = useState(false);
1212
- const id = useId();
1213
- const isMobile = useMediaQuery2("(max-width: 768px)");
1214
- let t1;
1215
- if ($[7] !== className) {
1216
- t1 = clsx(className);
1217
- $[7] = className;
1218
- $[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;
1219
1250
  } else {
1220
- t1 = $[8];
1251
+ t3 = $[9];
1252
+ t4 = $[10];
1221
1253
  }
1222
- let t2;
1223
- if ($[9] !== open) {
1224
- t2 = () => setOpen(!open);
1225
- $[9] = open;
1226
- $[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;
1227
1260
  } else {
1228
- t2 = $[10];
1261
+ t5 = $[12];
1229
1262
  }
1230
- const t3 = isMobile ? "primary" : "tertiary";
1231
- let t4;
1232
- if ($[11] !== isMobile || $[12] !== open || $[13] !== userName) {
1233
- 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: [
1234
1267
  open ? /* @__PURE__ */ jsxRuntimeExports.jsx(XMarkIcon, { "aria-hidden": true }) : /* @__PURE__ */ jsxRuntimeExports.jsx(MenuHamburgerIcon, { "aria-hidden": true }),
1235
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "at-header__title-dropdown-text", children: "Meny" })
1268
+ mobileMenuText
1236
1269
  ] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
1237
- userName,
1270
+ triggerContent,
1238
1271
  open ? /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronUpIcon, { "aria-hidden": true }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronDownIcon, { "aria-hidden": true })
1239
1272
  ] });
1240
- $[11] = isMobile;
1241
- $[12] = open;
1242
- $[13] = userName;
1243
- $[14] = t4;
1273
+ $[13] = isMobile;
1274
+ $[14] = mobileMenuText;
1275
+ $[15] = open;
1276
+ $[16] = triggerContent;
1277
+ $[17] = t7;
1244
1278
  } else {
1245
- t4 = $[14];
1279
+ t7 = $[17];
1246
1280
  }
1247
- let t5;
1248
- if ($[15] !== t2 || $[16] !== t3 || $[17] !== t4) {
1249
- t5 = /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Trigger, { onClick: t2, "data-size": "sm", variant: t3, className: "at-header__title-dropdown-trigger", children: t4 });
1250
- $[15] = t2;
1251
- $[16] = t3;
1252
- $[17] = t4;
1253
- $[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;
1254
1287
  } else {
1255
- t5 = $[18];
1288
+ t8 = $[20];
1256
1289
  }
1257
- let t6;
1258
- if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
1259
- t6 = () => setOpen(false);
1260
- $[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;
1261
1297
  } else {
1262
- t6 = $[19];
1298
+ t10 = $[21];
1299
+ t9 = $[22];
1263
1300
  }
1264
- let t7;
1265
- if ($[20] !== children || $[21] !== links) {
1266
- t7 = children ? Children.map(children, _temp$1) : links?.map(_temp2$1);
1267
- $[20] = children;
1268
- $[21] = links;
1269
- $[22] = t7;
1301
+ let t11;
1302
+ if ($[23] !== links) {
1303
+ t11 = links?.map(_temp$1);
1304
+ $[23] = links;
1305
+ $[24] = t11;
1270
1306
  } else {
1271
- t7 = $[22];
1307
+ t11 = $[24];
1272
1308
  }
1273
- let t8;
1274
- if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
1275
- 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, {}) }) });
1276
- $[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;
1277
1314
  } else {
1278
- t8 = $[23];
1315
+ t12 = $[26];
1279
1316
  }
1280
- let t9;
1281
- if ($[24] !== controls || $[25] !== id) {
1282
- 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));
1283
- $[24] = controls;
1284
- $[25] = id;
1285
- $[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;
1286
1322
  } else {
1287
- t9 = $[26];
1323
+ t13 = $[28];
1288
1324
  }
1289
- let t10;
1290
- if ($[27] !== t7 || $[28] !== t9) {
1291
- t10 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown.List, { children: [
1292
- t7,
1293
- t8,
1294
- 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
1295
1331
  ] });
1296
- $[27] = t7;
1297
- $[28] = t9;
1298
- $[29] = t10;
1332
+ $[29] = t11;
1333
+ $[30] = t12;
1334
+ $[31] = t13;
1335
+ $[32] = t14;
1299
1336
  } else {
1300
- t10 = $[29];
1337
+ t14 = $[32];
1301
1338
  }
1302
- let t11;
1303
- if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
1304
- 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: [
1305
- /* @__PURE__ */ jsxRuntimeExports.jsx(XMarkIcon, { "aria-hidden": true }),
1306
- "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
1307
1355
  ] }) }) });
1308
- $[30] = t11;
1356
+ $[35] = closeButtonText;
1357
+ $[36] = t17;
1309
1358
  } else {
1310
- t11 = $[30];
1359
+ t17 = $[36];
1311
1360
  }
1312
- let t12;
1313
- if ($[31] !== open || $[32] !== t10) {
1314
- t12 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown, { open, onClose: t6, placement: "bottom", className: "at-header__title-dropdown-content", children: [
1315
- t10,
1316
- 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
1317
1366
  ] });
1318
- $[31] = open;
1319
- $[32] = t10;
1320
- $[33] = t12;
1367
+ $[37] = open;
1368
+ $[38] = t14;
1369
+ $[39] = t17;
1370
+ $[40] = t18;
1321
1371
  } else {
1322
- t12 = $[33];
1372
+ t18 = $[40];
1323
1373
  }
1324
- let t13;
1325
- if ($[34] !== t12 || $[35] !== t5) {
1326
- t13 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown.TriggerContext, { children: [
1327
- t5,
1328
- t12
1374
+ let t19;
1375
+ if ($[41] !== t18 || $[42] !== t8) {
1376
+ t19 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown.TriggerContext, { children: [
1377
+ t8,
1378
+ t18
1329
1379
  ] });
1330
- $[34] = t12;
1331
- $[35] = t5;
1332
- $[36] = t13;
1380
+ $[41] = t18;
1381
+ $[42] = t8;
1382
+ $[43] = t19;
1333
1383
  } else {
1334
- t13 = $[36];
1384
+ t19 = $[43];
1335
1385
  }
1336
- let t14;
1337
- if ($[37] !== open) {
1338
- t14 = open ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "aria-hidden": true, className: "at-header__title-dropdown-backdrop" }) : null;
1339
- $[37] = open;
1340
- $[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;
1341
1394
  } else {
1342
- t14 = $[38];
1395
+ t20 = $[46];
1343
1396
  }
1344
- let t15;
1345
- if ($[39] !== rest || $[40] !== t1 || $[41] !== t13 || $[42] !== t14) {
1346
- t15 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t1, ...rest, children: [
1347
- t13,
1348
- 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
1349
1402
  ] });
1350
- $[39] = rest;
1351
- $[40] = t1;
1352
- $[41] = t13;
1353
- $[42] = t14;
1354
- $[43] = t15;
1403
+ $[47] = rest;
1404
+ $[48] = t19;
1405
+ $[49] = t20;
1406
+ $[50] = t5;
1407
+ $[51] = t21;
1355
1408
  } else {
1356
- t15 = $[43];
1409
+ t21 = $[51];
1357
1410
  }
1358
- return t15;
1359
- }
1360
- function _temp2$1(link) {
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: /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { href: link.href, className: clsx("at-header__title-link"), children: link.label }) }) }, "nav-" + link.href);
1411
+ return t21;
1362
1412
  }
1363
- function _temp$1(child, index) {
1364
- 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);
1365
1415
  }
1366
- function HeaderTitleLinks(t0) {
1367
- const $ = compilerRuntimeExports.c(14);
1368
- let children;
1416
+ function HeaderNavbar(t0) {
1417
+ const $ = compilerRuntimeExports.c(11);
1369
1418
  let className;
1370
- let links;
1371
1419
  let rest;
1372
1420
  if ($[0] !== t0) {
1373
1421
  ({
1374
1422
  className,
1375
- links,
1376
- children,
1377
1423
  ...rest
1378
1424
  } = t0);
1379
1425
  $[0] = t0;
1380
- $[1] = children;
1381
- $[2] = className;
1382
- $[3] = links;
1383
- $[4] = rest;
1426
+ $[1] = className;
1427
+ $[2] = rest;
1384
1428
  } else {
1385
- children = $[1];
1386
- className = $[2];
1387
- links = $[3];
1388
- rest = $[4];
1429
+ className = $[1];
1430
+ rest = $[2];
1389
1431
  }
1432
+ const {
1433
+ links
1434
+ } = use(HeaderContext);
1390
1435
  let t1;
1391
- if ($[5] !== className) {
1392
- t1 = clsx(className);
1393
- $[5] = className;
1394
- $[6] = t1;
1436
+ if ($[3] !== className) {
1437
+ t1 = clsx("at-header__center", className);
1438
+ $[3] = className;
1439
+ $[4] = t1;
1395
1440
  } else {
1396
- t1 = $[6];
1441
+ t1 = $[4];
1397
1442
  }
1398
1443
  let t2;
1399
- if ($[7] !== children || $[8] !== links) {
1400
- t2 = children ? Children.map(children, _temp) : links?.map(_temp2);
1401
- $[7] = children;
1402
- $[8] = links;
1403
- $[9] = t2;
1444
+ if ($[5] !== links) {
1445
+ t2 = links?.map(_temp);
1446
+ $[5] = links;
1447
+ $[6] = t2;
1404
1448
  } else {
1405
- t2 = $[9];
1449
+ t2 = $[6];
1406
1450
  }
1407
1451
  let t3;
1408
- if ($[10] !== rest || $[11] !== t1 || $[12] !== t2) {
1452
+ if ($[7] !== rest || $[8] !== t1 || $[9] !== t2) {
1409
1453
  t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("nav", { className: t1, ...rest, children: t2 });
1410
- $[10] = rest;
1411
- $[11] = t1;
1412
- $[12] = t2;
1413
- $[13] = t3;
1454
+ $[7] = rest;
1455
+ $[8] = t1;
1456
+ $[9] = t2;
1457
+ $[10] = t3;
1414
1458
  } else {
1415
- t3 = $[13];
1459
+ t3 = $[10];
1416
1460
  }
1417
1461
  return t3;
1418
1462
  }
1419
- function _temp2(link) {
1420
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { href: link.href, className: clsx("at-header__title-link"), children: link.label }, link.href);
1421
- }
1422
- function _temp(child) {
1423
- if (isValidElement(child)) {
1424
- 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);
1425
1466
  }
1426
- return child;
1467
+ return link;
1427
1468
  }
1428
- function HeaderTitleLogo(t0) {
1429
- const $ = compilerRuntimeExports.c(17);
1430
- let appName;
1469
+ function HeaderTitle(t0) {
1470
+ const $ = compilerRuntimeExports.c(10);
1471
+ let children;
1431
1472
  let className;
1432
- let logo;
1433
1473
  let rest;
1434
1474
  if ($[0] !== t0) {
1435
1475
  ({
1436
1476
  className,
1437
- logo,
1438
- appName,
1477
+ children,
1439
1478
  ...rest
1440
1479
  } = t0);
1441
1480
  $[0] = t0;
1442
- $[1] = appName;
1481
+ $[1] = children;
1443
1482
  $[2] = className;
1444
- $[3] = logo;
1445
- $[4] = rest;
1483
+ $[3] = rest;
1446
1484
  } else {
1447
- appName = $[1];
1485
+ children = $[1];
1448
1486
  className = $[2];
1449
- logo = $[3];
1450
- rest = $[4];
1487
+ rest = $[3];
1451
1488
  }
1452
1489
  let t1;
1453
- if ($[5] !== className) {
1454
- t1 = clsx(className);
1455
- $[5] = className;
1456
- $[6] = t1;
1490
+ if ($[4] !== className) {
1491
+ t1 = clsx("at-header__left", className);
1492
+ $[4] = className;
1493
+ $[5] = t1;
1457
1494
  } else {
1458
- t1 = $[6];
1495
+ t1 = $[5];
1459
1496
  }
1460
1497
  let t2;
1461
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
1462
- t2 = clsx("at-header__title-logo");
1463
- $[7] = t2;
1464
- } else {
1465
- t2 = $[7];
1466
- }
1467
- let t3;
1468
- if ($[8] !== logo) {
1469
- t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t2, children: logo });
1470
- $[8] = logo;
1471
- $[9] = t3;
1472
- } else {
1473
- t3 = $[9];
1474
- }
1475
- let t4;
1476
- if ($[10] !== appName) {
1477
- t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(Heading, { children: appName });
1478
- $[10] = appName;
1479
- $[11] = t4;
1480
- } else {
1481
- t4 = $[11];
1482
- }
1483
- let t5;
1484
- if ($[12] !== rest || $[13] !== t1 || $[14] !== t3 || $[15] !== t4) {
1485
- t5 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t1, ...rest, children: [
1486
- t3,
1487
- t4
1488
- ] });
1489
- $[12] = rest;
1490
- $[13] = t1;
1491
- $[14] = t3;
1492
- $[15] = t4;
1493
- $[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;
1494
1504
  } else {
1495
- t5 = $[16];
1505
+ t2 = $[9];
1496
1506
  }
1497
- return t5;
1498
- }
1499
- function HeaderTitle({
1500
- className,
1501
- logo = /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderDefaultLogo, {}),
1502
- appName,
1503
- userName,
1504
- links = [],
1505
- controls = [],
1506
- children,
1507
- ...rest
1508
- }) {
1509
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("at-header__title-background", className), ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("at-header__title"), children: [
1510
- /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderTitleLogo, { className: clsx("at-header__title-left"), logo, appName }),
1511
- /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderTitleLinks, { className: clsx("at-header__title-center"), links, children }),
1512
- /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderTitleDropdown, { className: clsx("at-header__title-right"), links, userName, controls, children })
1513
- ] }) });
1507
+ return t2;
1514
1508
  }
1515
1509
  const Header = Object.assign(Header$1, {
1516
- Title: HeaderTitle
1510
+ Title: HeaderTitle,
1511
+ Illustration: HeaderIllustration,
1512
+ Logo: HeaderLogo,
1513
+ Navbar: HeaderNavbar,
1514
+ Menu: HeaderMenu
1517
1515
  });
1518
1516
  const LogoBlack = (t0) => {
1519
1517
  const $ = compilerRuntimeExports.c(20);
@@ -1539,7 +1537,7 @@ const LogoBlack = (t0) => {
1539
1537
  let t7;
1540
1538
  let t8;
1541
1539
  let t9;
1542
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1540
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1543
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" });
1544
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" });
1545
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" });
@@ -1649,7 +1647,7 @@ const LogoWhite = (t0) => {
1649
1647
  let t7;
1650
1648
  let t8;
1651
1649
  let t9;
1652
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1650
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1653
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" });
1654
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" });
1655
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" });
@@ -1809,7 +1807,7 @@ const LogoGreen = (t0) => {
1809
1807
  let t7;
1810
1808
  let t8;
1811
1809
  let t9;
1812
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1810
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1813
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" });
1814
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" });
1815
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" });
@@ -1935,6 +1933,7 @@ export {
1935
1933
  DropdownList,
1936
1934
  DropdownTrigger,
1937
1935
  DropdownTriggerContext,
1936
+ EXPERIMENTAL_AvatarStack,
1938
1937
  EXPERIMENTAL_Suggestion,
1939
1938
  EXPERIMENTAL_SuggestionClear,
1940
1939
  EXPERIMENTAL_SuggestionEmpty,
@@ -1960,9 +1959,13 @@ export {
1960
1959
  FilePickerErrors,
1961
1960
  FilePickerFiles,
1962
1961
  Header,
1963
- HeaderDefaultLogo,
1962
+ HeaderContext,
1963
+ HeaderIllustration,
1964
+ HeaderLogo,
1965
+ HeaderMenu,
1966
+ HeaderNavbar,
1964
1967
  HeaderTitle,
1965
- Heading2 as Heading,
1968
+ Heading,
1966
1969
  Input,
1967
1970
  Label,
1968
1971
  LightDarkLogo,