@arbeidstilsynet/design-react 0.3.10 → 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.cjs +445 -313
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +455 -323
- package/dist/index.js.map +1 -1
- package/dist/src/components/filepicker/filepickerContext.d.ts +1 -1
- package/dist/src/components/header/headerDefaultLogo.d.ts +5 -0
- package/dist/src/components/header/headerTitle.d.ts +8 -4
- package/dist/src/components/header/headerTitleDropdown.d.ts +13 -0
- package/dist/src/components/header/headerTitleLinks.d.ts +10 -0
- package/dist/src/components/header/headerTitleLogo.d.ts +7 -0
- package/dist/src/components/header/index.d.ts +5 -15
- package/dist/src/types.d.ts +1 -1
- package/package.json +5 -4
- package/dist/src/components/header/headerLinks.d.ts +0 -13
- package/dist/src/components/header/headerSearch.d.ts +0 -6
package/dist/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import require$$0, { createContext, use } from "react";
|
|
3
|
-
import { CloudUpIcon, FileTextIcon, TrashIcon } from "@navikt/aksel-icons";
|
|
2
|
+
import require$$0, { createContext, use, useState, useId } 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
|
|
7
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
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";
|
|
8
7
|
var jsxRuntime = { exports: {} };
|
|
9
8
|
var reactJsxRuntime_production = {};
|
|
10
9
|
var hasRequiredReactJsxRuntime_production;
|
|
@@ -719,7 +718,7 @@ function FilePickerErrors(t0) {
|
|
|
719
718
|
}
|
|
720
719
|
let t2;
|
|
721
720
|
if ($[5] !== errors) {
|
|
722
|
-
t2 = errors.map(_temp$
|
|
721
|
+
t2 = errors.map(_temp$2);
|
|
723
722
|
$[5] = errors;
|
|
724
723
|
$[6] = t2;
|
|
725
724
|
} else {
|
|
@@ -737,7 +736,7 @@ function FilePickerErrors(t0) {
|
|
|
737
736
|
}
|
|
738
737
|
return t3;
|
|
739
738
|
}
|
|
740
|
-
function _temp$
|
|
739
|
+
function _temp$2(error, index) {
|
|
741
740
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ValidationMessage, { children: error }, index);
|
|
742
741
|
}
|
|
743
742
|
function formatFileSize(bytes) {
|
|
@@ -957,6 +956,448 @@ function Header$1(t0) {
|
|
|
957
956
|
}
|
|
958
957
|
return t2;
|
|
959
958
|
}
|
|
959
|
+
function HeaderDefaultLogo(t0) {
|
|
960
|
+
const $ = compilerRuntimeExports.c(23);
|
|
961
|
+
const {
|
|
962
|
+
width: t1,
|
|
963
|
+
height: t2
|
|
964
|
+
} = t0;
|
|
965
|
+
const width = t1 === void 0 ? 48 : t1;
|
|
966
|
+
const height = t2 === void 0 ? 40 : t2;
|
|
967
|
+
let t10;
|
|
968
|
+
let t11;
|
|
969
|
+
let t12;
|
|
970
|
+
let t13;
|
|
971
|
+
let t14;
|
|
972
|
+
let t15;
|
|
973
|
+
let t16;
|
|
974
|
+
let t17;
|
|
975
|
+
let t18;
|
|
976
|
+
let t19;
|
|
977
|
+
let t20;
|
|
978
|
+
let t21;
|
|
979
|
+
let t22;
|
|
980
|
+
let t3;
|
|
981
|
+
let t4;
|
|
982
|
+
let t5;
|
|
983
|
+
let t6;
|
|
984
|
+
let t7;
|
|
985
|
+
let t8;
|
|
986
|
+
let t9;
|
|
987
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
988
|
+
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" });
|
|
989
|
+
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "16.7253", y: "20.4756", width: "2.08381", height: "0.108768", fill: "#085E55" });
|
|
990
|
+
t5 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "34.2183", y: "6.36298", width: "2.08381", height: "0.108768", fill: "#085E55" });
|
|
991
|
+
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "7.67719", y: "13.5688", width: "2.82411", height: "0.108768", fill: "#085E55" });
|
|
992
|
+
t7 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "6.27887", y: "12.8889", width: "2.82411", height: "0.108768", fill: "#085E55" });
|
|
993
|
+
t8 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "37.3441", y: "15.7985", width: "2.82411", height: "0.108768", fill: "#085E55" });
|
|
994
|
+
t9 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "36.1102", y: "16.4512", width: "2.82411", height: "0.108768", fill: "#085E55" });
|
|
995
|
+
t10 = /* @__PURE__ */ jsxRuntimeExports.jsx("ellipse", { cx: "30.2138", cy: "10.6896", rx: "4.8805", ry: "4.84016", fill: "white" });
|
|
996
|
+
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" });
|
|
997
|
+
t12 = /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { y: "38.9753", width: "48", height: "0.29752", fill: "black" });
|
|
998
|
+
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" });
|
|
999
|
+
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" });
|
|
1000
|
+
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" });
|
|
1001
|
+
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" });
|
|
1002
|
+
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" });
|
|
1003
|
+
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" });
|
|
1004
|
+
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" });
|
|
1005
|
+
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" });
|
|
1006
|
+
t21 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M18.2147 37.8959H39.8588V38.8887H18.2147V37.8959Z", fill: "#085E55" });
|
|
1007
|
+
t22 = /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M26.1426 38.8138H39.8588L42.353 28.5516H28.6367L26.1426 38.8138Z", fill: "#085E55" });
|
|
1008
|
+
$[0] = t10;
|
|
1009
|
+
$[1] = t11;
|
|
1010
|
+
$[2] = t12;
|
|
1011
|
+
$[3] = t13;
|
|
1012
|
+
$[4] = t14;
|
|
1013
|
+
$[5] = t15;
|
|
1014
|
+
$[6] = t16;
|
|
1015
|
+
$[7] = t17;
|
|
1016
|
+
$[8] = t18;
|
|
1017
|
+
$[9] = t19;
|
|
1018
|
+
$[10] = t20;
|
|
1019
|
+
$[11] = t21;
|
|
1020
|
+
$[12] = t22;
|
|
1021
|
+
$[13] = t3;
|
|
1022
|
+
$[14] = t4;
|
|
1023
|
+
$[15] = t5;
|
|
1024
|
+
$[16] = t6;
|
|
1025
|
+
$[17] = t7;
|
|
1026
|
+
$[18] = t8;
|
|
1027
|
+
$[19] = t9;
|
|
1028
|
+
} else {
|
|
1029
|
+
t10 = $[0];
|
|
1030
|
+
t11 = $[1];
|
|
1031
|
+
t12 = $[2];
|
|
1032
|
+
t13 = $[3];
|
|
1033
|
+
t14 = $[4];
|
|
1034
|
+
t15 = $[5];
|
|
1035
|
+
t16 = $[6];
|
|
1036
|
+
t17 = $[7];
|
|
1037
|
+
t18 = $[8];
|
|
1038
|
+
t19 = $[9];
|
|
1039
|
+
t20 = $[10];
|
|
1040
|
+
t21 = $[11];
|
|
1041
|
+
t22 = $[12];
|
|
1042
|
+
t3 = $[13];
|
|
1043
|
+
t4 = $[14];
|
|
1044
|
+
t5 = $[15];
|
|
1045
|
+
t6 = $[16];
|
|
1046
|
+
t7 = $[17];
|
|
1047
|
+
t8 = $[18];
|
|
1048
|
+
t9 = $[19];
|
|
1049
|
+
}
|
|
1050
|
+
let t23;
|
|
1051
|
+
if ($[20] !== height || $[21] !== width) {
|
|
1052
|
+
t23 = /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width, height, viewBox: "0 0 48 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1053
|
+
t3,
|
|
1054
|
+
t4,
|
|
1055
|
+
t5,
|
|
1056
|
+
t6,
|
|
1057
|
+
t7,
|
|
1058
|
+
t8,
|
|
1059
|
+
t9,
|
|
1060
|
+
t10,
|
|
1061
|
+
t11,
|
|
1062
|
+
t12,
|
|
1063
|
+
t13,
|
|
1064
|
+
t14,
|
|
1065
|
+
t15,
|
|
1066
|
+
t16,
|
|
1067
|
+
t17,
|
|
1068
|
+
t18,
|
|
1069
|
+
t19,
|
|
1070
|
+
t20,
|
|
1071
|
+
t21,
|
|
1072
|
+
t22
|
|
1073
|
+
] });
|
|
1074
|
+
$[20] = height;
|
|
1075
|
+
$[21] = width;
|
|
1076
|
+
$[22] = t23;
|
|
1077
|
+
} else {
|
|
1078
|
+
t23 = $[22];
|
|
1079
|
+
}
|
|
1080
|
+
return t23;
|
|
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
|
+
}
|
|
1383
|
+
function HeaderTitle({
|
|
1384
|
+
className,
|
|
1385
|
+
logo = /* @__PURE__ */ jsxRuntimeExports.jsx(HeaderDefaultLogo, {}),
|
|
1386
|
+
appName,
|
|
1387
|
+
userName,
|
|
1388
|
+
links = [],
|
|
1389
|
+
controls = [],
|
|
1390
|
+
...rest
|
|
1391
|
+
}) {
|
|
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: [
|
|
1393
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(HeaderTitleLogo, { className: clsx("at-header__title-left"), logo, appName }),
|
|
1394
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(HeaderTitleLinks, { className: clsx("at-header__title-center"), links }),
|
|
1395
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(HeaderTitleDropdown, { className: clsx("at-header__title-right"), links, userName, controls })
|
|
1396
|
+
] }) });
|
|
1397
|
+
}
|
|
1398
|
+
const Header = Object.assign(Header$1, {
|
|
1399
|
+
Title: HeaderTitle
|
|
1400
|
+
});
|
|
960
1401
|
const LogoBlack = (t0) => {
|
|
961
1402
|
const $ = compilerRuntimeExports.c(20);
|
|
962
1403
|
const {
|
|
@@ -1226,314 +1667,6 @@ function LightDarkLogo(t0) {
|
|
|
1226
1667
|
}
|
|
1227
1668
|
return t4;
|
|
1228
1669
|
}
|
|
1229
|
-
function HeaderTitle(t0) {
|
|
1230
|
-
const $ = compilerRuntimeExports.c(31);
|
|
1231
|
-
let className;
|
|
1232
|
-
let rest;
|
|
1233
|
-
let t1;
|
|
1234
|
-
let t2;
|
|
1235
|
-
if ($[0] !== t0) {
|
|
1236
|
-
({
|
|
1237
|
-
className,
|
|
1238
|
-
fagsystemNavn: t1,
|
|
1239
|
-
brukernavn: t2,
|
|
1240
|
-
...rest
|
|
1241
|
-
} = t0);
|
|
1242
|
-
$[0] = t0;
|
|
1243
|
-
$[1] = className;
|
|
1244
|
-
$[2] = rest;
|
|
1245
|
-
$[3] = t1;
|
|
1246
|
-
$[4] = t2;
|
|
1247
|
-
} else {
|
|
1248
|
-
className = $[1];
|
|
1249
|
-
rest = $[2];
|
|
1250
|
-
t1 = $[3];
|
|
1251
|
-
t2 = $[4];
|
|
1252
|
-
}
|
|
1253
|
-
const fagsystemNavn = t1 === void 0 ? "Fagsystem" : t1;
|
|
1254
|
-
const brukernavn = t2 === void 0 ? "Bruker Brukersen" : t2;
|
|
1255
|
-
const getInitials = _temp;
|
|
1256
|
-
let t3;
|
|
1257
|
-
if ($[5] !== className) {
|
|
1258
|
-
t3 = clsx("at-header__title-background", className);
|
|
1259
|
-
$[5] = className;
|
|
1260
|
-
$[6] = t3;
|
|
1261
|
-
} else {
|
|
1262
|
-
t3 = $[6];
|
|
1263
|
-
}
|
|
1264
|
-
let t4;
|
|
1265
|
-
let t5;
|
|
1266
|
-
let t6;
|
|
1267
|
-
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1268
|
-
t4 = clsx("at-header__title");
|
|
1269
|
-
t5 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("at-header__title-left"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(LightDarkLogo, { width: "150px" }) });
|
|
1270
|
-
t6 = clsx("at-header__title-center");
|
|
1271
|
-
$[7] = t4;
|
|
1272
|
-
$[8] = t5;
|
|
1273
|
-
$[9] = t6;
|
|
1274
|
-
} else {
|
|
1275
|
-
t4 = $[7];
|
|
1276
|
-
t5 = $[8];
|
|
1277
|
-
t6 = $[9];
|
|
1278
|
-
}
|
|
1279
|
-
let t7;
|
|
1280
|
-
if ($[10] !== fagsystemNavn) {
|
|
1281
|
-
t7 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t6, children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: fagsystemNavn }) });
|
|
1282
|
-
$[10] = fagsystemNavn;
|
|
1283
|
-
$[11] = t7;
|
|
1284
|
-
} else {
|
|
1285
|
-
t7 = $[11];
|
|
1286
|
-
}
|
|
1287
|
-
let t8;
|
|
1288
|
-
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1289
|
-
t8 = clsx("at-header__title-right");
|
|
1290
|
-
$[12] = t8;
|
|
1291
|
-
} else {
|
|
1292
|
-
t8 = $[12];
|
|
1293
|
-
}
|
|
1294
|
-
let t9;
|
|
1295
|
-
if ($[13] !== brukernavn) {
|
|
1296
|
-
t9 = getInitials(brukernavn);
|
|
1297
|
-
$[13] = brukernavn;
|
|
1298
|
-
$[14] = t9;
|
|
1299
|
-
} else {
|
|
1300
|
-
t9 = $[14];
|
|
1301
|
-
}
|
|
1302
|
-
let t10;
|
|
1303
|
-
if ($[15] !== brukernavn || $[16] !== t9) {
|
|
1304
|
-
t10 = /* @__PURE__ */ jsxRuntimeExports.jsx(Avatar, { "aria-label": brukernavn, initials: t9, "data-size": "xs" });
|
|
1305
|
-
$[15] = brukernavn;
|
|
1306
|
-
$[16] = t9;
|
|
1307
|
-
$[17] = t10;
|
|
1308
|
-
} else {
|
|
1309
|
-
t10 = $[17];
|
|
1310
|
-
}
|
|
1311
|
-
let t11;
|
|
1312
|
-
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1313
|
-
t11 = clsx("at-header__title-brukernavn");
|
|
1314
|
-
$[18] = t11;
|
|
1315
|
-
} else {
|
|
1316
|
-
t11 = $[18];
|
|
1317
|
-
}
|
|
1318
|
-
let t12;
|
|
1319
|
-
if ($[19] !== brukernavn) {
|
|
1320
|
-
t12 = /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: t11, children: brukernavn });
|
|
1321
|
-
$[19] = brukernavn;
|
|
1322
|
-
$[20] = t12;
|
|
1323
|
-
} else {
|
|
1324
|
-
t12 = $[20];
|
|
1325
|
-
}
|
|
1326
|
-
let t13;
|
|
1327
|
-
if ($[21] !== t10 || $[22] !== t12) {
|
|
1328
|
-
t13 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t8, children: [
|
|
1329
|
-
t10,
|
|
1330
|
-
t12
|
|
1331
|
-
] });
|
|
1332
|
-
$[21] = t10;
|
|
1333
|
-
$[22] = t12;
|
|
1334
|
-
$[23] = t13;
|
|
1335
|
-
} else {
|
|
1336
|
-
t13 = $[23];
|
|
1337
|
-
}
|
|
1338
|
-
let t14;
|
|
1339
|
-
if ($[24] !== t13 || $[25] !== t7) {
|
|
1340
|
-
t14 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t4, children: [
|
|
1341
|
-
t5,
|
|
1342
|
-
t7,
|
|
1343
|
-
t13
|
|
1344
|
-
] });
|
|
1345
|
-
$[24] = t13;
|
|
1346
|
-
$[25] = t7;
|
|
1347
|
-
$[26] = t14;
|
|
1348
|
-
} else {
|
|
1349
|
-
t14 = $[26];
|
|
1350
|
-
}
|
|
1351
|
-
let t15;
|
|
1352
|
-
if ($[27] !== rest || $[28] !== t14 || $[29] !== t3) {
|
|
1353
|
-
t15 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t3, ...rest, children: t14 });
|
|
1354
|
-
$[27] = rest;
|
|
1355
|
-
$[28] = t14;
|
|
1356
|
-
$[29] = t3;
|
|
1357
|
-
$[30] = t15;
|
|
1358
|
-
} else {
|
|
1359
|
-
t15 = $[30];
|
|
1360
|
-
}
|
|
1361
|
-
return t15;
|
|
1362
|
-
}
|
|
1363
|
-
function _temp(name) {
|
|
1364
|
-
if (!name) {
|
|
1365
|
-
return "";
|
|
1366
|
-
}
|
|
1367
|
-
const names = name.split(" ");
|
|
1368
|
-
if (names.length === 1) {
|
|
1369
|
-
return names[0].charAt(0).toUpperCase();
|
|
1370
|
-
}
|
|
1371
|
-
return names[0].charAt(0).toUpperCase() + names.at(-1).charAt(0).toUpperCase();
|
|
1372
|
-
}
|
|
1373
|
-
function HeaderSearch(t0) {
|
|
1374
|
-
const $ = compilerRuntimeExports.c(10);
|
|
1375
|
-
let className;
|
|
1376
|
-
let rest;
|
|
1377
|
-
if ($[0] !== t0) {
|
|
1378
|
-
({
|
|
1379
|
-
className,
|
|
1380
|
-
...rest
|
|
1381
|
-
} = t0);
|
|
1382
|
-
$[0] = t0;
|
|
1383
|
-
$[1] = className;
|
|
1384
|
-
$[2] = rest;
|
|
1385
|
-
} else {
|
|
1386
|
-
className = $[1];
|
|
1387
|
-
rest = $[2];
|
|
1388
|
-
}
|
|
1389
|
-
let t1;
|
|
1390
|
-
if ($[3] !== className) {
|
|
1391
|
-
t1 = clsx("at-header__search-background", className);
|
|
1392
|
-
$[3] = className;
|
|
1393
|
-
$[4] = t1;
|
|
1394
|
-
} else {
|
|
1395
|
-
t1 = $[4];
|
|
1396
|
-
}
|
|
1397
|
-
let t2;
|
|
1398
|
-
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1399
|
-
t2 = clsx("at-header__search");
|
|
1400
|
-
$[5] = t2;
|
|
1401
|
-
} else {
|
|
1402
|
-
t2 = $[5];
|
|
1403
|
-
}
|
|
1404
|
-
let t3;
|
|
1405
|
-
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1406
|
-
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t2, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Search, { children: [
|
|
1407
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Search.Input, { name: "placeholder", "aria-label": "Søk", className: "at-header__search-input" }),
|
|
1408
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Search.Clear, { className: "at-header__search-clear" }),
|
|
1409
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Search.Button, { className: "at-header__search-button" })
|
|
1410
|
-
] }) });
|
|
1411
|
-
$[6] = t3;
|
|
1412
|
-
} else {
|
|
1413
|
-
t3 = $[6];
|
|
1414
|
-
}
|
|
1415
|
-
let t4;
|
|
1416
|
-
if ($[7] !== rest || $[8] !== t1) {
|
|
1417
|
-
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, ...rest, children: t3 });
|
|
1418
|
-
$[7] = rest;
|
|
1419
|
-
$[8] = t1;
|
|
1420
|
-
$[9] = t4;
|
|
1421
|
-
} else {
|
|
1422
|
-
t4 = $[9];
|
|
1423
|
-
}
|
|
1424
|
-
return t4;
|
|
1425
|
-
}
|
|
1426
|
-
const HeaderLinksRoot = (t0) => {
|
|
1427
|
-
const $ = compilerRuntimeExports.c(11);
|
|
1428
|
-
let children;
|
|
1429
|
-
let props;
|
|
1430
|
-
if ($[0] !== t0) {
|
|
1431
|
-
({
|
|
1432
|
-
children,
|
|
1433
|
-
...props
|
|
1434
|
-
} = t0);
|
|
1435
|
-
$[0] = t0;
|
|
1436
|
-
$[1] = children;
|
|
1437
|
-
$[2] = props;
|
|
1438
|
-
} else {
|
|
1439
|
-
children = $[1];
|
|
1440
|
-
props = $[2];
|
|
1441
|
-
}
|
|
1442
|
-
let t1;
|
|
1443
|
-
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1444
|
-
t1 = clsx("at-header__links-root");
|
|
1445
|
-
$[3] = t1;
|
|
1446
|
-
} else {
|
|
1447
|
-
t1 = $[3];
|
|
1448
|
-
}
|
|
1449
|
-
let t2;
|
|
1450
|
-
let t3;
|
|
1451
|
-
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1452
|
-
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "hamburger-menu", htmlFor: "hamburger-checkbox", "aria-label": "Toggle navigation", children: /* @__PURE__ */ jsxRuntimeExports.jsx("input", { id: "hamburger-checkbox", type: "checkbox" }) });
|
|
1453
|
-
t3 = clsx("at-header__links");
|
|
1454
|
-
$[4] = t2;
|
|
1455
|
-
$[5] = t3;
|
|
1456
|
-
} else {
|
|
1457
|
-
t2 = $[4];
|
|
1458
|
-
t3 = $[5];
|
|
1459
|
-
}
|
|
1460
|
-
let t4;
|
|
1461
|
-
if ($[6] !== children) {
|
|
1462
|
-
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t3, children });
|
|
1463
|
-
$[6] = children;
|
|
1464
|
-
$[7] = t4;
|
|
1465
|
-
} else {
|
|
1466
|
-
t4 = $[7];
|
|
1467
|
-
}
|
|
1468
|
-
let t5;
|
|
1469
|
-
if ($[8] !== props || $[9] !== t4) {
|
|
1470
|
-
t5 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t1, ...props, children: [
|
|
1471
|
-
t2,
|
|
1472
|
-
t4
|
|
1473
|
-
] });
|
|
1474
|
-
$[8] = props;
|
|
1475
|
-
$[9] = t4;
|
|
1476
|
-
$[10] = t5;
|
|
1477
|
-
} else {
|
|
1478
|
-
t5 = $[10];
|
|
1479
|
-
}
|
|
1480
|
-
return t5;
|
|
1481
|
-
};
|
|
1482
|
-
const HeaderLinkItem = (t0) => {
|
|
1483
|
-
const $ = compilerRuntimeExports.c(12);
|
|
1484
|
-
let children;
|
|
1485
|
-
let className;
|
|
1486
|
-
let props;
|
|
1487
|
-
let t1;
|
|
1488
|
-
if ($[0] !== t0) {
|
|
1489
|
-
({
|
|
1490
|
-
asChild: t1,
|
|
1491
|
-
className,
|
|
1492
|
-
children,
|
|
1493
|
-
...props
|
|
1494
|
-
} = t0);
|
|
1495
|
-
$[0] = t0;
|
|
1496
|
-
$[1] = children;
|
|
1497
|
-
$[2] = className;
|
|
1498
|
-
$[3] = props;
|
|
1499
|
-
$[4] = t1;
|
|
1500
|
-
} else {
|
|
1501
|
-
children = $[1];
|
|
1502
|
-
className = $[2];
|
|
1503
|
-
props = $[3];
|
|
1504
|
-
t1 = $[4];
|
|
1505
|
-
}
|
|
1506
|
-
const asChild = t1 === void 0 ? false : t1;
|
|
1507
|
-
const Component = asChild ? Slot : "div";
|
|
1508
|
-
let t2;
|
|
1509
|
-
if ($[5] !== className) {
|
|
1510
|
-
t2 = clsx("at-header__links-item", className);
|
|
1511
|
-
$[5] = className;
|
|
1512
|
-
$[6] = t2;
|
|
1513
|
-
} else {
|
|
1514
|
-
t2 = $[6];
|
|
1515
|
-
}
|
|
1516
|
-
let t3;
|
|
1517
|
-
if ($[7] !== Component || $[8] !== children || $[9] !== props || $[10] !== t2) {
|
|
1518
|
-
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx(Component, { className: t2, ...props, children });
|
|
1519
|
-
$[7] = Component;
|
|
1520
|
-
$[8] = children;
|
|
1521
|
-
$[9] = props;
|
|
1522
|
-
$[10] = t2;
|
|
1523
|
-
$[11] = t3;
|
|
1524
|
-
} else {
|
|
1525
|
-
t3 = $[11];
|
|
1526
|
-
}
|
|
1527
|
-
return t3;
|
|
1528
|
-
};
|
|
1529
|
-
const HeaderLinks = Object.assign(HeaderLinksRoot, {
|
|
1530
|
-
Item: HeaderLinkItem
|
|
1531
|
-
});
|
|
1532
|
-
const Header = Object.assign(Header$1, {
|
|
1533
|
-
Title: HeaderTitle,
|
|
1534
|
-
Search: HeaderSearch,
|
|
1535
|
-
Links: HeaderLinks
|
|
1536
|
-
});
|
|
1537
1670
|
const LogoGreen = (t0) => {
|
|
1538
1671
|
const $ = compilerRuntimeExports.c(21);
|
|
1539
1672
|
const {
|
|
@@ -1651,7 +1784,7 @@ const LogoGreen = (t0) => {
|
|
|
1651
1784
|
};
|
|
1652
1785
|
export {
|
|
1653
1786
|
Alert,
|
|
1654
|
-
|
|
1787
|
+
Avatar,
|
|
1655
1788
|
Badge,
|
|
1656
1789
|
BadgePosition,
|
|
1657
1790
|
Breadcrumbs,
|
|
@@ -1677,8 +1810,8 @@ export {
|
|
|
1677
1810
|
DialogBlock,
|
|
1678
1811
|
DialogTrigger,
|
|
1679
1812
|
DialogTriggerContext,
|
|
1680
|
-
Divider,
|
|
1681
|
-
Dropdown,
|
|
1813
|
+
Divider2 as Divider,
|
|
1814
|
+
Dropdown2 as Dropdown,
|
|
1682
1815
|
DropdownButton,
|
|
1683
1816
|
DropdownHeading,
|
|
1684
1817
|
DropdownItem,
|
|
@@ -1710,10 +1843,9 @@ export {
|
|
|
1710
1843
|
FilePickerErrors,
|
|
1711
1844
|
FilePickerFiles,
|
|
1712
1845
|
Header,
|
|
1713
|
-
|
|
1714
|
-
HeaderSearch,
|
|
1846
|
+
HeaderDefaultLogo,
|
|
1715
1847
|
HeaderTitle,
|
|
1716
|
-
Heading,
|
|
1848
|
+
Heading2 as Heading,
|
|
1717
1849
|
Input,
|
|
1718
1850
|
Label,
|
|
1719
1851
|
LightDarkLogo,
|
|
@@ -1736,7 +1868,7 @@ export {
|
|
|
1736
1868
|
Radio,
|
|
1737
1869
|
RovingFocusItem,
|
|
1738
1870
|
RovingFocusRoot,
|
|
1739
|
-
|
|
1871
|
+
Search,
|
|
1740
1872
|
SearchButton,
|
|
1741
1873
|
SearchClear,
|
|
1742
1874
|
SearchInput,
|
|
@@ -1769,7 +1901,7 @@ export {
|
|
|
1769
1901
|
useCheckboxGroup,
|
|
1770
1902
|
useDebounceCallback,
|
|
1771
1903
|
useIsomorphicLayoutEffect,
|
|
1772
|
-
useMediaQuery,
|
|
1904
|
+
useMediaQuery2 as useMediaQuery,
|
|
1773
1905
|
usePagination,
|
|
1774
1906
|
useRadioGroup,
|
|
1775
1907
|
useSynchronizedAnimation
|