@altinn/altinn-components 0.56.32 → 0.56.34
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/ChevronDown-D_a7nb-G.js +24 -0
- package/dist/ChevronUp-hn05LboH.js +24 -0
- package/dist/Plus-Cj3oOc3N.js +24 -0
- package/dist/{SearchField-QTfebYdU.js → SearchField-BU7Imhpe.js} +19 -19
- package/dist/assets/BookmarkSettingsItemLabel.css +1 -0
- package/dist/assets/BulkButton.css +1 -0
- package/dist/assets/BulkFooter.css +1 -0
- package/dist/assets/BulkHeader.css +1 -0
- package/dist/assets/GlobalAccountButton.css +1 -0
- package/dist/assets/GlobalHeader.css +1 -1
- package/dist/assets/GlobalMenuButton.css +1 -1
- package/dist/assets/GlobalMenuButton2.css +1 -1
- package/dist/assets/MenuItem.css +1 -1
- package/dist/assets/QueryLabel.css +1 -1
- package/dist/assets/QueryLabelItem.css +1 -0
- package/dist/components/AccessAreaListItem/AccessAreaListItem.js +1 -1
- package/dist/components/AccessPackageListItem/AccessPackageListItem.js +1 -1
- package/dist/components/Account/AccountList.js +5 -5
- package/dist/components/Account/AccountListItem.js +1 -1
- package/dist/components/Account/AccountListItemControls.js +1 -1
- package/dist/components/Account/AccountListItemDetails.js +1 -1
- package/dist/components/Account/AccountListVirtual.js +1 -1
- package/dist/components/Account/AccountMenu.js +2 -2
- package/dist/components/Account/AccountNotificationSettings.js +3 -3
- package/dist/components/Account/AccountOrganization.js +1 -1
- package/dist/components/{GlobalHeader → AccountSelector}/AccountSelector.js +1 -1
- package/dist/components/AccountSelector/index.js +4 -0
- package/dist/components/ActivityLog/ActivityLog.js +1 -1
- package/dist/components/ActivityLog/ActivityLogItem.js +1 -1
- package/dist/components/ActivityLog/ActivityLogSegment.js +1 -1
- package/dist/components/Article/Article.js +1 -1
- package/dist/components/Article/ArticleContact.js +1 -1
- package/dist/components/Article/ArticleHeader.js +1 -1
- package/dist/components/Banner/Banner.js +1 -1
- package/dist/components/Bookmarks/BookmarkModal.js +5 -5
- package/dist/components/Bookmarks/BookmarkSettingsItem.js +1 -1
- package/dist/components/Bookmarks/BookmarkSettingsItemLabel.js +12 -10
- package/dist/components/Bookmarks/BookmarkSettingsList.js +31 -24
- package/dist/components/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Bulk/BulkButton.js +15 -0
- package/dist/components/Bulk/BulkFooter.js +10 -0
- package/dist/components/Bulk/BulkHeader.js +38 -0
- package/dist/components/Bulk/index.js +8 -0
- package/dist/components/Button/ButtonIcon.js +1 -1
- package/dist/components/Button/ComboButton.js +1 -1
- package/dist/components/Button/FloatingActionButton.js +1 -1
- package/dist/components/Button/IconButton.js +1 -1
- package/dist/components/Byline/Byline.js +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +4 -4
- package/dist/components/Dashboard/DashboardCard.js +7 -7
- package/dist/components/Dashboard/DashboardHeader.js +7 -7
- package/dist/components/Datepicker/DatepickerHeader.js +1 -1
- package/dist/components/Datepicker/DatepickerTable.js +1 -1
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/Dialog/DialogActions.js +17 -16
- package/dist/components/Dialog/DialogActivityLog.js +1 -1
- package/dist/components/Dialog/DialogAttachments.js +1 -1
- package/dist/components/Dialog/DialogBody.js +1 -1
- package/dist/components/Dialog/DialogByline.js +1 -1
- package/dist/components/Dialog/DialogContact.js +1 -1
- package/dist/components/Dialog/DialogHeader.js +1 -1
- package/dist/components/Dialog/DialogHistory.js +1 -1
- package/dist/components/Dialog/DialogHistoryItem.js +1 -1
- package/dist/components/Dialog/DialogHistorySegment.js +1 -1
- package/dist/components/Dialog/DialogLayout.js +1 -1
- package/dist/components/Dialog/DialogList.js +1 -1
- package/dist/components/Dialog/DialogListGroup.js +1 -1
- package/dist/components/Dialog/DialogListItem.js +1 -1
- package/dist/components/Dialog/DialogMetadata.js +1 -1
- package/dist/components/Dialog/DialogSection.js +1 -1
- package/dist/components/Dialog/DialogSeenBy.js +1 -1
- package/dist/components/Dialog/DialogSelect.js +1 -1
- package/dist/components/Dialog/DialogStatus.js +1 -1
- package/dist/components/Dialog/DialogTabs.js +2 -2
- package/dist/components/Dialog/SeenByLog.js +1 -1
- package/dist/components/Dialog/SeenByLogButton.js +1 -1
- package/dist/components/Dialog/SeenByLogItem.js +1 -1
- package/dist/components/Dropdown/DrawerButton.js +1 -1
- package/dist/components/Dropdown/DrawerHeader.js +1 -1
- package/dist/components/Dropdown/DrawerOrDropdown.js +1 -1
- package/dist/components/Dropdown/DropdownBase.js +1 -1
- package/dist/components/Dropdown/FloatingDropdown.js +4 -4
- package/dist/components/DsComponents/index.js +1 -1
- package/dist/components/Forms/Checkbox.js +3 -3
- package/dist/components/Forms/CheckboxOptions.js +3 -3
- package/dist/components/Forms/FieldBase.js +7 -7
- package/dist/components/Forms/FieldsetBase.js +3 -3
- package/dist/components/Forms/Radio.js +3 -3
- package/dist/components/Forms/RadioOptions.js +3 -3
- package/dist/components/Forms/SearchField.js +4 -4
- package/dist/components/Forms/SelectField.js +3 -3
- package/dist/components/Forms/Switch.js +3 -3
- package/dist/components/Forms/SwitchOptions.js +3 -3
- package/dist/components/Forms/TextField.js +3 -3
- package/dist/components/Forms/TextFieldDropdown.js +29 -28
- package/dist/components/Forms/TextareaField.js +3 -3
- package/dist/components/Forms/index.js +1 -1
- package/dist/components/GlobalHeader/GlobalAccountButton.js +127 -0
- package/dist/components/GlobalHeader/GlobalHeader.js +40 -41
- package/dist/components/GlobalHeader/GlobalMenuButton.js +26 -26
- package/dist/components/GlobalHeader/HeaderDrawer.js +62 -97
- package/dist/components/GlobalHeader/HeaderDropdown.js +1 -1
- package/dist/components/GlobalHeader/HeaderLogo.js +1 -1
- package/dist/components/GlobalHeader/index.js +4 -2
- package/dist/components/GlobalMenu/GlobalMenu.js +2 -2
- package/dist/components/GlobalMenu/LocaleSwitcher.js +2 -2
- package/dist/components/GlobalMenu/LogoutButton.js +1 -1
- package/dist/components/GlobalMenu_old/BackButton.js +2 -2
- package/dist/components/GlobalMenu_old/CurrentAccount.js +2 -2
- package/dist/components/GlobalMenu_old/GlobalMenu.js +3 -3
- package/dist/components/GlobalMenu_old/GlobalMenuButton.js +2 -2
- package/dist/components/GlobalMenu_old/LogoutButton.js +1 -1
- package/dist/components/Header/Header.js +6 -6
- package/dist/components/Header/HeaderBase.js +1 -1
- package/dist/components/Header/HeaderButton.js +1 -1
- package/dist/components/Header/LocaleButton.js +1 -1
- package/dist/components/Header/LocaleSwitcher.js +1 -1
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/InboxSearch/InboxSearch.js +1 -1
- package/dist/components/Item/ItemMedia.js +1 -1
- package/dist/components/Item/ItemSelect.js +12 -0
- package/dist/components/Item/index.js +4 -2
- package/dist/components/Layout/Layout.js +13 -13
- package/dist/components/List/List.js +1 -1
- package/dist/components/List/ListBase.js +1 -1
- package/dist/components/List/ListItemHeader.js +13 -12
- package/dist/components/List/ListItemIcon.js +1 -1
- package/dist/components/List/ListItemLabel.js +1 -1
- package/dist/components/List/ListItemSelect.js +3 -3
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuItem.js +64 -63
- package/dist/components/Menu/MenuItems.js +3 -3
- package/dist/components/Menu/MenuListSearch.js +2 -2
- package/dist/components/Menu/TabMenu.js +2 -2
- package/dist/components/Menu/VirtualizedMenuItems.js +3 -3
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Metadata/MetaItem.js +1 -1
- package/dist/components/Metadata/MetaItemIcon.js +1 -1
- package/dist/components/Metadata/MetaProgress.js +1 -1
- package/dist/components/Metadata/MetaTimestamp.js +1 -1
- package/dist/components/Metadata/Metadata.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/ModalBase.js +1 -1
- package/dist/components/Modal/ModalHeader.js +1 -1
- package/dist/components/Modal/ModalIcon.js +1 -1
- package/dist/components/Notifications/NotificationItem.js +1 -1
- package/dist/components/Notifications/NotificationItemBase.js +1 -1
- package/dist/components/Notifications/NotificationItemControls.js +1 -1
- package/dist/components/Notifications/NotificationItemIcon.js +1 -1
- package/dist/components/Page/AccordionSection.js +1 -1
- package/dist/components/Page/ContactButtons.js +1 -1
- package/dist/components/Page/ContactSection.js +1 -1
- package/dist/components/Page/PageMenu.js +1 -1
- package/dist/components/Page/PageNav.js +1 -1
- package/dist/components/Page/Section.js +1 -1
- package/dist/components/ResourceListItem/ResourceListItem.js +1 -1
- package/dist/components/Search/SearchItem.js +1 -1
- package/dist/components/Searchbar/Autocomplete.js +2 -2
- package/dist/components/Searchbar/AutocompleteItem.js +3 -3
- package/dist/components/Searchbar/Searchbar.js +1 -1
- package/dist/components/Searchbar/SearchbarField.js +1 -1
- package/dist/components/Searchbar/index.js +6 -9
- package/dist/components/Settings/SettingsItem.js +2 -2
- package/dist/components/Settings/SettingsItemBase.js +1 -1
- package/dist/components/Settings/SettingsList.js +1 -1
- package/dist/components/Settings/SettingsModal.js +1 -1
- package/dist/components/Settings/SettingsSection.js +1 -1
- package/dist/components/Settings/UsedByLog.js +1 -1
- package/dist/components/Settings/UsedByLogItem.js +1 -1
- package/dist/components/Snackbar/SnackbarItem.js +1 -1
- package/dist/components/Timeline/Timeline.js +1 -1
- package/dist/components/Timeline/TimelineActivity.js +1 -1
- package/dist/components/Timeline/TimelineBase.js +1 -1
- package/dist/components/Timeline/TimelineFooter.js +1 -1
- package/dist/components/Timeline/TimelineHeader.js +1 -1
- package/dist/components/Timeline/TimelineIcon.js +1 -1
- package/dist/components/Timeline/TimelineSection.js +1 -1
- package/dist/components/Timeline/TimelineSegment.js +1 -1
- package/dist/components/Toolbar/DatepickerFilter.js +1 -1
- package/dist/components/Toolbar/QueryLabel.js +13 -0
- package/dist/components/Toolbar/QueryLabelItem.js +7 -0
- package/dist/components/Toolbar/SelectDateFilter.js +2 -2
- package/dist/components/Toolbar/Toolbar.js +1 -1
- package/dist/components/Toolbar/ToolbarFilter.js +1 -1
- package/dist/components/Toolbar/ToolbarFilterAddMenu.js +42 -60
- package/dist/components/Toolbar/ToolbarFilterButton.js +1 -1
- package/dist/components/Toolbar/ToolbarFilterMenu.js +2 -2
- package/dist/components/Toolbar/ToolbarMenu.js +25 -24
- package/dist/components/Toolbar/ToolbarSearch.js +2 -2
- package/dist/components/Toolbar/example.data.js +16 -7
- package/dist/components/Toolbar/index.js +10 -6
- package/dist/components/Transmission/Transmission.js +1 -1
- package/dist/components/Transmission/TransmissionList.js +1 -1
- package/dist/components/Transmission/TransmissionType.js +1 -1
- package/dist/components/Typography/Heading.js +1 -1
- package/dist/components/UserListItem/UserListItem.js +1 -1
- package/dist/components/index.js +468 -457
- package/dist/hooks/useAccountSelector.js +152 -126
- package/dist/index.js +486 -475
- package/dist/textfield-CRXtg-r5.js +3487 -0
- package/dist/types/lib/components/Account/Account.stories.d.ts +6 -1
- package/dist/types/lib/components/Account/AccountList.stories.d.ts +3 -1
- package/dist/types/lib/components/AccountSelector/index.d.ts +1 -0
- package/dist/types/lib/components/Bookmarks/Bookmark.stories.d.ts +11 -0
- package/dist/types/lib/components/Bookmarks/BookmarkSettingsItem.d.ts +2 -0
- package/dist/types/lib/components/Bookmarks/BookmarkSettingsList.d.ts +2 -1
- package/dist/types/lib/components/Bookmarks/BookmarkSettingsList.stories.d.ts +2 -2
- package/dist/types/lib/components/Bulk/Bulk.stories.d.ts +13 -0
- package/dist/types/lib/components/Bulk/BulkButton.d.ts +8 -0
- package/dist/types/lib/components/Bulk/BulkFooter.d.ts +8 -0
- package/dist/types/lib/components/Bulk/BulkHeader.d.ts +12 -0
- package/dist/types/lib/components/Bulk/index.d.ts +3 -0
- package/dist/types/lib/components/GlobalHeader/{AccountSelectorButton.d.ts → GlobalAccountButton.d.ts} +2 -2
- package/dist/types/lib/components/GlobalHeader/{AccountSelectorButton.stories.d.ts → GlobalAccountButton.stories.d.ts} +1 -1
- package/dist/types/lib/components/GlobalHeader/GlobalHeader.d.ts +1 -1
- package/dist/types/lib/components/GlobalHeader/index.d.ts +1 -0
- package/dist/types/lib/components/Item/ItemSelect.d.ts +8 -0
- package/dist/types/lib/components/Item/index.d.ts +1 -0
- package/dist/types/lib/components/Searchbar/index.d.ts +0 -1
- package/dist/types/lib/components/Toolbar/QueryLabel.d.ts +9 -0
- package/dist/types/lib/components/Toolbar/QueryLabelItem.d.ts +13 -0
- package/dist/types/lib/components/Toolbar/ToolbarMenu.d.ts +3 -1
- package/dist/types/lib/components/Toolbar/example.hooks.d.ts +12 -2
- package/dist/types/lib/components/Toolbar/index.d.ts +2 -0
- package/dist/types/lib/components/index.d.ts +3 -1
- package/dist/types/lib/hooks/useAccountSelector.d.ts +1 -1
- package/dist/types/lib/stories/Color.stories.d.ts +20 -0
- package/package.json +2 -2
- package/dist/ChevronUp-_BBfEirx.js +0 -43
- package/dist/assets/AccountSelectorButton.css +0 -1
- package/dist/assets/ActionFooter.css +0 -1
- package/dist/assets/ActionHeader.css +0 -1
- package/dist/components/GlobalHeader/AccountSelectorButton.js +0 -127
- package/dist/components/LayoutAction/ActionFooter.js +0 -7
- package/dist/components/LayoutAction/ActionHeader.js +0 -38
- package/dist/components/LayoutAction/LayoutAction.js +0 -38
- package/dist/components/LayoutAction/index.js +0 -8
- package/dist/components/Searchbar/QueryLabel.js +0 -14
- package/dist/textfield-DP1SL4Wr.js +0 -3406
- package/dist/types/lib/components/GlobalMenu_old/GlobalMenu.stories.d.ts +0 -30
- package/dist/types/lib/components/GlobalMenu_old/GlobalMenuButton.stories.d.ts +0 -19
- package/dist/types/lib/components/LayoutAction/ActionFooter.d.ts +0 -6
- package/dist/types/lib/components/LayoutAction/ActionHeader.d.ts +0 -11
- package/dist/types/lib/components/LayoutAction/LayoutAction.d.ts +0 -15
- package/dist/types/lib/components/LayoutAction/LayoutAction.stories.d.ts +0 -5
- package/dist/types/lib/components/LayoutAction/index.d.ts +0 -3
- package/dist/types/lib/components/Searchbar/QueryLabel.d.ts +0 -14
- /package/dist/types/lib/components/{GlobalHeader → AccountSelector}/AccountSelector.d.ts +0 -0
- /package/dist/types/lib/components/{GlobalHeader → AccountSelector}/AccountSelector.stories.d.ts +0 -0
|
@@ -1,68 +1,67 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as n, jsxs as a, Fragment as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { useIsDesktop as
|
|
5
|
-
import {
|
|
2
|
+
import { jsx as n, jsxs as a, Fragment as _ } from "react/jsx-runtime";
|
|
3
|
+
import { useState as F } from "react";
|
|
4
|
+
import { useIsDesktop as A } from "../../hooks/useIsDesktop.js";
|
|
5
|
+
import { AccountSelector as C } from "../AccountSelector/AccountSelector.js";
|
|
6
|
+
import { GlobalMenu as b } from "../GlobalMenu/GlobalMenu.js";
|
|
6
7
|
import "../../index-p1eeF8LQ.js";
|
|
7
8
|
import "../Button/Button.js";
|
|
8
9
|
import "react-dom";
|
|
9
|
-
import { useRootContext as
|
|
10
|
+
import { useRootContext as j } from "../RootProvider/RootProvider.js";
|
|
10
11
|
import { GlobalMenuButton as k } from "./GlobalMenuButton.js";
|
|
12
|
+
import { GlobalAccountButton as D } from "./GlobalAccountButton.js";
|
|
11
13
|
import "../Snackbar/useSnackbar.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
container: G,
|
|
20
|
-
nav: I
|
|
14
|
+
import { HeaderDrawer as G } from "./HeaderDrawer.js";
|
|
15
|
+
import { HeaderDropdown as H } from "./HeaderDropdown.js";
|
|
16
|
+
import { HeaderLogo as N } from "./HeaderLogo.js";
|
|
17
|
+
import '../../assets/GlobalHeader.css';const w = "_header_1iojv_1", y = "_container_1iojv_7", B = "_nav_1iojv_53", t = {
|
|
18
|
+
header: w,
|
|
19
|
+
container: y,
|
|
20
|
+
nav: B
|
|
21
21
|
}, W = ({
|
|
22
22
|
globalMenu: r,
|
|
23
|
-
desktopMenu:
|
|
24
|
-
mobileMenu:
|
|
25
|
-
locale:
|
|
23
|
+
desktopMenu: d,
|
|
24
|
+
mobileMenu: m,
|
|
25
|
+
locale: p,
|
|
26
26
|
accountSelector: e,
|
|
27
|
-
logo:
|
|
28
|
-
badge:
|
|
29
|
-
onLoginClick:
|
|
27
|
+
logo: u = {},
|
|
28
|
+
badge: f,
|
|
29
|
+
onLoginClick: h
|
|
30
30
|
}) => {
|
|
31
|
-
const { currentId: o, toggleId:
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
},
|
|
31
|
+
const { currentId: o, toggleId: l, closeAll: c } = j(), g = () => {
|
|
32
|
+
l("account");
|
|
33
|
+
}, v = () => {
|
|
34
|
+
l("menu");
|
|
35
|
+
}, i = o === "account" || e?.forceOpenFullScreen || !1, [s, x] = F(!1), O = A();
|
|
36
36
|
return /* @__PURE__ */ n("header", { className: t.header, "data-current-id": o, children: /* @__PURE__ */ a("div", { className: t.container, children: [
|
|
37
|
-
/* @__PURE__ */ n(
|
|
37
|
+
/* @__PURE__ */ n(N, { ...u, badge: f, className: t.logo }),
|
|
38
38
|
/* @__PURE__ */ a("nav", { className: t.nav, children: [
|
|
39
|
-
e && /* @__PURE__ */ a(
|
|
39
|
+
e && /* @__PURE__ */ a(_, { children: [
|
|
40
40
|
/* @__PURE__ */ n(
|
|
41
|
-
|
|
41
|
+
D,
|
|
42
42
|
{
|
|
43
43
|
currentAccount: e.accountMenu?.currentAccount,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
expanded: l,
|
|
44
|
+
onClick: e.accountMenu?.currentAccount ? g : h,
|
|
45
|
+
expanded: i,
|
|
47
46
|
loading: e.loading,
|
|
48
47
|
disabled: e.forceOpenFullScreen
|
|
49
48
|
}
|
|
50
49
|
),
|
|
51
50
|
/* @__PURE__ */ n(
|
|
52
|
-
|
|
51
|
+
G,
|
|
53
52
|
{
|
|
54
53
|
id: "header-account",
|
|
55
|
-
open:
|
|
54
|
+
open: i,
|
|
56
55
|
onClose: c,
|
|
57
56
|
closedBy: e?.forceOpenFullScreen ? "none" : "any",
|
|
58
|
-
expanded: e?.forceOpenFullScreen ||
|
|
59
|
-
onToggle: () =>
|
|
60
|
-
children: /* @__PURE__ */ n(
|
|
57
|
+
expanded: e?.forceOpenFullScreen || s,
|
|
58
|
+
onToggle: () => x(!s),
|
|
59
|
+
children: /* @__PURE__ */ n(C, { ...e, forceOpenFullScreen: e.forceOpenFullScreen })
|
|
61
60
|
}
|
|
62
61
|
)
|
|
63
62
|
] }),
|
|
64
63
|
/* @__PURE__ */ n(
|
|
65
|
-
|
|
64
|
+
H,
|
|
66
65
|
{
|
|
67
66
|
id: "header-menu",
|
|
68
67
|
open: o === "menu",
|
|
@@ -70,19 +69,19 @@ import '../../assets/GlobalHeader.css';const B = "_header_57464_1", G = "_contai
|
|
|
70
69
|
trigger: /* @__PURE__ */ n(
|
|
71
70
|
k,
|
|
72
71
|
{
|
|
73
|
-
onClick:
|
|
72
|
+
onClick: v,
|
|
74
73
|
expanded: o === "menu",
|
|
75
74
|
disabled: e?.forceOpenFullScreen,
|
|
76
75
|
label: r?.menuLabel
|
|
77
76
|
}
|
|
78
77
|
),
|
|
79
78
|
children: /* @__PURE__ */ n(
|
|
80
|
-
|
|
79
|
+
b,
|
|
81
80
|
{
|
|
82
81
|
...r,
|
|
83
|
-
menu:
|
|
82
|
+
menu: O ? d || r?.menu : m || r?.menu,
|
|
84
83
|
onClose: c,
|
|
85
|
-
localeSwitcher:
|
|
84
|
+
localeSwitcher: p,
|
|
86
85
|
isOpen: o === "menu"
|
|
87
86
|
}
|
|
88
87
|
)
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as b, jsx as
|
|
1
|
+
import { jsxs as b, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Badge as p } from "../Badge/Badge.js";
|
|
3
3
|
import "../../index-p1eeF8LQ.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import {
|
|
5
|
+
import { useRootContext as _ } from "../RootProvider/RootProvider.js";
|
|
6
|
+
import { Button as d } from "../Button/Button.js";
|
|
6
7
|
import "react-dom";
|
|
7
|
-
import { useRootContext as d } from "../RootProvider/RootProvider.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
import { S as g } from "../../XMark-tKk6aExO.js";
|
|
10
10
|
import { S as f } from "../../MenuHamburger-YjDC-ncP.js";
|
|
11
|
-
import '../../assets/
|
|
11
|
+
import '../../assets/GlobalMenuButton.css';const N = "_button_e58u8_3", h = "_icon_e58u8_14", k = "_label_e58u8_22", y = "_badge_e58u8_28", t = {
|
|
12
12
|
button: N,
|
|
13
13
|
icon: h,
|
|
14
14
|
label: k,
|
|
15
15
|
badge: y
|
|
16
|
-
}, M = (
|
|
17
|
-
switch (
|
|
16
|
+
}, M = (n) => {
|
|
17
|
+
switch (n) {
|
|
18
18
|
case "nn":
|
|
19
19
|
return {
|
|
20
20
|
close: "Lukk meny"
|
|
@@ -28,37 +28,37 @@ import '../../assets/GlobalMenuButton2.css';const N = "_button_1ssrq_3", h = "_i
|
|
|
28
28
|
close: "Lukk Meny"
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
},
|
|
32
|
-
className:
|
|
33
|
-
as:
|
|
34
|
-
color:
|
|
31
|
+
}, T = ({
|
|
32
|
+
className: n,
|
|
33
|
+
as: x = "button",
|
|
34
|
+
color: r = "company",
|
|
35
35
|
variant: c = "solid",
|
|
36
|
-
onClick:
|
|
37
|
-
expanded:
|
|
38
|
-
label:
|
|
39
|
-
badge:
|
|
40
|
-
...
|
|
36
|
+
onClick: u,
|
|
37
|
+
expanded: o,
|
|
38
|
+
label: s = "Menu",
|
|
39
|
+
badge: a,
|
|
40
|
+
...l
|
|
41
41
|
}) => {
|
|
42
|
-
const { languageCode:
|
|
42
|
+
const { languageCode: m } = _(), { close: i } = M(m);
|
|
43
43
|
return /* @__PURE__ */ b(
|
|
44
|
-
|
|
44
|
+
d,
|
|
45
45
|
{
|
|
46
|
-
...
|
|
46
|
+
...l,
|
|
47
47
|
type: "button",
|
|
48
|
-
title:
|
|
49
|
-
onClick:
|
|
50
|
-
color:
|
|
48
|
+
title: o ? i : s,
|
|
49
|
+
onClick: u,
|
|
50
|
+
color: r,
|
|
51
51
|
variant: c,
|
|
52
52
|
className: t.button,
|
|
53
|
-
"aria-expanded":
|
|
53
|
+
"aria-expanded": o,
|
|
54
54
|
children: [
|
|
55
|
-
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
|
|
55
|
+
o ? /* @__PURE__ */ e(g, { className: t.icon, "aria-hidden": "true" }) : /* @__PURE__ */ e(f, { className: t.icon, "aria-hidden": "true" }),
|
|
56
|
+
/* @__PURE__ */ e("span", { className: t.label, children: s }),
|
|
57
|
+
a && /* @__PURE__ */ e(p, { ...a, className: t.badge })
|
|
58
58
|
]
|
|
59
59
|
}
|
|
60
60
|
);
|
|
61
61
|
};
|
|
62
62
|
export {
|
|
63
|
-
|
|
63
|
+
T as GlobalMenuButton
|
|
64
64
|
};
|
|
@@ -1,121 +1,86 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { Button as M } from "../Button/Button.js";
|
|
1
|
+
import { jsxs as c, Fragment as f, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as N, useEffect as v } from "react";
|
|
3
|
+
import { Button as D } from "../Button/Button.js";
|
|
5
4
|
import "../../index-p1eeF8LQ.js";
|
|
5
|
+
import { useRootContext as L } from "../RootProvider/RootProvider.js";
|
|
6
6
|
import "react-dom";
|
|
7
|
-
import { useRootContext as z } from "../RootProvider/RootProvider.js";
|
|
8
7
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
f.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M3.75 12a8.25 8.25 0 1 1 16.5 0 8.25 8.25 0 0 1-16.5 0M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25m4.03 9.28-3.5 3.5a.75.75 0 0 1-1.06 0l-3.5-3.5a.75.75 0 0 1 .53-1.28h7a.75.75 0 0 1 .53 1.28m-2.34.22h-3.38L12 13.44z", clipRule: "evenodd" })
|
|
26
|
-
);
|
|
27
|
-
});
|
|
28
|
-
var D = function(t, l) {
|
|
29
|
-
var n = {};
|
|
30
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && l.indexOf(e) < 0 && (n[e] = t[e]);
|
|
31
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
32
|
-
for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
|
|
33
|
-
l.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (n[e[r]] = t[e[r]]);
|
|
34
|
-
return n;
|
|
35
|
-
};
|
|
36
|
-
const P = y((t, l) => {
|
|
37
|
-
var { title: n, titleId: e } = t, r = D(t, ["title", "titleId"]);
|
|
38
|
-
let i = _();
|
|
39
|
-
return i = n ? e || "title-" + i : void 0, f.createElement(
|
|
40
|
-
"svg",
|
|
41
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: l, "aria-labelledby": i }, r),
|
|
42
|
-
n ? f.createElement("title", { id: i }, n) : null,
|
|
43
|
-
f.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M3.75 12a8.25 8.25 0 1 1 16.5 0 8.25 8.25 0 0 1-16.5 0M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25m.53 6.72a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 0 0 .53 1.28h7a.75.75 0 0 0 .53-1.28zM12 10.56l1.69 1.69h-3.38z", clipRule: "evenodd" })
|
|
44
|
-
);
|
|
45
|
-
}), B = "_backdrop_1f6gf_11", F = "_drawer_1f6gf_28", V = "_footer_1f6gf_60", q = "_body_1f6gf_64", A = "_toggleButton_1f6gf_94", c = {
|
|
46
|
-
backdrop: B,
|
|
47
|
-
drawer: F,
|
|
48
|
-
footer: V,
|
|
49
|
-
body: q,
|
|
50
|
-
toggleButton: A
|
|
51
|
-
}, W = ({
|
|
52
|
-
id: t,
|
|
53
|
-
open: l,
|
|
54
|
-
onClose: n,
|
|
55
|
-
closedBy: e = "any",
|
|
56
|
-
expanded: r,
|
|
57
|
-
onToggle: i,
|
|
58
|
-
children: O
|
|
8
|
+
import { S as z } from "../../ChevronUp-hn05LboH.js";
|
|
9
|
+
import { S as j } from "../../ChevronDown-D_a7nb-G.js";
|
|
10
|
+
import '../../assets/HeaderDrawer.css';const I = "_backdrop_1f6gf_11", M = "_drawer_1f6gf_28", R = "_footer_1f6gf_60", F = "_body_1f6gf_64", V = "_toggleButton_1f6gf_94", n = {
|
|
11
|
+
backdrop: I,
|
|
12
|
+
drawer: M,
|
|
13
|
+
footer: R,
|
|
14
|
+
body: F,
|
|
15
|
+
toggleButton: V
|
|
16
|
+
}, O = ({
|
|
17
|
+
id: l,
|
|
18
|
+
open: i,
|
|
19
|
+
onClose: a,
|
|
20
|
+
closedBy: o = "any",
|
|
21
|
+
expanded: m,
|
|
22
|
+
onToggle: b,
|
|
23
|
+
children: _
|
|
59
24
|
}) => {
|
|
60
|
-
const { languageCode:
|
|
61
|
-
|
|
62
|
-
const
|
|
63
|
-
const { clientY:
|
|
64
|
-
if (
|
|
65
|
-
if (
|
|
66
|
-
|
|
25
|
+
const { languageCode: w } = L(), u = q(w), d = N(null);
|
|
26
|
+
v(() => {
|
|
27
|
+
const e = d.current, s = (t) => {
|
|
28
|
+
const { clientY: p, clientX: h, target: y } = t;
|
|
29
|
+
if (t instanceof KeyboardEvent && t.key === "Escape") {
|
|
30
|
+
if (o === "none") {
|
|
31
|
+
t.preventDefault();
|
|
67
32
|
return;
|
|
68
33
|
}
|
|
69
|
-
|
|
34
|
+
a();
|
|
70
35
|
return;
|
|
71
36
|
}
|
|
72
|
-
if (!window.getSelection()?.toString() &&
|
|
73
|
-
const { top:
|
|
74
|
-
|
|
37
|
+
if (!window.getSelection()?.toString() && e && y === e && o === "any") {
|
|
38
|
+
const { top: E, left: S, right: x, bottom: C } = e.getBoundingClientRect();
|
|
39
|
+
E <= p && p <= C && S <= h && h <= x || e?.close();
|
|
75
40
|
}
|
|
76
|
-
},
|
|
77
|
-
const
|
|
78
|
-
document.activeElement !==
|
|
41
|
+
}, g = () => {
|
|
42
|
+
const t = e?.querySelector("[autofocus]");
|
|
43
|
+
document.activeElement !== t && t?.focus();
|
|
79
44
|
};
|
|
80
|
-
return
|
|
81
|
-
|
|
45
|
+
return e?.addEventListener("animationend", g), e?.addEventListener("click", s), e?.addEventListener("keydown", s), () => {
|
|
46
|
+
e?.removeEventListener("animationend", g), e?.removeEventListener("click", s), e?.removeEventListener("keydown", s);
|
|
82
47
|
};
|
|
83
|
-
}, [
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
}, [
|
|
87
|
-
const
|
|
88
|
-
|
|
48
|
+
}, [o, a]), v(() => {
|
|
49
|
+
const e = d.current;
|
|
50
|
+
e && (i ? e.open || e.showModal() : e.open && e.close());
|
|
51
|
+
}, [i]);
|
|
52
|
+
const k = (e) => {
|
|
53
|
+
e.preventDefault(), o === "any" && a();
|
|
89
54
|
};
|
|
90
|
-
return /* @__PURE__ */
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
/* @__PURE__ */
|
|
55
|
+
return /* @__PURE__ */ c(f, { children: [
|
|
56
|
+
/* @__PURE__ */ r("div", { className: n.backdrop, "aria-hidden": !i }),
|
|
57
|
+
/* @__PURE__ */ c(
|
|
93
58
|
"dialog",
|
|
94
59
|
{
|
|
95
|
-
id:
|
|
96
|
-
ref:
|
|
60
|
+
id: l,
|
|
61
|
+
ref: d,
|
|
97
62
|
"aria-modal": "true",
|
|
98
63
|
"aria-labelledby": "modal-title",
|
|
99
|
-
"data-open":
|
|
100
|
-
"data-expanded":
|
|
101
|
-
onCancel:
|
|
102
|
-
className:
|
|
103
|
-
onClose:
|
|
64
|
+
"data-open": i,
|
|
65
|
+
"data-expanded": m,
|
|
66
|
+
onCancel: k,
|
|
67
|
+
className: n.drawer,
|
|
68
|
+
onClose: o !== "none" ? a : void 0,
|
|
104
69
|
children: [
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
-
|
|
107
|
-
/* @__PURE__ */
|
|
108
|
-
|
|
109
|
-
] }) : /* @__PURE__ */
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
|
|
70
|
+
/* @__PURE__ */ r("div", { className: n.body, children: _ }),
|
|
71
|
+
o !== "none" && /* @__PURE__ */ r("footer", { className: n.footer, children: /* @__PURE__ */ r(D, { className: n.toggleButton, variant: "outline", onClick: b, children: m ? /* @__PURE__ */ c(f, { children: [
|
|
72
|
+
/* @__PURE__ */ r(z, { className: n.btnIcon, "aria-hidden": "true" }),
|
|
73
|
+
u.minimize
|
|
74
|
+
] }) : /* @__PURE__ */ c(f, { children: [
|
|
75
|
+
/* @__PURE__ */ r(j, { className: n.btnIcon, "aria-hidden": "true" }),
|
|
76
|
+
u.fullscreen
|
|
112
77
|
] }) }) })
|
|
113
78
|
]
|
|
114
79
|
}
|
|
115
80
|
)
|
|
116
81
|
] });
|
|
117
|
-
},
|
|
118
|
-
switch (
|
|
82
|
+
}, q = (l) => {
|
|
83
|
+
switch (l) {
|
|
119
84
|
case "nn":
|
|
120
85
|
return {
|
|
121
86
|
minimize: "Minimer",
|
|
@@ -134,5 +99,5 @@ const P = y((t, l) => {
|
|
|
134
99
|
}
|
|
135
100
|
};
|
|
136
101
|
export {
|
|
137
|
-
|
|
102
|
+
O as HeaderDrawer
|
|
138
103
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../Button/Button.js";
|
|
5
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
+
import "../Button/Button.js";
|
|
6
6
|
import "../Snackbar/useSnackbar.js";
|
|
7
7
|
import { Dropdown as m } from "../Dropdown/Dropdown.js";
|
|
8
8
|
import '../../assets/HeaderDropdown.css';const e = "_dropdown_cdjbb_3", i = {
|
|
@@ -3,8 +3,8 @@ import { c as l } from "../../index-p1eeF8LQ.js";
|
|
|
3
3
|
import { Badge as c } from "../Badge/Badge.js";
|
|
4
4
|
import { Button as g } from "../Button/Button.js";
|
|
5
5
|
import "react";
|
|
6
|
-
import "react-dom";
|
|
7
6
|
import { useRootContext as p } from "../RootProvider/RootProvider.js";
|
|
7
|
+
import "react-dom";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
import { DigdirLogomark as x } from "./DigdirLogomark.js";
|
|
10
10
|
import '../../assets/HeaderLogo2.css';const d = "_logo_1yxnd_1", _ = "_logomark_1yxnd_16", f = "_text_1yxnd_23", t = {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { GlobalHeader as r } from "./GlobalHeader.js";
|
|
2
|
-
import { GlobalMenuButton as
|
|
2
|
+
import { GlobalMenuButton as l } from "./GlobalMenuButton.js";
|
|
3
|
+
import { GlobalAccountButton as n } from "./GlobalAccountButton.js";
|
|
3
4
|
export {
|
|
5
|
+
n as GlobalAccountButton,
|
|
4
6
|
r as GlobalHeader,
|
|
5
|
-
|
|
7
|
+
l as GlobalMenuButton
|
|
6
8
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as f, jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { useState as d, useCallback as L, useEffect as C, useMemo as G } from "react";
|
|
4
|
-
import { M as S } from "../../SearchField-
|
|
4
|
+
import { M as S } from "../../SearchField-BU7Imhpe.js";
|
|
5
5
|
import "../../index-p1eeF8LQ.js";
|
|
6
|
+
import "../RootProvider/RootProvider.js";
|
|
6
7
|
import "../Button/Button.js";
|
|
7
8
|
import "react-dom";
|
|
8
|
-
import "../RootProvider/RootProvider.js";
|
|
9
9
|
import { LocaleSwitcher as v } from "./LocaleSwitcher.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
11
|
import { MenuListItem as x } from "../Menu/MenuListItem.js";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import { useRef as g, useMemo as l } from "react";
|
|
4
4
|
import { useEnterKey as v } from "../../hooks/useEnterKey.js";
|
|
5
|
-
import { a as h } from "../../SearchField-
|
|
5
|
+
import { a as h } from "../../SearchField-BU7Imhpe.js";
|
|
6
6
|
import "../../index-p1eeF8LQ.js";
|
|
7
|
+
import { useRootContext as b } from "../RootProvider/RootProvider.js";
|
|
7
8
|
import "../Button/Button.js";
|
|
8
9
|
import "react-dom";
|
|
9
|
-
import { useRootContext as b } from "../RootProvider/RootProvider.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
11
|
import { S } from "../../Checkmark-Byz_C9x4.js";
|
|
12
12
|
import { S as x } from "../../ArrowUndo-hge1gMu8.js";
|
|
@@ -2,8 +2,8 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { Button as i } from "../Button/Button.js";
|
|
3
3
|
import "../../index-p1eeF8LQ.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "react-dom";
|
|
6
5
|
import "../RootProvider/RootProvider.js";
|
|
6
|
+
import "react-dom";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
8
|
import '../../assets/LogoutButton.css';const m = "_button_1260s_1", s = {
|
|
9
9
|
button: m
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../index-p1eeF8LQ.js";
|
|
4
|
+
import { MenuItem as i } from "../Menu/MenuItem.js";
|
|
5
|
+
import "../RootProvider/RootProvider.js";
|
|
4
6
|
import "../Button/Button.js";
|
|
5
7
|
import "react-dom";
|
|
6
|
-
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { MenuItem as i } from "../Menu/MenuItem.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
import { S as p } from "../../ArrowUndo-hge1gMu8.js";
|
|
10
10
|
const x = ({ label: o, onClick: r, as: t }) => /* @__PURE__ */ m(i, { size: "sm", id: "back", icon: p, title: o, onClick: r, as: t });
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../Button/Button.js";
|
|
5
|
-
import "react-dom";
|
|
6
4
|
import "../RootProvider/RootProvider.js";
|
|
7
5
|
import { MenuItem as n } from "../Menu/MenuItem.js";
|
|
6
|
+
import "../Button/Button.js";
|
|
7
|
+
import "react-dom";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
const a = ({ account: i, multipleAccounts: r, as: o, onClick: t }) => /* @__PURE__ */ m(
|
|
10
10
|
n,
|
|
@@ -3,11 +3,11 @@ import { jsxs as m, jsx as r, Fragment as C } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState as G, useMemo as S } from "react";
|
|
4
4
|
import "../../index-p1eeF8LQ.js";
|
|
5
5
|
import { AccountMenu as x } from "../Account/AccountMenu.js";
|
|
6
|
+
import { M as f } from "../../SearchField-BU7Imhpe.js";
|
|
7
|
+
import { MenuListItem as h } from "../Menu/MenuListItem.js";
|
|
8
|
+
import "../RootProvider/RootProvider.js";
|
|
6
9
|
import "../Button/Button.js";
|
|
7
10
|
import "react-dom";
|
|
8
|
-
import "../RootProvider/RootProvider.js";
|
|
9
|
-
import { M as f } from "../../SearchField-QTfebYdU.js";
|
|
10
|
-
import { MenuListItem as h } from "../Menu/MenuListItem.js";
|
|
11
11
|
import { CurrentAccount as y } from "./CurrentAccount.js";
|
|
12
12
|
import { BackButton as j } from "./BackButton.js";
|
|
13
13
|
import { LogoutButton as k } from "./LogoutButton.js";
|
|
@@ -3,15 +3,15 @@ import { c as l } from "../../index-p1eeF8LQ.js";
|
|
|
3
3
|
import { Badge as _ } from "../Badge/Badge.js";
|
|
4
4
|
import { Avatar as f } from "../Avatar/Avatar.js";
|
|
5
5
|
import "react";
|
|
6
|
+
import "../RootProvider/RootProvider.js";
|
|
6
7
|
import { Button as u } from "../Button/Button.js";
|
|
7
8
|
import { ButtonIcon as I } from "../Button/ButtonIcon.js";
|
|
8
9
|
import { ButtonLabel as h } from "../Button/ButtonLabel.js";
|
|
9
10
|
import "react-dom";
|
|
10
|
-
import "../RootProvider/RootProvider.js";
|
|
11
11
|
import "../Snackbar/useSnackbar.js";
|
|
12
12
|
import { S as N } from "../../XMark-tKk6aExO.js";
|
|
13
13
|
import { S as g } from "../../PadlockLocked-XL1IB5Ae.js";
|
|
14
|
-
import '../../assets/
|
|
14
|
+
import '../../assets/GlobalMenuButton2.css';const v = "_button_1uh95_1", b = "_avatarIcon_1uh95_19", B = "_loginIcon_1uh95_20", x = "_closeIcon_1uh95_21", S = "_avatar_1uh95_19", k = "_icon_1uh95_44", L = "_badge_1uh95_50", n = {
|
|
15
15
|
button: v,
|
|
16
16
|
avatarIcon: b,
|
|
17
17
|
loginIcon: B,
|
|
@@ -2,8 +2,8 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { Button as i } from "../Button/Button.js";
|
|
3
3
|
import "../../index-p1eeF8LQ.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "react-dom";
|
|
6
5
|
import "../RootProvider/RootProvider.js";
|
|
6
|
+
import "react-dom";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
8
|
import '../../assets/LogoutButton.css';const m = "_button_1260s_1", s = {
|
|
9
9
|
button: m
|
|
@@ -3,11 +3,11 @@ import { jsxs as m, jsx as o } from "react/jsx-runtime";
|
|
|
3
3
|
import "../../index-p1eeF8LQ.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { useIsDesktop as H } from "../../hooks/useIsDesktop.js";
|
|
6
|
+
import { useRootContext as S } from "../RootProvider/RootProvider.js";
|
|
7
|
+
import { DropdownBase as k } from "../Dropdown/DropdownBase.js";
|
|
6
8
|
import "../Button/Button.js";
|
|
7
|
-
import { DropdownBase as S } from "../Dropdown/DropdownBase.js";
|
|
8
9
|
import "react-dom";
|
|
9
|
-
import { DrawerBase as
|
|
10
|
-
import { useRootContext as B } from "../RootProvider/RootProvider.js";
|
|
10
|
+
import { DrawerBase as B } from "../Dropdown/DrawerBase.js";
|
|
11
11
|
import { GlobalMenu_old as u } from "../GlobalMenu_old/GlobalMenu.js";
|
|
12
12
|
import { GlobalMenuButton_old as D } from "../GlobalMenu_old/GlobalMenuButton.js";
|
|
13
13
|
import { HeaderBase as I } from "./HeaderBase.js";
|
|
@@ -31,7 +31,7 @@ import '../../assets/Header.css';const N = "_drawer_afyu3_1", g = "_dropdown_afy
|
|
|
31
31
|
logo: x = {},
|
|
32
32
|
badge: C
|
|
33
33
|
}) => {
|
|
34
|
-
const { currentId: e, toggleId: p, openId: v, closeAll: t } =
|
|
34
|
+
const { currentId: e, toggleId: p, openId: v, closeAll: t } = S(), i = () => {
|
|
35
35
|
v("search");
|
|
36
36
|
}, c = () => {
|
|
37
37
|
p("search");
|
|
@@ -60,7 +60,7 @@ import '../../assets/Header.css';const N = "_drawer_afyu3_1", g = "_dropdown_afy
|
|
|
60
60
|
}
|
|
61
61
|
),
|
|
62
62
|
r && /* @__PURE__ */ o(
|
|
63
|
-
|
|
63
|
+
k,
|
|
64
64
|
{
|
|
65
65
|
layout: "desktop",
|
|
66
66
|
padding: !0,
|
|
@@ -82,7 +82,7 @@ import '../../assets/Header.css';const N = "_drawer_afyu3_1", g = "_dropdown_afy
|
|
|
82
82
|
] })
|
|
83
83
|
] }),
|
|
84
84
|
n && !l && /* @__PURE__ */ o(h, { expanded: e === "search", children: /* @__PURE__ */ o(f, { ...n, expanded: e === "search", onClose: c, onFocus: i }) }),
|
|
85
|
-
r && /* @__PURE__ */ o(
|
|
85
|
+
r && /* @__PURE__ */ o(B, { open: e === "menu", className: d.drawer, children: /* @__PURE__ */ o(
|
|
86
86
|
u,
|
|
87
87
|
{
|
|
88
88
|
...r,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as d, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { c as p } from "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
|
+
import "../RootProvider/RootProvider.js";
|
|
4
5
|
import "../Button/Button.js";
|
|
5
6
|
import "react-dom";
|
|
6
7
|
import { Backdrop as m } from "../Dropdown/Backdrop.js";
|
|
7
|
-
import "../RootProvider/RootProvider.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
import '../../assets/HeaderBase.css';const i = "_header_dg4o1_1", n = "_backdrop_dg4o1_17", r = {
|
|
10
10
|
header: i,
|
|
@@ -6,8 +6,8 @@ import { Badge as p } from "../Badge/Badge.js";
|
|
|
6
6
|
import { Button as _ } from "../Button/Button.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import { Icon as f } from "../Icon/Icon.js";
|
|
9
|
-
import "react-dom";
|
|
10
9
|
import "../RootProvider/RootProvider.js";
|
|
10
|
+
import "react-dom";
|
|
11
11
|
import "../Snackbar/useSnackbar.js";
|
|
12
12
|
import { S as I } from "../../XMark-tKk6aExO.js";
|
|
13
13
|
import { S as q } from "../../PadlockLocked-XL1IB5Ae.js";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { c as m } from "../../index-p1eeF8LQ.js";
|
|
4
4
|
import "react";
|
|
5
|
+
import "../RootProvider/RootProvider.js";
|
|
5
6
|
import { Button as s } from "../Button/Button.js";
|
|
6
7
|
import "react-dom";
|
|
7
|
-
import "../RootProvider/RootProvider.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
import { S as i } from "../../Globe-BcPkcH4E.js";
|
|
10
10
|
import '../../assets/LocaleButton.css';const p = "_button_mvy87_1", c = "_expanded_mvy87_13", o = {
|