@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,40 +1,39 @@
|
|
|
1
1
|
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment as M } from "react";
|
|
3
3
|
import "../../index-L8X2o7IH.js";
|
|
4
|
-
import "../Icon/SvgIcon.js";
|
|
5
4
|
import "../RootProvider/RootProvider.js";
|
|
6
5
|
import "../Search/AutocompleteBase.js";
|
|
7
6
|
import "../Snackbar/useSnackbar.js";
|
|
8
7
|
import { MenuOption as v } from "../Menu/MenuOption.js";
|
|
9
8
|
import { MenuSearch as j } from "../Menu/MenuSearch.js";
|
|
10
9
|
import { MenuHeader as x } from "../Menu/MenuHeader.js";
|
|
11
|
-
import { MenuBase as O, MenuList as I, MenuListItem as
|
|
12
|
-
const
|
|
13
|
-
var
|
|
10
|
+
import { MenuBase as O, MenuList as I, MenuListItem as m } from "../Menu/MenuBase.js";
|
|
11
|
+
const w = ({ search: d, optionGroups: o = {}, options: h, onChange: f, optionType: b }) => {
|
|
12
|
+
var u;
|
|
14
13
|
const p = h.reduce(
|
|
15
|
-
(e,
|
|
16
|
-
const
|
|
17
|
-
return e[
|
|
14
|
+
(e, l) => {
|
|
15
|
+
const n = l.groupId || "";
|
|
16
|
+
return e[n] = e[n] || [], e[n].push(l), e;
|
|
18
17
|
},
|
|
19
18
|
{}
|
|
20
19
|
);
|
|
21
20
|
return /* @__PURE__ */ c(O, { theme: "default", children: [
|
|
22
21
|
d && /* @__PURE__ */ r(j, { ...d }),
|
|
23
|
-
/* @__PURE__ */ r(I, { children: (
|
|
24
|
-
var
|
|
25
|
-
const
|
|
22
|
+
/* @__PURE__ */ r(I, { children: (u = Object.keys(p)) == null ? void 0 : u.map((e, l) => {
|
|
23
|
+
var i;
|
|
24
|
+
const n = o[e] || {}, { title: a, divider: g = !0 } = n;
|
|
26
25
|
return /* @__PURE__ */ c(M, { children: [
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
(
|
|
26
|
+
l && g ? /* @__PURE__ */ r(m, { role: "separator" }) : "",
|
|
27
|
+
a && /* @__PURE__ */ r(m, { children: /* @__PURE__ */ r(x, { title: a }) }),
|
|
28
|
+
(i = p[e]) == null ? void 0 : i.map((t) => {
|
|
30
29
|
var s;
|
|
31
|
-
return /* @__PURE__ */ r(
|
|
30
|
+
return /* @__PURE__ */ r(m, { children: /* @__PURE__ */ r(
|
|
32
31
|
v,
|
|
33
32
|
{
|
|
34
33
|
onChange: f,
|
|
35
34
|
label: t.label,
|
|
36
35
|
badge: t.badge,
|
|
37
|
-
type: t.type || ((s =
|
|
36
|
+
type: t.type || ((s = o == null ? void 0 : o[e]) == null ? void 0 : s.optionType) || b,
|
|
38
37
|
value: t.value,
|
|
39
38
|
checked: t.checked
|
|
40
39
|
}
|
|
@@ -45,5 +44,5 @@ const z = ({ search: d, optionGroups: n = {}, options: h, onChange: f, optionTyp
|
|
|
45
44
|
] });
|
|
46
45
|
};
|
|
47
46
|
export {
|
|
48
|
-
|
|
47
|
+
w as ToolbarOptions
|
|
49
48
|
};
|
|
@@ -1,32 +1,50 @@
|
|
|
1
|
-
import { jsxs as a, jsx as
|
|
2
|
-
import { Icon as
|
|
3
|
-
import "../Icon/SvgIcon.js";
|
|
1
|
+
import { jsxs as a, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as m } from "../Icon/Icon.js";
|
|
4
3
|
import "../../index-L8X2o7IH.js";
|
|
5
4
|
import "react";
|
|
6
|
-
import { IconButton as
|
|
5
|
+
import { IconButton as l } from "../Button/IconButton.js";
|
|
7
6
|
import "../RootProvider/RootProvider.js";
|
|
8
7
|
import "../Search/AutocompleteBase.js";
|
|
9
8
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
import { S as p } from "../../MagnifyingGlass-DWIcpwS4.js";
|
|
10
|
+
import { S as u } from "../../XMark-Bv1I87Ev.js";
|
|
11
|
+
import '../../assets/ToolbarSearch.css';const _ = "_field_14byu_1", f = "_icon_14byu_5", d = "_input_14byu_14", y = "_clear_14byu_30", o = {
|
|
12
|
+
field: _,
|
|
13
|
+
icon: f,
|
|
14
|
+
input: d,
|
|
15
|
+
clear: y
|
|
16
|
+
}, M = ({
|
|
17
|
+
value: r,
|
|
18
|
+
name: c,
|
|
19
|
+
placeholder: s = "Search",
|
|
20
|
+
clearButtonAltText: n = "Clear search",
|
|
21
|
+
onChange: e,
|
|
22
|
+
onClear: t
|
|
23
|
+
}) => /* @__PURE__ */ a("div", { className: o.field, children: [
|
|
24
|
+
/* @__PURE__ */ i(
|
|
17
25
|
"input",
|
|
18
26
|
{
|
|
19
27
|
type: "search",
|
|
20
|
-
value:
|
|
21
|
-
name:
|
|
22
|
-
placeholder:
|
|
23
|
-
className:
|
|
24
|
-
onChange:
|
|
28
|
+
value: r,
|
|
29
|
+
name: c,
|
|
30
|
+
placeholder: s,
|
|
31
|
+
className: o.input,
|
|
32
|
+
onChange: e
|
|
25
33
|
}
|
|
26
34
|
),
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
t && /* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ i(m, { svgElement: p, className: o.icon }),
|
|
36
|
+
t && /* @__PURE__ */ i(
|
|
37
|
+
l,
|
|
38
|
+
{
|
|
39
|
+
icon: u,
|
|
40
|
+
variant: "solid",
|
|
41
|
+
size: "custom",
|
|
42
|
+
className: o.clear,
|
|
43
|
+
onClick: t,
|
|
44
|
+
iconAltText: n
|
|
45
|
+
}
|
|
46
|
+
)
|
|
29
47
|
] });
|
|
30
48
|
export {
|
|
31
|
-
|
|
49
|
+
M as ToolbarSearch
|
|
32
50
|
};
|
|
@@ -1,74 +1,93 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import * as c from "react";
|
|
4
|
+
import { forwardRef as h, useState as w } from "react";
|
|
3
5
|
import "../../index-L8X2o7IH.js";
|
|
4
|
-
import "../Icon/SvgIcon.js";
|
|
5
6
|
import "../RootProvider/RootProvider.js";
|
|
6
7
|
import "../Search/AutocompleteBase.js";
|
|
7
|
-
import { ListItem as
|
|
8
|
-
import { MetaTimestamp as
|
|
8
|
+
import { ListItem as s } from "../List/ListItem.js";
|
|
9
|
+
import { MetaTimestamp as x } from "../Meta/MetaTimestamp.js";
|
|
9
10
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import { Typography as
|
|
11
|
-
import { DialogAttachments as
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
11
|
+
import { Typography as O } from "../Typography/Typography.js";
|
|
12
|
+
import { DialogAttachments as I } from "../Dialog/DialogAttachments.js";
|
|
13
|
+
import { u as j } from "../../useId-CsCRkvK3.js";
|
|
14
|
+
import '../../assets/TransmissionItem.css';var _ = function(o, l) {
|
|
15
|
+
var e = {};
|
|
16
|
+
for (var t in o) Object.prototype.hasOwnProperty.call(o, t) && l.indexOf(t) < 0 && (e[t] = o[t]);
|
|
17
|
+
if (o != null && typeof Object.getOwnPropertySymbols == "function")
|
|
18
|
+
for (var i = 0, t = Object.getOwnPropertySymbols(o); i < t.length; i++)
|
|
19
|
+
l.indexOf(t[i]) < 0 && Object.prototype.propertyIsEnumerable.call(o, t[i]) && (e[t[i]] = o[t[i]]);
|
|
20
|
+
return e;
|
|
21
|
+
};
|
|
22
|
+
const z = h((o, l) => {
|
|
23
|
+
var { title: e, titleId: t } = o, i = _(o, ["title", "titleId"]);
|
|
24
|
+
let a = j();
|
|
25
|
+
return a = e ? t || "title-" + a : void 0, c.createElement(
|
|
26
|
+
"svg",
|
|
27
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: l, "aria-labelledby": a }, i),
|
|
28
|
+
e ? c.createElement("title", { id: a }, e) : null,
|
|
29
|
+
c.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M19.638 4.417a3.25 3.25 0 0 0-4.608-.008l-9.378 9.379a.75.75 0 0 0-.191.324l-1.414 4.95a.75.75 0 0 0 .925.927l4.94-1.398a.75.75 0 0 0 .327-.191l9.39-9.391a3.25 3.25 0 0 0 .01-4.592M16.091 5.47a1.752 1.752 0 1 1 2.478 2.478l-.23.23-2.477-2.479zM14.8 6.76 6.85 14.71l-.991 3.47 3.457-.979 7.963-7.963z", clipRule: "evenodd" })
|
|
30
|
+
);
|
|
31
|
+
}), y = "_body_1m345_1", E = {
|
|
32
|
+
body: y
|
|
33
|
+
}, N = ({
|
|
34
|
+
theme: o,
|
|
35
|
+
type: l,
|
|
36
|
+
loading: e,
|
|
37
|
+
sender: t,
|
|
38
|
+
createdAt: i,
|
|
39
|
+
createdAtLabel: a,
|
|
40
|
+
title: f,
|
|
41
|
+
description: u,
|
|
42
|
+
summary: d,
|
|
24
43
|
attachments: b
|
|
25
44
|
}) => {
|
|
26
|
-
const [
|
|
45
|
+
const [m, p] = w(!1), g = () => {
|
|
27
46
|
p((v) => !v);
|
|
28
47
|
};
|
|
29
|
-
return (
|
|
30
|
-
|
|
48
|
+
return (l == null ? void 0 : l.value) === "draft" ? /* @__PURE__ */ r(
|
|
49
|
+
s,
|
|
31
50
|
{
|
|
32
51
|
as: "button",
|
|
33
|
-
theme:
|
|
52
|
+
theme: o,
|
|
34
53
|
variant: "dotted",
|
|
35
54
|
size: "sm",
|
|
36
|
-
icon:
|
|
37
|
-
title:
|
|
38
|
-
description:
|
|
39
|
-
badge: { label:
|
|
40
|
-
linkIcon:
|
|
55
|
+
icon: z,
|
|
56
|
+
title: f,
|
|
57
|
+
description: u,
|
|
58
|
+
badge: { label: l == null ? void 0 : l.label },
|
|
59
|
+
linkIcon: !0
|
|
41
60
|
}
|
|
42
|
-
) : /* @__PURE__ */
|
|
43
|
-
|
|
61
|
+
) : /* @__PURE__ */ r(
|
|
62
|
+
s,
|
|
44
63
|
{
|
|
45
64
|
as: "button",
|
|
46
|
-
theme:
|
|
47
|
-
expanded:
|
|
48
|
-
|
|
65
|
+
theme: o,
|
|
66
|
+
expanded: m,
|
|
67
|
+
collapsible: !0,
|
|
68
|
+
onClick: g,
|
|
49
69
|
size: "sm",
|
|
50
70
|
avatar: {
|
|
51
|
-
type:
|
|
52
|
-
imageUrl:
|
|
53
|
-
name:
|
|
71
|
+
type: t == null ? void 0 : t.type,
|
|
72
|
+
imageUrl: t == null ? void 0 : t.imageUrl,
|
|
73
|
+
name: t == null ? void 0 : t.name
|
|
54
74
|
},
|
|
55
|
-
title:
|
|
56
|
-
description:
|
|
57
|
-
badge: { label:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
s
|
|
75
|
+
title: f,
|
|
76
|
+
description: m ? "" : u,
|
|
77
|
+
badge: { label: l == null ? void 0 : l.label },
|
|
78
|
+
children: m && /* @__PURE__ */ n("div", { className: E.body, children: [
|
|
79
|
+
i && /* @__PURE__ */ n(x, { loading: e, datetime: i, size: "xs", children: [
|
|
80
|
+
t && /* @__PURE__ */ r("strong", { children: (t == null ? void 0 : t.name) + ", " }),
|
|
81
|
+
a
|
|
63
82
|
] }),
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
b && /* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ n(O, { size: "lg", children: [
|
|
84
|
+
/* @__PURE__ */ r("p", { children: d }),
|
|
85
|
+
b && /* @__PURE__ */ r(I, { ...b })
|
|
67
86
|
] })
|
|
68
87
|
] })
|
|
69
88
|
}
|
|
70
89
|
);
|
|
71
90
|
};
|
|
72
91
|
export {
|
|
73
|
-
|
|
92
|
+
N as TransmissionItem
|
|
74
93
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { createElement as i } from "react";
|
|
3
3
|
import "../../index-L8X2o7IH.js";
|
|
4
|
-
import "../Icon/SvgIcon.js";
|
|
5
4
|
import "../RootProvider/RootProvider.js";
|
|
6
5
|
import { TransmissionItem as e } from "./TransmissionItem.js";
|
|
7
6
|
import "../Search/AutocompleteBase.js";
|
|
8
7
|
import "../Snackbar/useSnackbar.js";
|
|
9
8
|
import { ListBase as n } from "../List/ListBase.js";
|
|
10
|
-
const
|
|
9
|
+
const x = ({ items: r }) => r.length ? /* @__PURE__ */ o(n, { children: r.map((t, m) => /* @__PURE__ */ i(e, { ...t, key: m })) }) : null;
|
|
11
10
|
export {
|
|
12
|
-
|
|
11
|
+
x as TransmissionList
|
|
13
12
|
};
|