@arbeidstilsynet/design-react 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +422 -276
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +429 -283
- package/dist/index.js.map +1 -1
- package/dist/src/components/filepicker/filepickerContext.d.ts +1 -1
- package/dist/src/components/header/headerTitle.d.ts +2 -1
- package/dist/src/components/header/headerTitleDropdown.d.ts +4 -1
- package/dist/src/components/header/headerTitleLinks.d.ts +3 -2
- package/dist/src/components/header/index.d.ts +19 -0
- package/dist/src/components/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
- package/dist/src/components/hooks/useMediaQuery.d.ts +6 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import require$$0, { createContext, use, useState, useId } from "react";
|
|
3
|
-
import { CloudUpIcon, FileTextIcon, TrashIcon,
|
|
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";
|
|
4
4
|
import { useDropzone } from "react-dropzone";
|
|
5
|
-
import { Spinner, Button, ValidationMessage, Table, Link,
|
|
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, 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";
|
|
7
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
7
8
|
var jsxRuntime = { exports: {} };
|
|
8
9
|
var reactJsxRuntime_production = {};
|
|
9
10
|
var hasRequiredReactJsxRuntime_production;
|
|
@@ -244,9 +245,9 @@ function requireReactJsxRuntime_development() {
|
|
|
244
245
|
);
|
|
245
246
|
}
|
|
246
247
|
function validateChildKeys(node) {
|
|
247
|
-
|
|
248
|
+
isValidElement2(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement2(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
248
249
|
}
|
|
249
|
-
function
|
|
250
|
+
function isValidElement2(object) {
|
|
250
251
|
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
251
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() {
|
|
@@ -718,7 +719,7 @@ function FilePickerErrors(t0) {
|
|
|
718
719
|
}
|
|
719
720
|
let t2;
|
|
720
721
|
if ($[5] !== errors) {
|
|
721
|
-
t2 = errors.map(_temp$
|
|
722
|
+
t2 = errors.map(_temp$2);
|
|
722
723
|
$[5] = errors;
|
|
723
724
|
$[6] = t2;
|
|
724
725
|
} else {
|
|
@@ -736,7 +737,7 @@ function FilePickerErrors(t0) {
|
|
|
736
737
|
}
|
|
737
738
|
return t3;
|
|
738
739
|
}
|
|
739
|
-
function _temp$
|
|
740
|
+
function _temp$2(error, index) {
|
|
740
741
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ValidationMessage, { children: error }, index);
|
|
741
742
|
}
|
|
742
743
|
function formatFileSize(bytes) {
|
|
@@ -956,278 +957,6 @@ function Header$1(t0) {
|
|
|
956
957
|
}
|
|
957
958
|
return t2;
|
|
958
959
|
}
|
|
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
960
|
function HeaderDefaultLogo(t0) {
|
|
1232
961
|
const $ = compilerRuntimeExports.c(23);
|
|
1233
962
|
const {
|
|
@@ -1351,6 +1080,422 @@ function HeaderDefaultLogo(t0) {
|
|
|
1351
1080
|
}
|
|
1352
1081
|
return t23;
|
|
1353
1082
|
}
|
|
1083
|
+
const useIsomorphicLayoutEffect2 = typeof window !== "undefined" ? useLayoutEffect : useEffect;
|
|
1084
|
+
const IS_SERVER = typeof window === "undefined";
|
|
1085
|
+
function useMediaQuery2(query, t0) {
|
|
1086
|
+
const $ = compilerRuntimeExports.c(17);
|
|
1087
|
+
let t1;
|
|
1088
|
+
if ($[0] !== t0) {
|
|
1089
|
+
t1 = {};
|
|
1090
|
+
$[0] = t0;
|
|
1091
|
+
$[1] = t1;
|
|
1092
|
+
} else {
|
|
1093
|
+
t1 = $[1];
|
|
1094
|
+
}
|
|
1095
|
+
const {
|
|
1096
|
+
defaultValue: t2,
|
|
1097
|
+
initializeWithValue: t3
|
|
1098
|
+
} = t1;
|
|
1099
|
+
const defaultValue = t2 === void 0 ? false : t2;
|
|
1100
|
+
const initializeWithValue = t3 === void 0 ? true : t3;
|
|
1101
|
+
let t4;
|
|
1102
|
+
if ($[2] !== defaultValue) {
|
|
1103
|
+
t4 = (query_0) => {
|
|
1104
|
+
if (IS_SERVER) {
|
|
1105
|
+
return defaultValue;
|
|
1106
|
+
}
|
|
1107
|
+
return window.matchMedia(query_0).matches;
|
|
1108
|
+
};
|
|
1109
|
+
$[2] = defaultValue;
|
|
1110
|
+
$[3] = t4;
|
|
1111
|
+
} else {
|
|
1112
|
+
t4 = $[3];
|
|
1113
|
+
}
|
|
1114
|
+
const getMatches = t4;
|
|
1115
|
+
let t5;
|
|
1116
|
+
if ($[4] !== defaultValue || $[5] !== getMatches || $[6] !== initializeWithValue || $[7] !== query) {
|
|
1117
|
+
t5 = () => {
|
|
1118
|
+
if (initializeWithValue) {
|
|
1119
|
+
return getMatches(query);
|
|
1120
|
+
}
|
|
1121
|
+
return defaultValue;
|
|
1122
|
+
};
|
|
1123
|
+
$[4] = defaultValue;
|
|
1124
|
+
$[5] = getMatches;
|
|
1125
|
+
$[6] = initializeWithValue;
|
|
1126
|
+
$[7] = query;
|
|
1127
|
+
$[8] = t5;
|
|
1128
|
+
} else {
|
|
1129
|
+
t5 = $[8];
|
|
1130
|
+
}
|
|
1131
|
+
const [matches, setMatches] = useState(t5);
|
|
1132
|
+
let t6;
|
|
1133
|
+
if ($[9] !== getMatches || $[10] !== query) {
|
|
1134
|
+
t6 = function handleChange2() {
|
|
1135
|
+
setMatches(getMatches(query));
|
|
1136
|
+
};
|
|
1137
|
+
$[9] = getMatches;
|
|
1138
|
+
$[10] = query;
|
|
1139
|
+
$[11] = t6;
|
|
1140
|
+
} else {
|
|
1141
|
+
t6 = $[11];
|
|
1142
|
+
}
|
|
1143
|
+
const handleChange = t6;
|
|
1144
|
+
let t7;
|
|
1145
|
+
if ($[12] !== handleChange || $[13] !== query) {
|
|
1146
|
+
t7 = () => {
|
|
1147
|
+
const matchMedia = window.matchMedia(query);
|
|
1148
|
+
handleChange();
|
|
1149
|
+
if (matchMedia.addListener) {
|
|
1150
|
+
matchMedia.addListener(handleChange);
|
|
1151
|
+
} else {
|
|
1152
|
+
matchMedia.addEventListener("change", handleChange);
|
|
1153
|
+
}
|
|
1154
|
+
return () => {
|
|
1155
|
+
if (matchMedia.removeListener) {
|
|
1156
|
+
matchMedia.removeListener(handleChange);
|
|
1157
|
+
} else {
|
|
1158
|
+
matchMedia.removeEventListener("change", handleChange);
|
|
1159
|
+
}
|
|
1160
|
+
};
|
|
1161
|
+
};
|
|
1162
|
+
$[12] = handleChange;
|
|
1163
|
+
$[13] = query;
|
|
1164
|
+
$[14] = t7;
|
|
1165
|
+
} else {
|
|
1166
|
+
t7 = $[14];
|
|
1167
|
+
}
|
|
1168
|
+
let t8;
|
|
1169
|
+
if ($[15] !== query) {
|
|
1170
|
+
t8 = [query];
|
|
1171
|
+
$[15] = query;
|
|
1172
|
+
$[16] = t8;
|
|
1173
|
+
} else {
|
|
1174
|
+
t8 = $[16];
|
|
1175
|
+
}
|
|
1176
|
+
useIsomorphicLayoutEffect2(t7, t8);
|
|
1177
|
+
return matches;
|
|
1178
|
+
}
|
|
1179
|
+
function HeaderTitleDropdown(t0) {
|
|
1180
|
+
const $ = compilerRuntimeExports.c(44);
|
|
1181
|
+
let children;
|
|
1182
|
+
let className;
|
|
1183
|
+
let controls;
|
|
1184
|
+
let links;
|
|
1185
|
+
let rest;
|
|
1186
|
+
let userName;
|
|
1187
|
+
if ($[0] !== t0) {
|
|
1188
|
+
({
|
|
1189
|
+
className,
|
|
1190
|
+
controls,
|
|
1191
|
+
links,
|
|
1192
|
+
userName,
|
|
1193
|
+
children,
|
|
1194
|
+
...rest
|
|
1195
|
+
} = t0);
|
|
1196
|
+
$[0] = t0;
|
|
1197
|
+
$[1] = children;
|
|
1198
|
+
$[2] = className;
|
|
1199
|
+
$[3] = controls;
|
|
1200
|
+
$[4] = links;
|
|
1201
|
+
$[5] = rest;
|
|
1202
|
+
$[6] = userName;
|
|
1203
|
+
} else {
|
|
1204
|
+
children = $[1];
|
|
1205
|
+
className = $[2];
|
|
1206
|
+
controls = $[3];
|
|
1207
|
+
links = $[4];
|
|
1208
|
+
rest = $[5];
|
|
1209
|
+
userName = $[6];
|
|
1210
|
+
}
|
|
1211
|
+
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;
|
|
1219
|
+
} else {
|
|
1220
|
+
t1 = $[8];
|
|
1221
|
+
}
|
|
1222
|
+
let t2;
|
|
1223
|
+
if ($[9] !== open) {
|
|
1224
|
+
t2 = () => setOpen(!open);
|
|
1225
|
+
$[9] = open;
|
|
1226
|
+
$[10] = t2;
|
|
1227
|
+
} else {
|
|
1228
|
+
t2 = $[10];
|
|
1229
|
+
}
|
|
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: [
|
|
1234
|
+
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" })
|
|
1236
|
+
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
1237
|
+
userName,
|
|
1238
|
+
open ? /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronUpIcon, { "aria-hidden": true }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronDownIcon, { "aria-hidden": true })
|
|
1239
|
+
] });
|
|
1240
|
+
$[11] = isMobile;
|
|
1241
|
+
$[12] = open;
|
|
1242
|
+
$[13] = userName;
|
|
1243
|
+
$[14] = t4;
|
|
1244
|
+
} else {
|
|
1245
|
+
t4 = $[14];
|
|
1246
|
+
}
|
|
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;
|
|
1254
|
+
} else {
|
|
1255
|
+
t5 = $[18];
|
|
1256
|
+
}
|
|
1257
|
+
let t6;
|
|
1258
|
+
if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1259
|
+
t6 = () => setOpen(false);
|
|
1260
|
+
$[19] = t6;
|
|
1261
|
+
} else {
|
|
1262
|
+
t6 = $[19];
|
|
1263
|
+
}
|
|
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;
|
|
1270
|
+
} else {
|
|
1271
|
+
t7 = $[22];
|
|
1272
|
+
}
|
|
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;
|
|
1277
|
+
} else {
|
|
1278
|
+
t8 = $[23];
|
|
1279
|
+
}
|
|
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;
|
|
1286
|
+
} else {
|
|
1287
|
+
t9 = $[26];
|
|
1288
|
+
}
|
|
1289
|
+
let t10;
|
|
1290
|
+
if ($[27] !== t7 || $[28] !== t9) {
|
|
1291
|
+
t10 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown.List, { children: [
|
|
1292
|
+
t7,
|
|
1293
|
+
t8,
|
|
1294
|
+
t9
|
|
1295
|
+
] });
|
|
1296
|
+
$[27] = t7;
|
|
1297
|
+
$[28] = t9;
|
|
1298
|
+
$[29] = t10;
|
|
1299
|
+
} else {
|
|
1300
|
+
t10 = $[29];
|
|
1301
|
+
}
|
|
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"
|
|
1307
|
+
] }) }) });
|
|
1308
|
+
$[30] = t11;
|
|
1309
|
+
} else {
|
|
1310
|
+
t11 = $[30];
|
|
1311
|
+
}
|
|
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
|
|
1317
|
+
] });
|
|
1318
|
+
$[31] = open;
|
|
1319
|
+
$[32] = t10;
|
|
1320
|
+
$[33] = t12;
|
|
1321
|
+
} else {
|
|
1322
|
+
t12 = $[33];
|
|
1323
|
+
}
|
|
1324
|
+
let t13;
|
|
1325
|
+
if ($[34] !== t12 || $[35] !== t5) {
|
|
1326
|
+
t13 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown.TriggerContext, { children: [
|
|
1327
|
+
t5,
|
|
1328
|
+
t12
|
|
1329
|
+
] });
|
|
1330
|
+
$[34] = t12;
|
|
1331
|
+
$[35] = t5;
|
|
1332
|
+
$[36] = t13;
|
|
1333
|
+
} else {
|
|
1334
|
+
t13 = $[36];
|
|
1335
|
+
}
|
|
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;
|
|
1341
|
+
} else {
|
|
1342
|
+
t14 = $[38];
|
|
1343
|
+
}
|
|
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
|
|
1349
|
+
] });
|
|
1350
|
+
$[39] = rest;
|
|
1351
|
+
$[40] = t1;
|
|
1352
|
+
$[41] = t13;
|
|
1353
|
+
$[42] = t14;
|
|
1354
|
+
$[43] = t15;
|
|
1355
|
+
} else {
|
|
1356
|
+
t15 = $[43];
|
|
1357
|
+
}
|
|
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);
|
|
1362
|
+
}
|
|
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);
|
|
1365
|
+
}
|
|
1366
|
+
function HeaderTitleLinks(t0) {
|
|
1367
|
+
const $ = compilerRuntimeExports.c(14);
|
|
1368
|
+
let children;
|
|
1369
|
+
let className;
|
|
1370
|
+
let links;
|
|
1371
|
+
let rest;
|
|
1372
|
+
if ($[0] !== t0) {
|
|
1373
|
+
({
|
|
1374
|
+
className,
|
|
1375
|
+
links,
|
|
1376
|
+
children,
|
|
1377
|
+
...rest
|
|
1378
|
+
} = t0);
|
|
1379
|
+
$[0] = t0;
|
|
1380
|
+
$[1] = children;
|
|
1381
|
+
$[2] = className;
|
|
1382
|
+
$[3] = links;
|
|
1383
|
+
$[4] = rest;
|
|
1384
|
+
} else {
|
|
1385
|
+
children = $[1];
|
|
1386
|
+
className = $[2];
|
|
1387
|
+
links = $[3];
|
|
1388
|
+
rest = $[4];
|
|
1389
|
+
}
|
|
1390
|
+
let t1;
|
|
1391
|
+
if ($[5] !== className) {
|
|
1392
|
+
t1 = clsx(className);
|
|
1393
|
+
$[5] = className;
|
|
1394
|
+
$[6] = t1;
|
|
1395
|
+
} else {
|
|
1396
|
+
t1 = $[6];
|
|
1397
|
+
}
|
|
1398
|
+
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;
|
|
1404
|
+
} else {
|
|
1405
|
+
t2 = $[9];
|
|
1406
|
+
}
|
|
1407
|
+
let t3;
|
|
1408
|
+
if ($[10] !== rest || $[11] !== t1 || $[12] !== t2) {
|
|
1409
|
+
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("nav", { className: t1, ...rest, children: t2 });
|
|
1410
|
+
$[10] = rest;
|
|
1411
|
+
$[11] = t1;
|
|
1412
|
+
$[12] = t2;
|
|
1413
|
+
$[13] = t3;
|
|
1414
|
+
} else {
|
|
1415
|
+
t3 = $[13];
|
|
1416
|
+
}
|
|
1417
|
+
return t3;
|
|
1418
|
+
}
|
|
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 });
|
|
1425
|
+
}
|
|
1426
|
+
return child;
|
|
1427
|
+
}
|
|
1428
|
+
function HeaderTitleLogo(t0) {
|
|
1429
|
+
const $ = compilerRuntimeExports.c(17);
|
|
1430
|
+
let appName;
|
|
1431
|
+
let className;
|
|
1432
|
+
let logo;
|
|
1433
|
+
let rest;
|
|
1434
|
+
if ($[0] !== t0) {
|
|
1435
|
+
({
|
|
1436
|
+
className,
|
|
1437
|
+
logo,
|
|
1438
|
+
appName,
|
|
1439
|
+
...rest
|
|
1440
|
+
} = t0);
|
|
1441
|
+
$[0] = t0;
|
|
1442
|
+
$[1] = appName;
|
|
1443
|
+
$[2] = className;
|
|
1444
|
+
$[3] = logo;
|
|
1445
|
+
$[4] = rest;
|
|
1446
|
+
} else {
|
|
1447
|
+
appName = $[1];
|
|
1448
|
+
className = $[2];
|
|
1449
|
+
logo = $[3];
|
|
1450
|
+
rest = $[4];
|
|
1451
|
+
}
|
|
1452
|
+
let t1;
|
|
1453
|
+
if ($[5] !== className) {
|
|
1454
|
+
t1 = clsx(className);
|
|
1455
|
+
$[5] = className;
|
|
1456
|
+
$[6] = t1;
|
|
1457
|
+
} else {
|
|
1458
|
+
t1 = $[6];
|
|
1459
|
+
}
|
|
1460
|
+
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;
|
|
1494
|
+
} else {
|
|
1495
|
+
t5 = $[16];
|
|
1496
|
+
}
|
|
1497
|
+
return t5;
|
|
1498
|
+
}
|
|
1354
1499
|
function HeaderTitle({
|
|
1355
1500
|
className,
|
|
1356
1501
|
logo = /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderDefaultLogo, {}),
|
|
@@ -1358,12 +1503,13 @@ function HeaderTitle({
|
|
|
1358
1503
|
userName,
|
|
1359
1504
|
links = [],
|
|
1360
1505
|
controls = [],
|
|
1506
|
+
children,
|
|
1361
1507
|
...rest
|
|
1362
1508
|
}) {
|
|
1363
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: [
|
|
1364
1510
|
/* @__PURE__ */ jsxRuntimeExports.jsx(HeaderTitleLogo, { className: clsx("at-header__title-left"), logo, appName }),
|
|
1365
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(HeaderTitleLinks, { className: clsx("at-header__title-center"), links }),
|
|
1366
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(HeaderTitleDropdown, { className: clsx("at-header__title-right"), userName, controls })
|
|
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 })
|
|
1367
1513
|
] }) });
|
|
1368
1514
|
}
|
|
1369
1515
|
const Header = Object.assign(Header$1, {
|
|
@@ -1781,7 +1927,7 @@ export {
|
|
|
1781
1927
|
DialogBlock,
|
|
1782
1928
|
DialogTrigger,
|
|
1783
1929
|
DialogTriggerContext,
|
|
1784
|
-
Divider,
|
|
1930
|
+
Divider2 as Divider,
|
|
1785
1931
|
Dropdown2 as Dropdown,
|
|
1786
1932
|
DropdownButton,
|
|
1787
1933
|
DropdownHeading,
|