@altinn/altinn-components 0.10.2 → 0.10.3

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.
Files changed (131) hide show
  1. package/dist/accountMenu-MvAYkqv1.js +68 -0
  2. package/dist/attachments-Bpqu8-fZ.js +25 -0
  3. package/dist/dialogContextMenu-CvlJE9ba.js +38 -0
  4. package/dist/globalMenu-DY4uIQk2.js +63 -0
  5. package/dist/lib/components/Dialog/Dialog.stories.d.ts +3 -45
  6. package/dist/lib/components/Dialog/DialogListItem.stories.d.ts +3 -23
  7. package/dist/lib/components/Dialog/DraftDialog.stories.d.ts +3 -45
  8. package/dist/lib/components/Icon/Icon.stories.d.ts +6 -0
  9. package/dist/lib/components/Menu/MenuItem.stories.d.ts +24 -0
  10. package/dist/menuItems-DWpXjKEX.js +90 -0
  11. package/dist/nav-CZ8x72yY.js +8 -0
  12. package/dist/skatt-Bc2at6fO.js +8 -0
  13. package/dist/transmissionsCompletedDialog-DOK3nF7d.js +672 -0
  14. package/dist/useAccountMenu-ImwZYwks.js +82 -0
  15. package/package.json +4 -4
  16. package/dist/components/AccessAreaList/AccessAreaListItem.stories.js +0 -85
  17. package/dist/components/AccessPackageList/AccessPackageList.stories.js +0 -17
  18. package/dist/components/Attachment/AttachmentLink.stories.js +0 -15
  19. package/dist/components/Attachment/AttachmentList.stories.js +0 -19
  20. package/dist/components/Autocomplete/Autocomplete.stories.js +0 -322
  21. package/dist/components/Avatar/AvatarGroup.stories.js +0 -61
  22. package/dist/components/Avatar/avatar.stories.js +0 -38
  23. package/dist/components/Badge/Badge.stories.js +0 -27
  24. package/dist/components/Bookmarks/BookmarksList.stories.js +0 -61
  25. package/dist/components/Bookmarks/BookmarksListItem.stories.js +0 -64
  26. package/dist/components/Bookmarks/BookmarksSection.stories.js +0 -63
  27. package/dist/components/Button/Button.stories.js +0 -41
  28. package/dist/components/Button/Buttons.stories.js +0 -51
  29. package/dist/components/Button/ComboButton.stories.js +0 -38
  30. package/dist/components/Button/IconButton.stories.js +0 -28
  31. package/dist/components/Byline/Byline.stories.js +0 -44
  32. package/dist/components/ContextMenu/ContextMenu.stories.js +0 -50
  33. package/dist/components/Dialog/Dialog.stories.js +0 -98
  34. package/dist/components/Dialog/DialogActions.stories.js +0 -55
  35. package/dist/components/Dialog/DialogAttachments.stories.js +0 -17
  36. package/dist/components/Dialog/DialogBylline.stories.js +0 -25
  37. package/dist/components/Dialog/DialogContent.stories.js +0 -39
  38. package/dist/components/Dialog/DialogHistory.stories.js +0 -34
  39. package/dist/components/Dialog/DialogList.stories.js +0 -44
  40. package/dist/components/Dialog/DialogListItem.stories.js +0 -222
  41. package/dist/components/Dialog/DialogMetadata.stories.js +0 -68
  42. package/dist/components/Dialog/DialogSeenBy.stories.js +0 -43
  43. package/dist/components/Dialog/DialogStatus.stories.js +0 -48
  44. package/dist/components/Dialog/DialogTouchedBy.stories.js +0 -24
  45. package/dist/components/Dialog/DialogTransmissions.stories.js +0 -184
  46. package/dist/components/Dialog/DraftDialog.stories.js +0 -142
  47. package/dist/components/Footer/Footer.stories.js +0 -37
  48. package/dist/components/GlobalMenu/AccountMenu.stories.js +0 -27
  49. package/dist/components/GlobalMenu/GlobalMenu.stories.js +0 -46
  50. package/dist/components/Header/Header.stories.js +0 -35
  51. package/dist/components/Header/HeaderButton.stories.js +0 -65
  52. package/dist/components/Header/HeaderLogo.stories.js +0 -14
  53. package/dist/components/Icon/CheckboxIcon.stories.js +0 -27
  54. package/dist/components/Icon/Icon.stories.js +0 -21
  55. package/dist/components/Icon/ProgressIcon.stories.js +0 -36
  56. package/dist/components/Icon/RadioIcon.stories.js +0 -27
  57. package/dist/components/Layout/Layout.stories.js +0 -50
  58. package/dist/components/Layout/LayoutBase.stories.js +0 -14
  59. package/dist/components/Layout/LayoutBody.stories.js +0 -14
  60. package/dist/components/Layout/LayoutContent.stories.js +0 -14
  61. package/dist/components/Layout/LayoutSidebar.stories.js +0 -14
  62. package/dist/components/LayoutAction/ActionFooter.stories.js +0 -61
  63. package/dist/components/LayoutAction/ActionHeader.stories.js +0 -16
  64. package/dist/components/LayoutAction/ActionMenu.stories.js +0 -36
  65. package/dist/components/List/List.stories.js +0 -41
  66. package/dist/components/List/ListItem.stories.js +0 -251
  67. package/dist/components/List/ListItemHeader.stories.js +0 -241
  68. package/dist/components/Menu/Menu.stories.js +0 -411
  69. package/dist/components/Menu/MenuItem.stories.js +0 -138
  70. package/dist/components/Menu/MenuItems.stories.js +0 -338
  71. package/dist/components/Menu/MenuOption.stories.js +0 -46
  72. package/dist/components/Menu/MenuSearch.stories.js +0 -16
  73. package/dist/components/Meta/MetaItem.stories.js +0 -21
  74. package/dist/components/Meta/MetaList.stories.js +0 -26
  75. package/dist/components/Meta/MetaProgress.stories.js +0 -25
  76. package/dist/components/Meta/MetaTimestamp.stories.js +0 -29
  77. package/dist/components/Page/PageBase.stories.js +0 -54
  78. package/dist/components/Page/PageHeader.stories.js +0 -91
  79. package/dist/components/Page/PageNav.stories.js +0 -41
  80. package/dist/components/ResourceList/ResourceList.stories.js +0 -270
  81. package/dist/components/ResourceList/ResourceListItem.stories.js +0 -33
  82. package/dist/components/Searchbar/Searchbar.stories.js +0 -140
  83. package/dist/components/Snackbar/Snackbar.stories.js +0 -17
  84. package/dist/components/Timeline/Timeline.stories.js +0 -65
  85. package/dist/components/Toolbar/Toolbar.stories.js +0 -72
  86. package/dist/components/Toolbar/ToolbarAdd.stories.js +0 -23
  87. package/dist/components/Toolbar/ToolbarButton.stories.js +0 -26
  88. package/dist/components/Toolbar/ToolbarDate.stories.js +0 -61
  89. package/dist/components/Toolbar/ToolbarDaterange.stories.js +0 -16
  90. package/dist/components/Toolbar/ToolbarFilter.stories.js +0 -39
  91. package/dist/components/Toolbar/ToolbarMenu.stories.js +0 -32
  92. package/dist/components/Toolbar/ToolbarOptions.stories.js +0 -57
  93. package/dist/components/Toolbar/ToolbarSearch.stories.js +0 -16
  94. package/dist/components/Transmission/TransmissionItem.stories.js +0 -56
  95. package/dist/components/Transmission/TransmissionList.stories.js +0 -27
  96. package/dist/lib/examples/accountMenu.d.ts +0 -2
  97. package/dist/lib/examples/attachments.d.ts +0 -2
  98. package/dist/lib/examples/avatar/brreg.d.ts +0 -2
  99. package/dist/lib/examples/avatar/index.d.ts +0 -5
  100. package/dist/lib/examples/avatar/nav.d.ts +0 -2
  101. package/dist/lib/examples/avatar/oslo.d.ts +0 -2
  102. package/dist/lib/examples/avatar/skatt.d.ts +0 -2
  103. package/dist/lib/examples/avatar/ssb.d.ts +0 -2
  104. package/dist/lib/examples/dialog/dialogContextMenu.d.ts +0 -2
  105. package/dist/lib/examples/dialog/dialogHistoryItems.d.ts +0 -2
  106. package/dist/lib/examples/dialog/dialogListItems.d.ts +0 -2
  107. package/dist/lib/examples/dialog/extendedLetterDialog.d.ts +0 -2
  108. package/dist/lib/examples/dialog/index.d.ts +0 -14
  109. package/dist/lib/examples/dialog/metadataDialog.d.ts +0 -2
  110. package/dist/lib/examples/dialog/reportingCompletedDialog.d.ts +0 -2
  111. package/dist/lib/examples/dialog/reportingDialog.d.ts +0 -2
  112. package/dist/lib/examples/dialog/reportingDraftDialog.d.ts +0 -2
  113. package/dist/lib/examples/dialog/reportingHistoryItems.d.ts +0 -2
  114. package/dist/lib/examples/dialog/reportingInProgressDialog.d.ts +0 -2
  115. package/dist/lib/examples/dialog/simpleLetterDialog.d.ts +0 -2
  116. package/dist/lib/examples/dialog/transmissionList.d.ts +0 -2
  117. package/dist/lib/examples/dialog/transmissionsCompletedDialog.d.ts +0 -2
  118. package/dist/lib/examples/dialog/transmissionsDialog.d.ts +0 -2
  119. package/dist/lib/examples/dialog/transmissionsHistoryItems.d.ts +0 -2
  120. package/dist/lib/examples/dialog/transmissionsInProgressDialog.d.ts +0 -2
  121. package/dist/lib/examples/dialog/transmissionsTimeline.d.ts +0 -2
  122. package/dist/lib/examples/footer.d.ts +0 -2
  123. package/dist/lib/examples/globalMenu.d.ts +0 -2
  124. package/dist/lib/examples/header.d.ts +0 -2
  125. package/dist/lib/examples/inboxFilters.d.ts +0 -4
  126. package/dist/lib/examples/inboxMenu.d.ts +0 -2
  127. package/dist/lib/examples/index.d.ts +0 -10
  128. package/dist/lib/examples/loginMenu.d.ts +0 -2
  129. package/dist/lib/examples/menuItems.d.ts +0 -2
  130. package/dist/lib/examples/useAccountMenu.d.ts +0 -16
  131. package/dist/lib/examples/useInboxSearch.d.ts +0 -2
