@altinn/altinn-components 0.10.0 → 0.10.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/DialogHeading.css +1 -1
- package/dist/assets/DialogListItem.css +1 -1
- package/dist/assets/ListItemBase.css +1 -1
- package/dist/assets/ListItemHeader.css +1 -1
- package/dist/assets/ListItemLabel.css +1 -1
- package/dist/assets/ListItemLink.css +1 -0
- package/dist/assets/ListItemMedia.css +1 -1
- package/dist/assets/ListItemSelect.css +1 -1
- package/dist/components/AccessAreaList/AccessAreaListItem.js +6 -6
- package/dist/components/Dialog/DialogByline.d.ts +1 -1
- package/dist/components/Dialog/DialogHeading.d.ts +4 -4
- package/dist/components/Dialog/DialogHeading.js +7 -7
- package/dist/components/Dialog/DialogLabel.d.ts +3 -3
- package/dist/components/Dialog/DialogLabel.js +1 -1
- package/dist/components/Dialog/DialogListItem.d.ts +9 -20
- package/dist/components/Dialog/DialogListItem.js +76 -83
- package/dist/components/Dialog/index.d.ts +0 -1
- package/dist/components/Dialog/index.js +27 -29
- package/dist/components/List/List.d.ts +4 -3
- package/dist/components/List/List.js +12 -4
- package/dist/components/List/ListItem.d.ts +2 -0
- package/dist/components/List/ListItem.stories.js +88 -80
- package/dist/components/List/ListItemBase.d.ts +1 -1
- package/dist/components/List/ListItemBase.js +8 -8
- package/dist/components/List/ListItemHeader.d.ts +5 -13
- package/dist/components/List/ListItemHeader.js +48 -59
- package/dist/components/List/ListItemHeader.stories.js +33 -41
- package/dist/components/List/ListItemLabel.js +6 -6
- package/dist/components/List/ListItemLink.d.ts +16 -0
- package/dist/components/List/ListItemLink.js +35 -0
- package/dist/components/List/ListItemMedia.d.ts +2 -3
- package/dist/components/List/ListItemMedia.js +21 -29
- package/dist/components/List/ListItemSelect.js +9 -9
- package/dist/components/List/index.d.ts +1 -0
- package/dist/components/List/index.js +18 -16
- package/dist/components/ResourceList/ResourceList.d.ts +1 -1
- package/dist/components/ResourceList/ResourceList.js +1 -1
- package/dist/components/ResourceList/ResourceList.stories.js +2 -2
- package/dist/components/Searchbar/Searchbar.stories.js +10 -8
- package/dist/components/index.js +104 -104
- package/dist/index.js +123 -123
- package/package.json +1 -1
- package/dist/assets/DialogBorder.css +0 -1
- package/dist/components/Dialog/DialogBorder.d.ts +0 -10
- package/dist/components/Dialog/DialogBorder.js +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._heading_xpy9u_1{padding-right:1.25rem;display:inline-flex;column-gap:.5em}._title_xpy9u_7{line-height:1.25;font-weight:600;margin:0}._title_xpy9u_7[data-size=xs],._title_xpy9u_7[data-size=sm]{font-size:1rem}._title_xpy9u_7[data-size=md],._title_xpy9u_7[data-size=lg],._title_xpy9u_7[data-size=xl]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}._title_xpy9u_7[data-size=md]{font-size:1rem}._title_xpy9u_7[data-size=lg]{font-size:1.125rem;line-height:1.5rem}._title_xpy9u_7[data-size=xl]{font-size:1.25rem;line-height:1.25}._title_xpy9u_7[data-seen=true],._title_xpy9u_7[data-state=archived]{font-weight:400}._title_xpy9u_7[data-state=trashed]{font-weight:400;text-decoration:line-through}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._link_1j8q5_1[data-size=xl]{padding:1em}._link_1j8q5_1[data-size=lg]{padding:.875em}._link_1j8q5_1[data-size=md]{padding:.75em}._link_1j8q5_1[data-size=sm],._link_1j8q5_1[data-size=xs]{padding:.625em}._border_1j8q5_22{position:relative;border-left:.25rem solid;border-color:var(--theme-surface-active);display:flex;flex-direction:column}._border_1j8q5_22[data-seen=true],._border_1j8q5_22[data-loading=true]{border-color:var(--neutral-surface-default)}._border_1j8q5_22[data-size=xs],._border_1j8q5_22[data-size=sm]{width:100%;flex-direction:row;align-items:center;padding-left:.75rem}._border_1j8q5_22[data-size=md]{padding-left:.75rem;row-gap:.5rem}._border_1j8q5_22[data-size=lg]{padding-left:.875rem;row-gap:.875rem}._border_1j8q5_22[data-size=xl]{padding-left:1rem;row-gap:1rem}._select_1j8q5_61{position:absolute;top:0;right:0;margin:.375rem}._header_1j8q5_68{display:flex;flex-direction:column;row-gap:.25rem}._header_1j8q5_68[data-size=xs],._header_1j8q5_68[data-size=sm]{display:flex;flex-direction:row}._summary_1j8q5_80{font-size:1rem;font-weight:400;line-height:1.25;color:var(--theme-text-subtle);display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;margin:0}._summary_1j8q5_80[data-size=xs],._summary_1j8q5_80[data-size=sm],._summary_1j8q5_80[data-size=md]{font-size:.875rem}._summary_1j8q5_80[data-size=lg],._summary_1j8q5_80[data-size=xl]{font-size:1rem}._footer_1j8q5_108{width:100%}._touchedBy_1j8q5_112{position:absolute;right:0;bottom:0;margin:8px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._item_1grve_1{position:relative;width:100%;display:flex;flex-direction:column}._item_1grve_1[data-shadow=xs]{box-shadow:var(--ds-shadow-xs)}._item_1grve_1[data-variant=outline],._item_1grve_1[data-variant=dotted]{outline-color:var(--theme-base-default)}._item_1grve_1[data-variant=outline]{outline-style:solid}._item_1grve_1[data-variant=dotted]{outline-style:dashed}._item_1grve_1[data-color=neutral]{background-color:var(--theme-background-default)}._item_1grve_1[data-color=accent]{background-color:var(--theme-surface-default)}._item_1grve_1[data-color=accent]:hover{background-color:var(--theme-surface-hover)}._item_1grve_1[data-active=true]{background-color:var(--theme-surface-default)}._item_1grve_1[aria-expanded=true],._item_1grve_1[aria-selected=true]{outline:2px solid}._item_1grve_1[aria-disabled=true]{pointer-events:none}._item_1grve_1:not([aria-selected=true]):hover,._item_1grve_1:not([aria-disabled=true]):hover{outline:2px solid var(--theme-border-strong)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._header_16s1f_1{position:relative;width:100%;display:flex;align-items:center}._link_16s1f_8{flex-grow:1;display:flex;align-items:center;column-gap:.625rem;padding:.325rem .625rem}._link_16s1f_8[data-size=xs]{min-height:44px}._link_16s1f_8[data-size=sm]{min-height:52px}._link_16s1f_8[data-size=md]{min-height:60px;padding:.5rem .75rem;column-gap:.75rem}._link_16s1f_8[data-size=lg]{min-height:64px;padding:.5rem .875rem;column-gap:.875rem}._link_16s1f_8[data-size=xl]{min-height:72px;padding:.75rem 1rem;column-gap:1rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_5sijq_3{width:100%}._label_5sijq_3[data-size=xs]{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}._label_5sijq_3[data-size=sm],._label_5sijq_3[data-size=md],._label_5sijq_3[data-size=lg],._label_5sijq_3[data-size=xl]{display:flex;flex-direction:column;row-gap:.125rem}._title_5sijq_27{display:inline;font-weight:600;line-height:1.25;margin:0}._description_5sijq_34{display:inline;font-weight:400;line-height:1.125;color:var(--theme-text-subtle);margin:0}._title_5sijq_27[data-size=xs],._title_5sijq_27[data-size=sm]{font-size:1rem}._title_5sijq_27[data-size=md],._title_5sijq_27[data-size=lg]{font-size:1.125rem}._title_5sijq_27[data-size=xl]{font-size:1.25rem}._description_5sijq_34[data-size=xs],._description_5sijq_34[data-size=sm],._description_5sijq_34[data-size=md],._description_5sijq_34[data-size=lg]{font-size:.875rem;line-height:1rem}._description_5sijq_34[data-size=xl]{font-size:1rem}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._link_4l8am_1{padding:0;border:0;background-color:transparent;color:inherit;font:inherit;text-align:inherit;text-decoration:none;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;user-select:none;cursor:pointer}._link_4l8am_1[aria-disabled=true]{pointer-events:none}._link_4l8am_1:not([aria-disabled=true]):hover h2{text-decoration:underline}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._media_1hvg4_3{flex-shrink:0;display:flex;align-items:center;justify-content:center;min-width:1em;height:1em}._media_1hvg4_3{font-size:1.5rem}._media_1hvg4_3[data-size=md],._media_1hvg4_3[data-size=lg]{font-size:1.875rem}._media_1hvg4_3[data-size=md] ._icon_1hvg4_21,._media_1hvg4_3[data-size=lg] ._icon_1hvg4_21{font-size:1.75rem}._media_1hvg4_3[data-size=xl]{font-size:2.25rem}._media_1hvg4_3[data-size=xl] ._icon_1hvg4_21{font-size:2rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_1gmbm_1{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background-color:transparent;padding:.75rem;border-radius:50%;border:0}._label_1gmbm_1[data-size=xl],._label_1gmbm_1[data-size=lg],._label_1gmbm_1[data-size=md]{font-size:1.25rem;margin-left:.375rem;margin-right:-.25rem}._label_1gmbm_1[data-size=sm],._label_1gmbm_1[data-size=xs]{font-size:1rem;padding:.625rem;margin-left:.325rem;margin-right:-.5rem}._label_1gmbm_1:hover{background-color:var(--theme-surface-default)}._input_1gmbm_32{position:absolute;opacity:0}._icon_1gmbm_37{color:var(--theme-base-default)}._icon_1gmbm_37 [data-hover=true]{opacity:0}._label_1gmbm_1:hover [data-hover=true]{opacity:1}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as n, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { ListItemBase as
|
|
3
|
-
import { ListItemHeader as a } from "../List/ListItemHeader.js";
|
|
2
|
+
import { ListItemBase as a } from "../List/ListItemBase.js";
|
|
4
3
|
import "../../index-L8X2o7IH.js";
|
|
4
|
+
import { ListItemHeader as p } from "../List/ListItemHeader.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../Icon/SvgIcon.js";
|
|
7
7
|
import "../Autocomplete/AutocompleteBase.js";
|
|
8
8
|
import "../RootProvider/RootProvider.js";
|
|
9
|
-
import '../../assets/AccessAreaListItem.css';const
|
|
10
|
-
content:
|
|
9
|
+
import '../../assets/AccessAreaListItem.css';const l = "_content_7hk0i_1", f = {
|
|
10
|
+
content: l
|
|
11
11
|
}, v = ({
|
|
12
12
|
name: o,
|
|
13
13
|
icon: e,
|
|
@@ -16,9 +16,9 @@ import '../../assets/AccessAreaListItem.css';const p = "_content_7hk0i_1", f = {
|
|
|
16
16
|
expanded: t = !1,
|
|
17
17
|
onClick: i,
|
|
18
18
|
...c
|
|
19
|
-
}) => /* @__PURE__ */ n(
|
|
19
|
+
}) => /* @__PURE__ */ n(a, { size: r, expanded: t, children: [
|
|
20
20
|
/* @__PURE__ */ s(
|
|
21
|
-
|
|
21
|
+
p,
|
|
22
22
|
{
|
|
23
23
|
as: "button",
|
|
24
24
|
avatar: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { DialogListItemSize,
|
|
2
|
+
import { DialogListItemSize, DialogListItemState } from '..';
|
|
3
3
|
export type DialogHeadingProps = {
|
|
4
4
|
loading?: boolean;
|
|
5
5
|
/** Size */
|
|
6
6
|
size?: DialogListItemSize;
|
|
7
|
-
/**
|
|
8
|
-
|
|
7
|
+
/** Type */
|
|
8
|
+
state?: DialogListItemState;
|
|
9
9
|
/** Label */
|
|
10
10
|
label?: string;
|
|
11
11
|
/** Variant */
|
|
@@ -16,4 +16,4 @@ export type DialogHeadingProps = {
|
|
|
16
16
|
/**
|
|
17
17
|
* Dialog heading
|
|
18
18
|
*/
|
|
19
|
-
export declare const DialogHeading: ({ loading, size, seen,
|
|
19
|
+
export declare const DialogHeading: ({ loading, size, seen, state, label, children }: DialogHeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,15 +4,15 @@ import "../Icon/SvgIcon.js";
|
|
|
4
4
|
import "react";
|
|
5
5
|
import "../Autocomplete/AutocompleteBase.js";
|
|
6
6
|
import { Skeleton as l } from "../Skeleton/Skeleton.js";
|
|
7
|
-
import { DialogLabel as
|
|
7
|
+
import { DialogLabel as p } from "./DialogLabel.js";
|
|
8
8
|
import "../RootProvider/RootProvider.js";
|
|
9
|
-
import '../../assets/DialogHeading.css';const d = "
|
|
9
|
+
import '../../assets/DialogHeading.css';const d = "_heading_xpy9u_1", c = "_title_xpy9u_7", o = {
|
|
10
10
|
heading: d,
|
|
11
|
-
title:
|
|
12
|
-
},
|
|
13
|
-
/* @__PURE__ */ t("h2", { className: o.title, "data-seen": r, "data-size": a, "data-
|
|
14
|
-
!e && s && /* @__PURE__ */ t(
|
|
11
|
+
title: c
|
|
12
|
+
}, z = ({ loading: e, size: a = "sm", seen: r = !1, state: i, label: s, children: m }) => /* @__PURE__ */ n("div", { className: o.heading, children: [
|
|
13
|
+
/* @__PURE__ */ t("h2", { className: o.title, "data-seen": r, "data-size": a, "data-state": i, children: /* @__PURE__ */ t(l, { loading: e, children: m }) }),
|
|
14
|
+
!e && s && /* @__PURE__ */ t(p, { type: i, size: "xs", children: s })
|
|
15
15
|
] });
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
z as DialogHeading
|
|
18
18
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { MetaItemSize } from '../Meta';
|
|
3
|
-
export type
|
|
3
|
+
export type DialogLabelType = 'normal' | 'trashed' | 'archived';
|
|
4
4
|
export interface DialogLabelProps {
|
|
5
5
|
size?: MetaItemSize;
|
|
6
|
-
|
|
6
|
+
type?: DialogLabelType;
|
|
7
7
|
label?: string;
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* Dialog label.
|
|
12
12
|
*/
|
|
13
|
-
export declare const DialogLabel: ({ size,
|
|
13
|
+
export declare const DialogLabel: ({ size, type, label, children }: DialogLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import { MetaItem as e } from "../Meta/MetaItem.js";
|
|
4
4
|
import "../Icon/SvgIcon.js";
|
|
5
|
-
const u = ({ size: r = "xs",
|
|
5
|
+
const u = ({ size: r = "xs", type: n, label: t, children: a }) => {
|
|
6
6
|
switch (n) {
|
|
7
7
|
case "trashed":
|
|
8
8
|
return /* @__PURE__ */ o(e, { size: r, icon: "trash", variant: "rounded", children: a || t });
|
|
@@ -1,32 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AvatarProps, DialogSeenByProps, DialogSelectProps, DialogStatusProps, DialogTouchedByActor, ListItemColor } from '..';
|
|
1
|
+
import { AvatarProps, DialogSeenByProps, DialogSelectProps, DialogStatusProps, DialogTouchedByActor, ListItemBaseProps, ListItemLinkProps } from '..';
|
|
3
2
|
export type DialogListItemSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
-
export type
|
|
5
|
-
export interface DialogListItemProps {
|
|
3
|
+
export type DialogListItemState = 'normal' | 'trashed' | 'archived';
|
|
4
|
+
export interface DialogListItemProps extends ListItemBaseProps, ListItemLinkProps {
|
|
6
5
|
/** Dialog title */
|
|
7
6
|
title: string;
|
|
8
7
|
/** Dialog sender */
|
|
9
|
-
sender
|
|
8
|
+
sender?: AvatarProps;
|
|
10
9
|
/** Dialog description */
|
|
11
10
|
description?: string;
|
|
12
11
|
/** Dialog summary (will override description) */
|
|
13
12
|
summary?: string;
|
|
14
|
-
/** Dialog
|
|
15
|
-
loading?: boolean;
|
|
16
|
-
/** Render as */
|
|
17
|
-
as?: ElementType;
|
|
18
|
-
/** Size */
|
|
13
|
+
/** Dialog size */
|
|
19
14
|
size?: DialogListItemSize;
|
|
20
|
-
/** Variant */
|
|
21
|
-
variant?: DialogListItemVariant;
|
|
22
|
-
/** Link */
|
|
23
|
-
href?: string;
|
|
24
|
-
/** OnClick handler */
|
|
25
|
-
onClick?: () => void;
|
|
26
15
|
/** Select: Use to support batch operations */
|
|
27
16
|
select?: DialogSelectProps;
|
|
28
|
-
/**
|
|
17
|
+
/** Selected: Use to support batch operations */
|
|
29
18
|
selected?: boolean;
|
|
19
|
+
/** Dialog state */
|
|
20
|
+
state?: DialogListItemState;
|
|
30
21
|
/** Dialog status */
|
|
31
22
|
status?: DialogStatusProps;
|
|
32
23
|
/** Dialog Recipient */
|
|
@@ -55,8 +46,6 @@ export interface DialogListItemProps {
|
|
|
55
46
|
tabIndex?: number;
|
|
56
47
|
/** Custom label */
|
|
57
48
|
label?: string;
|
|
58
|
-
/** Custom color */
|
|
59
|
-
color?: ListItemColor;
|
|
60
49
|
/** Dialog has been seen */
|
|
61
50
|
seen?: boolean;
|
|
62
51
|
/** Dialog is seen by the user */
|
|
@@ -73,4 +62,4 @@ export interface DialogListItemProps {
|
|
|
73
62
|
* summary, sender, and receiver.
|
|
74
63
|
* to mark the item as checked/unchecked and can visually indicate if it is unread.
|
|
75
64
|
*/
|
|
76
|
-
export declare const DialogListItem: ({ size,
|
|
65
|
+
export declare const DialogListItem: ({ 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;
|
|
@@ -1,107 +1,100 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "../Icon/SvgIcon.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../Autocomplete/AutocompleteBase.js";
|
|
6
6
|
import { DialogMetadata as y } from "./DialogMetadata.js";
|
|
7
|
-
import { DialogByline as
|
|
8
|
-
import { Skeleton as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { DialogHeading as G } from "./DialogHeading.js";
|
|
7
|
+
import { DialogByline as w } from "./DialogByline.js";
|
|
8
|
+
import { Skeleton as C } from "../Skeleton/Skeleton.js";
|
|
9
|
+
import { DialogSelect as E } from "./DialogSelect.js";
|
|
10
|
+
import { DialogHeading as F } from "./DialogHeading.js";
|
|
12
11
|
import "../RootProvider/RootProvider.js";
|
|
13
|
-
import { ListItemBase as
|
|
14
|
-
import {
|
|
15
|
-
import { ListItemLabel as
|
|
16
|
-
import '../../assets/DialogListItem.css';const K = "
|
|
12
|
+
import { ListItemBase as j } from "../List/ListItemBase.js";
|
|
13
|
+
import { ListItemLink as N } from "../List/ListItemLink.js";
|
|
14
|
+
import { ListItemLabel as G } from "../List/ListItemLabel.js";
|
|
15
|
+
import '../../assets/DialogListItem.css';const J = "_link_1j8q5_1", K = "_border_1j8q5_22", O = "_select_1j8q5_61", P = "_header_1j8q5_68", Q = "_summary_1j8q5_80", R = "_footer_1j8q5_108", T = "_touchedBy_1j8q5_112", o = {
|
|
16
|
+
link: J,
|
|
17
17
|
border: K,
|
|
18
18
|
select: O,
|
|
19
19
|
header: P,
|
|
20
20
|
summary: Q,
|
|
21
21
|
footer: R,
|
|
22
22
|
touchedBy: T
|
|
23
|
-
},
|
|
23
|
+
}, mr = ({
|
|
24
24
|
size: r = "xl",
|
|
25
|
-
|
|
26
|
-
loading:
|
|
25
|
+
state: u = "normal",
|
|
26
|
+
loading: t,
|
|
27
27
|
select: s,
|
|
28
|
-
status:
|
|
28
|
+
status: k,
|
|
29
29
|
sender: l,
|
|
30
|
-
recipient:
|
|
31
|
-
recipientLabel:
|
|
32
|
-
recipientGroup:
|
|
30
|
+
recipient: q,
|
|
31
|
+
recipientLabel: B = "to",
|
|
32
|
+
recipientGroup: b = !1,
|
|
33
33
|
updatedAt: i,
|
|
34
|
-
updatedAtLabel:
|
|
35
|
-
archivedAt:
|
|
36
|
-
archivedAtLabel:
|
|
34
|
+
updatedAtLabel: d,
|
|
35
|
+
archivedAt: n,
|
|
36
|
+
archivedAtLabel: x,
|
|
37
37
|
trashedAt: _,
|
|
38
|
-
trashedAtLabel:
|
|
39
|
-
label:
|
|
40
|
-
dueAt:
|
|
41
|
-
dueAtLabel:
|
|
42
|
-
seen:
|
|
43
|
-
seenBy:
|
|
44
|
-
touchedBy:
|
|
45
|
-
attachmentsCount:
|
|
46
|
-
title:
|
|
47
|
-
description:
|
|
48
|
-
summary:
|
|
38
|
+
trashedAtLabel: D,
|
|
39
|
+
label: L,
|
|
40
|
+
dueAt: I,
|
|
41
|
+
dueAtLabel: S,
|
|
42
|
+
seen: c = !1,
|
|
43
|
+
seenBy: v,
|
|
44
|
+
touchedBy: g,
|
|
45
|
+
attachmentsCount: H,
|
|
46
|
+
title: h,
|
|
47
|
+
description: f,
|
|
48
|
+
summary: p,
|
|
49
49
|
...a
|
|
50
50
|
}) => {
|
|
51
|
-
const
|
|
52
|
-
return r === "xs" || r === "sm" || r === "md" ? /* @__PURE__ */
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
] }) }) }) : /* @__PURE__ */
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
className: t.item,
|
|
62
|
-
controls: s && /* @__PURE__ */ o(F, { className: t.select, ...s }),
|
|
63
|
-
children: /* @__PURE__ */ c(N, { className: t.border, size: r, seen: m, loading: e, children: [
|
|
64
|
-
/* @__PURE__ */ c("header", { className: t.header, "data-size": r, children: [
|
|
65
|
-
/* @__PURE__ */ o(G, { loading: e, size: r, variant: w, label: S, seen: m, children: f }),
|
|
66
|
-
/* @__PURE__ */ o(
|
|
67
|
-
C,
|
|
68
|
-
{
|
|
69
|
-
size: "xs",
|
|
70
|
-
loading: e,
|
|
71
|
-
sender: l,
|
|
72
|
-
recipient: D,
|
|
73
|
-
recipientLabel: I,
|
|
74
|
-
recipientGroup: L
|
|
75
|
-
}
|
|
76
|
-
),
|
|
77
|
-
/* @__PURE__ */ o("p", { "data-size": r, className: t.summary, children: /* @__PURE__ */ o(E, { loading: e, children: n || p }) })
|
|
78
|
-
] }),
|
|
79
|
-
/* @__PURE__ */ o(
|
|
80
|
-
y,
|
|
51
|
+
const M = _ ? "trashed" : n ? "archived" : u;
|
|
52
|
+
return r === "xs" || r === "sm" || r === "md" ? /* @__PURE__ */ e(j, { ...a, size: r, children: /* @__PURE__ */ e(N, { ...a, size: r, className: o.link, children: /* @__PURE__ */ m("div", { className: o.border, "data-size": r, "data-seen": c, "data-loading": t, children: [
|
|
53
|
+
/* @__PURE__ */ e(G, { loading: t, size: r, title: h, description: p || f }),
|
|
54
|
+
/* @__PURE__ */ e(y, { loading: t, sender: l, updatedAt: i, updatedAtLabel: d })
|
|
55
|
+
] }) }) }) : /* @__PURE__ */ m(j, { ...a, size: r, children: [
|
|
56
|
+
/* @__PURE__ */ e(N, { ...a, size: r, className: o.link, children: /* @__PURE__ */ m("div", { className: o.border, "data-size": r, "data-seen": c, "data-loading": t, children: [
|
|
57
|
+
/* @__PURE__ */ m("header", { className: o.header, "data-size": r, children: [
|
|
58
|
+
/* @__PURE__ */ e(F, { loading: t, size: r, state: M, label: L, seen: c, children: h }),
|
|
59
|
+
/* @__PURE__ */ e(
|
|
60
|
+
w,
|
|
81
61
|
{
|
|
82
|
-
|
|
83
|
-
loading:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
archivedAtLabel: j,
|
|
89
|
-
trashedAt: _,
|
|
90
|
-
trashedAtLabel: H,
|
|
91
|
-
dueAt: k,
|
|
92
|
-
dueAtLabel: v,
|
|
93
|
-
attachmentsCount: q,
|
|
94
|
-
seenBy: M,
|
|
95
|
-
touchedBy: {
|
|
96
|
-
touchedBy: V,
|
|
97
|
-
className: t.touchedBy
|
|
98
|
-
}
|
|
62
|
+
size: "xs",
|
|
63
|
+
loading: t,
|
|
64
|
+
sender: l,
|
|
65
|
+
recipient: q,
|
|
66
|
+
recipientLabel: B,
|
|
67
|
+
recipientGroup: b
|
|
99
68
|
}
|
|
100
|
-
)
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
69
|
+
),
|
|
70
|
+
/* @__PURE__ */ e("p", { "data-size": r, className: o.summary, children: /* @__PURE__ */ e(C, { loading: t, children: p || f }) })
|
|
71
|
+
] }),
|
|
72
|
+
/* @__PURE__ */ e(
|
|
73
|
+
y,
|
|
74
|
+
{
|
|
75
|
+
className: o.footer,
|
|
76
|
+
loading: t,
|
|
77
|
+
status: k,
|
|
78
|
+
updatedAt: i,
|
|
79
|
+
updatedAtLabel: d,
|
|
80
|
+
archivedAt: n,
|
|
81
|
+
archivedAtLabel: x,
|
|
82
|
+
trashedAt: _,
|
|
83
|
+
trashedAtLabel: D,
|
|
84
|
+
dueAt: I,
|
|
85
|
+
dueAtLabel: S,
|
|
86
|
+
attachmentsCount: H,
|
|
87
|
+
seenBy: v,
|
|
88
|
+
touchedBy: {
|
|
89
|
+
touchedBy: g,
|
|
90
|
+
className: o.touchedBy
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
] }) }),
|
|
95
|
+
s && /* @__PURE__ */ e(E, { className: o.select, ...s })
|
|
96
|
+
] });
|
|
104
97
|
};
|
|
105
98
|
export {
|
|
106
|
-
|
|
99
|
+
mr as DialogListItem
|
|
107
100
|
};
|
|
@@ -6,7 +6,6 @@ export * from './DialogMetadata';
|
|
|
6
6
|
export * from './DialogByline';
|
|
7
7
|
export * from './DialogActions';
|
|
8
8
|
export * from './DialogActivityLog';
|
|
9
|
-
export * from './DialogBorder';
|
|
10
9
|
export * from './DialogContent';
|
|
11
10
|
export * from './DialogSection';
|
|
12
11
|
export * from './DialogSeenBy';
|
|
@@ -6,44 +6,42 @@ import { DialogMetadata as D } from "./DialogMetadata.js";
|
|
|
6
6
|
import { DialogByline as x } from "./DialogByline.js";
|
|
7
7
|
import { DialogActions as s } from "./DialogActions.js";
|
|
8
8
|
import { DialogActivityLog as y } from "./DialogActivityLog.js";
|
|
9
|
-
import {
|
|
10
|
-
import { DialogContent as d } from "./DialogContent.js";
|
|
9
|
+
import { DialogContent as L } from "./DialogContent.js";
|
|
11
10
|
import { DialogSection as T } from "./DialogSection.js";
|
|
12
|
-
import { DialogSeenBy as
|
|
13
|
-
import { DialogSelect as
|
|
14
|
-
import { DialogStatus as
|
|
15
|
-
import { DialogHeading as
|
|
16
|
-
import { DialogTouchedBy as
|
|
17
|
-
import { DialogLabel as
|
|
18
|
-
import { DialogAttachments as
|
|
19
|
-
import { DialogTransmissions as
|
|
20
|
-
import { DialogTimeline as
|
|
21
|
-
import { DialogTimelineItem as
|
|
22
|
-
import { DialogHistory as
|
|
23
|
-
import { DialogHistoryItem as
|
|
11
|
+
import { DialogSeenBy as A } from "./DialogSeenBy.js";
|
|
12
|
+
import { DialogSelect as H } from "./DialogSelect.js";
|
|
13
|
+
import { DialogStatus as h, DialogStatusEnum as b } from "./DialogStatus.js";
|
|
14
|
+
import { DialogHeading as C } from "./DialogHeading.js";
|
|
15
|
+
import { DialogTouchedBy as G } from "./DialogTouchedBy.js";
|
|
16
|
+
import { DialogLabel as j } from "./DialogLabel.js";
|
|
17
|
+
import { DialogAttachments as q } from "./DialogAttachments.js";
|
|
18
|
+
import { DialogTransmissions as z } from "./DialogTransmissions.js";
|
|
19
|
+
import { DialogTimeline as J } from "./DialogTimeline.js";
|
|
20
|
+
import { DialogTimelineItem as N } from "./DialogTimelineItem.js";
|
|
21
|
+
import { DialogHistory as P } from "./DialogHistory.js";
|
|
22
|
+
import { DialogHistoryItem as R } from "./DialogHistoryItem.js";
|
|
24
23
|
export {
|
|
25
24
|
t as Dialog,
|
|
26
25
|
s as DialogActions,
|
|
27
26
|
y as DialogActivityLog,
|
|
28
|
-
|
|
29
|
-
L as DialogBorder,
|
|
27
|
+
q as DialogAttachments,
|
|
30
28
|
x as DialogByline,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
L as DialogContent,
|
|
30
|
+
C as DialogHeading,
|
|
31
|
+
P as DialogHistory,
|
|
32
|
+
R as DialogHistoryItem,
|
|
33
|
+
j as DialogLabel,
|
|
36
34
|
i as DialogList,
|
|
37
35
|
m as DialogListGroup,
|
|
38
36
|
g as DialogListItem,
|
|
39
37
|
D as DialogMetadata,
|
|
40
38
|
T as DialogSection,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
39
|
+
A as DialogSeenBy,
|
|
40
|
+
H as DialogSelect,
|
|
41
|
+
h as DialogStatus,
|
|
42
|
+
b as DialogStatusEnum,
|
|
43
|
+
J as DialogTimeline,
|
|
44
|
+
N as DialogTimelineItem,
|
|
45
|
+
G as DialogTouchedBy,
|
|
46
|
+
z as DialogTransmissions
|
|
49
47
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ListSpacing, ListTheme } from '../List';
|
|
2
2
|
import { ListItemProps } from './ListItem';
|
|
3
|
-
import { ListItemSize } from './ListItemBase';
|
|
3
|
+
import { ListItemColor, ListItemSize } from './ListItemBase';
|
|
4
4
|
export interface ListProps {
|
|
5
|
-
size?: ListItemSize;
|
|
6
5
|
spacing?: ListSpacing;
|
|
7
6
|
theme?: ListTheme;
|
|
8
7
|
items?: ListItemProps[];
|
|
8
|
+
defaultItemColor?: ListItemColor;
|
|
9
|
+
defaultItemSize?: ListItemSize;
|
|
9
10
|
}
|
|
10
|
-
export declare const List: ({ theme,
|
|
11
|
+
export declare const List: ({ theme, defaultItemSize, defaultItemColor, spacing, items }: ListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createElement as
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { createElement as n } from "react";
|
|
3
3
|
import "../../index-L8X2o7IH.js";
|
|
4
4
|
import "../Icon/SvgIcon.js";
|
|
5
5
|
import "../Autocomplete/AutocompleteBase.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { ListItem as
|
|
7
|
+
import { ListItem as e } from "./ListItem.js";
|
|
8
8
|
import { ListBase as f } from "./ListBase.js";
|
|
9
|
-
const j = ({ theme:
|
|
9
|
+
const j = ({ theme: o, defaultItemSize: p, defaultItemColor: t, spacing: s = "md", items: m = [] }) => /* @__PURE__ */ i(f, { theme: o, spacing: s, children: m.map((r, c) => /* @__PURE__ */ n(
|
|
10
|
+
e,
|
|
11
|
+
{
|
|
12
|
+
...r,
|
|
13
|
+
size: (r == null ? void 0 : r.size) || p,
|
|
14
|
+
color: (r == null ? void 0 : r.color) || t,
|
|
15
|
+
key: "item" + c
|
|
16
|
+
}
|
|
17
|
+
)) });
|
|
10
18
|
export {
|
|
11
19
|
j as List
|
|
12
20
|
};
|
|
@@ -6,6 +6,8 @@ import { IconName } from '../Icon';
|
|
|
6
6
|
import { ListItemBaseProps } from './ListItemBase';
|
|
7
7
|
import { ListItemHeaderProps } from './ListItemHeader';
|
|
8
8
|
export interface ListItemProps extends ListItemBaseProps, ListItemHeaderProps {
|
|
9
|
+
/** List item id */
|
|
10
|
+
id?: string;
|
|
9
11
|
/** Custom className */
|
|
10
12
|
className?: string;
|
|
11
13
|
/** Element is loading, display a placeholder */
|