@altinn/altinn-components 0.6.7 → 0.6.9
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/AvatarGroup.css +1 -1
- package/dist/assets/ButtonBase.css +1 -1
- package/dist/assets/DialogListItemBase.css +1 -1
- package/dist/assets/ListItemBase.css +1 -1
- package/dist/assets/MenuItemBase.css +1 -1
- package/dist/components/Avatar/AvatarGroup.js +21 -21
- package/dist/components/Button/ButtonBase.js +7 -7
- package/dist/components/ContextMenu/ContextMenu.d.ts +3 -1
- package/dist/components/ContextMenu/ContextMenu.js +13 -7
- package/dist/components/ContextMenu/ContextMenuBase.d.ts +3 -1
- package/dist/components/ContextMenu/ContextMenuBase.js +19 -18
- package/dist/components/Dialog/Dialog.d.ts +1 -1
- package/dist/components/Dialog/Dialog.js +41 -50
- package/dist/components/Dialog/Dialog.stories.js +150 -192
- package/dist/components/Dialog/DialogFooter.d.ts +2 -1
- package/dist/components/Dialog/DialogListItem.stories.js +110 -131
- package/dist/components/Dialog/DialogListItemBase.js +5 -5
- package/dist/components/Dialog/DialogNav.js +20 -20
- package/dist/components/List/ListItemBase.js +24 -24
- package/dist/components/Menu/MenuItemBase.js +24 -24
- package/package.json +1 -1
|
@@ -1,43 +1,80 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsxs as t, Fragment as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Dialog as a } from "./Dialog.js";
|
|
3
|
+
const d = {
|
|
3
4
|
title: "Dialog/Dialog",
|
|
4
|
-
component:
|
|
5
|
+
component: a,
|
|
5
6
|
tags: ["autodocs"],
|
|
6
7
|
parameters: {},
|
|
7
8
|
argTypes: { body: { control: "text" } },
|
|
8
9
|
args: {
|
|
10
|
+
seenBy: {
|
|
11
|
+
as: "a",
|
|
12
|
+
href: "#",
|
|
13
|
+
label: "Sett av deg + 2",
|
|
14
|
+
seenByEndUser: !0,
|
|
15
|
+
seenByOthersCount: 24
|
|
16
|
+
},
|
|
17
|
+
activityLog: {
|
|
18
|
+
as: "a",
|
|
19
|
+
href: "#",
|
|
20
|
+
label: "Aktivitetslogg"
|
|
21
|
+
},
|
|
9
22
|
menu: {
|
|
10
23
|
id: "context-menu",
|
|
11
24
|
items: [
|
|
12
25
|
{
|
|
13
|
-
|
|
14
|
-
id: "
|
|
26
|
+
groupId: "1",
|
|
27
|
+
id: "1",
|
|
28
|
+
icon: "arrow-redo",
|
|
29
|
+
title: "Del og gi tilgang"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
groupId: "1",
|
|
33
|
+
id: "2",
|
|
34
|
+
icon: "eye",
|
|
35
|
+
title: "Marker som lest"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
groupId: "2",
|
|
39
|
+
id: "3",
|
|
40
|
+
icon: "archive",
|
|
41
|
+
title: "Flytt til arkiv"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
groupId: "2",
|
|
45
|
+
id: "4",
|
|
46
|
+
icon: "trash",
|
|
47
|
+
title: "Flytt til papirkurv"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
groupId: "3",
|
|
51
|
+
id: "4",
|
|
52
|
+
icon: "clock-dashed",
|
|
53
|
+
title: "Aktivitetslogg"
|
|
15
54
|
}
|
|
16
55
|
]
|
|
17
56
|
},
|
|
18
|
-
updatedAt: "
|
|
19
|
-
updatedAtLabel: "
|
|
57
|
+
updatedAt: "2024-11-25 15:30",
|
|
58
|
+
updatedAtLabel: "25. november 1999 kl 15.30",
|
|
20
59
|
title: "Title",
|
|
21
60
|
summary: "Summary"
|
|
22
61
|
}
|
|
23
|
-
},
|
|
62
|
+
}, o = {
|
|
24
63
|
args: {
|
|
25
|
-
body:
|
|
26
|
-
|
|
27
|
-
Body
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
- List 2
|
|
35
|
-
- List 3
|
|
36
|
-
`
|
|
64
|
+
body: /* @__PURE__ */ t(r, { children: [
|
|
65
|
+
/* @__PURE__ */ e("h2", { children: "Heading 2" }),
|
|
66
|
+
/* @__PURE__ */ e("p", { children: "Body can be displayed using HTML." }),
|
|
67
|
+
/* @__PURE__ */ t("ul", { children: [
|
|
68
|
+
/* @__PURE__ */ e("li", { children: "List item 1" }),
|
|
69
|
+
/* @__PURE__ */ e("li", { children: "List item 2" }),
|
|
70
|
+
/* @__PURE__ */ e("li", { children: "List item 3" })
|
|
71
|
+
] })
|
|
72
|
+
] })
|
|
37
73
|
}
|
|
38
|
-
},
|
|
74
|
+
}, m = {
|
|
39
75
|
args: {
|
|
40
76
|
attachments: {
|
|
77
|
+
title: "2 vedlegg",
|
|
41
78
|
items: [
|
|
42
79
|
{
|
|
43
80
|
label: "Dokument 1.pdf",
|
|
@@ -50,36 +87,24 @@ body supporters basic headings from h2 -> h4 + lists.
|
|
|
50
87
|
]
|
|
51
88
|
}
|
|
52
89
|
}
|
|
53
|
-
},
|
|
90
|
+
}, p = {
|
|
54
91
|
args: {
|
|
55
|
-
|
|
92
|
+
actions: [
|
|
56
93
|
{
|
|
94
|
+
id: "1",
|
|
95
|
+
priority: "primary",
|
|
57
96
|
label: "Primary"
|
|
58
97
|
},
|
|
59
98
|
{
|
|
99
|
+
id: "2",
|
|
100
|
+
priority: "secondary",
|
|
60
101
|
label: "Secondary"
|
|
61
102
|
}
|
|
62
103
|
]
|
|
63
104
|
}
|
|
64
|
-
},
|
|
65
|
-
args: {
|
|
66
|
-
...t.args,
|
|
67
|
-
seenBy: {
|
|
68
|
-
as: "a",
|
|
69
|
-
href: "#",
|
|
70
|
-
label: "Sett av deg + 24",
|
|
71
|
-
seenByEndUser: !0,
|
|
72
|
-
seenByOthersCount: 24
|
|
73
|
-
},
|
|
74
|
-
activityLog: {
|
|
75
|
-
as: "a",
|
|
76
|
-
href: "#",
|
|
77
|
-
label: "Aktivitetslogg"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}, l = {
|
|
105
|
+
}, i = {
|
|
81
106
|
args: {
|
|
82
|
-
status: { value: "requires-attention" },
|
|
107
|
+
status: { label: "Krever handling", value: "requires-attention" },
|
|
83
108
|
sender: {
|
|
84
109
|
name: "Statistisk sentralbyrå",
|
|
85
110
|
imageUrl: "https://digdir-proto-proto.vercel.app/_next/static/media/SSB.0ca4474e.png"
|
|
@@ -88,14 +113,22 @@ body supporters basic headings from h2 -> h4 + lists.
|
|
|
88
113
|
name: "Bergen Bar"
|
|
89
114
|
},
|
|
90
115
|
title: "Rapportering av bedriftsdata",
|
|
91
|
-
summary: "Du må levere bedriftsdata innen
|
|
92
|
-
additionalInfo:
|
|
93
|
-
|
|
116
|
+
summary: "Du må levere bedriftsdata innen 1. januar.",
|
|
117
|
+
additionalInfo: /* @__PURE__ */ t("p", { children: [
|
|
118
|
+
"Din bedrift er en av 8.000 virksomheter som har opplysningsplikt i 2024. Statistikken er viktig for samfunnet og det er ikke valgfritt å delta. Hvis dere ikke sender opplysningene innen fristen, vil foretaket kunne få tvangsmulkt. ",
|
|
119
|
+
/* @__PURE__ */ e("a", { href: "https://www.ssb.no/innrapportering/ledige-stillinger", children: "Les mer på SSB.no" })
|
|
120
|
+
] }),
|
|
121
|
+
actions: [
|
|
94
122
|
{
|
|
123
|
+
id: "1",
|
|
124
|
+
priority: "primary",
|
|
95
125
|
label: "Rapporter bedriftsdata"
|
|
96
126
|
}
|
|
97
127
|
],
|
|
128
|
+
dueAt: "2025-01-01",
|
|
129
|
+
dueAtLabel: "Frist: 1. januar 2025",
|
|
98
130
|
attachments: {
|
|
131
|
+
title: "1 vedlegg",
|
|
99
132
|
items: [
|
|
100
133
|
{
|
|
101
134
|
label: "Vedtak om innlevering av bedriftsdata.pdf",
|
|
@@ -104,118 +137,70 @@ body supporters basic headings from h2 -> h4 + lists.
|
|
|
104
137
|
]
|
|
105
138
|
}
|
|
106
139
|
}
|
|
107
|
-
},
|
|
108
|
-
args: {
|
|
109
|
-
status: { value: "requires-attention" },
|
|
110
|
-
sender: {
|
|
111
|
-
name: "Statistisk sentralbyrå",
|
|
112
|
-
imageUrl: "https://digdir-proto-proto.vercel.app/_next/static/media/SSB.0ca4474e.png"
|
|
113
|
-
},
|
|
114
|
-
recipient: {
|
|
115
|
-
name: "Bergen Bar"
|
|
116
|
-
},
|
|
117
|
-
title: "Rapportering av bedriftsdata",
|
|
118
|
-
summary: "Innrapporteringen inneholder feil. Se over og lever på nytt.",
|
|
119
|
-
additionalInfo: "Din bedrift er pålagt å rapportere inn bedriftsdata innen **31. oktober**. Vi bruker svarene dine kun til å utarbeide statistikk, og enkeltsvar vil aldri bli offentliggjort. Du kan når som helst kontakte oss og kreve av opplysningene om deg blir slettet.",
|
|
120
|
-
action: [
|
|
121
|
-
{
|
|
122
|
-
label: "Rapporter bedriftsdata"
|
|
123
|
-
}
|
|
124
|
-
],
|
|
125
|
-
attachments: {
|
|
126
|
-
items: [
|
|
127
|
-
{
|
|
128
|
-
label: "Feilliste.pdf"
|
|
129
|
-
}
|
|
130
|
-
]
|
|
131
|
-
},
|
|
132
|
-
history: [
|
|
133
|
-
{
|
|
134
|
-
createdAt: "2004-01-01 13:34",
|
|
135
|
-
createdBy: {
|
|
136
|
-
name: "Eirik Horneland"
|
|
137
|
-
},
|
|
138
|
-
summary: "Rapportering ble sendt inn.",
|
|
139
|
-
attachments: [
|
|
140
|
-
{
|
|
141
|
-
label: "Kvittering.pdf"
|
|
142
|
-
}
|
|
143
|
-
]
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
createdAt: "2004-01-01 13:34",
|
|
147
|
-
createdBy: {
|
|
148
|
-
imageUrl: "https://digdir-proto-proto.vercel.app/_next/static/media/SSB.0ca4474e.png",
|
|
149
|
-
name: "Statistisk sentralbyrå"
|
|
150
|
-
},
|
|
151
|
-
summary: "Du må levere bedriftsdata innen 31. oktober.",
|
|
152
|
-
attachments: [
|
|
153
|
-
{
|
|
154
|
-
label: "Vedtak om innlevering av bedriftsdata.pdf"
|
|
155
|
-
}
|
|
156
|
-
]
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
|
-
contactInfo: `Kontakt oss på svar@ssb.no eller ring 62 88 56 08.
|
|
160
|
-
|
|
161
|
-
Svartjenesten er åpen alle hverdager fra kl. 9-21 og lørdager fra kl. 10-16.`
|
|
162
|
-
}
|
|
163
|
-
}, m = {
|
|
140
|
+
}, g = {
|
|
164
141
|
args: {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
142
|
+
...i.args,
|
|
143
|
+
status: { value: "in-progress", label: "Under arbeid" },
|
|
144
|
+
dueAt: null,
|
|
145
|
+
dueAtLabel: null,
|
|
146
|
+
updatedAtLabel: "27. november 2024 kl 10.30",
|
|
147
|
+
summary: "Saken er sendt til manuell behandling. Forventet behandlingstid: 2 uker.",
|
|
148
|
+
body: /* @__PURE__ */ t(r, { children: [
|
|
149
|
+
/* @__PURE__ */ e("h2", { children: "Hva skjer nå?" }),
|
|
150
|
+
/* @__PURE__ */ e("p", { children: "Saken din har fått saksbehandler og blir behandlet manuelt." }),
|
|
151
|
+
/* @__PURE__ */ t("ul", { children: [
|
|
152
|
+
/* @__PURE__ */ t("li", { children: [
|
|
153
|
+
/* @__PURE__ */ e("strong", { children: "Din saksbehandler:" }),
|
|
154
|
+
" Siri Saksbehander"
|
|
155
|
+
] }),
|
|
156
|
+
/* @__PURE__ */ t("li", { children: [
|
|
157
|
+
/* @__PURE__ */ e("strong", { children: "Ditt saksnummer:" }),
|
|
158
|
+
" XRT0987"
|
|
159
|
+
] })
|
|
160
|
+
] }),
|
|
161
|
+
/* @__PURE__ */ e("p", { children: "Oppgi saksnummer ved kontakt." })
|
|
162
|
+
] }),
|
|
163
|
+
actions: null,
|
|
181
164
|
attachments: {},
|
|
165
|
+
additionalInfo: /* @__PURE__ */ t("p", { children: [
|
|
166
|
+
"Din bedrift er en av 8.000 virksomheter som har opplysningsplikt i 2024. Statistikken er viktig for samfunnet og det er ikke valgfritt å delta. Hvis dere ikke sender opplysningene innen fristen, vil foretaket kunne få tvangsmulkt. ",
|
|
167
|
+
/* @__PURE__ */ e("a", { href: "https://www.ssb.no/innrapportering/ledige-stillinger", children: "Les mer på SSB.no" })
|
|
168
|
+
] }),
|
|
182
169
|
history: {
|
|
170
|
+
title: "Hva har skjedd?",
|
|
183
171
|
items: [
|
|
184
172
|
{
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
name: "
|
|
173
|
+
createdBy: {
|
|
174
|
+
type: "person",
|
|
175
|
+
name: "Ola Nordmann"
|
|
188
176
|
},
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
{
|
|
192
|
-
label: "Kvittering.pdf"
|
|
193
|
-
}
|
|
194
|
-
]
|
|
177
|
+
createdAtLabel: "27. november 2024 kl 10.24",
|
|
178
|
+
summary: "Bedriftsdata ble levert."
|
|
195
179
|
},
|
|
196
180
|
{
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
181
|
+
createdBy: {
|
|
182
|
+
type: "company",
|
|
183
|
+
name: "Statistisk sentralbyrå",
|
|
184
|
+
imageUrl: "https://digdir-proto-proto.vercel.app/_next/static/media/SSB.0ca4474e.png"
|
|
201
185
|
},
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
186
|
+
createdAtLabel: "24. november 2024 kl 15.30",
|
|
187
|
+
summary: "Du må levere bedriftsdata innen 1. januar.",
|
|
188
|
+
attachments: {
|
|
189
|
+
title: "1 vedlegg",
|
|
190
|
+
items: [
|
|
191
|
+
{
|
|
192
|
+
label: "Vedtak om innlevering av bedriftsdata.pdf",
|
|
193
|
+
href: ""
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
}
|
|
208
197
|
}
|
|
209
198
|
]
|
|
210
|
-
},
|
|
211
|
-
contact: {
|
|
212
|
-
title: "Ta kontakt",
|
|
213
|
-
body: "Ta kontakt for mer informasjon på telefon 99 00 00 00."
|
|
214
199
|
}
|
|
215
200
|
}
|
|
216
|
-
},
|
|
201
|
+
}, n = {
|
|
217
202
|
args: {
|
|
218
|
-
status: { value: "draft" },
|
|
203
|
+
status: { value: "draft", label: "Utkast" },
|
|
219
204
|
sender: {
|
|
220
205
|
name: "Statistisk sentralbyrå",
|
|
221
206
|
imageUrl: "https://digdir-proto-proto.vercel.app/_next/static/media/SSB.0ca4474e.png"
|
|
@@ -225,71 +210,44 @@ Svartjenesten er åpen alle hverdager fra kl. 9-21 og lørdager fra kl. 10-16.`
|
|
|
225
210
|
},
|
|
226
211
|
title: "Registrere enkeltmannsforetak",
|
|
227
212
|
summary: "Skjema er opprettet.",
|
|
228
|
-
|
|
213
|
+
actions: [
|
|
229
214
|
{
|
|
215
|
+
id: "1",
|
|
216
|
+
priority: "primary",
|
|
230
217
|
label: "Gå til skjema"
|
|
231
218
|
},
|
|
232
219
|
{
|
|
220
|
+
id: "2",
|
|
221
|
+
priority: "secondary",
|
|
233
222
|
label: "Forkast"
|
|
234
223
|
}
|
|
235
224
|
],
|
|
236
|
-
attachments: {}
|
|
237
|
-
additionalInfo: "Enkeltpersonforetak må registreres i Enhetsregisteret for å få et organisasjonsnummer. Enkelte må også registreres i Foretaksregisteret."
|
|
225
|
+
attachments: {}
|
|
238
226
|
}
|
|
239
|
-
},
|
|
227
|
+
}, c = {
|
|
240
228
|
args: {
|
|
241
|
-
...
|
|
242
|
-
status: { value: "
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
label: "Avslå signering"
|
|
250
|
-
}
|
|
251
|
-
],
|
|
252
|
-
history: {
|
|
229
|
+
...n.args,
|
|
230
|
+
status: { value: "sent", label: "Sendt" },
|
|
231
|
+
actions: null,
|
|
232
|
+
summary: "Skjema er sendt inn.",
|
|
233
|
+
attachments: {
|
|
234
|
+
title: "1 vedlegg",
|
|
253
235
|
items: [
|
|
254
236
|
{
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
type: "person",
|
|
258
|
-
name: "Eirik Horneland"
|
|
259
|
-
},
|
|
260
|
-
summary: "Rapportering ble sendt inn.",
|
|
261
|
-
attachments: [
|
|
262
|
-
{
|
|
263
|
-
label: "Kvittering.pdf"
|
|
264
|
-
}
|
|
265
|
-
]
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
createdAt: "2004-01-01 13:34",
|
|
269
|
-
createdBy: {
|
|
270
|
-
imageUrl: "https://digdir-proto-proto.vercel.app/_next/static/media/SSB.0ca4474e.png",
|
|
271
|
-
name: "Statistisk sentralbyrå"
|
|
272
|
-
},
|
|
273
|
-
summary: "Du må levere bedriftsdata innen 31. oktober.",
|
|
274
|
-
attachments: [
|
|
275
|
-
{
|
|
276
|
-
label: "Vedtak om innlevering av bedriftsdata.pdf"
|
|
277
|
-
}
|
|
278
|
-
]
|
|
237
|
+
href: "#",
|
|
238
|
+
label: "Kvittering på innsendt skjema.pdf"
|
|
279
239
|
}
|
|
280
240
|
]
|
|
281
241
|
}
|
|
282
242
|
}
|
|
283
243
|
};
|
|
284
244
|
export {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
m as Signering,
|
|
294
|
-
n as default
|
|
245
|
+
p as Actions,
|
|
246
|
+
m as Attachments,
|
|
247
|
+
o as Body,
|
|
248
|
+
n as Draft,
|
|
249
|
+
g as InProgress,
|
|
250
|
+
i as RequiresAttention,
|
|
251
|
+
c as Sent,
|
|
252
|
+
d as default
|
|
295
253
|
};
|