@altinn/altinn-components 0.20.2 → 0.21.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/ArrowUp-Cn3ai5t6.js +25 -0
- package/dist/assets/ButtonBase.css +1 -1
- package/dist/assets/DialogListItem.css +1 -1
- package/dist/assets/ListItemLabel.css +1 -1
- package/dist/assets/ProgressIcon.css +1 -1
- package/dist/assets/TimelineBase.css +1 -1
- package/dist/assets/TimelineLink.css +1 -0
- package/dist/components/Button/ButtonBase.js +10 -10
- package/dist/components/Button/ButtonIcon.js +6 -6
- package/dist/components/Byline/Byline.js +12 -11
- package/dist/components/Dialog/DialogHeading.js +7 -7
- package/dist/components/Dialog/DialogHistory.js +37 -54
- package/dist/components/Dialog/DialogListItem.js +19 -19
- package/dist/components/Dialog/DialogMetadata.js +1 -1
- package/dist/components/Dialog/index.js +21 -23
- package/dist/components/Icon/ProgressIcon.js +4 -4
- package/dist/components/List/ListItemLabel.js +16 -9
- package/dist/components/Timeline/Timeline.js +2 -2
- package/dist/components/Timeline/TimelineBase.js +25 -23
- package/dist/components/Timeline/TimelineFooter.js +5 -5
- package/dist/components/Timeline/TimelineHeader.js +9 -9
- package/dist/components/Timeline/TimelineLink.js +39 -0
- package/dist/components/Timeline/TimelineSection.js +16 -15
- package/dist/components/Timeline/TimelineSegment.js +12 -12
- package/dist/components/Timeline/index.js +2 -0
- package/dist/components/Transmission/Transmission.js +36 -33
- package/dist/components/Transmission/TransmissionTimeline.js +22 -0
- package/dist/components/Transmission/TransmissionTimelineSegment.js +63 -0
- package/dist/components/Transmission/index.js +7 -3
- package/dist/components/index.js +207 -203
- package/dist/index.js +221 -217
- package/dist/types/lib/components/Button/ButtonBase.d.ts +1 -1
- package/dist/types/lib/components/Button/ButtonIcon.d.ts +3 -2
- package/dist/types/lib/components/Byline/Byline.d.ts +1 -1
- package/dist/types/lib/components/Byline/Byline.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogHeading.d.ts +4 -4
- package/dist/types/lib/components/Dialog/DialogListItem.d.ts +6 -4
- package/dist/types/lib/components/Dialog/index.d.ts +0 -1
- package/dist/types/lib/components/List/ListItemLabel.d.ts +2 -1
- package/dist/types/lib/components/Page/Flex.d.ts +2 -3
- package/dist/types/lib/components/Timeline/TimelineBase.d.ts +5 -4
- package/dist/types/lib/components/Timeline/TimelineLink.d.ts +9 -0
- package/dist/types/lib/components/Timeline/TimelineSection.d.ts +3 -2
- package/dist/types/lib/components/Timeline/TimelineSection.stories.d.ts +1 -1
- package/dist/types/lib/components/Timeline/TimelineSegment.d.ts +3 -3
- package/dist/types/lib/components/Timeline/index.d.ts +1 -0
- package/dist/types/lib/components/Transmission/Transmission.d.ts +2 -6
- package/dist/types/lib/components/Transmission/TransmissionTimeline.d.ts +10 -0
- package/dist/types/lib/components/Transmission/TransmissionTimeline.stories.d.ts +74 -0
- package/dist/types/lib/components/Transmission/TransmissionTimelineSegment.d.ts +14 -0
- package/dist/types/lib/components/Transmission/index.d.ts +2 -0
- package/package.json +1 -1
- package/dist/components/Dialog/DialogLabel.js +0 -21
- package/dist/types/lib/components/Dialog/DialogLabel.d.ts +0 -13
|
@@ -0,0 +1,25 @@
|
|
|
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 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._button_ppafq_1{border:1px solid;border-color:transparent;margin:0;padding:0;width:auto;overflow:visible;background:transparent;text-decoration:none;color:inherit;font:inherit;text-align:inherit;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}._button_ppafq_1:disabled{opacity:.5;pointer-events:none}._button_ppafq_1[data-size=xs]{height:1.875rem}._button_ppafq_1[data-size=sm]{height:2.25rem}._button_ppafq_1[data-size=md]{height:2.75rem}._button_ppafq_1[data-size=lg]{height:3.5rem}._button_ppafq_1[data-variant=solid]{background-color:var(--ds-color-base-default);border-color:var(--ds-color-base-default);color:var(--ds-color-contrast-default)}._button_ppafq_1[data-variant=solid]:hover{background-color:var(--ds-color-base-hover)}._button_ppafq_1[data-variant=solid]:active{background-color:var(--ds-color-base-active)}._button_ppafq_1[data-variant=outline],._button_ppafq_1[data-variant=dotted]{border-color:var(--ds-color-base-default)}._button_ppafq_1[data-variant=outline]{border-style:solid}._button_ppafq_1[data-variant=dotted]{border-style:dotted}._button_ppafq_1[data-variant=text]{border-color:transparent;color:var(--ds-color-text-subtle)}._button_ppafq_1[data-variant=outline]:hover,._button_ppafq_1[data-variant=dotted]:hover,._button_ppafq_1[data-variant=text]:hover{background-color:var(--ds-color-surface-default);color:var(--ds-color-text-default)}._button_ppafq_1[data-variant=outline]:active,._button_ppafq_1[data-variant=dotted]:active,._button_ppafq_1[data-variant=text]:active{background-color:var(--ds-color-surface-active)}._button_ppafq_1[data-variant=link]{border:none;color:var(--ds-color-text-subtle)}._button_ppafq_1[data-variant=link]:hover{color:var(--ds-color-base-hover)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._link_2hfa5_1[data-size=xl]{padding:1em}._link_2hfa5_1[data-size=lg]{padding:.875em}._link_2hfa5_1[data-size=md]{padding:.75em}._link_2hfa5_1[data-size=sm],._link_2hfa5_1[data-size=xs]{padding:.625em}._border_2hfa5_22{position:relative;border-left:.25rem solid;border-color:var(--ds-color-surface-active);display:flex;flex-direction:column}._border_2hfa5_22[data-seen=true]{border-color:var(--ds-color-neutral-surface-default)}._border_2hfa5_22[data-variant=draft]{border-color:var(--ds-color-neutral-surface-active);border-left-width:.125rem;margin-left:.125rem;border-left-style:dashed}._border_2hfa5_22[data-variant=sent]{border-color:var(--ds-color-neutral-surface-default)}._border_2hfa5_22[data-loading=true]{border-color:var(--ds-color-surface-default)}._border_2hfa5_22[data-size=xs],._border_2hfa5_22[data-size=sm]{width:100%;flex-direction:row;align-items:center;padding-left:.75rem}._border_2hfa5_22[data-size=md]{padding-left:.75rem;row-gap:.5rem}._border_2hfa5_22[data-size=lg]{padding-left:.875rem;row-gap:.875rem}._border_2hfa5_22[data-size=xl]{padding-left:1rem;row-gap:1rem}._select_2hfa5_72{position:absolute;top:0;right:0;margin:.375rem}._header_2hfa5_79{display:flex;flex-direction:column;row-gap:.25rem}._header_2hfa5_79[data-size=xs],._header_2hfa5_79[data-size=sm]{display:flex;flex-direction:row}._summary_2hfa5_91{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_2hfa5_91[data-size=xs],._summary_2hfa5_91[data-size=sm],._summary_2hfa5_91[data-size=md]{font-size:.875rem}._summary_2hfa5_91[data-size=lg],._summary_2hfa5_91[data-size=xl]{font-size:1rem}._footer_2hfa5_119{width:100%}._touchedBy_2hfa5_123{position:absolute;right:0;bottom:0;margin:8px}._heading_2hfa5_132{padding-right:1.25rem;display:inline-flex;column-gap:.5em}._title_2hfa5_138{line-height:1.25;font-weight:600;margin:0}._title_2hfa5_138[data-size=xs],._title_2hfa5_138[data-size=sm]{font-size:1rem}._title_2hfa5_138[data-size=md],._title_2hfa5_138[data-size=lg],._title_2hfa5_138[data-size=xl]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}._title_2hfa5_138[data-size=md]{font-size:1rem}._title_2hfa5_138[data-size=lg],._title_2hfa5_138[data-size=xl]{font-size:1.25rem;line-height:1.25}._title_2hfa5_138[data-seen=true],._title_2hfa5_138[data-state=archived]{font-weight:400}._title_2hfa5_138[data-state=trashed]{font-weight:400;text-decoration:line-through}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_fiqmy_3{width:100%}._label_fiqmy_3[data-size=xs]{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}._label_fiqmy_3[data-size=sm],._label_fiqmy_3[data-size=md],._label_fiqmy_3[data-size=lg],._label_fiqmy_3[data-size=xl]{display:flex;flex-direction:column;row-gap:.125rem}._label_fiqmy_3[data-size=xs],._label_fiqmy_3[data-size=sm],._label_fiqmy_3[data-size=md]{font-size:1rem}._label_fiqmy_3[data-size=lg]{font-size:1.125rem}._label_fiqmy_3[data-size=xl]{font-size:1.25rem}._title_fiqmy_43{display:inline;font-size:1em;line-height:1.125;margin:0}._title_fiqmy_43[data-weight=bold]{font-weight:600}._title_fiqmy_43[data-weight=normal]{font-weight:400}._description_fiqmy_58{display:inline;font-weight:400;line-height:1.125;color:var(--ds-color-text-subtle);margin:0}._description_fiqmy_58[data-size=xs],._description_fiqmy_58[data-size=sm],._description_fiqmy_58[data-size=md],._description_fiqmy_58[data-size=lg],._description_fiqmy_58[data-size=xl]{font-size:.875rem;line-height:1rem}[data-theme=base] ._description_fiqmy_58{color:var(--ds-color-contrast-subtle)}[data-theme=surface] ._description_fiqmy_58{color:var(--ds-color-text-default)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._progress_1usqp_1{--size: 16px;width:var(--size);height:var(--size);aspect-ratio:1;border-radius:50%;background:conic-gradient(var(--ds-color-base-default) var(--progress, 0),var(--ds-color-surface-default) 0);display:grid;place-content:center;transform:scaleX(-1)}._progress_1usqp_1:after{width:calc(var(--size) * .5);height:calc(var(--size) * .5);aspect-ratio:1;content:attr(data-value);display:grid;background:#fff;border-radius:50%;font-size:0;place-content:center}._complete_1usqp_25{width:var(--size);height:var(--size);color:var(--ds-color-base-default)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._section_et0gx_1{width:100%;display:flex;column-gap:.5rem;min-height:1.5rem}._sidebar_et0gx_8{flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;row-gap:.375rem;width:2.25rem}._sidebar_et0gx_8[data-level="2"]{width:1.5rem}._content_et0gx_22{flex-grow:1;display:flex;flex-direction:column}._border_et0gx_28{border-left:.25rem solid;border-color:var(--ds-color-surface-default);flex-grow:1}._icon_et0gx_34{color:var(--ds-color-surface-active)}._border_et0gx_28{border-color:var(--ds-color-surface-active);border-width:.125rem;flex-grow:1}._border_et0gx_28[data-variant=hidden]{display:none}._border_et0gx_28[data-variant=strong]{border-width:2px;border-style:solid}._border_et0gx_28[data-variant=solid]{border-width:1px;border-style:solid}._border_et0gx_28[data-variant=dashed]{border-width:1px;border-style:dashed}._border_et0gx_28[data-loading=true]{border-width:1px;border-style:dashed;border-color:var(--ds-color-border-subtle)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._button_18xbc_1{display:inline-flex;align-items:center;column-gap:.125em;height:1.5rem;align-self:flex-start}._reverse_18xbc_9{flex-direction:row-reverse}._icon_18xbc_13{font-size:1.25rem;width:1.5rem;height:1.5rem}._label_18xbc_19{font-size:14px;font-weight:400;line-height:1.125rem;padding:.1875rem 0}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { c as u } from "../../index-L8X2o7IH.js";
|
|
3
|
-
import '../../assets/ButtonBase.css';const
|
|
4
|
-
button:
|
|
3
|
+
import '../../assets/ButtonBase.css';const b = "_button_ppafq_1", i = {
|
|
4
|
+
button: b
|
|
5
5
|
}, B = ({
|
|
6
6
|
as: o,
|
|
7
7
|
color: a,
|
|
@@ -10,22 +10,22 @@ import '../../assets/ButtonBase.css';const i = "_button_mffb6_1", f = {
|
|
|
10
10
|
disabled: t = !1,
|
|
11
11
|
ariaLabel: e,
|
|
12
12
|
size: r,
|
|
13
|
-
selected:
|
|
13
|
+
selected: d,
|
|
14
14
|
variant: c,
|
|
15
|
-
tabIndex:
|
|
16
|
-
...
|
|
17
|
-
}) => /* @__PURE__ */
|
|
15
|
+
tabIndex: l = 0,
|
|
16
|
+
...m
|
|
17
|
+
}) => /* @__PURE__ */ p(
|
|
18
18
|
o || "button",
|
|
19
19
|
{
|
|
20
|
-
tabIndex:
|
|
20
|
+
tabIndex: l,
|
|
21
21
|
"data-size": r,
|
|
22
22
|
"data-variant": c,
|
|
23
23
|
"data-color": a,
|
|
24
24
|
"aria-disabled": t,
|
|
25
25
|
disabled: t,
|
|
26
|
-
className: u(
|
|
26
|
+
className: u(i.button, n),
|
|
27
27
|
"aria-label": e,
|
|
28
|
-
...
|
|
28
|
+
...m,
|
|
29
29
|
children: s
|
|
30
30
|
}
|
|
31
31
|
);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
2
|
+
import { c } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import { Icon as m } from "../Icon/Icon.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
6
|
import "../Search/AutocompleteBase.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import '../../assets/ButtonIcon.css';const
|
|
9
|
-
icon:
|
|
10
|
-
},
|
|
8
|
+
import '../../assets/ButtonIcon.css';const s = "_icon_ablit_1", e = {
|
|
9
|
+
icon: s
|
|
10
|
+
}, u = ({ className: t, size: i, icon: n, iconAltText: r }) => /* @__PURE__ */ o("span", { className: c(e.icon, t), "data-size": i, children: /* @__PURE__ */ o(m, { svgElement: n, altText: r }) });
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
u as ButtonIcon
|
|
13
13
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as b, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { Avatar as
|
|
5
|
-
import { AvatarGroup as
|
|
4
|
+
import { Avatar as d } from "../Avatar/Avatar.js";
|
|
5
|
+
import { AvatarGroup as y } from "../Avatar/AvatarGroup.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
7
|
import { Skeleton as i } from "../Skeleton/Skeleton.js";
|
|
8
8
|
import "../Search/AutocompleteBase.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import '../../assets/Byline.css';const
|
|
11
|
-
byline:
|
|
12
|
-
label:
|
|
13
|
-
},
|
|
10
|
+
import '../../assets/Byline.css';const _ = "_byline_160ic_1", N = "_label_160ic_7", t = {
|
|
11
|
+
byline: _,
|
|
12
|
+
label: N
|
|
13
|
+
}, S = ({
|
|
14
14
|
loading: r,
|
|
15
15
|
color: m = "neutral",
|
|
16
16
|
size: l = "xs",
|
|
@@ -18,11 +18,12 @@ import '../../assets/Byline.css';const y = "_byline_160ic_1", _ = "_label_160ic_
|
|
|
18
18
|
avatarGroup: o,
|
|
19
19
|
datetime: n,
|
|
20
20
|
children: s,
|
|
21
|
-
as: c
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
as: c,
|
|
22
|
+
...p
|
|
23
|
+
}) => /* @__PURE__ */ b(c || "div", { ...p, className: t.byline, "data-color": m, "data-size": l, children: [
|
|
24
|
+
(o || a) && /* @__PURE__ */ e(i, { variant: "circle", className: t.avatar, loading: r, children: o ? /* @__PURE__ */ e(y, { ...o, size: l, className: t.avatar }) : a && /* @__PURE__ */ e(d, { ...a, size: l, className: t.avatar }) }),
|
|
24
25
|
/* @__PURE__ */ e("time", { "data-size": l, dateTime: n, className: t.label, children: /* @__PURE__ */ e(i, { loading: r, children: s }) })
|
|
25
26
|
] });
|
|
26
27
|
export {
|
|
27
|
-
|
|
28
|
+
S as Byline
|
|
28
29
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
|
+
import { Badge as l } from "../Badge/Badge.js";
|
|
4
5
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import { Skeleton as
|
|
6
|
-
import { DialogLabel as d } from "./DialogLabel.js";
|
|
6
|
+
import { Skeleton as d } from "../Skeleton/Skeleton.js";
|
|
7
7
|
import "../Search/AutocompleteBase.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
import '../../assets/DialogHeading.css';const p = "_heading_rx9gi_1", c = "_title_rx9gi_7",
|
|
9
|
+
import '../../assets/DialogHeading.css';const p = "_heading_rx9gi_1", c = "_title_rx9gi_7", r = {
|
|
10
10
|
heading: p,
|
|
11
11
|
title: c
|
|
12
|
-
},
|
|
13
|
-
/* @__PURE__ */ t(
|
|
14
|
-
!
|
|
12
|
+
}, u = ({ loading: e, size: s = "sm", seen: a = !1, state: o, badge: i, children: m }) => /* @__PURE__ */ n("div", { className: r.heading, children: [
|
|
13
|
+
/* @__PURE__ */ t(d, { loading: e, children: /* @__PURE__ */ t("h2", { className: r.title, "data-seen": a, "data-size": s, "data-state": o, children: m }) }),
|
|
14
|
+
!e && i && /* @__PURE__ */ t(l, { ...i })
|
|
15
15
|
] });
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
u as DialogHeading
|
|
18
18
|
};
|
|
@@ -1,55 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { Icon as
|
|
2
|
+
import { jsxs as f, jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import * as s from "react";
|
|
4
|
+
import { forwardRef as p, useState as g, createElement as u } from "react";
|
|
5
|
+
import { Icon as y } from "../Icon/Icon.js";
|
|
6
6
|
import "../../index-L8X2o7IH.js";
|
|
7
7
|
import { ButtonBase as h } from "../Button/ButtonBase.js";
|
|
8
8
|
import "../RootProvider/RootProvider.js";
|
|
9
|
-
import { DialogActivity as
|
|
9
|
+
import { DialogActivity as v } from "./DialogActivity.js";
|
|
10
10
|
import "../Search/AutocompleteBase.js";
|
|
11
11
|
import "../Snackbar/useSnackbar.js";
|
|
12
|
-
import { Timeline as
|
|
13
|
-
import { TimelineSection as
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
12
|
+
import { Timeline as w } from "../Timeline/Timeline.js";
|
|
13
|
+
import { TimelineSection as x } from "../Timeline/TimelineSection.js";
|
|
14
|
+
import { S as b } from "../../ArrowUp-Cn3ai5t6.js";
|
|
15
|
+
import { u as O } from "../../useId-CsCRkvK3.js";
|
|
16
|
+
import '../../assets/DialogHistory.css';var E = function(e, l) {
|
|
16
17
|
var r = {};
|
|
17
|
-
for (var
|
|
18
|
-
if (
|
|
19
|
-
for (var
|
|
20
|
-
|
|
18
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && l.indexOf(t) < 0 && (r[t] = e[t]);
|
|
19
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
20
|
+
for (var o = 0, t = Object.getOwnPropertySymbols(e); o < t.length; o++)
|
|
21
|
+
l.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (r[t[o]] = e[t[o]]);
|
|
21
22
|
return r;
|
|
22
23
|
};
|
|
23
|
-
const I =
|
|
24
|
-
var { title: r, titleId:
|
|
25
|
-
let
|
|
26
|
-
return
|
|
24
|
+
const I = p((e, l) => {
|
|
25
|
+
var { title: r, titleId: t } = e, o = E(e, ["title", "titleId"]);
|
|
26
|
+
let n = O();
|
|
27
|
+
return n = r ? t || "title-" + n : void 0, s.createElement(
|
|
27
28
|
"svg",
|
|
28
|
-
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:
|
|
29
|
-
r ?
|
|
30
|
-
|
|
29
|
+
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": n }, o),
|
|
30
|
+
r ? s.createElement("title", { id: n }, r) : null,
|
|
31
|
+
s.createElement("path", { fill: "currentColor", d: "M12.75 5a.75.75 0 0 0-1.5 0v12.19l-3.22-3.22a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l4.5-4.5a.75.75 0 1 0-1.06-1.06l-3.22 3.22z" })
|
|
31
32
|
);
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
36
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
37
|
-
for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
|
|
38
|
-
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
39
|
-
return r;
|
|
40
|
-
};
|
|
41
|
-
const E = m((t, n) => {
|
|
42
|
-
var { title: r, titleId: e } = t, l = j(t, ["title", "titleId"]);
|
|
43
|
-
let o = p();
|
|
44
|
-
return o = r ? e || "title-" + o : void 0, i.createElement(
|
|
45
|
-
"svg",
|
|
46
|
-
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: n, "aria-labelledby": o }, l),
|
|
47
|
-
r ? i.createElement("title", { id: o }, r) : null,
|
|
48
|
-
i.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" })
|
|
49
|
-
);
|
|
50
|
-
}), _ = "_toggle_1it16_1", S = {
|
|
51
|
-
toggle: _
|
|
52
|
-
}, c = ({ expanded: t, children: n, onClick: r }) => /* @__PURE__ */ d(
|
|
33
|
+
}), j = "_toggle_1it16_1", S = {
|
|
34
|
+
toggle: j
|
|
35
|
+
}, c = ({ expanded: e, children: l, onClick: r }) => /* @__PURE__ */ f(
|
|
53
36
|
h,
|
|
54
37
|
{
|
|
55
38
|
className: S.toggle,
|
|
@@ -57,24 +40,24 @@ const E = m((t, n) => {
|
|
|
57
40
|
onClick: r,
|
|
58
41
|
style: { display: "inline-flex", alignItems: "center" },
|
|
59
42
|
children: [
|
|
60
|
-
|
|
61
|
-
/* @__PURE__ */
|
|
43
|
+
l,
|
|
44
|
+
/* @__PURE__ */ i(y, { svgElement: e ? b : I, size: "sm" })
|
|
62
45
|
]
|
|
63
46
|
}
|
|
64
|
-
),
|
|
65
|
-
items:
|
|
66
|
-
collapsible:
|
|
47
|
+
), U = ({
|
|
48
|
+
items: e,
|
|
49
|
+
collapsible: l = !1,
|
|
67
50
|
expandLabel: r = "Expand history",
|
|
68
|
-
collapseLabel:
|
|
51
|
+
collapseLabel: t = "Collapse history"
|
|
69
52
|
}) => {
|
|
70
|
-
const [
|
|
71
|
-
|
|
53
|
+
const [o, n] = g(!1), m = () => {
|
|
54
|
+
n((a) => !a);
|
|
72
55
|
};
|
|
73
|
-
return
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
] }) : /* @__PURE__ */
|
|
56
|
+
return e ? o || !l ? /* @__PURE__ */ f(w, { children: [
|
|
57
|
+
e.map((a, d) => /* @__PURE__ */ u(v, { ...a, key: d })),
|
|
58
|
+
l && /* @__PURE__ */ i(c, { expanded: !0, onClick: m, children: t })
|
|
59
|
+
] }) : /* @__PURE__ */ i(x, { border: "dashed", children: /* @__PURE__ */ i(c, { onClick: m, children: r }) }) : null;
|
|
77
60
|
};
|
|
78
61
|
export {
|
|
79
|
-
|
|
62
|
+
U as DialogHistory
|
|
80
63
|
};
|
|
@@ -11,7 +11,7 @@ import { ListItemLabel as G } from "../List/ListItemLabel.js";
|
|
|
11
11
|
import { ListItemSelect as J } from "../List/ListItemSelect.js";
|
|
12
12
|
import { ListItem as x } from "../List/ListItem.js";
|
|
13
13
|
import "../Snackbar/useSnackbar.js";
|
|
14
|
-
import '../../assets/DialogListItem.css';const K = "
|
|
14
|
+
import '../../assets/DialogListItem.css';const K = "_link_2hfa5_1", O = "_border_2hfa5_22", P = "_select_2hfa5_72", Q = "_header_2hfa5_79", R = "_summary_2hfa5_91", U = "_footer_2hfa5_119", W = "_touchedBy_2hfa5_123", X = "_heading_2hfa5_132", Y = "_title_2hfa5_138", o = {
|
|
15
15
|
link: K,
|
|
16
16
|
border: O,
|
|
17
17
|
select: P,
|
|
@@ -32,13 +32,13 @@ import '../../assets/DialogListItem.css';const K = "_link_6y5ya_1", O = "_border
|
|
|
32
32
|
recipient: v,
|
|
33
33
|
recipientLabel: k = "to",
|
|
34
34
|
grouped: D = !1,
|
|
35
|
-
updatedAt:
|
|
36
|
-
updatedAtLabel:
|
|
37
|
-
archivedAt:
|
|
35
|
+
updatedAt: h,
|
|
36
|
+
updatedAtLabel: n,
|
|
37
|
+
archivedAt: d,
|
|
38
38
|
archivedAtLabel: I,
|
|
39
39
|
trashedAt: _,
|
|
40
40
|
trashedAtLabel: L,
|
|
41
|
-
|
|
41
|
+
badge: S,
|
|
42
42
|
dueAt: j,
|
|
43
43
|
dueAtLabel: H,
|
|
44
44
|
seen: c = !1,
|
|
@@ -46,19 +46,19 @@ import '../../assets/DialogListItem.css';const K = "_link_6y5ya_1", O = "_border
|
|
|
46
46
|
touchedBy: T,
|
|
47
47
|
attachmentsCount: V,
|
|
48
48
|
title: m,
|
|
49
|
-
description:
|
|
49
|
+
description: f,
|
|
50
50
|
summary: p,
|
|
51
51
|
theme: q = "default",
|
|
52
|
-
...
|
|
52
|
+
...b
|
|
53
53
|
}) => {
|
|
54
|
-
const w = _ ? "trashed" :
|
|
54
|
+
const w = _ ? "trashed" : d ? "archived" : B, y = l ? "subtle" : q, N = r == null ? void 0 : r.value;
|
|
55
55
|
return a === "xs" || a === "sm" ? /* @__PURE__ */ e(
|
|
56
56
|
x,
|
|
57
57
|
{
|
|
58
|
-
...
|
|
58
|
+
...b,
|
|
59
59
|
size: a,
|
|
60
60
|
selected: l,
|
|
61
|
-
theme:
|
|
61
|
+
theme: y,
|
|
62
62
|
label: /* @__PURE__ */ e(
|
|
63
63
|
"div",
|
|
64
64
|
{
|
|
@@ -67,19 +67,19 @@ import '../../assets/DialogListItem.css';const K = "_link_6y5ya_1", O = "_border
|
|
|
67
67
|
"data-size": a,
|
|
68
68
|
"data-seen": c,
|
|
69
69
|
"data-loading": t,
|
|
70
|
-
children: /* @__PURE__ */ e(G, { loading: t, size: a, title: m, description: p ||
|
|
70
|
+
children: /* @__PURE__ */ e(G, { loading: t, size: a, title: m, description: p || f })
|
|
71
71
|
}
|
|
72
72
|
),
|
|
73
|
-
badge: /* @__PURE__ */ e(u, { loading: t, sender: s, updatedAt:
|
|
73
|
+
badge: /* @__PURE__ */ e(u, { loading: t, sender: s, updatedAt: h, updatedAtLabel: n }),
|
|
74
74
|
title: m
|
|
75
75
|
}
|
|
76
76
|
) : /* @__PURE__ */ e(
|
|
77
77
|
x,
|
|
78
78
|
{
|
|
79
|
-
...
|
|
79
|
+
...b,
|
|
80
80
|
size: a,
|
|
81
81
|
selected: l,
|
|
82
|
-
theme:
|
|
82
|
+
theme: y,
|
|
83
83
|
controls: i && /* @__PURE__ */ e(J, { className: o.select, ...i, size: "xl" }),
|
|
84
84
|
title: m,
|
|
85
85
|
label: /* @__PURE__ */ g(
|
|
@@ -92,7 +92,7 @@ import '../../assets/DialogListItem.css';const K = "_link_6y5ya_1", O = "_border
|
|
|
92
92
|
"data-loading": t,
|
|
93
93
|
children: [
|
|
94
94
|
/* @__PURE__ */ g("header", { className: o.header, "data-size": a, children: [
|
|
95
|
-
/* @__PURE__ */ e(F, { loading: t, size: a, state: w,
|
|
95
|
+
/* @__PURE__ */ e(F, { loading: t, size: a, state: w, badge: S, seen: c, children: m }),
|
|
96
96
|
/* @__PURE__ */ e(
|
|
97
97
|
C,
|
|
98
98
|
{
|
|
@@ -104,7 +104,7 @@ import '../../assets/DialogListItem.css';const K = "_link_6y5ya_1", O = "_border
|
|
|
104
104
|
grouped: D
|
|
105
105
|
}
|
|
106
106
|
),
|
|
107
|
-
a === "lg" && /* @__PURE__ */ e(E, { loading: t, children: /* @__PURE__ */ e("p", { "data-size": a, className: o.summary, children: p ||
|
|
107
|
+
a === "lg" && /* @__PURE__ */ e(E, { loading: t, children: /* @__PURE__ */ e("p", { "data-size": a, className: o.summary, children: p || f }) })
|
|
108
108
|
] }),
|
|
109
109
|
/* @__PURE__ */ e(
|
|
110
110
|
u,
|
|
@@ -112,9 +112,9 @@ import '../../assets/DialogListItem.css';const K = "_link_6y5ya_1", O = "_border
|
|
|
112
112
|
className: o.footer,
|
|
113
113
|
loading: t,
|
|
114
114
|
status: r,
|
|
115
|
-
updatedAt:
|
|
116
|
-
updatedAtLabel:
|
|
117
|
-
archivedAt:
|
|
115
|
+
updatedAt: h,
|
|
116
|
+
updatedAtLabel: n,
|
|
117
|
+
archivedAt: d,
|
|
118
118
|
archivedAtLabel: I,
|
|
119
119
|
trashedAt: _,
|
|
120
120
|
trashedAtLabel: L,
|
|
@@ -8,10 +8,10 @@ import { DialogActivityLog as j } from "./DialogActivityLog.js";
|
|
|
8
8
|
import { DialogSeenBy as I } from "./DialogSeenBy.js";
|
|
9
9
|
import { DialogStatus as E } from "./DialogStatus.js";
|
|
10
10
|
import { DialogTouchedBy as _ } from "./DialogTouchedBy.js";
|
|
11
|
+
import "../Search/AutocompleteBase.js";
|
|
11
12
|
import { MetaBase as M } from "../Meta/MetaBase.js";
|
|
12
13
|
import { MetaItem as b } from "../Meta/MetaItem.js";
|
|
13
14
|
import { MetaTimestamp as m } from "../Meta/MetaTimestamp.js";
|
|
14
|
-
import "../Search/AutocompleteBase.js";
|
|
15
15
|
import "../Snackbar/useSnackbar.js";
|
|
16
16
|
import { S as P } from "../../ClockDashed-PQgzLSPC.js";
|
|
17
17
|
import { u as S } from "../../useId-CsCRkvK3.js";
|
|
@@ -1,45 +1,43 @@
|
|
|
1
1
|
import { Dialog as t } from "./Dialog.js";
|
|
2
2
|
import { DialogHeader as i } from "./DialogHeader.js";
|
|
3
3
|
import { DialogBody as g } from "./DialogBody.js";
|
|
4
|
-
import { DialogList as
|
|
4
|
+
import { DialogList as l } from "./DialogList.js";
|
|
5
5
|
import { DialogListGroup as f } from "./DialogListGroup.js";
|
|
6
6
|
import { DialogListItem as D } from "./DialogListItem.js";
|
|
7
7
|
import { DialogMetadata as s } from "./DialogMetadata.js";
|
|
8
8
|
import { DialogByline as c } from "./DialogByline.js";
|
|
9
|
-
import { DialogActions as
|
|
10
|
-
import { DialogActivityLog as
|
|
9
|
+
import { DialogActions as d } from "./DialogActions.js";
|
|
10
|
+
import { DialogActivityLog as B } from "./DialogActivityLog.js";
|
|
11
11
|
import { DialogSection as A } from "./DialogSection.js";
|
|
12
12
|
import { DialogSeenBy as h } from "./DialogSeenBy.js";
|
|
13
|
-
import { DialogSelect as
|
|
14
|
-
import { DialogStatus as
|
|
15
|
-
import { DialogHeading as
|
|
13
|
+
import { DialogSelect as E } from "./DialogSelect.js";
|
|
14
|
+
import { DialogStatus as I, DialogStatusEnum as M } from "./DialogStatus.js";
|
|
15
|
+
import { DialogHeading as b } from "./DialogHeading.js";
|
|
16
16
|
import { DialogTouchedBy as k } from "./DialogTouchedBy.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { SeenByLog as P } from "./SeenByLog.js";
|
|
17
|
+
import { DialogAttachments as w } from "./DialogAttachments.js";
|
|
18
|
+
import { DialogHistory as C } from "./DialogHistory.js";
|
|
19
|
+
import { DialogActivity as J } from "./DialogActivity.js";
|
|
20
|
+
import { SeenByLog as N } from "./SeenByLog.js";
|
|
22
21
|
export {
|
|
23
22
|
t as Dialog,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
d as DialogActions,
|
|
24
|
+
J as DialogActivity,
|
|
25
|
+
B as DialogActivityLog,
|
|
26
|
+
w as DialogAttachments,
|
|
28
27
|
g as DialogBody,
|
|
29
28
|
c as DialogByline,
|
|
30
29
|
i as DialogHeader,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
m as DialogList,
|
|
30
|
+
b as DialogHeading,
|
|
31
|
+
C as DialogHistory,
|
|
32
|
+
l as DialogList,
|
|
35
33
|
f as DialogListGroup,
|
|
36
34
|
D as DialogListItem,
|
|
37
35
|
s as DialogMetadata,
|
|
38
36
|
A as DialogSection,
|
|
39
37
|
h as DialogSeenBy,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
E as DialogSelect,
|
|
39
|
+
I as DialogStatus,
|
|
40
|
+
M as DialogStatusEnum,
|
|
43
41
|
k as DialogTouchedBy,
|
|
44
|
-
|
|
42
|
+
N as SeenByLog
|
|
45
43
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { c as p } from "../../index-L8X2o7IH.js";
|
|
3
|
-
import '../../assets/ProgressIcon.css';const i = "
|
|
3
|
+
import '../../assets/ProgressIcon.css';const i = "_progress_1usqp_1", g = "_complete_1usqp_25", c = {
|
|
4
4
|
progress: i,
|
|
5
5
|
complete: g
|
|
6
|
-
}, C = ({ value: e = 0, total: s = 100, className:
|
|
6
|
+
}, C = ({ value: e = 0, total: s = 100, className: l }) => {
|
|
7
7
|
const r = Math.round(e / s * 100);
|
|
8
8
|
if (e === s)
|
|
9
9
|
return /* @__PURE__ */ o(
|
|
@@ -14,7 +14,7 @@ import '../../assets/ProgressIcon.css';const i = "_progress_e618l_1", g = "_comp
|
|
|
14
14
|
viewBox: "0 0 16 16",
|
|
15
15
|
fill: "none",
|
|
16
16
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
-
className:
|
|
17
|
+
className: c.complete,
|
|
18
18
|
children: [
|
|
19
19
|
/* @__PURE__ */ o("title", { children: [
|
|
20
20
|
"Progress ",
|
|
@@ -37,7 +37,7 @@ import '../../assets/ProgressIcon.css';const i = "_progress_e618l_1", g = "_comp
|
|
|
37
37
|
const n = {
|
|
38
38
|
"--progress": `${r}%`
|
|
39
39
|
};
|
|
40
|
-
return /* @__PURE__ */ t("div", { className: p(
|
|
40
|
+
return /* @__PURE__ */ t("div", { className: p(c.progress, l), style: n, "data-value": `${r}%` });
|
|
41
41
|
};
|
|
42
42
|
export {
|
|
43
43
|
C as ProgressIcon
|
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
import { jsx as e, jsxs as o, Fragment as
|
|
1
|
+
import { jsx as e, jsxs as o, Fragment as m } from "react/jsx-runtime";
|
|
2
2
|
import { Skeleton as c } from "../Skeleton/Skeleton.js";
|
|
3
|
-
import '../../assets/ListItemLabel.css';const
|
|
4
|
-
label:
|
|
5
|
-
title:
|
|
6
|
-
description:
|
|
7
|
-
},
|
|
8
|
-
|
|
3
|
+
import '../../assets/ListItemLabel.css';const d = "_label_fiqmy_3", _ = "_title_fiqmy_43", p = "_description_fiqmy_58", l = {
|
|
4
|
+
label: d,
|
|
5
|
+
title: _,
|
|
6
|
+
description: p
|
|
7
|
+
}, f = ({
|
|
8
|
+
loading: s = !1,
|
|
9
|
+
size: t = "sm",
|
|
10
|
+
title: n,
|
|
11
|
+
weight: r = "bold",
|
|
12
|
+
description: i,
|
|
13
|
+
children: a
|
|
14
|
+
}) => /* @__PURE__ */ e("span", { className: l.label, "data-size": t, children: a || /* @__PURE__ */ o(m, { children: [
|
|
15
|
+
/* @__PURE__ */ e("h2", { className: l.title, "data-size": t, "data-weight": r, children: /* @__PURE__ */ e(c, { loading: s, children: n }) }),
|
|
9
16
|
" ",
|
|
10
|
-
|
|
17
|
+
i && /* @__PURE__ */ e("p", { className: l.description, "data-size": t, children: /* @__PURE__ */ e(c, { loading: s, children: i }) })
|
|
11
18
|
] }) });
|
|
12
19
|
export {
|
|
13
|
-
|
|
20
|
+
f as ListItemLabel
|
|
14
21
|
};
|
|
@@ -5,7 +5,7 @@ import "../RootProvider/RootProvider.js";
|
|
|
5
5
|
import "../Search/AutocompleteBase.js";
|
|
6
6
|
import "../Snackbar/useSnackbar.js";
|
|
7
7
|
import { Section as i } from "../Page/Section.js";
|
|
8
|
-
const
|
|
8
|
+
const l = ({ spacing: o = 2, children: r }) => /* @__PURE__ */ t(i, { as: "ul", spacing: o, children: r });
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
l as Timeline
|
|
11
11
|
};
|