@altinn/altinn-components 0.7.5 → 0.8.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/Autocomplete-DQCs4_zv.js +368 -0
- package/dist/assets/Autocomplete.css +1 -1
- package/dist/assets/Heading.css +1 -1
- package/dist/assets/HistoryItemBase.css +1 -0
- package/dist/assets/HistoryItemMedia.css +1 -0
- package/dist/assets/ListBase.css +1 -1
- package/dist/assets/ListItemBase.css +1 -1
- package/dist/assets/ListItemLabel.css +1 -1
- package/dist/assets/MetaBase.css +1 -1
- package/dist/assets/MetaItemBase.css +1 -1
- package/dist/assets/MetaItemLabel.css +1 -1
- package/dist/assets/QueryLabel.css +1 -1
- package/dist/assets/TransmissionItem.css +1 -0
- package/dist/components/Attachment/AttachmentLink.d.ts +3 -1
- package/dist/components/Attachment/AttachmentLink.js +11 -10
- package/dist/components/Attachment/AttachmentLink.stories.js +3 -3
- package/dist/components/Attachment/AttachmentList.js +6 -7
- package/dist/components/Attachment/AttachmentList.stories.js +1 -1
- package/dist/components/Attachment/AttachmentSection.d.ts +6 -0
- package/dist/components/Attachment/AttachmentSection.js +12 -0
- package/dist/components/{Dialog/DialogAttachments.stories.js → Attachment/AttachmentSection.stories.js} +3 -3
- package/dist/components/Attachment/index.d.ts +1 -0
- package/dist/components/Attachment/index.js +5 -3
- package/dist/components/Bookmarks/BookmarksList.d.ts +1 -3
- package/dist/components/Bookmarks/BookmarksList.js +6 -6
- package/dist/components/Bookmarks/BookmarksList.stories.js +59 -0
- package/dist/components/Bookmarks/BookmarksListItem.d.ts +2 -2
- package/dist/components/Bookmarks/BookmarksListItem.js +1 -1
- package/dist/components/Bookmarks/BookmarksListItem.stories.js +1 -2
- package/dist/components/Bookmarks/BookmarksSection.js +20 -0
- package/dist/components/Bookmarks/BookmarksSection.stories.js +61 -0
- package/dist/components/Bookmarks/QueryLabel.js +10 -10
- package/dist/components/Bookmarks/index.js +1 -1
- package/dist/components/Button/Buttons.stories.js +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +1 -1
- package/dist/components/ContextMenu/ContextMenu.stories.js +1 -1
- package/dist/components/ContextMenu/ContextMenuBase.js +1 -1
- package/dist/components/ContextMenu/index.js +1 -1
- package/dist/components/Dialog/Dialog.d.ts +7 -4
- package/dist/components/Dialog/Dialog.js +34 -28
- package/dist/components/Dialog/Dialog.stories.js +183 -16
- package/dist/components/Dialog/DialogActions.js +1 -1
- package/dist/components/Dialog/DialogActivityLog.d.ts +1 -1
- package/dist/components/Dialog/DialogActivityLog.js +7 -2
- package/dist/components/Dialog/DialogGroup.js +5 -5
- package/dist/components/Dialog/DialogHeadings.stories.js +8 -8
- package/dist/components/Dialog/DialogHistory.js +5 -3
- package/dist/components/Dialog/DialogList.js +1 -1
- package/dist/components/Dialog/DialogListItem.d.ts +11 -5
- package/dist/components/Dialog/DialogListItem.js +5 -6
- package/dist/components/Dialog/DialogListItem.stories.js +1 -1
- package/dist/components/Dialog/DialogMetadata.stories.js +3 -3
- package/dist/components/Dialog/DialogNav.js +1 -1
- package/dist/components/Dialog/DialogNav.stories.js +1 -1
- package/dist/components/Dialog/DialogSeenBy.d.ts +1 -1
- package/dist/components/Dialog/DialogSeenBy.js +7 -6
- package/dist/components/Dialog/DialogSeenBy.stories.js +5 -5
- package/dist/components/Dialog/DialogStatus.stories.js +1 -1
- package/dist/components/Dialog/DialogTouchedBy.stories.js +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/Dropdown/DrawerButton.js +1 -1
- package/dist/components/Dropdown/DrawerOrDropdown.js +1 -1
- package/dist/components/GlobalMenu/AccountButton.js +1 -1
- package/dist/components/GlobalMenu/AccountMenu.js +1 -1
- package/dist/components/GlobalMenu/BackButton.js +1 -1
- package/dist/components/GlobalMenu/GlobalMenu.js +1 -1
- package/dist/components/Header/HeaderBase.js +1 -1
- package/dist/components/History/HistoryItem.d.ts +10 -10
- package/dist/components/History/HistoryItem.js +35 -39
- package/dist/components/History/HistoryItem.stories.js +53 -2
- package/dist/components/History/HistoryItemBase.d.ts +13 -0
- package/dist/components/History/HistoryItemBase.js +36 -0
- package/dist/components/History/HistoryItemBase.stories.js +48 -0
- package/dist/components/History/HistoryItemMedia.d.ts +9 -0
- package/dist/components/History/HistoryItemMedia.js +15 -0
- package/dist/components/History/HistoryList.stories.js +123 -26
- package/dist/components/History/HistoryMetadata.d.ts +11 -0
- package/dist/components/History/HistoryMetadata.js +32 -0
- package/dist/components/History/index.d.ts +1 -0
- package/dist/components/History/index.js +4 -2
- package/dist/components/Layout/Layout.js +1 -1
- package/dist/components/Layout/Layout.stories.js +10 -10
- package/dist/components/LayoutAction/ActionMenu.js +1 -1
- package/dist/components/List/List.js +4 -4
- package/dist/components/List/List.stories.js +1 -1
- package/dist/components/List/ListBase.d.ts +6 -2
- package/dist/components/List/ListBase.js +5 -5
- package/dist/components/List/ListItem.d.ts +8 -8
- package/dist/components/List/ListItem.js +2 -4
- package/dist/components/List/ListItem.stories.js +26 -25
- package/dist/components/List/ListItemBase.d.ts +4 -12
- package/dist/components/List/ListItemBase.js +30 -64
- package/dist/components/List/ListItemControls.js +2 -2
- package/dist/components/List/ListItemHeader.d.ts +35 -2
- package/dist/components/List/ListItemHeader.js +7 -29
- package/dist/components/List/ListItemHeader.stories.js +248 -0
- package/dist/components/List/ListItemLabel.js +7 -6
- package/dist/components/List/ListItemMenu.d.ts +8 -0
- package/dist/components/List/ListItemMenu.js +5 -0
- package/dist/components/List/index.js +14 -15
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuItem.stories.js +1 -1
- package/dist/components/Menu/MenuItems.js +1 -1
- package/dist/components/Menu/MenuItems.stories.js +1 -1
- package/dist/components/Menu/MenuSearch.js +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Meta/MetaBase.js +3 -3
- package/dist/components/Meta/MetaItem.d.ts +2 -0
- package/dist/components/Meta/MetaItemBase.js +11 -11
- package/dist/components/Meta/MetaItemLabel.js +3 -3
- package/dist/components/Page/PageHeader.js +2 -2
- package/dist/components/Searchbar/Autocomplete.js +1 -1
- package/dist/components/Searchbar/Autocomplete.stories.js +1 -1
- package/dist/components/Searchbar/AutocompleteItem.js +2 -2
- package/dist/components/Searchbar/ScopeListItem.d.ts +2 -2
- package/dist/components/Searchbar/ScopeListItem.js +1 -1
- package/dist/components/Searchbar/Searchbar.js +1 -1
- package/dist/components/Toolbar/ToolbarAdd.js +8 -8
- package/dist/components/Toolbar/ToolbarDaterange.d.ts +13 -0
- package/dist/components/Toolbar/ToolbarDaterange.js +24 -15
- package/dist/components/Toolbar/ToolbarFilter.js +7 -7
- package/dist/components/Toolbar/ToolbarMenu.js +8 -8
- package/dist/components/Toolbar/ToolbarOptions.js +1 -1
- package/dist/components/Toolbar/ToolbarSearch.js +1 -1
- package/dist/components/Toolbar/index.d.ts +3 -0
- package/dist/components/Toolbar/index.js +12 -6
- package/dist/components/Transmission/TransmissionItem.d.ts +16 -0
- package/dist/components/Transmission/TransmissionItem.js +59 -0
- package/dist/components/Transmission/TransmissionItem.stories.js +56 -0
- package/dist/components/Transmission/TransmissionList.d.ts +6 -0
- package/dist/components/Transmission/TransmissionList.js +12 -0
- package/dist/components/Transmission/TransmissionList.stories.js +63 -0
- package/dist/components/Transmission/TransmissionSection.d.ts +8 -0
- package/dist/components/Transmission/TransmissionSection.js +17 -0
- package/dist/components/Transmission/TransmissionSection.stories.js +184 -0
- package/dist/components/Transmission/index.d.ts +3 -0
- package/dist/components/Transmission/index.js +8 -0
- package/dist/components/Typography/Heading.d.ts +1 -1
- package/dist/components/Typography/Heading.js +3 -3
- package/dist/components/Typography/Typography.d.ts +2 -1
- package/dist/components/Typography/Typography.js +7 -7
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +246 -231
- package/dist/index.js +252 -237
- package/package.json +1 -1
- package/dist/Autocomplete-hEFuiN2u.js +0 -287
- package/dist/assets/HistoryItem.css +0 -1
- package/dist/assets/ListItemHeader.css +0 -1
- package/dist/components/Dialog/DialogAttachments.d.ts +0 -6
- package/dist/components/Dialog/DialogAttachments.js +0 -13
- package/dist/components/Dialog/Examples.stories.js +0 -31
- package/dist/components/History/HistoryAttachments.d.ts +0 -6
- package/dist/components/History/HistoryAttachments.js +0 -12
|
@@ -1,287 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as e, jsxs as _, Fragment as $ } from "react/jsx-runtime";
|
|
3
|
-
import { Fragment as G, forwardRef as K, createElement as R } from "react";
|
|
4
|
-
import { useMenu as E } from "./hooks/useMenu.js";
|
|
5
|
-
import { AutocompleteBase as Q } from "./components/Searchbar/AutocompleteBase.js";
|
|
6
|
-
import { AutocompleteGroup as V } from "./components/Searchbar/AutocompleteGroup.js";
|
|
7
|
-
import { c as q } from "./index-L8X2o7IH.js";
|
|
8
|
-
import "./components/Icon/SvgIcon.js";
|
|
9
|
-
import { useRootContext as J } from "./components/RootProvider/RootProvider.js";
|
|
10
|
-
import { ListItemBase as D } from "./components/List/ListItemBase.js";
|
|
11
|
-
import { ListItemLabel as H } from "./components/List/ListItemLabel.js";
|
|
12
|
-
import { DialogBorder as C } from "./components/Dialog/DialogBorder.js";
|
|
13
|
-
import { DialogMetadata as T } from "./components/Dialog/DialogMetadata.js";
|
|
14
|
-
import { DialogHeaderBase as O } from "./components/Dialog/DialogHeaderBase.js";
|
|
15
|
-
import { DialogHeadings as U } from "./components/Dialog/DialogHeadings.js";
|
|
16
|
-
import { DialogTitle as W } from "./components/Dialog/DialogTitle.js";
|
|
17
|
-
import { DialogTouchedBy as X } from "./components/Dialog/DialogTouchedBy.js";
|
|
18
|
-
import { DialogSelect as Y } from "./components/Dialog/DialogSelect.js";
|
|
19
|
-
import { DialogDescription as Z } from "./components/Dialog/DialogDescription.js";
|
|
20
|
-
import { Badge as z } from "./components/Badge/Badge.js";
|
|
21
|
-
import { MenuItem as P } from "./components/Menu/MenuItem.js";
|
|
22
|
-
import { MenuHeader as ee } from "./components/Menu/MenuHeader.js";
|
|
23
|
-
import { MenuList as te, MenuListItem as B } from "./components/Menu/MenuBase.js";
|
|
24
|
-
import { IconButton as oe } from "./components/Button/IconButton.js";
|
|
25
|
-
import { DropdownBase as ne } from "./components/Dropdown/DropdownBase.js";
|
|
26
|
-
import { Icon as re } from "./components/Icon/Icon.js";
|
|
27
|
-
import { ListItemHeader as se } from "./components/List/ListItemHeader.js";
|
|
28
|
-
import { QueryLabel as ce } from "./components/Bookmarks/QueryLabel.js";
|
|
29
|
-
import './assets/Autocomplete.css';const ae = ({ size: t = "sm", title: n, description: o, params: s, ...a }) => /* @__PURE__ */ e(L, { size: t, icon: "magnifying-glass", linkIcon: "chevron-right", ...a, children: !n && /* @__PURE__ */ e(ce, { params: s }) }), me = "_toggle_ya7jy_1", ie = "_button_ya7jy_5", le = "_icon_ya7jy_14", de = "_dropdown_ya7jy_18", w = {
|
|
30
|
-
toggle: me,
|
|
31
|
-
button: ie,
|
|
32
|
-
icon: le,
|
|
33
|
-
dropdown: de
|
|
34
|
-
}, ue = ({
|
|
35
|
-
size: t = "sm",
|
|
36
|
-
placement: n = "right",
|
|
37
|
-
expanded: o = !1,
|
|
38
|
-
className: s,
|
|
39
|
-
onToggle: a,
|
|
40
|
-
children: i
|
|
41
|
-
}) => /* @__PURE__ */ _("div", { className: q(w.toggle, s), "data-theme": "neutral", children: [
|
|
42
|
-
/* @__PURE__ */ e(
|
|
43
|
-
oe,
|
|
44
|
-
{
|
|
45
|
-
className: w.button,
|
|
46
|
-
size: t,
|
|
47
|
-
icon: "menu-elipsis-horizontal",
|
|
48
|
-
iconSize: "md",
|
|
49
|
-
variant: "text",
|
|
50
|
-
color: "secondary",
|
|
51
|
-
onClick: a
|
|
52
|
-
}
|
|
53
|
-
),
|
|
54
|
-
/* @__PURE__ */ e(ne, { className: w.dropdown, placement: n, expanded: o, children: i })
|
|
55
|
-
] }), fe = ({
|
|
56
|
-
id: t = "context-menu",
|
|
57
|
-
placement: n = "right",
|
|
58
|
-
size: o,
|
|
59
|
-
groups: s = {},
|
|
60
|
-
className: a,
|
|
61
|
-
items: i
|
|
62
|
-
}) => {
|
|
63
|
-
const { currentId: d, toggleId: c } = J();
|
|
64
|
-
return /* @__PURE__ */ e(
|
|
65
|
-
ue,
|
|
66
|
-
{
|
|
67
|
-
size: o,
|
|
68
|
-
placement: n,
|
|
69
|
-
className: a,
|
|
70
|
-
expanded: d === t,
|
|
71
|
-
onToggle: () => c(t),
|
|
72
|
-
children: /* @__PURE__ */ e(S, { groups: s, items: i })
|
|
73
|
-
}
|
|
74
|
-
);
|
|
75
|
-
}, S = ({
|
|
76
|
-
level: t = 0,
|
|
77
|
-
expanded: n,
|
|
78
|
-
items: o,
|
|
79
|
-
groups: s = {},
|
|
80
|
-
defaultItemColor: a,
|
|
81
|
-
defaultItemSize: i
|
|
82
|
-
}) => {
|
|
83
|
-
const { menu: d } = E({
|
|
84
|
-
items: o,
|
|
85
|
-
groups: s,
|
|
86
|
-
groupByKey: "groupId",
|
|
87
|
-
keyboardEvents: !1
|
|
88
|
-
});
|
|
89
|
-
return /* @__PURE__ */ e(te, { expanded: n, children: d.map((c, u) => {
|
|
90
|
-
const m = (c == null ? void 0 : c.props) || {}, { title: f, divider: I = !0 } = m, p = d[u + 1];
|
|
91
|
-
return /* @__PURE__ */ _(G, { children: [
|
|
92
|
-
(t > 0 || u) && I ? /* @__PURE__ */ e(B, { role: "separator" }) : "",
|
|
93
|
-
f && /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(ee, { title: f }) }),
|
|
94
|
-
c == null ? void 0 : c.items.filter((h) => {
|
|
95
|
-
var l;
|
|
96
|
-
return !((l = h.props) != null && l.hidden);
|
|
97
|
-
}).map((h, l) => {
|
|
98
|
-
const { active: x } = h, { groupId: k, ...r } = h.props || {}, { expanded: y } = r, b = c == null ? void 0 : c.items[l + 1];
|
|
99
|
-
return /* @__PURE__ */ _(B, { role: "presentation", expanded: y, children: [
|
|
100
|
-
/* @__PURE__ */ e(
|
|
101
|
-
P,
|
|
102
|
-
{
|
|
103
|
-
...r,
|
|
104
|
-
color: (r == null ? void 0 : r.color) || (m == null ? void 0 : m.defaultItemColor) || a,
|
|
105
|
-
size: (r == null ? void 0 : r.size) || (m == null ? void 0 : m.defaultItemSize) || i,
|
|
106
|
-
active: x,
|
|
107
|
-
tabIndex: r != null && r.disabled ? -1 : 0
|
|
108
|
-
}
|
|
109
|
-
),
|
|
110
|
-
y && (r == null ? void 0 : r.items) && /* @__PURE__ */ _($, { children: [
|
|
111
|
-
/* @__PURE__ */ e(
|
|
112
|
-
S,
|
|
113
|
-
{
|
|
114
|
-
expanded: y,
|
|
115
|
-
level: t + 1,
|
|
116
|
-
items: r == null ? void 0 : r.items,
|
|
117
|
-
groups: s,
|
|
118
|
-
defaultItemColor: a,
|
|
119
|
-
defaultItemSize: i
|
|
120
|
-
}
|
|
121
|
-
),
|
|
122
|
-
(p || b) && /* @__PURE__ */ e(B, { role: "separator", as: "div" })
|
|
123
|
-
] })
|
|
124
|
-
] }, l);
|
|
125
|
-
})
|
|
126
|
-
] }, u);
|
|
127
|
-
}) });
|
|
128
|
-
}, he = "_controls_dduzt_1", _e = "_linkText_dduzt_14", pe = "_linkIcon_dduzt_19", N = {
|
|
129
|
-
controls: he,
|
|
130
|
-
linkText: _e,
|
|
131
|
-
linkIcon: pe
|
|
132
|
-
}, Ie = ({ badge: t, linkText: n, linkIcon: o, menu: s, children: a }) => /* @__PURE__ */ e("div", { className: N.controls, "data-menu": s && !0, children: a || /* @__PURE__ */ _($, { children: [
|
|
133
|
-
t && /* @__PURE__ */ e(z, { ...t }),
|
|
134
|
-
n && /* @__PURE__ */ e("span", { className: N.linkText, children: n }),
|
|
135
|
-
o && /* @__PURE__ */ e(re, { name: o, className: N.linkIcon }),
|
|
136
|
-
s && /* @__PURE__ */ e(fe, { ...s, className: N.menu })
|
|
137
|
-
] }) }), L = ({
|
|
138
|
-
as: t = "a",
|
|
139
|
-
color: n,
|
|
140
|
-
loading: o,
|
|
141
|
-
size: s = "sm",
|
|
142
|
-
icon: a,
|
|
143
|
-
avatar: i,
|
|
144
|
-
avatarGroup: d,
|
|
145
|
-
title: c,
|
|
146
|
-
description: u,
|
|
147
|
-
collapsible: m,
|
|
148
|
-
expanded: f,
|
|
149
|
-
badge: I,
|
|
150
|
-
linkText: p,
|
|
151
|
-
linkIcon: h,
|
|
152
|
-
menu: l,
|
|
153
|
-
select: x,
|
|
154
|
-
controls: k,
|
|
155
|
-
children: r,
|
|
156
|
-
...y
|
|
157
|
-
}) => /* @__PURE__ */ e(
|
|
158
|
-
D,
|
|
159
|
-
{
|
|
160
|
-
as: t,
|
|
161
|
-
size: s,
|
|
162
|
-
color: n,
|
|
163
|
-
loading: o,
|
|
164
|
-
select: x,
|
|
165
|
-
controls: k || /* @__PURE__ */ e(Ie, { linkIcon: m && f ? "chevron-up" : m ? "chevron-down" : h, linkText: p, menu: l, badge: I }),
|
|
166
|
-
...y,
|
|
167
|
-
children: /* @__PURE__ */ e(se, { loading: o, size: s, icon: a, avatar: i, avatarGroup: d, children: /* @__PURE__ */ e(H, { loading: o, title: c, description: u, size: s, children: r }) })
|
|
168
|
-
}
|
|
169
|
-
), ye = "_item_v64fv_1", ve = "_select_v64fv_16", xe = "_summary_v64fv_23", be = "_footer_v64fv_44", ke = "_touchedBy_v64fv_52", Be = "_border_v64fv_61", v = {
|
|
170
|
-
item: ye,
|
|
171
|
-
select: ve,
|
|
172
|
-
summary: xe,
|
|
173
|
-
footer: be,
|
|
174
|
-
touchedBy: ke,
|
|
175
|
-
border: Be
|
|
176
|
-
}, Ne = ({
|
|
177
|
-
size: t = "lg",
|
|
178
|
-
variant: n = "neutral",
|
|
179
|
-
loading: o,
|
|
180
|
-
select: s,
|
|
181
|
-
status: a,
|
|
182
|
-
sender: i,
|
|
183
|
-
recipient: d,
|
|
184
|
-
grouped: c,
|
|
185
|
-
updatedAt: u,
|
|
186
|
-
updatedAtLabel: m,
|
|
187
|
-
archivedAt: f,
|
|
188
|
-
archivedAtLabel: I,
|
|
189
|
-
trashedAt: p,
|
|
190
|
-
trashedAtLabel: h,
|
|
191
|
-
label: l,
|
|
192
|
-
dueAt: x,
|
|
193
|
-
dueAtLabel: k,
|
|
194
|
-
seen: r = !1,
|
|
195
|
-
seenBy: y,
|
|
196
|
-
touchedBy: b,
|
|
197
|
-
attachmentsCount: F,
|
|
198
|
-
title: M,
|
|
199
|
-
description: g,
|
|
200
|
-
...j
|
|
201
|
-
}) => {
|
|
202
|
-
const A = p ? "trashed" : f ? "archived" : n;
|
|
203
|
-
return t === "xs" || t === "sm" ? /* @__PURE__ */ e(D, { ...j, loading: o, size: t, className: v.item, children: /* @__PURE__ */ _(C, { className: v.border, size: t, seen: r, loading: o, children: [
|
|
204
|
-
/* @__PURE__ */ e(H, { loading: o, size: t, title: M, description: g }),
|
|
205
|
-
/* @__PURE__ */ e(T, { loading: o, updatedAt: u, updatedAtLabel: m })
|
|
206
|
-
] }) }) : /* @__PURE__ */ e(
|
|
207
|
-
D,
|
|
208
|
-
{
|
|
209
|
-
...j,
|
|
210
|
-
loading: o,
|
|
211
|
-
size: t,
|
|
212
|
-
className: v.item,
|
|
213
|
-
controls: s && /* @__PURE__ */ e(Y, { className: v.select, ...s }),
|
|
214
|
-
children: /* @__PURE__ */ _(C, { className: v.border, size: t, seen: r, loading: o, children: [
|
|
215
|
-
/* @__PURE__ */ _(O, { size: t, children: [
|
|
216
|
-
/* @__PURE__ */ e(W, { loading: o, size: t, variant: A, label: l, seen: r, children: M }),
|
|
217
|
-
/* @__PURE__ */ e(U, { loading: o, size: t, grouped: c, sender: i, recipient: d })
|
|
218
|
-
] }),
|
|
219
|
-
/* @__PURE__ */ e(Z, { loading: o, size: t, children: g }),
|
|
220
|
-
/* @__PURE__ */ _("footer", { "data-size": t, className: v.footer, children: [
|
|
221
|
-
/* @__PURE__ */ e(
|
|
222
|
-
T,
|
|
223
|
-
{
|
|
224
|
-
loading: o,
|
|
225
|
-
status: a,
|
|
226
|
-
updatedAt: u,
|
|
227
|
-
updatedAtLabel: m,
|
|
228
|
-
archivedAt: f,
|
|
229
|
-
archivedAtLabel: I,
|
|
230
|
-
trashedAt: p,
|
|
231
|
-
trashedAtLabel: h,
|
|
232
|
-
dueAt: x,
|
|
233
|
-
dueAtLabel: k,
|
|
234
|
-
seenBy: y,
|
|
235
|
-
attachmentsCount: F
|
|
236
|
-
}
|
|
237
|
-
),
|
|
238
|
-
b && /* @__PURE__ */ e(X, { loading: o, size: "xs", touchedBy: b, className: v.touchedBy })
|
|
239
|
-
] })
|
|
240
|
-
] })
|
|
241
|
-
}
|
|
242
|
-
);
|
|
243
|
-
}, Le = "_item_1a3bc_1", we = {
|
|
244
|
-
item: Le
|
|
245
|
-
}, De = ({ as: t = "a", label: n, ...o }) => /* @__PURE__ */ e(L, { className: we.item, linkIcon: "chevron-right", ...o, children: typeof n == "function" ? n() : n }), Me = ({ type: t, ...n }) => {
|
|
246
|
-
switch (t) {
|
|
247
|
-
case "scope":
|
|
248
|
-
return /* @__PURE__ */ e(De, { ...n, shadow: "none", tabIndex: -1 });
|
|
249
|
-
case "bookmark":
|
|
250
|
-
return /* @__PURE__ */ e(ae, { ...n, shadow: "none", size: "sm", tabIndex: -1 });
|
|
251
|
-
case "dialog":
|
|
252
|
-
return /* @__PURE__ */ e(Ne, { ...n, shadow: "none", size: "sm", tabIndex: -1 });
|
|
253
|
-
case "information":
|
|
254
|
-
return /* @__PURE__ */ e(L, { ...n, shadow: "none", tabIndex: -1, disabled: !0 });
|
|
255
|
-
default:
|
|
256
|
-
return /* @__PURE__ */ e(L, { ...n, shadow: "none", size: "sm", tabIndex: -1 });
|
|
257
|
-
}
|
|
258
|
-
}, ot = K(
|
|
259
|
-
({ className: t, items: n, groups: o = {}, expanded: s }, a) => {
|
|
260
|
-
const { menu: i, setActiveIndex: d } = E({
|
|
261
|
-
items: n,
|
|
262
|
-
groups: o,
|
|
263
|
-
groupByKey: "groupId",
|
|
264
|
-
keyboardEvents: !0
|
|
265
|
-
});
|
|
266
|
-
return /* @__PURE__ */ e(Q, { className: t, expanded: s, ref: a, children: i.map((c, u) => /* @__PURE__ */ R(V, { ...c.props, key: u }, /* @__PURE__ */ e("ul", { children: c.items.map((m, f) => {
|
|
267
|
-
const {
|
|
268
|
-
active: I,
|
|
269
|
-
menuIndex: p,
|
|
270
|
-
props: { groupId: h, ...l }
|
|
271
|
-
} = m;
|
|
272
|
-
return /* @__PURE__ */ e("li", { tabIndex: -1, onMouseEnter: () => d(p), children: /* @__PURE__ */ e(Me, { ...l, active: I }) }, f);
|
|
273
|
-
}) }))) });
|
|
274
|
-
}
|
|
275
|
-
);
|
|
276
|
-
export {
|
|
277
|
-
ot as A,
|
|
278
|
-
ae as B,
|
|
279
|
-
fe as C,
|
|
280
|
-
Ne as D,
|
|
281
|
-
Ie as L,
|
|
282
|
-
S as M,
|
|
283
|
-
De as S,
|
|
284
|
-
L as a,
|
|
285
|
-
ue as b,
|
|
286
|
-
Me as c
|
|
287
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._item_1bsu6_1{display:flex;flex-direction:column}._header_1bsu6_6{margin:.375em}._border_1bsu6_10{padding-left:1.5rem;padding-top:0;margin-left:1rem;padding-bottom:1.5rem}._body_1bsu6_17{margin-top:-1.875rem}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._header_70chu_1{flex-grow:1;display:flex;align-items:center;gap:.625rem;padding:.5rem .625rem}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AttachmentLinkProps } from '../Attachment';
|
|
2
|
-
export interface DialogAttachmentsProps {
|
|
3
|
-
title?: string;
|
|
4
|
-
items?: AttachmentLinkProps[];
|
|
5
|
-
}
|
|
6
|
-
export declare const DialogAttachments: ({ title, items }: DialogAttachmentsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-L8X2o7IH.js";
|
|
3
|
-
import "../Icon/SvgIcon.js";
|
|
4
|
-
import { AttachmentList as e } from "../Attachment/AttachmentList.js";
|
|
5
|
-
import { MetaItem as i } from "../Meta/MetaItem.js";
|
|
6
|
-
import { Typography as h } from "../Typography/Typography.js";
|
|
7
|
-
const f = ({ title: o = "Attachments", items: r }) => r != null && r.length ? /* @__PURE__ */ n("section", { children: [
|
|
8
|
-
/* @__PURE__ */ t(i, { as: "h2", size: "xs", children: o }),
|
|
9
|
-
/* @__PURE__ */ t(h, { size: "lg", children: /* @__PURE__ */ t(e, { size: "lg", items: r }) })
|
|
10
|
-
] }) : null;
|
|
11
|
-
export {
|
|
12
|
-
f as DialogAttachments
|
|
13
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { withThemeByDataAttribute as m } from "@storybook/addon-themes";
|
|
3
|
-
import "../../index-L8X2o7IH.js";
|
|
4
|
-
import "../Icon/SvgIcon.js";
|
|
5
|
-
import "react";
|
|
6
|
-
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { MetaItem as s } from "../Meta/MetaItem.js";
|
|
8
|
-
import { D as o } from "../../Autocomplete-hEFuiN2u.js";
|
|
9
|
-
import { ListBase as a } from "../List/ListBase.js";
|
|
10
|
-
const y = {
|
|
11
|
-
title: "Dialog/Examples",
|
|
12
|
-
component: o,
|
|
13
|
-
tags: ["autodocs"],
|
|
14
|
-
decorators: [
|
|
15
|
-
m({
|
|
16
|
-
themes: {
|
|
17
|
-
company: "company",
|
|
18
|
-
person: "person"
|
|
19
|
-
},
|
|
20
|
-
defaultTheme: "company"
|
|
21
|
-
})
|
|
22
|
-
],
|
|
23
|
-
argTypes: {}
|
|
24
|
-
}, g = (e) => /* @__PURE__ */ r(a, { children: [
|
|
25
|
-
/* @__PURE__ */ t(o, { ...e, status }),
|
|
26
|
-
/* @__PURE__ */ t(s, { children: status == null ? void 0 : status.value })
|
|
27
|
-
] });
|
|
28
|
-
export {
|
|
29
|
-
g as RequiresAttention,
|
|
30
|
-
y as default
|
|
31
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AttachmentLinkProps } from '../Attachment';
|
|
2
|
-
export interface HistoryAttachmentsProps {
|
|
3
|
-
title?: string;
|
|
4
|
-
items?: AttachmentLinkProps[];
|
|
5
|
-
}
|
|
6
|
-
export declare const HistoryAttachments: ({ title, items }: HistoryAttachmentsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-L8X2o7IH.js";
|
|
3
|
-
import "../Icon/SvgIcon.js";
|
|
4
|
-
import { AttachmentList as e } from "../Attachment/AttachmentList.js";
|
|
5
|
-
import { MetaItem as i } from "../Meta/MetaItem.js";
|
|
6
|
-
const p = ({ title: o = "Attachments", items: t }) => t != null && t.length ? /* @__PURE__ */ n("section", { children: [
|
|
7
|
-
/* @__PURE__ */ r(i, { as: "h2", size: "xs", children: o }),
|
|
8
|
-
/* @__PURE__ */ r(e, { size: "lg", items: t })
|
|
9
|
-
] }) : null;
|
|
10
|
-
export {
|
|
11
|
-
p as HistoryAttachments
|
|
12
|
-
};
|