@altinn/altinn-components 0.52.7 → 0.53.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/assets/AccountSelector.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/ButtonGroup.css +1 -1
- package/dist/assets/ButtonGroupDivider.css +1 -1
- package/dist/assets/ButtonLabel.css +1 -1
- package/dist/assets/DatepickerTable.css +1 -1
- package/dist/assets/IconButton.css +1 -0
- package/dist/assets/LocaleButton.css +1 -1
- package/dist/assets/ModalBody.css +1 -1
- package/dist/assets/ModalHeader.css +1 -1
- package/dist/assets/SearchField.css +1 -1
- package/dist/button-BB5sYVKY.js +38 -0
- package/dist/components/AccessAreaListItem/AccessAreaListItem.js +7 -6
- package/dist/components/AccessPackageListItem/AccessPackageListItem.js +3 -2
- package/dist/components/Account/AccountList.js +3 -2
- package/dist/components/Account/AccountListItem.js +6 -5
- package/dist/components/Account/AccountListItemControls.js +16 -16
- package/dist/components/Account/AccountListItemDetails.js +2 -2
- package/dist/components/Account/AccountListVirtual.js +9 -8
- package/dist/components/Account/AccountMenu.js +7 -6
- package/dist/components/Account/AccountMenuButton.js +30 -30
- package/dist/components/Account/AccountNotificationSettings.js +9 -8
- package/dist/components/Account/AccountOrganization.js +7 -6
- package/dist/components/ActivityLog/ActivityLogItem.js +3 -2
- package/dist/components/ActivityLog/ActivityLogSegment.js +3 -2
- package/dist/components/Article/Article.js +3 -2
- package/dist/components/Article/ArticleContact.js +3 -2
- package/dist/components/Article/ArticleHeader.js +3 -2
- package/dist/components/Attachment/AttachmentLink.js +24 -23
- package/dist/components/Banner/Banner.js +10 -19
- package/dist/components/Button/Button.js +22 -58
- package/dist/components/Button/ButtonGroup.js +11 -21
- package/dist/components/Button/ButtonGroupDivider.js +5 -4
- package/dist/components/Button/ButtonIcon.js +5 -4
- package/dist/components/Button/ButtonLabel.js +2 -2
- package/dist/components/Button/ComboButton.js +11 -68
- package/dist/components/Button/FloatingActionButton.js +13 -18
- package/dist/components/Button/IconButton.js +6 -33
- package/dist/components/Button/index.js +16 -16
- package/dist/components/Byline/Byline.js +7 -6
- package/dist/components/ContextMenu/ContextMenu.js +35 -35
- package/dist/components/Dashboard/DashboardCard.js +3 -2
- package/dist/components/Dashboard/DashboardHeader.js +10 -9
- package/dist/components/Dashboard/DashboardIcon.js +3 -2
- package/dist/components/Datepicker/DatepickerHeader.js +22 -22
- package/dist/components/Datepicker/DatepickerTable.js +14 -14
- package/dist/components/Dialog/Dialog.js +3 -2
- package/dist/components/Dialog/DialogActions.js +36 -44
- package/dist/components/Dialog/DialogActivityLog.js +3 -2
- package/dist/components/Dialog/DialogAttachments.js +3 -2
- package/dist/components/Dialog/DialogBody.js +3 -2
- package/dist/components/Dialog/DialogByline.js +3 -2
- package/dist/components/Dialog/DialogContact.js +3 -2
- package/dist/components/Dialog/DialogHeader.js +7 -6
- package/dist/components/Dialog/DialogHistoryItem.js +3 -2
- package/dist/components/Dialog/DialogHistorySegment.js +3 -2
- package/dist/components/Dialog/DialogLayout.js +3 -2
- package/dist/components/Dialog/DialogList.js +5 -4
- package/dist/components/Dialog/DialogListGroup.js +3 -2
- package/dist/components/Dialog/DialogListItem.js +3 -2
- package/dist/components/Dialog/DialogMetadata.js +3 -2
- package/dist/components/Dialog/DialogSection.js +3 -2
- package/dist/components/Dialog/DialogSeenBy.js +3 -2
- package/dist/components/Dialog/DialogSelect.js +5 -4
- package/dist/components/Dialog/DialogStatus.js +3 -2
- package/dist/components/Dialog/DialogTabs.js +3 -2
- package/dist/components/Dialog/SeenByLog.js +9 -8
- package/dist/components/Dialog/SeenByLogButton.js +3 -2
- package/dist/components/Dialog/SeenByLogItem.js +11 -10
- package/dist/components/Dropdown/DrawerButton.js +3 -3
- package/dist/components/Dropdown/DrawerHeader.js +8 -18
- package/dist/components/Dropdown/DrawerOrDropdown.js +7 -6
- package/dist/components/Dropdown/DropdownBase.js +7 -6
- package/dist/components/Dropdown/FloatingDropdown.js +36 -36
- package/dist/components/DsComponents/index.js +21 -22
- package/dist/components/Forms/Checkbox.js +3 -2
- package/dist/components/Forms/CheckboxOptions.js +3 -2
- package/dist/components/Forms/FieldBase.js +3 -2
- package/dist/components/Forms/FieldsetBase.js +3 -2
- package/dist/components/Forms/Radio.js +3 -2
- package/dist/components/Forms/RadioOptions.js +3 -2
- package/dist/components/Forms/SearchField.js +22 -23
- package/dist/components/Forms/SelectField.js +4 -3
- package/dist/components/Forms/Switch.js +3 -2
- package/dist/components/Forms/SwitchOptions.js +3 -2
- package/dist/components/Forms/TextField.js +3 -2
- package/dist/components/Forms/TextareaField.js +3 -2
- package/dist/components/GlobalHeader/AccountSelector.js +114 -94
- package/dist/components/GlobalHeader/GlobalHeader.js +3 -2
- package/dist/components/GlobalHeader/GlobalHeaderBase.js +6 -5
- package/dist/components/GlobalHeader/GlobalSearch.js +7 -6
- package/dist/components/GlobalHeader/GlobalSearchButton.js +8 -7
- package/dist/components/GlobalHeader/HeaderLogo.js +13 -16
- package/dist/components/GlobalMenu/BackButton.js +3 -2
- package/dist/components/GlobalMenu/GlobalMenu.js +9 -8
- package/dist/components/GlobalMenu/GlobalMenuButton.js +2 -2
- package/dist/components/GlobalMenu/LocaleButton.js +3 -2
- package/dist/components/GlobalMenu/LocaleSwitcher.js +3 -2
- package/dist/components/GlobalMenu/LogoutButton.js +6 -8
- package/dist/components/GlobalMenu_old/BackButton.js +3 -2
- package/dist/components/GlobalMenu_old/CurrentAccount.js +5 -4
- package/dist/components/GlobalMenu_old/GlobalMenu.js +11 -10
- package/dist/components/GlobalMenu_old/GlobalMenuButton.js +23 -23
- package/dist/components/GlobalMenu_old/LogoutButton.js +6 -8
- package/dist/components/Header/Header.js +3 -2
- package/dist/components/Header/HeaderBase.js +5 -4
- package/dist/components/Header/HeaderButton.js +22 -22
- package/dist/components/Header/HeaderLogo.js +13 -17
- package/dist/components/Header/LocaleButton.js +17 -17
- package/dist/components/Header/LocaleSwitcher.js +8 -7
- package/dist/components/Icon/Icon.js +12 -11
- package/dist/components/Icon/IconOrAvatar.js +15 -14
- package/dist/components/InboxSearch/InboxSearch.js +11 -10
- package/dist/components/Layout/Layout.js +11 -10
- package/dist/components/LayoutAction/ActionHeader.js +18 -18
- package/dist/components/LayoutAction/LayoutAction.js +3 -2
- package/dist/components/List/List.js +3 -2
- package/dist/components/List/ListBase.js +3 -2
- package/dist/components/List/ListItemHeader.js +5 -4
- package/dist/components/List/ListItemIcon.js +3 -2
- package/dist/components/List/ListItemLabel.js +16 -15
- package/dist/components/List/ListItemSelect.js +4 -3
- package/dist/components/Menu/MenuItem.js +15 -14
- package/dist/components/Menu/MenuItemBase.js +5 -5
- package/dist/components/Menu/MenuItemIcon.js +6 -5
- package/dist/components/Menu/MenuItemLabel.js +13 -12
- package/dist/components/Menu/MenuItems.js +1 -0
- package/dist/components/Menu/MenuItemsVirtual.js +26 -25
- package/dist/components/Menu/MenuOption.js +17 -16
- package/dist/components/Menu/MenuSearch.js +3 -2
- package/dist/components/Metadata/MetaItem.js +7 -6
- package/dist/components/Metadata/MetaItemIcon.js +3 -2
- package/dist/components/Metadata/MetaProgress.js +3 -2
- package/dist/components/Metadata/MetaTimestamp.js +7 -6
- package/dist/components/Metadata/Metadata.js +8 -7
- package/dist/components/Modal/Modal.js +13 -13
- package/dist/components/Modal/ModalBase.js +7 -6
- package/dist/components/Modal/ModalBody.js +5 -10
- package/dist/components/Modal/ModalFooter.js +3 -2
- package/dist/components/Modal/ModalHeader.js +26 -36
- package/dist/components/Modal/ModalIcon.js +7 -6
- package/dist/components/Notifications/NotificationItem.js +6 -5
- package/dist/components/Notifications/NotificationItemBase.js +10 -9
- package/dist/components/Notifications/NotificationItemControls.js +14 -24
- package/dist/components/Notifications/NotificationItemIcon.js +8 -7
- package/dist/components/Page/AccordionSection.js +3 -2
- package/dist/components/Page/Breadcrumbs.js +7 -6
- package/dist/components/Page/ContactButtons.js +11 -6
- package/dist/components/Page/ContactSection.js +3 -2
- package/dist/components/Page/PageMenu.js +6 -5
- package/dist/components/Page/PageNav.js +11 -8
- package/dist/components/Page/PageTabs.js +6 -5
- package/dist/components/Page/Section.js +27 -7
- package/dist/components/ResourceListItem/ResourceListItem.js +3 -2
- package/dist/components/RootProvider/RootProvider.js +9 -8
- package/dist/components/Search/SearchItem.js +5 -4
- package/dist/components/Searchbar/Autocomplete.js +3 -2
- package/dist/components/Searchbar/AutocompleteItem.js +11 -10
- package/dist/components/Searchbar/Searchbar.js +10 -9
- package/dist/components/Searchbar/SearchbarField.js +54 -53
- package/dist/components/Settings/BookmarksSettingsList.js +7 -6
- package/dist/components/Settings/SettingsItem.js +3 -2
- package/dist/components/Settings/SettingsItemBase.js +7 -6
- package/dist/components/Settings/SettingsList.js +7 -6
- package/dist/components/Settings/SettingsModal.js +33 -26
- package/dist/components/Settings/SettingsSection.js +3 -2
- package/dist/components/Settings/UsedByLog.js +8 -7
- package/dist/components/Settings/UsedByLogItem.js +10 -9
- package/dist/components/Snackbar/SnackbarItem.js +13 -22
- package/dist/components/Timeline/Timeline.js +3 -2
- package/dist/components/Timeline/TimelineActivity.js +3 -2
- package/dist/components/Timeline/TimelineBase.js +10 -9
- package/dist/components/Timeline/TimelineFooter.js +6 -5
- package/dist/components/Timeline/TimelineHeader.js +3 -2
- package/dist/components/Timeline/TimelineIcon.js +6 -5
- package/dist/components/Timeline/TimelineSection.js +3 -2
- package/dist/components/Timeline/TimelineSegment.js +6 -5
- package/dist/components/Timeline/index.js +2 -4
- package/dist/components/Toolbar/ToolbarAccountMenu.js +18 -17
- package/dist/components/Toolbar/ToolbarAdd.js +5 -4
- package/dist/components/Toolbar/ToolbarButton.js +94 -88
- package/dist/components/Toolbar/ToolbarDaterange.js +3 -2
- package/dist/components/Toolbar/ToolbarFilter.js +24 -23
- package/dist/components/Toolbar/ToolbarFilterBase.js +8 -8
- package/dist/components/Toolbar/ToolbarMenu.js +3 -2
- package/dist/components/Toolbar/ToolbarOptions.js +3 -2
- package/dist/components/Toolbar/ToolbarSearch.js +7 -6
- package/dist/components/Transmission/Transmission.js +8 -7
- package/dist/components/Transmission/TransmissionList.js +8 -7
- package/dist/components/Transmission/TransmissionType.js +3 -2
- package/dist/components/Typography/Heading.js +3 -2
- package/dist/components/UserListItem/UserListItem.js +12 -11
- package/dist/components/index.js +192 -195
- package/dist/hooks/useAccountSelector.js +130 -108
- package/dist/{index-Dg71_7ad.js → index-DttADHE1.js} +1 -1
- package/dist/index.js +204 -207
- package/dist/switch-Cemfhx0H.js +18 -0
- package/dist/{textfield-B_OMMEbF.js → textfield-DAuYWtUj.js} +100 -104
- package/dist/types/lib/components/Account/AccountListItemDetails.d.ts +5 -1
- package/dist/types/lib/components/Button/Button.d.ts +21 -10
- package/dist/types/lib/components/Button/Button.stories.d.ts +13 -10
- package/dist/types/lib/components/Button/ButtonGroup.d.ts +6 -6
- package/dist/types/lib/components/Button/ButtonGroup.stories.d.ts +3 -1
- package/dist/types/lib/components/Button/ButtonGroupDivider.d.ts +5 -1
- package/dist/types/lib/components/Button/ButtonIcon.d.ts +2 -1
- package/dist/types/lib/components/Button/ButtonLabel.d.ts +1 -1
- package/dist/types/lib/components/Button/ComboButton.d.ts +6 -15
- package/dist/types/lib/components/Button/ComboButton.stories.d.ts +0 -3
- package/dist/types/lib/components/Button/FloatingActionButton.d.ts +5 -12
- package/dist/types/lib/components/Button/IconButton.d.ts +4 -17
- package/dist/types/lib/components/Button/index.d.ts +4 -4
- package/dist/types/lib/components/Datepicker/Datepicker.stories.d.ts +6 -0
- package/dist/types/lib/components/Dialog/DialogActions.d.ts +1 -0
- package/dist/types/lib/components/Dropdown/FloatingDropdown.d.ts +2 -2
- package/dist/types/lib/components/GlobalHeader/AccountSector.stories.d.ts +1 -1
- package/dist/types/lib/components/GlobalHeader/AccountSelector.d.ts +5 -1
- package/dist/types/lib/components/GlobalHeader/HeaderLogo.d.ts +1 -2
- package/dist/types/lib/components/Header/HeaderButton.d.ts +0 -2
- package/dist/types/lib/components/Header/HeaderLogo.d.ts +1 -1
- package/dist/types/lib/components/Menu/MenuItem.d.ts +1 -1
- package/dist/types/lib/components/Menu/MenuItemBase.d.ts +2 -2
- package/dist/types/lib/components/Modal/ModalBody.d.ts +2 -3
- package/dist/types/lib/components/Page/ContactButtons.d.ts +1 -0
- package/dist/types/lib/components/Page/Section.d.ts +1 -1
- package/dist/types/lib/components/Settings/SettingsModal.d.ts +1 -0
- package/dist/types/lib/components/Settings/VerifySettingsModal.stories.d.ts +14 -0
- package/dist/types/lib/components/Timeline/index.d.ts +0 -1
- package/dist/types/lib/components/Toolbar/ToolbarButton.d.ts +2 -3
- package/dist/types/lib/components/Toolbar/ToolbarButton.stories.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/ToolbarFilterBase.d.ts +2 -2
- package/dist/types/lib/hooks/useAccountSelector.d.ts +5 -1
- package/package.json +2 -2
- package/dist/assets/ButtonBase.css +0 -1
- package/dist/assets/ComboButton.css +0 -1
- package/dist/assets/TimelineLink.css +0 -1
- package/dist/button-MzZgmHyA.js +0 -23
- package/dist/components/Button/ButtonBase.js +0 -41
- package/dist/components/Timeline/TimelineLink.js +0 -36
- package/dist/heading-C_XYsUfi.js +0 -12
- package/dist/spinner-0Qe_jRGB.js +0 -23
- package/dist/types/lib/components/Button/ButtonBase.d.ts +0 -26
- package/dist/types/lib/components/Button/IconButton.stories.d.ts +0 -7
- package/dist/types/lib/components/Timeline/TimelineLink.d.ts +0 -9
|
@@ -1,34 +1,33 @@
|
|
|
1
1
|
import { A as o } from "../../alert-BzifOfXl.js";
|
|
2
|
-
import { B as D, C as r, a as t, b as i, D as
|
|
3
|
-
import { B as c } from "../../button-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { P as
|
|
7
|
-
import { S as
|
|
8
|
-
import {
|
|
9
|
-
import { V as I } from "../../index-z82sbSVU.js";
|
|
2
|
+
import { B as D, C as r, a as t, b as i, D as n, L as p, c as x, d as f, P as m, e as S, S as d, f as g, T as l, u as P } from "../../textfield-DAuYWtUj.js";
|
|
3
|
+
import { B as h, S as c } from "../../button-BB5sYVKY.js";
|
|
4
|
+
import { H as C, S as L } from "../../switch-Cemfhx0H.js";
|
|
5
|
+
import { D as u } from "../../index-Q0EA2XB0.js";
|
|
6
|
+
import { P as A } from "../../paragraph-BRiIBpbY.js";
|
|
7
|
+
import { S as V } from "../../index-DttADHE1.js";
|
|
8
|
+
import { V as w } from "../../index-z82sbSVU.js";
|
|
10
9
|
export {
|
|
11
10
|
o as DsAlert,
|
|
12
11
|
D as DsBadge,
|
|
13
|
-
|
|
12
|
+
h as DsButton,
|
|
14
13
|
r as DsCheckbox,
|
|
15
14
|
t as DsChip,
|
|
16
15
|
i as DsCombobox,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
u as DsDetails,
|
|
17
|
+
n as DsDialog,
|
|
18
|
+
C as DsHeading,
|
|
19
|
+
p as DsLink,
|
|
21
20
|
x as DsListItem,
|
|
22
21
|
f as DsListUnordered,
|
|
23
22
|
m as DsPagination,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
A as DsParagraph,
|
|
24
|
+
S as DsPopover,
|
|
25
|
+
V as DsSearch,
|
|
27
26
|
d as DsSkeleton,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
c as DsSpinner,
|
|
28
|
+
L as DsSwitch,
|
|
29
|
+
g as DsTabs,
|
|
30
|
+
l as DsTextfield,
|
|
31
|
+
w as DsValidationMessage,
|
|
32
|
+
P as useDsPagination
|
|
34
33
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
|
+
import "../Button/Button.js";
|
|
4
5
|
import "../RootProvider/RootProvider.js";
|
|
5
6
|
import { Field as e } from "./Field.js";
|
|
6
7
|
import { Label as c } from "./Label.js";
|
|
7
8
|
import { Input as n } from "./Input.js";
|
|
8
9
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
const
|
|
10
|
+
const u = ({ size: t, color: m, label: r, ...i }) => /* @__PURE__ */ p(e, { size: t, color: m, children: [
|
|
10
11
|
/* @__PURE__ */ o(n, { ...i, type: "checkbox" }),
|
|
11
12
|
!!r && /* @__PURE__ */ o(c, { children: r })
|
|
12
13
|
] });
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
u as Checkbox
|
|
15
16
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
|
+
import "../Button/Button.js";
|
|
4
5
|
import "../RootProvider/RootProvider.js";
|
|
5
6
|
import { Checkbox as i } from "./Checkbox.js";
|
|
6
7
|
import { OptionsBase as e } from "./OptionsBase.js";
|
|
7
8
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
const
|
|
9
|
+
const k = ({ options: r = [], ...t }) => /* @__PURE__ */ o(e, { ...t, children: r.map((m, p) => /* @__PURE__ */ o(i, { ...m }, p)) });
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
k as CheckboxOptions
|
|
11
12
|
};
|
|
@@ -2,15 +2,16 @@ import { jsxs as d, jsx as m } from "react/jsx-runtime";
|
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { Typography as e } from "../Typography/Typography.js";
|
|
5
|
+
import "../Button/Button.js";
|
|
5
6
|
import "../RootProvider/RootProvider.js";
|
|
6
7
|
import { Field as n } from "./Field.js";
|
|
7
8
|
import { Label as c } from "./Label.js";
|
|
8
9
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
const
|
|
10
|
+
const u = ({ size: r, color: p, label: o, helperText: i, children: t, ...s }) => /* @__PURE__ */ d(n, { size: r, color: p, ...s, children: [
|
|
10
11
|
o && /* @__PURE__ */ m(c, { size: r, children: o }),
|
|
11
12
|
t,
|
|
12
13
|
i && /* @__PURE__ */ m(e, { size: "xs", children: i })
|
|
13
14
|
] });
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
+
u as FieldBase
|
|
16
17
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { jsxs as i, jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
|
+
import "../Button/Button.js";
|
|
4
5
|
import "../RootProvider/RootProvider.js";
|
|
5
6
|
import { Fieldset as e } from "./Fieldset.js";
|
|
6
7
|
import { Legend as p } from "./Legend.js";
|
|
7
8
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
const
|
|
9
|
+
const j = ({ legend: r, children: o, ...t }) => /* @__PURE__ */ i(e, { ...t, children: [
|
|
9
10
|
!!r && /* @__PURE__ */ m(p, { children: r }),
|
|
10
11
|
o
|
|
11
12
|
] });
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
+
j as FieldsetBase
|
|
14
15
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
|
+
import "../Button/Button.js";
|
|
4
5
|
import "../RootProvider/RootProvider.js";
|
|
5
6
|
import { Field as e } from "./Field.js";
|
|
6
7
|
import { Label as d } from "./Label.js";
|
|
7
8
|
import { Input as n } from "./Input.js";
|
|
8
9
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
const
|
|
10
|
+
const y = ({ size: i, color: t, label: r, ...m }) => /* @__PURE__ */ p(e, { size: i, color: t, children: [
|
|
10
11
|
/* @__PURE__ */ o(n, { ...m, type: "radio" }),
|
|
11
12
|
!!r && /* @__PURE__ */ o(d, { children: r })
|
|
12
13
|
] });
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
y as Radio
|
|
15
16
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
|
+
import "../Button/Button.js";
|
|
4
5
|
import "../RootProvider/RootProvider.js";
|
|
5
6
|
import { Radio as a } from "./Radio.js";
|
|
6
7
|
import { OptionsBase as e } from "./OptionsBase.js";
|
|
7
8
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
const
|
|
9
|
+
const h = ({ name: m, options: i = [], ...t }) => /* @__PURE__ */ r(e, { ...t, children: i.map((o, p) => /* @__PURE__ */ r(a, { name: o?.name || m, ...o }, p)) });
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
h as RadioOptions
|
|
11
12
|
};
|
|
@@ -2,44 +2,43 @@ import { jsx as o, jsxs as m } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as p } from "../../index-p1eeF8LQ.js";
|
|
3
3
|
import { Icon as _ } from "../Icon/Icon.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import {
|
|
5
|
+
import { Button as u } from "../Button/Button.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
7
|
import { Input as d } from "./Input.js";
|
|
8
8
|
import { FieldBase as f } from "./FieldBase.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
10
|
import { S as h } from "../../MagnifyingGlass-bwVhw07z.js";
|
|
11
|
-
import { S as
|
|
12
|
-
import '../../assets/SearchField.css';const B = "
|
|
11
|
+
import { S as k } from "../../XMark-tKk6aExO.js";
|
|
12
|
+
import '../../assets/SearchField.css';const B = "_container_1ikoa_1", N = "_icon_1ikoa_5", g = "_input_1ikoa_23", S = "_clear_1ikoa_33", v = "_clearButton_1ikoa_45", r = {
|
|
13
13
|
container: B,
|
|
14
14
|
icon: N,
|
|
15
|
-
input:
|
|
16
|
-
clear:
|
|
17
|
-
clearButton:
|
|
18
|
-
},
|
|
19
|
-
className:
|
|
20
|
-
size:
|
|
21
|
-
color:
|
|
22
|
-
label:
|
|
23
|
-
value:
|
|
24
|
-
onClear:
|
|
15
|
+
input: g,
|
|
16
|
+
clear: S,
|
|
17
|
+
clearButton: v
|
|
18
|
+
}, q = ({
|
|
19
|
+
className: n,
|
|
20
|
+
size: i,
|
|
21
|
+
color: c = "neutral",
|
|
22
|
+
label: e,
|
|
23
|
+
value: t,
|
|
24
|
+
onClear: a,
|
|
25
25
|
clearButtonAltText: s = "Clear search",
|
|
26
26
|
...l
|
|
27
|
-
}) => /* @__PURE__ */ o(f, { size:
|
|
28
|
-
/* @__PURE__ */ o(d, { ...l, type: "search", value:
|
|
29
|
-
/* @__PURE__ */ o(_, { svgElement: h, className:
|
|
30
|
-
|
|
27
|
+
}) => /* @__PURE__ */ o(f, { size: i, color: c, label: e, className: p(r.field, n), children: /* @__PURE__ */ m("div", { className: r.container, children: [
|
|
28
|
+
/* @__PURE__ */ o(d, { ...l, type: "search", value: t, className: r.input }),
|
|
29
|
+
/* @__PURE__ */ o(_, { svgElement: h, className: r.icon }),
|
|
30
|
+
a && !!t && /* @__PURE__ */ o("span", { className: r.clear, children: /* @__PURE__ */ o(
|
|
31
31
|
u,
|
|
32
32
|
{
|
|
33
|
-
size: "custom",
|
|
34
33
|
rounded: !0,
|
|
35
|
-
icon: z,
|
|
36
34
|
variant: "tinted",
|
|
37
|
-
className:
|
|
38
|
-
onClick:
|
|
39
|
-
|
|
35
|
+
className: r.clearButton,
|
|
36
|
+
onClick: a,
|
|
37
|
+
"aria-label": s,
|
|
38
|
+
children: /* @__PURE__ */ o(k, {})
|
|
40
39
|
}
|
|
41
40
|
) })
|
|
42
41
|
] }) });
|
|
43
42
|
export {
|
|
44
|
-
|
|
43
|
+
q as SearchField
|
|
45
44
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
|
+
import "../Button/Button.js";
|
|
4
5
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import { Select as
|
|
6
|
+
import { Select as e } from "./Select.js";
|
|
6
7
|
import { FieldBase as p } from "./FieldBase.js";
|
|
7
8
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
const
|
|
9
|
+
const S = ({ size: r = "md", label: t, children: m, ...i }) => /* @__PURE__ */ o(p, { label: t, size: r, children: /* @__PURE__ */ o(e, { ...i, size: r, children: m }) });
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
S as SelectField
|
|
11
12
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
|
+
import "../Button/Button.js";
|
|
4
5
|
import "../RootProvider/RootProvider.js";
|
|
5
6
|
import { Field as c } from "./Field.js";
|
|
6
7
|
import { Label as h } from "./Label.js";
|
|
7
8
|
import { Input as n } from "./Input.js";
|
|
8
9
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
const
|
|
10
|
+
const k = ({ reverse: t, size: i, color: m, label: r, ...p }) => /* @__PURE__ */ e(c, { size: i, color: m, reverse: t, children: [
|
|
10
11
|
/* @__PURE__ */ o(n, { ...p, type: "checkbox", role: "switch" }),
|
|
11
12
|
!!r && /* @__PURE__ */ o(h, { children: r })
|
|
12
13
|
] });
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
k as Switch
|
|
15
16
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
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";
|
|
4
5
|
import "../RootProvider/RootProvider.js";
|
|
5
6
|
import { Switch as e } from "./Switch.js";
|
|
6
7
|
import { OptionsBase as n } from "./OptionsBase.js";
|
|
7
8
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
const
|
|
9
|
+
const S = ({ name: t, options: o = [], ...i }) => /* @__PURE__ */ m(n, { ...i, children: o.map((r, p) => /* @__PURE__ */ m(e, { name: r?.name || t, ...r }, p)) });
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
S as SwitchOptions
|
|
11
12
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
|
+
import "../Button/Button.js";
|
|
4
5
|
import "../RootProvider/RootProvider.js";
|
|
5
6
|
import { Input as e } from "./Input.js";
|
|
6
7
|
import { FieldBase as n } from "./FieldBase.js";
|
|
7
8
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
const
|
|
9
|
+
const a = ({ size: o, color: t, label: i, helperText: m, ...p }) => /* @__PURE__ */ r(n, { size: o, color: t, label: i, helperText: m, children: /* @__PURE__ */ r(e, { ...p }) });
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
a as TextField
|
|
11
12
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
|
+
import "../Button/Button.js";
|
|
4
5
|
import "../RootProvider/RootProvider.js";
|
|
5
6
|
import { Textarea as p } from "./Textarea.js";
|
|
6
7
|
import { FieldBase as a } from "./FieldBase.js";
|
|
7
8
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
const
|
|
9
|
+
const T = ({ size: o, color: t, label: i, helperText: m, ...e }) => /* @__PURE__ */ r(a, { size: o, color: t, label: i, helperText: m, children: /* @__PURE__ */ r(p, { ...e }) });
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
T as TextareaField
|
|
11
12
|
};
|
|
@@ -1,149 +1,169 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { c as
|
|
4
|
-
import
|
|
5
|
-
import { useIsDesktop as
|
|
6
|
-
import { AccountMenu as
|
|
7
|
-
import { Button as
|
|
8
|
-
import { useRootContext as
|
|
2
|
+
import { jsx as o, jsxs as b } from "react/jsx-runtime";
|
|
3
|
+
import { c as y } from "../../index-p1eeF8LQ.js";
|
|
4
|
+
import u, { forwardRef as I, useState as j, useEffect as x } from "react";
|
|
5
|
+
import { useIsDesktop as N } from "../../hooks/useIsDesktop.js";
|
|
6
|
+
import { AccountMenu as q } from "../Account/AccountMenu.js";
|
|
7
|
+
import { Button as R } from "../Button/Button.js";
|
|
8
|
+
import { useRootContext as L } from "../RootProvider/RootProvider.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import { SearchField as
|
|
11
|
-
import { S as
|
|
12
|
-
import { H as
|
|
13
|
-
import { u as
|
|
14
|
-
import '../../assets/AccountSelector.css';var
|
|
15
|
-
var
|
|
16
|
-
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && l.indexOf(t) < 0 && (
|
|
10
|
+
import { SearchField as A } from "../Forms/SearchField.js";
|
|
11
|
+
import { S as P } from "../../button-BB5sYVKY.js";
|
|
12
|
+
import { H as V, S as H } from "../../switch-Cemfhx0H.js";
|
|
13
|
+
import { u as O } from "../../useId-BVFxCjkq.js";
|
|
14
|
+
import '../../assets/AccountSelector.css';var T = function(e, l) {
|
|
15
|
+
var n = {};
|
|
16
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && l.indexOf(t) < 0 && (n[t] = e[t]);
|
|
17
17
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
18
|
-
for (var
|
|
19
|
-
l.indexOf(t[
|
|
20
|
-
return
|
|
18
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
19
|
+
l.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
20
|
+
return n;
|
|
21
21
|
};
|
|
22
|
-
const
|
|
23
|
-
var { title:
|
|
24
|
-
let i =
|
|
25
|
-
return i =
|
|
22
|
+
const B = I((e, l) => {
|
|
23
|
+
var { title: n, titleId: t } = e, r = T(e, ["title", "titleId"]);
|
|
24
|
+
let i = O();
|
|
25
|
+
return i = n ? t || "title-" + i : void 0, u.createElement(
|
|
26
26
|
"svg",
|
|
27
|
-
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 },
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
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),
|
|
28
|
+
n ? u.createElement("title", { id: i }, n) : null,
|
|
29
|
+
u.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" })
|
|
30
30
|
);
|
|
31
31
|
});
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && l.indexOf(t) < 0 && (
|
|
32
|
+
var $ = function(e, l) {
|
|
33
|
+
var n = {};
|
|
34
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && l.indexOf(t) < 0 && (n[t] = e[t]);
|
|
35
35
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
36
|
-
for (var
|
|
37
|
-
l.indexOf(t[
|
|
38
|
-
return
|
|
36
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
37
|
+
l.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
38
|
+
return n;
|
|
39
39
|
};
|
|
40
|
-
const
|
|
41
|
-
var { title:
|
|
42
|
-
let i =
|
|
43
|
-
return i =
|
|
40
|
+
const D = I((e, l) => {
|
|
41
|
+
var { title: n, titleId: t } = e, r = $(e, ["title", "titleId"]);
|
|
42
|
+
let i = O();
|
|
43
|
+
return i = n ? t || "title-" + i : void 0, u.createElement(
|
|
44
44
|
"svg",
|
|
45
|
-
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 },
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
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),
|
|
46
|
+
n ? u.createElement("title", { id: i }, n) : null,
|
|
47
|
+
u.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" })
|
|
48
48
|
);
|
|
49
|
-
}),
|
|
50
|
-
accountSelector:
|
|
51
|
-
heading:
|
|
52
|
-
searchSection:
|
|
53
|
-
searchField:
|
|
54
|
-
accountMenu:
|
|
55
|
-
fullScreen:
|
|
56
|
-
virtualized:
|
|
57
|
-
btnIcon:
|
|
58
|
-
spinner:
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
49
|
+
}), K = "_accountSelector_qwjt5_1", W = "_heading_qwjt5_11", G = "_searchSection_qwjt5_17", J = "_searchField_qwjt5_25", Q = "_accountMenu_qwjt5_29", U = "_fullScreen_qwjt5_37", X = "_virtualized_qwjt5_41", Y = "_btnIcon_qwjt5_45", Z = "_spinner_qwjt5_49", c = {
|
|
50
|
+
accountSelector: K,
|
|
51
|
+
heading: W,
|
|
52
|
+
searchSection: G,
|
|
53
|
+
searchField: J,
|
|
54
|
+
accountMenu: Q,
|
|
55
|
+
fullScreen: U,
|
|
56
|
+
virtualized: X,
|
|
57
|
+
btnIcon: Y,
|
|
58
|
+
spinner: Z
|
|
59
|
+
}, he = ({
|
|
60
|
+
accountMenu: e,
|
|
61
|
+
forceOpenFullScreen: l,
|
|
62
|
+
className: n,
|
|
63
|
+
loading: t,
|
|
64
|
+
showDeletedUnits: r,
|
|
65
|
+
onShowDeletedUnitsChange: i
|
|
66
|
+
}) => {
|
|
67
|
+
const { currentId: m, openId: d, closeAll: p, languageCode: g } = L(), h = N(), a = m === "accountFullscreen", [v, S] = j(""), [f, w] = j(l);
|
|
68
|
+
x(() => {
|
|
69
|
+
!l && f && a && p(), w(l);
|
|
70
|
+
}, [l]), x(() => {
|
|
71
|
+
(f === !0 && !a || !h && m === "account") && d("accountFullscreen");
|
|
72
|
+
}, [f, a, h, m, d]);
|
|
73
|
+
const { minimize: z, fullscreen: k, searchText: _, heading: C, switchLabel: E } = ee(g), F = () => {
|
|
74
|
+
d(a ? "account" : "accountFullscreen");
|
|
75
|
+
}, M = (s) => {
|
|
76
|
+
e.onSelectAccount?.(s), p(), w(!1);
|
|
70
77
|
};
|
|
71
|
-
return t ? /* @__PURE__ */
|
|
72
|
-
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
78
|
+
return t ? /* @__PURE__ */ o(P, { "aria-hidden": !0, "data-color": "neutral", className: c.spinner }) : /* @__PURE__ */ b("div", { className: y(n, c.accountSelector), children: [
|
|
79
|
+
/* @__PURE__ */ o(V, { "data-size": "sm", level: 2, className: c.heading, children: C }),
|
|
80
|
+
/* @__PURE__ */ b("div", { className: c.searchSection, children: [
|
|
81
|
+
/* @__PURE__ */ o(
|
|
82
|
+
A,
|
|
83
|
+
{
|
|
84
|
+
name: _,
|
|
85
|
+
placeholder: _,
|
|
86
|
+
value: v,
|
|
87
|
+
onChange: (s) => S(s.target.value),
|
|
88
|
+
onClear: () => S(""),
|
|
89
|
+
className: c.searchField
|
|
90
|
+
}
|
|
91
|
+
),
|
|
92
|
+
r !== void 0 && /* @__PURE__ */ o(
|
|
93
|
+
H,
|
|
94
|
+
{
|
|
95
|
+
checked: r,
|
|
96
|
+
onChange: (s) => i?.(s.target.checked),
|
|
97
|
+
label: E
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
] }),
|
|
101
|
+
/* @__PURE__ */ o(
|
|
85
102
|
"div",
|
|
86
103
|
{
|
|
87
|
-
className:
|
|
104
|
+
className: y(
|
|
88
105
|
c.accountMenu,
|
|
89
|
-
|
|
106
|
+
a && c.fullScreen,
|
|
90
107
|
e.isVirtualized && c.virtualized
|
|
91
108
|
),
|
|
92
|
-
children: /* @__PURE__ */
|
|
93
|
-
|
|
109
|
+
children: /* @__PURE__ */ o(
|
|
110
|
+
q,
|
|
94
111
|
{
|
|
95
112
|
...e,
|
|
96
|
-
onSelectAccount:
|
|
113
|
+
onSelectAccount: M,
|
|
97
114
|
keyboardEvents: !1,
|
|
98
115
|
search: {
|
|
99
116
|
hidden: !0,
|
|
100
117
|
name: "",
|
|
101
|
-
value:
|
|
102
|
-
getResultsLabel: (
|
|
118
|
+
value: v,
|
|
119
|
+
getResultsLabel: (s) => te(s, g)
|
|
103
120
|
},
|
|
104
|
-
scrollRefStyles: !
|
|
121
|
+
scrollRefStyles: !a && e.isVirtualized ? { maxHeight: "calc(40vh)" } : void 0
|
|
105
122
|
}
|
|
106
123
|
)
|
|
107
124
|
}
|
|
108
125
|
),
|
|
109
|
-
|
|
110
|
-
|
|
126
|
+
f !== !0 && h && /* @__PURE__ */ o(
|
|
127
|
+
R,
|
|
111
128
|
{
|
|
112
|
-
icon:
|
|
113
|
-
variant: "
|
|
114
|
-
onClick:
|
|
115
|
-
children:
|
|
129
|
+
icon: a ? /* @__PURE__ */ o(D, { className: c.btnIcon, "aria-hidden": "true" }) : /* @__PURE__ */ o(B, { className: c.btnIcon, "aria-hidden": "true" }),
|
|
130
|
+
variant: "ghost",
|
|
131
|
+
onClick: F,
|
|
132
|
+
children: a ? z : k
|
|
116
133
|
}
|
|
117
134
|
)
|
|
118
135
|
] });
|
|
119
|
-
},
|
|
136
|
+
}, ee = (e) => {
|
|
120
137
|
switch (e) {
|
|
121
138
|
case "nn":
|
|
122
139
|
return {
|
|
123
140
|
minimize: "Minimer",
|
|
124
141
|
fullscreen: "Vis i fullskjerm",
|
|
125
142
|
searchText: "Søk i aktørar",
|
|
126
|
-
heading: "Kven vil du representere?"
|
|
143
|
+
heading: "Kven vil du representere?",
|
|
144
|
+
switchLabel: "Vis slettede"
|
|
127
145
|
};
|
|
128
146
|
case "en":
|
|
129
147
|
return {
|
|
130
148
|
minimize: "Minimize",
|
|
131
149
|
fullscreen: "Show in fullscreen",
|
|
132
150
|
searchText: "Search in actors",
|
|
133
|
-
heading: "Who do you want to represent?"
|
|
151
|
+
heading: "Who do you want to represent?",
|
|
152
|
+
switchLabel: "Show deleted"
|
|
134
153
|
};
|
|
135
154
|
default:
|
|
136
155
|
return {
|
|
137
156
|
minimize: "Minimer",
|
|
138
157
|
fullscreen: "Vis i fullskjerm",
|
|
139
158
|
searchText: "Søk i aktører",
|
|
140
|
-
heading: "Hvem vil du representere?"
|
|
159
|
+
heading: "Hvem vil du representere?",
|
|
160
|
+
switchLabel: "Vis slettede"
|
|
141
161
|
};
|
|
142
162
|
}
|
|
143
|
-
},
|
|
144
|
-
const
|
|
145
|
-
return e === 0 ?
|
|
163
|
+
}, te = (e, l) => {
|
|
164
|
+
const n = l === "nb" || l === "nn";
|
|
165
|
+
return e === 0 ? n ? "Ingen treff" : "No hits" : n ? `${e} treff` : e === 1 ? "1 hit" : `${e} hits`;
|
|
146
166
|
};
|
|
147
167
|
export {
|
|
148
|
-
|
|
168
|
+
he as AccountSelector
|
|
149
169
|
};
|
|
@@ -5,6 +5,7 @@ import { AccountMenuButton as C } from "../Account/AccountMenuButton.js";
|
|
|
5
5
|
import { DropdownBase as G } from "../Dropdown/DropdownBase.js";
|
|
6
6
|
import { c as u } from "../../index-p1eeF8LQ.js";
|
|
7
7
|
import { DrawerBase as d } from "../Dropdown/DrawerBase.js";
|
|
8
|
+
import "../Button/Button.js";
|
|
8
9
|
import "react";
|
|
9
10
|
import { useRootContext as N } from "../RootProvider/RootProvider.js";
|
|
10
11
|
import { GlobalHeaderBase as b } from "./GlobalHeaderBase.js";
|
|
@@ -20,7 +21,7 @@ import '../../assets/GlobalHeader.css';const T = "_drawer_1r5ak_1", j = "_dropdo
|
|
|
20
21
|
drawer: T,
|
|
21
22
|
dropdown: j,
|
|
22
23
|
relative: z
|
|
23
|
-
},
|
|
24
|
+
}, re = ({
|
|
24
25
|
globalMenu: n,
|
|
25
26
|
desktopMenu: h,
|
|
26
27
|
mobileMenu: w,
|
|
@@ -124,5 +125,5 @@ import '../../assets/GlobalHeader.css';const T = "_drawer_1r5ak_1", j = "_dropdo
|
|
|
124
125
|
] });
|
|
125
126
|
};
|
|
126
127
|
export {
|
|
127
|
-
|
|
128
|
+
re as GlobalHeader
|
|
128
129
|
};
|