@arbeidstilsynet/design-react 0.4.0 → 0.4.1

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
2
  import require$$0, { createContext, use, useState, useId } from "react";
3
- import { CloudUpIcon, FileTextIcon, TrashIcon, ChevronUpIcon, ChevronDownIcon, XMarkIcon, MenuHamburgerIcon } from "@navikt/aksel-icons";
3
+ import { CloudUpIcon, FileTextIcon, TrashIcon, XMarkIcon, MenuHamburgerIcon, ChevronUpIcon, ChevronDownIcon } from "@navikt/aksel-icons";
4
4
  import { useDropzone } from "react-dropzone";
5
- import { Spinner, Button, ValidationMessage, Table, Link, Heading, Dropdown } 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, 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, useMediaQuery, 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 as useMediaQuery2, usePagination, useRadioGroup, useSynchronizedAnimation } from "@digdir/designsystemet-react";
7
7
  var jsxRuntime = { exports: {} };
8
8
  var reactJsxRuntime_production = {};
9
9
  var hasRequiredReactJsxRuntime_production;
@@ -718,7 +718,7 @@ function FilePickerErrors(t0) {
718
718
  }
719
719
  let t2;
720
720
  if ($[5] !== errors) {
721
- t2 = errors.map(_temp$1);
721
+ t2 = errors.map(_temp$2);
722
722
  $[5] = errors;
723
723
  $[6] = t2;
724
724
  } else {
@@ -736,7 +736,7 @@ function FilePickerErrors(t0) {
736
736
  }
737
737
  return t3;
738
738
  }
739
- function _temp$1(error, index) {
739
+ function _temp$2(error, index) {
740
740
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ValidationMessage, { children: error }, index);
741
741
  }
742
742
  function formatFileSize(bytes) {
@@ -956,278 +956,6 @@ function Header$1(t0) {
956
956
  }
957
957
  return t2;
958
958
  }
