@altinn/altinn-components 0.30.2 → 0.31.0
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/Badge.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/DialogListItem.css +1 -1
- package/dist/assets/DrawerBase.css +1 -1
- package/dist/assets/DrawerOrDropdown.css +1 -0
- package/dist/assets/DropdownBase.css +1 -1
- package/dist/assets/ListItemHeader.css +1 -1
- package/dist/assets/MenuItemBase.css +1 -1
- package/dist/assets/SeenByLog.css +1 -1
- package/dist/assets/SeenByLogButton.css +1 -0
- package/dist/assets/Transmission.css +1 -0
- package/dist/components/Account/AccountList.js +6 -6
- package/dist/components/Account/AccountListItem.js +1 -1
- package/dist/components/Account/AccountListItemControls.js +1 -1
- package/dist/components/Badge/Badge.js +12 -11
- package/dist/components/Bookmarks/BookmarksListItem.js +1 -1
- package/dist/components/Bookmarks/BookmarksSection.js +1 -1
- package/dist/components/Button/Button.js +42 -41
- package/dist/components/Dialog/DialogActivity.js +6 -6
- package/dist/components/Dialog/DialogBody.js +12 -12
- package/dist/components/Dialog/DialogByline.js +1 -1
- package/dist/components/Dialog/DialogContact.js +11 -4
- package/dist/components/Dialog/DialogHeader.js +32 -8
- package/dist/components/Dialog/DialogHistory.js +22 -21
- package/dist/components/Dialog/DialogHistoryItem.js +6 -39
- package/dist/components/Dialog/DialogHistorySegment.js +11 -67
- package/dist/components/Dialog/DialogListGroup.js +4 -4
- package/dist/components/Dialog/DialogListItem.js +123 -105
- package/dist/components/Dialog/DialogMetadata.js +92 -70
- package/dist/components/Dialog/DialogSeenBy.js +36 -19
- package/dist/components/Dialog/SeenByLog.js +21 -23
- package/dist/components/Dialog/SeenByLogButton.js +30 -0
- package/dist/components/Dialog/index.js +28 -30
- package/dist/components/Dropdown/DrawerBase.js +15 -17
- package/dist/components/Dropdown/DrawerOrDropdown.js +20 -19
- package/dist/components/Dropdown/DropdownBase.js +1 -1
- package/dist/components/GlobalMenu/GlobalMenu.js +44 -43
- package/dist/components/GlobalMenu/GlobalMenuBase.js +7 -7
- package/dist/components/Header/Header.js +26 -26
- package/dist/components/List/List.js +1 -1
- package/dist/components/List/ListItemHeader.js +56 -56
- package/dist/components/Menu/MenuItemBase.js +15 -15
- package/dist/components/Menu/MenuOption.js +11 -12
- package/dist/components/Search/SearchItem.js +2 -2
- package/dist/components/Searchbar/AutocompleteItem.js +1 -1
- package/dist/components/Searchbar/SuggestListItem.js +1 -1
- package/dist/components/Settings/SettingsItem.js +7 -7
- package/dist/components/Settings/SettingsList.js +1 -1
- package/dist/components/Transmission/Transmission.js +53 -47
- package/dist/components/Transmission/TransmissionList.js +2 -2
- package/dist/components/Transmission/TransmissionType.js +28 -0
- package/dist/components/Transmission/index.js +5 -2
- package/dist/components/index.js +351 -350
- package/dist/index.js +357 -356
- package/dist/types/lib/components/Badge/Badge.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogContact.d.ts +6 -3
- package/dist/types/lib/components/Dialog/DialogHeader.d.ts +13 -3
- package/dist/types/lib/components/Dialog/DialogHeader.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogHistory.d.ts +2 -1
- package/dist/types/lib/components/Dialog/DialogHistory.stories.d.ts +3 -7
- package/dist/types/lib/components/Dialog/DialogHistoryItem.d.ts +4 -7
- package/dist/types/lib/components/Dialog/DialogHistorySegment.d.ts +7 -8
- package/dist/types/lib/components/Dialog/DialogListItem.d.ts +15 -31
- package/dist/types/lib/components/Dialog/DialogListItem.stories.d.ts +252 -23
- package/dist/types/lib/components/Dialog/DialogMetadata.d.ts +13 -7
- package/dist/types/lib/components/Dialog/DialogMetadata.stories.d.ts +2 -1
- package/dist/types/lib/components/Dialog/SeenByLogButton.d.ts +13 -0
- package/dist/types/lib/components/Dialog/index.d.ts +1 -2
- package/dist/types/lib/components/Dropdown/DrawerBase.d.ts +1 -3
- package/dist/types/lib/components/Forms/Radio.stories.d.ts +1 -0
- package/dist/types/lib/components/GlobalMenu/GlobalMenu.d.ts +2 -1
- package/dist/types/lib/components/GlobalMenu/GlobalMenu.stories.d.ts +2 -1
- package/dist/types/lib/components/GlobalMenu/GlobalMenuBase.d.ts +3 -3
- package/dist/types/lib/components/Transmission/Transmission.d.ts +8 -5
- package/dist/types/lib/components/Transmission/Transmission.stories.d.ts +5 -3
- package/dist/types/lib/components/Transmission/TransmissionList.stories.d.ts +16 -0
- package/dist/types/lib/components/Transmission/TransmissionType.d.ts +22 -0
- package/dist/types/lib/components/Transmission/index.d.ts +1 -0
- package/dist/types/lib/stories/Dialog/Dialog.stories.d.ts +17 -0
- package/dist/types/lib/stories/Inbox.stories.d.ts +10 -11
- package/package.json +2 -2
- package/dist/Eye-BuhFHkaK.js +0 -25
- package/dist/assets/DialogHeading.css +0 -1
- package/dist/components/Dialog/DialogHeading.js +0 -18
- package/dist/components/Dialog/DialogTouchedBy.js +0 -8
- package/dist/types/lib/components/Dialog/DialogHeading.d.ts +0 -19
- package/dist/types/lib/components/Dialog/DialogTouchedBy.d.ts +0 -11
- package/dist/types/lib/components/Dialog/DialogTouchedBy.stories.d.ts +0 -15
package/dist/assets/Badge.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._badge_b4vo7_1{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex:0 0 auto;max-height:min-content;--dsc-badge-background: var(--ds-color-base-default);--dsc-badge-color: var(--ds-color-base-contrast-default);background-color:var(--dsc-badge-background);color:var(--dsc-badge-color)}._badge_b4vo7_1[data-size=xs]{width:.75rem;height:.75rem;padding:0;border-radius:1em}._badge_b4vo7_1[data-size=xs] ._label_b4vo7_22{color:transparent;width:100%;height:100%}._badge_b4vo7_1[data-size=sm]{font-weight:500;font-size:.75rem;line-height:1;padding:.5em;min-width:2em;border-radius:2em}._badge_b4vo7_1[data-variant=subtle]{--dsc-badge-background: var(--ds-color-surface-tinted);--dsc-badge-color: var(--ds-color-text-default)}._badge_b4vo7_1[data-variant=tinted]{--dsc-badge-background: var(--ds-color-surface-active);--dsc-badge-color: var(--ds-color-text-default)}._badge_b4vo7_1[data-variant=base]{--dsc-badge-background: var(--ds-color-base-default);--dsc-badge-color: var(--ds-color-base-contrast-default)}._badge_b4vo7_1[data-variant=text],._badge_b4vo7_1[data-variant=text][data-size=xs],._badge_b4vo7_1[data-variant=text][data-size=sm]{--dsc-badge-background: "transparent";--dsc-badge-color: var(--ds-color-text-subtle);font-size:.875rem;font-weight:400;padding:.5em 0}
|
package/dist/assets/Button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._button_o1gnh_1{display:inline-flex;align-items:center;column-gap:.25em;padding:.625em}._button_o1gnh_1[data-reverse=true]{flex-direction:row-reverse}._button_o1gnh_1[data-variant=link]{padding:0;border:0}._button_o1gnh_1[data-variant=link]:hover ._label_o1gnh_19{text-decoration:underline}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._border_1ij7d_1{pointer-events:none;border-left:.25rem solid;border-color:var(--dsc-border-color);display:flex;flex-direction:column;margin-top:.25em;margin-bottom:.25em;--dsc-item-my: 0;--dsc-border-color: var(--ds-color-neutral-surface-tinted);--dsc-title-weight: 400;--dsc-title-font-size: 1rem;--dsc-title-line-height: 1.25;--dsc-summary-font-size: .875rem}._border_1ij7d_1[data-unread=true]{--dsc-border-color: var(--ds-color-surface-active);--dsc-title-weight: 600}._border_1ij7d_1[data-trashed=true] ._title_1ij7d_23{text-decoration:line-through}._border_1ij7d_1[data-size=xs],._border_1ij7d_1[data-size=sm]{width:100%;flex-direction:row;align-items:center;padding-left:.75rem}._border_1ij7d_1[data-size=md]{padding-left:.75rem;row-gap:.5rem}._border_1ij7d_1[data-size=lg]{--dsc-title-font-size: 1.25rem;--dsc-summary-font-size: 1rem;padding-left:.875rem;row-gap:.875rem}._border_1ij7d_1[data-size=xl]{--dsc-title-font-size: 1.25rem;--dsc-summary-font-size: 1rem;padding-left:1rem;row-gap:1rem}._controls_1ij7d_54{position:absolute;top:0;right:0;margin:.25em}._header_1ij7d_61{position:relative;display:flex;flex-direction:column;row-gap:.25rem}._header_1ij7d_61[data-size=xs],._header_1ij7d_61[data-size=sm]{display:flex;flex-direction:row}._summary_1ij7d_74{font-size:var(--dsc-summary-font-size);font-weight:400;line-height:1.375;color:var(--ds-color-neutral-text-subtle);display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;margin:0}._footer_1ij7d_88{width:100%}._seenBy_1ij7d_92{position:absolute;right:0;bottom:0;margin-right:-.5rem}._heading_1ij7d_99{padding-right:1.25rem;display:inline-flex;align-items:center;column-gap:.5em}._title_1ij7d_23{font-size:var(--dsc-title-font-size);font-weight:var(--dsc-title-font-weight);line-height:var(--dsc-title-line-height);margin:0}._title_1ij7d_23[data-size=md],._title_1ij7d_23[data-size=lg],._title_1ij7d_23[data-size=xl]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._drawer_tvpob_1{display:none}._drawer_tvpob_1[data-variant=default]{background-color:var(--ds-color-background-default)}._drawer_tvpob_1[data-expanded=true]{display:block;width:100%;z-index:2}._drawer_tvpob_1[data-placement=bottom]{position:fixed;top:5.5rem;bottom:0;left:0;right:0}@media (max-width: 1023px){._drawer_tvpob_1[data-expanded=true][data-layout=desktop]{display:none}}@media (min-width: 1024px){._drawer_tvpob_1[data-expanded=true][data-layout=mobile]{display:none}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._drawerOrDropdown_ijmwc_1{background-color:var(--ds-color-background-default);display:none}._drawerOrDropdown_ijmwc_1[data-expanded=true]{position:fixed;top:5.5rem;right:0;bottom:0;left:0;display:block;z-index:2}@media (min-width: 1024px){._header_ijmwc_18,._footer_ijmwc_19{display:none}._drawerOrDropdown_ijmwc_1[data-expanded=true]{position:absolute;top:auto;right:auto;bottom:auto;left:0;min-width:16rem;max-width:24rem;margin-top:.5rem;border-radius:.375rem;overflow:hidden}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._dropdown_1ixqr_1{display:none;background-color:var(--ds-color-background-default)}._dropdown_1ixqr_1[data-expanded=true]{display:block;position:absolute;z-index:9999}._dropdown_1ixqr_1[data-placement=left]{left:0}._dropdown_1ixqr_1[data-placement=right]{right:0}._dropdown_1ixqr_1[data-padding=true]{padding:0 .5rem}._dropdown_1ixqr_1{min-width:16rem;max-width:24rem;margin-top:.5rem;border-radius:.375rem;overflow:hidden}@media (max-width: 1023px){._dropdown_1ixqr_1[data-expanded=true][data-layout=desktop]{display:none}}@media (min-width: 1024px){._dropdown_1ixqr_1[data-expanded=true][data-layout=mobile]{display:none}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._header_b93u8_1{--dsc-item-spacing: .5em;position:relative;width:100%;min-height:var(--dsc-item-height);display:flex;align-items:center;justify-content:space-between;background:var(--dsc-item-background);column-gap:var(--dsc-item-spacing);padding-right:var(--dsc-item-px);padding-left:var(--dsc-item-px)}._header_b93u8_1[data-interactive=true]{cursor:pointer}._header_b93u8_1[data-interactive=true]:hover{background:var(--dsc-item-background--hover)}._header_b93u8_1[data-interactive=true]:hover ._label_b93u8_27 h2{text-decoration:underline}._header_b93u8_1[data-has-active-child=true]{background-color:var(--ds-color-background-tinted)}._linkIcon_b93u8_35{flex-shrink:0;min-width:2em;min-height:2em;display:flex;align-items:center;justify-content:center;pointer-events:none}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._item_3iu2g_1{font:inherit;color:inherit;padding:0;border:0;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;position:relative;width:100%;display:flex;align-items:center;column-gap:.25rem;margin:.5rem 0;border-radius:2px}._item_3iu2g_1[aria-disabled=true]{opacity:.5;pointer-events:none}._item_3iu2g_1[data-size=md]{min-height:56px}._item_3iu2g_1[data-size=md]{min-height:44px}._item_3iu2g_1[data-size=sm]{min-height:40px}._content_3iu2g_45{display:flex;width:100%;align-items:center;column-gap:6px;padding:6px}._item_3iu2g_1,._item_3iu2g_1[data-theme]{background-color:transparent}._item_3iu2g_1{pointer-events:none}._item_3iu2g_1[data-interactive=true]{pointer-events:all}[data-theme=subtle] ._item_3iu2g_1:hover{background-color:var(--ds-color-surface-hover)}[data-theme=subtle] ._item_3iu2g_1:active{background-color:var(--ds-color-surface-active)}[data-theme=subtle] ._item_3iu2g_1[data-selected=true]{background-color:var(--ds-color-background-default)}[data-theme=default] ._item_3iu2g_1:hover{background-color:var(--ds-color-surface-hover)}[data-theme=default] ._item_3iu2g_1:active{background-color:var(--ds-color-surface-active)}[data-theme=default] ._item_3iu2g_1[data-selected=true]{background-color:var(--ds-color-background-tinted)}._content_3iu2g_45{display:flex;width:100%;align-items:center;column-gap:.5em}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._button_1cnrr_1{display:flex;column-gap:.25em;border:0}._icon_1cnrr_7{font-size:1.25rem}._button_1cnrr_1:hover ._label_1cnrr_11{text-decoration:underline}._label_1cnrr_11{font-weight:400}._list_1cnrr_19{display:flex;flex-direction:column;column-gap:.5rem}._item_1cnrr_25{padding-top:.5rem;border-top:1px dotted;border-color:var(--ds-color-border-subtle);display:flex;column-gap:.5rem}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._button_d8sl3_1{display:inline-flex;align-items:center;justify-content:start;column-gap:.25em;border:0;min-width:0}._icon_d8sl3_10{font-size:1.25rem}._button_d8sl3_1:hover ._label_d8sl3_14{text-decoration:underline}._label_d8sl3_14{font-weight:400}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._title_cy7ua_1{display:flex;align-items:center;column-gap:.5em}._title_cy7ua_1 h2{display:inline;font-weight:inherit;font-size:inherit;line-height:inherit;margin:0}
|
|
@@ -3,22 +3,22 @@ import { Fragment as g, createElement as l } from "react";
|
|
|
3
3
|
import "../../index-L8X2o7IH.js";
|
|
4
4
|
import { AccountListItem as d } from "./AccountListItem.js";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
|
-
import { List as f } from "../List/List.js";
|
|
7
6
|
import { Typography as a } from "../Typography/Typography.js";
|
|
8
|
-
import { Heading as
|
|
7
|
+
import { Heading as f } from "../Typography/Heading.js";
|
|
9
8
|
import "../Searchbar/AutocompleteBase.js";
|
|
9
|
+
import { List as m } from "../List/List.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
11
|
import { Section as h } from "../Page/Section.js";
|
|
12
12
|
const F = ({ items: e, groups: i }) => !e || e.length === 0 ? /* @__PURE__ */ p(h, { children: [
|
|
13
|
-
/* @__PURE__ */ t(
|
|
13
|
+
/* @__PURE__ */ t(f, { size: "lg", children: "Ingen treff" }),
|
|
14
14
|
/* @__PURE__ */ t(a, { children: "Ingen treff på søket ditt." })
|
|
15
15
|
] }) : i ? /* @__PURE__ */ t(h, { spacing: 6, children: Object.entries(i).map(([r, s]) => {
|
|
16
16
|
const { title: o } = s, c = e.filter((n) => n.groupId === r && !n.hidden);
|
|
17
17
|
return c.length === 0 ? null : /* @__PURE__ */ p(g, { children: [
|
|
18
|
-
o && /* @__PURE__ */ t(
|
|
19
|
-
/* @__PURE__ */ t(
|
|
18
|
+
o && /* @__PURE__ */ t(f, { size: "lg", children: o }),
|
|
19
|
+
/* @__PURE__ */ t(m, { children: c.map((n) => /* @__PURE__ */ l(d, { ...n, key: n.id })) })
|
|
20
20
|
] }, r);
|
|
21
|
-
}) }) : /* @__PURE__ */ t(
|
|
21
|
+
}) }) : /* @__PURE__ */ t(m, { children: e.filter((r) => !(r != null && r.hidden)).map((r) => /* @__PURE__ */ l(d, { ...r, key: r.id })) });
|
|
22
22
|
export {
|
|
23
23
|
F as AccountList
|
|
24
24
|
};
|
|
@@ -2,8 +2,8 @@ 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 j } from "../List/ListItem.js";
|
|
6
5
|
import "../Searchbar/AutocompleteBase.js";
|
|
6
|
+
import { ListItem as j } from "../List/ListItem.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
8
|
import { AccountListItemControls as k } from "./AccountListItemControls.js";
|
|
9
9
|
const D = ({
|
|
@@ -6,9 +6,9 @@ import { forwardRef as m, isValidElement as y } from "react";
|
|
|
6
6
|
import { Badge as O } from "../Badge/Badge.js";
|
|
7
7
|
import { IconButton as w } from "../Button/IconButton.js";
|
|
8
8
|
import { ContextMenu as b } from "../ContextMenu/ContextMenu.js";
|
|
9
|
-
import { ListItemControls as v } from "../List/ListItemControls.js";
|
|
10
9
|
import "../RootProvider/RootProvider.js";
|
|
11
10
|
import "../Searchbar/AutocompleteBase.js";
|
|
11
|
+
import { ListItemControls as v } from "../List/ListItemControls.js";
|
|
12
12
|
import "../Snackbar/useSnackbar.js";
|
|
13
13
|
import { u as d } from "../../useId-BVFxCjkq.js";
|
|
14
14
|
var h = function(t, n) {
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c
|
|
3
|
-
import '../../assets/Badge.css';const
|
|
4
|
-
badge:
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import '../../assets/Badge.css';const n = "_badge_b4vo7_1", m = "_label_b4vo7_22", s = {
|
|
4
|
+
badge: n,
|
|
5
5
|
label: m
|
|
6
|
-
}, g = ({ label: t, color:
|
|
6
|
+
}, g = ({ label: t, color: l, variant: d = "subtle", theme: o, size: a = "sm", className: r, children: b }) => /* @__PURE__ */ e(
|
|
7
7
|
"span",
|
|
8
8
|
{
|
|
9
|
-
className:
|
|
10
|
-
"data-color":
|
|
11
|
-
"data-variant":
|
|
12
|
-
"data-theme":
|
|
13
|
-
"data-size":
|
|
14
|
-
|
|
9
|
+
className: c(s.badge, r),
|
|
10
|
+
"data-color": l,
|
|
11
|
+
"data-variant": d,
|
|
12
|
+
"data-theme": o,
|
|
13
|
+
"data-size": a,
|
|
14
|
+
...a === "xs" && { "aria-hidden": !0 },
|
|
15
|
+
children: /* @__PURE__ */ e("span", { className: s.label, children: t || b })
|
|
15
16
|
}
|
|
16
17
|
);
|
|
17
18
|
export {
|
|
@@ -2,8 +2,8 @@ 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 e } from "../List/ListItem.js";
|
|
6
5
|
import "../Searchbar/AutocompleteBase.js";
|
|
6
|
+
import { ListItem as e } from "../List/ListItem.js";
|
|
7
7
|
import { QueryLabel as s } from "../Searchbar/QueryLabel.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
const c = ({ loading: r, title: m, ariaLabel: t, params: p, ...i }) => /* @__PURE__ */ o(
|
|
@@ -4,10 +4,10 @@ import "../../index-L8X2o7IH.js";
|
|
|
4
4
|
import { BookmarksListItem as h } from "./BookmarksListItem.js";
|
|
5
5
|
import { EditableBookmark as k } from "./EditableBookmark.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { List as p } from "../List/List.js";
|
|
8
7
|
import { Typography as l } from "../Typography/Typography.js";
|
|
9
8
|
import { Heading as x } from "../Typography/Heading.js";
|
|
10
9
|
import "../Searchbar/AutocompleteBase.js";
|
|
10
|
+
import { List as p } from "../List/List.js";
|
|
11
11
|
import "../Snackbar/useSnackbar.js";
|
|
12
12
|
import { Section as z } from "../Page/Section.js";
|
|
13
13
|
const g = ({
|
|
@@ -1,60 +1,61 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { c
|
|
1
|
+
import { jsx as t, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { ButtonBase as
|
|
5
|
-
import { ButtonLabel as
|
|
6
|
-
import { ButtonIcon as
|
|
4
|
+
import { ButtonBase as f } from "./ButtonBase.js";
|
|
5
|
+
import { ButtonLabel as _ } from "./ButtonLabel.js";
|
|
6
|
+
import { ButtonIcon as g } from "./ButtonIcon.js";
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
8
|
import "../Searchbar/AutocompleteBase.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import '../../assets/Button.css';const y = "
|
|
11
|
-
button:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
import '../../assets/Button.css';const j = "_button_o1gnh_1", y = "_label_o1gnh_19", r = {
|
|
11
|
+
button: j,
|
|
12
|
+
label: y
|
|
13
|
+
}, D = ({
|
|
14
|
+
variant: n = "solid",
|
|
15
|
+
color: s,
|
|
16
|
+
size: m,
|
|
17
|
+
selected: i = !1,
|
|
17
18
|
icon: u,
|
|
18
|
-
iconSize:
|
|
19
|
-
href:
|
|
20
|
-
label:
|
|
19
|
+
iconSize: d,
|
|
20
|
+
href: e,
|
|
21
|
+
label: a,
|
|
21
22
|
labelSize: o,
|
|
22
|
-
children:
|
|
23
|
-
className:
|
|
24
|
-
loading:
|
|
23
|
+
children: l,
|
|
24
|
+
className: p,
|
|
25
|
+
loading: B,
|
|
25
26
|
ariaLabel: h,
|
|
26
|
-
...
|
|
27
|
-
}) =>
|
|
28
|
-
|
|
27
|
+
...b
|
|
28
|
+
}) => B ? /* @__PURE__ */ t(
|
|
29
|
+
f,
|
|
29
30
|
{
|
|
30
|
-
variant:
|
|
31
|
+
variant: n,
|
|
31
32
|
"aria-busy": !0,
|
|
32
|
-
color:
|
|
33
|
-
size:
|
|
34
|
-
selected:
|
|
35
|
-
href:
|
|
36
|
-
className:
|
|
37
|
-
...
|
|
33
|
+
color: s,
|
|
34
|
+
size: m,
|
|
35
|
+
selected: i,
|
|
36
|
+
href: e,
|
|
37
|
+
className: c(r.button, p),
|
|
38
|
+
...b,
|
|
38
39
|
disabled: !0,
|
|
39
|
-
children: /* @__PURE__ */ t(
|
|
40
|
+
children: /* @__PURE__ */ t(_, { size: o, children: l || a })
|
|
40
41
|
}
|
|
41
|
-
) : /* @__PURE__ */
|
|
42
|
-
|
|
42
|
+
) : /* @__PURE__ */ x(
|
|
43
|
+
f,
|
|
43
44
|
{
|
|
44
|
-
variant:
|
|
45
|
-
color:
|
|
46
|
-
size:
|
|
45
|
+
variant: n,
|
|
46
|
+
color: s,
|
|
47
|
+
size: m,
|
|
47
48
|
ariaLabel: h,
|
|
48
|
-
selected:
|
|
49
|
-
href:
|
|
50
|
-
className:
|
|
51
|
-
...
|
|
49
|
+
selected: i,
|
|
50
|
+
href: e,
|
|
51
|
+
className: c(r.button, p),
|
|
52
|
+
...b,
|
|
52
53
|
children: [
|
|
53
|
-
u && /* @__PURE__ */ t(
|
|
54
|
-
/* @__PURE__ */ t(
|
|
54
|
+
u && /* @__PURE__ */ t(g, { icon: u, size: d || o }),
|
|
55
|
+
/* @__PURE__ */ t(_, { className: r.label, size: o, children: l || a })
|
|
55
56
|
]
|
|
56
57
|
}
|
|
57
58
|
);
|
|
58
59
|
export {
|
|
59
|
-
|
|
60
|
+
D as Button
|
|
60
61
|
};
|
|
@@ -4,11 +4,11 @@ import "react";
|
|
|
4
4
|
import { Byline as e } from "../Byline/Byline.js";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
6
|
import { TimelineBase as h } from "../Timeline/TimelineBase.js";
|
|
7
|
-
import {
|
|
8
|
-
import { Typography as c } from "../Typography/Typography.js";
|
|
7
|
+
import { Typography as g } from "../Typography/Typography.js";
|
|
9
8
|
import "../Searchbar/AutocompleteBase.js";
|
|
10
9
|
import "../Snackbar/useSnackbar.js";
|
|
11
|
-
import { Section as
|
|
10
|
+
import { Section as c } from "../Page/Section.js";
|
|
11
|
+
import { TransmissionList as x } from "../Transmission/TransmissionList.js";
|
|
12
12
|
import { S } from "../../CircleFill-BkDF4Wm0.js";
|
|
13
13
|
const y = ({
|
|
14
14
|
icon: p = S,
|
|
@@ -19,13 +19,13 @@ const y = ({
|
|
|
19
19
|
createdAtLabel: o,
|
|
20
20
|
description: r,
|
|
21
21
|
transmissions: t
|
|
22
|
-
}) => /* @__PURE__ */ m(h, { color: l, icon: s === "md" ? i : p, children: /* @__PURE__ */ n(
|
|
22
|
+
}) => /* @__PURE__ */ m(h, { color: l, icon: s === "md" ? i : p, children: /* @__PURE__ */ n(c, { style: { marginBottom: ".5em" }, children: [
|
|
23
23
|
o && /* @__PURE__ */ n(e, { datetime: f, children: [
|
|
24
24
|
/* @__PURE__ */ m("strong", { children: i == null ? void 0 : i.name }),
|
|
25
25
|
o
|
|
26
26
|
] }),
|
|
27
|
-
r && /* @__PURE__ */ m(
|
|
28
|
-
t && /* @__PURE__ */ m(
|
|
27
|
+
r && /* @__PURE__ */ m(g, { children: r }),
|
|
28
|
+
t && /* @__PURE__ */ m(x, { items: t })
|
|
29
29
|
] }) });
|
|
30
30
|
export {
|
|
31
31
|
y as DialogActivity
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as i, jsx as
|
|
1
|
+
import { jsxs as i, jsx as r, Fragment as h } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
@@ -6,34 +6,34 @@ import { Timeline as c } from "../Timeline/Timeline.js";
|
|
|
6
6
|
import { TimelineSection as d } from "../Timeline/TimelineSection.js";
|
|
7
7
|
import { TimelineHeader as f } from "../Timeline/TimelineHeader.js";
|
|
8
8
|
import { Typography as s } from "../Typography/Typography.js";
|
|
9
|
-
import { SeenByLog as
|
|
9
|
+
import { SeenByLog as y } from "./SeenByLog.js";
|
|
10
10
|
import "../Searchbar/AutocompleteBase.js";
|
|
11
11
|
import "../Snackbar/useSnackbar.js";
|
|
12
12
|
const H = ({
|
|
13
|
-
loading:
|
|
13
|
+
loading: m,
|
|
14
14
|
sender: t,
|
|
15
15
|
recipient: o,
|
|
16
16
|
recipientLabel: n,
|
|
17
17
|
updatedAt: p,
|
|
18
18
|
updatedAtLabel: l,
|
|
19
|
-
children:
|
|
19
|
+
children: a,
|
|
20
20
|
seenByLog: e
|
|
21
21
|
}) => /* @__PURE__ */ i(c, { children: [
|
|
22
|
-
/* @__PURE__ */ i(f, { loading:
|
|
23
|
-
/* @__PURE__ */
|
|
22
|
+
/* @__PURE__ */ i(f, { loading: m, icon: t, children: [
|
|
23
|
+
/* @__PURE__ */ r("strong", { children: t.name }),
|
|
24
24
|
n + " " + (o == null ? void 0 : o.name)
|
|
25
25
|
] }),
|
|
26
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ r(
|
|
27
27
|
d,
|
|
28
28
|
{
|
|
29
|
-
loading:
|
|
29
|
+
loading: m,
|
|
30
30
|
datetime: p,
|
|
31
31
|
byline: l,
|
|
32
32
|
spacing: 4,
|
|
33
|
-
color:
|
|
34
|
-
children: !
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
e && /* @__PURE__ */
|
|
33
|
+
color: m ? "neutral" : void 0,
|
|
34
|
+
children: !m && /* @__PURE__ */ i(h, { children: [
|
|
35
|
+
/* @__PURE__ */ r(s, { maxWidth: "60ch", style: { marginTop: "0.5em" }, children: a }),
|
|
36
|
+
e && /* @__PURE__ */ r(y, { ...e })
|
|
37
37
|
] })
|
|
38
38
|
}
|
|
39
39
|
)
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsxs as p, 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 { Typography as n } from "../Typography/Typography.js";
|
|
6
|
+
import { Heading as c } from "../Typography/Heading.js";
|
|
5
7
|
import "../Searchbar/AutocompleteBase.js";
|
|
6
8
|
import "../Snackbar/useSnackbar.js";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
+
import { Section as a } from "../Page/Section.js";
|
|
10
|
+
import { ContactButtons as s } from "../Page/ContactButtons.js";
|
|
11
|
+
const C = ({ id: t = "dialog-contact", title: r, children: i, items: m = [] }) => /* @__PURE__ */ p(a, { spacing: 4, id: t, children: [
|
|
12
|
+
r && /* @__PURE__ */ o(c, { size: "lg", children: r }),
|
|
13
|
+
/* @__PURE__ */ o(n, { children: i }),
|
|
14
|
+
/* @__PURE__ */ o(s, { items: m })
|
|
15
|
+
] });
|
|
9
16
|
export {
|
|
10
|
-
|
|
17
|
+
C as DialogContact
|
|
11
18
|
};
|
|
@@ -1,16 +1,40 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as f, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import { Heading as
|
|
6
|
-
import { DialogMetadata as
|
|
5
|
+
import { Heading as l } from "../Typography/Heading.js";
|
|
6
|
+
import { DialogMetadata as x } from "./DialogMetadata.js";
|
|
7
7
|
import "../Searchbar/AutocompleteBase.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
import { Section as
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
import { Section as g } from "../Page/Section.js";
|
|
10
|
+
const k = ({
|
|
11
|
+
loading: r,
|
|
12
|
+
title: p,
|
|
13
|
+
status: o,
|
|
14
|
+
draftsLabel: t,
|
|
15
|
+
sentCount: a,
|
|
16
|
+
receivedCount: n,
|
|
17
|
+
updatedAt: i,
|
|
18
|
+
updatedAtLabel: c,
|
|
19
|
+
dueAt: m,
|
|
20
|
+
dueAtLabel: s
|
|
21
|
+
}) => /* @__PURE__ */ f(g, { as: "header", spacing: 3, children: [
|
|
22
|
+
/* @__PURE__ */ e(l, { loading: r, size: "xl", children: p }),
|
|
23
|
+
(o || i || m) && /* @__PURE__ */ e(
|
|
24
|
+
x,
|
|
25
|
+
{
|
|
26
|
+
loading: r,
|
|
27
|
+
status: o,
|
|
28
|
+
draftsLabel: t,
|
|
29
|
+
sentCount: a,
|
|
30
|
+
receivedCount: n,
|
|
31
|
+
updatedAt: i,
|
|
32
|
+
updatedAtLabel: c,
|
|
33
|
+
dueAt: m,
|
|
34
|
+
dueAtLabel: s
|
|
35
|
+
}
|
|
36
|
+
)
|
|
13
37
|
] });
|
|
14
38
|
export {
|
|
15
|
-
|
|
39
|
+
k as DialogHeader
|
|
16
40
|
};
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { createElement as
|
|
2
|
+
import { jsxs as f, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { useState as m, createElement as u } from "react";
|
|
4
4
|
import "../../index-L8X2o7IH.js";
|
|
5
|
+
import { Button as h } from "../Button/Button.js";
|
|
5
6
|
import "../RootProvider/RootProvider.js";
|
|
6
|
-
import { DialogHistorySegment as
|
|
7
|
-
import { Timeline as
|
|
7
|
+
import { DialogHistorySegment as y } from "./DialogHistorySegment.js";
|
|
8
|
+
import { Timeline as x } from "../Timeline/Timeline.js";
|
|
8
9
|
import "../Searchbar/AutocompleteBase.js";
|
|
9
10
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
|
|
11
|
+
import { Section as E } from "../Page/Section.js";
|
|
12
|
+
const q = ({
|
|
11
13
|
items: o,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
)) }) : null;
|
|
14
|
+
maxItems: r,
|
|
15
|
+
expandLabel: l = "Expand history",
|
|
16
|
+
collapseLabel: i = "Collapse history"
|
|
17
|
+
}) => {
|
|
18
|
+
if (!(o != null && o.length))
|
|
19
|
+
return null;
|
|
20
|
+
const [n, p] = m(!1), c = () => {
|
|
21
|
+
p((t) => !t);
|
|
22
|
+
}, s = r ? o.slice(0, r) : o, a = n ? o : s, d = r && o.length > r;
|
|
23
|
+
return /* @__PURE__ */ f(E, { spacing: 4, children: [
|
|
24
|
+
/* @__PURE__ */ e(x, { children: a.map((t, g) => /* @__PURE__ */ u(y, { ...t, key: g })) }),
|
|
25
|
+
d && /* @__PURE__ */ e(h, { variant: "outline", onClick: c, children: n ? i : l })
|
|
26
|
+
] });
|
|
27
|
+
};
|
|
27
28
|
export {
|
|
28
|
-
|
|
29
|
+
q as DialogHistory
|
|
29
30
|
};
|
|
@@ -1,45 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import { jsx as n, jsxs as f } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
2
|
import "../../index-L8X2o7IH.js";
|
|
4
|
-
import
|
|
5
|
-
import { forwardRef as p } from "react";
|
|
3
|
+
import "react";
|
|
6
4
|
import "../RootProvider/RootProvider.js";
|
|
7
5
|
import "../Searchbar/AutocompleteBase.js";
|
|
8
6
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
import { Typography as d } from "../Typography/Typography.js";
|
|
13
|
-
import { List as u } from "../List/List.js";
|
|
14
|
-
import { u as g } from "../../useId-BVFxCjkq.js";
|
|
15
|
-
var v = function(r, i) {
|
|
16
|
-
var o = {};
|
|
17
|
-
for (var e in r) Object.prototype.hasOwnProperty.call(r, e) && i.indexOf(e) < 0 && (o[e] = r[e]);
|
|
18
|
-
if (r != null && typeof Object.getOwnPropertySymbols == "function")
|
|
19
|
-
for (var t = 0, e = Object.getOwnPropertySymbols(r); t < e.length; t++)
|
|
20
|
-
i.indexOf(e[t]) < 0 && Object.prototype.propertyIsEnumerable.call(r, e[t]) && (o[e[t]] = r[e[t]]);
|
|
21
|
-
return o;
|
|
22
|
-
};
|
|
23
|
-
const w = p((r, i) => {
|
|
24
|
-
var { title: o, titleId: e } = r, t = v(r, ["title", "titleId"]);
|
|
25
|
-
let l = g();
|
|
26
|
-
return l = o ? e || "title-" + l : void 0, m.createElement(
|
|
27
|
-
"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: i, "aria-labelledby": l }, t),
|
|
29
|
-
o ? m.createElement("title", { id: l }, o) : null,
|
|
30
|
-
m.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M13.672 3.825a.75.75 0 0 1 .791.085l7 5.5a.75.75 0 0 1 0 1.18l-7 5.5a.75.75 0 0 1-1.213-.59v-2.724a9.1 9.1 0 0 0-2.63.565c-2.284.87-3.759 2.562-4.671 4.077a12.4 12.4 0 0 0-.957 1.965 10 10 0 0 0-.263.792l-.001.007A.75.75 0 0 1 3.25 20c0-1.654.322-3.941 1.224-6.123.903-2.184 2.413-4.32 4.823-5.558 1.133-.581 2.445-.954 3.953-1.046V4.5a.75.75 0 0 1 .422-.675", clipRule: "evenodd" })
|
|
31
|
-
);
|
|
32
|
-
}), P = ({ variant: r, byline: i, datetime: o, children: e, link: t, ...l }) => {
|
|
33
|
-
switch (r) {
|
|
34
|
-
case "transmission":
|
|
35
|
-
return /* @__PURE__ */ f(a, { byline: i, datetime: o, spacing: 2, children: [
|
|
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
|
-
] });
|
|
39
|
-
default:
|
|
40
|
-
return /* @__PURE__ */ n(a, { byline: i, datetime: o, children: /* @__PURE__ */ n(d, { children: e }) });
|
|
41
|
-
}
|
|
42
|
-
};
|
|
7
|
+
import { Typography as f } from "../Typography/Typography.js";
|
|
8
|
+
import { TimelineActivity as p } from "../Timeline/TimelineActivity.js";
|
|
9
|
+
const x = ({ byline: o, datetime: i, children: t, summary: e, ...m }) => t ? /* @__PURE__ */ r(p, { byline: o, datetime: i, ...m, children: t }) : /* @__PURE__ */ r(p, { byline: o, datetime: i, ...m, children: /* @__PURE__ */ r(f, { children: e }) });
|
|
43
10
|
export {
|
|
44
|
-
|
|
11
|
+
x as DialogHistoryItem
|
|
45
12
|
};
|