@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.
- package/dist/accountMenu-MvAYkqv1.js +68 -0
- package/dist/attachments-Bpqu8-fZ.js +25 -0
- package/dist/dialogContextMenu-CvlJE9ba.js +38 -0
- package/dist/globalMenu-DY4uIQk2.js +63 -0
- package/dist/lib/components/Dialog/Dialog.stories.d.ts +3 -45
- package/dist/lib/components/Dialog/DialogListItem.stories.d.ts +3 -23
- package/dist/lib/components/Dialog/DraftDialog.stories.d.ts +3 -45
- package/dist/lib/components/Icon/Icon.stories.d.ts +6 -0
- package/dist/lib/components/Menu/MenuItem.stories.d.ts +24 -0
- package/dist/menuItems-DWpXjKEX.js +90 -0
- package/dist/nav-CZ8x72yY.js +8 -0
- package/dist/skatt-Bc2at6fO.js +8 -0
- package/dist/transmissionsCompletedDialog-DOK3nF7d.js +672 -0
- package/dist/useAccountMenu-ImwZYwks.js +82 -0
- package/package.json +4 -4
- package/dist/components/AccessAreaList/AccessAreaListItem.stories.js +0 -85
- package/dist/components/AccessPackageList/AccessPackageList.stories.js +0 -17
- package/dist/components/Attachment/AttachmentLink.stories.js +0 -15
- package/dist/components/Attachment/AttachmentList.stories.js +0 -19
- package/dist/components/Autocomplete/Autocomplete.stories.js +0 -322
- package/dist/components/Avatar/AvatarGroup.stories.js +0 -61
- package/dist/components/Avatar/avatar.stories.js +0 -38
- package/dist/components/Badge/Badge.stories.js +0 -27
- package/dist/components/Bookmarks/BookmarksList.stories.js +0 -61
- package/dist/components/Bookmarks/BookmarksListItem.stories.js +0 -64
- package/dist/components/Bookmarks/BookmarksSection.stories.js +0 -63
- package/dist/components/Button/Button.stories.js +0 -41
- package/dist/components/Button/Buttons.stories.js +0 -51
- package/dist/components/Button/ComboButton.stories.js +0 -38
- package/dist/components/Button/IconButton.stories.js +0 -28
- package/dist/components/Byline/Byline.stories.js +0 -44
- package/dist/components/ContextMenu/ContextMenu.stories.js +0 -50
- package/dist/components/Dialog/Dialog.stories.js +0 -98
- package/dist/components/Dialog/DialogActions.stories.js +0 -55
- package/dist/components/Dialog/DialogAttachments.stories.js +0 -17
- package/dist/components/Dialog/DialogBylline.stories.js +0 -25
- package/dist/components/Dialog/DialogContent.stories.js +0 -39
- package/dist/components/Dialog/DialogHistory.stories.js +0 -34
- package/dist/components/Dialog/DialogList.stories.js +0 -44
- package/dist/components/Dialog/DialogListItem.stories.js +0 -222
- package/dist/components/Dialog/DialogMetadata.stories.js +0 -68
- package/dist/components/Dialog/DialogSeenBy.stories.js +0 -43
- package/dist/components/Dialog/DialogStatus.stories.js +0 -48
- package/dist/components/Dialog/DialogTouchedBy.stories.js +0 -24
- package/dist/components/Dialog/DialogTransmissions.stories.js +0 -184
- package/dist/components/Dialog/DraftDialog.stories.js +0 -142
- package/dist/components/Footer/Footer.stories.js +0 -37
- package/dist/components/GlobalMenu/AccountMenu.stories.js +0 -27
- package/dist/components/GlobalMenu/GlobalMenu.stories.js +0 -46
- package/dist/components/Header/Header.stories.js +0 -35
- package/dist/components/Header/HeaderButton.stories.js +0 -65
- package/dist/components/Header/HeaderLogo.stories.js +0 -14
- package/dist/components/Icon/CheckboxIcon.stories.js +0 -27
- package/dist/components/Icon/Icon.stories.js +0 -21
- package/dist/components/Icon/ProgressIcon.stories.js +0 -36
- package/dist/components/Icon/RadioIcon.stories.js +0 -27
- package/dist/components/Layout/Layout.stories.js +0 -50
- package/dist/components/Layout/LayoutBase.stories.js +0 -14
- package/dist/components/Layout/LayoutBody.stories.js +0 -14
- package/dist/components/Layout/LayoutContent.stories.js +0 -14
- package/dist/components/Layout/LayoutSidebar.stories.js +0 -14
- package/dist/components/LayoutAction/ActionFooter.stories.js +0 -61
- package/dist/components/LayoutAction/ActionHeader.stories.js +0 -16
- package/dist/components/LayoutAction/ActionMenu.stories.js +0 -36
- package/dist/components/List/List.stories.js +0 -41
- package/dist/components/List/ListItem.stories.js +0 -251
- package/dist/components/List/ListItemHeader.stories.js +0 -241
- package/dist/components/Menu/Menu.stories.js +0 -411
- package/dist/components/Menu/MenuItem.stories.js +0 -138
- package/dist/components/Menu/MenuItems.stories.js +0 -338
- package/dist/components/Menu/MenuOption.stories.js +0 -46
- package/dist/components/Menu/MenuSearch.stories.js +0 -16
- package/dist/components/Meta/MetaItem.stories.js +0 -21
- package/dist/components/Meta/MetaList.stories.js +0 -26
- package/dist/components/Meta/MetaProgress.stories.js +0 -25
- package/dist/components/Meta/MetaTimestamp.stories.js +0 -29
- package/dist/components/Page/PageBase.stories.js +0 -54
- package/dist/components/Page/PageHeader.stories.js +0 -91
- package/dist/components/Page/PageNav.stories.js +0 -41
- package/dist/components/ResourceList/ResourceList.stories.js +0 -270
- package/dist/components/ResourceList/ResourceListItem.stories.js +0 -33
- package/dist/components/Searchbar/Searchbar.stories.js +0 -140
- package/dist/components/Snackbar/Snackbar.stories.js +0 -17
- package/dist/components/Timeline/Timeline.stories.js +0 -65
- package/dist/components/Toolbar/Toolbar.stories.js +0 -72
- package/dist/components/Toolbar/ToolbarAdd.stories.js +0 -23
- package/dist/components/Toolbar/ToolbarButton.stories.js +0 -26
- package/dist/components/Toolbar/ToolbarDate.stories.js +0 -61
- package/dist/components/Toolbar/ToolbarDaterange.stories.js +0 -16
- package/dist/components/Toolbar/ToolbarFilter.stories.js +0 -39
- package/dist/components/Toolbar/ToolbarMenu.stories.js +0 -32
- package/dist/components/Toolbar/ToolbarOptions.stories.js +0 -57
- package/dist/components/Toolbar/ToolbarSearch.stories.js +0 -16
- package/dist/components/Transmission/TransmissionItem.stories.js +0 -56
- package/dist/components/Transmission/TransmissionList.stories.js +0 -27
- package/dist/lib/examples/accountMenu.d.ts +0 -2
- package/dist/lib/examples/attachments.d.ts +0 -2
- package/dist/lib/examples/avatar/brreg.d.ts +0 -2
- package/dist/lib/examples/avatar/index.d.ts +0 -5
- package/dist/lib/examples/avatar/nav.d.ts +0 -2
- package/dist/lib/examples/avatar/oslo.d.ts +0 -2
- package/dist/lib/examples/avatar/skatt.d.ts +0 -2
- package/dist/lib/examples/avatar/ssb.d.ts +0 -2
- package/dist/lib/examples/dialog/dialogContextMenu.d.ts +0 -2
- package/dist/lib/examples/dialog/dialogHistoryItems.d.ts +0 -2
- package/dist/lib/examples/dialog/dialogListItems.d.ts +0 -2
- package/dist/lib/examples/dialog/extendedLetterDialog.d.ts +0 -2
- package/dist/lib/examples/dialog/index.d.ts +0 -14
- package/dist/lib/examples/dialog/metadataDialog.d.ts +0 -2
- package/dist/lib/examples/dialog/reportingCompletedDialog.d.ts +0 -2
- package/dist/lib/examples/dialog/reportingDialog.d.ts +0 -2
- package/dist/lib/examples/dialog/reportingDraftDialog.d.ts +0 -2
- package/dist/lib/examples/dialog/reportingHistoryItems.d.ts +0 -2
- package/dist/lib/examples/dialog/reportingInProgressDialog.d.ts +0 -2
- package/dist/lib/examples/dialog/simpleLetterDialog.d.ts +0 -2
- package/dist/lib/examples/dialog/transmissionList.d.ts +0 -2
- package/dist/lib/examples/dialog/transmissionsCompletedDialog.d.ts +0 -2
- package/dist/lib/examples/dialog/transmissionsDialog.d.ts +0 -2
- package/dist/lib/examples/dialog/transmissionsHistoryItems.d.ts +0 -2
- package/dist/lib/examples/dialog/transmissionsInProgressDialog.d.ts +0 -2
- package/dist/lib/examples/dialog/transmissionsTimeline.d.ts +0 -2
- package/dist/lib/examples/footer.d.ts +0 -2
- package/dist/lib/examples/globalMenu.d.ts +0 -2
- package/dist/lib/examples/header.d.ts +0 -2
- package/dist/lib/examples/inboxFilters.d.ts +0 -4
- package/dist/lib/examples/inboxMenu.d.ts +0 -2
- package/dist/lib/examples/index.d.ts +0 -10
- package/dist/lib/examples/loginMenu.d.ts +0 -2
- package/dist/lib/examples/menuItems.d.ts +0 -2
- package/dist/lib/examples/useAccountMenu.d.ts +0 -16
- package/dist/lib/examples/useInboxSearch.d.ts +0 -2
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
const a = {
|
|
2
|
+
accountSearch: {
|
|
3
|
+
placeholder: "Finn konto",
|
|
4
|
+
name: "search-account",
|
|
5
|
+
getResultsLabel: (e = 0) => e ? e + " treff" : "Ingen treff",
|
|
6
|
+
hidden: !1
|
|
7
|
+
},
|
|
8
|
+
accountGroups: {
|
|
9
|
+
primary: {
|
|
10
|
+
title: "Deg selv og favoritter"
|
|
11
|
+
},
|
|
12
|
+
secondary: {
|
|
13
|
+
title: "Andre kontoer"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
accounts: [
|
|
17
|
+
{
|
|
18
|
+
id: "party:mathias",
|
|
19
|
+
groupId: "primary",
|
|
20
|
+
type: "person",
|
|
21
|
+
name: "Mathias Dyngeland"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
id: "party:bergerbar",
|
|
25
|
+
groupId: "favourites",
|
|
26
|
+
type: "company",
|
|
27
|
+
name: "Bergen bar"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: "party:brann",
|
|
31
|
+
groupId: "favourites",
|
|
32
|
+
type: "company",
|
|
33
|
+
name: "Sportsklubben Brann"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: "allAccounts",
|
|
37
|
+
groupId: "groups",
|
|
38
|
+
type: "company",
|
|
39
|
+
name: "Alle virksomheter",
|
|
40
|
+
accountNames: ["Keeperhansker AS", "Stadion drift AS", "Landslaget"],
|
|
41
|
+
selected: !1,
|
|
42
|
+
badge: {
|
|
43
|
+
label: "19"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: "party:keeperhansker",
|
|
48
|
+
groupId: "secondary",
|
|
49
|
+
type: "company",
|
|
50
|
+
name: "Keeperhansker AS"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
id: "party:stadiondrift",
|
|
54
|
+
groupId: "secondary",
|
|
55
|
+
type: "company",
|
|
56
|
+
name: "Stadion drift AS"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: "party:landslaget",
|
|
60
|
+
groupId: "secondary",
|
|
61
|
+
type: "company",
|
|
62
|
+
name: "Landslaget"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
a
|
|
68
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const a = [
|
|
2
|
+
{
|
|
3
|
+
label: "1-0 Castro",
|
|
4
|
+
href: "1-0 Castro.pdf"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
label: "2-0 Kornvig",
|
|
8
|
+
href: "2-0 Kornvig.pdf"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
label: "3-0 Kartum",
|
|
12
|
+
href: "3-0 Kartum.pdf"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
label: "3-1 Zinkernagel",
|
|
16
|
+
href: "3-1 Zinkernagel.pdf"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: "4-1 Castro",
|
|
20
|
+
href: "4-1 Castro.pdf"
|
|
21
|
+
}
|
|
22
|
+
];
|
|
23
|
+
export {
|
|
24
|
+
a
|
|
25
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
id: "context-menu",
|
|
3
|
+
items: [
|
|
4
|
+
{
|
|
5
|
+
groupId: "1",
|
|
6
|
+
id: "1",
|
|
7
|
+
icon: "arrow-redo",
|
|
8
|
+
title: "Del og gi tilgang"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
groupId: "1",
|
|
12
|
+
id: "2",
|
|
13
|
+
icon: "eye",
|
|
14
|
+
title: "Marker som lest"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
groupId: "2",
|
|
18
|
+
id: "3",
|
|
19
|
+
icon: "archive",
|
|
20
|
+
title: "Flytt til arkiv"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
groupId: "2",
|
|
24
|
+
id: "4",
|
|
25
|
+
icon: "trash",
|
|
26
|
+
title: "Flytt til papirkurv"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
groupId: "3",
|
|
30
|
+
id: "4",
|
|
31
|
+
icon: "clock-dashed",
|
|
32
|
+
title: "Aktivitetslogg"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
t as d
|
|
38
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { a as e } from "./accountMenu-MvAYkqv1.js";
|
|
2
|
+
const o = {
|
|
3
|
+
...e,
|
|
4
|
+
menuLabel: "Meny",
|
|
5
|
+
backLabel: "Tilbake",
|
|
6
|
+
logoutButton: { label: "Logg ut" },
|
|
7
|
+
changeLabel: "Endre",
|
|
8
|
+
groups: {
|
|
9
|
+
apps: {
|
|
10
|
+
divider: !0
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
items: [
|
|
14
|
+
{
|
|
15
|
+
id: "inbox",
|
|
16
|
+
groupId: "apps",
|
|
17
|
+
size: "lg",
|
|
18
|
+
icon: "inbox",
|
|
19
|
+
title: "Innboks",
|
|
20
|
+
badge: {
|
|
21
|
+
color: "alert",
|
|
22
|
+
label: "4"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: "access",
|
|
27
|
+
groupId: "apps",
|
|
28
|
+
size: "lg",
|
|
29
|
+
icon: "bookmark",
|
|
30
|
+
title: "Tilganger",
|
|
31
|
+
badge: {
|
|
32
|
+
color: "alert",
|
|
33
|
+
label: "2"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: "access",
|
|
38
|
+
groupId: "apps",
|
|
39
|
+
size: "lg",
|
|
40
|
+
icon: "menu-grid",
|
|
41
|
+
title: "Alle skjema"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: "startup",
|
|
45
|
+
groupId: "help",
|
|
46
|
+
color: "neutral",
|
|
47
|
+
size: "sm",
|
|
48
|
+
icon: "buildings2",
|
|
49
|
+
title: "Starte og drive bedrift"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: "help",
|
|
53
|
+
groupId: "help",
|
|
54
|
+
size: "sm",
|
|
55
|
+
color: "neutral",
|
|
56
|
+
icon: "chat-exclamationmark",
|
|
57
|
+
title: "Trenger du hjelp?"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
o as g
|
|
63
|
+
};
|
|
@@ -1,48 +1,6 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
component: ({ backButton, menu, updatedAt, updatedAtLabel, dueAt, dueAtLabel, status, title, sender, recipient, recipientLabel, recipientGroup, summary, body, actions, attachments, seenBy, activityLog, history, timeline, additionalInfo, contactInfo, }: import('./Dialog').DialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
tags: string[];
|
|
6
|
-
parameters: {};
|
|
7
|
-
decorators: import('@storybook/csf').DecoratorFunction<import('@storybook/react').ReactRenderer>[];
|
|
8
|
-
argTypes: {
|
|
9
|
-
body: {
|
|
10
|
-
control: "text";
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
args: {
|
|
14
|
-
sender: {
|
|
15
|
-
type: "company";
|
|
16
|
-
name: string;
|
|
17
|
-
imageUrl: string;
|
|
18
|
-
};
|
|
19
|
-
recipientLabel: string;
|
|
20
|
-
recipient: {
|
|
21
|
-
type: "person";
|
|
22
|
-
name: string;
|
|
23
|
-
};
|
|
24
|
-
seenBy: {
|
|
25
|
-
as: "a";
|
|
26
|
-
href: string;
|
|
27
|
-
label: string;
|
|
28
|
-
seenByEndUser: true;
|
|
29
|
-
seenByOthersCount: number;
|
|
30
|
-
};
|
|
31
|
-
activityLog: {
|
|
32
|
-
as: "a";
|
|
33
|
-
href: string;
|
|
34
|
-
label: string;
|
|
35
|
-
};
|
|
36
|
-
backButton: {
|
|
37
|
-
label: string;
|
|
38
|
-
};
|
|
39
|
-
menu: import('..').ContextMenuProps;
|
|
40
|
-
updatedAt: string;
|
|
41
|
-
updatedAtLabel: string;
|
|
42
|
-
title: string;
|
|
43
|
-
summary: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Dialog } from './Dialog';
|
|
3
|
+
declare const meta: Meta<typeof Dialog>;
|
|
46
4
|
export default meta;
|
|
47
5
|
type Story = StoryObj<typeof meta>;
|
|
48
6
|
export declare const SimpleLetter: Story;
|
|
@@ -1,26 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
component: ({ size, state, loading, select, status, sender, recipient, recipientLabel, recipientGroup, updatedAt, updatedAtLabel, archivedAt, archivedAtLabel, trashedAt, trashedAtLabel, label, dueAt, dueAtLabel, seen, seenBy, touchedBy, attachmentsCount, title, description, summary, ...rest }: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
tags: string[];
|
|
6
|
-
decorators: import('@storybook/csf').DecoratorFunction<import('@storybook/react').ReactRenderer>[];
|
|
7
|
-
argTypes: {};
|
|
8
|
-
args: {
|
|
9
|
-
title: string;
|
|
10
|
-
summary: string;
|
|
11
|
-
sender: {
|
|
12
|
-
type: "company";
|
|
13
|
-
name: string;
|
|
14
|
-
};
|
|
15
|
-
recipient: {
|
|
16
|
-
type: "person";
|
|
17
|
-
name: string;
|
|
18
|
-
};
|
|
19
|
-
updatedAt: string;
|
|
20
|
-
updatedAtLabel: string;
|
|
21
|
-
status: {};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { DialogListItem, DialogListItemProps } from './DialogListItem';
|
|
3
|
+
declare const meta: Meta<typeof DialogListItem>;
|
|
24
4
|
export default meta;
|
|
25
5
|
export declare const Statuses: (args: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
6
|
export declare const Loading: (args: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,48 +1,6 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
component: ({ backButton, menu, updatedAt, updatedAtLabel, dueAt, dueAtLabel, status, title, sender, recipient, recipientLabel, summary, body, actions, attachments, additionalInfo, contactInfo, }: import('./Dialog').DialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
tags: string[];
|
|
6
|
-
parameters: {};
|
|
7
|
-
decorators: import('@storybook/csf').DecoratorFunction<import('@storybook/react').ReactRenderer>[];
|
|
8
|
-
argTypes: {
|
|
9
|
-
body: {
|
|
10
|
-
control: "text";
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
args: {
|
|
14
|
-
sender: {
|
|
15
|
-
type: "company";
|
|
16
|
-
name: string;
|
|
17
|
-
imageUrl: string;
|
|
18
|
-
};
|
|
19
|
-
recipientLabel: string;
|
|
20
|
-
recipient: {
|
|
21
|
-
type: "person";
|
|
22
|
-
name: string;
|
|
23
|
-
};
|
|
24
|
-
seenBy: {
|
|
25
|
-
as: "a";
|
|
26
|
-
href: string;
|
|
27
|
-
label: string;
|
|
28
|
-
seenByEndUser: true;
|
|
29
|
-
seenByOthersCount: number;
|
|
30
|
-
};
|
|
31
|
-
activityLog: {
|
|
32
|
-
as: "a";
|
|
33
|
-
href: string;
|
|
34
|
-
label: string;
|
|
35
|
-
};
|
|
36
|
-
backButton: {
|
|
37
|
-
label: string;
|
|
38
|
-
};
|
|
39
|
-
menu: import('..').ContextMenuProps;
|
|
40
|
-
updatedAt: string;
|
|
41
|
-
updatedAtLabel: string;
|
|
42
|
-
title: string;
|
|
43
|
-
summary: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { DraftDialog } from './DraftDialog';
|
|
3
|
+
declare const meta: Meta<typeof DraftDialog>;
|
|
46
4
|
export default meta;
|
|
47
5
|
type Story = StoryObj<typeof meta>;
|
|
48
6
|
export declare const SimpleLetter: Story;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ as, color, size, collapsible, expanded, icon, avatar, avatarGroup, title, description, badge, linkText, linkIcon, label, ...rest }: import('./MenuItem').MenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {};
|
|
7
|
+
args: {
|
|
8
|
+
id: string;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Default: Story;
|
|
15
|
+
export declare const DefaultBadge: Story;
|
|
16
|
+
export declare const Large: Story;
|
|
17
|
+
export declare const AlertBadge: Story;
|
|
18
|
+
export declare const Person: Story;
|
|
19
|
+
export declare const PersonGroup: Story;
|
|
20
|
+
export declare const Company: Story;
|
|
21
|
+
export declare const CompanyGroup: Story;
|
|
22
|
+
export declare const PersonAccount: Story;
|
|
23
|
+
export declare const CompanyAccount: Story;
|
|
24
|
+
export declare const ThemesAndColors: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
const a = [
|
|
2
|
+
{
|
|
3
|
+
id: "1",
|
|
4
|
+
groupId: "a1",
|
|
5
|
+
avatar: {
|
|
6
|
+
type: "person",
|
|
7
|
+
name: "Dolly Duck"
|
|
8
|
+
},
|
|
9
|
+
title: "Dolly Duck",
|
|
10
|
+
badge: {
|
|
11
|
+
label: "15"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: "2",
|
|
16
|
+
groupId: "a2",
|
|
17
|
+
avatar: {
|
|
18
|
+
type: "company",
|
|
19
|
+
name: "Bergen Bar"
|
|
20
|
+
},
|
|
21
|
+
title: "Bergen Bar",
|
|
22
|
+
badge: {
|
|
23
|
+
label: "21"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: "3",
|
|
28
|
+
groupId: "a2",
|
|
29
|
+
avatar: {
|
|
30
|
+
type: "company",
|
|
31
|
+
name: "Sportsklubben Brann"
|
|
32
|
+
},
|
|
33
|
+
title: "Sportsklubben Brann",
|
|
34
|
+
badge: {
|
|
35
|
+
label: "4"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
id: "4",
|
|
40
|
+
groupId: "a3",
|
|
41
|
+
avatarGroup: {
|
|
42
|
+
defaultType: "company",
|
|
43
|
+
items: [
|
|
44
|
+
{
|
|
45
|
+
name: "Sportsklubben Brann"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "Bergen Bar"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
title: "Alle virksomheter",
|
|
53
|
+
badge: {
|
|
54
|
+
label: "45"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: "5",
|
|
59
|
+
groupId: "b1",
|
|
60
|
+
avatar: {
|
|
61
|
+
type: "company",
|
|
62
|
+
name: "Jensens Laks"
|
|
63
|
+
},
|
|
64
|
+
title: "Jensens laks"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: "6",
|
|
68
|
+
groupId: "b1",
|
|
69
|
+
avatar: {
|
|
70
|
+
type: "company",
|
|
71
|
+
name: "Haralds gym"
|
|
72
|
+
},
|
|
73
|
+
title: "Haralds gym",
|
|
74
|
+
badge: {
|
|
75
|
+
label: "2"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: "7",
|
|
80
|
+
groupId: "b1",
|
|
81
|
+
avatar: {
|
|
82
|
+
type: "company",
|
|
83
|
+
name: "Trim og tran"
|
|
84
|
+
},
|
|
85
|
+
title: "Trim og tran"
|
|
86
|
+
}
|
|
87
|
+
];
|
|
88
|
+
export {
|
|
89
|
+
a as m
|
|
90
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const A = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAmcSURBVHgB7Zx7cFTVHce/9+4rm8fmRQIYQIQOWpSCMy3vFmlkUlB5TIL/SBGhnaHSTukMOtM/bYexta12UMZ2oKUQixG0VTAEAoi0w7RCCBFix4IgGBOyeWyySfaV3b3X393NY7PZ+8oqJ86cz8ydXe79nd95fM/jd87dIDQCMjjMEMFhCheAMVwAxnABGMMFYAwXgDFcAMZwARjDBWAMF4AxXADGcAEYwwVgDBeAMVwAxnABGMMFYAwXgDFcAMZwARjDBWAMF4AxXADGcAEYwwVgDBeAMVwAxnABGMMFYAwXgDFcAMZwARjDBWAMF4AxXADGMBVAwNcTM+XWs7XiK8hcNmBv5i8D5QQ/AlLnISc9TwetsiWXQ8+PpGNrWADFmTJcLMu/D/vCBap2UnML/Af2w6KkmTABzs2bKZFlhE2kvx9o/BiBS3UQ29qogOpVVgoviVYI06bDuXgR5Kl3QRRFSN1eBE+eQvTGDVilSFyEWbPgLC/HmJFl9B48DOtn11VLpDSoZeFSZDy0lAqn3rT9n7cgXLlfVyjB6J+pKo6CdN3/6U04pk/DcL8bmUWw8Qoa53wLGfQ9/4XfoeSZHUmehrMLt7ejr6YWn/18O6zdnaPyVCrrWLsOk+h5zvxvQ8jMHJGn7Pej54PzaN35PCKna+H44QZ840Al0qH7WA2a16yGEImkbBg5w4lpR47AteJhTT+dR4/CvXq1buOamoJcj62G4+7BxgdSDa7BDKMWByZt2YzRIg1/txUVIX/jE7DPnYubqx6B0NI0lF5yOFD0h5dQvOUpiBkZKdMrguQufwiZcx5A07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l1GVHlqMD1XhVkEebHl50CJEIzRUU53++RhM/CxlRCKV+2YcJQd5g42gNL6kk2bQNvl3CbJO2YSkT7U89HYA6Sy6yYxpFCVWPvGe+u8E9H1ISZ9aaSSVZ1qfyd/18pBTpJVN+DFKWjthWeffZnyYHc6ygXLIOs/VEHR8f5kvTPmvoxnDBWAMF4AxXADGcAEYwwVgDBeAMVwAxnABGMMFYAwXgDFcAMZwARjDBWAMF4AxXADGcAEYwwVgDBeAMVwAxnABGMMFYAwXgDFcAMZwARjDBWAMF4AxXADGcAEYwwVgDBeAMV8A/HMS6gIsMfcAAAAASUVORK5CYII=", B = {
|
|
2
|
+
type: "company",
|
|
3
|
+
name: "NAV",
|
|
4
|
+
imageUrl: A
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
B as n
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const A = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAIAAABt+uBvAAAACXBIWXMAAAsTAAALEwEAmpwYAAAH2klEQVR4nO3ba1BTVx4A8HPvzcnzJiE8FSEJgf1QQK2zKnTBLWBn223dLzW0qDsVKC+1u+y0soKCUHBnVlsNC8x0t2ucVtad2W5hWltcxnYnnV0kTv0GDh0eUhPyEoJBwBAg5O4kEWQZqiW5uVzb85//N3IvJz/O/9zzuACCA1ES351g3VtAsDsREERAEAFBBAQREGRnIiCIgCACgggIIiDIzkRAEAFBBAQREERAkJ2JgCACgggIIiCIgCA7EwFBBAR/OEAYTgCAAQz3Jk5gOIETHAQEl5IUS2ThEdIwmUQaJhSRXB7fK/UwMAwnfqRAGE5Iw2R71bknqqvfOlpRXv67oqLivH37fvniS2lp6Zu3bFUlJkVFx/D4ggdUTEmxBQgATJWYdOXKv6jFmJ2dczgcJpOpr69Pp/vqYmtrzclatTp3x840VWKSNEzGjBGLgJQJqra2NuqR4fF4xsbsF1v/lpb+DABMNP4JA6IoymQ2Hzp82F+VCGhlmM3m/IIC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