@@ -1,411 +0,0 @@
1
- import { menuItems as l } from "../../examples/menuItems.js";
2
- import { Menu as s } from "./Menu.js";
3
- const d = {
4
- title: "Menu/Menu",
5
- component: s,
6
- tags: ["autodocs"],
7
- parameters: {},
8
- args: {}
9
- }, p = {
10
- args: {
11
- groups: {
12
- settings: {
13
- defaultItemColor: "neutral"
14
- }
15
- },
16
- items: [
17
- {
18
- id: "account",
19
- groupId: "account",
20
- size: "lg",
21
- avatar: {
22
- type: "person",
23
- name: "Herman Friele"
24
- },
25
- title: "Herman Friele",
26
- description: "Fødselsnr: XX.XX.XXXX"
27
- },
28
- {
29
- id: "inbox",
30
- groupId: "apps",
31
- size: "lg",
32
- icon: "inbox",
33
- title: "Innboks",
34
- badge: {
35
- color: "alert",
36
- label: "4"
37
- }
38
- },
39
- {
40
- id: "access",
41
- groupId: "apps",
42
- size: "lg",
43
- icon: "bookmark",
44
- title: "Tilganger",
45
- badge: {
46
- color: "alert",
47
- label: "2"
48
- }
49
- },
50
- {
51
- id: "access",
52
- groupId: "apps",
53
- size: "lg",
54
- icon: "menu-grid",
55
- title: "Alle skjema"
56
- },
57
- {
58
- id: "settings",
59
- groupId: "settings",
60
- icon: "cog",
61
- title: "Innstillinger"
62
- }
63
- ]
64
- }
65
- }, i = {
66
- args: {
67
- groups: {
68
- settings: {
69
- defaultItemColor: "neutral"
70
- }
71
- },
72
- items: [
73
- {
74
- id: "account",
75
- groupId: "account",
76
- size: "lg",
77
- avatar: {
78
- type: "person",
79
- name: "Herman Friele"
80
- },
81
- title: "Herman Friele",
82
- description: "Fødselsnr: XX.XX.XXXX"
83
- },
84
- {
85
- id: "innboks",
86
- groupId: "apps",
87
- size: "lg",
88
- icon: "inbox",
89
- title: "Innboks",
90
- collapsible: !0,
91
- items: [
92
- {
93
- id: "utkast",
94
- groupId: "1",
95
- icon: "doc-pencil",
96
- title: "Utkast"
97
- },
98
- {
99
- id: "sent",
100
- groupId: "1",
101
- icon: "file-checkmark",
102
- selected: !0,
103
- title: "Sendt"
104
- },
105
- {
106
- id: "bookmarks",
107
- groupId: "3",
108
- icon: "bookmark",
109
- title: "Lagrede søk"
110
- },
111
- {
112
- id: "arkiv",
113
- groupId: "4",
114
- icon: "archive",
115
- title: "Arkivert"
116
- },
117
- {
118
- id: "trash",
119
- groupId: "4",
120
- icon: "trash",
121
- title: "Papirkurv"
122
- }
123
- ]
124
- },
125
- {
126
- id: "tilganger",
127
- groupId: "apps",
128
- size: "lg",
129
- icon: "bookmark",
130
- title: "Tilganger"
131
- },
132
- {
133
- id: "skjema",
134
- groupId: "apps",
135
- size: "lg",
136
- icon: "menu-grid",
137
- title: "Alle skjema"
138
- },
139
- {
140
- id: "settings",
141
- groupId: "settings",
142
- icon: "cog",
143
- title: "Innstillinger"
144
- }
145
- ]
146
- }
147
- }, u = {
148
- args: {
149
- ...i.args,
150
- items: [...i.args.items].map((e) => e.collapsible ? {
151
- ...e,
152
- group: (e == null ? void 0 : e.id) === "inbox" ? "inbox" : "",
153
- expanded: !0
154
- } : e)
155
- }
156
- }, c = {
157
- args: {
158
- defaultItemColor: "subtle",
159
- groups: {
160
- "level-1": {
161
- divider: !0
162
- },
163
- "level-2": {
164
- divider: !0
165
- }
166
- },
167
- items: [
168
- {
169
- id: "people",
170
- groupId: "level-1",
171
- size: "lg",
172
- icon: "menu-grid",
173
- title: "Alle skjema",
174
- expanded: !0,
175
- items: [
176
- {
177
- groupId: "level-2",
178
- id: "tema",
179
- icon: "teddy-bear",
180
- title: "Tema",
181
- expanded: !0,
182
- items: [
183
- {
184
- id: "c1",
185
- groupId: "level-3",
186
- title: "Kategori 1"
187
- },
188
- {
189
- groupId: "level-3",
190
- id: "c2",
191
- title: "Kategori 2"
192
- },
193
- {
194
- groupId: "level-3",
195
- id: "c3",
196
- title: "Kategori 3"
197
- }
198
- ]
199
- }
200
- ]
201
- }
202
- ]
203
- }
204
- }, t = {
205
- args: {
206
- groups: {},
207
- items: [
208
- {
209
- id: "innboks",
210
- groupId: "1",
211
- size: "lg",
212
- icon: "inbox",
213
- title: "Innboks",
214
- color: "strong",
215
- badge: { color: "alert", label: "4" }
216
- },
217
- {
218
- id: "utkast",
219
- groupId: "2",
220
- icon: "doc-pencil",
221
- title: "Utkast",
222
- badge: {
223
- label: "3"
224
- }
225
- },
226
- {
227
- id: "sendt",
228
- groupId: "2",
229
- icon: "file-checkmark",
230
- selected: !0,
231
- title: "Sendt",
232
- badge: {
233
- label: "2"
234
- }
235
- },
236
- {
237
- id: "lagret",
238
- groupId: "3",
239
- icon: "bookmark",
240
- title: "Lagrede søk",
241
- badge: {
242
- label: "5"
243
- }
244
- },
245
- {
246
- id: "arkivert",
247
- groupId: "4",
248
- icon: "archive",
249
- title: "Arkivert",
250
- badge: {
251
- label: "100+"
252
- }
253
- },
254
- {
255
- id: "papirkurv",
256
- groupId: "4",
257
- disabled: !0,
258
- icon: "trash",
259
- title: "Papirkurv",
260
- badge: {
261
- label: "45"
262
- }
263
- }
264
- ],
265
- defaultItemColor: "subtle"
266
- }
267
- };
268
- var r, o;
269
- const k = {
270
- args: {
271
- groups: {
272
- ...(r = t.args) == null ? void 0 : r.groups,
273
- shortcuts: {
274
- title: "Snarveier",
275
- defaultItemColor: "default"
276
- }
277
- },
278
- items: [
279
- ...((o = t == null ? void 0 : t.args) == null ? void 0 : o.items) ?? [],
280
- {
281
- id: "users",
282
- groupId: "shortcuts",
283
- icon: "person-group",
284
- title: "Brukere"
285
- },
286
- {
287
- id: "settings",
288
- groupId: "shortcuts",
289
- icon: "cog",
290
- title: "Innstillinger"
291
- }
292
- ]
293
- }
294
- }, m = {
295
- args: {
296
- groups: {},
297
- items: [
298
- {
299
- id: "person",
300
- groupId: "1",
301
- size: "lg",
302
- avatar: {
303
- type: "person",
304
- name: "Erik Huseklepp"
305
- },
306
- title: "Erik Huseklepp"
307
- },
308
- {
309
- id: "profil",
310
- groupId: "2",
311
- icon: "person-circle",
312
- title: "Kontaktinformasjon"
313
- },
314
- {
315
- id: "varslinger",
316
- groupId: "2",
317
- icon: "bell",
318
- title: "Varslingsinnstillinger"
319
- },
320
- {
321
- id: "bookmarks",
322
- groupId: "3",
323
- icon: "bookmark",
324
- title: "Favoritter"
325
- },
326
- {
327
- id: "grupper",
328
- groupId: "3",
329
- icon: "hexagon-grid",
330
- title: "Grupper"
331
- },
332
- {
333
- id: "logg",
334
- groupId: "4",
335
- icon: "clock-dashed",
336
- title: "Aktivitetslogg"
337
- }
338
- ]
339
- }
340
- }, I = {
341
- args: {
342
- groups: {},
343
- items: [
344
- {
345
- id: "company",
346
- groupId: "1",
347
- size: "lg",
348
- avatar: {
349
- type: "company",
350
- name: "Bergen Bar"
351
- },
352
- title: "Bergen Bar"
353
- },
354
- {
355
- id: "profil",
356
- groupId: "2",
357
- icon: "buildings2",
358
- title: "Firmaprofil"
359
- },
360
- {
361
- id: "brukere",
362
- groupId: "3",
363
- icon: "person-group",
364
- title: "Brukere"
365
- },
366
- {
367
- id: "grupper",
368
- groupId: "3",
369
- icon: "hexagon-grid",
370
- title: "Grupper"
371
- },
372
- {
373
- id: "logg",
374
- groupId: "4",
375
- icon: "clock-dashed",
376
- title: "Aktivitetslogg"
377
- }
378
- ]
379
- }
380
- }, n = {
381
- args: {
382
- groups: {
383
- a1: {
384
- title: "Deg selv, favoritter og grupper"
385
- },
386
- b1: { title: "Andre kontoer" }
387
- },
388
- items: l
389
- }
390
- }, b = {
391
- args: {
392
- ...n.args,
393
- search: {
394
- name: "search",
395
- placeholder: "Søk i kontoer"
396
- }
397
- }
398
- };
399
- export {
400
- n as AccountMenu,
401
- b as AccountMenuWithSearch,
402
- i as CollapsibleGlobalMenu,
403
- I as CompanyMenu,
404
- c as DrilldownMenu,
405
- u as ExpandedGlobalMenu,
406
- p as GlobalMenu,
407
- t as InboxMenu,
408
- k as InboxMenuWithShortcuts,
409
- m as PersonMenu,
410
- d as default
411
- };
@@ -1,138 +0,0 @@
1
- import { jsx as n, jsxs as s } from "react/jsx-runtime";
2
- import { fn as i } from "@storybook/test";
3
- import { LayoutBase as l } from "../Layout/LayoutBase.js";
4
- import "../../index-L8X2o7IH.js";
5
- import "react";
6
- import "../Icon/SvgIcon.js";
7
- import "../Autocomplete/AutocompleteBase.js";
8
- import { MenuItem as o } from "./MenuItem.js";
9
- import { MenuBase as p } from "./MenuBase.js";
10
- import { MetaItem as m } from "../Meta/MetaItem.js";
11
- import "../RootProvider/RootProvider.js";
12
- const I = {
13
- title: "Menu/MenuItem",
14
- component: o,
15
- tags: ["autodocs"],
16
- parameters: {},
17
- args: {
18
- id: "inbox",
19
- onClick: i()
20
- }
21
- }, A = {
22
- args: {
23
- icon: "inbox",
24
- title: "Innboks"
25
- }
26
- }, C = {
27
- args: {
28
- icon: "inbox",
29
- title: "Innboks",
30
- badge: {
31
- label: "4"
32
- }
33
- }
34
- }, G = {
35
- args: {
36
- size: "lg",
37
- icon: "inbox",
38
- title: "Innboks",
39
- color: "strong"
40
- }
41
- }, M = {
42
- args: {
43
- size: "lg",
44
- icon: "inbox",
45
- title: "Innboks",
46
- color: "strong",
47
- badge: {
48
- color: "alert",
49
- label: "4"
50
- }
51
- }
52
- }, c = {
53
- args: {
54
- avatar: {
55
- type: "person",
56
- name: "Eirik Horneland"
57
- },
58
- title: "Eirik Horneland"
59
- }
60
- }, z = {
61
- args: {
62
- avatarGroup: {
63
- items: [
64
- {
65
- type: "person",
66
- name: "Eirik Horneland"
67
- },
68
- {
69
- type: "person",
70
- name: "Japhet Sery Larsen"
71
- },
72
- {
73
- type: "person",
74
- name: "Aune Heggebø"
75
- }
76
- ]
77
- },
78
- title: "3 personer"
79
- }
80
- }, g = {
81
- args: {
82
- avatar: {
83
- type: "company",
84
- name: "Sportsklubben Brann"
85
- },
86
- title: "Sportsklubben Brann"
87
- }
88
- }, H = {
89
- args: {
90
- avatarGroup: {
91
- defaultType: "company",
92
- items: [
93
- {
94
- name: "Sportsklubben Brann"
95
- },
96
- {
97
- name: "Bergen Næringsråd"
98
- },
99
- {
100
- name: "Bergen bar"
101
- }
102
- ]
103
- },
104
- title: "3 virksomheter"
105
- }
106
- }, S = {
107
- args: {
108
- ...c.args,
109
- size: "lg",
110
- description: "Født: XX.XX.XXXX"
111
- }
112
- }, E = {
113
- args: {
114
- ...g.args,
115
- size: "lg",
116
- description: "Org nr.: XX.XX.XXXX"
117
- }
118
- }, L = () => {
119
- const t = ["global", "neutral", "company", "person", "global-dark"], a = ["neutral", "subtle", "strong", "company", "person"];
120
- return /* @__PURE__ */ n("div", { style: { display: "flex", width: "100%" }, children: t.map((e) => /* @__PURE__ */ n("div", { style: { flexGrow: 1 }, children: /* @__PURE__ */ n(l, { theme: e, children: /* @__PURE__ */ n(p, { children: a.map((r) => /* @__PURE__ */ s("div", { children: [
121
- /* @__PURE__ */ n(o, { icon: "inbox", title: "Title", color: r, id: "inbox" }),
122
- /* @__PURE__ */ n(m, { children: e + "/" + r })
123
- ] }, r)) }) }) }, e)) });
124
- };
125
- export {
126
- M as AlertBadge,
127
- g as Company,
128
- E as CompanyAccount,
129
- H as CompanyGroup,
130
- A as Default,
131
- C as DefaultBadge,
132
- G as Large,
133
- c as Person,
134
- S as PersonAccount,
135
- z as PersonGroup,
136
- L as ThemesAndColors,
137
- I as default
138
- };