Package not found. Please check the package name and try again.
@altinn/altinn-components 0.8.2 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ContextMenu.css +1 -0
- package/dist/assets/DialogListItem.css +1 -0
- package/dist/assets/ListItemControls.css +1 -0
- package/dist/assets/ListItemHeader.css +1 -0
- package/dist/assets/ListItemMenu.css +1 -0
- package/dist/assets/ScopeListItem.css +1 -0
- package/dist/components/Bookmarks/BookmarksList.js +2 -1
- package/dist/components/Bookmarks/BookmarksListItem.js +6 -4
- package/dist/components/Bookmarks/BookmarksListItem.stories.js +15 -14
- package/dist/components/Bookmarks/BookmarksSection.js +1 -1
- package/dist/components/Bookmarks/index.js +4 -4
- package/dist/components/Button/Buttons.stories.js +1 -1
- package/dist/components/ContextMenu/ContextMenu.d.ts +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +39 -5
- package/dist/components/ContextMenu/ContextMenu.stories.js +8 -8
- package/dist/components/ContextMenu/index.js +1 -1
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/Dialog/DialogActions.js +1 -1
- package/dist/components/Dialog/DialogGroup.js +1 -1
- package/dist/components/Dialog/DialogHistory.js +1 -1
- package/dist/components/Dialog/DialogList.js +6 -5
- package/dist/components/Dialog/DialogListItem.js +89 -12
- package/dist/components/Dialog/DialogListItem.stories.js +24 -23
- package/dist/components/Dialog/DialogNav.js +11 -11
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/Dropdown/DrawerBase.d.ts +2 -2
- package/dist/components/Dropdown/DrawerBase.js +1 -1
- package/dist/components/Dropdown/DrawerButton.js +1 -1
- package/dist/components/Dropdown/DrawerOrDropdown.d.ts +4 -4
- package/dist/components/Dropdown/DrawerOrDropdown.js +22 -16
- package/dist/components/Dropdown/DropdownBase.d.ts +3 -2
- package/dist/components/Dropdown/DropdownBase.js +28 -21
- 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/Header.js +24 -27
- package/dist/components/Header/HeaderBase.js +1 -1
- package/dist/components/History/HistoryItem.js +1 -1
- package/dist/components/Layout/Layout.js +1 -1
- package/dist/components/Layout/Layout.stories.js +10 -9
- package/dist/components/LayoutAction/ActionMenu.js +1 -1
- package/dist/components/List/List.js +5 -4
- package/dist/components/List/List.stories.js +1 -1
- package/dist/components/List/ListItem.js +47 -4
- package/dist/components/List/ListItem.stories.js +25 -23
- package/dist/components/List/ListItemControls.js +15 -5
- package/dist/components/List/ListItemHeader.js +73 -7
- package/dist/components/List/ListItemHeader.stories.js +20 -19
- package/dist/components/List/ListItemMenu.js +6 -3
- package/dist/components/List/index.js +14 -12
- package/dist/components/Menu/Menu.js +9 -9
- package/dist/components/Menu/MenuItem.stories.js +1 -1
- package/dist/components/Menu/MenuItems.js +63 -8
- package/dist/components/Menu/MenuItems.stories.js +1 -1
- package/dist/components/Menu/MenuSearch.js +1 -1
- package/dist/components/Menu/index.js +7 -7
- package/dist/components/Page/PageHeader.js +1 -1
- package/dist/components/ResourceList/ResourceList.d.ts +6 -0
- package/dist/components/ResourceList/ResourceList.js +12 -0
- package/dist/components/ResourceList/ResourceList.stories.js +270 -0
- package/dist/components/ResourceList/ResourceListItem.d.ts +11 -0
- package/dist/components/ResourceList/ResourceListItem.js +32 -0
- package/dist/components/ResourceList/ResourceListItem.stories.js +33 -0
- package/dist/components/ResourceList/index.d.ts +2 -0
- package/dist/components/ResourceList/index.js +6 -0
- package/dist/components/RootProvider/RootProvider.js +16 -15
- package/dist/components/Searchbar/Autocomplete.d.ts +2 -1
- package/dist/components/Searchbar/Autocomplete.js +39 -7
- package/dist/components/Searchbar/Autocomplete.stories.js +2 -2
- package/dist/components/Searchbar/AutocompleteItem.d.ts +1 -0
- package/dist/components/Searchbar/AutocompleteItem.js +21 -3
- package/dist/components/Searchbar/ScopeListItem.d.ts +1 -1
- package/dist/components/Searchbar/ScopeListItem.js +7 -3
- package/dist/components/Searchbar/Searchbar.js +16 -25
- package/dist/components/Toolbar/Toolbar.d.ts +2 -1
- package/dist/components/Toolbar/Toolbar.js +62 -63
- package/dist/components/Toolbar/Toolbar.stories.js +18 -15
- package/dist/components/Toolbar/ToolbarAdd.d.ts +2 -4
- package/dist/components/Toolbar/ToolbarAdd.js +15 -12
- package/dist/components/Toolbar/ToolbarBase.d.ts +0 -2
- package/dist/components/Toolbar/ToolbarDaterange.js +12 -12
- package/dist/components/Toolbar/ToolbarFilter.d.ts +3 -3
- package/dist/components/Toolbar/ToolbarFilter.js +42 -42
- package/dist/components/Toolbar/ToolbarMenu.d.ts +2 -4
- package/dist/components/Toolbar/ToolbarMenu.js +15 -12
- package/dist/components/Toolbar/ToolbarOptions.js +1 -1
- package/dist/components/Toolbar/ToolbarSearch.d.ts +2 -2
- package/dist/components/Toolbar/ToolbarSearch.js +1 -1
- package/dist/components/Transmission/TransmissionItem.js +14 -13
- package/dist/components/Transmission/TransmissionList.js +1 -1
- package/dist/components/Transmission/TransmissionSection.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +241 -231
- package/dist/hooks/useClickOutside.d.ts +1 -1
- package/dist/hooks/useClickOutside.js +6 -6
- package/dist/index.js +251 -241
- package/package.json +1 -1
- package/dist/Autocomplete-Cb9fQrzy.js +0 -367
- package/dist/assets/Autocomplete.css +0 -1
- package/dist/components/ContextMenu/ContextMenuBase.d.ts +0 -12
- package/dist/components/ContextMenu/ContextMenuBase.js +0 -11
|
@@ -1,367 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as t, jsxs as f, Fragment as q } from "react/jsx-runtime";
|
|
3
|
-
import { Fragment as V, forwardRef as J, createElement as O } from "react";
|
|
4
|
-
import { useMenu as A } from "./hooks/useMenu.js";
|
|
5
|
-
import { AutocompleteBase as U } from "./components/Searchbar/AutocompleteBase.js";
|
|
6
|
-
import { AutocompleteGroup as W } from "./components/Searchbar/AutocompleteGroup.js";
|
|
7
|
-
import { c as C } from "./index-L8X2o7IH.js";
|
|
8
|
-
import "./components/Icon/SvgIcon.js";
|
|
9
|
-
import { useRootContext as X } from "./components/RootProvider/RootProvider.js";
|
|
10
|
-
import { ListItemBase as Y } from "./components/List/ListItemBase.js";
|
|
11
|
-
import { Badge as Z } from "./components/Badge/Badge.js";
|
|
12
|
-
import { MenuItem as K } from "./components/Menu/MenuItem.js";
|
|
13
|
-
import { MenuHeader as z } from "./components/Menu/MenuHeader.js";
|
|
14
|
-
import { MenuList as P, MenuListItem as $ } from "./components/Menu/MenuBase.js";
|
|
15
|
-
import { IconButton as tt } from "./components/Button/IconButton.js";
|
|
16
|
-
import { DropdownBase as et } from "./components/Dropdown/DropdownBase.js";
|
|
17
|
-
import { Icon as nt } from "./components/Icon/Icon.js";
|
|
18
|
-
import { ListItemLabel as G } from "./components/List/ListItemLabel.js";
|
|
19
|
-
import { ListItemMedia as ot } from "./components/List/ListItemMedia.js";
|
|
20
|
-
import { ListItemSelect as rt } from "./components/List/ListItemSelect.js";
|
|
21
|
-
import { DialogBorder as g } from "./components/Dialog/DialogBorder.js";
|
|
22
|
-
import { DialogMetadata as H } from "./components/Dialog/DialogMetadata.js";
|
|
23
|
-
import { DialogHeaderBase as at } from "./components/Dialog/DialogHeaderBase.js";
|
|
24
|
-
import { DialogHeadings as st } from "./components/Dialog/DialogHeadings.js";
|
|
25
|
-
import { DialogTitle as ct } from "./components/Dialog/DialogTitle.js";
|
|
26
|
-
import { DialogTouchedBy as mt } from "./components/Dialog/DialogTouchedBy.js";
|
|
27
|
-
import { DialogSelect as it } from "./components/Dialog/DialogSelect.js";
|
|
28
|
-
import { DialogDescription as lt } from "./components/Dialog/DialogDescription.js";
|
|
29
|
-
import { QueryLabel as dt } from "./components/Bookmarks/QueryLabel.js";
|
|
30
|
-
import './assets/Autocomplete.css';const ut = ({ size: e = "sm", title: n, description: o, params: a, ...c }) => /* @__PURE__ */ t(v, { size: e, title: n, linkIcon: "chevron-right", ...c, children: !n && /* @__PURE__ */ t(dt, { params: a }) }), _t = "_toggle_ya7jy_1", ht = "_button_ya7jy_5", pt = "_icon_ya7jy_14", ft = "_dropdown_ya7jy_18", E = {
|
|
31
|
-
toggle: _t,
|
|
32
|
-
button: ht,
|
|
33
|
-
icon: pt,
|
|
34
|
-
dropdown: ft
|
|
35
|
-
}, It = ({
|
|
36
|
-
size: e = "sm",
|
|
37
|
-
placement: n = "right",
|
|
38
|
-
expanded: o = !1,
|
|
39
|
-
className: a,
|
|
40
|
-
onToggle: c,
|
|
41
|
-
children: m
|
|
42
|
-
}) => /* @__PURE__ */ f("div", { className: C(E.toggle, a), "data-theme": "neutral", children: [
|
|
43
|
-
/* @__PURE__ */ t(
|
|
44
|
-
tt,
|
|
45
|
-
{
|
|
46
|
-
className: E.button,
|
|
47
|
-
size: e,
|
|
48
|
-
icon: "menu-elipsis-horizontal",
|
|
49
|
-
iconSize: "md",
|
|
50
|
-
variant: "text",
|
|
51
|
-
color: "secondary",
|
|
52
|
-
onClick: c
|
|
53
|
-
}
|
|
54
|
-
),
|
|
55
|
-
/* @__PURE__ */ t(et, { className: E.dropdown, placement: n, expanded: o, children: m })
|
|
56
|
-
] }), R = ({
|
|
57
|
-
id: e = "context-menu",
|
|
58
|
-
placement: n = "right",
|
|
59
|
-
size: o,
|
|
60
|
-
groups: a = {},
|
|
61
|
-
className: c,
|
|
62
|
-
items: m
|
|
63
|
-
}) => {
|
|
64
|
-
const { currentId: d, toggleId: s } = X();
|
|
65
|
-
return /* @__PURE__ */ t(
|
|
66
|
-
It,
|
|
67
|
-
{
|
|
68
|
-
size: o,
|
|
69
|
-
placement: n,
|
|
70
|
-
className: c,
|
|
71
|
-
expanded: d === e,
|
|
72
|
-
onToggle: () => s(e),
|
|
73
|
-
children: /* @__PURE__ */ t(Q, { groups: a, items: m })
|
|
74
|
-
}
|
|
75
|
-
);
|
|
76
|
-
}, yt = "_controls_n31lc_1", xt = "_linkText_n31lc_11", bt = "_linkIcon_n31lc_16", j = {
|
|
77
|
-
controls: yt,
|
|
78
|
-
linkText: xt,
|
|
79
|
-
linkIcon: bt
|
|
80
|
-
}, kt = ({ badge: e, linkText: n, linkIcon: o, menu: a, children: c }) => /* @__PURE__ */ t("div", { className: j.controls, "data-menu": a && !0, children: c || /* @__PURE__ */ f(q, { children: [
|
|
81
|
-
e && /* @__PURE__ */ t(Z, { ...e }),
|
|
82
|
-
n && /* @__PURE__ */ t("span", { className: j.linkText, children: n }),
|
|
83
|
-
o && /* @__PURE__ */ t(nt, { name: o, className: j.linkIcon }),
|
|
84
|
-
a && /* @__PURE__ */ t(R, { ...a, className: j.menu })
|
|
85
|
-
] }) }), Nt = "_menu_1u5v2_1", vt = {
|
|
86
|
-
menu: Nt
|
|
87
|
-
}, Bt = ({ id: e = "list-item-menu", ...n }) => /* @__PURE__ */ t(R, { ...n, id: e, placement: "right", className: vt.menu }), Lt = "_header_pqany_1", Mt = "_link_pqany_8", F = {
|
|
88
|
-
header: Lt,
|
|
89
|
-
link: Mt
|
|
90
|
-
}, Dt = ({
|
|
91
|
-
as: e,
|
|
92
|
-
loading: n,
|
|
93
|
-
disabled: o,
|
|
94
|
-
select: a,
|
|
95
|
-
href: c,
|
|
96
|
-
onClick: m,
|
|
97
|
-
onKeyPress: d,
|
|
98
|
-
tabIndex: s,
|
|
99
|
-
collapsible: u,
|
|
100
|
-
expanded: i,
|
|
101
|
-
size: l = "sm",
|
|
102
|
-
color: h,
|
|
103
|
-
title: I,
|
|
104
|
-
description: p,
|
|
105
|
-
icon: _,
|
|
106
|
-
avatar: x,
|
|
107
|
-
avatarGroup: k,
|
|
108
|
-
linkIcon: r,
|
|
109
|
-
linkText: y,
|
|
110
|
-
badge: N,
|
|
111
|
-
menu: B,
|
|
112
|
-
controls: L,
|
|
113
|
-
className: M,
|
|
114
|
-
children: D
|
|
115
|
-
}) => {
|
|
116
|
-
const w = e || "button", T = u && i ? "chevron-up" : u ? "chevron-down" : r;
|
|
117
|
-
return /* @__PURE__ */ f("header", { className: F.header, "data-size": l, "data-color": h, "aria-expanded": i, children: [
|
|
118
|
-
a && /* @__PURE__ */ t(rt, { ...a, size: l }),
|
|
119
|
-
/* @__PURE__ */ f(
|
|
120
|
-
w,
|
|
121
|
-
{
|
|
122
|
-
className: C(F.link, M),
|
|
123
|
-
href: c,
|
|
124
|
-
onKeyPress: (S) => {
|
|
125
|
-
S.key === "Enter" && (m == null || m()), d == null || d(S);
|
|
126
|
-
},
|
|
127
|
-
onClick: m,
|
|
128
|
-
tabIndex: s,
|
|
129
|
-
"data-size": l,
|
|
130
|
-
"data-color": h,
|
|
131
|
-
"aria-disabled": n || o,
|
|
132
|
-
children: [
|
|
133
|
-
/* @__PURE__ */ t(
|
|
134
|
-
ot,
|
|
135
|
-
{
|
|
136
|
-
loading: n,
|
|
137
|
-
size: l,
|
|
138
|
-
color: h,
|
|
139
|
-
icon: _,
|
|
140
|
-
avatar: x,
|
|
141
|
-
avatarGroup: k
|
|
142
|
-
}
|
|
143
|
-
),
|
|
144
|
-
/* @__PURE__ */ t(G, { loading: n, size: l, title: I, description: p, children: D }),
|
|
145
|
-
/* @__PURE__ */ t(kt, { linkIcon: T, linkText: y, badge: N })
|
|
146
|
-
]
|
|
147
|
-
}
|
|
148
|
-
),
|
|
149
|
-
B && /* @__PURE__ */ t(Bt, { ...B }) || L
|
|
150
|
-
] });
|
|
151
|
-
}, v = ({
|
|
152
|
-
className: e,
|
|
153
|
-
color: n,
|
|
154
|
-
loading: o,
|
|
155
|
-
collapsible: a,
|
|
156
|
-
expanded: c,
|
|
157
|
-
size: m = "sm",
|
|
158
|
-
icon: d,
|
|
159
|
-
avatar: s,
|
|
160
|
-
avatarGroup: u,
|
|
161
|
-
title: i,
|
|
162
|
-
description: l,
|
|
163
|
-
badge: h,
|
|
164
|
-
linkText: I,
|
|
165
|
-
linkIcon: p,
|
|
166
|
-
menu: _,
|
|
167
|
-
select: x,
|
|
168
|
-
controls: k,
|
|
169
|
-
children: r,
|
|
170
|
-
...y
|
|
171
|
-
}) => /* @__PURE__ */ t(Y, { size: m, color: n, loading: o, ...y, children: /* @__PURE__ */ t(
|
|
172
|
-
Dt,
|
|
173
|
-
{
|
|
174
|
-
className: e,
|
|
175
|
-
loading: o,
|
|
176
|
-
collapsible: a,
|
|
177
|
-
expanded: c,
|
|
178
|
-
select: x,
|
|
179
|
-
size: m,
|
|
180
|
-
title: i,
|
|
181
|
-
description: l,
|
|
182
|
-
icon: d,
|
|
183
|
-
avatar: s,
|
|
184
|
-
avatarGroup: u,
|
|
185
|
-
linkIcon: p,
|
|
186
|
-
linkText: I,
|
|
187
|
-
badge: h,
|
|
188
|
-
controls: k,
|
|
189
|
-
menu: _,
|
|
190
|
-
...y,
|
|
191
|
-
children: r
|
|
192
|
-
}
|
|
193
|
-
) }), Q = ({
|
|
194
|
-
level: e = 0,
|
|
195
|
-
expanded: n,
|
|
196
|
-
items: o,
|
|
197
|
-
groups: a = {},
|
|
198
|
-
defaultItemColor: c,
|
|
199
|
-
defaultItemSize: m
|
|
200
|
-
}) => {
|
|
201
|
-
const { menu: d } = A({
|
|
202
|
-
items: o,
|
|
203
|
-
groups: a,
|
|
204
|
-
groupByKey: "groupId",
|
|
205
|
-
keyboardEvents: !1
|
|
206
|
-
});
|
|
207
|
-
return /* @__PURE__ */ t(P, { expanded: n, children: d.map((s, u) => {
|
|
208
|
-
const i = (s == null ? void 0 : s.props) || {}, { title: l, divider: h = !0 } = i, I = d[u + 1];
|
|
209
|
-
return /* @__PURE__ */ f(V, { children: [
|
|
210
|
-
(e > 0 || u) && h ? /* @__PURE__ */ t($, { role: "separator" }) : "",
|
|
211
|
-
l && /* @__PURE__ */ t($, { children: /* @__PURE__ */ t(z, { title: l }) }),
|
|
212
|
-
s == null ? void 0 : s.items.filter((p) => {
|
|
213
|
-
var _;
|
|
214
|
-
return !((_ = p.props) != null && _.hidden);
|
|
215
|
-
}).map((p, _) => {
|
|
216
|
-
const { active: x } = p, { groupId: k, ...r } = p.props || {}, { expanded: y } = r, N = s == null ? void 0 : s.items[_ + 1];
|
|
217
|
-
return /* @__PURE__ */ f($, { role: "presentation", expanded: y, children: [
|
|
218
|
-
/* @__PURE__ */ t(
|
|
219
|
-
K,
|
|
220
|
-
{
|
|
221
|
-
...r,
|
|
222
|
-
color: (r == null ? void 0 : r.color) || (i == null ? void 0 : i.defaultItemColor) || c,
|
|
223
|
-
size: (r == null ? void 0 : r.size) || (i == null ? void 0 : i.defaultItemSize) || m,
|
|
224
|
-
active: x,
|
|
225
|
-
tabIndex: r != null && r.disabled ? -1 : 0
|
|
226
|
-
}
|
|
227
|
-
),
|
|
228
|
-
y && (r == null ? void 0 : r.items) && /* @__PURE__ */ f(q, { children: [
|
|
229
|
-
/* @__PURE__ */ t(
|
|
230
|
-
Q,
|
|
231
|
-
{
|
|
232
|
-
expanded: y,
|
|
233
|
-
level: e + 1,
|
|
234
|
-
items: r == null ? void 0 : r.items,
|
|
235
|
-
groups: a,
|
|
236
|
-
defaultItemColor: c,
|
|
237
|
-
defaultItemSize: m
|
|
238
|
-
}
|
|
239
|
-
),
|
|
240
|
-
(I || N) && /* @__PURE__ */ t($, { role: "separator", as: "div" })
|
|
241
|
-
] })
|
|
242
|
-
] }, _);
|
|
243
|
-
})
|
|
244
|
-
] }, u);
|
|
245
|
-
}) });
|
|
246
|
-
}, wt = "_item_6aymu_1", $t = "_select_6aymu_6", jt = "_summary_6aymu_13", Tt = "_footer_6aymu_34", Et = "_touchedBy_6aymu_42", St = "_border_6aymu_51", b = {
|
|
247
|
-
item: wt,
|
|
248
|
-
select: $t,
|
|
249
|
-
summary: jt,
|
|
250
|
-
footer: Tt,
|
|
251
|
-
touchedBy: Et,
|
|
252
|
-
border: St
|
|
253
|
-
}, gt = ({
|
|
254
|
-
size: e = "lg",
|
|
255
|
-
variant: n = "neutral",
|
|
256
|
-
loading: o,
|
|
257
|
-
select: a,
|
|
258
|
-
status: c,
|
|
259
|
-
sender: m,
|
|
260
|
-
recipient: d,
|
|
261
|
-
grouped: s,
|
|
262
|
-
updatedAt: u,
|
|
263
|
-
updatedAtLabel: i,
|
|
264
|
-
archivedAt: l,
|
|
265
|
-
archivedAtLabel: h,
|
|
266
|
-
trashedAt: I,
|
|
267
|
-
trashedAtLabel: p,
|
|
268
|
-
label: _,
|
|
269
|
-
dueAt: x,
|
|
270
|
-
dueAtLabel: k,
|
|
271
|
-
seen: r = !1,
|
|
272
|
-
seenBy: y,
|
|
273
|
-
touchedBy: N,
|
|
274
|
-
attachmentsCount: B,
|
|
275
|
-
title: L,
|
|
276
|
-
description: M,
|
|
277
|
-
summary: D,
|
|
278
|
-
...w
|
|
279
|
-
}) => {
|
|
280
|
-
const T = I ? "trashed" : l ? "archived" : n;
|
|
281
|
-
return e === "xs" || e === "sm" ? /* @__PURE__ */ t(v, { ...w, loading: o, size: e, className: b.item, children: /* @__PURE__ */ f(g, { className: b.border, size: e, seen: r, loading: o, children: [
|
|
282
|
-
/* @__PURE__ */ t(G, { loading: o, size: e, title: L, description: D || M }),
|
|
283
|
-
/* @__PURE__ */ t(H, { loading: o, updatedAt: u, updatedAtLabel: i })
|
|
284
|
-
] }) }) : /* @__PURE__ */ t(
|
|
285
|
-
v,
|
|
286
|
-
{
|
|
287
|
-
...w,
|
|
288
|
-
loading: o,
|
|
289
|
-
size: e,
|
|
290
|
-
className: b.item,
|
|
291
|
-
controls: a && /* @__PURE__ */ t(it, { className: b.select, ...a }),
|
|
292
|
-
children: /* @__PURE__ */ f(g, { className: b.border, size: e, seen: r, loading: o, children: [
|
|
293
|
-
/* @__PURE__ */ f(at, { size: e, children: [
|
|
294
|
-
/* @__PURE__ */ t(ct, { loading: o, size: e, variant: T, label: _, seen: r, children: L }),
|
|
295
|
-
/* @__PURE__ */ t(st, { loading: o, size: e, grouped: s, sender: m, recipient: d })
|
|
296
|
-
] }),
|
|
297
|
-
/* @__PURE__ */ t(lt, { loading: o, size: e, children: D || M }),
|
|
298
|
-
/* @__PURE__ */ f("footer", { "data-size": e, className: b.footer, children: [
|
|
299
|
-
/* @__PURE__ */ t(
|
|
300
|
-
H,
|
|
301
|
-
{
|
|
302
|
-
loading: o,
|
|
303
|
-
status: c,
|
|
304
|
-
updatedAt: u,
|
|
305
|
-
updatedAtLabel: i,
|
|
306
|
-
archivedAt: l,
|
|
307
|
-
archivedAtLabel: h,
|
|
308
|
-
trashedAt: I,
|
|
309
|
-
trashedAtLabel: p,
|
|
310
|
-
dueAt: x,
|
|
311
|
-
dueAtLabel: k,
|
|
312
|
-
seenBy: y,
|
|
313
|
-
attachmentsCount: B
|
|
314
|
-
}
|
|
315
|
-
),
|
|
316
|
-
N && /* @__PURE__ */ t(mt, { loading: o, size: "xs", touchedBy: N, className: b.touchedBy })
|
|
317
|
-
] })
|
|
318
|
-
] })
|
|
319
|
-
}
|
|
320
|
-
);
|
|
321
|
-
}, Ht = "_item_1a3bc_1", Ft = {
|
|
322
|
-
item: Ht
|
|
323
|
-
}, qt = ({ as: e = "a", label: n, ...o }) => /* @__PURE__ */ t(v, { className: Ft.item, linkIcon: "chevron-right", ...o, children: typeof n == "function" ? n() : n }), At = ({ type: e, ...n }) => {
|
|
324
|
-
switch (e) {
|
|
325
|
-
case "scope":
|
|
326
|
-
return /* @__PURE__ */ t(qt, { ...n, color: "transparent", tabIndex: -1 });
|
|
327
|
-
case "bookmark":
|
|
328
|
-
return /* @__PURE__ */ t(ut, { ...n, color: "transparent", size: "sm", tabIndex: -1 });
|
|
329
|
-
case "dialog":
|
|
330
|
-
return /* @__PURE__ */ t(gt, { ...n, color: "transparent", size: "sm", tabIndex: -1 });
|
|
331
|
-
case "information":
|
|
332
|
-
return /* @__PURE__ */ t(v, { ...n, color: "transparent", tabIndex: -1, disabled: !0 });
|
|
333
|
-
default:
|
|
334
|
-
return /* @__PURE__ */ t(v, { ...n, color: "transparent", size: "sm", tabIndex: -1 });
|
|
335
|
-
}
|
|
336
|
-
}, _e = J(
|
|
337
|
-
({ className: e, items: n, groups: o = {}, expanded: a }, c) => {
|
|
338
|
-
const { menu: m, setActiveIndex: d } = A({
|
|
339
|
-
items: n,
|
|
340
|
-
groups: o,
|
|
341
|
-
groupByKey: "groupId",
|
|
342
|
-
keyboardEvents: !0
|
|
343
|
-
});
|
|
344
|
-
return /* @__PURE__ */ t(U, { className: e, expanded: a, ref: c, children: m.map((s, u) => /* @__PURE__ */ O(W, { ...s.props, key: u }, /* @__PURE__ */ t("ul", { children: s.items.map((i, l) => {
|
|
345
|
-
const {
|
|
346
|
-
active: h,
|
|
347
|
-
menuIndex: I,
|
|
348
|
-
props: { groupId: p, ..._ }
|
|
349
|
-
} = i;
|
|
350
|
-
return /* @__PURE__ */ t("li", { tabIndex: -1, onMouseEnter: () => d(I), children: /* @__PURE__ */ t(At, { ..._, active: h }) }, l);
|
|
351
|
-
}) }))) });
|
|
352
|
-
}
|
|
353
|
-
);
|
|
354
|
-
export {
|
|
355
|
-
_e as A,
|
|
356
|
-
ut as B,
|
|
357
|
-
R as C,
|
|
358
|
-
gt as D,
|
|
359
|
-
Dt as L,
|
|
360
|
-
Q as M,
|
|
361
|
-
qt as S,
|
|
362
|
-
kt as a,
|
|
363
|
-
v as b,
|
|
364
|
-
It as c,
|
|
365
|
-
Bt as d,
|
|
366
|
-
At as e
|
|
367
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._toggle_ya7jy_1{position:relative}._button_ya7jy_5{display:flex;align-items:center;justify-content:center;width:2.75rem;padding:.625rem;border-radius:50%}._icon_ya7jy_14{font-size:1.5rem}._dropdown_ya7jy_18{display:none}._dropdown_ya7jy_18[aria-expanded=true]{display:block;position:absolute;right:0;z-index:2}._dropdown_ya7jy_18{margin-top:.5rem;padding:0 .5rem;background-color:var(--neutral-background-default);border-radius:2px;box-shadow:0 0 1px #00000026,0 1px 2px #0000001f,0 2px 4px #0000001a}._controls_n31lc_1{display:flex;align-items:center;gap:.625rem}._controls_n31lc_1:empty{display:none}._linkText_n31lc_11{font-size:.875rem;white-space:nowrap}._linkIcon_n31lc_16{font-size:1.5rem}._menu_1u5v2_1{position:relative;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background-color:transparent;margin-right:.375rem}._header_pqany_1{position:relative;width:100%;display:flex;align-items:center}._link_pqany_8{width:100%;align-self:stretch;padding:0;border:0;background-color:transparent;color:inherit;font:inherit;text-align:inherit;text-decoration:none;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;user-select:none;cursor:pointer}._link_pqany_8{flex-grow:1;display:flex;align-items:center;gap:.625rem;padding:.25rem .625rem}._link_pqany_8[aria-disabled=true]{pointer-events:none}._link_pqany_8:not([aria-disabled=true]):hover h2{text-decoration:underline}._link_pqany_8[data-size=xs]{min-height:36px}._link_pqany_8[data-size=sm]{min-height:44px}._link_pqany_8[data-size=md]{min-height:56px}._link_pqany_8[data-size=lg]{min-height:64px}._link_pqany_8[data-size=xl]{min-height:72px}._item_6aymu_1[data-size=lg],._item_6aymu_1[data-size=md]{padding:1em}._select_6aymu_6{position:absolute;top:0;right:0;margin:.375rem}._summary_6aymu_13{font-size:1rem;line-height:1.35;margin:0;font-weight:400}._summary_6aymu_13[data-size=lg]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;margin-top:.5rem}._summary_6aymu_13[data-size=md]{display:none}._footer_6aymu_34{width:100%;margin-top:1rem;display:flex;flex-direction:column;row-gap:1rem}._touchedBy_6aymu_42{position:absolute;right:0;bottom:0;margin:8px}._border_6aymu_51[data-size=lg],._border_6aymu_51[data-size=md]{padding-left:1rem}._border_6aymu_51[data-size=xs],._border_6aymu_51[data-size=sm]{width:100%;flex-direction:row;align-items:center;padding-left:.75rem}._item_1a3bc_1{box-shadow:none}._item_1a3bc_1 mark{background-color:transparent;font-weight:500;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}._item_1a3bc_1 mark:before{content:"«"}._item_1a3bc_1 mark:after{content:"»"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { DropdownPlacement } from '../';
|
|
3
|
-
export type ContextMenuSize = 'sm' | 'md';
|
|
4
|
-
export interface ContextMenuBaseProps {
|
|
5
|
-
placement: DropdownPlacement;
|
|
6
|
-
expanded: boolean;
|
|
7
|
-
size?: ContextMenuSize;
|
|
8
|
-
className?: string;
|
|
9
|
-
onToggle?: () => void;
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export declare const ContextMenuBase: ({ size, placement, expanded, className, onToggle, children, }: ContextMenuBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "../../index-L8X2o7IH.js";
|
|
3
|
-
import "../Icon/SvgIcon.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "../Button/IconButton.js";
|
|
6
|
-
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { c as s } from "../../Autocomplete-Cb9fQrzy.js";
|
|
8
|
-
import "../Dropdown/DropdownBase.js";
|
|
9
|
-
export {
|
|
10
|
-
s as ContextMenuBase
|
|
11
|
-
};
|