959
- function HeaderTitleLogo(t0) {
960
- const $ = compilerRuntimeExports.c(17);
961
- let appName;
962
- let className;
963
- let logo;
964
- let rest;
965
- if ($[0] !== t0) {
966
- ({
967
- className,
968
- logo,
969
- appName,
970
- ...rest
971
- } = t0);
972
- $[0] = t0;
973
- $[1] = appName;
974
- $[2] = className;
975
- $[3] = logo;
976
- $[4] = rest;
977
- } else {
978
- appName = $[1];
979
- className = $[2];
980
- logo = $[3];
981
- rest = $[4];
982
- }
983
- let t1;
984
- if ($[5] !== className) {
985
- t1 = clsx(className);
986
- $[5] = className;
987
- $[6] = t1;
988
- } else {
989
- t1 = $[6];
990
- }
991
- let t2;
992
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
993
- t2 = clsx("at-header__title-logo");
994
- $[7] = t2;
995
- } else {
996
- t2 = $[7];
997
- }
998
- let t3;
999
- if ($[8] !== logo) {
1000
- t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t2, children: logo });
1001
- $[8] = logo;
1002
- $[9] = t3;
1003
- } else {
1004
- t3 = $[9];
1005
- }
1006
- let t4;
1007
- if ($[10] !== appName) {
1008
- t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(Heading, { children: appName });
1009
- $[10] = appName;
1010
- $[11] = t4;
1011
- } else {
1012
- t4 = $[11];
1013
- }
1014
- let t5;
1015
- if ($[12] !== rest || $[13] !== t1 || $[14] !== t3 || $[15] !== t4) {
1016
- t5 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t1, ...rest, children: [
1017
- t3,
1018
- t4
1019
- ] });
1020
- $[12] = rest;
1021
- $[13] = t1;
1022
- $[14] = t3;
1023
- $[15] = t4;
1024
- $[16] = t5;
1025
- } else {
1026
- t5 = $[16];
1027
- }
1028
- return t5;
1029
- }
1030
- function HeaderTitleLinks(t0) {
1031
- const $ = compilerRuntimeExports.c(12);
1032
- let className;
1033
- let links;
1034
- let rest;
1035
- if ($[0] !== t0) {
1036
- ({
1037
- className,
1038
- links,
1039
- ...rest
1040
- } = t0);
1041
- $[0] = t0;
1042
- $[1] = className;
1043
- $[2] = links;
1044
- $[3] = rest;
1045
- } else {
1046
- className = $[1];
1047
- links = $[2];
1048
- rest = $[3];
1049
- }
1050
- let t1;
1051
- if ($[4] !== className) {
1052
- t1 = clsx(className);
1053
- $[4] = className;
1054
- $[5] = t1;
1055
- } else {
1056
- t1 = $[5];
1057
- }
1058
- let t2;
1059
- if ($[6] !== links) {
1060
- t2 = links?.map(_temp);
1061
- $[6] = links;
1062
- $[7] = t2;
1063
- } else {
1064
- t2 = $[7];
1065
- }
1066
- let t3;
1067
- if ($[8] !== rest || $[9] !== t1 || $[10] !== t2) {
1068
- t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, ...rest, children: t2 });
1069
- $[8] = rest;
1070
- $[9] = t1;
1071
- $[10] = t2;
1072
- $[11] = t3;
1073
- } else {
1074
- t3 = $[11];
1075
- }
1076
- return t3;
1077
- }
1078
- function _temp(link) {
1079
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { href: link.href, className: clsx("at-header__title-link"), children: link.label }, link.href);
1080
- }
1081
- function HeaderTitleDropdown(t0) {
1082
- const $ = compilerRuntimeExports.c(37);
1083
- let className;
1084
- let controls;
1085
- let rest;
1086
- let userName;
1087
- if ($[0] !== t0) {
1088
- ({
1089
- className,
1090
- controls,
1091
- userName,
1092
- ...rest
1093
- } = t0);
1094
- $[0] = t0;
1095
- $[1] = className;
1096
- $[2] = controls;
1097
- $[3] = rest;
1098
- $[4] = userName;
1099
- } else {
1100
- className = $[1];
1101
- controls = $[2];
1102
- rest = $[3];
1103
- userName = $[4];
1104
- }
1105
- const [open, setOpen] = useState(false);
1106
- const id = useId();
1107
- let t1;
1108
- if ($[5] !== className) {
1109
- t1 = clsx(className);
1110
- $[5] = className;
1111
- $[6] = t1;
1112
- } else {
1113
- t1 = $[6];
1114
- }
1115
- let t2;
1116
- if ($[7] !== open) {
1117
- t2 = () => setOpen(!open);
1118
- $[7] = open;
1119
- $[8] = t2;
1120
- } else {
1121
- t2 = $[8];
1122
- }
1123
- let t3;
1124
- if ($[9] !== open) {
1125
- t3 = open ? /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronUpIcon, { "aria-hidden": true }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronDownIcon, { "aria-hidden": true });
1126
- $[9] = open;
1127
- $[10] = t3;
1128
- } else {
1129
- t3 = $[10];
1130
- }
1131
- let t4;
1132
- if ($[11] !== t3 || $[12] !== userName) {
1133
- t4 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "at-header__title-dropdown-desktop", children: [
1134
- userName,
1135
- t3
1136
- ] });
1137
- $[11] = t3;
1138
- $[12] = userName;
1139
- $[13] = t4;
1140
- } else {
1141
- t4 = $[13];
1142
- }
1143
- let t5;
1144
- if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
1145
- t5 = /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "at-header__title-dropdown-text", children: "Meny" });
1146
- $[14] = t5;
1147
- } else {
1148
- t5 = $[14];
1149
- }
1150
- let t6;
1151
- if ($[15] !== open) {
1152
- t6 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "at-header__title-dropdown-mobile", children: [
1153
- t5,
1154
- open ? /* @__PURE__ */ jsxRuntimeExports.jsx(XMarkIcon, { "aria-hidden": true }) : /* @__PURE__ */ jsxRuntimeExports.jsx(MenuHamburgerIcon, { "aria-hidden": true })
1155
- ] });
1156
- $[15] = open;
1157
- $[16] = t6;
1158
- } else {
1159
- t6 = $[16];
1160
- }
1161
- let t7;
1162
- if ($[17] !== t2 || $[18] !== t4 || $[19] !== t6) {
1163
- t7 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown.Trigger, { onClick: t2, variant: "tertiary", children: [
1164
- t4,
1165
- t6
1166
- ] });
1167
- $[17] = t2;
1168
- $[18] = t4;
1169
- $[19] = t6;
1170
- $[20] = t7;
1171
- } else {
1172
- t7 = $[20];
1173
- }
1174
- let t8;
1175
- if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
1176
- t8 = () => setOpen(false);
1177
- $[21] = t8;
1178
- } else {
1179
- t8 = $[21];
1180
- }
1181
- let t9;
1182
- if ($[22] !== controls || $[23] !== id) {
1183
- t9 = controls?.map((control, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("at-header__title-dropdown-controls"), children: control }) }, id + "-control-" + index));
1184
- $[22] = controls;
1185
- $[23] = id;
1186
- $[24] = t9;
1187
- } else {
1188
- t9 = $[24];
1189
- }
1190
- let t10;
1191
- if ($[25] !== t9) {
1192
- t10 = /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.List, { children: t9 });
1193
- $[25] = t9;
1194
- $[26] = t10;
1195
- } else {
1196
- t10 = $[26];
1197
- }
1198
- let t11;
1199
- if ($[27] !== open || $[28] !== t10) {
1200
- t11 = /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown, { open, onClose: t8, children: t10 });
1201
- $[27] = open;
1202
- $[28] = t10;
1203
- $[29] = t11;
1204
- } else {
1205
- t11 = $[29];
1206
- }
1207
- let t12;
1208
- if ($[30] !== t11 || $[31] !== t7) {
1209
- t12 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown.TriggerContext, { children: [
1210
- t7,
1211
- t11
1212
- ] });
1213
- $[30] = t11;
1214
- $[31] = t7;
1215
- $[32] = t12;
1216
- } else {
1217
- t12 = $[32];
1218
- }
1219
- let t13;
1220
- if ($[33] !== rest || $[34] !== t1 || $[35] !== t12) {
1221
- t13 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, ...rest, children: t12 });
1222
- $[33] = rest;
1223
- $[34] = t1;
1224
- $[35] = t12;
1225
- $[36] = t13;
1226
- } else {
1227
- t13 = $[36];
1228
- }
1229
- return t13;
1230
- }
1231
959
  function HeaderDefaultLogo(t0) {
1232
960
  const $ = compilerRuntimeExports.c(23);
1233
961
  const {
@@ -1351,6 +1079,307 @@ function HeaderDefaultLogo(t0) {
1351
1079
  }
1352
1080
  return t23;
1353
1081
  }
1082
+ function HeaderTitleDropdown(t0) {
1083
+ const $ = compilerRuntimeExports.c(42);
1084
+ let className;
1085
+ let controls;
1086
+ let links;
1087
+ let rest;
1088
+ let userName;
1089
+ if ($[0] !== t0) {
1090
+ ({
1091
+ className,
1092
+ controls,
1093
+ links,
1094
+ userName,
1095
+ ...rest
1096
+ } = t0);
1097
+ $[0] = t0;
1098
+ $[1] = className;
1099
+ $[2] = controls;
1100
+ $[3] = links;
1101
+ $[4] = rest;
1102
+ $[5] = userName;
1103
+ } else {
1104
+ className = $[1];
1105
+ controls = $[2];
1106
+ links = $[3];
1107
+ rest = $[4];
1108
+ userName = $[5];
1109
+ }
1110
+ const [open, setOpen] = useState(false);
1111
+ const id = useId();
1112
+ const isMobile = useMediaQuery("(max-width: 768px)");
1113
+ let t1;
1114
+ if ($[6] !== className) {
1115
+ t1 = clsx(className);
1116
+ $[6] = className;
1117
+ $[7] = t1;
1118
+ } else {
1119
+ t1 = $[7];
1120
+ }
1121
+ let t2;
1122
+ if ($[8] !== open) {
1123
+ t2 = () => setOpen(!open);
1124
+ $[8] = open;
1125
+ $[9] = t2;
1126
+ } else {
1127
+ t2 = $[9];
1128
+ }
1129
+ const t3 = isMobile ? "primary" : "tertiary";
1130
+ let t4;
1131
+ if ($[10] !== isMobile || $[11] !== open || $[12] !== userName) {
1132
+ t4 = isMobile ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
1133
+ open ? /* @__PURE__ */ jsxRuntimeExports.jsx(XMarkIcon, { "aria-hidden": true }) : /* @__PURE__ */ jsxRuntimeExports.jsx(MenuHamburgerIcon, { "aria-hidden": true }),
1134
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "at-header__title-dropdown-text", children: "Meny" })
1135
+ ] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
1136
+ userName,
1137
+ open ? /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronUpIcon, { "aria-hidden": true }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronDownIcon, { "aria-hidden": true })
1138
+ ] });
1139
+ $[10] = isMobile;
1140
+ $[11] = open;
1141
+ $[12] = userName;
1142
+ $[13] = t4;
1143
+ } else {
1144
+ t4 = $[13];
1145
+ }
1146
+ let t5;
1147
+ if ($[14] !== t2 || $[15] !== t3 || $[16] !== t4) {
1148
+ t5 = /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Trigger, { onClick: t2, "data-size": "sm", variant: t3, className: "at-header__title-dropdown-trigger", children: t4 });
1149
+ $[14] = t2;
1150
+ $[15] = t3;
1151
+ $[16] = t4;
1152
+ $[17] = t5;
1153
+ } else {
1154
+ t5 = $[17];
1155
+ }
1156
+ let t6;
1157
+ if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
1158
+ t6 = () => setOpen(false);
1159
+ $[18] = t6;
1160
+ } else {
1161
+ t6 = $[18];
1162
+ }
1163
+ let t7;
1164
+ if ($[19] !== links) {
1165
+ t7 = links?.map(_temp$1);
1166
+ $[19] = links;
1167
+ $[20] = t7;
1168
+ } else {
1169
+ t7 = $[20];
1170
+ }
1171
+ let t8;
1172
+ if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
1173
+ 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, {}) }) });
1174
+ $[21] = t8;
1175
+ } else {
1176
+ t8 = $[21];
1177
+ }
1178
+ let t9;
1179
+ if ($[22] !== controls || $[23] !== id) {
1180
+ t9 = controls?.map((control, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "at-header__title-dropdown-controls", children: control }) }, id + "-control-" + index));
1181
+ $[22] = controls;
1182
+ $[23] = id;
1183
+ $[24] = t9;
1184
+ } else {
1185
+ t9 = $[24];
1186
+ }
1187
+ let t10;
1188
+ if ($[25] !== t7 || $[26] !== t9) {
1189
+ t10 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown.List, { children: [
1190
+ t7,
1191
+ t8,
1192
+ t9
1193
+ ] });
1194
+ $[25] = t7;
1195
+ $[26] = t9;
1196
+ $[27] = t10;
1197
+ } else {
1198
+ t10 = $[27];
1199
+ }
1200
+ let t11;
1201
+ if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
1202
+ 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: [
1203
+ /* @__PURE__ */ jsxRuntimeExports.jsx(XMarkIcon, { "aria-hidden": true }),
1204
+ "Lukk"
1205
+ ] }) }) });
1206
+ $[28] = t11;
1207
+ } else {
1208
+ t11 = $[28];
1209
+ }
1210
+ let t12;
1211
+ if ($[29] !== open || $[30] !== t10) {
1212
+ t12 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown, { open, onClose: t6, placement: "bottom", className: "at-header__title-dropdown-content", children: [
1213
+ t10,
1214
+ t11
1215
+ ] });
1216
+ $[29] = open;
1217
+ $[30] = t10;
1218
+ $[31] = t12;
1219
+ } else {
1220
+ t12 = $[31];
1221
+ }
1222
+ let t13;
1223
+ if ($[32] !== t12 || $[33] !== t5) {
1224
+ t13 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown.TriggerContext, { children: [
1225
+ t5,
1226
+ t12
1227
+ ] });
1228
+ $[32] = t12;
1229
+ $[33] = t5;
1230
+ $[34] = t13;
1231
+ } else {
1232
+ t13 = $[34];
1233
+ }
1234
+ let t14;
1235
+ if ($[35] !== open) {
1236
+ t14 = open ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "aria-hidden": true, className: "at-header__title-dropdown-backdrop" }) : null;
1237
+ $[35] = open;
1238
+ $[36] = t14;
1239
+ } else {
1240
+ t14 = $[36];
1241
+ }
1242
+ let t15;
1243
+ if ($[37] !== rest || $[38] !== t1 || $[39] !== t13 || $[40] !== t14) {
1244
+ t15 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t1, ...rest, children: [
1245
+ t13,
1246
+ t14
1247
+ ] });
1248
+ $[37] = rest;
1249
+ $[38] = t1;
1250
+ $[39] = t13;
1251
+ $[40] = t14;
1252
+ $[41] = t15;
1253
+ } else {
1254
+ t15 = $[41];
1255
+ }
1256
+ return t15;
1257
+ }
1258
+ function _temp$1(link) {
1259
+ 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);
1260
+ }
1261
+ function HeaderTitleLinks(t0) {
1262
+ const $ = compilerRuntimeExports.c(12);
1263
+ let className;
1264
+ let links;
1265
+ let rest;
1266
+ if ($[0] !== t0) {
1267
+ ({
1268
+ className,
1269
+ links,
1270
+ ...rest
1271
+ } = t0);
1272
+ $[0] = t0;
1273
+ $[1] = className;
1274
+ $[2] = links;
1275
+ $[3] = rest;
1276
+ } else {
1277
+ className = $[1];
1278
+ links = $[2];
1279
+ rest = $[3];
1280
+ }
1281
+ let t1;
1282
+ if ($[4] !== className) {
1283
+ t1 = clsx(className);
1284
+ $[4] = className;
1285
+ $[5] = t1;
1286
+ } else {
1287
+ t1 = $[5];
1288
+ }
1289
+ let t2;
1290
+ if ($[6] !== links) {
1291
+ t2 = links?.map(_temp);
1292
+ $[6] = links;
1293
+ $[7] = t2;
1294
+ } else {
1295
+ t2 = $[7];
1296
+ }
1297
+ let t3;
1298
+ if ($[8] !== rest || $[9] !== t1 || $[10] !== t2) {
1299
+ t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("nav", { className: t1, ...rest, children: t2 });
1300
+ $[8] = rest;
1301
+ $[9] = t1;
1302
+ $[10] = t2;
1303
+ $[11] = t3;
1304
+ } else {
1305
+ t3 = $[11];
1306
+ }
1307
+ return t3;
1308
+ }
1309
+ function _temp(link) {
1310
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { href: link.href, className: clsx("at-header__title-link"), children: link.label }, link.href);
1311
+ }
1312
+ function HeaderTitleLogo(t0) {
1313
+ const $ = compilerRuntimeExports.c(17);
1314
+ let appName;
1315
+ let className;
1316
+ let logo;
1317
+ let rest;
1318
+ if ($[0] !== t0) {
1319
+ ({
1320
+ className,
1321
+ logo,
1322
+ appName,
1323
+ ...rest
1324
+ } = t0);
1325
+ $[0] = t0;
1326
+ $[1] = appName;
1327
+ $[2] = className;
1328
+ $[3] = logo;
1329
+ $[4] = rest;
1330
+ } else {
1331
+ appName = $[1];
1332
+ className = $[2];
1333
+ logo = $[3];
1334
+ rest = $[4];
1335
+ }
1336
+ let t1;
1337
+ if ($[5] !== className) {
1338
+ t1 = clsx(className);
1339
+ $[5] = className;
1340
+ $[6] = t1;
1341
+ } else {
1342
+ t1 = $[6];
1343
+ }
1344
+ let t2;
1345
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
1346
+ t2 = clsx("at-header__title-logo");
1347
+ $[7] = t2;
1348
+ } else {
1349
+ t2 = $[7];
1350
+ }
1351
+ let t3;
1352
+ if ($[8] !== logo) {
1353
+ t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t2, children: logo });
1354
+ $[8] = logo;
1355
+ $[9] = t3;
1356
+ } else {
1357
+ t3 = $[9];
1358
+ }
1359
+ let t4;
1360
+ if ($[10] !== appName) {
1361
+ t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(Heading, { children: appName });
1362
+ $[10] = appName;
1363
+ $[11] = t4;
1364
+ } else {
1365
+ t4 = $[11];
1366
+ }
1367
+ let t5;
1368
+ if ($[12] !== rest || $[13] !== t1 || $[14] !== t3 || $[15] !== t4) {
1369
+ t5 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t1, ...rest, children: [
1370
+ t3,
1371
+ t4
1372
+ ] });
1373
+ $[12] = rest;
1374
+ $[13] = t1;
1375
+ $[14] = t3;
1376
+ $[15] = t4;
1377
+ $[16] = t5;
1378
+ } else {
1379
+ t5 = $[16];
1380
+ }
1381
+ return t5;
1382
+ }
1354
1383
  function HeaderTitle({
1355
1384
  className,
1356
1385
  logo = /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderDefaultLogo, {}),
@@ -1363,7 +1392,7 @@ function HeaderTitle({
1363
1392
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("at-header__title-background", className), ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("at-header__title"), children: [
1364
1393
  /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderTitleLogo, { className: clsx("at-header__title-left"), logo, appName }),
1365
1394
  /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderTitleLinks, { className: clsx("at-header__title-center"), links }),
1366
- /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderTitleDropdown, { className: clsx("at-header__title-right"), userName, controls })
1395
+ /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderTitleDropdown, { className: clsx("at-header__title-right"), links, userName, controls })
1367
1396
  ] }) });
1368
1397
  }
1369
1398
  const Header = Object.assign(Header$1, {
@@ -1781,7 +1810,7 @@ export {
1781
1810
  DialogBlock,
1782
1811
  DialogTrigger,
1783
1812
  DialogTriggerContext,
1784
- Divider,
1813
+ Divider2 as Divider,
1785
1814
  Dropdown2 as Dropdown,
1786
1815
  DropdownButton,
1787
1816
  DropdownHeading,
@@ -1872,7 +1901,7 @@ export {
1872
1901
  useCheckboxGroup,
1873
1902
  useDebounceCallback,
1874
1903
  useIsomorphicLayoutEffect,
1875
- useMediaQuery,
1904
+ useMediaQuery2 as useMediaQuery,
1876
1905
  usePagination,
1877
1906
  useRadioGroup,
1878
1907
  useSynchronizedAnimation