@altinn/altinn-components 0.7.4 → 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/GlobalMenuBase.css +1 -1
- package/dist/assets/Header.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/LayoutBase.css +1 -1
- 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.d.ts +5 -2
- package/dist/components/GlobalMenu/AccountMenu.js +35 -27
- package/dist/components/GlobalMenu/AccountMenu.stories.js +19 -2
- package/dist/components/GlobalMenu/BackButton.js +1 -1
- package/dist/components/GlobalMenu/GlobalMenu.js +1 -1
- package/dist/components/GlobalMenu/GlobalMenu.stories.js +6 -12
- package/dist/components/GlobalMenu/GlobalMenuBase.js +9 -9
- package/dist/components/Header/Header.js +13 -13
- 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 +131 -42
- package/dist/components/Layout/LayoutBase.js +3 -3
- 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-BNV2UfH3.js +0 -284
- 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
|
@@ -0,0 +1,368 @@
|
|
|
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: l, toggleId: s } = X();
|
|
65
|
+
return /* @__PURE__ */ t(
|
|
66
|
+
It,
|
|
67
|
+
{
|
|
68
|
+
size: o,
|
|
69
|
+
placement: n,
|
|
70
|
+
className: c,
|
|
71
|
+
expanded: l === 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: l,
|
|
98
|
+
tabIndex: s,
|
|
99
|
+
collapsible: u,
|
|
100
|
+
expanded: i,
|
|
101
|
+
size: d = "sm",
|
|
102
|
+
color: h,
|
|
103
|
+
title: I,
|
|
104
|
+
description: p,
|
|
105
|
+
icon: _,
|
|
106
|
+
avatar: b,
|
|
107
|
+
avatarGroup: N,
|
|
108
|
+
linkIcon: r,
|
|
109
|
+
linkText: y,
|
|
110
|
+
badge: x,
|
|
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": d, "data-color": h, "aria-expanded": i, children: [
|
|
118
|
+
a && /* @__PURE__ */ t(rt, { ...a, size: d }),
|
|
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()), l == null || l(S);
|
|
126
|
+
},
|
|
127
|
+
onClick: m,
|
|
128
|
+
tabIndex: s,
|
|
129
|
+
"data-size": d,
|
|
130
|
+
"data-color": h,
|
|
131
|
+
"aria-disabled": n || o,
|
|
132
|
+
children: [
|
|
133
|
+
/* @__PURE__ */ t(
|
|
134
|
+
ot,
|
|
135
|
+
{
|
|
136
|
+
loading: n,
|
|
137
|
+
size: d,
|
|
138
|
+
color: h,
|
|
139
|
+
icon: _,
|
|
140
|
+
avatar: b,
|
|
141
|
+
avatarGroup: N
|
|
142
|
+
}
|
|
143
|
+
),
|
|
144
|
+
/* @__PURE__ */ t(G, { loading: n, size: d, title: I, description: p, children: D }),
|
|
145
|
+
/* @__PURE__ */ t(kt, { linkIcon: T, linkText: y, badge: x })
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
),
|
|
149
|
+
B && /* @__PURE__ */ t(Bt, { ...B }) || L
|
|
150
|
+
] });
|
|
151
|
+
}, v = ({
|
|
152
|
+
as: e = "a",
|
|
153
|
+
className: n,
|
|
154
|
+
color: o,
|
|
155
|
+
loading: a,
|
|
156
|
+
collapsible: c,
|
|
157
|
+
expanded: m,
|
|
158
|
+
size: l = "sm",
|
|
159
|
+
icon: s,
|
|
160
|
+
avatar: u,
|
|
161
|
+
avatarGroup: i,
|
|
162
|
+
title: d,
|
|
163
|
+
description: h,
|
|
164
|
+
badge: I,
|
|
165
|
+
linkText: p,
|
|
166
|
+
linkIcon: _,
|
|
167
|
+
menu: b,
|
|
168
|
+
select: N,
|
|
169
|
+
controls: r,
|
|
170
|
+
children: y,
|
|
171
|
+
...x
|
|
172
|
+
}) => /* @__PURE__ */ t(Y, { size: l, color: o, loading: a, ...x, children: /* @__PURE__ */ t(
|
|
173
|
+
Dt,
|
|
174
|
+
{
|
|
175
|
+
className: n,
|
|
176
|
+
loading: a,
|
|
177
|
+
collapsible: c,
|
|
178
|
+
expanded: m,
|
|
179
|
+
select: N,
|
|
180
|
+
size: l,
|
|
181
|
+
title: d,
|
|
182
|
+
description: h,
|
|
183
|
+
icon: s,
|
|
184
|
+
avatar: u,
|
|
185
|
+
avatarGroup: i,
|
|
186
|
+
linkIcon: _,
|
|
187
|
+
linkText: p,
|
|
188
|
+
badge: I,
|
|
189
|
+
controls: r,
|
|
190
|
+
menu: b,
|
|
191
|
+
...x,
|
|
192
|
+
children: y
|
|
193
|
+
}
|
|
194
|
+
) }), Q = ({
|
|
195
|
+
level: e = 0,
|
|
196
|
+
expanded: n,
|
|
197
|
+
items: o,
|
|
198
|
+
groups: a = {},
|
|
199
|
+
defaultItemColor: c,
|
|
200
|
+
defaultItemSize: m
|
|
201
|
+
}) => {
|
|
202
|
+
const { menu: l } = A({
|
|
203
|
+
items: o,
|
|
204
|
+
groups: a,
|
|
205
|
+
groupByKey: "groupId",
|
|
206
|
+
keyboardEvents: !1
|
|
207
|
+
});
|
|
208
|
+
return /* @__PURE__ */ t(P, { expanded: n, children: l.map((s, u) => {
|
|
209
|
+
const i = (s == null ? void 0 : s.props) || {}, { title: d, divider: h = !0 } = i, I = l[u + 1];
|
|
210
|
+
return /* @__PURE__ */ f(V, { children: [
|
|
211
|
+
(e > 0 || u) && h ? /* @__PURE__ */ t($, { role: "separator" }) : "",
|
|
212
|
+
d && /* @__PURE__ */ t($, { children: /* @__PURE__ */ t(z, { title: d }) }),
|
|
213
|
+
s == null ? void 0 : s.items.filter((p) => {
|
|
214
|
+
var _;
|
|
215
|
+
return !((_ = p.props) != null && _.hidden);
|
|
216
|
+
}).map((p, _) => {
|
|
217
|
+
const { active: b } = p, { groupId: N, ...r } = p.props || {}, { expanded: y } = r, x = s == null ? void 0 : s.items[_ + 1];
|
|
218
|
+
return /* @__PURE__ */ f($, { role: "presentation", expanded: y, children: [
|
|
219
|
+
/* @__PURE__ */ t(
|
|
220
|
+
K,
|
|
221
|
+
{
|
|
222
|
+
...r,
|
|
223
|
+
color: (r == null ? void 0 : r.color) || (i == null ? void 0 : i.defaultItemColor) || c,
|
|
224
|
+
size: (r == null ? void 0 : r.size) || (i == null ? void 0 : i.defaultItemSize) || m,
|
|
225
|
+
active: b,
|
|
226
|
+
tabIndex: r != null && r.disabled ? -1 : 0
|
|
227
|
+
}
|
|
228
|
+
),
|
|
229
|
+
y && (r == null ? void 0 : r.items) && /* @__PURE__ */ f(q, { children: [
|
|
230
|
+
/* @__PURE__ */ t(
|
|
231
|
+
Q,
|
|
232
|
+
{
|
|
233
|
+
expanded: y,
|
|
234
|
+
level: e + 1,
|
|
235
|
+
items: r == null ? void 0 : r.items,
|
|
236
|
+
groups: a,
|
|
237
|
+
defaultItemColor: c,
|
|
238
|
+
defaultItemSize: m
|
|
239
|
+
}
|
|
240
|
+
),
|
|
241
|
+
(I || x) && /* @__PURE__ */ t($, { role: "separator", as: "div" })
|
|
242
|
+
] })
|
|
243
|
+
] }, _);
|
|
244
|
+
})
|
|
245
|
+
] }, u);
|
|
246
|
+
}) });
|
|
247
|
+
}, wt = "_item_6aymu_1", $t = "_select_6aymu_6", jt = "_summary_6aymu_13", Tt = "_footer_6aymu_34", Et = "_touchedBy_6aymu_42", St = "_border_6aymu_51", k = {
|
|
248
|
+
item: wt,
|
|
249
|
+
select: $t,
|
|
250
|
+
summary: jt,
|
|
251
|
+
footer: Tt,
|
|
252
|
+
touchedBy: Et,
|
|
253
|
+
border: St
|
|
254
|
+
}, gt = ({
|
|
255
|
+
size: e = "lg",
|
|
256
|
+
variant: n = "neutral",
|
|
257
|
+
loading: o,
|
|
258
|
+
select: a,
|
|
259
|
+
status: c,
|
|
260
|
+
sender: m,
|
|
261
|
+
recipient: l,
|
|
262
|
+
grouped: s,
|
|
263
|
+
updatedAt: u,
|
|
264
|
+
updatedAtLabel: i,
|
|
265
|
+
archivedAt: d,
|
|
266
|
+
archivedAtLabel: h,
|
|
267
|
+
trashedAt: I,
|
|
268
|
+
trashedAtLabel: p,
|
|
269
|
+
label: _,
|
|
270
|
+
dueAt: b,
|
|
271
|
+
dueAtLabel: N,
|
|
272
|
+
seen: r = !1,
|
|
273
|
+
seenBy: y,
|
|
274
|
+
touchedBy: x,
|
|
275
|
+
attachmentsCount: B,
|
|
276
|
+
title: L,
|
|
277
|
+
description: M,
|
|
278
|
+
summary: D,
|
|
279
|
+
...w
|
|
280
|
+
}) => {
|
|
281
|
+
const T = I ? "trashed" : d ? "archived" : n;
|
|
282
|
+
return e === "xs" || e === "sm" ? /* @__PURE__ */ t(v, { ...w, loading: o, size: e, className: k.item, children: /* @__PURE__ */ f(g, { className: k.border, size: e, seen: r, loading: o, children: [
|
|
283
|
+
/* @__PURE__ */ t(G, { loading: o, size: e, title: L, description: D || M }),
|
|
284
|
+
/* @__PURE__ */ t(H, { loading: o, updatedAt: u, updatedAtLabel: i })
|
|
285
|
+
] }) }) : /* @__PURE__ */ t(
|
|
286
|
+
v,
|
|
287
|
+
{
|
|
288
|
+
...w,
|
|
289
|
+
loading: o,
|
|
290
|
+
size: e,
|
|
291
|
+
className: k.item,
|
|
292
|
+
controls: a && /* @__PURE__ */ t(it, { className: k.select, ...a }),
|
|
293
|
+
children: /* @__PURE__ */ f(g, { className: k.border, size: e, seen: r, loading: o, children: [
|
|
294
|
+
/* @__PURE__ */ f(at, { size: e, children: [
|
|
295
|
+
/* @__PURE__ */ t(ct, { loading: o, size: e, variant: T, label: _, seen: r, children: L }),
|
|
296
|
+
/* @__PURE__ */ t(st, { loading: o, size: e, grouped: s, sender: m, recipient: l })
|
|
297
|
+
] }),
|
|
298
|
+
/* @__PURE__ */ t(lt, { loading: o, size: e, children: D || M }),
|
|
299
|
+
/* @__PURE__ */ f("footer", { "data-size": e, className: k.footer, children: [
|
|
300
|
+
/* @__PURE__ */ t(
|
|
301
|
+
H,
|
|
302
|
+
{
|
|
303
|
+
loading: o,
|
|
304
|
+
status: c,
|
|
305
|
+
updatedAt: u,
|
|
306
|
+
updatedAtLabel: i,
|
|
307
|
+
archivedAt: d,
|
|
308
|
+
archivedAtLabel: h,
|
|
309
|
+
trashedAt: I,
|
|
310
|
+
trashedAtLabel: p,
|
|
311
|
+
dueAt: b,
|
|
312
|
+
dueAtLabel: N,
|
|
313
|
+
seenBy: y,
|
|
314
|
+
attachmentsCount: B
|
|
315
|
+
}
|
|
316
|
+
),
|
|
317
|
+
x && /* @__PURE__ */ t(mt, { loading: o, size: "xs", touchedBy: x, className: k.touchedBy })
|
|
318
|
+
] })
|
|
319
|
+
] })
|
|
320
|
+
}
|
|
321
|
+
);
|
|
322
|
+
}, Ht = "_item_1a3bc_1", Ft = {
|
|
323
|
+
item: Ht
|
|
324
|
+
}, 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 }) => {
|
|
325
|
+
switch (e) {
|
|
326
|
+
case "scope":
|
|
327
|
+
return /* @__PURE__ */ t(qt, { ...n, color: "transparent", tabIndex: -1 });
|
|
328
|
+
case "bookmark":
|
|
329
|
+
return /* @__PURE__ */ t(ut, { ...n, color: "transparent", size: "sm", tabIndex: -1 });
|
|
330
|
+
case "dialog":
|
|
331
|
+
return /* @__PURE__ */ t(gt, { ...n, color: "transparent", size: "sm", tabIndex: -1 });
|
|
332
|
+
case "information":
|
|
333
|
+
return /* @__PURE__ */ t(v, { ...n, color: "transparent", tabIndex: -1, disabled: !0 });
|
|
334
|
+
default:
|
|
335
|
+
return /* @__PURE__ */ t(v, { ...n, color: "transparent", size: "sm", tabIndex: -1 });
|
|
336
|
+
}
|
|
337
|
+
}, _e = J(
|
|
338
|
+
({ className: e, items: n, groups: o = {}, expanded: a }, c) => {
|
|
339
|
+
const { menu: m, setActiveIndex: l } = A({
|
|
340
|
+
items: n,
|
|
341
|
+
groups: o,
|
|
342
|
+
groupByKey: "groupId",
|
|
343
|
+
keyboardEvents: !0
|
|
344
|
+
});
|
|
345
|
+
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, d) => {
|
|
346
|
+
const {
|
|
347
|
+
active: h,
|
|
348
|
+
menuIndex: I,
|
|
349
|
+
props: { groupId: p, ..._ }
|
|
350
|
+
} = i;
|
|
351
|
+
return /* @__PURE__ */ t("li", { tabIndex: -1, onMouseEnter: () => l(I), children: /* @__PURE__ */ t(At, { ..._, active: h }) }, d);
|
|
352
|
+
}) }))) });
|
|
353
|
+
}
|
|
354
|
+
);
|
|
355
|
+
export {
|
|
356
|
+
_e as A,
|
|
357
|
+
ut as B,
|
|
358
|
+
R as C,
|
|
359
|
+
gt as D,
|
|
360
|
+
Dt as L,
|
|
361
|
+
Q as M,
|
|
362
|
+
qt as S,
|
|
363
|
+
kt as a,
|
|
364
|
+
v as b,
|
|
365
|
+
It as c,
|
|
366
|
+
Bt as d,
|
|
367
|
+
At as e
|
|
368
|
+
};
|
|
@@ -1 +1 @@
|
|
|
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}.
|
|
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 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._nav_ratd2_1{background-color:#fff;display:flex;flex-direction:column}._footer_ratd2_7{padding:1rem .5rem;display:flex;width:100%;flex-direction:column;align-items:stretch}._drawer_ratd2_15[aria-expanded=true]{display:block;padding:.5rem;z-index:2}._dropdown_ratd2_21[aria-expanded=true]{display:none}@media (min-width: 1024px){._drawer_ratd2_15[aria-expanded=true]{display:none}._dropdown_ratd2_21[aria-expanded=true]{display:block;z-index:2}}
|
package/dist/assets/Header.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._drawer_ft5v3_1[aria-expanded=true]{display:block}._dropdown_ft5v3_5[aria-expanded=true]{display:none}@media (min-width: 1024px){._dropdown_ft5v3_5[aria-expanded=true]{width:320px;display:block}._drawer_ft5v3_1[aria-expanded=true]{display:none}}
|
package/dist/assets/Heading.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._heading_1ay9p_1{margin:0}._heading_1ay9p_1[data-size=xs]{font-size:.875rem;font-weight:400;line-height:1.5rem;color:var(--theme-text-subtle);margin-bottom:.375rem}._heading_1ay9p_1[data-size=sm]{font-size:1.125rem;font-weight:500;line-height:1.5rem}._heading_1ay9p_1[data-size=md]{font-size:1.25rem;font-weight:500;line-height:1.5rem}._heading_1ay9p_1[data-size=lg]{font-size:1.5rem;font-weight:500;line-height:1.5rem}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._item_17rsb_1{display:flex}._sidebar_17rsb_5{flex-shrink:0;display:flex;flex-direction:column}._border_17rsb_11{flex-grow:1;padding-left:1.5rem;padding-top:0;margin-left:1rem;padding-bottom:1.5rem}._content_17rsb_19{flex-grow:1;padding:.375rem 0}._body_17rsb_24{margin:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._media_1dlcp_3{flex-shrink:0;width:2.25rem;height:2.25rem;display:inline-flex;align-items:center;justify-content:center}._icon_1dlcp_12{font-size:1.5rem}._dot_1dlcp_16{background-color:var(--theme-surface-active);width:.875rem;height:.875rem;border-radius:50%}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._base_wqztk_1{position:relative;display:flex;flex-direction:column;min-height:100vh;overflow:hidden}._base_wqztk_1[data-theme]{background-color:var(--theme-background-subtle)}._base_wqztk_1[data-current-id=menu]{background-color:var(--theme-background-default)}
|
package/dist/assets/ListBase.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._list_1xr8s_1{display:flex;flex-direction:column;width:100%}._list_1xr8s_1[data-spacing=xs]{row-gap:2px}._list_1xr8s_1[data-spacing=sm]{row-gap:4px}._list_1xr8s_1[data-spacing=md]{row-gap:8px}._list_1xr8s_1[data-spacing=lg]{row-gap:16px}._list_1xr8s_1[data-color=white]{background-color:#fff}._list_1xr8s_1[data-shadow=xs]{box-shadow:var(--ds-shadow-xs)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._item_1isz3_1{position:relative;width:100%;display:flex;flex-direction:column}._item_1isz3_1[aria-disabled=true]{pointer-events:none}._item_1isz3_1[data-shadow=xs]{box-shadow:var(--ds-shadow-xs)}._item_1isz3_1:not([aria-disabled=true]):hover{outline:2px solid var(--theme-border-strong)}._item_1isz3_1[data-color=default]{background-color:var(--theme-background-default)}._item_1isz3_1[data-color=accent]{background-color:var(--theme-surface-default)}._item_1isz3_1[data-color=accent]:hover{background-color:var(--theme-surface-hover)}._item_1isz3_1[data-active=true]{background-color:var(--theme-surface-default)}._item_1isz3_1[aria-expanded=true]{outline:2px solid}._item_1isz3_1[aria-selected=true]{background-color:var(--theme-background-subtle);outline:2px solid}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_1uuk4_3{width:100%}._label_1uuk4_3[data-size=xs],._label_1uuk4_3[data-size=sm]{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}._label_1uuk4_3[data-size=md],._label_1uuk4_3[data-size=lg],._label_1uuk4_3[data-size=xl]{display:flex;flex-direction:column;row-gap:.125rem}._title_1uuk4_36{display:inline;font-weight:600;margin:0}._description_1uuk4_42{display:inline;font-weight:400;color:var(--theme-text-subtle);margin:0}._title_1uuk4_36[data-size=xs],._description_1uuk4_42[data-size=xs]{font-size:.875rem;line-height:1.25}._title_1uuk4_36[data-size=sm]{font-size:1rem;line-height:1.25}._description_1uuk4_42[data-size=sm]{font-size:.875rem;line-height:1.25rem}._title_1uuk4_36[data-size=md]{font-size:1rem;line-height:1.25}._title_1uuk4_36[data-size=lg]{line-height:1.25;font-size:1.125rem}._description_1uuk4_42[data-size=md],._description_1uuk4_42[data-size=lg]{font-size:.875em;line-height:1.25}
|
package/dist/assets/MetaBase.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._meta_1hcve_1{display:inline-flex;align-items:center;flex-wrap:wrap;column-gap:.5rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._item_2agc0_1{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}._item_2agc0_1{border:1px;border-radius:2px;color:var(--neutral-text-subtle);display:inline-flex;align-items:center;column-gap:.25em;white-space:nowrap;text-decoration:none}._item_2agc0_1 strong{font-weight:500;color:var(--neutral-text-default)}button._item_2agc0_1:hover,a._item_2agc0_1:hover{color:var(--theme-base-hover);cursor:pointer}._item_2agc0_1[data-size=xs]{font-size:.875rem;height:1.5rem}._item_2agc0_1[data-size=sm]{font-size:1rem}._item_2agc0_1[data-size=md]{font-size:1.125rem}._item_2agc0_1[data-variant=text]{border-color:transparent;padding-left:0;padding-right:0}._item_2agc0_1[data-variant=outline]{border-color:var(--theme-border-subtle);border-style:solid}._item_2agc0_1[data-variant=rounded]{border-color:var(--theme-border-subtle);border-style:solid;border-radius:.75rem}._item_2agc0_1[data-variant=dotted]{border-color:var(--theme-base-hover);border-style:dashed}._item_2agc0_1[data-variant=solid]{border-color:var(--theme-base-hover);background-color:var(--theme-base-hover);color:#fff}._item_2agc0_1[data-variant=rounded],._item_2agc0_1[data-variant=outline],._item_2agc0_1[data-variant=dotted],._item_2agc0_1[data-variant=solid]{padding:0 .25em}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_8r5nb_1{display:inline;font-weight:400}._label_8r5nb_1[data-size=xs]{font-size:.875rem}._label_8r5nb_1[data-size=sm]{font-size:1rem}._label_8r5nb_1[data-size=md]{font-size:1.125rem}._label_8r5nb_1[data-variant=rounded],._label_8r5nb_1[data-variant=outline],._label_8r5nb_1[data-variant=dotted],._label_8r5nb_1[data-variant=solid]{font-size:.875em;font-weight:500;padding:0 .25em}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_1q65r_1{display:flex;flex-wrap:wrap;align-items:center;column-gap:.25rem;row-gap:.25rem}._group_1q65r_9{display:inline-flex;align-items:center;column-gap:.25rem}._plus_1q65r_15{color:var(--theme-text-subtle)}._item_1q65r_19{font-size:.875em;display:block;overflow:hidden}._item_1q65r_19[data-type=search]{background-color:transparent;font-weight:500;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.25em}._item_1q65r_19[data-type=search]:before{content:"«"}._item_1q65r_19[data-type=search]:after{content:"»"}._item_1q65r_19[data-type=filter]{background-color:transparent;border:1px solid;font-weight:500;padding:.25em .5em;border-radius:2px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._body_1m345_1{padding:1rem}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { IconName } from '../Icon';
|
|
2
|
+
import { TypographySize } from '../Typography';
|
|
2
3
|
export interface AttachmentLinkProps {
|
|
4
|
+
size?: TypographySize;
|
|
3
5
|
/** Link url */
|
|
4
6
|
href: string;
|
|
5
7
|
/** Label (filename) */
|
|
@@ -7,4 +9,4 @@ export interface AttachmentLinkProps {
|
|
|
7
9
|
/** Icon */
|
|
8
10
|
icon?: IconName;
|
|
9
11
|
}
|
|
10
|
-
export declare const AttachmentLink: ({ icon, href, label }: AttachmentLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const AttachmentLink: ({ size, icon, href, label }: AttachmentLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Icon as
|
|
1
|
+
import { jsxs as c, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as t } from "../Icon/Icon.js";
|
|
3
3
|
import "../Icon/SvgIcon.js";
|
|
4
4
|
import "../../index-L8X2o7IH.js";
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/* @__PURE__ */ l(
|
|
5
|
+
import { Typography as e } from "../Typography/Typography.js";
|
|
6
|
+
import '../../assets/AttachmentLink.css';const r = "_link_dd2g5_1", m = "_label_dd2g5_12", p = "_icon_dd2g5_18", n = {
|
|
7
|
+
link: r,
|
|
8
|
+
label: m,
|
|
9
|
+
icon: p
|
|
10
|
+
}, f = ({ size: o = "lg", icon: s = "file", href: i, label: a }) => /* @__PURE__ */ c(e, { as: "a", href: i, size: o, className: n.link, children: [
|
|
11
|
+
/* @__PURE__ */ l(t, { name: s, className: n.icon }),
|
|
12
|
+
/* @__PURE__ */ l("span", { className: n.label, children: a })
|
|
12
13
|
] });
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
f as AttachmentLink
|
|
15
16
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { AttachmentLink as t } from "./AttachmentLink.js";
|
|
2
2
|
const e = {
|
|
3
|
-
title: "
|
|
3
|
+
title: "Attachment/AttachmentLink",
|
|
4
4
|
component: t,
|
|
5
5
|
tags: ["autodocs"],
|
|
6
6
|
parameters: {},
|
|
7
7
|
args: {
|
|
8
8
|
label: "Document.pdf"
|
|
9
9
|
}
|
|
10
|
-
},
|
|
10
|
+
}, n = {
|
|
11
11
|
args: {}
|
|
12
12
|
};
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
n as Default,
|
|
15
15
|
e as default
|
|
16
16
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createElement as l } from "react";
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
2
|
import { AttachmentLink as n } from "./AttachmentLink.js";
|
|
4
|
-
import '../../assets/AttachmentList.css';const
|
|
5
|
-
list:
|
|
6
|
-
item:
|
|
7
|
-
},
|
|
3
|
+
import '../../assets/AttachmentList.css';const r = "_list_xei16_1", m = "_item_xei16_9", l = {
|
|
4
|
+
list: r,
|
|
5
|
+
item: m
|
|
6
|
+
}, o = ({ size: e, items: i }) => i.length ? /* @__PURE__ */ t("ul", { className: l.list, "data-size": e, children: i.map((s) => /* @__PURE__ */ t("li", { className: l.item, children: /* @__PURE__ */ t(n, { ...s, size: e }) }, s.href)) }) : null;
|
|
8
7
|
export {
|
|
9
|
-
|
|
8
|
+
o as AttachmentList
|
|
10
9
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AttachmentLinkProps } from '../Attachment';
|
|
2
|
+
export interface AttachmentSectionProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
items?: AttachmentLinkProps[];
|
|
5
|
+
}
|
|
6
|
+
export declare const AttachmentSection: ({ title, items }: AttachmentSectionProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "../../index-L8X2o7IH.js";
|
|
3
|
+
import "../Icon/SvgIcon.js";
|
|
4
|
+
import { Heading as e } from "../Typography/Heading.js";
|
|
5
|
+
import { AttachmentList as i } from "./AttachmentList.js";
|
|
6
|
+
const s = ({ title: n = "Attachments", items: t }) => t != null && t.length ? /* @__PURE__ */ o("section", { children: [
|
|
7
|
+
/* @__PURE__ */ r(e, { as: "h2", size: "xs", children: n }),
|
|
8
|
+
/* @__PURE__ */ r(i, { size: "lg", items: t })
|
|
9
|
+
] }) : null;
|
|
10
|
+
export {
|
|
11
|
+
s as AttachmentSection
|
|
12
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AttachmentSection as t } from "./AttachmentSection.js";
|
|
2
2
|
const a = {
|
|
3
|
-
title: "
|
|
4
|
-
component:
|
|
3
|
+
title: "Attachment/AttachmentSection",
|
|
4
|
+
component: t,
|
|
5
5
|
tags: ["autodocs"],
|
|
6
6
|
args: {
|
|
7
7
|
title: "6 vedlegg",
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { AttachmentLink as
|
|
1
|
+
import { AttachmentLink as o } from "./AttachmentLink.js";
|
|
2
2
|
import { AttachmentList as r } from "./AttachmentList.js";
|
|
3
|
+
import { AttachmentSection as c } from "./AttachmentSection.js";
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
r as AttachmentList
|
|
5
|
+
o as AttachmentLink,
|
|
6
|
+
r as AttachmentList,
|
|
7
|
+
c as AttachmentSection
|
|
6
8
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { ListSpacing } from '..';
|
|
2
1
|
import { BookmarksListItemProps } from './BookmarksListItem';
|
|
3
2
|
export interface BookmarksListProps {
|
|
4
3
|
items: BookmarksListItemProps[];
|
|
5
|
-
spacing: ListSpacing;
|
|
6
4
|
}
|
|
7
|
-
export declare const BookmarksList: ({ items
|
|
5
|
+
export declare const BookmarksList: ({ items }: BookmarksListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createElement as
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
3
|
import "../../index-L8X2o7IH.js";
|
|
4
4
|
import "../Icon/SvgIcon.js";
|
|
5
|
-
import { B as
|
|
5
|
+
import { B as p } from "../../Autocomplete-DQCs4_zv.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { ListBase as
|
|
8
|
-
const
|
|
7
|
+
import { ListBase as i } from "../List/ListBase.js";
|
|
8
|
+
const B = ({ items: r }) => /* @__PURE__ */ m(i, { spacing: "xs", children: r == null ? void 0 : r.map((o) => /* @__PURE__ */ t(p, { ...o, key: o.id })) });
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
B as BookmarksList
|
|
11
11
|
};
|