@altinn/altinn-components 0.21.6 → 0.22.1
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/Heading.css +1 -1
- package/dist/assets/SearchField.css +1 -1
- package/dist/assets/SeenByLog.css +1 -0
- package/dist/assets/ToolbarSearch.css +1 -1
- package/dist/assets/Typography.css +1 -1
- package/dist/components/Bookmarks/BookmarksListItem.js +1 -1
- package/dist/components/Bookmarks/BookmarksSection.js +7 -7
- package/dist/components/Dialog/Dialog.js +11 -80
- package/dist/components/Dialog/DialogActivity.js +7 -7
- package/dist/components/Dialog/DialogAttachments.js +7 -7
- package/dist/components/Dialog/DialogBody.js +26 -25
- package/dist/components/Dialog/DialogContact.js +11 -0
- package/dist/components/Dialog/DialogHeader.js +6 -6
- package/dist/components/Dialog/DialogHistory.js +20 -54
- package/dist/components/Dialog/DialogHistoryItem.js +45 -0
- package/dist/components/Dialog/DialogHistorySegment.js +72 -0
- package/dist/components/Dialog/DialogLayout.js +30 -0
- package/dist/components/Dialog/DialogListGroup.js +7 -7
- package/dist/components/Dialog/DialogListItem.js +29 -29
- package/dist/components/Dialog/DialogMetadata.js +1 -1
- package/dist/components/Dialog/DialogSection.js +5 -5
- package/dist/components/Dialog/DialogTabs.js +11 -0
- package/dist/components/Dialog/SeenByLog.js +33 -21
- package/dist/components/Dialog/index.js +47 -39
- package/dist/components/LayoutAction/ActionHeader.js +1 -1
- package/dist/components/List/List.js +1 -1
- package/dist/components/List/ListItemHeader.js +1 -1
- package/dist/components/Page/ContactSection.js +25 -26
- package/dist/components/Page/PageHeader.js +16 -16
- package/dist/components/Search/AutocompleteItem.js +1 -1
- package/dist/components/Search/SearchField.js +40 -40
- package/dist/components/Search/SuggestListItem.js +1 -1
- package/dist/components/Timeline/TimelineActivity.js +4 -4
- package/dist/components/Timeline/TimelineFooter.js +1 -1
- package/dist/components/Timeline/TimelineSection.js +17 -21
- package/dist/components/Timeline/TimelineSegment.js +1 -1
- package/dist/components/Toolbar/ToolbarSearch.js +16 -16
- package/dist/components/Transmission/Transmission.js +39 -36
- package/dist/components/Transmission/TransmissionList.js +2 -2
- package/dist/components/Transmission/index.js +3 -7
- package/dist/components/Typography/Heading.js +29 -6
- package/dist/components/Typography/Typography.js +16 -16
- package/dist/components/index.js +293 -289
- package/dist/index.js +299 -295
- package/dist/types/lib/components/Byline/Byline.d.ts +1 -0
- package/dist/types/lib/components/ContextMenu/ContextMenu.d.ts +1 -1
- package/dist/types/lib/components/Dialog/Dialog.d.ts +11 -27
- package/dist/types/lib/components/Dialog/Dialog.stories.d.ts +4 -4
- package/dist/types/lib/components/Dialog/DialogBody.d.ts +3 -3
- package/dist/types/lib/components/Dialog/DialogBody.stories.d.ts +20 -9
- package/dist/types/lib/components/Dialog/DialogContact.d.ts +4 -0
- package/dist/types/lib/components/Dialog/DialogHeader.stories.d.ts +2 -2
- package/dist/types/lib/components/Dialog/DialogHistory.d.ts +5 -6
- package/dist/types/lib/components/Dialog/DialogHistory.stories.d.ts +9 -3
- package/dist/types/lib/components/Dialog/DialogHistoryItem.d.ts +12 -0
- package/dist/types/lib/components/Dialog/DialogHistorySegment.d.ts +13 -0
- package/dist/types/lib/components/Dialog/DialogLayout.d.ts +16 -0
- package/dist/types/lib/components/Dialog/DialogList.stories.d.ts +3 -0
- package/dist/types/lib/components/Dialog/DialogStatus.stories.d.ts +2 -3
- package/dist/types/lib/components/Dialog/DialogTabs.d.ts +4 -0
- package/dist/types/lib/components/Dialog/SeenByLog.d.ts +7 -7
- package/dist/types/lib/components/Dialog/SeenByLog.stories.d.ts +9 -11
- package/dist/types/lib/components/Dialog/index.d.ts +7 -3
- package/dist/types/lib/components/List/ListBase.d.ts +1 -0
- package/dist/types/lib/components/Page/ContactSection.d.ts +6 -3
- package/dist/types/lib/components/Page/PageMenu.d.ts +1 -0
- package/dist/types/lib/components/Page/PageTabs.d.ts +1 -1
- package/dist/types/lib/components/Timeline/TimelineSection.d.ts +3 -3
- package/dist/types/lib/components/Timeline/TimelineSection.stories.d.ts +1 -1
- package/dist/types/lib/components/Transmission/Transmission.d.ts +4 -3
- package/dist/types/lib/components/Transmission/index.d.ts +0 -2
- package/dist/types/lib/components/Typography/Heading.d.ts +4 -1
- package/dist/types/lib/components/Typography/Heading.stories.d.ts +1 -1
- package/dist/types/lib/components/Typography/Typography.d.ts +3 -3
- package/dist/types/lib/components/Typography/Typography.stories.d.ts +1 -1
- package/dist/types/lib/types/color.d.ts +1 -1
- package/package.json +1 -1
- package/dist/ArrowUp-Cn3ai5t6.js +0 -25
- package/dist/assets/DialogHistory.css +0 -1
- package/dist/components/Transmission/TransmissionTimeline.js +0 -22
- package/dist/components/Transmission/TransmissionTimelineSegment.js +0 -63
- package/dist/components/Transmission/TransmissionType.js +0 -8
- package/dist/types/lib/components/Transmission/TransmissionList.stories.d.ts +0 -13
- package/dist/types/lib/components/Transmission/TransmissionTimeline.d.ts +0 -10
- package/dist/types/lib/components/Transmission/TransmissionTimeline.stories.d.ts +0 -74
- package/dist/types/lib/components/Transmission/TransmissionTimelineSegment.d.ts +0 -14
- package/dist/types/lib/components/Transmission/TransmissionType.d.ts +0 -26
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DropdownPlacement, MenuItemProps, MenuItemGroups } from '../';
|
|
2
2
|
export type ContextMenuSize = 'sm' | 'md';
|
|
3
3
|
export interface ContextMenuProps {
|
|
4
|
-
id
|
|
4
|
+
id?: string;
|
|
5
5
|
items: MenuItemProps[];
|
|
6
6
|
placement?: DropdownPlacement;
|
|
7
7
|
size?: ContextMenuSize;
|
|
@@ -1,34 +1,18 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface DialogProps extends
|
|
2
|
+
import { DialogBodyProps, DialogHeaderProps, DialogLayoutProps, DialogTabsProps } from '..';
|
|
3
|
+
export interface DialogProps extends DialogLayoutProps {
|
|
4
4
|
/** Dialog is loading */
|
|
5
5
|
loading?: boolean;
|
|
6
|
-
/** Dialog
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
|
|
14
|
-
/** Summary */
|
|
15
|
-
summary?: string;
|
|
16
|
-
/** Body (should be an output markdown/html rendered to React / HTML) */
|
|
17
|
-
body?: ReactNode;
|
|
18
|
-
/** List of action (buttons) */
|
|
19
|
-
actions?: DialogActionButtonProps[];
|
|
20
|
-
/** Dialog attachments */
|
|
21
|
-
attachments?: DialogAttachmentsProps;
|
|
22
|
-
/** Dialog history */
|
|
23
|
-
history?: DialogHistoryProps;
|
|
24
|
-
/** Dialog transmissions */
|
|
25
|
-
transmissions?: DialogHistoryProps;
|
|
26
|
-
/** More information about the dialog, process, etc. */
|
|
27
|
-
additionalInfo?: DialogSectionProps;
|
|
28
|
-
/** Contact information. */
|
|
29
|
-
contactInfo?: ContactSectionProps;
|
|
6
|
+
/** Dialog header */
|
|
7
|
+
header?: DialogHeaderProps;
|
|
8
|
+
/** Dialog body */
|
|
9
|
+
body?: DialogBodyProps;
|
|
10
|
+
/** Tabs */
|
|
11
|
+
tabs?: DialogTabsProps;
|
|
12
|
+
/** Tabpanel */
|
|
13
|
+
children?: ReactNode;
|
|
30
14
|
}
|
|
31
15
|
/**
|
|
32
16
|
* Full representation of a dialog, including attachments, actions and history,
|
|
33
17
|
*/
|
|
34
|
-
export declare const Dialog: ({ loading, backButton, contextMenu, pageMenu,
|
|
18
|
+
export declare const Dialog: ({ loading, backButton, contextMenu, pageMenu, header, body, tabs, children }: DialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Dialog } from '
|
|
2
|
+
import { Dialog } from '..';
|
|
3
3
|
declare const meta: Meta<typeof Dialog>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
6
6
|
export declare const Default: Story;
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
7
|
+
export declare const ActivityLog: Story;
|
|
8
|
+
export declare const AdditionalInfo: Story;
|
|
9
|
+
export declare const Contact: Story;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { AvatarProps, DialogActivityLogProps,
|
|
2
|
+
import { AvatarProps, DialogActivityLogProps, SeenByLogProps } from '..';
|
|
3
3
|
export interface DialogBodyProps {
|
|
4
4
|
/** Sender */
|
|
5
5
|
sender: AvatarProps;
|
|
@@ -22,11 +22,11 @@ export interface DialogBodyProps {
|
|
|
22
22
|
/** Group recipient, show both sender and recipient avatars */
|
|
23
23
|
recipientGroup?: boolean;
|
|
24
24
|
/** Dialog is seen by the end user or others */
|
|
25
|
-
|
|
25
|
+
seenByLog?: SeenByLogProps;
|
|
26
26
|
/** Activity Log */
|
|
27
27
|
activityLog?: DialogActivityLogProps;
|
|
28
28
|
/** Content */
|
|
29
29
|
children?: ReactNode;
|
|
30
30
|
}
|
|
31
31
|
/** DialogBody represents the body, or main part of a dialog, including sender and recipient. */
|
|
32
|
-
export declare const DialogBody: ({ loading,
|
|
32
|
+
export declare const DialogBody: ({ loading, sender, recipient, recipientLabel, updatedAt, updatedAtLabel, children, seenByLog, }: DialogBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ loading,
|
|
4
|
+
component: ({ loading, sender, recipient, recipientLabel, updatedAt, updatedAtLabel, children, seenByLog, }: import('./DialogBody').DialogBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
args: {
|
|
7
7
|
sender: {
|
|
@@ -17,14 +17,24 @@ declare const meta: {
|
|
|
17
17
|
updatedAt: string;
|
|
18
18
|
updatedAtLabel: string;
|
|
19
19
|
children: import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
seenByLog: {
|
|
21
|
+
collapsible: true;
|
|
22
|
+
title: string;
|
|
23
|
+
items: ({
|
|
24
|
+
id: string;
|
|
25
|
+
type: "person";
|
|
26
|
+
name: string;
|
|
27
|
+
seenAt: string;
|
|
28
|
+
seenAtLabel: string;
|
|
29
|
+
isEndUser?: undefined;
|
|
30
|
+
} | {
|
|
31
|
+
id: string;
|
|
32
|
+
type: "person";
|
|
33
|
+
name: string;
|
|
34
|
+
isEndUser: true;
|
|
35
|
+
seenAt: string;
|
|
36
|
+
seenAtLabel: string;
|
|
37
|
+
})[];
|
|
28
38
|
};
|
|
29
39
|
};
|
|
30
40
|
};
|
|
@@ -32,6 +42,7 @@ export default meta;
|
|
|
32
42
|
type Story = StoryObj<typeof meta>;
|
|
33
43
|
export declare const Default: Story;
|
|
34
44
|
export declare const Loading: Story;
|
|
45
|
+
export declare const Summary: Story;
|
|
35
46
|
export declare const ExtendedContent: Story;
|
|
36
47
|
export declare const WithAttachments: Story;
|
|
37
48
|
export declare const WithActions: Story;
|
|
@@ -10,11 +10,11 @@ declare const meta: {
|
|
|
10
10
|
value: "requires-attention";
|
|
11
11
|
label: string;
|
|
12
12
|
};
|
|
13
|
-
dueAt: string;
|
|
14
|
-
dueAtLabel: string;
|
|
15
13
|
};
|
|
16
14
|
};
|
|
17
15
|
export default meta;
|
|
18
16
|
type Story = StoryObj<typeof meta>;
|
|
19
17
|
export declare const Default: Story;
|
|
18
|
+
export declare const InProgress: Story;
|
|
19
|
+
export declare const Completed: Story;
|
|
20
20
|
export declare const Loading: Story;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DialogHistorySegmentProps } from '..';
|
|
2
2
|
export interface DialogHistoryProps {
|
|
3
|
-
items
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
items: DialogHistorySegmentProps[];
|
|
4
|
+
collapsible?: boolean;
|
|
5
|
+
expanded?: boolean;
|
|
6
6
|
expandLabel?: string;
|
|
7
7
|
collapseLabel?: string;
|
|
8
|
-
collapsible?: boolean;
|
|
9
8
|
}
|
|
10
|
-
export declare const DialogHistory: ({ items, collapsible, expandLabel, collapseLabel, }: DialogHistoryProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export declare const DialogHistory: ({ items, collapsible, expanded, expandLabel, collapseLabel, }: DialogHistoryProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ items, collapsible, expandLabel, collapseLabel, }: import('./DialogHistory').DialogHistoryProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
+
component: ({ items, collapsible, expanded, 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: import('./DialogHistorySegment').DialogHistorySegmentProps[];
|
|
11
|
+
collapsible?: boolean;
|
|
12
|
+
expanded?: boolean;
|
|
9
13
|
};
|
|
10
14
|
};
|
|
11
15
|
export default meta;
|
|
12
16
|
type Story = StoryObj<typeof meta>;
|
|
13
17
|
export declare const Default: Story;
|
|
18
|
+
export declare const CollapsibleExpanded: Story;
|
|
19
|
+
export declare const ItemExpanded: Story;
|
|
20
|
+
export declare const EverythingExpanded: Story;
|
|
14
21
|
export declare const ActivityLog: Story;
|
|
15
|
-
export declare const Collapsible: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TimelineLinkProps } from '../Timeline';
|
|
3
|
+
import { TransmissionProps } from '../Transmission';
|
|
4
|
+
export interface DialogHistoryItemProps extends Omit<TransmissionProps, 'variant'> {
|
|
5
|
+
variant?: 'transmission' | 'activity';
|
|
6
|
+
byline?: string;
|
|
7
|
+
datetime?: string;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
items?: DialogHistoryItemProps[];
|
|
10
|
+
link?: TimelineLinkProps;
|
|
11
|
+
}
|
|
12
|
+
export declare const DialogHistoryItem: ({ variant, byline, datetime, children, link, ...props }: DialogHistoryItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TransmissionProps } from '..';
|
|
3
|
+
import { DialogHistoryItemProps } from './DialogHistoryItem.tsx';
|
|
4
|
+
export interface DialogHistorySegmentProps extends TransmissionProps {
|
|
5
|
+
items: DialogHistoryItemProps[];
|
|
6
|
+
datetime?: string;
|
|
7
|
+
byline?: string;
|
|
8
|
+
collapsible?: boolean;
|
|
9
|
+
expanded?: boolean;
|
|
10
|
+
expandLabel?: string | ReactNode;
|
|
11
|
+
collapseLabel?: string | ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const DialogHistorySegment: ({ items, datetime, byline, collapsible, expanded, expandLabel, collapseLabel, }: DialogHistorySegmentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BackButtonProps, ContextMenuProps, PageMenuProps } from '..';
|
|
3
|
+
export interface DialogLayoutProps {
|
|
4
|
+
/** Back button */
|
|
5
|
+
backButton?: BackButtonProps;
|
|
6
|
+
/** Context menu */
|
|
7
|
+
contextMenu?: ContextMenuProps;
|
|
8
|
+
/** Page menu */
|
|
9
|
+
pageMenu?: PageMenuProps;
|
|
10
|
+
/** Children */
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Dialog layout with navigation,
|
|
15
|
+
*/
|
|
16
|
+
export declare const DialogLayout: ({ backButton, contextMenu, pageMenu, children }: DialogLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,9 +5,12 @@ declare const meta: {
|
|
|
5
5
|
tags: string[];
|
|
6
6
|
args: {
|
|
7
7
|
items: import('./DialogListItem').DialogListItemProps[];
|
|
8
|
+
groups?: Record<string, import('./DialogListGroup').DialogListGroupProps>;
|
|
9
|
+
sortGroupBy?: (a: [string, import('./DialogListItem').DialogListItemProps[]], b: [string, import('./DialogListItem').DialogListItemProps[]]) => number;
|
|
8
10
|
};
|
|
9
11
|
};
|
|
10
12
|
export default meta;
|
|
11
13
|
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Default: Story;
|
|
12
15
|
export declare const GroupedByDate: Story;
|
|
13
16
|
export declare const GroupedByRoute: Story;
|
|
@@ -3,9 +3,7 @@ declare const meta: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
component: ({ loading, size, value, label }: import('./DialogStatus').DialogStatusProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
5
5
|
tags: string[];
|
|
6
|
-
parameters: {
|
|
7
|
-
layout: string;
|
|
8
|
-
};
|
|
6
|
+
parameters: {};
|
|
9
7
|
argTypes: {
|
|
10
8
|
value: {
|
|
11
9
|
options: string[];
|
|
@@ -15,6 +13,7 @@ declare const meta: {
|
|
|
15
13
|
};
|
|
16
14
|
export default meta;
|
|
17
15
|
type Story = StoryObj<typeof meta>;
|
|
16
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
18
17
|
export declare const Draft: Story;
|
|
19
18
|
export declare const Sent: Story;
|
|
20
19
|
export declare const RequiresAttention: Story;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { AvatarProps } from '..';
|
|
2
|
-
export interface
|
|
3
|
-
isEndUser?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export interface SeenByLogItem {
|
|
2
|
+
export interface SeenByLogItem extends AvatarProps {
|
|
6
3
|
id: string;
|
|
7
4
|
seenAt: string;
|
|
8
5
|
seenAtLabel: string;
|
|
9
|
-
|
|
6
|
+
isEndUser?: boolean;
|
|
10
7
|
}
|
|
11
8
|
export interface SeenByLogProps {
|
|
9
|
+
title?: string;
|
|
10
|
+
collapsible?: boolean;
|
|
11
|
+
expanded?: boolean;
|
|
12
12
|
items: SeenByLogItem[];
|
|
13
|
-
endUserLabel
|
|
13
|
+
endUserLabel?: string;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* SeenByLog
|
|
17
17
|
*/
|
|
18
|
-
export declare const SeenByLog: ({ items, endUserLabel }: SeenByLogProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const SeenByLog: ({ collapsible, expanded, title, items, endUserLabel }: SeenByLogProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,27 +1,24 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ items, endUserLabel }: import('./SeenByLog').SeenByLogProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: ({ collapsible, expanded, title, items, endUserLabel }: import('./SeenByLog').SeenByLogProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: {
|
|
8
|
+
title: string;
|
|
8
9
|
endUserLabel: string;
|
|
9
10
|
items: ({
|
|
10
11
|
id: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
name: string;
|
|
14
|
-
isEndUser?: undefined;
|
|
15
|
-
};
|
|
12
|
+
type: "person";
|
|
13
|
+
name: string;
|
|
16
14
|
seenAt: string;
|
|
17
15
|
seenAtLabel: string;
|
|
16
|
+
isEndUser?: undefined;
|
|
18
17
|
} | {
|
|
19
18
|
id: string;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
isEndUser: true;
|
|
24
|
-
};
|
|
19
|
+
type: "person";
|
|
20
|
+
name: string;
|
|
21
|
+
isEndUser: true;
|
|
25
22
|
seenAt: string;
|
|
26
23
|
seenAtLabel: string;
|
|
27
24
|
})[];
|
|
@@ -30,3 +27,4 @@ declare const meta: {
|
|
|
30
27
|
export default meta;
|
|
31
28
|
type Story = StoryObj<typeof meta>;
|
|
32
29
|
export declare const Default: Story;
|
|
30
|
+
export declare const Collapsible: Story;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export * from './Dialog';
|
|
2
|
+
export * from './DialogLayout';
|
|
2
3
|
export * from './DialogHeader';
|
|
3
4
|
export * from './DialogBody';
|
|
5
|
+
export * from './DialogTabs';
|
|
6
|
+
export * from './DialogSection';
|
|
7
|
+
export * from './DialogContact';
|
|
8
|
+
export * from './DialogHistory';
|
|
9
|
+
export * from './DialogHistorySegment';
|
|
10
|
+
export * from './DialogHistoryItem';
|
|
4
11
|
export * from './DialogList';
|
|
5
12
|
export * from './DialogListGroup';
|
|
6
13
|
export * from './DialogListItem';
|
|
@@ -8,13 +15,10 @@ export * from './DialogMetadata';
|
|
|
8
15
|
export * from './DialogByline';
|
|
9
16
|
export * from './DialogActions';
|
|
10
17
|
export * from './DialogActivityLog';
|
|
11
|
-
export * from './DialogSection';
|
|
12
18
|
export * from './DialogSeenBy';
|
|
13
19
|
export * from './DialogSelect';
|
|
14
20
|
export * from './DialogStatus';
|
|
15
21
|
export * from './DialogHeading';
|
|
16
22
|
export * from './DialogTouchedBy';
|
|
17
23
|
export * from './DialogAttachments';
|
|
18
|
-
export * from './DialogHistory';
|
|
19
|
-
export * from './DialogActivity';
|
|
20
24
|
export * from './SeenByLog';
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { ButtonProps, Color, Theme } from '..';
|
|
2
3
|
export type ContactSectionVariant = 'inline' | 'card';
|
|
3
4
|
export interface ContactSectionProps {
|
|
4
|
-
|
|
5
|
+
id?: string;
|
|
6
|
+
title?: string;
|
|
5
7
|
description?: string;
|
|
6
|
-
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
items: ButtonProps[];
|
|
7
10
|
variant?: ContactSectionVariant;
|
|
8
11
|
color?: Color;
|
|
9
12
|
theme?: Theme;
|
|
10
13
|
}
|
|
11
|
-
export declare const ContactSection: ({ theme, color, variant, title, description, items, }: ContactSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const ContactSection: ({ theme, color, variant, title, description, children, items, }: ContactSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MenuItemColor, MenuItemProps, MenuTheme } from '..';
|
|
2
2
|
export type PageTabsPadding = 0 | 2;
|
|
3
|
-
export type PageTabsVariant = 'card' | undefined;
|
|
4
3
|
export interface PageTabsProps {
|
|
4
|
+
id?: string;
|
|
5
5
|
theme?: MenuTheme;
|
|
6
6
|
color?: MenuItemColor;
|
|
7
7
|
padding?: PageTabsPadding;
|
|
@@ -2,6 +2,7 @@ import { ElementType, ReactNode } from 'react';
|
|
|
2
2
|
import { SectionProps, TimelineBaseProps, TypographyProps } from '..';
|
|
3
3
|
export interface TimelineSectionProps {
|
|
4
4
|
loading?: boolean;
|
|
5
|
+
level?: TimelineBaseProps['level'];
|
|
5
6
|
border?: TimelineBaseProps['border'];
|
|
6
7
|
color?: TimelineBaseProps['color'];
|
|
7
8
|
typographyProps?: TypographyProps;
|
|
@@ -9,8 +10,7 @@ export interface TimelineSectionProps {
|
|
|
9
10
|
spacing?: SectionProps['spacing'];
|
|
10
11
|
datetime?: string;
|
|
11
12
|
byline?: ReactNode;
|
|
12
|
-
children?: ReactNode;
|
|
13
|
-
footer?: ReactNode;
|
|
13
|
+
children?: ReactNode | string;
|
|
14
14
|
as?: ElementType;
|
|
15
15
|
}
|
|
16
|
-
export declare const TimelineSection: ({ loading, margin, spacing, as, border, color, typographyProps, datetime, byline, children,
|
|
16
|
+
export declare const TimelineSection: ({ loading, margin, spacing, as, border, color, typographyProps, datetime, byline, children, }: TimelineSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ loading, margin, spacing, as, border, color, typographyProps, datetime, byline, children,
|
|
4
|
+
component: ({ loading, margin, spacing, as, border, color, typographyProps, datetime, byline, children, }: import('./TimelineSection').TimelineSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: {
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { AttachmentListProps, AvatarProps, BadgeProps, ListItemProps } from '..';
|
|
3
|
+
export type TransmissionType = 'submission' | 'acceptance' | 'rejection' | 'request' | 'alert' | 'decision' | 'correction';
|
|
3
4
|
export interface TransmissionProps extends ListItemProps {
|
|
4
5
|
id: string;
|
|
5
6
|
datetime?: string;
|
|
6
7
|
byline?: ReactNode;
|
|
7
|
-
type?: string;
|
|
8
8
|
badge?: BadgeProps;
|
|
9
9
|
createdAt?: string;
|
|
10
10
|
createdAtLabel?: string;
|
|
11
11
|
sender?: AvatarProps;
|
|
12
|
-
title
|
|
12
|
+
title?: string;
|
|
13
13
|
summary?: string;
|
|
14
14
|
attachments?: AttachmentListProps;
|
|
15
|
+
type?: TransmissionType;
|
|
15
16
|
}
|
|
16
|
-
export declare const Transmission: ({ size, theme, color,
|
|
17
|
+
export declare const Transmission: ({ size, theme, color, title, createdAt, createdAtLabel, badge, sender, summary, attachments, type, ...item }: TransmissionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { TypographyProps } from '..';
|
|
2
3
|
export type HeadingSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
4
|
export type HeadingWeight = 'normal' | 'medium' | 'bold';
|
|
4
5
|
export type HeadingComponent = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div' | 'span';
|
|
@@ -7,7 +8,9 @@ export interface HeadingProps {
|
|
|
7
8
|
as?: HeadingComponent;
|
|
8
9
|
size?: HeadingSize;
|
|
9
10
|
weight?: HeadingWeight;
|
|
11
|
+
color?: TypographyProps['color'];
|
|
12
|
+
theme?: TypographyProps['theme'];
|
|
10
13
|
className?: string;
|
|
11
14
|
children?: ReactNode;
|
|
12
15
|
}
|
|
13
|
-
export declare const Heading: ({ loading, as, size, weight, className, children }: HeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const Heading: ({ loading, as, size, weight, color, theme, className, children, }: HeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ loading, as, size, weight, className, children }: import('./Heading').HeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: ({ loading, as, size, weight, color, theme, className, children, }: import('./Heading').HeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementType, ReactNode } from 'react';
|
|
2
2
|
export type TypographyColor = 'neutral' | 'company' | 'person' | 'article';
|
|
3
|
-
export type
|
|
3
|
+
export type TypographyTheme = 'default' | 'subtle';
|
|
4
4
|
export type TypographySize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
5
|
export interface TypographyProps {
|
|
6
6
|
loading?: boolean;
|
|
@@ -8,9 +8,9 @@ export interface TypographyProps {
|
|
|
8
8
|
as?: ElementType;
|
|
9
9
|
size?: TypographySize;
|
|
10
10
|
color?: TypographyColor;
|
|
11
|
-
|
|
11
|
+
theme?: TypographyTheme;
|
|
12
12
|
className?: string;
|
|
13
13
|
children?: ReactNode;
|
|
14
14
|
href?: string;
|
|
15
15
|
}
|
|
16
|
-
export declare const Typography: ({ loading, loadingText, as, size, color,
|
|
16
|
+
export declare const Typography: ({ loading, loadingText, as, size, color, theme, className, children, ...restProps }: TypographyProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ loading, loadingText, as, size, color,
|
|
4
|
+
component: ({ loading, loadingText, as, size, color, theme, className, children, ...restProps }: import('./Typography').TypographyProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type Color = 'inherit' | 'accent' | 'company' | 'person' | 'neutral' | 'success' | 'warning' | 'danger' | 'info' | 'alert';
|
|
1
|
+
export type Color = 'inherit' | 'accent' | 'company' | 'person' | 'neutral' | 'success' | 'warning' | 'error' | 'danger' | 'info' | 'alert';
|
|
2
2
|
export type Theme = 'transparent' | 'default' | 'subtle' | 'surface' | 'surface-default' | 'surface-hover' | 'surface-active' | 'border' | 'border-subtle' | 'border-default' | 'border-strong' | 'base' | 'base-default' | 'base-hover' | 'base-active';
|
package/package.json
CHANGED
package/dist/ArrowUp-Cn3ai5t6.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as a from "react";
|
|
3
|
-
import { forwardRef as i } from "react";
|
|
4
|
-
import { u as f } from "./useId-CsCRkvK3.js";
|
|
5
|
-
var d = function(t, o) {
|
|
6
|
-
var l = {};
|
|
7
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && o.indexOf(e) < 0 && (l[e] = t[e]);
|
|
8
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
9
|
-
for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
|
|
10
|
-
o.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (l[e[r]] = t[e[r]]);
|
|
11
|
-
return l;
|
|
12
|
-
};
|
|
13
|
-
const m = i((t, o) => {
|
|
14
|
-
var { title: l, titleId: e } = t, r = d(t, ["title", "titleId"]);
|
|
15
|
-
let n = f();
|
|
16
|
-
return n = l ? e || "title-" + n : void 0, a.createElement(
|
|
17
|
-
"svg",
|
|
18
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": n }, r),
|
|
19
|
-
l ? a.createElement("title", { id: n }, l) : null,
|
|
20
|
-
a.createElement("path", { fill: "currentColor", d: "M12.53 4.47a.75.75 0 0 0-1.06 0l-4.5 4.5a.75.75 0 0 0 1.06 1.06l3.22-3.22V19a.75.75 0 0 0 1.5 0V6.81l3.22 3.22a.75.75 0 1 0 1.06-1.06z" })
|
|
21
|
-
);
|
|
22
|
-
});
|
|
23
|
-
export {
|
|
24
|
-
m as S
|
|
25
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._toggle_1it16_1{color:var(--ds-color-text-subtle)}._toggle_1it16_1:hover{color:var(--ds-color-text-default);text-decoration:underline}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
import { createElement as p } from "react";
|
|
4
|
-
import "../../index-L8X2o7IH.js";
|
|
5
|
-
import "../RootProvider/RootProvider.js";
|
|
6
|
-
import "../Search/AutocompleteBase.js";
|
|
7
|
-
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import { Timeline as m } from "../Timeline/Timeline.js";
|
|
9
|
-
import { TransmissionTimelineSegment as a } from "./TransmissionTimelineSegment.js";
|
|
10
|
-
const x = ({ items: l, collapsible: r, expandLabel: o, collapseLabel: i }) => l.length ? /* @__PURE__ */ n(m, { children: l.map((e) => /* @__PURE__ */ p(
|
|
11
|
-
a,
|
|
12
|
-
{
|
|
13
|
-
...e,
|
|
14
|
-
key: e.id,
|
|
15
|
-
collapsible: e.collapsible || r,
|
|
16
|
-
expandLabel: e.expandLabel || o,
|
|
17
|
-
collapseLabel: e.collapseLabel || i
|
|
18
|
-
}
|
|
19
|
-
)) }) : null;
|
|
20
|
-
export {
|
|
21
|
-
x as TransmissionTimeline
|
|
22
|
-
};
|