@altinn/altinn-components 0.15.1 → 0.15.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/assets/AutocompleteGroup.css +1 -1
- package/dist/assets/ButtonBase.css +1 -1
- package/dist/assets/DialogActions.css +1 -1
- package/dist/assets/DialogHeading.css +1 -1
- package/dist/assets/DialogHistory.css +1 -0
- package/dist/assets/DialogListItem.css +1 -1
- package/dist/assets/Flex.css +1 -1
- package/dist/assets/Grid.css +1 -1
- package/dist/assets/ListItemIcon.css +1 -0
- package/dist/assets/ListItemSelect.css +1 -1
- package/dist/assets/MenuItemIcon.css +1 -1
- package/dist/assets/PageTabs.css +1 -1
- package/dist/assets/TimelineBase.css +1 -1
- package/dist/assets/TimelineSection.css +1 -1
- package/dist/assets/Typography.css +1 -1
- package/dist/components/AccessAreaList/AccessAreaList.js +1 -1
- package/dist/components/AccessAreaList/AccessAreaListItem.js +1 -1
- package/dist/components/AccessPackageList/AccessPackageList.js +1 -1
- package/dist/components/AccessPackageList/AccessPackageListItem.js +1 -1
- package/dist/components/Attachment/AttachmentLink.js +8 -9
- package/dist/components/Attachment/AttachmentList.js +5 -5
- package/dist/components/Bookmarks/BookmarksListItem.js +4 -4
- package/dist/components/Bookmarks/BookmarksSection.js +10 -10
- package/dist/components/Bookmarks/EditableBookmark.js +30 -30
- package/dist/components/Bookmarks/index.js +6 -9
- package/dist/components/Button/ButtonBase.js +5 -5
- package/dist/components/Button/ButtonIcon.js +1 -1
- package/dist/components/Byline/Byline.js +2 -2
- package/dist/components/ContextMenu/ContextMenu.js +5 -5
- package/dist/components/Datepicker/DatepickerHeader.js +1 -1
- package/dist/components/Datepicker/DatepickerTable.js +1 -1
- package/dist/components/Dialog/ActivityItem.js +40 -0
- package/dist/components/Dialog/ActivityItemDetails.js +23 -0
- package/dist/components/Dialog/ActivityLog.js +18 -0
- package/dist/components/Dialog/Dialog.js +74 -74
- package/dist/components/Dialog/DialogActions.js +21 -22
- package/dist/components/Dialog/DialogActivityLog.js +1 -1
- package/dist/components/Dialog/DialogAttachments.js +5 -5
- package/dist/components/Dialog/DialogBody.js +48 -0
- package/dist/components/Dialog/DialogByline.js +10 -10
- package/dist/components/Dialog/DialogContent.js +6 -6
- package/dist/components/Dialog/DialogHeader.js +17 -0
- package/dist/components/Dialog/DialogHeading.js +9 -9
- package/dist/components/Dialog/DialogHistory.js +35 -22
- package/dist/components/Dialog/DialogLabel.js +1 -1
- package/dist/components/Dialog/DialogList.js +2 -2
- package/dist/components/Dialog/DialogListGroup.js +7 -7
- package/dist/components/Dialog/DialogListItem.js +100 -92
- package/dist/components/Dialog/DialogMetadata.js +37 -35
- package/dist/components/Dialog/DialogSection.js +8 -7
- package/dist/components/Dialog/DialogSeenBy.js +1 -1
- package/dist/components/Dialog/DialogSelect.js +1 -1
- package/dist/components/Dialog/DialogStatus.js +1 -1
- package/dist/components/Dialog/DialogTimeline.js +2 -2
- package/dist/components/Dialog/DialogTimelineItem.js +6 -6
- package/dist/components/Dialog/DialogTransmissions.js +2 -2
- package/dist/components/Dialog/SeenByLog.js +29 -0
- package/dist/components/Dialog/index.js +51 -43
- package/dist/components/Dropdown/DrawerButton.js +1 -1
- package/dist/components/Dropdown/DrawerHeader.js +1 -1
- package/dist/components/Dropdown/DrawerOrDropdown.js +1 -1
- package/dist/components/GlobalMenu/AccountButton.js +1 -1
- package/dist/components/GlobalMenu/AccountMenu.js +9 -7
- package/dist/components/GlobalMenu/BackButton.js +1 -1
- package/dist/components/GlobalMenu/GlobalMenu.js +1 -1
- package/dist/components/GlobalMenu/LogoutButton.js +1 -1
- package/dist/components/Header/Header.js +2 -2
- package/dist/components/Header/HeaderBase.js +1 -1
- package/dist/components/Header/HeaderButton.js +1 -1
- package/dist/components/Header/HeaderLogo.js +1 -1
- package/dist/components/Icon/Icon.js +2 -2
- package/dist/components/Icon/IconOrAvatar.js +14 -14
- package/dist/components/Layout/Layout.js +2 -10
- package/dist/components/LayoutAction/ActionHeader.js +5 -5
- package/dist/components/LayoutAction/LayoutAction.js +1 -1
- package/dist/components/List/List.js +1 -1
- package/dist/components/List/ListBase.js +1 -1
- package/dist/components/List/ListItem.js +43 -43
- package/dist/components/List/ListItemHeader.js +25 -25
- package/dist/components/List/ListItemIcon.js +9 -19
- package/dist/components/List/ListItemSelect.js +11 -11
- package/dist/components/Menu/MenuItem.js +1 -1
- package/dist/components/Menu/MenuItemBase.js +2 -2
- package/dist/components/Menu/MenuItemIcon.js +14 -14
- package/dist/components/Menu/MenuItems.js +1 -1
- package/dist/components/Menu/MenuOption.js +32 -19
- package/dist/components/Menu/MenuSearch.js +1 -1
- package/dist/components/Meta/MetaItemMedia.js +1 -1
- package/dist/components/Page/Breadcrumbs.js +1 -1
- package/dist/components/Page/ContactSection.js +40 -0
- package/dist/components/Page/Flex.js +11 -11
- package/dist/components/Page/Grid.js +5 -5
- package/dist/components/Page/PageBase.js +3 -3
- package/dist/components/Page/PageHeader.js +45 -29
- package/dist/components/Page/PageMenu.js +1 -1
- package/dist/components/Page/PageNav.js +16 -21
- package/dist/components/Page/PageTabs.js +8 -8
- package/dist/components/Page/Section.js +1 -1
- package/dist/components/Page/index.js +16 -14
- package/dist/components/ResourceList/ResourceList.js +1 -1
- package/dist/components/ResourceList/ResourceListItem.js +1 -1
- package/dist/components/Search/Autocomplete.js +45 -0
- package/dist/components/{Autocomplete → Search}/AutocompleteGroup.js +3 -3
- package/dist/components/{Autocomplete → Search}/AutocompleteItem.js +32 -10
- package/dist/components/{Searchbar → Search}/SearchField.js +2 -2
- package/dist/components/{Searchbar → Search}/Searchbar.js +8 -7
- package/dist/components/Search/SuggestListItem.js +13 -0
- package/dist/components/Search/index.js +23 -0
- package/dist/components/Snackbar/SnackbarItem.js +1 -1
- package/dist/components/Timeline/TimelineBase.js +1 -1
- package/dist/components/Timeline/TimelineSection.js +20 -20
- package/dist/components/Toolbar/ToolbarAccountMenu.js +5 -5
- package/dist/components/Toolbar/ToolbarAdd.js +5 -5
- package/dist/components/Toolbar/ToolbarButton.js +1 -1
- package/dist/components/Toolbar/ToolbarDaterange.js +5 -5
- package/dist/components/Toolbar/ToolbarFilter.js +5 -5
- package/dist/components/Toolbar/ToolbarMenu.js +5 -5
- package/dist/components/Toolbar/ToolbarOptions.js +17 -17
- package/dist/components/Toolbar/ToolbarSearch.js +1 -1
- package/dist/components/Transmission/TransmissionItem.js +6 -6
- package/dist/components/Transmission/TransmissionList.js +1 -1
- package/dist/components/Typography/Heading.js +7 -6
- package/dist/components/Typography/Typography.js +25 -6
- package/dist/components/index.js +307 -287
- package/dist/index.js +302 -282
- package/dist/types/lib/components/Attachment/AttachmentLink.d.ts +1 -4
- package/dist/types/lib/components/Attachment/AttachmentLink.stories.d.ts +1 -1
- package/dist/types/lib/components/Attachment/AttachmentList.d.ts +1 -3
- package/dist/types/lib/components/Attachment/AttachmentList.stories.d.ts +1 -1
- package/dist/types/lib/components/Avatar/Examples.stories.d.ts +18 -0
- package/dist/types/lib/components/Bookmarks/BookmarksListItem.d.ts +1 -2
- package/dist/types/lib/components/Bookmarks/EditableBookmark.d.ts +1 -3
- package/dist/types/lib/components/Bookmarks/index.d.ts +0 -1
- package/dist/types/lib/components/Dialog/ActivityItem.d.ts +16 -0
- package/dist/types/lib/components/Dialog/ActivityItemDetails.d.ts +6 -0
- package/dist/types/lib/components/Dialog/ActivityLog.d.ts +6 -0
- package/dist/types/lib/components/Dialog/ActivityLog.stories.d.ts +39 -0
- package/dist/types/lib/components/Dialog/Dialog.d.ts +9 -29
- package/dist/types/lib/components/Dialog/Dialog.stories.d.ts +5 -10
- package/dist/types/lib/components/Dialog/DialogActivityLog.d.ts +1 -0
- package/dist/types/lib/components/Dialog/DialogBody.d.ts +34 -0
- package/dist/types/lib/components/Dialog/DialogBody.stories.d.ts +37 -0
- package/dist/types/lib/components/Dialog/DialogByline.d.ts +2 -2
- package/dist/types/lib/components/Dialog/DialogBylline.stories.d.ts +2 -1
- package/dist/types/lib/components/Dialog/DialogHeader.d.ts +14 -0
- package/dist/types/lib/components/Dialog/DialogHeader.stories.d.ts +20 -0
- package/dist/types/lib/components/Dialog/DialogHistory.d.ts +3 -4
- package/dist/types/lib/components/Dialog/DialogHistory.stories.d.ts +9 -2
- package/dist/types/lib/components/Dialog/DialogList.stories.d.ts +0 -1
- package/dist/types/lib/components/Dialog/DialogListItem.d.ts +6 -6
- package/dist/types/lib/components/Dialog/DialogListItem.stories.d.ts +9 -1
- package/dist/types/lib/components/Dialog/DialogMetadata.d.ts +4 -2
- package/dist/types/lib/components/Dialog/DialogMetadata.stories.d.ts +8 -4
- package/dist/types/lib/components/Dialog/DialogSeenBy.d.ts +1 -0
- package/dist/types/lib/components/Dialog/{DraftDialog.stories.d.ts → Examples.stories.d.ts} +2 -4
- package/dist/types/lib/components/Dialog/SeenByLog.d.ts +18 -0
- package/dist/types/lib/components/Dialog/SeenByLog.stories.d.ts +32 -0
- package/dist/types/lib/components/Dialog/index.d.ts +5 -1
- package/dist/types/lib/components/Header/Header.d.ts +1 -1
- package/dist/types/lib/components/Header/Header.stories.d.ts +2 -2
- package/dist/types/lib/components/Layout/Layout.d.ts +1 -1
- package/dist/types/lib/components/Layout/Layout.stories.d.ts +7 -6
- package/dist/types/lib/components/LayoutAction/LayoutAction.stories.d.ts +1 -4
- package/dist/types/lib/components/List/ListItem.d.ts +0 -2
- package/dist/types/lib/components/List/ListItemHeader.d.ts +1 -1
- package/dist/types/lib/components/List/ListItemIcon.d.ts +3 -8
- package/dist/types/lib/components/List/Patterns.stories.d.ts +9 -0
- package/dist/types/lib/components/Menu/MenuOption.d.ts +3 -3
- package/dist/types/lib/components/Menu/MenuOption.stories.d.ts +1 -1
- package/dist/types/lib/components/Page/ContactSection.d.ts +11 -0
- package/dist/types/lib/components/Page/ContactSection.stories.d.ts +25 -0
- package/dist/types/lib/components/Page/Flex.d.ts +1 -1
- package/dist/types/lib/components/Page/PageBase.d.ts +1 -1
- package/dist/types/lib/components/Page/PageHeader.d.ts +7 -3
- package/dist/types/lib/components/Page/PageHeader.stories.d.ts +3 -6
- package/dist/types/lib/components/Page/PageMenu.d.ts +1 -1
- package/dist/types/lib/components/Page/PageNav.d.ts +3 -4
- package/dist/types/lib/components/Page/PageNav.stories.d.ts +3 -3
- package/dist/types/lib/components/Page/PageTabs.d.ts +4 -1
- package/dist/types/lib/components/Page/Patterns.stories.d.ts +10 -0
- package/dist/types/lib/components/Page/index.d.ts +1 -0
- package/dist/types/lib/components/{Autocomplete → Search}/Autocomplete.d.ts +1 -2
- package/dist/types/lib/components/{Autocomplete → Search}/Autocomplete.stories.d.ts +3 -3
- package/dist/types/lib/components/{Autocomplete → Search}/AutocompleteItem.d.ts +6 -6
- package/dist/types/lib/components/{Autocomplete → Search}/ScopeListItem.d.ts +1 -1
- package/dist/types/lib/components/{Searchbar → Search}/Searchbar.d.ts +1 -2
- package/dist/types/lib/components/{Searchbar → Search}/Searchbar.stories.d.ts +5 -1
- package/dist/types/lib/components/Search/SuggestListItem.d.ts +13 -0
- package/dist/types/lib/components/Search/index.d.ts +10 -0
- package/dist/types/lib/components/Timeline/Timeline.stories.d.ts +0 -10
- package/dist/types/lib/components/Timeline/TimelineSection.d.ts +3 -2
- package/dist/types/lib/components/Toolbar/Toolbar.stories.d.ts +3 -1
- package/dist/types/lib/components/Typography/Heading.d.ts +2 -1
- package/dist/types/lib/components/Typography/Heading.stories.d.ts +13 -0
- package/dist/types/lib/components/Typography/Typography.d.ts +4 -1
- package/dist/types/lib/components/Typography/Typography.stories.d.ts +13 -0
- package/dist/types/lib/components/index.d.ts +1 -2
- package/package.json +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +0 -41
- package/dist/components/Autocomplete/index.js +0 -8
- package/dist/components/Dialog/DialogHistoryDetails.js +0 -23
- package/dist/components/Dialog/DialogHistoryItem.js +0 -38
- package/dist/components/Dialog/DraftDialog.js +0 -65
- package/dist/components/Searchbar/index.js +0 -4
- package/dist/types/lib/components/Autocomplete/index.d.ts +0 -3
- package/dist/types/lib/components/Dialog/DialogContent.stories.d.ts +0 -22
- package/dist/types/lib/components/Dialog/DialogHistoryDetails.d.ts +0 -6
- package/dist/types/lib/components/Dialog/DialogHistoryItem.d.ts +0 -13
- package/dist/types/lib/components/Dialog/DraftDialog.d.ts +0 -5
- package/dist/types/lib/components/Searchbar/index.d.ts +0 -1
- package/dist/components/{Autocomplete → Search}/AutocompleteBase.js +0 -0
- package/dist/components/{Bookmarks → Search}/QueryLabel.js +0 -0
- package/dist/components/{Autocomplete → Search}/ScopeListItem.js +1 -1
- /package/dist/components/{Searchbar → Search}/SearchbarBase.js +0 -0
- /package/dist/types/lib/components/Menu/{Patterns.stories.d.ts → Examples.stories.d.ts} +0 -0
- /package/dist/types/lib/components/{Autocomplete → Search}/AutocompleteBase.d.ts +0 -0
- /package/dist/types/lib/components/{Autocomplete → Search}/AutocompleteGroup.d.ts +0 -0
- /package/dist/types/lib/components/{Bookmarks → Search}/QueryLabel.d.ts +0 -0
- /package/dist/types/lib/components/{Searchbar → Search}/SearchField.d.ts +0 -0
- /package/dist/types/lib/components/{Searchbar → Search}/SearchbarBase.d.ts +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IconName } from '../Icon';
|
|
2
|
-
import { TypographySize } from '../Typography';
|
|
3
2
|
export interface AttachmentLinkProps {
|
|
4
3
|
/** Link url */
|
|
5
4
|
href: string;
|
|
@@ -7,7 +6,5 @@ export interface AttachmentLinkProps {
|
|
|
7
6
|
label: string;
|
|
8
7
|
/** Icon */
|
|
9
8
|
icon?: IconName;
|
|
10
|
-
/** Size */
|
|
11
|
-
size?: TypographySize;
|
|
12
9
|
}
|
|
13
|
-
export declare const AttachmentLink: ({
|
|
10
|
+
export declare const AttachmentLink: ({ icon, href, label }: AttachmentLinkProps) => 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: ({
|
|
4
|
+
component: ({ icon, href, label }: import('./AttachmentLink').AttachmentLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: import('./AttachmentLink').AttachmentLinkProps;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { TypographySize } from '../Typography';
|
|
2
1
|
import { AttachmentLinkProps } from './AttachmentLink';
|
|
3
2
|
export interface AttachmentListProps {
|
|
4
3
|
items: AttachmentLinkProps[];
|
|
5
|
-
size?: TypographySize;
|
|
6
4
|
}
|
|
7
|
-
export declare const AttachmentList: ({
|
|
5
|
+
export declare const AttachmentList: ({ items }: AttachmentListProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({
|
|
4
|
+
component: ({ items }: import('./AttachmentList').AttachmentListProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const meta: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: ({ type, size, name, outline, imageUrl, imageUrlAlt, customLabel, className, }: import('./Avatar').AvatarProps) => JSX.Element;
|
|
4
|
+
parameters: {};
|
|
5
|
+
args: {};
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
export declare const AvatarSizes: ({ type, name }: {
|
|
9
|
+
type?: string | undefined;
|
|
10
|
+
name?: string | undefined;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const PeopleAvatars: () => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const CompanyAvatars: () => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const AvatarGroups: ({ defaultType }: {
|
|
15
|
+
defaultType?: string | undefined;
|
|
16
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const PeopleAvatarGroups: () => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const CompanyAvatarGroups: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { ButtonProps, TextFieldProps } from '..';
|
|
2
|
-
import { BookmarksListItemProps } from './BookmarksListItem';
|
|
3
|
-
import { QueryItemProps } from './QueryLabel';
|
|
1
|
+
import { ButtonProps, TextFieldProps, BookmarksListItemProps, QueryItemProps } from '..';
|
|
4
2
|
export interface EditableBookmarkProps extends BookmarksListItemProps {
|
|
5
3
|
id: string;
|
|
6
4
|
/** Input value */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { AvatarProps, DialogAttachmentsProps, DialogTransmissionsProps, TimelineSectionSize } from '../';
|
|
3
|
+
export type ActivityItemType = 'information' | 'created' | 'closed' | 'opened';
|
|
4
|
+
export interface ActivityItemProps {
|
|
5
|
+
type?: ActivityItemType;
|
|
6
|
+
size?: TimelineSectionSize;
|
|
7
|
+
createdAt?: string;
|
|
8
|
+
createdAtLabel?: string;
|
|
9
|
+
createdBy?: AvatarProps;
|
|
10
|
+
description?: string | ReactNode;
|
|
11
|
+
attachments?: DialogAttachmentsProps;
|
|
12
|
+
transmissions?: DialogTransmissionsProps;
|
|
13
|
+
collapsed?: boolean;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare const ActivityItem: ({ type, size, createdBy, createdAt, createdAtLabel, description, children, }: ActivityItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DialogAttachmentsProps, DialogTransmissionsProps } from '../';
|
|
2
|
+
export interface ActivityItemDetailsProps {
|
|
3
|
+
attachments?: DialogAttachmentsProps;
|
|
4
|
+
transmissions?: DialogTransmissionsProps;
|
|
5
|
+
}
|
|
6
|
+
export declare const ActivityItemDetails: ({ attachments, transmissions }: ActivityItemDetailsProps) => false | import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ActivityItemProps, ToolbarProps } from '..';
|
|
2
|
+
export interface ActivityLogProps {
|
|
3
|
+
toolbar?: ToolbarProps;
|
|
4
|
+
items?: ActivityItemProps[];
|
|
5
|
+
}
|
|
6
|
+
export declare const ActivityLog: ({ toolbar, items }: ActivityLogProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { ActivityLog } from './ActivityLog';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ toolbar, items }: import('./ActivityLog').ActivityLogProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
tags: string[];
|
|
7
|
+
parameters: {};
|
|
8
|
+
args: {
|
|
9
|
+
items: ({
|
|
10
|
+
type: "created";
|
|
11
|
+
createdAt: string;
|
|
12
|
+
createdAtLabel: string;
|
|
13
|
+
description: string;
|
|
14
|
+
createdBy?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
type: "information";
|
|
17
|
+
createdBy: import('..').AvatarProps;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
createdAtLabel: string;
|
|
20
|
+
description: string;
|
|
21
|
+
} | {
|
|
22
|
+
type: "opened";
|
|
23
|
+
createdAt: string;
|
|
24
|
+
createdAtLabel: string;
|
|
25
|
+
description: string;
|
|
26
|
+
createdBy?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
type: "closed";
|
|
29
|
+
createdAt: string;
|
|
30
|
+
createdAtLabel: string;
|
|
31
|
+
description: string;
|
|
32
|
+
createdBy?: undefined;
|
|
33
|
+
})[];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export default meta;
|
|
37
|
+
type Story = StoryObj<typeof meta>;
|
|
38
|
+
export declare const Default: Story;
|
|
39
|
+
export declare const WithToolbar: (args: typeof ActivityLog) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,42 +1,22 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface DialogProps {
|
|
2
|
+
import { BackButtonProps, ContactSectionProps, ContextMenuProps, DialogActionButtonProps, DialogAttachmentsProps, DialogBodyProps, DialogHeaderProps, DialogHistoryProps, DialogSectionProps, DialogTimelineProps, PageMenuProps } from '..';
|
|
3
|
+
export interface DialogProps extends DialogHeaderProps, DialogBodyProps {
|
|
4
|
+
/** Dialog is loading */
|
|
5
|
+
loading?: boolean;
|
|
4
6
|
/** Dialog id */
|
|
5
7
|
id: string;
|
|
6
|
-
/** Title */
|
|
7
|
-
title: string;
|
|
8
|
-
/** Sender */
|
|
9
|
-
sender: AvatarProps;
|
|
10
|
-
/** Recipient */
|
|
11
|
-
recipient?: AvatarProps;
|
|
12
8
|
/** Back button */
|
|
13
9
|
backButton?: BackButtonProps;
|
|
14
10
|
/** Context menu */
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
-
/** Updated date time */
|
|
19
|
-
updatedAt?: string;
|
|
20
|
-
/** Updated label */
|
|
21
|
-
updatedAtLabel?: string;
|
|
22
|
-
/** Due date */
|
|
23
|
-
dueAt?: string;
|
|
24
|
-
/** Due at label */
|
|
25
|
-
dueAtLabel?: string;
|
|
26
|
-
/** Recipient label (prefix) */
|
|
27
|
-
recipientLabel?: string;
|
|
28
|
-
/** Group recipient, show both sender and recipient avatars */
|
|
29
|
-
recipientGroup?: boolean;
|
|
11
|
+
contextMenu?: ContextMenuProps;
|
|
12
|
+
/** Page menu */
|
|
13
|
+
pageMenu?: PageMenuProps;
|
|
30
14
|
/** Summary */
|
|
31
15
|
summary?: string;
|
|
32
16
|
/** Body (should be an output markdown/html rendered to React / HTML) */
|
|
33
17
|
body?: ReactNode;
|
|
34
18
|
/** List of action (buttons) */
|
|
35
19
|
actions?: DialogActionButtonProps[];
|
|
36
|
-
/** Dialog is seen by the end user or others */
|
|
37
|
-
seenBy?: DialogSeenByProps;
|
|
38
|
-
/** Activity Log */
|
|
39
|
-
activityLog?: DialogActivityLogProps;
|
|
40
20
|
/** Dialog attachments */
|
|
41
21
|
attachments?: DialogAttachmentsProps;
|
|
42
22
|
/** Dialog history */
|
|
@@ -46,9 +26,9 @@ export interface DialogProps {
|
|
|
46
26
|
/** More information about the dialog, process, etc. */
|
|
47
27
|
additionalInfo?: DialogSectionProps;
|
|
48
28
|
/** Contact information. */
|
|
49
|
-
contactInfo?:
|
|
29
|
+
contactInfo?: ContactSectionProps;
|
|
50
30
|
}
|
|
51
31
|
/**
|
|
52
32
|
* Full representation of a dialog, including attachments, actions and history,
|
|
53
33
|
*/
|
|
54
|
-
export declare const Dialog: ({ backButton,
|
|
34
|
+
export declare const Dialog: ({ loading, backButton, contextMenu, pageMenu, updatedAt, updatedAtLabel, dueAt, dueAtLabel, status, title, sender, recipient, recipientLabel, recipientGroup, summary, body, actions, attachments, seenBy, activityLog, history, timeline, additionalInfo, contactInfo, }: DialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,13 +3,8 @@ import { Dialog } from './Dialog';
|
|
|
3
3
|
declare const meta: Meta<typeof Dialog>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const ReportingInProgress: Story;
|
|
12
|
-
export declare const ReportingCompleted: Story;
|
|
13
|
-
export declare const Transmissions: Story;
|
|
14
|
-
export declare const TransmissionsInProgress: Story;
|
|
15
|
-
export declare const TransmissionsCompleted: Story;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const ContactInfo: Story;
|
|
8
|
+
export declare const RequiresAttention: Story;
|
|
9
|
+
export declare const MultipleAttachments: Story;
|
|
10
|
+
export declare const WithHistory: Story;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { AvatarProps, DialogActivityLogProps, DialogSeenByProps } from '..';
|
|
3
|
+
export interface DialogBodyProps {
|
|
4
|
+
/** Sender */
|
|
5
|
+
sender: AvatarProps;
|
|
6
|
+
/** Recipient */
|
|
7
|
+
recipient?: AvatarProps;
|
|
8
|
+
/** Loading */
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
/** Loading text */
|
|
11
|
+
loadingText?: string;
|
|
12
|
+
/** Group sender and recipient */
|
|
13
|
+
grouped?: boolean;
|
|
14
|
+
/** Updated date time */
|
|
15
|
+
updatedAt?: string;
|
|
16
|
+
/** Updated label */
|
|
17
|
+
updatedAtLabel?: string;
|
|
18
|
+
/** Due date */
|
|
19
|
+
dueAt?: string;
|
|
20
|
+
/** Due at label */
|
|
21
|
+
dueAtLabel?: string;
|
|
22
|
+
/** Recipient label (prefix) */
|
|
23
|
+
recipientLabel?: string;
|
|
24
|
+
/** Group recipient, show both sender and recipient avatars */
|
|
25
|
+
recipientGroup?: boolean;
|
|
26
|
+
/** Dialog is seen by the end user or others */
|
|
27
|
+
seenBy?: DialogSeenByProps;
|
|
28
|
+
/** Activity Log */
|
|
29
|
+
activityLog?: DialogActivityLogProps;
|
|
30
|
+
/** Content */
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
}
|
|
33
|
+
/** DialogBody represents the body, or main part of a dialog, including sender and recipient. */
|
|
34
|
+
export declare const DialogBody: ({ loading, loadingText, grouped, sender, recipient, recipientLabel, updatedAt, updatedAtLabel, children, seenBy, activityLog, }: DialogBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ loading, loadingText, grouped, sender, recipient, recipientLabel, updatedAt, updatedAtLabel, children, seenBy, activityLog, }: import('./DialogBody').DialogBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
args: {
|
|
7
|
+
sender: {
|
|
8
|
+
type: "company";
|
|
9
|
+
name: string;
|
|
10
|
+
imageUrl: string;
|
|
11
|
+
};
|
|
12
|
+
recipientLabel: string;
|
|
13
|
+
recipient: {
|
|
14
|
+
type: "person";
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
updatedAtLabel: string;
|
|
19
|
+
children: import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
seenBy: {
|
|
21
|
+
as: "button";
|
|
22
|
+
seenByEndUser: true;
|
|
23
|
+
label: string;
|
|
24
|
+
};
|
|
25
|
+
activityLog: {
|
|
26
|
+
as: "button";
|
|
27
|
+
label: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export default meta;
|
|
32
|
+
type Story = StoryObj<typeof meta>;
|
|
33
|
+
export declare const Default: Story;
|
|
34
|
+
export declare const Loading: Story;
|
|
35
|
+
export declare const ExtendedContent: Story;
|
|
36
|
+
export declare const WithAttachments: Story;
|
|
37
|
+
export declare const WithActions: Story;
|
|
@@ -3,9 +3,9 @@ export interface DialogBylineProps {
|
|
|
3
3
|
sender?: AvatarProps;
|
|
4
4
|
recipient?: AvatarProps;
|
|
5
5
|
recipientLabel?: string;
|
|
6
|
-
|
|
6
|
+
grouped?: boolean;
|
|
7
7
|
loading?: boolean;
|
|
8
8
|
size?: BylineSize;
|
|
9
9
|
}
|
|
10
10
|
/** Dialog byline */
|
|
11
|
-
export declare const DialogByline: ({ sender, recipient, recipientLabel,
|
|
11
|
+
export declare const DialogByline: ({ sender, recipient, recipientLabel, grouped, loading, size, }: DialogBylineProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ sender, recipient, recipientLabel,
|
|
4
|
+
component: ({ sender, recipient, recipientLabel, grouped, loading, size, }: import('./DialogByline').DialogBylineProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
5
5
|
tags: string[];
|
|
6
6
|
args: {
|
|
7
7
|
sender: import('..').AvatarProps;
|
|
@@ -14,4 +14,5 @@ declare const meta: {
|
|
|
14
14
|
export default meta;
|
|
15
15
|
type Story = StoryObj<typeof meta>;
|
|
16
16
|
export declare const Default: Story;
|
|
17
|
+
export declare const Grouped: Story;
|
|
17
18
|
export declare const Large: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DialogStatusProps } from '..';
|
|
2
|
+
export interface DialogHeaderProps {
|
|
3
|
+
/** Loading state */
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
/** Dialog title */
|
|
6
|
+
title?: string;
|
|
7
|
+
/** Dialog status */
|
|
8
|
+
status?: DialogStatusProps;
|
|
9
|
+
/** Due date */
|
|
10
|
+
dueAt?: string;
|
|
11
|
+
/** Due date label */
|
|
12
|
+
dueAtLabel?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const DialogHeader: ({ loading, title, status, dueAt, dueAtLabel }: DialogHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ loading, title, status, dueAt, dueAtLabel }: import('./DialogHeader').DialogHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {};
|
|
7
|
+
args: {
|
|
8
|
+
title: string;
|
|
9
|
+
status: {
|
|
10
|
+
value: "requires-attention";
|
|
11
|
+
label: string;
|
|
12
|
+
};
|
|
13
|
+
dueAt: string;
|
|
14
|
+
dueAtLabel: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof meta>;
|
|
19
|
+
export declare const Default: Story;
|
|
20
|
+
export declare const Loading: Story;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ActivityItemProps } from '..';
|
|
2
2
|
export interface DialogHistoryProps {
|
|
3
|
-
items?:
|
|
4
|
-
summary?: string;
|
|
3
|
+
items?: ActivityItemProps[];
|
|
5
4
|
updatedAt?: string;
|
|
6
5
|
updatedAtLabel?: string;
|
|
7
6
|
expandLabel?: string;
|
|
8
7
|
collapseLabel?: string;
|
|
9
8
|
collapsible?: boolean;
|
|
10
9
|
}
|
|
11
|
-
export declare const DialogHistory: ({ items,
|
|
10
|
+
export declare const DialogHistory: ({ items, collapsible, expandLabel, collapseLabel, }: DialogHistoryProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ items,
|
|
4
|
+
component: ({ items, collapsible, expandLabel, collapseLabel, }: import('./DialogHistory').DialogHistoryProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: {
|
|
8
|
-
|
|
8
|
+
expandLabel: string;
|
|
9
|
+
collapseLabel: string;
|
|
10
|
+
items: {
|
|
11
|
+
createdBy: import('..').AvatarProps;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
createdAtLabel: string;
|
|
14
|
+
description: string;
|
|
15
|
+
}[];
|
|
9
16
|
};
|
|
10
17
|
};
|
|
11
18
|
export default meta;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AvatarProps, DialogSeenByProps,
|
|
2
|
-
export type DialogListItemSize = 'xs' | 'sm' | 'md' | 'lg'
|
|
1
|
+
import { AvatarProps, DialogSeenByProps, DialogStatusProps, DialogTouchedByActor, ListItemProps, ListItemSelectProps } from '..';
|
|
2
|
+
export type DialogListItemSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
3
3
|
export type DialogListItemState = 'normal' | 'trashed' | 'archived';
|
|
4
4
|
export type DialogListItemTheme = 'default' | 'subtle' | 'transparent';
|
|
5
|
-
export interface DialogListItemProps extends
|
|
5
|
+
export interface DialogListItemProps extends ListItemProps {
|
|
6
6
|
/** Dialog title */
|
|
7
7
|
title: string;
|
|
8
8
|
/** Dialog id */
|
|
@@ -16,7 +16,7 @@ export interface DialogListItemProps extends ListItemBaseProps, ListItemLinkProp
|
|
|
16
16
|
/** Dialog size */
|
|
17
17
|
size?: DialogListItemSize;
|
|
18
18
|
/** Select: Use to support batch operations */
|
|
19
|
-
select?:
|
|
19
|
+
select?: ListItemSelectProps;
|
|
20
20
|
/** Selected: Use to support batch operations */
|
|
21
21
|
selected?: boolean;
|
|
22
22
|
/** Dialog state */
|
|
@@ -28,7 +28,7 @@ export interface DialogListItemProps extends ListItemBaseProps, ListItemLinkProp
|
|
|
28
28
|
/** Dialog Recipient */
|
|
29
29
|
recipientLabel?: string;
|
|
30
30
|
/** Group recipient, show both sender and recipient avatars */
|
|
31
|
-
|
|
31
|
+
grouped?: boolean;
|
|
32
32
|
/** Updated datetime */
|
|
33
33
|
updatedAt?: string;
|
|
34
34
|
/** Updated at label */
|
|
@@ -67,4 +67,4 @@ export interface DialogListItemProps extends ListItemBaseProps, ListItemLinkProp
|
|
|
67
67
|
* summary, sender, and receiver.
|
|
68
68
|
* to mark the item as checked/unchecked and can visually indicate if it is unread.
|
|
69
69
|
*/
|
|
70
|
-
export declare const DialogListItem: ({ size, state, loading, select, selected, status, sender, recipient, recipientLabel,
|
|
70
|
+
export declare const DialogListItem: ({ size, state, loading, select, selected, status, sender, recipient, recipientLabel, grouped, updatedAt, updatedAtLabel, archivedAt, archivedAtLabel, trashedAt, trashedAtLabel, label, dueAt, dueAtLabel, seen, seenBy, touchedBy, attachmentsCount, title, description, summary, theme, ...rest }: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,12 +2,20 @@ import { Meta } from '@storybook/react';
|
|
|
2
2
|
import { DialogListItem, DialogListItemProps } from './DialogListItem';
|
|
3
3
|
declare const meta: Meta<typeof DialogListItem>;
|
|
4
4
|
export default meta;
|
|
5
|
+
export declare const Default: {
|
|
6
|
+
args: {};
|
|
7
|
+
};
|
|
8
|
+
export declare const GroupedAvatars: (args: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const SeenVsUnseen: (args: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const SeenBy: (args: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const InboxStatuses: (args: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const DraftAndSent: (args: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const ArchivedAndTrashed: (args: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
14
|
export declare const Statuses: (args: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
15
|
export declare const Loading: (args: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
16
|
export declare const Variants: (args: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
17
|
export declare const DueAt: (args: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
18
|
export declare const Attachments: (args: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export declare const SeenBy: (args: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
19
|
export declare const TouchedBy: (args: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
20
|
export declare const TextLength: (args: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
21
|
export declare const Selectable: (args: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AvatarProps, DialogSeenByProps, DialogStatusProps, DialogTouchedByProps } from '..';
|
|
1
|
+
import { AvatarProps, DialogActivityLogProps, DialogSeenByProps, DialogStatusProps, DialogTouchedByProps } from '..';
|
|
2
2
|
export type DialogMetadataProps = {
|
|
3
3
|
className?: string;
|
|
4
4
|
/** Metadata is loading */
|
|
@@ -33,10 +33,12 @@ export type DialogMetadataProps = {
|
|
|
33
33
|
attachmentsLabel?: string;
|
|
34
34
|
/** Transmissions label */
|
|
35
35
|
transmissionsLabel?: string;
|
|
36
|
+
/** Activity Log */
|
|
37
|
+
activityLog?: DialogActivityLogProps;
|
|
36
38
|
/** Clickable items */
|
|
37
39
|
onClick?: () => void;
|
|
38
40
|
};
|
|
39
41
|
/**
|
|
40
42
|
* Metadata for a dialog in list view.
|
|
41
43
|
*/
|
|
42
|
-
export declare const DialogMetadata: ({ className, loading, status, sender, updatedAt, updatedAtLabel, dueAt, dueAtLabel, trashedAt, trashedAtLabel, archivedAt, archivedAtLabel, seenBy, touchedBy, attachmentsCount, attachmentsLabel, transmissionsLabel,
|
|
44
|
+
export declare const DialogMetadata: ({ className, loading, status, sender, updatedAt, updatedAtLabel, dueAt, dueAtLabel, trashedAt, trashedAtLabel, archivedAt, archivedAtLabel, seenBy, touchedBy, attachmentsCount, attachmentsLabel, transmissionsLabel, activityLog, }: DialogMetadataProps) => 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: ({ className, loading, status, sender, updatedAt, updatedAtLabel, dueAt, dueAtLabel, trashedAt, trashedAtLabel, archivedAt, archivedAtLabel, seenBy, touchedBy, attachmentsCount, attachmentsLabel, transmissionsLabel,
|
|
4
|
+
component: ({ className, loading, status, sender, updatedAt, updatedAtLabel, dueAt, dueAtLabel, trashedAt, trashedAtLabel, archivedAt, archivedAtLabel, seenBy, touchedBy, attachmentsCount, attachmentsLabel, transmissionsLabel, activityLog, }: import('./DialogMetadata').DialogMetadataProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: {
|
|
@@ -13,6 +13,10 @@ export default meta;
|
|
|
13
13
|
type Story = StoryObj<typeof meta>;
|
|
14
14
|
export declare const Draft: Story;
|
|
15
15
|
export declare const Sent: Story;
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
16
|
+
export declare const DueDate: Story;
|
|
17
|
+
export declare const SeenByEndUser: Story;
|
|
18
|
+
export declare const SeenByOthers: Story;
|
|
19
|
+
export declare const SeenByEndUserAndOthers: Story;
|
|
20
|
+
export declare const SeenByAndActivityLog: Story;
|
|
21
|
+
export declare const SeenByLog: Story;
|
|
22
|
+
export declare const ActivityLog: Story;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import {
|
|
3
|
-
declare const meta: Meta<typeof
|
|
2
|
+
import { Dialog } from '..';
|
|
3
|
+
declare const meta: Meta<typeof Dialog>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
6
6
|
export declare const SimpleLetter: Story;
|
|
@@ -13,5 +13,3 @@ export declare const ReportingCompleted: Story;
|
|
|
13
13
|
export declare const Transmissions: Story;
|
|
14
14
|
export declare const TransmissionsInProgress: Story;
|
|
15
15
|
export declare const TransmissionsCompleted: Story;
|
|
16
|
-
export declare const Draft: Story;
|
|
17
|
-
export declare const Sent: Story;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AvatarProps } from '..';
|
|
2
|
+
export interface SeenByActor extends AvatarProps {
|
|
3
|
+
isEndUser?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface SeenByLogItem {
|
|
6
|
+
id: string;
|
|
7
|
+
seenAt: string;
|
|
8
|
+
seenAtLabel: string;
|
|
9
|
+
seenBy: SeenByActor;
|
|
10
|
+
}
|
|
11
|
+
export interface SeenByLogProps {
|
|
12
|
+
items: SeenByLogItem[];
|
|
13
|
+
endUserLabel: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* SeenByLog
|
|
17
|
+
*/
|
|
18
|
+
export declare const SeenByLog: ({ items, endUserLabel }: SeenByLogProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ items, endUserLabel }: import('./SeenByLog').SeenByLogProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {};
|
|
7
|
+
args: {
|
|
8
|
+
endUserLabel: string;
|
|
9
|
+
items: ({
|
|
10
|
+
id: string;
|
|
11
|
+
seenBy: {
|
|
12
|
+
type: "person";
|
|
13
|
+
name: string;
|
|
14
|
+
isEndUser?: undefined;
|
|
15
|
+
};
|
|
16
|
+
seenAt: string;
|
|
17
|
+
seenAtLabel: string;
|
|
18
|
+
} | {
|
|
19
|
+
id: string;
|
|
20
|
+
seenBy: {
|
|
21
|
+
type: "person";
|
|
22
|
+
name: string;
|
|
23
|
+
isEndUser: true;
|
|
24
|
+
};
|
|
25
|
+
seenAt: string;
|
|
26
|
+
seenAtLabel: string;
|
|
27
|
+
})[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export default meta;
|
|
31
|
+
type Story = StoryObj<typeof meta>;
|
|
32
|
+
export declare const Default: Story;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from './Dialog';
|
|
2
|
+
export * from './DialogHeader';
|
|
3
|
+
export * from './DialogBody';
|
|
2
4
|
export * from './DialogList';
|
|
3
5
|
export * from './DialogListGroup';
|
|
4
6
|
export * from './DialogListItem';
|
|
@@ -19,4 +21,6 @@ export * from './DialogTransmissions';
|
|
|
19
21
|
export * from './DialogTimeline';
|
|
20
22
|
export * from './DialogTimelineItem';
|
|
21
23
|
export * from './DialogHistory';
|
|
22
|
-
export * from './
|
|
24
|
+
export * from './ActivityLog';
|
|
25
|
+
export * from './ActivityItem';
|
|
26
|
+
export * from './SeenByLog';
|