@altinn/altinn-components 0.52.7 → 0.53.0
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/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 +15 -16
- 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 +2 -2
- 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 +46 -46
- package/dist/{index-Dg71_7ad.js → index-DttADHE1.js} +1 -1
- package/dist/index.js +204 -207
- package/dist/{textfield-B_OMMEbF.js → textfield-C_c2H05R.js} +25 -26
- 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/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/package.json +1 -1
- 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/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
package/dist/assets/Button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._button_11lhb_1{white-space:nowrap}._button_11lhb_1[data-size=xs]{border-radius:.25em}._button_11lhb_1>svg:first-child{margin-left:-.25em}._button_11lhb_1>svg:last-child{margin-right:-.25em}._button_11lhb_1[data-rounded=true]{border-radius:calc(var(--dsc-button-size) / 2)}._button_11lhb_1[data-connected=true]{column-gap:none}._button_11lhb_1[aria-busy=true]{opacity:.5}._button_11lhb_1[data-variant=tinted]{--dsc-button-background: var(--ds-color-surface-tinted);--dsc-button-border-color: var(--ds-color-border-strong);--dsc-button-background--active: var(--ds-color-surface-active);--dsc-button-background--hover: var(--ds-color-surface-hover);--dsc-button-color: var(--ds-color-text-default);--dsc-button-color--hover: var(--ds-color-text-default)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._buttonGroup_1f7xc_1{padding:0;border:0;display:inline-flex;align-self:start;column-gap:.75em;white-space:nowrap;pointer-events:none;background-color:transparent}._buttonGroup_1f7xc_1 *{pointer-events:auto}._buttonGroup_1f7xc_1[data-disabled=true]{pointer-events:none}._buttonGroup_1f7xc_1[data-connected=true]{background-color:var(--dsc-button-background);column-gap:0}._buttonGroup_1f7xc_1[data-connected=true]>*:first-child{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}._buttonGroup_1f7xc_1[data-connected=true]>*:last-child{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}._buttonGroup_1f7xc_1[aria-disabled=true]{pointer-events:none}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._divider_1eeu8_1{height:100%;min-width:1px;max-width:1px;padding:0;display:flex;justify-content:center;align-items:center;outline:none;background-color:transparent;border-left:none;border-right:none;border-top:1px solid var(--dsc-button-border-color);border-bottom:1px solid var(--dsc-button-border-color)}._border_1eeu8_17{background-color:currentColor;height:1.75em;min-width:1px;width:1px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_18rn3_1{font-weight:500;padding:0 .25em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:unset}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._table_ex6ab_1{border-collapse:collapse;table-layout:fixed;width:100%}._weekday_ex6ab_7{font-size:.75rem;text-align:center;padding:.25rem 0}._date_ex6ab_13{background-color:transparent;color:var(--ds-color-text-subtle)}._date_ex6ab_13[data-current-month=true]{background-color:var(--ds-color-background-tinted);color:var(--ds-color-text-default)}._button_ex6ab_23{font-size:.875rem;width:100%;text-align:center;height:2.25rem}._button_ex6ab_23[aria-selected=true]{background-color:transparent;border:1px solid var(--ds-color-border-default)}._button_ex6ab_23[aria-selected=true]:hover,._button_ex6ab_23:hover{background-color:var(--ds-color-surface-hover)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._button_z82uk_1>svg:first-child{font-size:1.5em}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._button_mvy87_1{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;width:2.75rem;padding:.625rem;border-radius:50%}._expanded_mvy87_13{background-color:#fff}._icon_mvy87_17{font-size:1.5rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._body_p3jqc_1{position:relative;width:100%;padding:1.5em;display:flex;flex-direction:column;align-items:stretch;row-gap:1.5em}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._header_nhvlf_1{border-bottom:1px solid;border-color:var(--ds-color-border-subtle);width:100%;padding:1em;display:flex;align-items:center;justify-content:space-between}._sticky_nhvlf_11{background-color:var(--ds-color-background-default);position:sticky;z-index:2;top:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._container_1ikoa_1{position:relative}._icon_1ikoa_5{position:absolute;top:0;bottom:0;left:0;width:2.5em;height:100%;color:var(--ds-color-text-subtle);display:flex;justify-content:center;align-items:center}._icon_1ikoa_5>svg{width:1em;height:1em}._input_1ikoa_23{padding-left:2.25em;padding-right:2.25em}._input_1ikoa_23[type=search]::-webkit-search-decoration,._input_1ikoa_23[type=search]::-webkit-search-cancel-button{appearance:none}._clear_1ikoa_33{position:absolute;top:0;right:0;bottom:0;width:2.5em;height:100%;display:flex;justify-content:center;align-items:center}._clearButton_1ikoa_45{font-size:.75em;min-width:2.5em;min-height:2.5em;border:none}._clearButton_1ikoa_45:focus-visible{outline-offset:0;outline-width:2px}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as m, jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { S as p, a as y } from "./index-D7FJjvrv.js";
|
|
4
|
+
import { c as o } from "./lite-1fxw3LjI.js";
|
|
5
|
+
import { useRef as b, useLayoutEffect as T, useEffect as h, forwardRef as d } from "react";
|
|
6
|
+
import { u as x } from "./use-merge-refs-Cj4kTYVj.js";
|
|
7
|
+
const S = typeof window < "u" ? T : h;
|
|
8
|
+
function u(s) {
|
|
9
|
+
const r = b(null);
|
|
10
|
+
return S(() => {
|
|
11
|
+
const i = document.getAnimations().filter((e) => "animationName" in e && e.animationName === s), t = i.find((e) => "animationName" in e && e.animationName === s), n = i.find((e) => e.effect?.target === r.current);
|
|
12
|
+
return n && n === t && (n.currentTime = 0), n && t?.currentTime && n !== t && (n.currentTime = t.currentTime), () => {
|
|
13
|
+
n && t?.currentTime && (n.currentTime = t.currentTime);
|
|
14
|
+
};
|
|
15
|
+
}, [s]), r;
|
|
16
|
+
}
|
|
17
|
+
const B = d(function({ "aria-label": r, className: i, ...t }, n) {
|
|
18
|
+
const e = u("ds-spinner-rotate-animation"), c = u("ds-spinner-stroke-animation"), f = x([e, n]);
|
|
19
|
+
return m("svg", { "aria-label": r, className: o("ds-spinner", i), ref: f, role: "img", viewBox: "0 0 50 50", ...t, children: [a("circle", { className: o("ds-spinner__background"), cx: "25", cy: "25", r: "20", fill: "none", strokeWidth: "5" }), a("circle", { className: o("ds-spinner__circle"), cx: "25", cy: "25", r: "20", fill: "none", strokeWidth: "5", ref: c })] });
|
|
20
|
+
}), _ = d(function({ asChild: r, className: i, children: t, icon: n = !1, loading: e = !1, variant: c = "primary", ...f }, l) {
|
|
21
|
+
return m(r ? p : "button", {
|
|
22
|
+
"aria-busy": !!e || void 0,
|
|
23
|
+
"aria-disabled": !!e || void 0,
|
|
24
|
+
className: o("ds-button", i),
|
|
25
|
+
"data-icon": n || void 0,
|
|
26
|
+
"data-variant": c,
|
|
27
|
+
ref: l,
|
|
28
|
+
/* don't set type when we use `asChild` */
|
|
29
|
+
type: r ? void 0 : "button",
|
|
30
|
+
...f,
|
|
31
|
+
children: [e === !0 ? a(B, { "aria-hidden": "true" }) : e, a(y, { children: n && e ? null : t })]
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
_ as B,
|
|
36
|
+
B as S,
|
|
37
|
+
u
|
|
38
|
+
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsx as s } 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 "../Snackbar/useSnackbar.js";
|
|
6
7
|
import { ListItem as b } from "../List/ListItem.js";
|
|
7
8
|
import '../../assets/AccessAreaListItem.css';const I = "_content_7hk0i_1", d = {
|
|
8
9
|
content: I
|
|
9
|
-
},
|
|
10
|
+
}, k = ({
|
|
10
11
|
name: t,
|
|
11
12
|
icon: c,
|
|
12
13
|
iconUrl: n,
|
|
@@ -17,8 +18,8 @@ import '../../assets/AccessAreaListItem.css';const I = "_content_7hk0i_1", d = {
|
|
|
17
18
|
badge: l,
|
|
18
19
|
colorTheme: a,
|
|
19
20
|
loading: o,
|
|
20
|
-
titleAs:
|
|
21
|
-
...
|
|
21
|
+
titleAs: p = "h3",
|
|
22
|
+
...h
|
|
22
23
|
}) => /* @__PURE__ */ s(
|
|
23
24
|
b,
|
|
24
25
|
{
|
|
@@ -30,7 +31,7 @@ import '../../assets/AccessAreaListItem.css';const I = "_content_7hk0i_1", d = {
|
|
|
30
31
|
color: a,
|
|
31
32
|
altText: ""
|
|
32
33
|
},
|
|
33
|
-
title: { children: t, as:
|
|
34
|
+
title: { children: t, as: p },
|
|
34
35
|
ariaLabel: t,
|
|
35
36
|
size: r,
|
|
36
37
|
collapsible: !o,
|
|
@@ -38,10 +39,10 @@ import '../../assets/AccessAreaListItem.css';const I = "_content_7hk0i_1", d = {
|
|
|
38
39
|
onClick: m,
|
|
39
40
|
badge: l,
|
|
40
41
|
loading: o,
|
|
41
|
-
...
|
|
42
|
+
...h,
|
|
42
43
|
children: e && /* @__PURE__ */ s("div", { className: d.content, children: i })
|
|
43
44
|
}
|
|
44
45
|
);
|
|
45
46
|
export {
|
|
46
|
-
|
|
47
|
+
k as AccessAreaListItem
|
|
47
48
|
};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import "../../index-p1eeF8LQ.js";
|
|
4
4
|
import n, { forwardRef as f } from "react";
|
|
5
|
+
import "../Button/Button.js";
|
|
5
6
|
import "../RootProvider/RootProvider.js";
|
|
6
7
|
import "../Snackbar/useSnackbar.js";
|
|
7
8
|
import { ListItem as c } from "../List/ListItem.js";
|
|
@@ -23,7 +24,7 @@ const p = f((t, o) => {
|
|
|
23
24
|
l ? n.createElement("title", { id: i }, l) : null,
|
|
24
25
|
n.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M11.625 2.35a.75.75 0 0 1 .75 0l7.794 4.5a.75.75 0 0 1 .375.65v9a.75.75 0 0 1-.375.65l-7.794 4.5a.75.75 0 0 1-.75 0l-7.794-4.5a.75.75 0 0 1-.375-.65v-9a.75.75 0 0 1 .375-.65zM12 3.866 5.706 7.5 12 11.134 18.294 7.5zm7.044 4.933-6.294 3.634v7.268l6.294-3.634zM11.25 19.701v-7.268L4.956 8.799v7.268z", clipRule: "evenodd" })
|
|
25
26
|
);
|
|
26
|
-
}),
|
|
27
|
+
}), h = ({
|
|
27
28
|
as: t = "button",
|
|
28
29
|
name: o,
|
|
29
30
|
color: l = "neutral",
|
|
@@ -44,5 +45,5 @@ const p = f((t, o) => {
|
|
|
44
45
|
}
|
|
45
46
|
);
|
|
46
47
|
export {
|
|
47
|
-
|
|
48
|
+
h as AccessPackageListItem
|
|
48
49
|
};
|
|
@@ -3,13 +3,14 @@ import { Fragment as a, createElement as d } from "react";
|
|
|
3
3
|
import "../../index-p1eeF8LQ.js";
|
|
4
4
|
import { AccountListItem as g } from "./AccountListItem.js";
|
|
5
5
|
import { Heading as h } from "../Typography/Heading.js";
|
|
6
|
+
import "../Button/Button.js";
|
|
6
7
|
import { useMenu as L } from "../../hooks/useMenu.js";
|
|
7
8
|
import "../RootProvider/RootProvider.js";
|
|
8
9
|
import { List as x } from "../List/List.js";
|
|
9
10
|
import "../Snackbar/useSnackbar.js";
|
|
10
11
|
import { Section as y } from "../Page/Section.js";
|
|
11
12
|
import { AccountListVirtual as A } from "./AccountListVirtual.js";
|
|
12
|
-
const
|
|
13
|
+
const S = ({ items: t, groups: o = {}, sortGroupBy: e, isVirtualized: n }) => {
|
|
13
14
|
if (n)
|
|
14
15
|
return /* @__PURE__ */ r(A, { items: t, groups: o, sortGroupBy: e });
|
|
15
16
|
const { menu: p } = L({
|
|
@@ -31,5 +32,5 @@ const M = ({ items: t, groups: o = {}, sortGroupBy: e, isVirtualized: n }) => {
|
|
|
31
32
|
}) });
|
|
32
33
|
};
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
+
S as AccountList
|
|
35
36
|
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { jsx as i } 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 { ListItem as h } from "../List/ListItem.js";
|
|
6
7
|
import "../Snackbar/useSnackbar.js";
|
|
7
8
|
import { AccountListItemControls as q } from "./AccountListItemControls.js";
|
|
8
|
-
const
|
|
9
|
+
const G = ({
|
|
9
10
|
id: m,
|
|
10
11
|
type: c,
|
|
11
12
|
size: s,
|
|
12
13
|
expanded: t,
|
|
13
14
|
icon: e,
|
|
14
|
-
name:
|
|
15
|
-
title:
|
|
15
|
+
name: p,
|
|
16
|
+
title: n,
|
|
16
17
|
description: u,
|
|
17
18
|
isCurrentEndUser: f,
|
|
18
19
|
isDeleted: I,
|
|
@@ -33,7 +34,7 @@ const F = ({
|
|
|
33
34
|
loading: o,
|
|
34
35
|
size: s,
|
|
35
36
|
icon: e,
|
|
36
|
-
title:
|
|
37
|
+
title: n || p,
|
|
37
38
|
description: t ? void 0 : u,
|
|
38
39
|
expanded: t,
|
|
39
40
|
selected: t,
|
|
@@ -58,5 +59,5 @@ const F = ({
|
|
|
58
59
|
}
|
|
59
60
|
);
|
|
60
61
|
export {
|
|
61
|
-
|
|
62
|
+
G as AccountListItem
|
|
62
63
|
};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { Badge as
|
|
2
|
+
import { Badge as a } from "../Badge/Badge.js";
|
|
3
3
|
import "../../index-p1eeF8LQ.js";
|
|
4
|
-
import { isValidElement as
|
|
5
|
-
import {
|
|
6
|
-
import { ContextMenu as
|
|
4
|
+
import { isValidElement as u } from "react";
|
|
5
|
+
import { Button as c } from "../Button/Button.js";
|
|
6
|
+
import { ContextMenu as d } from "../ContextMenu/ContextMenu.js";
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
8
|
import { ListItemControls as v } from "../List/ListItemControls.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import { S as
|
|
11
|
-
const
|
|
10
|
+
import { S as x, a as B } from "../../HeartFill-CYSrJ_xK.js";
|
|
11
|
+
const A = ({
|
|
12
12
|
id: e,
|
|
13
13
|
type: i,
|
|
14
14
|
badge: r,
|
|
15
|
-
isCurrentEndUser:
|
|
16
|
-
favourite:
|
|
15
|
+
isCurrentEndUser: m = !1,
|
|
16
|
+
favourite: n = !1,
|
|
17
17
|
favouriteLabel: l,
|
|
18
18
|
onToggleFavourite: s,
|
|
19
19
|
contextMenu: o,
|
|
20
20
|
loading: f
|
|
21
21
|
}) => /* @__PURE__ */ p(v, { children: [
|
|
22
|
-
r && (r && !f && typeof r == "object" && "label" in r ? /* @__PURE__ */ t(
|
|
23
|
-
!
|
|
22
|
+
r && (r && !f && typeof r == "object" && "label" in r ? /* @__PURE__ */ t(a, { ...r }) : u(r) ? r : null),
|
|
23
|
+
!m && i !== "group" && /* @__PURE__ */ t(
|
|
24
24
|
c,
|
|
25
25
|
{
|
|
26
|
+
size: "xs",
|
|
27
|
+
variant: "ghost",
|
|
26
28
|
rounded: !0,
|
|
27
|
-
|
|
28
|
-
icon: m ? B : C,
|
|
29
|
-
iconAltText: l || "Toggle favourite",
|
|
29
|
+
"aria-label": l || "Toggle favourite",
|
|
30
30
|
onClick: () => s?.(e),
|
|
31
|
-
|
|
31
|
+
children: n ? /* @__PURE__ */ t(x, {}) : /* @__PURE__ */ t(B, {})
|
|
32
32
|
}
|
|
33
33
|
),
|
|
34
|
-
o && /* @__PURE__ */ t(
|
|
34
|
+
o && /* @__PURE__ */ t(d, { ...o })
|
|
35
35
|
] });
|
|
36
36
|
export {
|
|
37
|
-
|
|
37
|
+
A as AccountListItemControls
|
|
38
38
|
};
|
|
@@ -20,8 +20,8 @@ const q = ({
|
|
|
20
20
|
children: d
|
|
21
21
|
}) => s ? /* @__PURE__ */ r(a, { padding: 6, spacing: 4, children: /* @__PURE__ */ r(p, { variant: "outline", loading: !0, children: l }) }) : /* @__PURE__ */ e(a, { padding: 6, spacing: 4, color: c, children: [
|
|
22
22
|
o && /* @__PURE__ */ r(j, { size: "sm", children: o.map((i, t) => {
|
|
23
|
-
const {
|
|
24
|
-
return /* @__PURE__ */ h(p, { ...g, variant:
|
|
23
|
+
const { variant: u, label: f, ...g } = i;
|
|
24
|
+
return /* @__PURE__ */ h(p, { ...g, variant: u || "outline", key: t }, f);
|
|
25
25
|
}) }),
|
|
26
26
|
m && /* @__PURE__ */ r(z, { size: "sm", children: m.map((i, t) => /* @__PURE__ */ e(v, { children: [
|
|
27
27
|
t > 0 && /* @__PURE__ */ r(x, { as: "li" }),
|
|
@@ -6,6 +6,7 @@ import "../../index-p1eeF8LQ.js";
|
|
|
6
6
|
import { AccountListItem as v } from "./AccountListItem.js";
|
|
7
7
|
import { useMenu as x } from "../../hooks/useMenu.js";
|
|
8
8
|
import { Heading as _ } from "../Typography/Heading.js";
|
|
9
|
+
import "../Button/Button.js";
|
|
9
10
|
import "../RootProvider/RootProvider.js";
|
|
10
11
|
import "../Snackbar/useSnackbar.js";
|
|
11
12
|
import { Section as L } from "../Page/Section.js";
|
|
@@ -15,7 +16,7 @@ import '../../assets/AccountListVirtual.css';const g = "_virtualScrollRef_188ep_
|
|
|
15
16
|
virtualListItem: $,
|
|
16
17
|
lastChild: C,
|
|
17
18
|
virtualTitleItem: P
|
|
18
|
-
},
|
|
19
|
+
}, j = ({ items: u, groups: p = {}, sortGroupBy: d }) => {
|
|
19
20
|
const s = I(null), { menu: f } = x({
|
|
20
21
|
items: u,
|
|
21
22
|
groups: p,
|
|
@@ -26,9 +27,9 @@ import '../../assets/AccountListVirtual.css';const g = "_virtualScrollRef_188ep_
|
|
|
26
27
|
const e = t?.props || {}, { title: r } = e, a = t?.items || [];
|
|
27
28
|
return [
|
|
28
29
|
...r ? [{ type: "title", title: r }] : [],
|
|
29
|
-
...a.map((
|
|
30
|
+
...a.map((c) => ({
|
|
30
31
|
type: "item",
|
|
31
|
-
itemProps:
|
|
32
|
+
itemProps: c.props || {}
|
|
32
33
|
}))
|
|
33
34
|
];
|
|
34
35
|
}), o = y({
|
|
@@ -43,13 +44,13 @@ import '../../assets/AccountListVirtual.css';const g = "_virtualScrollRef_188ep_
|
|
|
43
44
|
return e.itemProps?.parentId && (!r || r.type === "title" || r.type === "item" && !r.itemProps?.parentId) ? 96 : 80;
|
|
44
45
|
},
|
|
45
46
|
getScrollElement: () => s.current
|
|
46
|
-
}),
|
|
47
|
+
}), m = o.getVirtualItems();
|
|
47
48
|
return h(() => {
|
|
48
|
-
for (const t of
|
|
49
|
+
for (const t of m) {
|
|
49
50
|
const e = s.current?.querySelector(`[data-index="${t.index}"]`) ?? s.current?.querySelector(`[dataindex="${t.index}"]`) ?? s.current?.querySelector(`[dataIndex="${t.index}"]`);
|
|
50
51
|
e && o.measureElement(e);
|
|
51
52
|
}
|
|
52
|
-
}, [
|
|
53
|
+
}, [m]), /* @__PURE__ */ i(L, { spacing: 6, children: /* @__PURE__ */ i("div", { ref: s, className: l.virtualScrollRef, children: /* @__PURE__ */ i(
|
|
53
54
|
"ul",
|
|
54
55
|
{
|
|
55
56
|
className: l.virtualList,
|
|
@@ -57,7 +58,7 @@ import '../../assets/AccountListVirtual.css';const g = "_virtualScrollRef_188ep_
|
|
|
57
58
|
position: "relative",
|
|
58
59
|
height: `${o.getTotalSize()}px`
|
|
59
60
|
},
|
|
60
|
-
children:
|
|
61
|
+
children: m.map((t) => {
|
|
61
62
|
const e = n[t.index];
|
|
62
63
|
if (!e) return null;
|
|
63
64
|
if (e.type === "title")
|
|
@@ -90,5 +91,5 @@ import '../../assets/AccountListVirtual.css';const g = "_virtualScrollRef_188ep_
|
|
|
90
91
|
) }) });
|
|
91
92
|
};
|
|
92
93
|
export {
|
|
93
|
-
|
|
94
|
+
j as AccountListVirtual
|
|
94
95
|
};
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
import { jsx as C } from "react/jsx-runtime";
|
|
3
3
|
import { useState as w, useEffect as L, useMemo as M } from "react";
|
|
4
4
|
import "../../index-p1eeF8LQ.js";
|
|
5
|
+
import "../Button/Button.js";
|
|
5
6
|
import "../RootProvider/RootProvider.js";
|
|
6
7
|
import { Menu as S } from "../Menu/Menu.js";
|
|
7
8
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
const F = (n) => `${n} hits`,
|
|
9
|
+
const F = (n) => `${n} hits`, G = ({
|
|
9
10
|
items: n = [],
|
|
10
11
|
groups: i = {},
|
|
11
12
|
search: t,
|
|
@@ -44,22 +45,22 @@ const F = (n) => `${n} hits`, E = ({
|
|
|
44
45
|
search: {
|
|
45
46
|
title: t?.getResultsLabel?.(r.length) ?? F(r.length)
|
|
46
47
|
}
|
|
47
|
-
} : i,
|
|
48
|
+
} : i, m = {
|
|
48
49
|
name: "account-search",
|
|
49
50
|
value: o,
|
|
50
51
|
placeholder: t?.placeholder ?? "Find account",
|
|
51
52
|
onChange: (e) => l(e.target.value),
|
|
52
53
|
onClear: () => l("")
|
|
53
|
-
},
|
|
54
|
+
}, A = [
|
|
54
55
|
...r.length > 0 ? r : [{ id: "search", groupId: "search", hidden: !0 }]
|
|
55
56
|
];
|
|
56
57
|
return /* @__PURE__ */ C(
|
|
57
58
|
S,
|
|
58
59
|
{
|
|
59
60
|
variant: "default",
|
|
60
|
-
search: t && !t.hidden ?
|
|
61
|
+
search: t && !t.hidden ? m : void 0,
|
|
61
62
|
groups: v,
|
|
62
|
-
items:
|
|
63
|
+
items: A,
|
|
63
64
|
isVirtualized: f,
|
|
64
65
|
keyboardEvents: g,
|
|
65
66
|
scrollRefStyles: h
|
|
@@ -67,5 +68,5 @@ const F = (n) => `${n} hits`, E = ({
|
|
|
67
68
|
);
|
|
68
69
|
};
|
|
69
70
|
export {
|
|
70
|
-
|
|
71
|
+
G as AccountMenu
|
|
71
72
|
};
|
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o, jsxs as m } from "react/jsx-runtime";
|
|
3
3
|
import { c as p } from "../../index-p1eeF8LQ.js";
|
|
4
|
-
import d, { forwardRef as v, isValidElement as
|
|
4
|
+
import d, { forwardRef as v, isValidElement as h } from "react";
|
|
5
5
|
import { Avatar as g } from "../Avatar/Avatar.js";
|
|
6
|
-
import {
|
|
7
|
-
import { ButtonLabel as b } from "../Button/ButtonLabel.js";
|
|
6
|
+
import { Button as f } from "../Button/Button.js";
|
|
8
7
|
import { ButtonIcon as u } from "../Button/ButtonIcon.js";
|
|
9
|
-
import {
|
|
8
|
+
import { ButtonLabel as b } from "../Button/ButtonLabel.js";
|
|
9
|
+
import { useRootContext as y } from "../RootProvider/RootProvider.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
11
|
import { S as I } from "../../XMark-tKk6aExO.js";
|
|
12
12
|
import { u as w } from "../../useId-BVFxCjkq.js";
|
|
13
13
|
import '../../assets/AccountMenuButton.css';var N = function(t, a) {
|
|
14
14
|
var r = {};
|
|
15
|
-
for (var
|
|
15
|
+
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && a.indexOf(n) < 0 && (r[n] = t[n]);
|
|
16
16
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
17
|
-
for (var l = 0,
|
|
18
|
-
a.indexOf(
|
|
17
|
+
for (var l = 0, n = Object.getOwnPropertySymbols(t); l < n.length; l++)
|
|
18
|
+
a.indexOf(n[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[l]) && (r[n[l]] = t[n[l]]);
|
|
19
19
|
return r;
|
|
20
20
|
};
|
|
21
|
-
const
|
|
22
|
-
var { title: r, titleId:
|
|
21
|
+
const O = v((t, a) => {
|
|
22
|
+
var { title: r, titleId: n } = t, l = N(t, ["title", "titleId"]);
|
|
23
23
|
let i = w();
|
|
24
|
-
return i = r ?
|
|
24
|
+
return i = r ? n || "title-" + i : void 0, d.createElement(
|
|
25
25
|
"svg",
|
|
26
26
|
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: a, "aria-labelledby": i }, l),
|
|
27
27
|
r ? d.createElement("title", { id: i }, r) : null,
|
|
28
28
|
d.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M15.5 3.25a.75.75 0 0 0 0 1.5H19a.25.25 0 0 1 .25.25v14a.25.25 0 0 1-.25.25h-3.5a.75.75 0 0 0 0 1.5H19A1.75 1.75 0 0 0 20.75 19V5A1.75 1.75 0 0 0 19 3.25zM9.97 6.97a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 1 1-1.06-1.06l3.22-3.22H3.5a.75.75 0 0 1 0-1.5h9.69L9.97 8.03a.75.75 0 0 1 0-1.06", clipRule: "evenodd" })
|
|
29
29
|
);
|
|
30
|
-
}),
|
|
31
|
-
button:
|
|
30
|
+
}), x = "_button_1crpw_1", C = "_avatarIcon_1crpw_18", j = "_loginIcon_1crpw_19", k = "_closeIcon_1crpw_20", L = "_avatar_1crpw_18", E = "_icon_1crpw_43", B = "_labelContainer_1crpw_55", M = "_description_1crpw_63", e = {
|
|
31
|
+
button: x,
|
|
32
32
|
avatarIcon: C,
|
|
33
33
|
loginIcon: j,
|
|
34
34
|
closeIcon: k,
|
|
35
35
|
avatar: L,
|
|
36
|
-
icon:
|
|
37
|
-
labelContainer:
|
|
36
|
+
icon: E,
|
|
37
|
+
labelContainer: B,
|
|
38
38
|
description: M
|
|
39
39
|
}, G = ({
|
|
40
40
|
className: t,
|
|
41
41
|
currentAccount: a,
|
|
42
42
|
expanded: r,
|
|
43
|
-
minimized:
|
|
43
|
+
minimized: n = !1,
|
|
44
44
|
loading: l = !1,
|
|
45
45
|
...i
|
|
46
46
|
}) => {
|
|
47
|
-
const { languageCode: _ } =
|
|
47
|
+
const { languageCode: _ } = y(), s = R(_);
|
|
48
48
|
if (l)
|
|
49
49
|
return /* @__PURE__ */ o(
|
|
50
50
|
f,
|
|
@@ -52,12 +52,12 @@ const x = v((t, a) => {
|
|
|
52
52
|
...i,
|
|
53
53
|
as: "button",
|
|
54
54
|
type: "button",
|
|
55
|
-
variant: "
|
|
55
|
+
variant: "ghost",
|
|
56
56
|
color: "company",
|
|
57
|
-
className: p(
|
|
57
|
+
className: p(e.button, e.loading, t),
|
|
58
58
|
disabled: !0,
|
|
59
59
|
"aria-label": "loading",
|
|
60
|
-
children: /* @__PURE__ */ o(u, { className:
|
|
60
|
+
children: /* @__PURE__ */ o(u, { className: e.avatarIcon, icon: /* @__PURE__ */ o(g, { name: "loading", loading: !0, className: e.avatar }) })
|
|
61
61
|
}
|
|
62
62
|
);
|
|
63
63
|
if (a) {
|
|
@@ -68,20 +68,20 @@ const x = v((t, a) => {
|
|
|
68
68
|
...i,
|
|
69
69
|
as: "button",
|
|
70
70
|
type: "button",
|
|
71
|
-
variant: "
|
|
71
|
+
variant: "ghost",
|
|
72
72
|
color: "company",
|
|
73
|
-
className: p(
|
|
73
|
+
className: p(e.button, t),
|
|
74
74
|
"aria-label": r ? s.close : a.name,
|
|
75
75
|
children: [
|
|
76
|
-
!
|
|
76
|
+
!n && /* @__PURE__ */ o(b, { children: /* @__PURE__ */ m("div", { className: e.labelContainer, children: [
|
|
77
77
|
a.name,
|
|
78
|
-
/* @__PURE__ */ o("span", { className:
|
|
78
|
+
/* @__PURE__ */ o("span", { className: e.description, children: typeof c == "string" || h(c) ? c : null })
|
|
79
79
|
] }) }),
|
|
80
|
-
r ? /* @__PURE__ */ o(u, { className:
|
|
80
|
+
r ? /* @__PURE__ */ o(u, { className: e.closeIcon, icon: /* @__PURE__ */ o(I, { className: e.icon, "aria-hidden": !0 }) }) : /* @__PURE__ */ o(
|
|
81
81
|
u,
|
|
82
82
|
{
|
|
83
|
-
className:
|
|
84
|
-
icon: /* @__PURE__ */ o(g, { ...a?.icon, className:
|
|
83
|
+
className: e.avatarIcon,
|
|
84
|
+
icon: /* @__PURE__ */ o(g, { ...a?.icon, className: e.avatar })
|
|
85
85
|
}
|
|
86
86
|
)
|
|
87
87
|
]
|
|
@@ -94,13 +94,13 @@ const x = v((t, a) => {
|
|
|
94
94
|
...i,
|
|
95
95
|
as: "button",
|
|
96
96
|
type: "button",
|
|
97
|
-
variant: "
|
|
97
|
+
variant: "ghost",
|
|
98
98
|
color: "company",
|
|
99
99
|
"aria-label": s.login,
|
|
100
|
-
className: p(
|
|
100
|
+
className: p(e.button, t),
|
|
101
101
|
children: [
|
|
102
|
-
!
|
|
103
|
-
/* @__PURE__ */ o(u, { className:
|
|
102
|
+
!n && /* @__PURE__ */ o(b, { children: s.login }),
|
|
103
|
+
/* @__PURE__ */ o(u, { className: e.loginIcon, icon: /* @__PURE__ */ o(O, { className: e.icon, "aria-hidden": !0 }) })
|
|
104
104
|
]
|
|
105
105
|
}
|
|
106
106
|
);
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { jsxs as c, jsx as t } 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 d } from "../Forms/Fieldset.js";
|
|
6
7
|
import { Switch as r } from "../Forms/Switch.js";
|
|
7
8
|
import { TextField as i } from "../Forms/TextField.js";
|
|
8
9
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
const
|
|
10
|
+
const j = ({
|
|
10
11
|
phone: m,
|
|
11
12
|
phoneLabel: p = "Varsle på SMS",
|
|
12
13
|
email: s,
|
|
13
14
|
emailLabel: a = "Varsle på e-post",
|
|
14
|
-
smsAlerts:
|
|
15
|
-
emailAlerts:
|
|
15
|
+
smsAlerts: o = !1,
|
|
16
|
+
emailAlerts: l = !1,
|
|
16
17
|
onChange: e
|
|
17
18
|
}) => /* @__PURE__ */ c(d, { size: "sm", children: [
|
|
18
|
-
/* @__PURE__ */ t(r, { label: p, name: "smsAlerts", value: "SMS", checked: !!
|
|
19
|
-
|
|
20
|
-
/* @__PURE__ */ t(r, { label: a, name: "emailAlerts", value: "E-post", checked: !!
|
|
21
|
-
|
|
19
|
+
/* @__PURE__ */ t(r, { label: p, name: "smsAlerts", value: "SMS", checked: !!o, onChange: e }),
|
|
20
|
+
o && /* @__PURE__ */ t(i, { name: "phone", placeholder: "Mobiltelefon", value: m, onChange: e }),
|
|
21
|
+
/* @__PURE__ */ t(r, { label: a, name: "emailAlerts", value: "E-post", checked: !!l, onChange: e }),
|
|
22
|
+
l && /* @__PURE__ */ t(i, { name: "email", placeholder: "E-postadresse", value: s, onChange: e })
|
|
22
23
|
] });
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
+
j as AccountNotificationSettings
|
|
25
26
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
1
|
+
import { jsx as n, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
|
+
import "../Button/Button.js";
|
|
4
5
|
import { Byline as p } from "../Byline/Byline.js";
|
|
5
6
|
import "../RootProvider/RootProvider.js";
|
|
6
7
|
import "../Snackbar/useSnackbar.js";
|
|
7
|
-
import '../../assets/AccountOrganization.css';const h = "_list_hvcdj_1", _ = "_node_hvcdj_19", u = "_link_hvcdj_37",
|
|
8
|
+
import '../../assets/AccountOrganization.css';const h = "_list_hvcdj_1", _ = "_node_hvcdj_19", u = "_link_hvcdj_37", o = {
|
|
8
9
|
list: h,
|
|
9
10
|
node: _,
|
|
10
11
|
link: u
|
|
@@ -17,17 +18,17 @@ import '../../assets/AccountOrganization.css';const h = "_list_hvcdj_1", _ = "_n
|
|
|
17
18
|
...a
|
|
18
19
|
}) => {
|
|
19
20
|
const m = r ? "span" : s || "a", { items: v, ...d } = a;
|
|
20
|
-
return /* @__PURE__ */ n(m, { ...d, className:
|
|
21
|
-
/* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ n(m, { ...d, className: o.link, "data-selected": r, children: /* @__PURE__ */ l(p, { size: "sm", avatar: e, children: [
|
|
22
|
+
/* @__PURE__ */ l("strong", { children: [
|
|
22
23
|
t,
|
|
23
24
|
i && ","
|
|
24
25
|
] }),
|
|
25
26
|
i
|
|
26
27
|
] }) });
|
|
27
|
-
}, j = ({ items: e, level: t }) => /* @__PURE__ */ n("ul", { "data-level": t, className:
|
|
28
|
+
}, j = ({ items: e, level: t }) => /* @__PURE__ */ n("ul", { "data-level": t, className: o.list, children: e.map((s, i) => /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n("span", { className: o.node, "data-level": t, children: /* @__PURE__ */ n(c, { ...s }) }) }, i)) }), f = ({ items: e = [], level: t = 1 }) => /* @__PURE__ */ n("ul", { "data-level": t, className: o.list, children: e.map((s, i) => /* @__PURE__ */ l("li", { children: [
|
|
28
29
|
/* @__PURE__ */ n(c, { ...s }),
|
|
29
30
|
s.items && /* @__PURE__ */ n(j, { items: s.items, level: t + 1 })
|
|
30
31
|
] }, i)) });
|
|
31
32
|
export {
|
|
32
|
-
|
|
33
|
+
f as AccountOrganization
|
|
33
34
|
};
|
|
@@ -2,10 +2,11 @@ import { jsx as r } 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 "../Snackbar/useSnackbar.js";
|
|
7
8
|
import { TimelineActivity as p } from "../Timeline/TimelineActivity.js";
|
|
8
|
-
const
|
|
9
|
+
const A = ({ byline: t, datetime: i, children: o, summary: c, ...m }) => o ? /* @__PURE__ */ r(p, { byline: t, datetime: i, ...m, children: o }) : /* @__PURE__ */ r(p, { byline: t, datetime: i, ...m, children: /* @__PURE__ */ r(e, { children: c }) });
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
A as ActivityLogItem
|
|
11
12
|
};
|