@altinn/altinn-components 0.20.2 → 0.21.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/ArrowUp-Cn3ai5t6.js +25 -0
- package/dist/assets/ButtonBase.css +1 -1
- package/dist/assets/ListItemLabel.css +1 -1
- package/dist/assets/TimelineBase.css +1 -1
- package/dist/assets/TimelineLink.css +1 -0
- package/dist/components/Button/ButtonBase.js +10 -10
- package/dist/components/Button/ButtonIcon.js +6 -6
- package/dist/components/Byline/Byline.js +12 -11
- package/dist/components/Dialog/DialogHistory.js +37 -54
- package/dist/components/List/ListItemLabel.js +16 -9
- package/dist/components/Timeline/Timeline.js +2 -2
- package/dist/components/Timeline/TimelineBase.js +25 -23
- package/dist/components/Timeline/TimelineFooter.js +5 -5
- package/dist/components/Timeline/TimelineHeader.js +9 -9
- package/dist/components/Timeline/TimelineLink.js +39 -0
- package/dist/components/Timeline/TimelineSection.js +16 -15
- package/dist/components/Timeline/TimelineSegment.js +12 -12
- package/dist/components/Timeline/index.js +2 -0
- package/dist/components/Transmission/Transmission.js +36 -33
- package/dist/components/Transmission/TransmissionTimeline.js +22 -0
- package/dist/components/Transmission/TransmissionTimelineSegment.js +63 -0
- package/dist/components/Transmission/index.js +7 -3
- package/dist/components/index.js +91 -85
- package/dist/index.js +96 -90
- package/dist/types/lib/components/Button/ButtonBase.d.ts +1 -1
- package/dist/types/lib/components/Button/ButtonIcon.d.ts +3 -2
- package/dist/types/lib/components/Byline/Byline.d.ts +1 -1
- package/dist/types/lib/components/Byline/Byline.stories.d.ts +1 -1
- package/dist/types/lib/components/List/ListItemLabel.d.ts +2 -1
- package/dist/types/lib/components/Page/Flex.d.ts +2 -3
- package/dist/types/lib/components/Timeline/TimelineBase.d.ts +5 -4
- package/dist/types/lib/components/Timeline/TimelineLink.d.ts +9 -0
- package/dist/types/lib/components/Timeline/TimelineSection.d.ts +3 -2
- package/dist/types/lib/components/Timeline/TimelineSection.stories.d.ts +1 -1
- package/dist/types/lib/components/Timeline/TimelineSegment.d.ts +3 -3
- package/dist/types/lib/components/Timeline/index.d.ts +1 -0
- package/dist/types/lib/components/Transmission/Transmission.d.ts +2 -6
- package/dist/types/lib/components/Transmission/TransmissionTimeline.d.ts +10 -0
- package/dist/types/lib/components/Transmission/TransmissionTimeline.stories.d.ts +74 -0
- package/dist/types/lib/components/Transmission/TransmissionTimelineSegment.d.ts +14 -0
- package/dist/types/lib/components/Transmission/index.d.ts +2 -0
- package/package.json +1 -1
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 x } from "./components/Attachment/AttachmentList.js";
|
|
4
|
-
import { Avatar as
|
|
4
|
+
import { Avatar as a } from "./components/Avatar/Avatar.js";
|
|
5
5
|
import { AvatarGroup as n } from "./components/Avatar/AvatarGroup.js";
|
|
6
6
|
import { Badge as c } from "./components/Badge/Badge.js";
|
|
7
7
|
import { BookmarksListItem as l } from "./components/Bookmarks/BookmarksListItem.js";
|
|
8
8
|
import { EditableBookmark as B } from "./components/Bookmarks/EditableBookmark.js";
|
|
9
9
|
import { BookmarksSection as I } from "./components/Bookmarks/BookmarksSection.js";
|
|
10
10
|
import { ButtonBase as D } from "./components/Button/ButtonBase.js";
|
|
11
|
-
import { ButtonLabel as
|
|
11
|
+
import { ButtonLabel as S } from "./components/Button/ButtonLabel.js";
|
|
12
12
|
import { ButtonIcon as A } from "./components/Button/ButtonIcon.js";
|
|
13
13
|
import { Button as k } from "./components/Button/Button.js";
|
|
14
14
|
import { ComboButton as H } from "./components/Button/ComboButton.js";
|
|
@@ -28,13 +28,13 @@ import { DialogActivityLog as oo } from "./components/Dialog/DialogActivityLog.j
|
|
|
28
28
|
import { DialogSection as eo } from "./components/Dialog/DialogSection.js";
|
|
29
29
|
import { DialogSeenBy as mo } from "./components/Dialog/DialogSeenBy.js";
|
|
30
30
|
import { DialogSelect as xo } from "./components/Dialog/DialogSelect.js";
|
|
31
|
-
import { DialogStatus as
|
|
31
|
+
import { DialogStatus as ao, DialogStatusEnum as io } from "./components/Dialog/DialogStatus.js";
|
|
32
32
|
import { DialogHeading as so } from "./components/Dialog/DialogHeading.js";
|
|
33
33
|
import { DialogTouchedBy as uo } from "./components/Dialog/DialogTouchedBy.js";
|
|
34
34
|
import { DialogLabel as Lo } from "./components/Dialog/DialogLabel.js";
|
|
35
35
|
import { DialogAttachments as go } from "./components/Dialog/DialogAttachments.js";
|
|
36
36
|
import { DialogHistory as Do } from "./components/Dialog/DialogHistory.js";
|
|
37
|
-
import { DialogActivity as
|
|
37
|
+
import { DialogActivity as So } from "./components/Dialog/DialogActivity.js";
|
|
38
38
|
import { SeenByLog as Ao } from "./components/Dialog/SeenByLog.js";
|
|
39
39
|
import { DropdownBase as ko } from "./components/Dropdown/DropdownBase.js";
|
|
40
40
|
import { Backdrop as Ho } from "./components/Dropdown/Backdrop.js";
|
|
@@ -54,14 +54,14 @@ import { Header as or } from "./components/Header/Header.js";
|
|
|
54
54
|
import { HeaderBase as er } from "./components/Header/HeaderBase.js";
|
|
55
55
|
import { HeaderLogo as mr } from "./components/Header/HeaderLogo.js";
|
|
56
56
|
import { HeaderButton as xr } from "./components/Header/HeaderButton.js";
|
|
57
|
-
import { Icon as
|
|
57
|
+
import { Icon as ar } from "./components/Icon/Icon.js";
|
|
58
58
|
import { CheckboxIcon as nr } from "./components/Icon/CheckboxIcon.js";
|
|
59
59
|
import { RadioIcon as cr } from "./components/Icon/RadioIcon.js";
|
|
60
60
|
import { ProgressIcon as lr } from "./components/Icon/ProgressIcon.js";
|
|
61
61
|
import { IconOrAvatar as Br } from "./components/Icon/IconOrAvatar.js";
|
|
62
62
|
import { LayoutBase as Ir } from "./components/Layout/LayoutBase.js";
|
|
63
63
|
import { LayoutBody as Dr } from "./components/Layout/LayoutBody.js";
|
|
64
|
-
import { LayoutContent as
|
|
64
|
+
import { LayoutContent as Sr } from "./components/Layout/LayoutContent.js";
|
|
65
65
|
import { LayoutSidebar as Ar } from "./components/Layout/LayoutSidebar.js";
|
|
66
66
|
import { Layout as kr } from "./components/Layout/Layout.js";
|
|
67
67
|
import { ActionHeader as Hr } from "./components/LayoutAction/ActionHeader.js";
|
|
@@ -81,15 +81,15 @@ import { MenuItemBase as oe } from "./components/Menu/MenuItemBase.js";
|
|
|
81
81
|
import { MenuItemLabel as ee } from "./components/Menu/MenuItemLabel.js";
|
|
82
82
|
import { MenuItemIcon as me } from "./components/Menu/MenuItemIcon.js";
|
|
83
83
|
import { MenuItem as xe } from "./components/Menu/MenuItem.js";
|
|
84
|
-
import { MenuInputField as
|
|
84
|
+
import { MenuInputField as ae } from "./components/Menu/MenuInputField.js";
|
|
85
85
|
import { MenuOption as ne } from "./components/Menu/MenuOption.js";
|
|
86
86
|
import { MenuSearch as ce } from "./components/Menu/MenuSearch.js";
|
|
87
87
|
import { MenuHeader as le } from "./components/Menu/MenuHeader.js";
|
|
88
88
|
import { MenuItems as Be } from "./components/Menu/MenuItems.js";
|
|
89
89
|
import { MenuBase as Ie, MenuList as de, MenuListItem as De } from "./components/Menu/MenuBase.js";
|
|
90
|
-
import { Menu as
|
|
90
|
+
import { Menu as Se } from "./components/Menu/Menu.js";
|
|
91
91
|
import { MetaBase as Ae } from "./components/Meta/MetaBase.js";
|
|
92
|
-
import { MetaList as ke, MetaListItem as
|
|
92
|
+
import { MetaList as ke, MetaListItem as ye } from "./components/Meta/MetaList.js";
|
|
93
93
|
import { MetaItemBase as he } from "./components/Meta/MetaItemBase.js";
|
|
94
94
|
import { MetaItemMedia as Fe } from "./components/Meta/MetaItemMedia.js";
|
|
95
95
|
import { MetaItemLabel as Ce } from "./components/Meta/MetaItemLabel.js";
|
|
@@ -106,89 +106,92 @@ import { Autocomplete as ot } from "./components/Search/Autocomplete.js";
|
|
|
106
106
|
import { AutocompleteItem as et } from "./components/Search/AutocompleteItem.js";
|
|
107
107
|
import { ScopeListItem as mt } from "./components/Search/ScopeListItem.js";
|
|
108
108
|
import { SuggestListItem as xt } from "./components/Search/SuggestListItem.js";
|
|
109
|
-
import { QueryItem as
|
|
109
|
+
import { QueryItem as at, QueryLabel as it } from "./components/Search/QueryLabel.js";
|
|
110
110
|
import { Snackbar as st } from "./components/Snackbar/Snackbar.js";
|
|
111
111
|
import { SnackbarColorEnum as ut, SnackbarItem as lt } from "./components/Snackbar/SnackbarItem.js";
|
|
112
112
|
import { SnackbarDuration as Bt, SnackbarProvider as gt, useSnackbar as It } from "./components/Snackbar/useSnackbar.js";
|
|
113
113
|
import { Skeleton as Dt } from "./components/Skeleton/Skeleton.js";
|
|
114
|
-
import { Timeline as
|
|
114
|
+
import { Timeline as St } from "./components/Timeline/Timeline.js";
|
|
115
115
|
import { TimelineSegment as At } from "./components/Timeline/TimelineSegment.js";
|
|
116
116
|
import { TimelineActivity as kt } from "./components/Timeline/TimelineActivity.js";
|
|
117
117
|
import { TimelineBase as Ht } from "./components/Timeline/TimelineBase.js";
|
|
118
118
|
import { TimelineSection as Pt } from "./components/Timeline/TimelineSection.js";
|
|
119
119
|
import { TimelineHeader as vt } from "./components/Timeline/TimelineHeader.js";
|
|
120
120
|
import { TimelineFooter as wt } from "./components/Timeline/TimelineFooter.js";
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
148
|
-
import {
|
|
149
|
-
import {
|
|
150
|
-
import {
|
|
151
|
-
import {
|
|
152
|
-
import {
|
|
153
|
-
import {
|
|
154
|
-
import {
|
|
121
|
+
import { TimelineLink as Gt } from "./components/Timeline/TimelineLink.js";
|
|
122
|
+
import { ToolbarBase as Ot } from "./components/Toolbar/ToolbarBase.js";
|
|
123
|
+
import { ToolbarButton as zt } from "./components/Toolbar/ToolbarButton.js";
|
|
124
|
+
import { Toolbar as Nt } from "./components/Toolbar/Toolbar.js";
|
|
125
|
+
import { ToolbarSearch as qt } from "./components/Toolbar/ToolbarSearch.js";
|
|
126
|
+
import { ToolbarFilter as Ut } from "./components/Toolbar/ToolbarFilter.js";
|
|
127
|
+
import { ToolbarDaterange as Wt } from "./components/Toolbar/ToolbarDaterange.js";
|
|
128
|
+
import { PageBase as Yt } from "./components/Page/PageBase.js";
|
|
129
|
+
import { PageNav as _t } from "./components/Page/PageNav.js";
|
|
130
|
+
import { PageMenu as om } from "./components/Page/PageMenu.js";
|
|
131
|
+
import { PageTabs as em } from "./components/Page/PageTabs.js";
|
|
132
|
+
import { PageHeader as mm } from "./components/Page/PageHeader.js";
|
|
133
|
+
import { Article as xm } from "./components/Page/Article.js";
|
|
134
|
+
import { Section as am } from "./components/Page/Section.js";
|
|
135
|
+
import { Flex as nm } from "./components/Page/Flex.js";
|
|
136
|
+
import { Grid as cm } from "./components/Page/Grid.js";
|
|
137
|
+
import { Breadcrumbs as lm } from "./components/Page/Breadcrumbs.js";
|
|
138
|
+
import { BreadcrumbsLink as Bm } from "./components/Page/BreadcrumbsLink.js";
|
|
139
|
+
import { ContactSection as Im } from "./components/Page/ContactSection.js";
|
|
140
|
+
import { Transmission as Dm } from "./components/Transmission/Transmission.js";
|
|
141
|
+
import { TransmissionList as Sm } from "./components/Transmission/TransmissionList.js";
|
|
142
|
+
import { TransmissionTimeline as Am } from "./components/Transmission/TransmissionTimeline.js";
|
|
143
|
+
import { TransmissionTimelineSegment as km } from "./components/Transmission/TransmissionTimelineSegment.js";
|
|
144
|
+
import { Typography as Hm } from "./components/Typography/Typography.js";
|
|
145
|
+
import { Heading as Pm } from "./components/Typography/Heading.js";
|
|
146
|
+
import { ResourceList as vm } from "./components/ResourceList/ResourceList.js";
|
|
147
|
+
import { ResourceListItem as wm } from "./components/ResourceList/ResourceListItem.js";
|
|
148
|
+
import { AccessAreaListItem as Gm } from "./components/AccessAreaList/AccessAreaListItem.js";
|
|
149
|
+
import { AccessAreaList as Om } from "./components/AccessAreaList/AccessAreaList.js";
|
|
150
|
+
import { AccessPackageListItem as zm } from "./components/AccessPackageList/AccessPackageListItem.js";
|
|
151
|
+
import { AccessPackageList as Nm } from "./components/AccessPackageList/AccessPackageList.js";
|
|
152
|
+
import { FieldBase as qm } from "./components/TextField/FieldBase.js";
|
|
153
|
+
import { InputBase as Um } from "./components/TextField/InputBase.js";
|
|
154
|
+
import { TextField as Wm } from "./components/TextField/TextField.js";
|
|
155
|
+
import { useClickOutside as Ym } from "./hooks/useClickOutside.js";
|
|
156
|
+
import { useEscapeKey as _m } from "./hooks/useEscapeKey.js";
|
|
157
|
+
import { useMenu as op } from "./hooks/useMenu.js";
|
|
155
158
|
export {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
159
|
+
Om as AccessAreaList,
|
|
160
|
+
Gm as AccessAreaListItem,
|
|
161
|
+
Nm as AccessPackageList,
|
|
162
|
+
zm as AccessPackageListItem,
|
|
160
163
|
Wo as AccountButton,
|
|
161
164
|
qo as AccountMenu,
|
|
162
165
|
Pr as ActionFooter,
|
|
163
166
|
Hr as ActionHeader,
|
|
164
|
-
|
|
167
|
+
xm as Article,
|
|
165
168
|
m as AttachmentLink,
|
|
166
169
|
x as AttachmentList,
|
|
167
170
|
ot as Autocomplete,
|
|
168
171
|
Ye as AutocompleteBase,
|
|
169
172
|
_e as AutocompleteGroup,
|
|
170
173
|
et as AutocompleteItem,
|
|
171
|
-
|
|
174
|
+
a as Avatar,
|
|
172
175
|
n as AvatarGroup,
|
|
173
176
|
Yo as BackButton,
|
|
174
177
|
Ho as Backdrop,
|
|
175
178
|
c as Badge,
|
|
176
179
|
l as BookmarksListItem,
|
|
177
180
|
I as BookmarksSection,
|
|
178
|
-
|
|
179
|
-
|
|
181
|
+
lm as Breadcrumbs,
|
|
182
|
+
Bm as BreadcrumbsLink,
|
|
180
183
|
k as Button,
|
|
181
184
|
D as ButtonBase,
|
|
182
185
|
A as ButtonIcon,
|
|
183
|
-
|
|
186
|
+
S as ButtonLabel,
|
|
184
187
|
v as Byline,
|
|
185
188
|
nr as CheckboxIcon,
|
|
186
189
|
H as ComboButton,
|
|
187
|
-
|
|
190
|
+
Im as ContactSection,
|
|
188
191
|
w as ContextMenu,
|
|
189
192
|
G as Dialog,
|
|
190
193
|
_ as DialogActions,
|
|
191
|
-
|
|
194
|
+
So as DialogActivity,
|
|
192
195
|
oo as DialogActivityLog,
|
|
193
196
|
go as DialogAttachments,
|
|
194
197
|
z as DialogBody,
|
|
@@ -204,7 +207,7 @@ export {
|
|
|
204
207
|
eo as DialogSection,
|
|
205
208
|
mo as DialogSeenBy,
|
|
206
209
|
xo as DialogSelect,
|
|
207
|
-
|
|
210
|
+
ao as DialogStatus,
|
|
208
211
|
io as DialogStatusEnum,
|
|
209
212
|
uo as DialogTouchedBy,
|
|
210
213
|
Po as DrawerBase,
|
|
@@ -215,25 +218,25 @@ export {
|
|
|
215
218
|
zo as DrawerOrDropdown,
|
|
216
219
|
ko as DropdownBase,
|
|
217
220
|
B as EditableBookmark,
|
|
218
|
-
|
|
219
|
-
|
|
221
|
+
qm as FieldBase,
|
|
222
|
+
nm as Flex,
|
|
220
223
|
No as Footer,
|
|
221
224
|
Uo as GlobalMenu,
|
|
222
|
-
|
|
225
|
+
cm as Grid,
|
|
223
226
|
or as Header,
|
|
224
227
|
er as HeaderBase,
|
|
225
228
|
xr as HeaderButton,
|
|
226
229
|
mr as HeaderLogo,
|
|
227
|
-
|
|
228
|
-
|
|
230
|
+
Pm as Heading,
|
|
231
|
+
ar as Icon,
|
|
229
232
|
P as IconButton,
|
|
230
233
|
Br as IconOrAvatar,
|
|
231
|
-
|
|
234
|
+
Um as InputBase,
|
|
232
235
|
kr as Layout,
|
|
233
236
|
vr as LayoutAction,
|
|
234
237
|
Ir as LayoutBase,
|
|
235
238
|
Dr as LayoutBody,
|
|
236
|
-
|
|
239
|
+
Sr as LayoutContent,
|
|
237
240
|
Ar as LayoutSidebar,
|
|
238
241
|
_r as List,
|
|
239
242
|
Yr as ListBase,
|
|
@@ -246,10 +249,10 @@ export {
|
|
|
246
249
|
Gr as ListItemLink,
|
|
247
250
|
Ur as ListItemSelect,
|
|
248
251
|
_o as LogoutButton,
|
|
249
|
-
|
|
252
|
+
Se as Menu,
|
|
250
253
|
Ie as MenuBase,
|
|
251
254
|
le as MenuHeader,
|
|
252
|
-
|
|
255
|
+
ae as MenuInputField,
|
|
253
256
|
xe as MenuItem,
|
|
254
257
|
oe as MenuItemBase,
|
|
255
258
|
me as MenuItemIcon,
|
|
@@ -265,26 +268,26 @@ export {
|
|
|
265
268
|
Ce as MetaItemLabel,
|
|
266
269
|
Fe as MetaItemMedia,
|
|
267
270
|
ke as MetaList,
|
|
268
|
-
|
|
271
|
+
ye as MetaListItem,
|
|
269
272
|
Re as MetaProgress,
|
|
270
273
|
Qe as MetaTimestamp,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
Yt as PageBase,
|
|
275
|
+
mm as PageHeader,
|
|
276
|
+
om as PageMenu,
|
|
277
|
+
_t as PageNav,
|
|
278
|
+
em as PageTabs,
|
|
276
279
|
lr as ProgressIcon,
|
|
277
|
-
|
|
280
|
+
at as QueryItem,
|
|
278
281
|
it as QueryLabel,
|
|
279
282
|
cr as RadioIcon,
|
|
280
|
-
|
|
281
|
-
|
|
283
|
+
vm as ResourceList,
|
|
284
|
+
wm as ResourceListItem,
|
|
282
285
|
Ke as RootProvider,
|
|
283
286
|
mt as ScopeListItem,
|
|
284
287
|
We as SearchField,
|
|
285
288
|
qe as Searchbar,
|
|
286
289
|
Ue as SearchbarBase,
|
|
287
|
-
|
|
290
|
+
am as Section,
|
|
288
291
|
Ao as SeenByLog,
|
|
289
292
|
e as SizeEnum,
|
|
290
293
|
Dt as Skeleton,
|
|
@@ -294,26 +297,29 @@ export {
|
|
|
294
297
|
lt as SnackbarItem,
|
|
295
298
|
gt as SnackbarProvider,
|
|
296
299
|
xt as SuggestListItem,
|
|
297
|
-
|
|
298
|
-
|
|
300
|
+
Wm as TextField,
|
|
301
|
+
St as Timeline,
|
|
299
302
|
kt as TimelineActivity,
|
|
300
303
|
Ht as TimelineBase,
|
|
301
304
|
wt as TimelineFooter,
|
|
302
305
|
vt as TimelineHeader,
|
|
306
|
+
Gt as TimelineLink,
|
|
303
307
|
Pt as TimelineSection,
|
|
304
308
|
At as TimelineSegment,
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
309
|
+
Nt as Toolbar,
|
|
310
|
+
Ot as ToolbarBase,
|
|
311
|
+
zt as ToolbarButton,
|
|
312
|
+
Wt as ToolbarDaterange,
|
|
313
|
+
Ut as ToolbarFilter,
|
|
314
|
+
qt as ToolbarSearch,
|
|
315
|
+
Dm as Transmission,
|
|
316
|
+
Sm as TransmissionList,
|
|
317
|
+
Am as TransmissionTimeline,
|
|
318
|
+
km as TransmissionTimelineSegment,
|
|
319
|
+
Hm as Typography,
|
|
320
|
+
Ym as useClickOutside,
|
|
321
|
+
_m as useEscapeKey,
|
|
322
|
+
op as useMenu,
|
|
317
323
|
Ne as useRootContext,
|
|
318
324
|
It as useSnackbar
|
|
319
325
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementType, ReactNode } from 'react';
|
|
2
2
|
import { Color } from '..';
|
|
3
|
-
export type ButtonVariant = 'solid' | 'outline' | 'dotted' | 'text';
|
|
3
|
+
export type ButtonVariant = 'solid' | 'outline' | 'dotted' | 'text' | 'link';
|
|
4
4
|
export type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'custom';
|
|
5
5
|
export type ButtonColor = Color | 'inherit';
|
|
6
6
|
export interface ButtonBaseProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
@@ -2,7 +2,8 @@ import { SvgElement } from '../Icon';
|
|
|
2
2
|
import { ButtonSize } from './ButtonBase';
|
|
3
3
|
export interface ButtonIconProps {
|
|
4
4
|
icon: SvgElement;
|
|
5
|
-
iconAltText?: string;
|
|
6
5
|
size: ButtonSize;
|
|
6
|
+
iconAltText?: string;
|
|
7
|
+
className?: string;
|
|
7
8
|
}
|
|
8
|
-
export declare const ButtonIcon: ({ size, icon, iconAltText }: ButtonIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const ButtonIcon: ({ className, size, icon, iconAltText }: ButtonIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,4 +13,4 @@ export interface BylineProps {
|
|
|
13
13
|
children?: ReactNode;
|
|
14
14
|
}
|
|
15
15
|
/** Byline, possible avatar/avatarGroup, name and more info */
|
|
16
|
-
export declare const Byline: ({ loading, color, size, avatar, avatarGroup, datetime, children, as, }: BylineProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const Byline: ({ loading, color, size, avatar, avatarGroup, datetime, children, as, ...props }: BylineProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ loading, color, size, avatar, avatarGroup, datetime, children, as, }: import('./Byline').BylineProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: ({ loading, color, size, avatar, avatarGroup, datetime, children, as, ...props }: import('./Byline').BylineProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: {
|
|
@@ -4,7 +4,8 @@ export interface ListItemLabelProps {
|
|
|
4
4
|
loading?: boolean;
|
|
5
5
|
size?: ListItemSize;
|
|
6
6
|
title?: string;
|
|
7
|
+
weight?: 'bold' | 'normal';
|
|
7
8
|
description?: string;
|
|
8
9
|
children?: ReactNode;
|
|
9
10
|
}
|
|
10
|
-
export declare const ListItemLabel: ({ loading, size, title, description, children }: ListItemLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const ListItemLabel: ({ loading, size, title, weight, description, children, }: ListItemLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
1
|
+
import { CSSProperties, ElementType, ReactNode } from 'react';
|
|
2
2
|
import { Color, Range, Shadow, Theme } from '..';
|
|
3
|
-
export type FlexElement = 'div' | 'section' | 'article' | 'header' | 'footer' | 'nav' | 'ul';
|
|
4
3
|
export type FlexDirection = 'col' | 'row';
|
|
5
4
|
export type FlexAlign = 'initial' | 'start' | 'end' | 'center' | 'stretch';
|
|
6
5
|
export type FlexJustify = 'initial' | 'start' | 'end' | 'center' | 'between';
|
|
@@ -8,7 +7,7 @@ export type FlexSpacing = 'page' | 'xs' | Range<11>;
|
|
|
8
7
|
export type FlexPadding = 'page' | Range<11>;
|
|
9
8
|
export type FlexMargin = 0 | 'page' | 'section' | 'bottom';
|
|
10
9
|
export interface FlexProps {
|
|
11
|
-
as?:
|
|
10
|
+
as?: ElementType;
|
|
12
11
|
shadow?: Shadow;
|
|
13
12
|
color?: Color;
|
|
14
13
|
theme?: Theme;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { AvatarProps, Color,
|
|
1
|
+
import { ElementType, ReactNode } from 'react';
|
|
2
|
+
import { AvatarProps, Color, SvgElement, Theme } from '..';
|
|
3
3
|
export type TimelineTheme = 'base' | 'surface';
|
|
4
4
|
export type TimelineBorder = 'strong' | 'solid' | 'dashed' | 'hidden';
|
|
5
5
|
export type TimelineBorderWidth = 1 | 2;
|
|
6
6
|
export interface TimelineBaseProps {
|
|
7
|
-
as?:
|
|
7
|
+
as?: ElementType;
|
|
8
8
|
loading?: boolean;
|
|
9
|
+
level?: number;
|
|
9
10
|
border?: TimelineBorder;
|
|
10
11
|
color?: Color;
|
|
11
12
|
theme?: Theme;
|
|
@@ -14,4 +15,4 @@ export interface TimelineBaseProps {
|
|
|
14
15
|
avatar?: AvatarProps;
|
|
15
16
|
children?: ReactNode;
|
|
16
17
|
}
|
|
17
|
-
export declare const TimelineBase: ({ as, loading, border, color, icon, iconColor, avatar, children, }: TimelineBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const TimelineBase: ({ as, loading, border, level, color, icon, iconColor, avatar, children, ...props }: TimelineBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ButtonBaseProps, SvgElement } from '..';
|
|
3
|
+
export interface TimelineLinkProps extends Partial<ButtonBaseProps> {
|
|
4
|
+
icon?: SvgElement;
|
|
5
|
+
reverse?: boolean;
|
|
6
|
+
label?: string | ReactNode;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const TimelineLink: ({ size, color, icon, reverse, label, children, ...rest }: TimelineLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ElementType, ReactNode } from 'react';
|
|
2
2
|
import { SectionProps, TimelineBaseProps, TypographyProps } from '..';
|
|
3
3
|
export interface TimelineSectionProps {
|
|
4
4
|
loading?: boolean;
|
|
@@ -11,5 +11,6 @@ export interface TimelineSectionProps {
|
|
|
11
11
|
byline?: ReactNode;
|
|
12
12
|
children?: ReactNode;
|
|
13
13
|
footer?: ReactNode;
|
|
14
|
+
as?: ElementType;
|
|
14
15
|
}
|
|
15
|
-
export declare const TimelineSection: ({ loading, margin, spacing, border, color, typographyProps, datetime, byline, children, footer, }: TimelineSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const TimelineSection: ({ loading, margin, spacing, as, border, color, typographyProps, datetime, byline, children, footer, }: TimelineSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ loading, margin, spacing, border, color, typographyProps, datetime, byline, children, footer, }: import('./TimelineSection').TimelineSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: ({ loading, margin, spacing, as, border, color, typographyProps, datetime, byline, children, footer, }: import('./TimelineSection').TimelineSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { FlexMargin, FlexSpacing, SvgElement, TimelineBaseProps, TimelineBorder, TypographyProps } from '..';
|
|
3
3
|
export interface TimelineSegmentProps extends TimelineBaseProps {
|
|
4
4
|
loading?: boolean;
|
|
5
5
|
icon?: SvgElement;
|
|
@@ -9,7 +9,7 @@ export interface TimelineSegmentProps extends TimelineBaseProps {
|
|
|
9
9
|
children?: ReactNode;
|
|
10
10
|
footer?: ReactNode;
|
|
11
11
|
typographyProps?: TypographyProps;
|
|
12
|
-
margin?:
|
|
13
|
-
spacing?:
|
|
12
|
+
margin?: FlexMargin;
|
|
13
|
+
spacing?: FlexSpacing;
|
|
14
14
|
}
|
|
15
15
|
export declare const TimelineSegment: ({ loading, datetime, byline, icon, color, spacing, margin, children, footer, ...props }: TimelineSegmentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { AttachmentListProps, AvatarProps, BadgeProps, ListItemProps } from '..';
|
|
3
|
-
export interface TransmissionType {
|
|
4
|
-
value: string;
|
|
5
|
-
label: string;
|
|
6
|
-
}
|
|
7
3
|
export interface TransmissionProps extends ListItemProps {
|
|
8
4
|
id: string;
|
|
9
5
|
datetime?: string;
|
|
10
6
|
byline?: ReactNode;
|
|
11
|
-
type?:
|
|
7
|
+
type?: string;
|
|
12
8
|
badge?: BadgeProps;
|
|
13
9
|
createdAt?: string;
|
|
14
10
|
createdAtLabel?: string;
|
|
@@ -17,4 +13,4 @@ export interface TransmissionProps extends ListItemProps {
|
|
|
17
13
|
summary?: string;
|
|
18
14
|
attachments?: AttachmentListProps;
|
|
19
15
|
}
|
|
20
|
-
export declare const Transmission: ({ size, theme, color, type, createdAt, createdAtLabel, badge, sender, summary, attachments, ...item }: TransmissionProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const Transmission: ({ size, theme, color, type, title, createdAt, createdAtLabel, badge, sender, summary, attachments, ...item }: TransmissionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TransmissionTimelineSegmentProps } from '..';
|
|
3
|
+
export interface TransmissionTimelineProps {
|
|
4
|
+
items: TransmissionTimelineSegmentProps[];
|
|
5
|
+
collapsible?: boolean;
|
|
6
|
+
expandLabel?: string | ReactNode;
|
|
7
|
+
collapseLabel?: string | ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const TransmissionTimeline: ({ items, collapsible, expandLabel, collapseLabel }: TransmissionTimelineProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ items, collapsible, expandLabel, collapseLabel }: import('./TransmissionTimeline').TransmissionTimelineProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {};
|
|
7
|
+
args: {
|
|
8
|
+
items: ({
|
|
9
|
+
id: string;
|
|
10
|
+
sender: import('..').AvatarProps;
|
|
11
|
+
byline: string;
|
|
12
|
+
title: string;
|
|
13
|
+
collapsible: false;
|
|
14
|
+
expandLabel: import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
items: ({
|
|
16
|
+
id: string;
|
|
17
|
+
sender: import('..').AvatarProps;
|
|
18
|
+
createdAtLabel: string;
|
|
19
|
+
byline: string;
|
|
20
|
+
title: string;
|
|
21
|
+
type?: undefined;
|
|
22
|
+
} | {
|
|
23
|
+
id: string;
|
|
24
|
+
type: string;
|
|
25
|
+
sender: {
|
|
26
|
+
type: "company";
|
|
27
|
+
name: string;
|
|
28
|
+
};
|
|
29
|
+
createdAtLabel: string;
|
|
30
|
+
byline: string;
|
|
31
|
+
title: string;
|
|
32
|
+
})[];
|
|
33
|
+
createdAtLabel?: undefined;
|
|
34
|
+
type?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
id: string;
|
|
37
|
+
sender: import('..').AvatarProps;
|
|
38
|
+
createdAtLabel: string;
|
|
39
|
+
byline: string;
|
|
40
|
+
title: string;
|
|
41
|
+
expandLabel: import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
items: {
|
|
43
|
+
id: string;
|
|
44
|
+
type: string;
|
|
45
|
+
sender: {
|
|
46
|
+
type: "company";
|
|
47
|
+
name: string;
|
|
48
|
+
};
|
|
49
|
+
byline: string;
|
|
50
|
+
title: string;
|
|
51
|
+
}[];
|
|
52
|
+
collapsible?: undefined;
|
|
53
|
+
type?: undefined;
|
|
54
|
+
} | {
|
|
55
|
+
id: string;
|
|
56
|
+
type: string;
|
|
57
|
+
sender: {
|
|
58
|
+
type: "person";
|
|
59
|
+
name: string;
|
|
60
|
+
};
|
|
61
|
+
createdAtLabel: string;
|
|
62
|
+
byline: string;
|
|
63
|
+
title: string;
|
|
64
|
+
collapsible?: undefined;
|
|
65
|
+
expandLabel?: undefined;
|
|
66
|
+
items?: undefined;
|
|
67
|
+
})[];
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
export default meta;
|
|
71
|
+
type Story = StoryObj<typeof meta>;
|
|
72
|
+
export declare const Default: Story;
|
|
73
|
+
export declare const Collapsible: Story;
|
|
74
|
+
export declare const LinkedItems: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TimelineLinkProps, TransmissionProps } from '..';
|
|
3
|
+
export interface TransmissionTimelineItemProps extends TransmissionProps {
|
|
4
|
+
byline?: string;
|
|
5
|
+
datetime?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TransmissionTimelineSegmentProps extends TransmissionProps {
|
|
8
|
+
items?: TransmissionTimelineItemProps[];
|
|
9
|
+
collapsible?: boolean;
|
|
10
|
+
expandLabel?: string | ReactNode;
|
|
11
|
+
collapseLabel?: string | ReactNode;
|
|
12
|
+
link?: TimelineLinkProps;
|
|
13
|
+
}
|
|
14
|
+
export declare const TransmissionTimelineSegment: ({ collapsible, items, datetime, byline, expandLabel, collapseLabel, link, ...item }: TransmissionTimelineSegmentProps) => import("react/jsx-runtime").JSX.Element;
|