@altinn/altinn-components 0.22.2 → 0.22.4
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/DialogListItem.css +1 -1
- package/dist/assets/DropdownBase.css +1 -1
- package/dist/assets/ListItemBase.css +1 -1
- package/dist/assets/ListItemHeader.css +1 -1
- package/dist/assets/ListItemLink.css +1 -1
- package/dist/assets/Typography.css +1 -1
- package/dist/components/Bookmarks/BookmarksListItem.js +13 -4
- package/dist/components/Bookmarks/EditableBookmark.js +67 -47
- package/dist/components/Dialog/DialogBody.js +7 -7
- package/dist/components/Dialog/DialogHistoryItem.js +5 -5
- package/dist/components/Dialog/DialogLayout.js +2 -2
- package/dist/components/Dialog/DialogListItem.js +94 -94
- package/dist/components/Dropdown/DropdownBase.js +1 -1
- package/dist/components/List/ListItem.js +57 -102
- package/dist/components/List/ListItemBase.js +44 -4
- package/dist/components/List/ListItemHeader.js +95 -75
- package/dist/components/List/ListItemLabel.js +12 -11
- package/dist/components/List/ListItemLink.js +32 -28
- package/dist/components/List/index.js +1 -1
- package/dist/components/Page/ContactSection.js +18 -17
- package/dist/components/Search/Autocomplete.js +10 -9
- package/dist/components/Search/AutocompleteItem.js +1 -1
- package/dist/components/Transmission/Transmission.js +40 -36
- package/dist/components/Typography/Typography.js +16 -10
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/lib/components/Bookmarks/BookmarksListItem.d.ts +2 -1
- package/dist/types/lib/components/Bookmarks/BookmarksListItem.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogListItem.d.ts +3 -1
- package/dist/types/lib/components/Dialog/DialogListItem.stories.d.ts +3 -1
- package/dist/types/lib/components/List/ListItem.stories.d.ts +1 -1
- package/dist/types/lib/components/List/ListItemBase.d.ts +2 -8
- package/dist/types/lib/components/List/ListItemHeader.d.ts +14 -5
- package/dist/types/lib/components/List/ListItemLabel.d.ts +2 -1
- package/dist/types/lib/components/List/ListItemLink.d.ts +3 -1
- package/dist/types/lib/components/Page/ContactSection.d.ts +3 -2
- package/dist/types/lib/components/Transmission/Transmission.d.ts +4 -3
- package/dist/types/lib/components/Transmission/Transmission.stories.d.ts +54 -0
- package/dist/types/lib/components/Typography/Typography.d.ts +4 -2
- package/dist/types/lib/components/Typography/Typography.stories.d.ts +1 -1
- package/package.json +1 -1
- package/dist/ListItemBase-DuTOUOfv.js +0 -83
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._border_1ecaj_1{pointer-events:none;border-left:.25rem solid;border-color:var(--ds-color-surface-active);display:flex;flex-direction:column}._border_1ecaj_1[data-seen=true]{border-color:var(--ds-color-neutral-surface-default)}._border_1ecaj_1[data-variant=draft]{border-color:var(--ds-color-neutral-surface-active);border-left-width:.125rem;margin-left:.125rem;border-left-style:dashed}._border_1ecaj_1[data-variant=sent]{border-color:var(--ds-color-neutral-surface-default)}._border_1ecaj_1[data-loading=true]{border-color:var(--ds-color-surface-default)}._border_1ecaj_1[data-size=xs],._border_1ecaj_1[data-size=sm]{width:100%;flex-direction:row;align-items:center;padding-left:.75rem}._border_1ecaj_1[data-size=md]{padding-left:.75rem;row-gap:.5rem}._border_1ecaj_1[data-size=lg]{padding-left:.875rem;row-gap:.875rem}._border_1ecaj_1[data-size=xl]{padding-left:1rem;row-gap:1rem}._controls_1ecaj_51{position:absolute;top:-4rem;right:0}._header_1ecaj_57{display:flex;flex-direction:column;row-gap:.25rem}._header_1ecaj_57[data-size=xs],._header_1ecaj_57[data-size=sm]{display:flex;flex-direction:row}._summary_1ecaj_69{font-size:1rem;font-weight:400;line-height:1.375;color:var(--ds-color-text-default);display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;margin:0}._summary_1ecaj_69[data-size=xs],._summary_1ecaj_69[data-size=sm],._summary_1ecaj_69[data-size=md]{font-size:.875rem}._summary_1ecaj_69[data-size=lg],._summary_1ecaj_69[data-size=xl]{font-size:1rem}._footer_1ecaj_97{width:100%}._touchedBy_1ecaj_101{position:absolute;right:0;bottom:0;margin:8px}._heading_1ecaj_110{padding-right:1.25rem;display:inline-flex;column-gap:.5em}._title_1ecaj_116{line-height:1.25;font-weight:600;margin:0}._title_1ecaj_116[data-size=xs],._title_1ecaj_116[data-size=sm]{font-size:1rem}._title_1ecaj_116[data-size=md],._title_1ecaj_116[data-size=lg],._title_1ecaj_116[data-size=xl]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}._title_1ecaj_116[data-size=md]{font-size:1rem}._title_1ecaj_116[data-size=lg],._title_1ecaj_116[data-size=xl]{font-size:1.25rem;line-height:1.25}._title_1ecaj_116[data-seen=true],._title_1ecaj_116[data-state=archived]{font-weight:400}._title_1ecaj_116[data-state=trashed]{font-weight:400;text-decoration:line-through}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._dropdown_139me_1{display:none}._dropdown_139me_1[data-expanded=true]{display:block;position:absolute;z-index:9999}._dropdown_139me_1[data-placement=left]{left:0}._dropdown_139me_1[data-placement=right]{right:0}._dropdown_139me_1[data-padding=true]{padding:0 .5rem}._dropdown_139me_1{min-width:16rem;max-width:24rem;margin-top:.5rem;border-radius:.375rem;overflow:hidden}@media (max-width: 1023px){._dropdown_139me_1[data-expanded=true][data-layout=desktop]{display:none}}@media (min-width: 1024px){._dropdown_139me_1[data-expanded=true][data-layout=mobile]{display:none}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._item_1dbo9_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;list-style:none;position:relative;width:100%;display:flex;flex-direction:column}._item_1dbo9_1[data-shadow=xs]{box-shadow:var(--ds-shadow-xs)}._item_1dbo9_1[data-variant=outline],._item_1dbo9_1[data-variant=dotted]{outline-color:var(--ds-color-base-default)}._item_1dbo9_1[data-variant=outline]{outline-style:solid}._item_1dbo9_1[data-variant=dotted]{outline-color:var(--ds-color-border-subtle);outline-style:dashed}._item_1dbo9_1[data-theme=default]{background-color:var(--ds-color-background-default)}._item_1dbo9_1[data-theme=subtle]{background-color:var(--ds-color-background-subtle)}._item_1dbo9_1[data-theme=surface]{background-color:var(--ds-color-surface-hover)}._item_1dbo9_1[data-theme=base]{background-color:var(--ds-color-base-default);color:var(--ds-color-contrast-default)}._item_1dbo9_1[data-active=true]{background-color:var(--ds-color-surface-default)}._item_1dbo9_1[aria-expanded=true],._item_1dbo9_1[data-selected=true]{outline:2px solid}._item_1dbo9_1[aria-disabled=true]{pointer-events:none}._interactiveSelected_1dbo9_83{outline:2px solid var(--ds-color-border-strong)}._interactiveHidden_1dbo9_87{display:none}._interactive_1dbo9_83:not([data-theme=transparent]):hover{outline:2px solid var(--ds-color-border-strong)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._wrapper_xtweu_1{position:relative}._link_xtweu_5{position:absolute;top:0;right:0;bottom:0;left:0}._linkTitle_xtweu_10{opacity:0;-webkit-user-select:none;user-select:none;pointer-events:none}._header_xtweu_16{position:relative;width:100%;display:flex;align-items:center;justify-content:space-between}._header_xtweu_16[data-size=xs]{min-height:44px;padding:.5rem .625rem;column-gap:.5rem}._header_xtweu_16[data-size=sm]{min-height:52px;padding:.5rem .625rem;column-gap:.5rem}._header_xtweu_16[data-size=md]{min-height:64px;padding:.875rem;column-gap:.625rem}._header_xtweu_16[data-size=lg]{min-height:72px;padding:1rem;column-gap:.75rem}._header_xtweu_16[data-size=xl]{min-height:72px;padding:1.5rem;column-gap:1rem}._content_xtweu_54{display:flex;align-items:center;column-gap:inherit}._header_xtweu_16[data-interactive=true]:hover{cursor:pointer}._header_xtweu_16[data-interactive=true]:hover ._content_xtweu_54 h2{text-decoration:underline}._header_xtweu_16[data-has-active-child=true]{background-color:var(--ds-color-background-subtle)}._header_xtweu_16[data-interactive=true][data-theme=subtle]:hover{background-color:var(--ds-color-surface-hover)}._header_xtweu_16[data-interactive=true][data-theme=surface]:hover{background-color:var(--ds-color-surface-active)}._header_xtweu_16[data-interactive=true][data-theme=base]:hover{background-color:var(--ds-color-base-hover);color:var(--ds-color-contrast-default)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._link_kjmgd_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}._link_kjmgd_1[aria-disabled=true]{pointer-events:none}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._typography_cr720_1{width:100%;line-height:1.5}p._typography_cr720_1{margin:0}._typography_cr720_1[data-theme=default]{background-color:transparent;color:var(--ds-color-text-default)}._typography_cr720_1[data-theme=subtle]{background-color:transparent;color:var(--ds-color-text-subtle)}._typography_cr720_1[data-size=xs]{font-size:.875rem}._typography_cr720_1[data-size=sm]{font-size:1rem}._typography_cr720_1[data-size=md]{font-size:1.125rem}._typography_cr720_1[data-size=lg]{font-size:1.25rem}._typography_cr720_1[data-size=xl]{font-size:1.5rem}._typography_cr720_1>*:first-child{margin-top:0}._typography_cr720_1>*:last-child{margin-bottom:0}._typography_cr720_1 strong{font-weight:500}._typography_cr720_1 a{color:var(--ds-color-base-default)}._typography_cr720_1 a:hover{color:var(--ds-color-base-hover)}._typography_cr720_1>p{font-size:1em;margin:1em 0}._typography_cr720_1>h1{font-size:1.5rem;font-weight:500;margin-top:1.5em;margin-bottom:0}._typography_cr720_1>h2{font-size:1.25rem;font-weight:600;margin-top:1.5em;margin-bottom:0}._typography_cr720_1>h3{font-size:1em;font-weight:600;margin:1em 0}._typography_cr720_1>h4{font-size:1em;font-weight:600;margin:1em 0 0}._typography_cr720_1>h5,._typography_cr720_1>h6{font-size:.875rem;margin:1em 0 0}._typography_cr720_1>h6{font-weight:500;color:var(--ds-color-text-subtle)}._typography_cr720_1>h6{font-weight:400;color:var(--ds-color-text-subtle)}._typography_cr720_1>h5+*,._typography_cr720_1>h6+*{margin-top:0}._typography_cr720_1>section{margin:1em 0}._typography_cr720_1 ul:not([class]),._typography_cr720_1 ol:not([class]){list-style-position:inside;padding-left:1rem;margin:1em 0}
|
|
@@ -2,11 +2,20 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import { ListItem as
|
|
5
|
+
import { ListItem as e } from "../List/ListItem.js";
|
|
6
6
|
import "../Search/AutocompleteBase.js";
|
|
7
|
-
import { QueryLabel as
|
|
7
|
+
import { QueryLabel as s } from "../Search/QueryLabel.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
const
|
|
9
|
+
const c = ({ loading: r, title: m, ariaLabel: t, params: p, ...i }) => /* @__PURE__ */ o(
|
|
10
|
+
e,
|
|
11
|
+
{
|
|
12
|
+
...i,
|
|
13
|
+
loading: r,
|
|
14
|
+
title: m,
|
|
15
|
+
ariaLabel: t,
|
|
16
|
+
label: !m && !r && /* @__PURE__ */ o(s, { params: p })
|
|
17
|
+
}
|
|
18
|
+
);
|
|
10
19
|
export {
|
|
11
|
-
|
|
20
|
+
c as BookmarksListItem
|
|
12
21
|
};
|
|
@@ -1,73 +1,93 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as n, jsxs as u } from "react/jsx-runtime";
|
|
3
|
+
import * as f from "react";
|
|
4
|
+
import { forwardRef as h, useState as O } from "react";
|
|
3
5
|
import "../../index-L8X2o7IH.js";
|
|
4
|
-
import { BookmarksListItem as
|
|
5
|
-
import { Button as
|
|
6
|
-
import { IconButton as
|
|
6
|
+
import { BookmarksListItem as I } from "./BookmarksListItem.js";
|
|
7
|
+
import { Button as g } from "../Button/Button.js";
|
|
8
|
+
import { IconButton as x } from "../Button/IconButton.js";
|
|
7
9
|
import "../RootProvider/RootProvider.js";
|
|
8
10
|
import "../Search/AutocompleteBase.js";
|
|
9
|
-
import { QueryLabel as
|
|
11
|
+
import { QueryLabel as j } from "../Search/QueryLabel.js";
|
|
10
12
|
import "../Snackbar/useSnackbar.js";
|
|
11
|
-
import { Flex as
|
|
12
|
-
import { Section as
|
|
13
|
-
import { TextField as
|
|
14
|
-
import { S as
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
import { Flex as S } from "../Page/Flex.js";
|
|
14
|
+
import { Section as k } from "../Page/Section.js";
|
|
15
|
+
import { TextField as E } from "../TextField/TextField.js";
|
|
16
|
+
import { S as M } from "../../XMark-Bv1I87Ev.js";
|
|
17
|
+
import { u as P } from "../../useId-CsCRkvK3.js";
|
|
18
|
+
var R = function(t, l) {
|
|
19
|
+
var o = {};
|
|
20
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && l.indexOf(e) < 0 && (o[e] = t[e]);
|
|
21
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
22
|
+
for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
|
|
23
|
+
l.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (o[e[r]] = t[e[r]]);
|
|
24
|
+
return o;
|
|
25
|
+
};
|
|
26
|
+
const _ = h((t, l) => {
|
|
27
|
+
var { title: o, titleId: e } = t, r = R(t, ["title", "titleId"]);
|
|
28
|
+
let i = P();
|
|
29
|
+
return i = o ? e || "title-" + i : void 0, f.createElement(
|
|
30
|
+
"svg",
|
|
31
|
+
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: l, "aria-labelledby": i }, r),
|
|
32
|
+
o ? f.createElement("title", { id: i }, o) : null,
|
|
33
|
+
f.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M19.638 4.417a3.25 3.25 0 0 0-4.608-.008l-9.378 9.379a.75.75 0 0 0-.191.324l-1.414 4.95a.75.75 0 0 0 .925.927l4.94-1.398a.75.75 0 0 0 .327-.191l9.39-9.391a3.25 3.25 0 0 0 .01-4.592M16.091 5.47a1.752 1.752 0 1 1 2.478 2.478l-.23.23-2.477-2.479zM14.8 6.76 6.85 14.71l-.991 3.47 3.457-.979 7.963-7.963z", clipRule: "evenodd" })
|
|
34
|
+
);
|
|
35
|
+
}), K = ({
|
|
36
|
+
id: t,
|
|
37
|
+
title: l,
|
|
38
|
+
untitled: o,
|
|
39
|
+
params: e,
|
|
21
40
|
expanded: r,
|
|
22
|
-
onToggle:
|
|
23
|
-
titleField:
|
|
24
|
-
saveButton:
|
|
25
|
-
removeButton:
|
|
41
|
+
onToggle: i,
|
|
42
|
+
titleField: c,
|
|
43
|
+
saveButton: a,
|
|
44
|
+
removeButton: m,
|
|
26
45
|
inputValue: p,
|
|
27
|
-
onChange:
|
|
28
|
-
expandIconAltText:
|
|
29
|
-
...
|
|
46
|
+
onChange: s,
|
|
47
|
+
expandIconAltText: b,
|
|
48
|
+
...y
|
|
30
49
|
}) => {
|
|
31
|
-
const [
|
|
32
|
-
return /* @__PURE__ */
|
|
33
|
-
|
|
50
|
+
const [v, w] = O("");
|
|
51
|
+
return /* @__PURE__ */ n(
|
|
52
|
+
I,
|
|
34
53
|
{
|
|
35
|
-
...
|
|
54
|
+
...y,
|
|
36
55
|
expanded: r,
|
|
37
|
-
id:
|
|
38
|
-
title: r ?
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
56
|
+
id: t,
|
|
57
|
+
title: r ? l || o : l,
|
|
58
|
+
ariaLabel: l || o,
|
|
59
|
+
params: e,
|
|
60
|
+
controls: /* @__PURE__ */ n(
|
|
61
|
+
x,
|
|
42
62
|
{
|
|
43
63
|
variant: "outline",
|
|
44
64
|
size: "sm",
|
|
45
|
-
icon: r ?
|
|
46
|
-
onClick:
|
|
47
|
-
iconAltText:
|
|
65
|
+
icon: r ? M : _,
|
|
66
|
+
onClick: i,
|
|
67
|
+
iconAltText: b
|
|
48
68
|
}
|
|
49
69
|
),
|
|
50
|
-
children: /* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
|
|
53
|
-
|
|
70
|
+
children: /* @__PURE__ */ u(k, { padding: 4, spacing: 4, children: [
|
|
71
|
+
/* @__PURE__ */ n(j, { params: e }),
|
|
72
|
+
c && /* @__PURE__ */ n(
|
|
73
|
+
E,
|
|
54
74
|
{
|
|
55
|
-
...
|
|
75
|
+
...c,
|
|
56
76
|
name: "title",
|
|
57
|
-
value: typeof p == "string" ? p :
|
|
58
|
-
onChange: (
|
|
59
|
-
typeof
|
|
77
|
+
value: typeof p == "string" ? p : v,
|
|
78
|
+
onChange: (d) => {
|
|
79
|
+
typeof s == "function" ? s(d) : w(d.target.value);
|
|
60
80
|
}
|
|
61
81
|
}
|
|
62
82
|
),
|
|
63
|
-
(
|
|
64
|
-
|
|
65
|
-
|
|
83
|
+
(a || m) && /* @__PURE__ */ u(S, { as: "footer", direction: "row", spacing: 2, children: [
|
|
84
|
+
a && /* @__PURE__ */ n(g, { ...a }),
|
|
85
|
+
m && /* @__PURE__ */ n(g, { ...m, variant: "outline" })
|
|
66
86
|
] })
|
|
67
87
|
] })
|
|
68
88
|
}
|
|
69
89
|
);
|
|
70
90
|
};
|
|
71
91
|
export {
|
|
72
|
-
|
|
92
|
+
K as EditableBookmark
|
|
73
93
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as i, jsx as m, Fragment as
|
|
1
|
+
import { jsxs as i, jsx as m, Fragment as h } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
5
|
import { Timeline as d } from "../Timeline/Timeline.js";
|
|
6
|
-
import { TimelineSection as
|
|
6
|
+
import { TimelineSection as f } from "../Timeline/TimelineSection.js";
|
|
7
7
|
import { TimelineHeader as c } from "../Timeline/TimelineHeader.js";
|
|
8
8
|
import { Typography as s } from "../Typography/Typography.js";
|
|
9
|
-
import { SeenByLog as
|
|
9
|
+
import { SeenByLog as x } from "./SeenByLog.js";
|
|
10
10
|
import "../Search/AutocompleteBase.js";
|
|
11
11
|
import "../Snackbar/useSnackbar.js";
|
|
12
12
|
const H = ({
|
|
@@ -24,16 +24,16 @@ const H = ({
|
|
|
24
24
|
n + " " + (o == null ? void 0 : o.name)
|
|
25
25
|
] }),
|
|
26
26
|
/* @__PURE__ */ m(
|
|
27
|
-
|
|
27
|
+
f,
|
|
28
28
|
{
|
|
29
29
|
loading: r,
|
|
30
30
|
datetime: p,
|
|
31
31
|
byline: a,
|
|
32
32
|
spacing: 4,
|
|
33
33
|
color: r ? "neutral" : void 0,
|
|
34
|
-
children: !r && /* @__PURE__ */ i(
|
|
35
|
-
/* @__PURE__ */ m(s, { children: l }),
|
|
36
|
-
e && /* @__PURE__ */ m(
|
|
34
|
+
children: !r && /* @__PURE__ */ i(h, { children: [
|
|
35
|
+
/* @__PURE__ */ m(s, { maxWidth: "60ch", children: l }),
|
|
36
|
+
e && /* @__PURE__ */ m(x, { ...e })
|
|
37
37
|
] })
|
|
38
38
|
}
|
|
39
39
|
)
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { jsx as n, jsxs as f } from "react/jsx-runtime";
|
|
3
3
|
import "../../index-L8X2o7IH.js";
|
|
4
4
|
import * as a from "react";
|
|
5
|
-
import { forwardRef as
|
|
5
|
+
import { forwardRef as p } from "react";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
7
|
import "../Search/AutocompleteBase.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
import { TimelineActivity as m } from "../Timeline/TimelineActivity.js";
|
|
10
|
-
import { TimelineLink as
|
|
10
|
+
import { TimelineLink as c } from "../Timeline/TimelineLink.js";
|
|
11
11
|
import { Transmission as s } from "../Transmission/Transmission.js";
|
|
12
12
|
import { Typography as d } from "../Typography/Typography.js";
|
|
13
13
|
import { ListBase as u } from "../List/ListBase.js";
|
|
@@ -20,7 +20,7 @@ var v = function(r, i) {
|
|
|
20
20
|
i.indexOf(e[t]) < 0 && Object.prototype.propertyIsEnumerable.call(r, e[t]) && (o[e[t]] = r[e[t]]);
|
|
21
21
|
return o;
|
|
22
22
|
};
|
|
23
|
-
const w =
|
|
23
|
+
const w = p((r, i) => {
|
|
24
24
|
var { title: o, titleId: e } = r, t = v(r, ["title", "titleId"]);
|
|
25
25
|
let l = g();
|
|
26
26
|
return l = o ? e || "title-" + l : void 0, a.createElement(
|
|
@@ -33,8 +33,8 @@ const w = c((r, i) => {
|
|
|
33
33
|
switch (r) {
|
|
34
34
|
case "transmission":
|
|
35
35
|
return /* @__PURE__ */ f(m, { byline: i, datetime: o, spacing: 2, children: [
|
|
36
|
-
/* @__PURE__ */ n(u, { children: /* @__PURE__ */ n(s, { ...l }) }),
|
|
37
|
-
t && /* @__PURE__ */ n(
|
|
36
|
+
/* @__PURE__ */ n(u, { children: /* @__PURE__ */ n(s, { ...l, children: e }) }),
|
|
37
|
+
t && /* @__PURE__ */ n(c, { ...t, icon: (t == null ? void 0 : t.icon) || w })
|
|
38
38
|
] });
|
|
39
39
|
default:
|
|
40
40
|
return /* @__PURE__ */ n(m, { byline: i, datetime: o, children: /* @__PURE__ */ n(d, { children: e }) });
|
|
@@ -10,7 +10,7 @@ import { PageNav as a } from "../Page/PageNav.js";
|
|
|
10
10
|
import { PageMenu as l } from "../Page/PageMenu.js";
|
|
11
11
|
import { Article as d } from "../Page/Article.js";
|
|
12
12
|
import { Section as c } from "../Page/Section.js";
|
|
13
|
-
const A = ({ backButton: m, contextMenu: t, pageMenu: r, children: e }) => /* @__PURE__ */ i(s, { spacing: 0, bleed: !0, children: [
|
|
13
|
+
const A = ({ backButton: m, contextMenu: t, pageMenu: r, children: e }) => /* @__PURE__ */ i(s, { theme: "subtle", spacing: 0, bleed: !0, children: [
|
|
14
14
|
/* @__PURE__ */ i(c, { theme: "default", shadow: "xs", children: [
|
|
15
15
|
/* @__PURE__ */ o(
|
|
16
16
|
a,
|
|
@@ -23,7 +23,7 @@ const A = ({ backButton: m, contextMenu: t, pageMenu: r, children: e }) => /* @_
|
|
|
23
23
|
),
|
|
24
24
|
/* @__PURE__ */ o(d, { padding: 6, spacing: 6, children: e })
|
|
25
25
|
] }),
|
|
26
|
-
/* @__PURE__ */ o(l, {
|
|
26
|
+
/* @__PURE__ */ o(l, { items: r == null ? void 0 : r.items })
|
|
27
27
|
] });
|
|
28
28
|
export {
|
|
29
29
|
A as DialogLayout
|
|
@@ -1,130 +1,130 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a, jsxs as N } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import { ListItemLabel as
|
|
6
|
-
import { ListItemSelect as
|
|
7
|
-
import { ListItem as
|
|
8
|
-
import { Skeleton as
|
|
9
|
-
import { DialogMetadata as
|
|
10
|
-
import { DialogByline as
|
|
11
|
-
import { DialogHeading as
|
|
5
|
+
import { ListItemLabel as E } from "../List/ListItemLabel.js";
|
|
6
|
+
import { ListItemSelect as F } from "../List/ListItemSelect.js";
|
|
7
|
+
import { ListItem as g } from "../List/ListItem.js";
|
|
8
|
+
import { Skeleton as G } from "../Skeleton/Skeleton.js";
|
|
9
|
+
import { DialogMetadata as v } from "./DialogMetadata.js";
|
|
10
|
+
import { DialogByline as J } from "./DialogByline.js";
|
|
11
|
+
import { DialogHeading as K } from "./DialogHeading.js";
|
|
12
12
|
import "../Search/AutocompleteBase.js";
|
|
13
13
|
import "../Snackbar/useSnackbar.js";
|
|
14
|
-
import '../../assets/DialogListItem.css';const
|
|
15
|
-
link: K,
|
|
14
|
+
import '../../assets/DialogListItem.css';const O = "_border_1ecaj_1", P = "_controls_1ecaj_51", Q = "_header_1ecaj_57", R = "_summary_1ecaj_69", U = "_footer_1ecaj_97", W = "_touchedBy_1ecaj_101", X = "_heading_1ecaj_110", Y = "_title_1ecaj_116", r = {
|
|
16
15
|
border: O,
|
|
17
|
-
|
|
16
|
+
controls: P,
|
|
18
17
|
header: Q,
|
|
19
18
|
summary: R,
|
|
20
19
|
footer: U,
|
|
21
20
|
touchedBy: W,
|
|
22
21
|
heading: X,
|
|
23
22
|
title: Y
|
|
24
|
-
},
|
|
25
|
-
size:
|
|
26
|
-
state:
|
|
27
|
-
loading:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
23
|
+
}, na = ({
|
|
24
|
+
size: e = "lg",
|
|
25
|
+
state: x = "normal",
|
|
26
|
+
loading: o,
|
|
27
|
+
controls: B,
|
|
28
|
+
select: n,
|
|
29
|
+
selected: m,
|
|
30
|
+
status: t,
|
|
31
|
+
sender: s,
|
|
32
|
+
recipient: u,
|
|
33
|
+
recipientLabel: D = "to",
|
|
34
|
+
grouped: I = !1,
|
|
35
|
+
updatedAt: d,
|
|
36
|
+
updatedAtLabel: _,
|
|
37
|
+
archivedAt: h,
|
|
38
|
+
archivedAtLabel: L,
|
|
39
|
+
trashedAt: p,
|
|
40
|
+
trashedAtLabel: S,
|
|
41
|
+
badge: k,
|
|
42
|
+
dueAt: H,
|
|
43
|
+
dueAtLabel: M,
|
|
44
|
+
seen: l = !1,
|
|
45
|
+
seenBy: T,
|
|
46
|
+
touchedBy: V,
|
|
47
|
+
attachmentsCount: q,
|
|
48
|
+
title: c,
|
|
49
|
+
description: f,
|
|
50
50
|
summary: i,
|
|
51
|
-
theme:
|
|
51
|
+
theme: w = "default",
|
|
52
52
|
...b
|
|
53
53
|
}) => {
|
|
54
|
-
const
|
|
55
|
-
return
|
|
56
|
-
|
|
54
|
+
const C = p ? "trashed" : h ? "archived" : x, j = m ? "subtle" : w, y = t == null ? void 0 : t.value;
|
|
55
|
+
return e === "xs" || e === "sm" ? /* @__PURE__ */ a(
|
|
56
|
+
g,
|
|
57
57
|
{
|
|
58
58
|
...b,
|
|
59
|
-
size:
|
|
60
|
-
selected:
|
|
61
|
-
theme:
|
|
62
|
-
label: /* @__PURE__ */
|
|
59
|
+
size: e,
|
|
60
|
+
selected: m,
|
|
61
|
+
theme: j,
|
|
62
|
+
label: /* @__PURE__ */ a(
|
|
63
63
|
"div",
|
|
64
64
|
{
|
|
65
|
-
className:
|
|
66
|
-
"data-variant":
|
|
67
|
-
"data-size":
|
|
68
|
-
"data-seen":
|
|
69
|
-
"data-loading":
|
|
70
|
-
children: /* @__PURE__ */
|
|
65
|
+
className: r.border,
|
|
66
|
+
"data-variant": y,
|
|
67
|
+
"data-size": e,
|
|
68
|
+
"data-seen": l,
|
|
69
|
+
"data-loading": o,
|
|
70
|
+
children: /* @__PURE__ */ a(E, { loading: o, size: e, title: c, description: i || f })
|
|
71
71
|
}
|
|
72
72
|
),
|
|
73
|
-
badge: /* @__PURE__ */
|
|
74
|
-
title:
|
|
73
|
+
badge: /* @__PURE__ */ a(v, { loading: o, sender: s, updatedAt: d, updatedAtLabel: _ }),
|
|
74
|
+
title: c
|
|
75
75
|
}
|
|
76
|
-
) : /* @__PURE__ */
|
|
77
|
-
|
|
76
|
+
) : /* @__PURE__ */ a(
|
|
77
|
+
g,
|
|
78
78
|
{
|
|
79
79
|
...b,
|
|
80
|
-
size:
|
|
81
|
-
selected:
|
|
82
|
-
theme:
|
|
83
|
-
controls:
|
|
84
|
-
title:
|
|
85
|
-
label: /* @__PURE__ */
|
|
80
|
+
size: e,
|
|
81
|
+
selected: m,
|
|
82
|
+
theme: j,
|
|
83
|
+
controls: /* @__PURE__ */ a("div", { className: r.controls, children: B || n && /* @__PURE__ */ a(F, { ...n, size: "xl" }) }),
|
|
84
|
+
title: c,
|
|
85
|
+
label: /* @__PURE__ */ N(
|
|
86
86
|
"div",
|
|
87
87
|
{
|
|
88
|
-
className:
|
|
89
|
-
"data-variant":
|
|
90
|
-
"data-size":
|
|
91
|
-
"data-seen":
|
|
92
|
-
"data-loading":
|
|
88
|
+
className: r.border,
|
|
89
|
+
"data-variant": y,
|
|
90
|
+
"data-size": e,
|
|
91
|
+
"data-seen": l,
|
|
92
|
+
"data-loading": o,
|
|
93
93
|
children: [
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
/* @__PURE__ */
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
|
|
94
|
+
/* @__PURE__ */ N("header", { className: r.header, "data-size": e, children: [
|
|
95
|
+
/* @__PURE__ */ a(K, { loading: o, size: e, state: C, badge: k, seen: l, children: c }),
|
|
96
|
+
/* @__PURE__ */ a(
|
|
97
|
+
J,
|
|
98
98
|
{
|
|
99
99
|
size: "xs",
|
|
100
|
-
loading:
|
|
101
|
-
sender:
|
|
102
|
-
recipient:
|
|
103
|
-
recipientLabel:
|
|
104
|
-
grouped:
|
|
100
|
+
loading: o,
|
|
101
|
+
sender: s,
|
|
102
|
+
recipient: u,
|
|
103
|
+
recipientLabel: D,
|
|
104
|
+
grouped: I
|
|
105
105
|
}
|
|
106
106
|
),
|
|
107
|
-
|
|
107
|
+
e === "lg" && i && /* @__PURE__ */ a(G, { loading: o, children: /* @__PURE__ */ a("p", { "data-size": e, className: r.summary, children: i || f }) })
|
|
108
108
|
] }),
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
-
|
|
109
|
+
/* @__PURE__ */ a(
|
|
110
|
+
v,
|
|
111
111
|
{
|
|
112
|
-
className:
|
|
113
|
-
loading:
|
|
114
|
-
status:
|
|
115
|
-
updatedAt:
|
|
116
|
-
updatedAtLabel:
|
|
117
|
-
archivedAt:
|
|
118
|
-
archivedAtLabel:
|
|
119
|
-
trashedAt:
|
|
120
|
-
trashedAtLabel:
|
|
121
|
-
dueAt:
|
|
122
|
-
dueAtLabel:
|
|
123
|
-
attachmentsCount:
|
|
124
|
-
seenBy:
|
|
112
|
+
className: r.footer,
|
|
113
|
+
loading: o,
|
|
114
|
+
status: t,
|
|
115
|
+
updatedAt: d,
|
|
116
|
+
updatedAtLabel: _,
|
|
117
|
+
archivedAt: h,
|
|
118
|
+
archivedAtLabel: L,
|
|
119
|
+
trashedAt: p,
|
|
120
|
+
trashedAtLabel: S,
|
|
121
|
+
dueAt: H,
|
|
122
|
+
dueAtLabel: M,
|
|
123
|
+
attachmentsCount: q,
|
|
124
|
+
seenBy: T,
|
|
125
125
|
touchedBy: {
|
|
126
|
-
touchedBy:
|
|
127
|
-
className:
|
|
126
|
+
touchedBy: V,
|
|
127
|
+
className: r.touchedBy
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
)
|
|
@@ -135,5 +135,5 @@ import '../../assets/DialogListItem.css';const K = "_link_2hfa5_1", O = "_border
|
|
|
135
135
|
);
|
|
136
136
|
};
|
|
137
137
|
export {
|
|
138
|
-
|
|
138
|
+
na as DialogListItem
|
|
139
139
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as m } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as p } from "../../index-L8X2o7IH.js";
|
|
3
3
|
import { useRef as l } from "react";
|
|
4
4
|
import { useClickOutside as c } from "../../hooks/useClickOutside.js";
|
|
5
|
-
import '../../assets/DropdownBase.css';const f = "
|
|
5
|
+
import '../../assets/DropdownBase.css';const f = "_dropdown_139me_1", u = {
|
|
6
6
|
dropdown: f
|
|
7
7
|
}, _ = ({
|
|
8
8
|
layout: a,
|