@altinn/altinn-components 0.15.5 → 0.17.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/README.md +23 -19
- package/dist/ArrowLeft-C91mClJx.js +25 -0
- package/dist/ArrowRedo-BYz1MHxK.js +25 -0
- package/dist/ArrowRight-OLgmLkGy.js +25 -0
- package/dist/Bookmark-85oKfr9m.js +25 -0
- package/dist/Buildings2-DO6ftvL7.js +25 -0
- package/dist/ChevronDown-CRAwzuD3.js +25 -0
- package/dist/ChevronRight-DUaHaWi-.js +25 -0
- package/dist/ChevronUp-H8Nuww4h.js +25 -0
- package/dist/ClockDashed-PQgzLSPC.js +25 -0
- package/dist/DocPencil-CVby07uu.js +25 -0
- package/dist/Eye-CMPIjkcy.js +25 -0
- package/dist/Handshake-Bz9FuL-x.js +25 -0
- package/dist/Inbox-z7qqLz8Y.js +25 -0
- package/dist/ListItemBase-BVx5MDhO.js +83 -0
- package/dist/MagnifyingGlass-DWIcpwS4.js +25 -0
- package/dist/Package-ASRzCHA7.js +25 -0
- package/dist/PadlockLocked-xJsxvaHH.js +25 -0
- package/dist/Plus-B6MBOAcH.js +25 -0
- package/dist/Trash-DMlYh49i.js +44 -0
- package/dist/XMark-Bv1I87Ev.js +25 -0
- package/dist/assets/Flex.css +1 -1
- package/dist/assets/ListItemBase.css +1 -1
- package/dist/assets/ListItemIcon.css +1 -1
- package/dist/companyAccess-DVKbpCnw.js +626 -0
- package/dist/companyMenuItems-E0wNQAfZ.js +105 -0
- package/dist/components/AccessAreaList/AccessAreaList.js +4 -5
- package/dist/components/AccessAreaList/AccessAreaListItem.js +22 -27
- package/dist/components/AccessPackageList/AccessPackageList.js +2 -3
- package/dist/components/AccessPackageList/AccessPackageListItem.js +2 -3
- package/dist/components/Attachment/AttachmentLink.js +30 -11
- package/dist/components/Bookmarks/BookmarksListItem.js +2 -3
- package/dist/components/Bookmarks/BookmarksSection.js +21 -22
- package/dist/components/Bookmarks/EditableBookmark.js +39 -28
- package/dist/components/Button/Button.js +13 -11
- package/dist/components/Button/ButtonBase.js +22 -20
- package/dist/components/Button/ButtonIcon.js +5 -6
- package/dist/components/Button/ComboButton.js +27 -25
- package/dist/components/Button/IconButton.js +17 -15
- package/dist/components/Byline/Byline.js +7 -8
- package/dist/components/ContextMenu/ContextMenu.js +51 -32
- package/dist/components/Datepicker/DatepickerHeader.js +34 -14
- package/dist/components/Datepicker/DatepickerTable.js +10 -11
- package/dist/components/Dialog/ActivityItem.js +6 -7
- package/dist/components/Dialog/ActivityItemDetails.js +9 -10
- package/dist/components/Dialog/ActivityLog.js +2 -3
- package/dist/components/Dialog/Dialog.js +2 -3
- package/dist/components/Dialog/DialogActions.js +25 -23
- package/dist/components/Dialog/DialogActivityLog.js +3 -3
- package/dist/components/Dialog/DialogAttachments.js +2 -3
- package/dist/components/Dialog/DialogBody.js +2 -3
- package/dist/components/Dialog/DialogByline.js +8 -9
- package/dist/components/Dialog/DialogContent.js +2 -3
- package/dist/components/Dialog/DialogHeader.js +4 -5
- package/dist/components/Dialog/DialogHeading.js +4 -5
- package/dist/components/Dialog/DialogHistory.js +61 -25
- package/dist/components/Dialog/DialogLabel.js +8 -8
- package/dist/components/Dialog/DialogList.js +2 -3
- package/dist/components/Dialog/DialogListGroup.js +33 -14
- package/dist/components/Dialog/DialogListItem.js +27 -29
- package/dist/components/Dialog/DialogMetadata.js +79 -40
- package/dist/components/Dialog/DialogSection.js +2 -3
- package/dist/components/Dialog/DialogSeenBy.js +33 -13
- package/dist/components/Dialog/DialogSelect.js +4 -5
- package/dist/components/Dialog/DialogStatus.js +7 -8
- package/dist/components/Dialog/DialogTimeline.js +6 -7
- package/dist/components/Dialog/DialogTimelineItem.js +4 -5
- package/dist/components/Dialog/DialogTransmissions.js +2 -3
- package/dist/components/Dialog/SeenByLog.js +5 -7
- package/dist/components/Dropdown/DrawerButton.js +2 -3
- package/dist/components/Dropdown/DrawerHeader.js +19 -9
- package/dist/components/Dropdown/DrawerOrDropdown.js +2 -3
- package/dist/components/GlobalMenu/AccountButton.js +3 -3
- package/dist/components/GlobalMenu/AccountMenu.js +9 -10
- package/dist/components/GlobalMenu/BackButton.js +5 -5
- package/dist/components/GlobalMenu/GlobalMenu.js +14 -15
- package/dist/components/GlobalMenu/LogoutButton.js +2 -3
- package/dist/components/Header/Header.js +2 -3
- package/dist/components/Header/HeaderBase.js +2 -3
- package/dist/components/Header/HeaderButton.js +35 -34
- package/dist/components/Header/HeaderLogo.js +4 -5
- package/dist/components/Icon/Icon.js +7 -13
- package/dist/components/Icon/IconOrAvatar.js +14 -16
- package/dist/components/Icon/index.js +8 -12
- package/dist/components/Layout/Layout.js +6 -7
- package/dist/components/LayoutAction/ActionHeader.js +25 -14
- package/dist/components/LayoutAction/LayoutAction.js +2 -3
- package/dist/components/List/List.js +5 -6
- package/dist/components/List/ListBase.js +1 -2
- package/dist/components/List/ListItem.js +85 -82
- package/dist/components/List/ListItemBase.js +4 -78
- package/dist/components/List/ListItemHeader.js +57 -58
- package/dist/components/List/ListItemIcon.js +6 -6
- package/dist/components/List/ListItemSelect.js +4 -5
- package/dist/components/List/index.js +1 -1
- package/dist/components/Menu/MenuItem.js +32 -31
- package/dist/components/Menu/MenuItemBase.js +22 -23
- package/dist/components/Menu/MenuItemIcon.js +2 -3
- package/dist/components/Menu/MenuItems.js +20 -21
- package/dist/components/Menu/MenuOption.js +5 -6
- package/dist/components/Menu/MenuSearch.js +32 -14
- package/dist/components/Meta/MetaItemMedia.js +7 -8
- package/dist/components/Page/Breadcrumbs.js +11 -11
- package/dist/components/Page/BreadcrumbsLink.js +9 -11
- package/dist/components/Page/ContactSection.js +4 -5
- package/dist/components/Page/Flex.js +7 -7
- package/dist/components/Page/PageHeader.js +8 -9
- package/dist/components/Page/PageMenu.js +6 -7
- package/dist/components/Page/PageNav.js +13 -13
- package/dist/components/Page/PageTabs.js +2 -3
- package/dist/components/Page/Section.js +2 -3
- package/dist/components/ResourceList/ResourceList.js +2 -3
- package/dist/components/ResourceList/ResourceListItem.js +2 -3
- package/dist/components/Search/Autocomplete.js +25 -23
- package/dist/components/Search/AutocompleteItem.js +2 -3
- package/dist/components/Search/ScopeListItem.js +2 -3
- package/dist/components/Search/SearchField.js +48 -43
- package/dist/components/Search/Searchbar.js +2 -3
- package/dist/components/Search/SuggestListItem.js +2 -3
- package/dist/components/Snackbar/SnackbarItem.js +57 -27
- package/dist/components/Timeline/TimelineSection.js +6 -7
- package/dist/components/Toolbar/Toolbar.js +36 -34
- package/dist/components/Toolbar/ToolbarAccountMenu.js +4 -5
- package/dist/components/Toolbar/ToolbarAdd.js +5 -6
- package/dist/components/Toolbar/ToolbarButton.js +66 -31
- package/dist/components/Toolbar/ToolbarDaterange.js +11 -12
- package/dist/components/Toolbar/ToolbarFilter.js +30 -29
- package/dist/components/Toolbar/ToolbarMenu.js +4 -5
- package/dist/components/Toolbar/ToolbarOptions.js +15 -16
- package/dist/components/Toolbar/ToolbarSearch.js +37 -19
- package/dist/components/Transmission/TransmissionItem.js +67 -48
- package/dist/components/Transmission/TransmissionList.js +2 -3
- package/dist/components/index.js +198 -202
- package/dist/globalMenu-CtokaeGw.js +124 -0
- package/dist/index.js +204 -208
- package/dist/types/lib/components/AccessAreaList/AccessAreaListItem.d.ts +2 -1
- package/dist/types/lib/components/AccessAreaList/AccessAreaListItem.stories.d.ts +2 -1
- package/dist/types/lib/components/Attachment/AttachmentLink.d.ts +5 -3
- package/dist/types/lib/components/Attachment/AttachmentLink.stories.d.ts +1 -1
- package/dist/types/lib/components/Bookmarks/BookmarksSection.stories.d.ts +3 -0
- package/dist/types/lib/components/Bookmarks/EditableBookmark.d.ts +4 -1
- package/dist/types/lib/components/Button/Button.d.ts +4 -3
- package/dist/types/lib/components/Button/Button.stories.d.ts +1 -1
- package/dist/types/lib/components/Button/ButtonBase.d.ts +2 -1
- package/dist/types/lib/components/Button/ButtonIcon.d.ts +4 -3
- package/dist/types/lib/components/Button/ComboButton.d.ts +5 -3
- package/dist/types/lib/components/Button/IconButton.d.ts +4 -3
- package/dist/types/lib/components/Dialog/DialogListItem.stories.d.ts +4 -3
- package/dist/types/lib/components/Dialog/DialogSeenBy.d.ts +2 -0
- package/dist/types/lib/components/Dropdown/DrawerHeader.d.ts +2 -1
- package/dist/types/lib/components/Header/HeaderButton.d.ts +2 -2
- package/dist/types/lib/components/Icon/Icon.d.ts +5 -5
- package/dist/types/lib/components/Icon/IconOrAvatar.d.ts +3 -3
- package/dist/types/lib/components/Icon/index.d.ts +0 -2
- package/dist/types/lib/components/LayoutAction/ActionHeader.d.ts +2 -1
- package/dist/types/lib/components/List/ListBase.stories.d.ts +3 -4
- package/dist/types/lib/components/List/ListItem.d.ts +4 -2
- package/dist/types/lib/components/List/ListItemBase.d.ts +24 -2
- package/dist/types/lib/components/List/ListItemHeader.d.ts +8 -7
- package/dist/types/lib/components/List/Patterns.stories.d.ts +0 -1
- package/dist/types/lib/components/List/Specimens.stories.d.ts +2 -2
- package/dist/types/lib/components/Menu/MenuItem.d.ts +3 -3
- package/dist/types/lib/components/Menu/MenuItemBase.d.ts +2 -2
- package/dist/types/lib/components/Menu/MenuSearch.d.ts +2 -1
- package/dist/types/lib/components/Menu/MenuSearch.stories.d.ts +1 -1
- package/dist/types/lib/components/Meta/MetaItem.d.ts +2 -2
- package/dist/types/lib/components/Meta/MetaItemMedia.d.ts +2 -2
- package/dist/types/lib/components/Meta/MetaTimestamp.d.ts +2 -2
- package/dist/types/lib/components/Page/BreadcrumbsLink.d.ts +1 -1
- package/dist/types/lib/components/Page/Flex.d.ts +1 -1
- package/dist/types/lib/components/Page/PageHeader.d.ts +2 -2
- package/dist/types/lib/components/Search/SearchField.d.ts +3 -1
- package/dist/types/lib/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/types/lib/components/Snackbar/SnackbarItem.d.ts +4 -3
- package/dist/types/lib/components/Snackbar/SnackbarItem.stories.d.ts +1 -1
- package/dist/types/lib/components/Snackbar/useSnackbar.d.ts +2 -2
- package/dist/types/lib/components/Timeline/TimelineSection.d.ts +2 -2
- package/dist/types/lib/components/Toolbar/Toolbar.d.ts +2 -1
- package/dist/types/lib/components/Toolbar/Toolbar.stories.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/ToolbarButton.d.ts +2 -2
- package/dist/types/lib/components/Toolbar/ToolbarButton.stories.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/ToolbarDate.stories.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/ToolbarFilter.d.ts +2 -1
- package/dist/types/lib/components/Toolbar/ToolbarFilter.stories.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/ToolbarSearch.d.ts +2 -1
- package/dist/types/lib/components/Toolbar/ToolbarSearch.stories.d.ts +1 -1
- package/dist/types/lib/components/Transmission/TransmissionItem.stories.d.ts +1 -1
- package/dist/useId-CsCRkvK3.js +16 -0
- package/dist/userMenuItems-vSWEGGu2.js +84 -0
- package/package.json +3 -3
- package/dist/components/Icon/SvgIcon.js +0 -6
- package/dist/components/Icon/iconsMap.js +0 -17395
- package/dist/globalMenu-C6osDiF4.js +0 -80
- package/dist/types/lib/components/Button/ComboButton.stories.d.ts +0 -19
- package/dist/types/lib/components/Button/IconButton.stories.d.ts +0 -16
- package/dist/types/lib/components/ContextMenu/ContextMenu.stories.d.ts +0 -19
- package/dist/types/lib/components/Icon/SvgIcon.d.ts +0 -9
- package/dist/types/lib/components/Icon/iconsMap.d.ts +0 -1911
- package/dist/types/lib/components/LayoutAction/LayoutAction.stories.d.ts +0 -19
- package/dist/types/lib/components/Page/ContactSection.stories.d.ts +0 -25
- package/dist/types/lib/components/Page/PageMenu.stories.d.ts +0 -18
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import { jsxs as u, jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
|
-
import "../Icon/SvgIcon.js";
|
|
4
3
|
import "react";
|
|
5
|
-
import { Byline as
|
|
4
|
+
import { Byline as x } from "../Byline/Byline.js";
|
|
6
5
|
import "../RootProvider/RootProvider.js";
|
|
7
6
|
import "../Search/AutocompleteBase.js";
|
|
8
7
|
import "../Snackbar/useSnackbar.js";
|
|
9
8
|
const s = ({
|
|
10
9
|
sender: o,
|
|
11
|
-
recipient:
|
|
10
|
+
recipient: a,
|
|
12
11
|
recipientLabel: t = "to",
|
|
13
|
-
grouped:
|
|
14
|
-
loading:
|
|
15
|
-
size:
|
|
16
|
-
}) => !o && !
|
|
17
|
-
items: [o,
|
|
12
|
+
grouped: l = !1,
|
|
13
|
+
loading: m,
|
|
14
|
+
size: r = "xs"
|
|
15
|
+
}) => !o && !a ? null : /* @__PURE__ */ u(x, { loading: m, size: r, avatar: o, avatarGroup: !m && l && o && a ? {
|
|
16
|
+
items: [o, a]
|
|
18
17
|
} : void 0, children: [
|
|
19
18
|
/* @__PURE__ */ f("strong", { children: o == null ? void 0 : o.name }),
|
|
20
19
|
" ",
|
|
21
|
-
t + " " + (
|
|
20
|
+
t + " " + (a == null ? void 0 : a.name)
|
|
22
21
|
] });
|
|
23
22
|
export {
|
|
24
23
|
s as DialogByline
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as i, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
|
-
import "../Icon/SvgIcon.js";
|
|
4
3
|
import "react";
|
|
5
4
|
import { Byline as n } from "../Byline/Byline.js";
|
|
6
5
|
import "../RootProvider/RootProvider.js";
|
|
@@ -12,7 +11,7 @@ import "../Search/AutocompleteBase.js";
|
|
|
12
11
|
import "../Snackbar/useSnackbar.js";
|
|
13
12
|
import { TimelineSection as f } from "../Timeline/TimelineSection.js";
|
|
14
13
|
import { Section as s } from "../Page/Section.js";
|
|
15
|
-
const
|
|
14
|
+
const C = ({ updatedAt: t, updatedAtLabel: e, seenBy: r, activityLog: m, children: p }) => /* @__PURE__ */ i(f, { children: /* @__PURE__ */ o(s, { spacing: 4, margin: "section", children: [
|
|
16
15
|
/* @__PURE__ */ o("div", { children: [
|
|
17
16
|
/* @__PURE__ */ i(n, { datetime: t, children: e }),
|
|
18
17
|
/* @__PURE__ */ i(d, { size: "md", children: p })
|
|
@@ -23,5 +22,5 @@ const M = ({ updatedAt: t, updatedAtLabel: e, seenBy: r, activityLog: m, childre
|
|
|
23
22
|
] })
|
|
24
23
|
] }) });
|
|
25
24
|
export {
|
|
26
|
-
|
|
25
|
+
C as DialogContent
|
|
27
26
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as p, jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
|
-
import "../Icon/SvgIcon.js";
|
|
4
3
|
import "react";
|
|
5
4
|
import "../RootProvider/RootProvider.js";
|
|
6
5
|
import { DialogMetadata as a } from "./DialogMetadata.js";
|
|
@@ -8,10 +7,10 @@ import { Heading as n } from "../Typography/Heading.js";
|
|
|
8
7
|
import "../Search/AutocompleteBase.js";
|
|
9
8
|
import "../Snackbar/useSnackbar.js";
|
|
10
9
|
import { Section as c } from "../Page/Section.js";
|
|
11
|
-
const
|
|
10
|
+
const H = ({ loading: r, title: t, status: o, dueAt: i, dueAtLabel: e }) => /* @__PURE__ */ p(c, { as: "header", spacing: 3, children: [
|
|
12
11
|
/* @__PURE__ */ m(n, { loading: r, size: "xl", children: t }),
|
|
13
|
-
(o || i) && /* @__PURE__ */ m(a, { loading: r, status: o, dueAt: i, dueAtLabel:
|
|
12
|
+
(o || i) && /* @__PURE__ */ m(a, { loading: r, status: o, dueAt: i, dueAtLabel: e })
|
|
14
13
|
] });
|
|
15
14
|
export {
|
|
16
|
-
|
|
15
|
+
H as DialogHeader
|
|
17
16
|
};
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
|
-
import "../Icon/SvgIcon.js";
|
|
4
3
|
import "react";
|
|
5
4
|
import "../RootProvider/RootProvider.js";
|
|
6
5
|
import { Skeleton as l } from "../Skeleton/Skeleton.js";
|
|
7
6
|
import { DialogLabel as d } from "./DialogLabel.js";
|
|
8
7
|
import "../Search/AutocompleteBase.js";
|
|
9
8
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import '../../assets/DialogHeading.css';const p = "_heading_rx9gi_1", c = "_title_rx9gi_7",
|
|
9
|
+
import '../../assets/DialogHeading.css';const p = "_heading_rx9gi_1", c = "_title_rx9gi_7", s = {
|
|
11
10
|
heading: p,
|
|
12
11
|
title: c
|
|
13
|
-
},
|
|
14
|
-
/* @__PURE__ */ t(l, { loading: i, children: /* @__PURE__ */ t("h2", { className:
|
|
12
|
+
}, D = ({ loading: i, size: o = "sm", seen: a = !1, state: e, label: r, children: m }) => /* @__PURE__ */ n("div", { className: s.heading, children: [
|
|
13
|
+
/* @__PURE__ */ t(l, { loading: i, children: /* @__PURE__ */ t("h2", { className: s.title, "data-seen": a, "data-size": o, "data-state": e, children: m }) }),
|
|
15
14
|
!i && r && /* @__PURE__ */ t(d, { type: e, size: "xs", children: r })
|
|
16
15
|
] });
|
|
17
16
|
export {
|
|
18
|
-
|
|
17
|
+
D as DialogHeading
|
|
19
18
|
};
|
|
@@ -1,44 +1,80 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "../Icon/
|
|
2
|
+
import { jsxs as d, jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import * as i from "react";
|
|
4
|
+
import { forwardRef as p, useState as y, createElement as h } from "react";
|
|
5
|
+
import { Icon as w } from "../Icon/Icon.js";
|
|
6
6
|
import "../../index-L8X2o7IH.js";
|
|
7
|
-
import { ButtonBase as
|
|
7
|
+
import { ButtonBase as b } from "../Button/ButtonBase.js";
|
|
8
8
|
import "../RootProvider/RootProvider.js";
|
|
9
|
-
import { ActivityItem as
|
|
9
|
+
import { ActivityItem as v } from "./ActivityItem.js";
|
|
10
10
|
import "../Search/AutocompleteBase.js";
|
|
11
11
|
import "../Snackbar/useSnackbar.js";
|
|
12
|
-
import { TimelineBase as
|
|
13
|
-
import { TimelineSection as
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
import { TimelineBase as m } from "../Timeline/TimelineBase.js";
|
|
13
|
+
import { TimelineSection as O } from "../Timeline/TimelineSection.js";
|
|
14
|
+
import { u } from "../../useId-CsCRkvK3.js";
|
|
15
|
+
import '../../assets/DialogHistory.css';var x = function(t, n) {
|
|
16
|
+
var r = {};
|
|
17
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
18
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
19
|
+
for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
|
|
20
|
+
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
21
|
+
return r;
|
|
22
|
+
};
|
|
23
|
+
const I = p((t, n) => {
|
|
24
|
+
var { title: r, titleId: e } = t, l = x(t, ["title", "titleId"]);
|
|
25
|
+
let o = u();
|
|
26
|
+
return o = r ? e || "title-" + o : void 0, i.createElement(
|
|
27
|
+
"svg",
|
|
28
|
+
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: n, "aria-labelledby": o }, l),
|
|
29
|
+
r ? i.createElement("title", { id: o }, r) : null,
|
|
30
|
+
i.createElement("path", { fill: "currentColor", d: "M12.75 5a.75.75 0 0 0-1.5 0v12.19l-3.22-3.22a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l4.5-4.5a.75.75 0 1 0-1.06-1.06l-3.22 3.22z" })
|
|
31
|
+
);
|
|
32
|
+
});
|
|
33
|
+
var j = function(t, n) {
|
|
34
|
+
var r = {};
|
|
35
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
36
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
37
|
+
for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
|
|
38
|
+
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
39
|
+
return r;
|
|
40
|
+
};
|
|
41
|
+
const E = p((t, n) => {
|
|
42
|
+
var { title: r, titleId: e } = t, l = j(t, ["title", "titleId"]);
|
|
43
|
+
let o = u();
|
|
44
|
+
return o = r ? e || "title-" + o : void 0, i.createElement(
|
|
45
|
+
"svg",
|
|
46
|
+
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: n, "aria-labelledby": o }, l),
|
|
47
|
+
r ? i.createElement("title", { id: o }, r) : null,
|
|
48
|
+
i.createElement("path", { fill: "currentColor", d: "M12.53 4.47a.75.75 0 0 0-1.06 0l-4.5 4.5a.75.75 0 0 0 1.06 1.06l3.22-3.22V19a.75.75 0 0 0 1.5 0V6.81l3.22 3.22a.75.75 0 1 0 1.06-1.06z" })
|
|
49
|
+
);
|
|
50
|
+
}), _ = "_toggle_1it16_1", S = {
|
|
51
|
+
toggle: _
|
|
52
|
+
}, s = ({ expanded: t, children: n, onClick: r }) => /* @__PURE__ */ d(
|
|
53
|
+
b,
|
|
18
54
|
{
|
|
19
|
-
className:
|
|
55
|
+
className: S.toggle,
|
|
20
56
|
size: "sm",
|
|
21
57
|
onClick: r,
|
|
22
58
|
style: { display: "inline-flex", alignItems: "center" },
|
|
23
59
|
children: [
|
|
24
|
-
|
|
25
|
-
/* @__PURE__ */
|
|
60
|
+
n,
|
|
61
|
+
/* @__PURE__ */ a(w, { svgElement: t ? E : I, size: "sm" })
|
|
26
62
|
]
|
|
27
63
|
}
|
|
28
|
-
),
|
|
64
|
+
), N = ({
|
|
29
65
|
items: t,
|
|
30
|
-
collapsible:
|
|
66
|
+
collapsible: n = !1,
|
|
31
67
|
expandLabel: r = "Expand history",
|
|
32
|
-
collapseLabel:
|
|
68
|
+
collapseLabel: e = "Collapse history"
|
|
33
69
|
}) => {
|
|
34
|
-
const [
|
|
35
|
-
|
|
70
|
+
const [l, o] = y(!1), f = () => {
|
|
71
|
+
o((c) => !c);
|
|
36
72
|
};
|
|
37
|
-
return t ?
|
|
38
|
-
t.map((
|
|
39
|
-
|
|
40
|
-
] }) : /* @__PURE__ */
|
|
73
|
+
return t ? l || !n ? /* @__PURE__ */ d(m, { children: [
|
|
74
|
+
t.map((c, g) => /* @__PURE__ */ h(v, { ...c, key: g })),
|
|
75
|
+
n && /* @__PURE__ */ a(s, { expanded: !0, onClick: f, children: e })
|
|
76
|
+
] }) : /* @__PURE__ */ a(m, { children: /* @__PURE__ */ a(O, { color: "neutral", children: /* @__PURE__ */ a(s, { onClick: f, children: r }) }) }) : null;
|
|
41
77
|
};
|
|
42
78
|
export {
|
|
43
|
-
|
|
79
|
+
N as DialogHistory
|
|
44
80
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
|
-
import { MetaItem as
|
|
3
|
+
import { MetaItem as i } from "../Meta/MetaItem.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
6
|
import "../Search/AutocompleteBase.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import "
|
|
9
|
-
const
|
|
8
|
+
import { S as n, a as m } from "../../Trash-DMlYh49i.js";
|
|
9
|
+
const g = ({ size: r = "xs", type: e, label: t, children: o }) => {
|
|
10
10
|
switch (e) {
|
|
11
11
|
case "trashed":
|
|
12
|
-
return /* @__PURE__ */ i
|
|
12
|
+
return /* @__PURE__ */ a(i, { size: r, icon: m, variant: "rounded", children: o || t });
|
|
13
13
|
case "archived":
|
|
14
|
-
return /* @__PURE__ */ i
|
|
14
|
+
return /* @__PURE__ */ a(i, { size: r, icon: n, variant: "rounded", children: o || t });
|
|
15
15
|
default:
|
|
16
|
-
return /* @__PURE__ */ i
|
|
16
|
+
return /* @__PURE__ */ a(i, { size: r, variant: "rounded", children: o || t });
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
g as DialogLabel
|
|
21
21
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { createElement as t } from "react";
|
|
3
3
|
import "../../index-L8X2o7IH.js";
|
|
4
|
-
import "../Icon/SvgIcon.js";
|
|
5
4
|
import { useMenu as f } from "../../hooks/useMenu.js";
|
|
6
5
|
import "../RootProvider/RootProvider.js";
|
|
7
6
|
import { DialogListGroup as l } from "./DialogListGroup.js";
|
|
@@ -9,7 +8,7 @@ import { DialogListItem as y } from "./DialogListItem.js";
|
|
|
9
8
|
import "../Search/AutocompleteBase.js";
|
|
10
9
|
import "../Snackbar/useSnackbar.js";
|
|
11
10
|
import { Section as d } from "../Page/Section.js";
|
|
12
|
-
const
|
|
11
|
+
const h = ({ items: i, groups: m = {} }) => {
|
|
13
12
|
const { menu: r } = f({
|
|
14
13
|
items: i,
|
|
15
14
|
groups: m,
|
|
@@ -25,5 +24,5 @@ const j = ({ items: i, groups: m = {} }) => {
|
|
|
25
24
|
}) });
|
|
26
25
|
};
|
|
27
26
|
export {
|
|
28
|
-
|
|
27
|
+
h as DialogList
|
|
29
28
|
};
|
|
@@ -1,22 +1,41 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as m, jsx as n } from "react/jsx-runtime";
|
|
2
3
|
import "../../index-L8X2o7IH.js";
|
|
3
|
-
import "
|
|
4
|
-
import "react";
|
|
5
|
-
import { Button as
|
|
4
|
+
import * as a from "react";
|
|
5
|
+
import { forwardRef as f } from "react";
|
|
6
|
+
import { Button as c } from "../Button/Button.js";
|
|
6
7
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { ListBase as
|
|
8
|
-
import { Heading as
|
|
8
|
+
import { ListBase as p } from "../List/ListBase.js";
|
|
9
|
+
import { Heading as d } from "../Typography/Heading.js";
|
|
9
10
|
import "../Search/AutocompleteBase.js";
|
|
10
11
|
import "../Snackbar/useSnackbar.js";
|
|
11
|
-
import { Flex as
|
|
12
|
-
import { Section as
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
import { Flex as s } from "../Page/Flex.js";
|
|
13
|
+
import { Section as u } from "../Page/Section.js";
|
|
14
|
+
import { u as g } from "../../useId-CsCRkvK3.js";
|
|
15
|
+
var b = function(e, i) {
|
|
16
|
+
var o = {};
|
|
17
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && i.indexOf(t) < 0 && (o[t] = e[t]);
|
|
18
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
19
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
20
|
+
i.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
|
|
21
|
+
return o;
|
|
22
|
+
};
|
|
23
|
+
const h = f((e, i) => {
|
|
24
|
+
var { title: o, titleId: t } = e, r = b(e, ["title", "titleId"]);
|
|
25
|
+
let l = g();
|
|
26
|
+
return l = o ? t || "title-" + l : void 0, a.createElement(
|
|
27
|
+
"svg",
|
|
28
|
+
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: i, "aria-labelledby": l }, r),
|
|
29
|
+
o ? a.createElement("title", { id: l }, o) : null,
|
|
30
|
+
a.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M18.998 6.94a.75.75 0 0 1 .063 1.058l-8 9a.75.75 0 0 1-1.091.032l-5-5a.75.75 0 1 1 1.06-1.06l4.438 4.437 7.471-8.405A.75.75 0 0 1 19 6.939", clipRule: "evenodd" })
|
|
31
|
+
);
|
|
32
|
+
}), P = ({ title: e, children: i }) => /* @__PURE__ */ m(u, { spacing: 3, children: [
|
|
33
|
+
e && /* @__PURE__ */ m(s, { direction: "row", align: "center", justify: "between", children: [
|
|
34
|
+
/* @__PURE__ */ n(d, { size: "lg", children: e }),
|
|
35
|
+
/* @__PURE__ */ n(c, { variant: "text", icon: h, size: "sm", children: "Velg alle" })
|
|
17
36
|
] }),
|
|
18
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ n(p, { spacing: 3, children: i })
|
|
19
38
|
] });
|
|
20
39
|
export {
|
|
21
|
-
|
|
40
|
+
P as DialogListGroup
|
|
22
41
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t, jsxs as b } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
|
-
import "../Icon/SvgIcon.js";
|
|
4
3
|
import "react";
|
|
5
4
|
import "../RootProvider/RootProvider.js";
|
|
6
5
|
import { DialogMetadata as u } from "./DialogMetadata.js";
|
|
@@ -22,8 +21,8 @@ import '../../assets/DialogListItem.css';const K = "_link_1yhch_1", O = "_border
|
|
|
22
21
|
touchedBy: V,
|
|
23
22
|
heading: W,
|
|
24
23
|
title: X
|
|
25
|
-
},
|
|
26
|
-
size:
|
|
24
|
+
}, he = ({
|
|
25
|
+
size: e = "lg",
|
|
27
26
|
state: x = "normal",
|
|
28
27
|
loading: o,
|
|
29
28
|
select: s,
|
|
@@ -32,12 +31,12 @@ import '../../assets/DialogListItem.css';const K = "_link_1yhch_1", O = "_border
|
|
|
32
31
|
sender: h,
|
|
33
32
|
recipient: g,
|
|
34
33
|
recipientLabel: k = "to",
|
|
35
|
-
grouped:
|
|
34
|
+
grouped: D = !1,
|
|
36
35
|
updatedAt: l,
|
|
37
36
|
updatedAtLabel: i,
|
|
38
|
-
archivedAt:
|
|
39
|
-
archivedAtLabel:
|
|
40
|
-
trashedAt:
|
|
37
|
+
archivedAt: d,
|
|
38
|
+
archivedAtLabel: I,
|
|
39
|
+
trashedAt: _,
|
|
41
40
|
trashedAtLabel: L,
|
|
42
41
|
label: S,
|
|
43
42
|
dueAt: j,
|
|
@@ -47,37 +46,36 @@ import '../../assets/DialogListItem.css';const K = "_link_1yhch_1", O = "_border
|
|
|
47
46
|
touchedBy: M,
|
|
48
47
|
attachmentsCount: T,
|
|
49
48
|
title: r,
|
|
50
|
-
description:
|
|
49
|
+
description: n,
|
|
51
50
|
summary: y,
|
|
52
51
|
theme: q = "default",
|
|
53
52
|
...p
|
|
54
53
|
}) => {
|
|
55
|
-
const w =
|
|
56
|
-
return
|
|
54
|
+
const w = _ ? "trashed" : d ? "archived" : x, f = c ? "subtle" : q;
|
|
55
|
+
return e === "xs" || e === "sm" || e === "md" ? /* @__PURE__ */ t(
|
|
57
56
|
N,
|
|
58
57
|
{
|
|
59
58
|
...p,
|
|
60
|
-
size:
|
|
59
|
+
size: e,
|
|
61
60
|
selected: c,
|
|
62
61
|
theme: f,
|
|
63
|
-
label: /* @__PURE__ */
|
|
64
|
-
badge: /* @__PURE__ */
|
|
62
|
+
label: /* @__PURE__ */ t("div", { className: a.border, "data-size": e, "data-seen": m, "data-loading": o, children: /* @__PURE__ */ t(G, { loading: o, size: e, title: r, description: y || n }) }),
|
|
63
|
+
badge: /* @__PURE__ */ t(u, { loading: o, sender: h, updatedAt: l, updatedAtLabel: i }),
|
|
65
64
|
title: r
|
|
66
65
|
}
|
|
67
|
-
) : /* @__PURE__ */
|
|
66
|
+
) : /* @__PURE__ */ t(
|
|
68
67
|
N,
|
|
69
68
|
{
|
|
70
69
|
...p,
|
|
71
|
-
size:
|
|
70
|
+
size: e,
|
|
72
71
|
selected: c,
|
|
73
72
|
theme: f,
|
|
74
|
-
|
|
75
|
-
controls: s && /* @__PURE__ */ e(J, { className: a.select, ...s, size: "xl" }),
|
|
73
|
+
controls: s && /* @__PURE__ */ t(J, { className: a.select, ...s, size: "xl" }),
|
|
76
74
|
title: r,
|
|
77
|
-
label: /* @__PURE__ */ b("div", { className: a.border, "data-size":
|
|
78
|
-
/* @__PURE__ */ b("header", { className: a.header, "data-size":
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
/* @__PURE__ */
|
|
75
|
+
label: /* @__PURE__ */ b("div", { className: a.border, "data-size": e, "data-seen": m, "data-loading": o, children: [
|
|
76
|
+
/* @__PURE__ */ b("header", { className: a.header, "data-size": e, children: [
|
|
77
|
+
/* @__PURE__ */ t(F, { loading: o, size: e, state: w, label: S, seen: m, children: r }),
|
|
78
|
+
/* @__PURE__ */ t(
|
|
81
79
|
C,
|
|
82
80
|
{
|
|
83
81
|
size: "xs",
|
|
@@ -85,12 +83,12 @@ import '../../assets/DialogListItem.css';const K = "_link_1yhch_1", O = "_border
|
|
|
85
83
|
sender: h,
|
|
86
84
|
recipient: g,
|
|
87
85
|
recipientLabel: k,
|
|
88
|
-
grouped:
|
|
86
|
+
grouped: D
|
|
89
87
|
}
|
|
90
88
|
),
|
|
91
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ t(E, { loading: o, children: /* @__PURE__ */ t("p", { "data-size": e, className: a.summary, children: y || n }) })
|
|
92
90
|
] }),
|
|
93
|
-
/* @__PURE__ */
|
|
91
|
+
/* @__PURE__ */ t(
|
|
94
92
|
u,
|
|
95
93
|
{
|
|
96
94
|
className: a.footer,
|
|
@@ -98,9 +96,9 @@ import '../../assets/DialogListItem.css';const K = "_link_1yhch_1", O = "_border
|
|
|
98
96
|
status: B,
|
|
99
97
|
updatedAt: l,
|
|
100
98
|
updatedAtLabel: i,
|
|
101
|
-
archivedAt:
|
|
102
|
-
archivedAtLabel:
|
|
103
|
-
trashedAt:
|
|
99
|
+
archivedAt: d,
|
|
100
|
+
archivedAtLabel: I,
|
|
101
|
+
trashedAt: _,
|
|
104
102
|
trashedAtLabel: L,
|
|
105
103
|
dueAt: j,
|
|
106
104
|
dueAtLabel: v,
|
|
@@ -117,5 +115,5 @@ import '../../assets/DialogListItem.css';const K = "_link_1yhch_1", O = "_border
|
|
|
117
115
|
);
|
|
118
116
|
};
|
|
119
117
|
export {
|
|
120
|
-
|
|
118
|
+
he as DialogListItem
|
|
121
119
|
};
|
|
@@ -1,49 +1,88 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as w, jsx as n } from "react/jsx-runtime";
|
|
2
3
|
import "../../index-L8X2o7IH.js";
|
|
3
|
-
import "
|
|
4
|
-
import "react";
|
|
4
|
+
import * as c from "react";
|
|
5
|
+
import { forwardRef as z } from "react";
|
|
5
6
|
import "../RootProvider/RootProvider.js";
|
|
6
|
-
import { DialogActivityLog as
|
|
7
|
-
import { DialogSeenBy as
|
|
8
|
-
import { DialogStatus as
|
|
9
|
-
import { DialogTouchedBy as
|
|
10
|
-
import { MetaBase as
|
|
11
|
-
import { MetaItem as
|
|
7
|
+
import { DialogActivityLog as j } from "./DialogActivityLog.js";
|
|
8
|
+
import { DialogSeenBy as I } from "./DialogSeenBy.js";
|
|
9
|
+
import { DialogStatus as E } from "./DialogStatus.js";
|
|
10
|
+
import { DialogTouchedBy as _ } from "./DialogTouchedBy.js";
|
|
11
|
+
import { MetaBase as M } from "../Meta/MetaBase.js";
|
|
12
|
+
import { MetaItem as b } from "../Meta/MetaItem.js";
|
|
12
13
|
import { MetaTimestamp as m } from "../Meta/MetaTimestamp.js";
|
|
13
14
|
import "../Search/AutocompleteBase.js";
|
|
14
15
|
import "../Snackbar/useSnackbar.js";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
16
|
+
import { S as P } from "../../ClockDashed-PQgzLSPC.js";
|
|
17
|
+
import { u as S } from "../../useId-CsCRkvK3.js";
|
|
18
|
+
import { a as D, S as R } from "../../Trash-DMlYh49i.js";
|
|
19
|
+
var B = function(t, r) {
|
|
20
|
+
var i = {};
|
|
21
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && r.indexOf(e) < 0 && (i[e] = t[e]);
|
|
22
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
23
|
+
for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
|
|
24
|
+
r.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (i[e[l]] = t[e[l]]);
|
|
25
|
+
return i;
|
|
26
|
+
};
|
|
27
|
+
const T = z((t, r) => {
|
|
28
|
+
var { title: i, titleId: e } = t, l = B(t, ["title", "titleId"]);
|
|
29
|
+
let o = S();
|
|
30
|
+
return o = i ? e || "title-" + o : void 0, c.createElement(
|
|
31
|
+
"svg",
|
|
32
|
+
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: r, "aria-labelledby": o }, l),
|
|
33
|
+
i ? c.createElement("title", { id: o }, i) : null,
|
|
34
|
+
c.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M8.25 3.5c0-.69.56-1.25 1.25-1.25H14a.75.75 0 0 1 .53.22l5 5c.141.14.22.331.22.53v8.5c0 .69-.56 1.25-1.25 1.25h-9c-.69 0-1.25-.56-1.25-1.25zm6.25 5.25c-.69 0-1.25-.56-1.25-1.25V3.75h-3.5v12.5h8.5v-7.5zm.25-3.94 2.44 2.44h-2.44zM6.502 7.75H5.75v12.5h8.5v-.748a.75.75 0 0 1 1.5 0v.998c0 .69-.56 1.25-1.25 1.25h-9c-.69 0-1.25-.56-1.25-1.25v-13c0-.69.56-1.25 1.25-1.25h1.002a.75.75 0 1 1 0 1.5", clipRule: "evenodd" })
|
|
35
|
+
);
|
|
36
|
+
});
|
|
37
|
+
var C = function(t, r) {
|
|
38
|
+
var i = {};
|
|
39
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && r.indexOf(e) < 0 && (i[e] = t[e]);
|
|
40
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
41
|
+
for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
|
|
42
|
+
r.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (i[e[l]] = t[e[l]]);
|
|
43
|
+
return i;
|
|
44
|
+
};
|
|
45
|
+
const H = z((t, r) => {
|
|
46
|
+
var { title: i, titleId: e } = t, l = C(t, ["title", "titleId"]);
|
|
47
|
+
let o = S();
|
|
48
|
+
return o = i ? e || "title-" + o : void 0, c.createElement(
|
|
49
|
+
"svg",
|
|
50
|
+
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: r, "aria-labelledby": o }, l),
|
|
51
|
+
i ? c.createElement("title", { id: o }, i) : null,
|
|
52
|
+
c.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M15.912 4.382c-.546.032-1.086.292-1.503.71l-8.132 8.131c-1.2 1.201-1.754 3.549 0 5.304 1.755 1.754 4.103 1.2 5.304 0l7.424-7.425a.75.75 0 0 1 1.06 1.06l-7.424 7.425c-1.627 1.628-4.936 2.488-7.424 0s-1.628-5.797 0-7.424l8.131-8.132c.644-.643 1.518-1.09 2.475-1.146.976-.058 1.978.295 2.829 1.146.85.851 1.203 1.853 1.146 2.828-.056.957-.503 1.832-1.146 2.475l-7.425 7.425c-.316.316-.838.553-1.376.613-.568.063-1.255-.062-1.806-.613-.55-.55-.676-1.238-.613-1.806.06-.538.297-1.06.613-1.376l6.718-6.718a.75.75 0 0 1 1.06 1.061l-6.717 6.718a.95.95 0 0 0-.183.48c-.025.227.026.424.183.58.156.157.353.208.58.183a.95.95 0 0 0 .48-.183l7.425-7.424c.417-.418.678-.957.71-1.503.03-.527-.147-1.116-.71-1.68s-1.152-.74-1.68-.71", clipRule: "evenodd" })
|
|
53
|
+
);
|
|
54
|
+
}), L = ({
|
|
55
|
+
className: t,
|
|
56
|
+
loading: r,
|
|
57
|
+
status: i,
|
|
58
|
+
sender: e,
|
|
59
|
+
updatedAt: l,
|
|
60
|
+
updatedAtLabel: o,
|
|
61
|
+
dueAt: f,
|
|
62
|
+
dueAtLabel: s,
|
|
63
|
+
trashedAt: a,
|
|
64
|
+
trashedAtLabel: p,
|
|
65
|
+
archivedAt: d,
|
|
66
|
+
archivedAtLabel: v,
|
|
67
|
+
seenBy: u,
|
|
68
|
+
touchedBy: h,
|
|
69
|
+
attachmentsCount: x = 0,
|
|
70
|
+
attachmentsLabel: g,
|
|
71
|
+
transmissionsLabel: y,
|
|
72
|
+
activityLog: O
|
|
73
|
+
}) => /* @__PURE__ */ w(M, { className: t, size: "xs", children: [
|
|
74
|
+
i && /* @__PURE__ */ n(E, { loading: r, size: "xs", ...i }),
|
|
75
|
+
l && /* @__PURE__ */ w(m, { loading: r, datetime: l, size: "xs", children: [
|
|
76
|
+
/* @__PURE__ */ n("strong", { children: e && e.name + ", " }),
|
|
77
|
+
o
|
|
39
78
|
] }),
|
|
40
|
-
|
|
41
|
-
(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
79
|
+
f && s && /* @__PURE__ */ n(m, { loading: r, datetime: f, size: "xs", icon: P, children: s }),
|
|
80
|
+
(g || x > 0) && /* @__PURE__ */ n(b, { loading: r, size: "xs", icon: H, children: g || x }),
|
|
81
|
+
y && /* @__PURE__ */ n(b, { loading: r, size: "xs", icon: T, children: y }),
|
|
82
|
+
a && p && /* @__PURE__ */ n(m, { loading: r, datetime: a, size: "xs", icon: D, children: p }) || d && v && /* @__PURE__ */ n(m, { loading: r, datetime: d, size: "xs", icon: R, children: v }) || !r && u && /* @__PURE__ */ n(I, { size: "xs", ...u }),
|
|
83
|
+
O && /* @__PURE__ */ n(j, { ...O, loading: r, size: "xs" }),
|
|
84
|
+
h && /* @__PURE__ */ n(_, { ...h, loading: r, size: "xs" })
|
|
46
85
|
] });
|
|
47
86
|
export {
|
|
48
|
-
|
|
87
|
+
L as DialogMetadata
|
|
49
88
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsxs as m, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
|
-
import "../Icon/SvgIcon.js";
|
|
4
3
|
import "react";
|
|
5
4
|
import "../RootProvider/RootProvider.js";
|
|
6
5
|
import { Typography as t } from "../Typography/Typography.js";
|
|
@@ -8,10 +7,10 @@ import { Heading as p } from "../Typography/Heading.js";
|
|
|
8
7
|
import "../Search/AutocompleteBase.js";
|
|
9
8
|
import "../Snackbar/useSnackbar.js";
|
|
10
9
|
import { Section as n } from "../Page/Section.js";
|
|
11
|
-
const
|
|
10
|
+
const d = ({ title: r, children: o }) => o ? /* @__PURE__ */ m(n, { spacing: 3, margin: "section", children: [
|
|
12
11
|
r && /* @__PURE__ */ i(p, { size: "lg", children: r }),
|
|
13
12
|
/* @__PURE__ */ i(t, { children: o })
|
|
14
13
|
] }) : null;
|
|
15
14
|
export {
|
|
16
|
-
|
|
15
|
+
d as DialogSection
|
|
17
16
|
};
|