@altinn/altinn-components 0.31.0 → 0.32.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/ModalBase.css +1 -0
- package/dist/components/ActivityLog/ActivityLog.js +24 -8
- package/dist/components/ActivityLog/ActivityLogItem.js +4 -5
- package/dist/components/ActivityLog/ActivityLogSegment.js +17 -0
- package/dist/components/ActivityLog/index.js +6 -4
- package/dist/components/Dialog/Dialog.js +33 -11
- package/dist/components/Dialog/DialogActivityLog.js +10 -4
- package/dist/components/Dialog/DialogBody.js +13 -32
- package/dist/components/Dialog/DialogHeader.js +31 -23
- package/dist/components/Dialog/DialogMetadata.js +117 -72
- package/dist/components/Dialog/index.js +5 -5
- package/dist/components/Modal/ModalBase.js +37 -0
- package/dist/components/Modal/ModalBody.js +11 -0
- package/dist/components/Modal/ModalHeader.js +30 -0
- package/dist/components/Modal/index.js +8 -0
- package/dist/components/index.js +71 -63
- package/dist/index.js +101 -93
- package/dist/types/lib/components/ActivityLog/ActivityLog.d.ts +8 -3
- package/dist/types/lib/components/ActivityLog/ActivityLog.stories.d.ts +1 -0
- package/dist/types/lib/components/ActivityLog/ActivityLogItem.d.ts +3 -2
- package/dist/types/lib/components/ActivityLog/ActivityLogSegment.d.ts +11 -0
- package/dist/types/lib/components/ActivityLog/index.d.ts +1 -0
- package/dist/types/lib/components/Button/Button.stories.d.ts +0 -1
- package/dist/types/lib/components/Dialog/Dialog.d.ts +13 -11
- package/dist/types/lib/components/Dialog/Dialog.stories.d.ts +5 -3
- package/dist/types/lib/components/Dialog/DialogActivityLog.d.ts +7 -10
- package/dist/types/lib/components/Dialog/DialogBody.d.ts +5 -17
- package/dist/types/lib/components/Dialog/DialogBody.stories.d.ts +1 -3
- package/dist/types/lib/components/Dialog/DialogHeader.d.ts +5 -3
- package/dist/types/lib/components/Dialog/DialogHeader.stories.d.ts +3 -1
- package/dist/types/lib/components/Dialog/DialogHistory.stories.d.ts +0 -2
- package/dist/types/lib/components/Dialog/DialogMetadata.d.ts +7 -2
- package/dist/types/lib/components/Dialog/DialogMetadata.stories.d.ts +5 -8
- package/dist/types/lib/components/Modal/ModalBase.d.ts +11 -0
- package/dist/types/lib/components/Modal/ModalBase.stories.d.ts +9 -0
- package/dist/types/lib/components/Modal/ModalBody.d.ts +6 -0
- package/dist/types/lib/components/Modal/ModalHeader.d.ts +9 -0
- package/dist/types/lib/components/Modal/index.d.ts +3 -0
- package/dist/types/lib/components/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/DialogActivityLog-BoPREh7Y.js +0 -37
- package/dist/components/Dialog/DialogActivity.js +0 -32
- package/dist/types/lib/components/Dialog/DialogActivity.d.ts +0 -22
- package/dist/types/lib/components/Dialog/DialogListItem.stories.d.ts +0 -260
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { SizeEnum as e } from "./types/size.js";
|
|
2
2
|
import { AttachmentLink as m } from "./components/Attachment/AttachmentLink.js";
|
|
3
3
|
import { AttachmentList as p } from "./components/Attachment/AttachmentList.js";
|
|
4
|
-
import { Avatar as f, isAvatarProps as
|
|
4
|
+
import { Avatar as f, isAvatarProps as i } from "./components/Avatar/Avatar.js";
|
|
5
5
|
import { AvatarGroup as n, isAvatarGroupProps as c } from "./components/Avatar/AvatarGroup.js";
|
|
6
6
|
import { AccountMenu as u } from "./components/Account/AccountMenu.js";
|
|
7
|
-
import { AccountListItem as
|
|
8
|
-
import { AccountList as
|
|
7
|
+
import { AccountListItem as d } from "./components/Account/AccountListItem.js";
|
|
8
|
+
import { AccountList as g } from "./components/Account/AccountList.js";
|
|
9
9
|
import { Badge as I } from "./components/Badge/Badge.js";
|
|
10
10
|
import { Banner as b, BannerColorEnum as A } from "./components/Banner/Banner.js";
|
|
11
|
-
import { BookmarksListItem as
|
|
11
|
+
import { BookmarksListItem as T } from "./components/Bookmarks/BookmarksListItem.js";
|
|
12
12
|
import { EditableBookmark as k } from "./components/Bookmarks/EditableBookmark.js";
|
|
13
13
|
import { BookmarksSection as C } from "./components/Bookmarks/BookmarksSection.js";
|
|
14
14
|
import { ButtonBase as H } from "./components/Button/ButtonBase.js";
|
|
@@ -27,15 +27,15 @@ import { DialogTabs as ro } from "./components/Dialog/DialogTabs.js";
|
|
|
27
27
|
import { DialogSection as to } from "./components/Dialog/DialogSection.js";
|
|
28
28
|
import { DialogContact as ao } from "./components/Dialog/DialogContact.js";
|
|
29
29
|
import { DialogHistory as xo } from "./components/Dialog/DialogHistory.js";
|
|
30
|
-
import { DialogHistorySegment as
|
|
30
|
+
import { DialogHistorySegment as io } from "./components/Dialog/DialogHistorySegment.js";
|
|
31
31
|
import { DialogHistoryItem as no } from "./components/Dialog/DialogHistoryItem.js";
|
|
32
32
|
import { DialogList as lo } from "./components/Dialog/DialogList.js";
|
|
33
33
|
import { DialogListGroup as Do } from "./components/Dialog/DialogListGroup.js";
|
|
34
34
|
import { DialogListItem as go } from "./components/Dialog/DialogListItem.js";
|
|
35
35
|
import { DialogMetadata as Io } from "./components/Dialog/DialogMetadata.js";
|
|
36
36
|
import { DialogByline as bo } from "./components/Dialog/DialogByline.js";
|
|
37
|
-
import { DialogActions as
|
|
38
|
-
import {
|
|
37
|
+
import { DialogActions as Mo } from "./components/Dialog/DialogActions.js";
|
|
38
|
+
import { DialogActivityLog as yo } from "./components/Dialog/DialogActivityLog.js";
|
|
39
39
|
import { DialogSeenBy as ho } from "./components/Dialog/DialogSeenBy.js";
|
|
40
40
|
import { DialogSelect as Po } from "./components/Dialog/DialogSelect.js";
|
|
41
41
|
import { DialogStatus as Fo, DialogStatusEnum as vo } from "./components/Dialog/DialogStatus.js";
|
|
@@ -53,15 +53,15 @@ import { DrawerBody as rr } from "./components/Dropdown/DrawerBody.js";
|
|
|
53
53
|
import { DrawerOrDropdown as tr } from "./components/Dropdown/DrawerOrDropdown.js";
|
|
54
54
|
import { Footer as ar } from "./components/Footer/Footer.js";
|
|
55
55
|
import { CurrentAccount as xr } from "./components/GlobalMenu/CurrentAccount.js";
|
|
56
|
-
import { BackButton as
|
|
56
|
+
import { BackButton as ir } from "./components/GlobalMenu/BackButton.js";
|
|
57
57
|
import { LogoutButton as nr } from "./components/GlobalMenu/LogoutButton.js";
|
|
58
58
|
import { EndUserLabel as lr } from "./components/GlobalMenu/EndUserLabel.js";
|
|
59
59
|
import { GlobalMenu as Dr } from "./components/GlobalMenu/GlobalMenu.js";
|
|
60
|
-
import { GlobalMenuButton as
|
|
60
|
+
import { GlobalMenuButton as Lr } from "./components/GlobalMenu/GlobalMenuButton.js";
|
|
61
61
|
import { Header as Br } from "./components/Header/Header.js";
|
|
62
62
|
import { HeaderBase as Sr } from "./components/Header/HeaderBase.js";
|
|
63
63
|
import { HeaderLogo as Ar } from "./components/Header/HeaderLogo.js";
|
|
64
|
-
import { HeaderButton as
|
|
64
|
+
import { HeaderButton as Tr } from "./components/Header/HeaderButton.js";
|
|
65
65
|
import { LocaleButton as kr } from "./components/Header/LocaleButton.js";
|
|
66
66
|
import { LocaleSwitcher as Cr } from "./components/Header/LocaleSwitcher.js";
|
|
67
67
|
import { Icon as Hr, isIconProps as Fr } from "./components/Icon/Icon.js";
|
|
@@ -80,14 +80,14 @@ import { LayoutAction as ee } from "./components/LayoutAction/LayoutAction.js";
|
|
|
80
80
|
import { ListItemBase as me } from "./components/List/ListItemBase.js";
|
|
81
81
|
import { ListItemLink as pe } from "./components/List/ListItemLink.js";
|
|
82
82
|
import { ListItemHeader as fe } from "./components/List/ListItemHeader.js";
|
|
83
|
-
import { ListItemLabel as
|
|
83
|
+
import { ListItemLabel as se } from "./components/List/ListItemLabel.js";
|
|
84
84
|
import { ListItemIcon as ce } from "./components/List/ListItemIcon.js";
|
|
85
85
|
import { ListItemControls as ue } from "./components/List/ListItemControls.js";
|
|
86
|
-
import { ListItemSelect as
|
|
87
|
-
import { ListItem as
|
|
86
|
+
import { ListItemSelect as de } from "./components/List/ListItemSelect.js";
|
|
87
|
+
import { ListItem as ge } from "./components/List/ListItem.js";
|
|
88
88
|
import { List as Ie } from "./components/List/List.js";
|
|
89
89
|
import { MenuItemBase as be } from "./components/Menu/MenuItemBase.js";
|
|
90
|
-
import { MenuItemLabel as
|
|
90
|
+
import { MenuItemLabel as Me, getAriaLabelFromTitle as Te } from "./components/Menu/MenuItemLabel.js";
|
|
91
91
|
import { MenuItemIcon as ke } from "./components/Menu/MenuItemIcon.js";
|
|
92
92
|
import { MenuItem as Ce } from "./components/Menu/MenuItem.js";
|
|
93
93
|
import { MenuInputField as He } from "./components/Menu/MenuInputField.js";
|
|
@@ -105,14 +105,14 @@ import { MetaItem as rt } from "./components/Metadata/MetaItem.js";
|
|
|
105
105
|
import { MetaProgress as tt } from "./components/Metadata/MetaProgress.js";
|
|
106
106
|
import { MetaTimestamp as at } from "./components/Metadata/MetaTimestamp.js";
|
|
107
107
|
import { MetaListItem as xt, Metadata as ft } from "./components/Metadata/Metadata.js";
|
|
108
|
-
import { RootProvider as
|
|
108
|
+
import { RootProvider as st, useRootContext as nt } from "./components/RootProvider/RootProvider.js";
|
|
109
109
|
import { SearchItem as lt } from "./components/Search/SearchItem.js";
|
|
110
110
|
import { Searchbar as Dt } from "./components/Searchbar/Searchbar.js";
|
|
111
|
-
import { SearchbarBase as
|
|
111
|
+
import { SearchbarBase as Lt } from "./components/Searchbar/SearchbarBase.js";
|
|
112
112
|
import { SearchbarField as Bt } from "./components/Searchbar/SearchbarField.js";
|
|
113
113
|
import { AutocompleteBase as St } from "./components/Searchbar/AutocompleteBase.js";
|
|
114
114
|
import { AutocompleteGroup as At } from "./components/Searchbar/AutocompleteGroup.js";
|
|
115
|
-
import { Autocomplete as
|
|
115
|
+
import { Autocomplete as Tt } from "./components/Searchbar/Autocomplete.js";
|
|
116
116
|
import { AutocompleteItem as kt } from "./components/Searchbar/AutocompleteItem.js";
|
|
117
117
|
import { ScopeListItem as Ct } from "./components/Searchbar/ScopeListItem.js";
|
|
118
118
|
import { SuggestListItem as Ht } from "./components/Searchbar/SuggestListItem.js";
|
|
@@ -129,15 +129,15 @@ import { TimelineSection as rm } from "./components/Timeline/TimelineSection.js"
|
|
|
129
129
|
import { TimelineHeader as tm } from "./components/Timeline/TimelineHeader.js";
|
|
130
130
|
import { TimelineFooter as am } from "./components/Timeline/TimelineFooter.js";
|
|
131
131
|
import { TimelineIcon as xm } from "./components/Timeline/TimelineIcon.js";
|
|
132
|
-
import { TimelineLink as
|
|
132
|
+
import { TimelineLink as im } from "./components/Timeline/TimelineLink.js";
|
|
133
133
|
import { ToolbarBase as nm } from "./components/Toolbar/ToolbarBase.js";
|
|
134
134
|
import { ToolbarButton as lm } from "./components/Toolbar/ToolbarButton.js";
|
|
135
135
|
import { Toolbar as Dm } from "./components/Toolbar/Toolbar.js";
|
|
136
|
-
import { ToolbarSearch as
|
|
136
|
+
import { ToolbarSearch as Lm } from "./components/Toolbar/ToolbarSearch.js";
|
|
137
137
|
import { ToolbarFilter as Bm } from "./components/Toolbar/ToolbarFilter.js";
|
|
138
138
|
import { ToolbarDaterange as Sm } from "./components/Toolbar/ToolbarDaterange.js";
|
|
139
139
|
import { PageBase as Am } from "./components/Page/PageBase.js";
|
|
140
|
-
import { PageNav as
|
|
140
|
+
import { PageNav as Tm } from "./components/Page/PageNav.js";
|
|
141
141
|
import { PageMenu as km } from "./components/Page/PageMenu.js";
|
|
142
142
|
import { PageTabs as Cm } from "./components/Page/PageTabs.js";
|
|
143
143
|
import { PageDetails as Hm } from "./components/Page/PageDetails.js";
|
|
@@ -156,14 +156,14 @@ import { Typography as ea } from "./components/Typography/Typography.js";
|
|
|
156
156
|
import { Heading as ma } from "./components/Typography/Heading.js";
|
|
157
157
|
import { ResourceList as pa } from "./components/ResourceList/ResourceList.js";
|
|
158
158
|
import { ResourceListItem as fa } from "./components/ResourceList/ResourceListItem.js";
|
|
159
|
-
import { AccessAreaListItem as
|
|
159
|
+
import { AccessAreaListItem as sa } from "./components/AccessAreaList/AccessAreaListItem.js";
|
|
160
160
|
import { AccessAreaList as ca } from "./components/AccessAreaList/AccessAreaList.js";
|
|
161
161
|
import { AccessPackageListItem as ua } from "./components/AccessPackageList/AccessPackageListItem.js";
|
|
162
|
-
import { AccessPackageList as
|
|
163
|
-
import { Field as
|
|
162
|
+
import { AccessPackageList as da } from "./components/AccessPackageList/AccessPackageList.js";
|
|
163
|
+
import { Field as ga } from "./components/Forms/Field.js";
|
|
164
164
|
import { Fieldset as Ia } from "./components/Forms/Fieldset.js";
|
|
165
165
|
import { Legend as ba } from "./components/Forms/Legend.js";
|
|
166
|
-
import { Label as
|
|
166
|
+
import { Label as Ma } from "./components/Forms/Label.js";
|
|
167
167
|
import { Input as ya } from "./components/Forms/Input.js";
|
|
168
168
|
import { Textarea as ha } from "./components/Forms/Textarea.js";
|
|
169
169
|
import { Select as Pa } from "./components/Forms/Select.js";
|
|
@@ -183,51 +183,56 @@ import { CheckboxOptions as ep } from "./components/Forms/CheckboxOptions.js";
|
|
|
183
183
|
import { SettingsSection as mp } from "./components/Settings/SettingsSection.js";
|
|
184
184
|
import { SettingsItem as pp } from "./components/Settings/SettingsItem.js";
|
|
185
185
|
import { SettingsList as fp } from "./components/Settings/SettingsList.js";
|
|
186
|
-
import { DashboardHeader as
|
|
186
|
+
import { DashboardHeader as sp } from "./components/Dashboard/DashboardHeader.js";
|
|
187
187
|
import { DashboardCard as cp } from "./components/Dashboard/DashboardCard.js";
|
|
188
188
|
import { DashboardIcon as up } from "./components/Dashboard/DashboardIcon.js";
|
|
189
|
-
import { ActivityLog as
|
|
190
|
-
import {
|
|
191
|
-
import {
|
|
192
|
-
import {
|
|
193
|
-
import {
|
|
194
|
-
import {
|
|
195
|
-
import {
|
|
196
|
-
import {
|
|
197
|
-
import {
|
|
198
|
-
import {
|
|
199
|
-
import {
|
|
200
|
-
import {
|
|
189
|
+
import { ActivityLog as dp } from "./components/ActivityLog/ActivityLog.js";
|
|
190
|
+
import { ActivityLogSegment as gp } from "./components/ActivityLog/ActivityLogSegment.js";
|
|
191
|
+
import { ActivityLogItem as Ip } from "./components/ActivityLog/ActivityLogItem.js";
|
|
192
|
+
import { ArticleHeader as bp } from "./components/Article/ArticleHeader.js";
|
|
193
|
+
import { ArticleContact as Mp } from "./components/Article/ArticleContact.js";
|
|
194
|
+
import { Article as yp } from "./components/Article/Article.js";
|
|
195
|
+
import { ModalBase as hp } from "./components/Modal/ModalBase.js";
|
|
196
|
+
import { ModalHeader as Pp } from "./components/Modal/ModalHeader.js";
|
|
197
|
+
import { ModalBody as Fp } from "./components/Modal/ModalBody.js";
|
|
198
|
+
import { useClickOutside as wp } from "./hooks/useClickOutside.js";
|
|
199
|
+
import { useEscapeKey as Op } from "./hooks/useEscapeKey.js";
|
|
200
|
+
import { useMenu as Rp } from "./hooks/useMenu.js";
|
|
201
|
+
import { A as Up, B as Vp, a as jp, C as zp, b as Kp, c as Np, D as qp, H as Jp, L as Wp, d as Xp, e as Yp, P as Zp, f as _p, g as $p, h as ox, i as rx, S as ex, j as tx, T as mx, u as ax } from "./usePagination-D247OF6_.js";
|
|
202
|
+
import { D as xx } from "./index-D3Rt9ate.js";
|
|
203
|
+
import { P as ix } from "./Paragraph-Bm-eoPYv.js";
|
|
204
|
+
import { V as nx } from "./index-CnWc2FNH.js";
|
|
201
205
|
export {
|
|
202
206
|
ca as AccessAreaList,
|
|
203
|
-
|
|
204
|
-
|
|
207
|
+
sa as AccessAreaListItem,
|
|
208
|
+
da as AccessPackageList,
|
|
205
209
|
ua as AccessPackageListItem,
|
|
206
210
|
Jm as AccordionSection,
|
|
207
|
-
|
|
208
|
-
|
|
211
|
+
g as AccountList,
|
|
212
|
+
d as AccountListItem,
|
|
209
213
|
u as AccountMenu,
|
|
210
214
|
oe as ActionFooter,
|
|
211
215
|
_r as ActionHeader,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
216
|
+
dp as ActivityLog,
|
|
217
|
+
Ip as ActivityLogItem,
|
|
218
|
+
gp as ActivityLogSegment,
|
|
219
|
+
yp as Article,
|
|
220
|
+
Mp as ArticleContact,
|
|
221
|
+
bp as ArticleHeader,
|
|
217
222
|
m as AttachmentLink,
|
|
218
223
|
p as AttachmentList,
|
|
219
|
-
|
|
224
|
+
Tt as Autocomplete,
|
|
220
225
|
St as AutocompleteBase,
|
|
221
226
|
At as AutocompleteGroup,
|
|
222
227
|
kt as AutocompleteItem,
|
|
223
228
|
f as Avatar,
|
|
224
229
|
n as AvatarGroup,
|
|
225
|
-
|
|
230
|
+
ir as BackButton,
|
|
226
231
|
No as Backdrop,
|
|
227
232
|
I as Badge,
|
|
228
233
|
b as Banner,
|
|
229
234
|
A as BannerColorEnum,
|
|
230
|
-
|
|
235
|
+
T as BookmarksListItem,
|
|
231
236
|
C as BookmarksSection,
|
|
232
237
|
Gm as Breadcrumbs,
|
|
233
238
|
Qm as BreadcrumbsLink,
|
|
@@ -245,10 +250,10 @@ export {
|
|
|
245
250
|
N as ContextMenu,
|
|
246
251
|
xr as CurrentAccount,
|
|
247
252
|
cp as DashboardCard,
|
|
248
|
-
|
|
253
|
+
sp as DashboardHeader,
|
|
249
254
|
up as DashboardIcon,
|
|
250
255
|
J as Dialog,
|
|
251
|
-
|
|
256
|
+
Mo as DialogActions,
|
|
252
257
|
yo as DialogActivityLog,
|
|
253
258
|
Eo as DialogAttachments,
|
|
254
259
|
$ as DialogBody,
|
|
@@ -257,7 +262,7 @@ export {
|
|
|
257
262
|
Z as DialogHeader,
|
|
258
263
|
xo as DialogHistory,
|
|
259
264
|
no as DialogHistoryItem,
|
|
260
|
-
|
|
265
|
+
io as DialogHistorySegment,
|
|
261
266
|
X as DialogLayout,
|
|
262
267
|
lo as DialogList,
|
|
263
268
|
Do as DialogListGroup,
|
|
@@ -277,49 +282,49 @@ export {
|
|
|
277
282
|
Xo as DrawerHeader,
|
|
278
283
|
tr as DrawerOrDropdown,
|
|
279
284
|
zo as DropdownBase,
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
285
|
+
Up as DsAlert,
|
|
286
|
+
Vp as DsBadge,
|
|
287
|
+
jp as DsButton,
|
|
288
|
+
zp as DsCheckbox,
|
|
289
|
+
Kp as DsChip,
|
|
290
|
+
Np as DsCombobox,
|
|
291
|
+
xx as DsDetails,
|
|
292
|
+
qp as DsDialog,
|
|
293
|
+
Jp as DsHeading,
|
|
294
|
+
Wp as DsLink,
|
|
295
|
+
Xp as DsListItem,
|
|
296
|
+
Yp as DsListUnordered,
|
|
297
|
+
Zp as DsPagination,
|
|
298
|
+
ix as DsParagraph,
|
|
299
|
+
_p as DsPopover,
|
|
300
|
+
$p as DsSearch,
|
|
301
|
+
ox as DsSkeleton,
|
|
302
|
+
rx as DsSpinner,
|
|
303
|
+
ex as DsSwitch,
|
|
304
|
+
tx as DsTabs,
|
|
305
|
+
mx as DsTextfield,
|
|
306
|
+
nx as DsValidationMessage,
|
|
302
307
|
k as EditableBookmark,
|
|
303
308
|
lr as EndUserLabel,
|
|
304
|
-
|
|
309
|
+
ga as Field,
|
|
305
310
|
Ra as FieldBase,
|
|
306
311
|
Ia as Fieldset,
|
|
307
312
|
Wa as FieldsetBase,
|
|
308
313
|
vm as Flex,
|
|
309
314
|
ar as Footer,
|
|
310
315
|
Dr as GlobalMenu,
|
|
311
|
-
|
|
316
|
+
Lr as GlobalMenuButton,
|
|
312
317
|
Em as Grid,
|
|
313
318
|
Br as Header,
|
|
314
319
|
Sr as HeaderBase,
|
|
315
|
-
|
|
320
|
+
Tr as HeaderButton,
|
|
316
321
|
Ar as HeaderLogo,
|
|
317
322
|
ma as Heading,
|
|
318
323
|
Hr as Icon,
|
|
319
324
|
V as IconButton,
|
|
320
325
|
Ur as IconOrAvatar,
|
|
321
326
|
ya as Input,
|
|
322
|
-
|
|
327
|
+
Ma as Label,
|
|
323
328
|
Yr as Layout,
|
|
324
329
|
ee as LayoutAction,
|
|
325
330
|
jr as LayoutBase,
|
|
@@ -328,14 +333,14 @@ export {
|
|
|
328
333
|
Wr as LayoutSidebar,
|
|
329
334
|
ba as Legend,
|
|
330
335
|
Ie as List,
|
|
331
|
-
|
|
336
|
+
ge as ListItem,
|
|
332
337
|
me as ListItemBase,
|
|
333
338
|
ue as ListItemControls,
|
|
334
339
|
fe as ListItemHeader,
|
|
335
340
|
ce as ListItemIcon,
|
|
336
|
-
|
|
341
|
+
se as ListItemLabel,
|
|
337
342
|
pe as ListItemLink,
|
|
338
|
-
|
|
343
|
+
de as ListItemSelect,
|
|
339
344
|
kr as LocaleButton,
|
|
340
345
|
Cr as LocaleSwitcher,
|
|
341
346
|
nr as LogoutButton,
|
|
@@ -346,7 +351,7 @@ export {
|
|
|
346
351
|
Ce as MenuItem,
|
|
347
352
|
be as MenuItemBase,
|
|
348
353
|
ke as MenuItemIcon,
|
|
349
|
-
|
|
354
|
+
Me as MenuItemLabel,
|
|
350
355
|
Qe as MenuItems,
|
|
351
356
|
je as MenuList,
|
|
352
357
|
ze as MenuListItem,
|
|
@@ -361,11 +366,14 @@ export {
|
|
|
361
366
|
tt as MetaProgress,
|
|
362
367
|
at as MetaTimestamp,
|
|
363
368
|
ft as Metadata,
|
|
369
|
+
hp as ModalBase,
|
|
370
|
+
Fp as ModalBody,
|
|
371
|
+
Pp as ModalHeader,
|
|
364
372
|
Ya as OptionsBase,
|
|
365
373
|
Am as PageBase,
|
|
366
374
|
Hm as PageDetails,
|
|
367
375
|
km as PageMenu,
|
|
368
|
-
|
|
376
|
+
Tm as PageNav,
|
|
369
377
|
Cm as PageTabs,
|
|
370
378
|
Rr as ProgressIcon,
|
|
371
379
|
vt as QueryItem,
|
|
@@ -375,12 +383,12 @@ export {
|
|
|
375
383
|
_a as RadioOptions,
|
|
376
384
|
pa as ResourceList,
|
|
377
385
|
fa as ResourceListItem,
|
|
378
|
-
|
|
386
|
+
st as RootProvider,
|
|
379
387
|
Ct as ScopeListItem,
|
|
380
388
|
qa as SearchField,
|
|
381
389
|
lt as SearchItem,
|
|
382
390
|
Dt as Searchbar,
|
|
383
|
-
|
|
391
|
+
Lt as SearchbarBase,
|
|
384
392
|
Bt as SearchbarField,
|
|
385
393
|
Vm as Section,
|
|
386
394
|
Go as SeenByLog,
|
|
@@ -409,7 +417,7 @@ export {
|
|
|
409
417
|
am as TimelineFooter,
|
|
410
418
|
tm as TimelineHeader,
|
|
411
419
|
xm as TimelineIcon,
|
|
412
|
-
|
|
420
|
+
im as TimelineLink,
|
|
413
421
|
rm as TimelineSection,
|
|
414
422
|
Xt as TimelineSegment,
|
|
415
423
|
Dm as Toolbar,
|
|
@@ -417,20 +425,20 @@ export {
|
|
|
417
425
|
lm as ToolbarButton,
|
|
418
426
|
Sm as ToolbarDaterange,
|
|
419
427
|
Bm as ToolbarFilter,
|
|
420
|
-
|
|
428
|
+
Lm as ToolbarSearch,
|
|
421
429
|
Xm as Transmission,
|
|
422
430
|
oa as TransmissionList,
|
|
423
431
|
Zm as TransmissionType,
|
|
424
432
|
_m as TransmissionTypeEnum,
|
|
425
433
|
ea as Typography,
|
|
426
|
-
|
|
434
|
+
Te as getAriaLabelFromTitle,
|
|
427
435
|
c as isAvatarGroupProps,
|
|
428
|
-
|
|
436
|
+
i as isAvatarProps,
|
|
429
437
|
Fr as isIconProps,
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
438
|
+
wp as useClickOutside,
|
|
439
|
+
ax as useDsPagination,
|
|
440
|
+
Op as useEscapeKey,
|
|
441
|
+
Rp as useMenu,
|
|
434
442
|
nt as useRootContext,
|
|
435
443
|
zt as useSnackbar
|
|
436
444
|
};
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ActivityLogSegmentProps } from '..';
|
|
2
2
|
export interface ActivityLogProps {
|
|
3
|
-
items:
|
|
3
|
+
items: ActivityLogSegmentProps[];
|
|
4
|
+
maxItems?: number;
|
|
5
|
+
collapsible?: boolean;
|
|
6
|
+
expanded?: boolean;
|
|
7
|
+
expandLabel?: string;
|
|
8
|
+
collapseLabel?: string;
|
|
4
9
|
}
|
|
5
|
-
export declare
|
|
10
|
+
export declare const ActivityLog: ({ items, maxItems, expandLabel, collapseLabel, }: ActivityLogProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -7,3 +7,4 @@ declare const meta: {
|
|
|
7
7
|
export default meta;
|
|
8
8
|
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export declare const Controlled: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const Modal: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
export interface ActivityLogItemProps {
|
|
3
|
-
id
|
|
3
|
+
id?: string;
|
|
4
4
|
byline?: string;
|
|
5
5
|
datetime?: string;
|
|
6
6
|
children?: ReactNode;
|
|
7
|
+
summary?: ReactNode;
|
|
7
8
|
}
|
|
8
|
-
export declare const ActivityLogItem: ({ byline, datetime, children }: ActivityLogItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const ActivityLogItem: ({ byline, datetime, children, summary, ...props }: ActivityLogItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ActivityLogItemProps } from '../';
|
|
3
|
+
export interface ActivityLogSegmentProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
items?: ActivityLogItemProps[];
|
|
6
|
+
datetime?: string;
|
|
7
|
+
byline?: string;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
summary?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const ActivityLogSegment: ({ id, items, datetime, byline, children, summary }: ActivityLogSegmentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,6 @@ import { StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
4
|
component: ({ variant, color, size, selected, icon, iconSize, href, label, labelSize, children, className, loading, ariaLabel, ...rest }: import('./Button').ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
tags: string[];
|
|
6
5
|
parameters: {};
|
|
7
6
|
args: {
|
|
8
7
|
children: string;
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { DialogBodyProps, DialogHeaderProps, DialogLayoutProps,
|
|
3
|
-
export interface DialogProps extends DialogLayoutProps {
|
|
2
|
+
import { DialogBodyProps, DialogContactProps, DialogHeaderProps, DialogHistoryProps, DialogLayoutProps, DialogSectionProps } from '..';
|
|
3
|
+
export interface DialogProps extends DialogLayoutProps, DialogHeaderProps, DialogBodyProps {
|
|
4
4
|
/** Dialog is loading */
|
|
5
5
|
loading?: boolean;
|
|
6
|
-
/** Dialog
|
|
7
|
-
|
|
8
|
-
/** Dialog
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
/**
|
|
6
|
+
/** Dialog title */
|
|
7
|
+
title: string;
|
|
8
|
+
/** Dialog history */
|
|
9
|
+
history?: DialogHistoryProps;
|
|
10
|
+
/** Dialog history */
|
|
11
|
+
additionalInfo?: DialogSectionProps;
|
|
12
|
+
/** Dialog history */
|
|
13
|
+
contact?: DialogContactProps;
|
|
14
|
+
/** Content */
|
|
13
15
|
children?: ReactNode;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
|
-
* Full representation of a dialog, including attachments, actions and
|
|
18
|
+
* Full representation of a dialog, including attachments, actions, history, additional information, and contact information.
|
|
17
19
|
*/
|
|
18
|
-
export declare const Dialog: ({ loading, backButton, contextMenu, pageMenu,
|
|
20
|
+
export declare const Dialog: ({ loading, backButton, contextMenu, pageMenu, sender, title, history, additionalInfo, contact, children, ...props }: DialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,6 +4,8 @@ declare const meta: Meta<typeof Dialog>;
|
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
6
6
|
export declare const Default: Story;
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
7
|
+
export declare const RequiresAttention: Story;
|
|
8
|
+
export declare const InProgress: Story;
|
|
9
|
+
export declare const Completed: Story;
|
|
10
|
+
export declare const Transmissions: Story;
|
|
11
|
+
export declare const ActivityLog: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
as?: ElementType;
|
|
8
|
-
onClick?: MouseEventHandler;
|
|
9
|
-
href?: string;
|
|
1
|
+
import { ActivityLogProps, ToolbarProps } from '../';
|
|
2
|
+
export interface DialogActivityLogProps extends ActivityLogProps {
|
|
3
|
+
title: string;
|
|
4
|
+
toolbar?: ToolbarProps;
|
|
5
|
+
open: boolean;
|
|
6
|
+
onClose: () => void;
|
|
10
7
|
}
|
|
11
|
-
export declare const DialogActivityLog: ({
|
|
8
|
+
export declare const DialogActivityLog: ({ title, items, open, onClose }: DialogActivityLogProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,32 +1,20 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { AvatarProps,
|
|
2
|
+
import { AvatarProps, SeenByLogProps } from '..';
|
|
3
3
|
export interface DialogBodyProps {
|
|
4
|
+
/** Loading */
|
|
5
|
+
loading?: boolean;
|
|
4
6
|
/** Sender */
|
|
5
|
-
sender
|
|
7
|
+
sender?: AvatarProps;
|
|
6
8
|
/** Recipient */
|
|
7
9
|
recipient?: AvatarProps;
|
|
8
|
-
/** Loading */
|
|
9
|
-
loading?: boolean;
|
|
10
|
-
/** Loading text */
|
|
11
|
-
loadingText?: string;
|
|
12
|
-
/** Updated date time */
|
|
13
|
-
updatedAt?: string;
|
|
14
|
-
/** Updated label */
|
|
15
|
-
updatedAtLabel?: string;
|
|
16
|
-
/** Due date */
|
|
17
|
-
dueAt?: string;
|
|
18
|
-
/** Due at label */
|
|
19
|
-
dueAtLabel?: string;
|
|
20
10
|
/** Recipient label (prefix) */
|
|
21
11
|
recipientLabel?: string;
|
|
22
12
|
/** Group recipient, show both sender and recipient avatars */
|
|
23
13
|
recipientGroup?: boolean;
|
|
24
14
|
/** Dialog is seen by the end user or others */
|
|
25
15
|
seenByLog?: SeenByLogProps;
|
|
26
|
-
/** Activity Log */
|
|
27
|
-
activityLog?: DialogActivityLogProps;
|
|
28
16
|
/** Content */
|
|
29
17
|
children?: ReactNode;
|
|
30
18
|
}
|
|
31
19
|
/** DialogBody represents the body, or main part of a dialog, including sender and recipient. */
|
|
32
|
-
export declare const DialogBody: ({ loading, sender, recipient, recipientLabel,
|
|
20
|
+
export declare const DialogBody: ({ loading, sender, recipient, recipientLabel, children, seenByLog }: DialogBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ loading, sender, recipient, recipientLabel,
|
|
4
|
+
component: ({ loading, sender, recipient, recipientLabel, children, seenByLog }: import('./DialogBody').DialogBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
args: {
|
|
7
7
|
sender: {
|
|
@@ -14,8 +14,6 @@ declare const meta: {
|
|
|
14
14
|
type: "person";
|
|
15
15
|
name: string;
|
|
16
16
|
};
|
|
17
|
-
updatedAt: string;
|
|
18
|
-
updatedAtLabel: string;
|
|
19
17
|
children: import("react/jsx-runtime").JSX.Element;
|
|
20
18
|
seenByLog: {
|
|
21
19
|
collapsible: true;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { DialogMetadataProps, DialogStatusProps } from '..';
|
|
1
|
+
import { BadgeProps, DialogMetadataProps, DialogStatusProps } from '..';
|
|
2
2
|
export interface DialogHeaderProps extends DialogMetadataProps {
|
|
3
3
|
/** Loading state */
|
|
4
4
|
loading?: boolean;
|
|
5
5
|
/** Dialog title */
|
|
6
|
-
title
|
|
6
|
+
title: string;
|
|
7
|
+
/** Badge */
|
|
8
|
+
badge?: BadgeProps;
|
|
7
9
|
/** Dialog status */
|
|
8
10
|
status?: DialogStatusProps;
|
|
9
11
|
/** Drafts label */
|
|
@@ -21,4 +23,4 @@ export interface DialogHeaderProps extends DialogMetadataProps {
|
|
|
21
23
|
/** Due date label */
|
|
22
24
|
dueAtLabel?: string;
|
|
23
25
|
}
|
|
24
|
-
export declare const DialogHeader: ({ loading, title, status, draftsLabel, sentCount, receivedCount, updatedAt, updatedAtLabel, dueAt, dueAtLabel, }: DialogHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare const DialogHeader: ({ loading, title, badge, status, draftsLabel, sentCount, receivedCount, updatedAt, updatedAtLabel, dueAt, dueAtLabel, activityLog, }: DialogHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ loading, title, status, draftsLabel, sentCount, receivedCount, updatedAt, updatedAtLabel, dueAt, dueAtLabel, }: import('./DialogHeader').DialogHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: ({ loading, title, badge, status, draftsLabel, sentCount, receivedCount, updatedAt, updatedAtLabel, dueAt, dueAtLabel, activityLog, }: import('./DialogHeader').DialogHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: {
|
|
8
8
|
title: string;
|
|
9
|
+
updatedAt: string;
|
|
10
|
+
updatedAtLabel: string;
|
|
9
11
|
status: {
|
|
10
12
|
value: "requires-attention";
|
|
11
13
|
label: string;
|