@altinn/altinn-components 0.15.4 → 0.16.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/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/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/DrawerBase.css +1 -1
- package/dist/assets/DrawerOrDropdown.css +1 -1
- package/dist/assets/DropdownBase.css +1 -1
- package/dist/assets/GlobalMenuBase.css +1 -1
- package/dist/assets/Header.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 +2 -3
- 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 +17 -18
- 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 -6
- package/dist/components/Dropdown/DrawerBase.js +16 -20
- package/dist/components/Dropdown/DrawerButton.js +2 -3
- package/dist/components/Dropdown/DrawerHeader.js +19 -9
- package/dist/components/Dropdown/DrawerOrDropdown.js +3 -4
- package/dist/components/Dropdown/DropdownBase.js +18 -20
- 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/GlobalMenuBase.js +6 -6
- package/dist/components/GlobalMenu/LogoutButton.js +2 -3
- package/dist/components/Header/Header.js +19 -20
- 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 +4 -5
- package/dist/components/List/ListBase.js +2 -3
- package/dist/components/List/ListItem.js +91 -88
- package/dist/components/List/ListItemHeader.js +31 -32
- package/dist/components/List/ListItemIcon.js +7 -7
- package/dist/components/List/ListItemSelect.js +4 -5
- 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/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 +6 -7
- 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 +71 -49
- 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/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/ListItem.d.ts +2 -2
- package/dist/types/lib/components/List/ListItemHeader.d.ts +3 -3
- 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/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/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,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,
|
|
@@ -53,31 +52,31 @@ import '../../assets/DialogListItem.css';const K = "_link_1yhch_1", O = "_border
|
|
|
53
52
|
...p
|
|
54
53
|
}) => {
|
|
55
54
|
const w = d ? "trashed" : n ? "archived" : x, f = c ? "subtle" : q;
|
|
56
|
-
return
|
|
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 || _ }) }),
|
|
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
73
|
linkIcon: null,
|
|
75
|
-
controls: s && /* @__PURE__ */
|
|
74
|
+
controls: s && /* @__PURE__ */ t(J, { className: a.select, ...s, size: "xl" }),
|
|
76
75
|
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__ */
|
|
76
|
+
label: /* @__PURE__ */ b("div", { className: a.border, "data-size": e, "data-seen": m, "data-loading": o, children: [
|
|
77
|
+
/* @__PURE__ */ b("header", { className: a.header, "data-size": e, children: [
|
|
78
|
+
/* @__PURE__ */ t(F, { loading: o, size: e, state: w, label: S, seen: m, children: r }),
|
|
79
|
+
/* @__PURE__ */ t(
|
|
81
80
|
C,
|
|
82
81
|
{
|
|
83
82
|
size: "xs",
|
|
@@ -88,9 +87,9 @@ import '../../assets/DialogListItem.css';const K = "_link_1yhch_1", O = "_border
|
|
|
88
87
|
grouped: I
|
|
89
88
|
}
|
|
90
89
|
),
|
|
91
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ t(E, { loading: o, children: /* @__PURE__ */ t("p", { "data-size": e, className: a.summary, children: y || _ }) })
|
|
92
91
|
] }),
|
|
93
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ t(
|
|
94
93
|
u,
|
|
95
94
|
{
|
|
96
95
|
className: a.footer,
|
|
@@ -117,5 +116,5 @@ import '../../assets/DialogListItem.css';const K = "_link_1yhch_1", O = "_border
|
|
|
117
116
|
);
|
|
118
117
|
};
|
|
119
118
|
export {
|
|
120
|
-
|
|
119
|
+
he as DialogListItem
|
|
121
120
|
};
|
|
@@ -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
|
};
|
|
@@ -1,22 +1,42 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
3
|
import "../../index-L8X2o7IH.js";
|
|
3
|
-
import { MetaItem as
|
|
4
|
-
import "react";
|
|
4
|
+
import { MetaItem as f } from "../Meta/MetaItem.js";
|
|
5
|
+
import * as a from "react";
|
|
6
|
+
import { forwardRef as m } from "react";
|
|
5
7
|
import "../RootProvider/RootProvider.js";
|
|
6
8
|
import "../Search/AutocompleteBase.js";
|
|
7
9
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import "
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
import { S as s } from "../../Eye-CMPIjkcy.js";
|
|
11
|
+
import { u as p } from "../../useId-CsCRkvK3.js";
|
|
12
|
+
var d = function(t, o) {
|
|
13
|
+
var r = {};
|
|
14
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && o.indexOf(e) < 0 && (r[e] = t[e]);
|
|
15
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
16
|
+
for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
|
|
17
|
+
o.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
18
|
+
return r;
|
|
19
|
+
};
|
|
20
|
+
const u = m((t, o) => {
|
|
21
|
+
var { title: r, titleId: e } = t, l = d(t, ["title", "titleId"]);
|
|
22
|
+
let n = p();
|
|
23
|
+
return n = r ? e || "title-" + n : void 0, a.createElement(
|
|
24
|
+
"svg",
|
|
25
|
+
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: o, "aria-labelledby": n }, l),
|
|
26
|
+
r ? a.createElement("title", { id: n }, r) : null,
|
|
27
|
+
a.createElement("path", { fill: "currentColor", d: "M2.614 9.357a.75.75 0 0 1 1.029.257l.003.005.02.033.093.139c.085.123.214.303.39.522.35.438.877 1.024 1.581 1.61C7.137 13.097 9.223 14.25 12 14.25s4.863-1.154 6.27-2.326a11.4 11.4 0 0 0 1.582-1.611 9 9 0 0 0 .481-.661q.015-.023.02-.033l.004-.005a.75.75 0 0 1 1.286.772L21 10c.643.386.642.387.642.387v.002l-.004.005-.01.015-.032.051-.118.179c-.103.15-.255.36-.455.61-.304.38-.722.856-1.256 1.353l.841 1.002a.75.75 0 1 1-1.149.965l-.847-1.01c-.577.423-1.24.83-1.987 1.176l.497 1.17a.75.75 0 1 1-1.38.587l-.518-1.22c-.758.233-1.582.394-2.474.453V17a.75.75 0 0 1-1.5 0v-1.275a11 11 0 0 1-2.475-.453l-.516 1.215a.75.75 0 1 1-1.38-.586l.494-1.166a11.7 11.7 0 0 1-1.987-1.178l-.845 1.007a.75.75 0 1 1-1.15-.964l.84-1c-.533-.496-.95-.97-1.254-1.35a11 11 0 0 1-.574-.79l-.032-.05-.01-.016-.002-.005-.001-.002-.001-.001a.75.75 0 0 1 .257-1.03" })
|
|
28
|
+
);
|
|
29
|
+
}), j = ({
|
|
30
|
+
size: t = "xs",
|
|
11
31
|
label: o = "Seen by label",
|
|
12
|
-
seenByEndUser:
|
|
13
|
-
seenByOthersCount:
|
|
14
|
-
onClick:
|
|
15
|
-
...
|
|
32
|
+
seenByEndUser: r = !1,
|
|
33
|
+
seenByOthersCount: e = 0,
|
|
34
|
+
onClick: l,
|
|
35
|
+
...n
|
|
16
36
|
}) => {
|
|
17
|
-
const
|
|
18
|
-
return /* @__PURE__ */
|
|
37
|
+
const i = r || e > 0 ? s : u;
|
|
38
|
+
return /* @__PURE__ */ c(f, { size: t, icon: i, ...n, children: o });
|
|
19
39
|
};
|
|
20
40
|
export {
|
|
21
|
-
|
|
41
|
+
j as DialogSeenBy
|
|
22
42
|
};
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { c as l } from "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
5
|
import "../Search/AutocompleteBase.js";
|
|
6
6
|
import "../Snackbar/useSnackbar.js";
|
|
7
|
-
import "../Icon/SvgIcon.js";
|
|
8
7
|
import { CheckboxIcon as s } from "../Icon/CheckboxIcon.js";
|
|
9
8
|
import '../../assets/DialogSelect.css';const a = "_label_19rag_1", n = "_input_19rag_15", p = "_icon_19rag_19", o = {
|
|
10
9
|
label: a,
|
|
11
10
|
input: n,
|
|
12
11
|
icon: p
|
|
13
|
-
},
|
|
14
|
-
/* @__PURE__ */ r("input", { type: "checkbox", checked: t, onChange:
|
|
12
|
+
}, h = ({ checked: t = !1, onChange: c, className: e }) => /* @__PURE__ */ i("label", { className: l(o.label, e), children: [
|
|
13
|
+
/* @__PURE__ */ r("input", { type: "checkbox", checked: t, onChange: c, className: o.input }),
|
|
15
14
|
/* @__PURE__ */ r(s, { hover: !0, checked: t, className: o.icon })
|
|
16
15
|
] });
|
|
17
16
|
export {
|
|
18
|
-
|
|
17
|
+
h as DialogSelect
|
|
19
18
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import { MetaItem as o } from "../Meta/MetaItem.js";
|
|
4
|
-
import { MetaProgress as
|
|
4
|
+
import { MetaProgress as s } from "../Meta/MetaProgress.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
7
|
import "../Search/AutocompleteBase.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const w = ({ loading: r, size: i = "xs", value: t = "new", label: e }) => {
|
|
9
|
+
var p = /* @__PURE__ */ ((r) => (r.draft = "DRAFT", r.sent = "SENT", r.new = "NEW", r.completed = "COMPLETED", r["in-progress"] = "IN_PROGRESS", r["requires-attention"] = "REQUIRES_ATTENTION", r))(p || {});
|
|
10
|
+
const R = ({ loading: r, size: i = "xs", value: t = "new", label: e }) => {
|
|
12
11
|
if (r)
|
|
13
12
|
return null;
|
|
14
13
|
switch (t) {
|
|
@@ -19,14 +18,14 @@ const w = ({ loading: r, size: i = "xs", value: t = "new", label: e }) => {
|
|
|
19
18
|
case "requires-attention":
|
|
20
19
|
return /* @__PURE__ */ n(o, { variant: "solid", children: e || t });
|
|
21
20
|
case "in-progress":
|
|
22
|
-
return /* @__PURE__ */ n(
|
|
21
|
+
return /* @__PURE__ */ n(s, { size: i, variant: "outline", progress: 75, children: e || t });
|
|
23
22
|
case "completed":
|
|
24
|
-
return /* @__PURE__ */ n(
|
|
23
|
+
return /* @__PURE__ */ n(s, { size: i, variant: "outline", progress: 100, children: e || t });
|
|
25
24
|
default:
|
|
26
25
|
return /* @__PURE__ */ n(o, { size: i, variant: "outline", children: e || t });
|
|
27
26
|
}
|
|
28
27
|
};
|
|
29
28
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
R as DialogStatus,
|
|
30
|
+
p as DialogStatusEnum
|
|
32
31
|
};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { createElement as
|
|
3
|
+
import { createElement as n } from "react";
|
|
4
4
|
import "../../index-L8X2o7IH.js";
|
|
5
|
-
import "../Icon/SvgIcon.js";
|
|
6
5
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { Heading as
|
|
6
|
+
import { Heading as p } from "../Typography/Heading.js";
|
|
8
7
|
import { DialogTimelineItem as l } from "./DialogTimelineItem.js";
|
|
9
8
|
import "../Search/AutocompleteBase.js";
|
|
10
9
|
import "../Snackbar/useSnackbar.js";
|
|
11
10
|
import { TimelineBase as s } from "../Timeline/TimelineBase.js";
|
|
12
|
-
const
|
|
13
|
-
/* @__PURE__ */ t(
|
|
14
|
-
|
|
11
|
+
const j = ({ title: e, items: i = [] }) => /* @__PURE__ */ o(s, { children: [
|
|
12
|
+
/* @__PURE__ */ t(p, { size: "xs", children: e }),
|
|
13
|
+
i.map((r, m) => /* @__PURE__ */ n(l, { ...r, key: m }))
|
|
15
14
|
] });
|
|
16
15
|
export {
|
|
17
|
-
|
|
16
|
+
j as DialogTimeline
|
|
18
17
|
};
|