@altinn/altinn-components 0.28.0 → 0.28.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/{Checkmark-RgzvRNxP.js → Checkmark-D17Nyv_u.js} +1 -1
- package/dist/{ChevronRight-DUaHaWi-.js → ChevronRight-BbelnTke.js} +1 -1
- package/dist/{ChevronUp-C09jxB5F.js → ChevronUp-DR4Lz2Jb.js} +1 -1
- package/dist/{CircleFill-IZdiBc_K.js → CircleFill-BkDF4Wm0.js} +1 -1
- package/dist/{DialogActivityLog-wsSwha93.js → DialogActivityLog-BoPREh7Y.js} +1 -1
- package/dist/{Eye-CMPIjkcy.js → Eye-BuhFHkaK.js} +1 -1
- package/dist/{FieldsetLegend-Dwb3U0vQ.js → FieldsetLegend-CiZWWPgY.js} +1 -1
- package/dist/{Label-DjSEhgyW.js → Label-9elsbqMH.js} +1 -1
- package/dist/{MagnifyingGlass-DWIcpwS4.js → MagnifyingGlass-3Ln1MufI.js} +1 -1
- package/dist/{Paragraph-CFjOkbXa.js → Paragraph-Bm-eoPYv.js} +1 -1
- package/dist/{XMark-Bv1I87Ev.js → XMark-DIqxCTTQ.js} +1 -1
- package/dist/components/AccessAreaList/AccessAreaListItem.js +13 -13
- package/dist/components/AccessPackageList/AccessPackageListItem.js +1 -1
- package/dist/components/Attachment/AttachmentLink.js +1 -1
- package/dist/components/Avatar/AvatarGroup.js +8 -8
- package/dist/components/Bookmarks/EditableBookmark.js +2 -2
- package/dist/components/ContextMenu/ContextMenu.js +15 -16
- package/dist/components/Dashboard/DashboardCard.js +2 -2
- package/dist/components/Dashboard/DashboardIcon.js +1 -1
- package/dist/components/Datepicker/DatepickerHeader.js +2 -2
- package/dist/components/Dialog/DialogActions.js +1 -1
- package/dist/components/Dialog/DialogActivity.js +1 -1
- package/dist/components/Dialog/DialogActivityLog.js +1 -1
- package/dist/components/Dialog/DialogBody.js +2 -2
- package/dist/components/Dialog/DialogByline.js +2 -2
- package/dist/components/Dialog/DialogHistoryItem.js +1 -1
- package/dist/components/Dialog/DialogHistorySegment.js +1 -1
- package/dist/components/Dialog/DialogListGroup.js +1 -1
- package/dist/components/Dialog/DialogListItem.js +54 -56
- package/dist/components/Dialog/DialogMetadata.js +2 -2
- package/dist/components/Dialog/DialogSeenBy.js +2 -2
- package/dist/components/Dialog/SeenByLog.js +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/Dropdown/DrawerHeader.js +1 -1
- package/dist/components/DsComponents/index.js +4 -4
- package/dist/components/Forms/Field.js +1 -1
- package/dist/components/Forms/Fieldset.js +2 -2
- package/dist/components/Forms/Label.js +1 -1
- package/dist/components/Forms/Legend.js +1 -1
- package/dist/components/Forms/Select.js +1 -1
- package/dist/components/GlobalMenu/AccountButton.js +15 -17
- package/dist/components/GlobalMenu/BackButton.js +1 -1
- package/dist/components/GlobalMenu/EndUserLabel.js +1 -1
- package/dist/components/GlobalMenu/GlobalMenu.js +14 -14
- package/dist/components/GlobalMenu/GlobalMenuBase.js +7 -9
- package/dist/components/Header/HeaderButton.js +2 -2
- package/dist/components/Header/HeaderLogo.js +10 -11
- package/dist/components/Header/LocaleButton.js +15 -16
- package/dist/components/Icon/IconOrAvatar.js +17 -17
- package/dist/components/LayoutAction/ActionHeader.js +1 -1
- package/dist/components/List/ListItemControls.js +6 -8
- package/dist/components/List/ListItemHeader.js +13 -13
- package/dist/components/List/ListItemIcon.js +1 -1
- package/dist/components/Menu/MenuInputField.js +23 -26
- package/dist/components/Menu/MenuItem.js +1 -1
- package/dist/components/Menu/MenuItemIcon.js +1 -1
- package/dist/components/Menu/MenuItemsVirtual.js +7 -7
- package/dist/components/Menu/MenuSearch.js +2 -2
- package/dist/components/Page/Breadcrumbs.js +1 -1
- package/dist/components/Page/PageDetails.js +1 -1
- package/dist/components/Page/PageNav.js +15 -16
- package/dist/components/Profile/AccountListItem.js +1 -1
- package/dist/components/Searchbar/SearchField.js +2 -2
- package/dist/components/Skeleton/Skeleton.js +12 -13
- package/dist/components/Snackbar/SnackbarItem.js +4 -4
- package/dist/components/Timeline/TimelineActivity.js +1 -1
- package/dist/components/Timeline/TimelineFooter.js +1 -1
- package/dist/components/Timeline/TimelineIcon.js +1 -1
- package/dist/components/Timeline/TimelineSegment.js +1 -1
- package/dist/components/Toolbar/Toolbar.js +25 -25
- package/dist/components/Toolbar/ToolbarButton.js +2 -2
- package/dist/components/Toolbar/ToolbarSearch.js +2 -2
- package/dist/components/index.js +5 -5
- package/dist/{index-Bq6w9CqA.js → index-CnWc2FNH.js} +6 -6
- package/dist/{index-DyDqjche.js → index-D-VWMqlv.js} +129 -123
- package/dist/{index-B7UjMwQm.js → index-D3Rt9ate.js} +17 -17
- package/dist/index-D8Pn8SCu.js +78 -0
- package/dist/index.js +5 -5
- package/dist/useId-BVFxCjkq.js +16 -0
- package/dist/useMergeRefs-DOnoWyUH.js +29 -0
- package/dist/usePagination-D247OF6_.js +3838 -0
- package/package.json +33 -33
- package/dist/floating-ui.react-DpzNAs2N.js +0 -2835
- package/dist/index-C8BS_2GY.js +0 -64
- package/dist/useId-CsCRkvK3.js +0 -16
- package/dist/usePagination-Cpl0NjJN.js +0 -1025
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import { forwardRef as a } from "react";
|
|
4
|
-
import { u as f } from "./useId-
|
|
4
|
+
import { u as f } from "./useId-BVFxCjkq.js";
|
|
5
5
|
var d = function(t, n) {
|
|
6
6
|
var r = {};
|
|
7
7
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import { forwardRef as a } from "react";
|
|
4
|
-
import { u as f } from "./useId-
|
|
4
|
+
import { u as f } from "./useId-BVFxCjkq.js";
|
|
5
5
|
var d = function(t, n) {
|
|
6
6
|
var l = {};
|
|
7
7
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (l[e] = t[e]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import { forwardRef as a } from "react";
|
|
4
|
-
import { u as f } from "./useId-
|
|
4
|
+
import { u as f } from "./useId-BVFxCjkq.js";
|
|
5
5
|
var d = function(t, n) {
|
|
6
6
|
var r = {};
|
|
7
7
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import { forwardRef as f } from "react";
|
|
4
|
-
import { u as a } from "./useId-
|
|
4
|
+
import { u as a } from "./useId-BVFxCjkq.js";
|
|
5
5
|
var d = function(t, n) {
|
|
6
6
|
var r = {};
|
|
7
7
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
@@ -7,7 +7,7 @@ import "./components/RootProvider/RootProvider.js";
|
|
|
7
7
|
import "./components/Searchbar/AutocompleteBase.js";
|
|
8
8
|
import "./components/Snackbar/useSnackbar.js";
|
|
9
9
|
import { MetaItem as c } from "./components/Metadata/MetaItem.js";
|
|
10
|
-
import { u as f } from "./useId-
|
|
10
|
+
import { u as f } from "./useId-BVFxCjkq.js";
|
|
11
11
|
var d = function(t, o) {
|
|
12
12
|
var r = {};
|
|
13
13
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && o.indexOf(e) < 0 && (r[e] = t[e]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as a from "react";
|
|
3
3
|
import { forwardRef as i } from "react";
|
|
4
|
-
import { u as c } from "./useId-
|
|
4
|
+
import { u as c } from "./useId-BVFxCjkq.js";
|
|
5
5
|
var f = function(t, n) {
|
|
6
6
|
var r = {};
|
|
7
7
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef as o } from "react";
|
|
4
|
-
import { L as i } from "./Label-
|
|
4
|
+
import { L as i } from "./Label-9elsbqMH.js";
|
|
5
5
|
const l = o(function(r, t) {
|
|
6
6
|
return e(i, { asChild: !0, children: e("legend", { ref: t, ...r }) });
|
|
7
7
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
-
import { S as s } from "./index-
|
|
3
|
+
import { S as s } from "./index-D8Pn8SCu.js";
|
|
4
4
|
import { c as l } from "./lite-1fxw3LjI.js";
|
|
5
5
|
import { forwardRef as n } from "react";
|
|
6
6
|
const u = n(function({ className: o, weight: e = "medium", asChild: t, ...r }, m) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import { forwardRef as a } from "react";
|
|
4
|
-
import { u as f } from "./useId-
|
|
4
|
+
import { u as f } from "./useId-BVFxCjkq.js";
|
|
5
5
|
var d = function(t, n) {
|
|
6
6
|
var r = {};
|
|
7
7
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as m } from "react/jsx-runtime";
|
|
3
|
-
import { S as n } from "./index-
|
|
3
|
+
import { S as n } from "./index-D8Pn8SCu.js";
|
|
4
4
|
import { c as s } from "./lite-1fxw3LjI.js";
|
|
5
5
|
import { forwardRef as e } from "react";
|
|
6
6
|
const g = e(function({ className: r, asChild: a, variant: o = "default", ...t }, p) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as a from "react";
|
|
3
3
|
import { forwardRef as i } from "react";
|
|
4
|
-
import { u as f } from "./useId-
|
|
4
|
+
import { u as f } from "./useId-BVFxCjkq.js";
|
|
5
5
|
var d = function(t, n) {
|
|
6
6
|
var l = {};
|
|
7
7
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (l[e] = t[e]);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
5
|
import "../Searchbar/AutocompleteBase.js";
|
|
6
6
|
import "../Snackbar/useSnackbar.js";
|
|
7
7
|
import { ListItem as b } from "../List/ListItem.js";
|
|
8
|
-
import '../../assets/AccessAreaListItem.css';const d = "_content_7hk0i_1",
|
|
8
|
+
import '../../assets/AccessAreaListItem.css';const d = "_content_7hk0i_1", h = {
|
|
9
9
|
content: d
|
|
10
10
|
}, k = ({
|
|
11
11
|
name: t,
|
|
@@ -13,13 +13,13 @@ import '../../assets/AccessAreaListItem.css';const d = "_content_7hk0i_1", f = {
|
|
|
13
13
|
iconUrl: r,
|
|
14
14
|
size: m = "md",
|
|
15
15
|
children: l,
|
|
16
|
-
expanded:
|
|
16
|
+
expanded: o = !1,
|
|
17
17
|
onClick: a,
|
|
18
|
-
badgeText:
|
|
19
|
-
colorTheme:
|
|
20
|
-
loading:
|
|
18
|
+
badgeText: e,
|
|
19
|
+
colorTheme: s,
|
|
20
|
+
loading: c,
|
|
21
21
|
...p
|
|
22
|
-
}) => /* @__PURE__ */
|
|
22
|
+
}) => /* @__PURE__ */ n(
|
|
23
23
|
b,
|
|
24
24
|
{
|
|
25
25
|
as: "button",
|
|
@@ -27,19 +27,19 @@ import '../../assets/AccessAreaListItem.css';const d = "_content_7hk0i_1", f = {
|
|
|
27
27
|
svgElement: i,
|
|
28
28
|
iconUrl: r,
|
|
29
29
|
theme: "subtle",
|
|
30
|
-
color:
|
|
30
|
+
color: s,
|
|
31
31
|
altText: ""
|
|
32
32
|
},
|
|
33
33
|
title: t,
|
|
34
34
|
ariaLabel: t,
|
|
35
35
|
size: m,
|
|
36
|
-
collapsible: !
|
|
37
|
-
expanded:
|
|
36
|
+
collapsible: !c,
|
|
37
|
+
expanded: o,
|
|
38
38
|
onClick: a,
|
|
39
|
-
badge:
|
|
40
|
-
loading:
|
|
39
|
+
badge: e ? { label: e, color: s } : void 0,
|
|
40
|
+
loading: c,
|
|
41
41
|
...p,
|
|
42
|
-
children:
|
|
42
|
+
children: o && /* @__PURE__ */ n("div", { className: h.content, children: l })
|
|
43
43
|
}
|
|
44
44
|
);
|
|
45
45
|
export {
|
|
@@ -7,7 +7,7 @@ import "../RootProvider/RootProvider.js";
|
|
|
7
7
|
import "../Searchbar/AutocompleteBase.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
import { ListItem as f } from "../List/ListItem.js";
|
|
10
|
-
import { u as c } from "../../useId-
|
|
10
|
+
import { u as c } from "../../useId-BVFxCjkq.js";
|
|
11
11
|
var d = function(t, o) {
|
|
12
12
|
var r = {};
|
|
13
13
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && o.indexOf(e) < 0 && (r[e] = t[e]);
|
|
@@ -7,7 +7,7 @@ import { forwardRef as f } from "react";
|
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
8
|
import "../Searchbar/AutocompleteBase.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import { u as d } from "../../useId-
|
|
10
|
+
import { u as d } from "../../useId-BVFxCjkq.js";
|
|
11
11
|
import '../../assets/AttachmentLink.css';var p = function(t, n) {
|
|
12
12
|
var l = {};
|
|
13
13
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (l[e] = t[e]);
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import { c
|
|
3
|
+
import { c } from "../../index-L8X2o7IH.js";
|
|
4
4
|
import { useMemo as f } from "react";
|
|
5
5
|
import { Avatar as h } from "./Avatar.js";
|
|
6
|
-
import '../../assets/AvatarGroup.css';const A = "_group_1ts6c_1", _ = "_item_1ts6c_10",
|
|
6
|
+
import '../../assets/AvatarGroup.css';const A = "_group_1ts6c_1", _ = "_item_1ts6c_10", s = {
|
|
7
7
|
group: A,
|
|
8
8
|
item: _
|
|
9
9
|
}, G = (e) => typeof e == "object" && e !== null && "items" in e, L = ({
|
|
10
10
|
items: e = [],
|
|
11
11
|
maxItemsCount: l = 4,
|
|
12
|
-
defaultType:
|
|
12
|
+
defaultType: n,
|
|
13
13
|
size: i,
|
|
14
|
-
className:
|
|
15
|
-
style:
|
|
14
|
+
className: m,
|
|
15
|
+
style: u
|
|
16
16
|
}) => {
|
|
17
17
|
const o = f(() => e.slice(0, l), [e, l]);
|
|
18
|
-
return e.length === 0 ? /* @__PURE__ */ r("div", { className:
|
|
18
|
+
return e.length === 0 ? /* @__PURE__ */ r("div", { className: s.avatarGroup }) : /* @__PURE__ */ r("ul", { className: c(s.group, m), "data-size": i, "data-count": o == null ? void 0 : o.length, style: u, children: o.map((t, p) => {
|
|
19
19
|
const g = p === l - 1, d = t.customLabel || g ? e.length.toString() : void 0;
|
|
20
|
-
return /* @__PURE__ */ r("li", { className: s
|
|
20
|
+
return /* @__PURE__ */ r("li", { className: c(s.item), children: /* @__PURE__ */ r(
|
|
21
21
|
h,
|
|
22
22
|
{
|
|
23
23
|
name: t.name,
|
|
24
24
|
customLabel: d,
|
|
25
25
|
imageUrl: t.imageUrl,
|
|
26
26
|
imageUrlAlt: t.imageUrlAlt,
|
|
27
|
-
type: (t == null ? void 0 : t.type) ||
|
|
27
|
+
type: (t == null ? void 0 : t.type) || n,
|
|
28
28
|
outline: !0
|
|
29
29
|
}
|
|
30
30
|
) }, t.name);
|
|
@@ -13,8 +13,8 @@ import "../Snackbar/useSnackbar.js";
|
|
|
13
13
|
import { Flex as S } from "../Page/Flex.js";
|
|
14
14
|
import { Section as k } from "../Page/Section.js";
|
|
15
15
|
import { TextField as z } from "../Forms/TextField.js";
|
|
16
|
-
import { S as E } from "../../XMark-
|
|
17
|
-
import { u as M } from "../../useId-
|
|
16
|
+
import { S as E } from "../../XMark-DIqxCTTQ.js";
|
|
17
|
+
import { u as M } from "../../useId-BVFxCjkq.js";
|
|
18
18
|
var P = function(t, i) {
|
|
19
19
|
var o = {};
|
|
20
20
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && i.indexOf(e) < 0 && (o[e] = t[e]);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as v, jsx as s } from "react/jsx-runtime";
|
|
3
|
-
import { c as
|
|
3
|
+
import { c as O } from "../../index-L8X2o7IH.js";
|
|
4
4
|
import * as a from "react";
|
|
5
|
-
import { forwardRef as
|
|
6
|
-
import { IconButton as
|
|
7
|
-
import { useClickOutside as
|
|
5
|
+
import { forwardRef as h, useRef as w, useMemo as y } from "react";
|
|
6
|
+
import { IconButton as I } from "../Button/IconButton.js";
|
|
7
|
+
import { useClickOutside as _ } from "../../hooks/useClickOutside.js";
|
|
8
8
|
import { DropdownBase as j } from "../Dropdown/DropdownBase.js";
|
|
9
9
|
import { MenuItems as C } from "../Menu/MenuItems.js";
|
|
10
10
|
import { useRootContext as R } from "../RootProvider/RootProvider.js";
|
|
11
11
|
import "../Searchbar/AutocompleteBase.js";
|
|
12
12
|
import "../Snackbar/useSnackbar.js";
|
|
13
|
-
import { u as E } from "../../useId-
|
|
13
|
+
import { u as E } from "../../useId-BVFxCjkq.js";
|
|
14
14
|
import '../../assets/ContextMenu.css';var M = function(e, l) {
|
|
15
15
|
var n = {};
|
|
16
16
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && l.indexOf(t) < 0 && (n[t] = e[t]);
|
|
@@ -19,7 +19,7 @@ import '../../assets/ContextMenu.css';var M = function(e, l) {
|
|
|
19
19
|
l.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (n[t[o]] = e[t[o]]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
const k =
|
|
22
|
+
const k = h((e, l) => {
|
|
23
23
|
var { title: n, titleId: t } = e, o = M(e, ["title", "titleId"]);
|
|
24
24
|
let r = E();
|
|
25
25
|
return r = n ? t || "title-" + r : void 0, a.createElement(
|
|
@@ -28,11 +28,10 @@ const k = O((e, l) => {
|
|
|
28
28
|
n ? a.createElement("title", { id: r }, n) : null,
|
|
29
29
|
a.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M6 10.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m4.5 1.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0m6 0a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0", clipRule: "evenodd" })
|
|
30
30
|
);
|
|
31
|
-
}), B = "_toggle_nol5i_1", P = "_button_nol5i_5",
|
|
31
|
+
}), B = "_toggle_nol5i_1", P = "_button_nol5i_5", f = {
|
|
32
32
|
toggle: B,
|
|
33
|
-
button: P
|
|
34
|
-
|
|
35
|
-
}, J = ({
|
|
33
|
+
button: P
|
|
34
|
+
}, G = ({
|
|
36
35
|
id: e = "context-menu",
|
|
37
36
|
placement: l = "right",
|
|
38
37
|
size: n = "sm",
|
|
@@ -40,18 +39,18 @@ const k = O((e, l) => {
|
|
|
40
39
|
className: o,
|
|
41
40
|
items: r
|
|
42
41
|
}) => {
|
|
43
|
-
const { currentId: p, toggleId: d, closeAll: c } = R(), u =
|
|
44
|
-
|
|
45
|
-
const g = () => d(e), b = p === e, x =
|
|
42
|
+
const { currentId: p, toggleId: d, closeAll: c } = R(), u = w(null);
|
|
43
|
+
_(u, () => c());
|
|
44
|
+
const g = () => d(e), b = p === e, x = y(() => r.map((i) => ({
|
|
46
45
|
...i,
|
|
47
46
|
onClick: () => {
|
|
48
47
|
var m;
|
|
49
48
|
(m = i.onClick) == null || m.call(i), c();
|
|
50
49
|
}
|
|
51
50
|
})), [r, c]);
|
|
52
|
-
return /* @__PURE__ */ v("div", { className:
|
|
51
|
+
return /* @__PURE__ */ v("div", { className: O(f.toggle, o), "data-color": "neutral", ref: u, children: [
|
|
53
52
|
/* @__PURE__ */ s(
|
|
54
|
-
|
|
53
|
+
I,
|
|
55
54
|
{
|
|
56
55
|
className: f.button,
|
|
57
56
|
size: n,
|
|
@@ -66,5 +65,5 @@ const k = O((e, l) => {
|
|
|
66
65
|
] });
|
|
67
66
|
};
|
|
68
67
|
export {
|
|
69
|
-
|
|
68
|
+
G as ContextMenu
|
|
70
69
|
};
|
|
@@ -8,9 +8,9 @@ import { Heading as w } from "../Typography/Heading.js";
|
|
|
8
8
|
import "../Searchbar/AutocompleteBase.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
10
|
import { DashboardIcon as y } from "./DashboardIcon.js";
|
|
11
|
-
import {
|
|
12
|
-
import { S as u } from "../../index-C8BS_2GY.js";
|
|
11
|
+
import { S as u } from "../../index-D8Pn8SCu.js";
|
|
13
12
|
import { c as h } from "../../lite-1fxw3LjI.js";
|
|
13
|
+
import { u as S } from "../../useMergeRefs-DOnoWyUH.js";
|
|
14
14
|
const j = p(function({ asChild: n = !1, variant: r = "default", className: s, ...c }, o) {
|
|
15
15
|
const l = n ? u : "div", m = B(null), k = S([m, o]);
|
|
16
16
|
return R(() => {
|
|
@@ -8,7 +8,7 @@ import { Badge as b } from "../Badge/Badge.js";
|
|
|
8
8
|
import "../RootProvider/RootProvider.js";
|
|
9
9
|
import "../Searchbar/AutocompleteBase.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
|
-
import { S as c } from "../../XMark-
|
|
11
|
+
import { S as c } from "../../XMark-DIqxCTTQ.js";
|
|
12
12
|
import '../../assets/MenuItemIcon.css';const _ = "_icon_c8ubg_1", v = "_avatarGroup_c8ubg_32", G = "_badge_c8ubg_36", o = {
|
|
13
13
|
icon: _,
|
|
14
14
|
avatarGroup: v,
|
|
@@ -7,8 +7,8 @@ import "../RootProvider/RootProvider.js";
|
|
|
7
7
|
import "../Searchbar/AutocompleteBase.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
import { IconButton as d } from "../Button/IconButton.js";
|
|
10
|
-
import { u as f } from "../../useId-
|
|
11
|
-
import { S as p } from "../../ChevronRight-
|
|
10
|
+
import { u as f } from "../../useId-BVFxCjkq.js";
|
|
11
|
+
import { S as p } from "../../ChevronRight-BbelnTke.js";
|
|
12
12
|
import '../../assets/DatepickerHeader.css';var v = function(t, o) {
|
|
13
13
|
var r = {};
|
|
14
14
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && o.indexOf(e) < 0 && (r[e] = t[e]);
|
|
@@ -9,7 +9,7 @@ import { DropdownBase as b } from "../Dropdown/DropdownBase.js";
|
|
|
9
9
|
import { Menu as x } from "../Menu/Menu.js";
|
|
10
10
|
import "../Searchbar/AutocompleteBase.js";
|
|
11
11
|
import "../Snackbar/useSnackbar.js";
|
|
12
|
-
import { S as B, a as _ } from "../../ChevronUp-
|
|
12
|
+
import { S as B, a as _ } from "../../ChevronUp-DR4Lz2Jb.js";
|
|
13
13
|
import '../../assets/DialogActions.css';const k = "_action_m3crc_1", I = "_comboButton_m3crc_7", m = {
|
|
14
14
|
action: k,
|
|
15
15
|
comboButton: I
|
|
@@ -9,7 +9,7 @@ import { Typography as c } from "../Typography/Typography.js";
|
|
|
9
9
|
import "../Searchbar/AutocompleteBase.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
11
|
import { Section as x } from "../Page/Section.js";
|
|
12
|
-
import { S } from "../../CircleFill-
|
|
12
|
+
import { S } from "../../CircleFill-BkDF4Wm0.js";
|
|
13
13
|
const y = ({
|
|
14
14
|
icon: p = S,
|
|
15
15
|
color: l = "neutral",
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import { D as c } from "../../DialogActivityLog-
|
|
5
|
+
import { D as c } from "../../DialogActivityLog-BoPREh7Y.js";
|
|
6
6
|
import "../Searchbar/AutocompleteBase.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
8
|
import "../Metadata/MetaItem.js";
|
|
@@ -9,7 +9,7 @@ import { Typography as s } from "../Typography/Typography.js";
|
|
|
9
9
|
import { SeenByLog as x } from "./SeenByLog.js";
|
|
10
10
|
import "../Searchbar/AutocompleteBase.js";
|
|
11
11
|
import "../Snackbar/useSnackbar.js";
|
|
12
|
-
const
|
|
12
|
+
const H = ({
|
|
13
13
|
loading: r,
|
|
14
14
|
sender: t,
|
|
15
15
|
recipient: o,
|
|
@@ -39,5 +39,5 @@ const W = ({
|
|
|
39
39
|
)
|
|
40
40
|
] });
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
H as DialogBody
|
|
43
43
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as u, jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { Byline as
|
|
4
|
+
import { Byline as v } from "../Byline/Byline.js";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
6
|
import "../Searchbar/AutocompleteBase.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
@@ -12,7 +12,7 @@ const s = ({
|
|
|
12
12
|
grouped: l = !1,
|
|
13
13
|
loading: m,
|
|
14
14
|
size: r = "xs"
|
|
15
|
-
}) => !o && !a ? null : /* @__PURE__ */ u(
|
|
15
|
+
}) => !o && !a ? null : /* @__PURE__ */ u(v, { loading: m, size: r, avatar: o, avatarGroup: !m && l && o && a ? {
|
|
16
16
|
items: [o, a]
|
|
17
17
|
} : void 0, children: [
|
|
18
18
|
/* @__PURE__ */ f("strong", { children: o == null ? void 0 : o.name }),
|
|
@@ -11,7 +11,7 @@ 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 { List as u } from "../List/List.js";
|
|
14
|
-
import { u as g } from "../../useId-
|
|
14
|
+
import { u as g } from "../../useId-BVFxCjkq.js";
|
|
15
15
|
var v = function(r, i) {
|
|
16
16
|
var o = {};
|
|
17
17
|
for (var e in r) Object.prototype.hasOwnProperty.call(r, e) && i.indexOf(e) < 0 && (o[e] = r[e]);
|
|
@@ -11,7 +11,7 @@ import { Timeline as x } from "../Timeline/Timeline.js";
|
|
|
11
11
|
import { TimelineSegment as I } from "../Timeline/TimelineSegment.js";
|
|
12
12
|
import { TimelineSection as E } from "../Timeline/TimelineSection.js";
|
|
13
13
|
import { TimelineLink as g } from "../Timeline/TimelineLink.js";
|
|
14
|
-
import { u as h } from "../../useId-
|
|
14
|
+
import { u as h } from "../../useId-BVFxCjkq.js";
|
|
15
15
|
var S = function(t, n) {
|
|
16
16
|
var l = {};
|
|
17
17
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (l[e] = t[e]);
|
|
@@ -9,7 +9,7 @@ import "../Searchbar/AutocompleteBase.js";
|
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
10
|
import { Flex as s } from "../Page/Flex.js";
|
|
11
11
|
import { Section as c } from "../Page/Section.js";
|
|
12
|
-
import { S as a } from "../../Checkmark-
|
|
12
|
+
import { S as a } from "../../Checkmark-D17Nyv_u.js";
|
|
13
13
|
const k = ({ title: i, children: m, checkAllLabel: o }) => /* @__PURE__ */ t(c, { spacing: 3, children: [
|
|
14
14
|
i && /* @__PURE__ */ t(s, { direction: "row", align: "center", justify: "between", children: [
|
|
15
15
|
/* @__PURE__ */ r(p, { size: "lg", children: i }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r, jsxs as v } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { Skeleton as E } from "../Skeleton/Skeleton.js";
|
|
@@ -10,49 +10,47 @@ import { DialogByline as G } from "./DialogByline.js";
|
|
|
10
10
|
import { DialogHeading as J } from "./DialogHeading.js";
|
|
11
11
|
import "../Searchbar/AutocompleteBase.js";
|
|
12
12
|
import "../Snackbar/useSnackbar.js";
|
|
13
|
-
import '../../assets/DialogListItem.css';const K = "_border_1meh5_1", O = "_controls_1meh5_54", P = "_header_1meh5_60", Q = "_summary_1meh5_72", R = "_footer_1meh5_100", T = "_touchedBy_1meh5_104",
|
|
13
|
+
import '../../assets/DialogListItem.css';const K = "_border_1meh5_1", O = "_controls_1meh5_54", P = "_header_1meh5_60", Q = "_summary_1meh5_72", R = "_footer_1meh5_100", T = "_touchedBy_1meh5_104", m = {
|
|
14
14
|
border: K,
|
|
15
15
|
controls: O,
|
|
16
16
|
header: P,
|
|
17
17
|
summary: Q,
|
|
18
18
|
footer: R,
|
|
19
|
-
touchedBy: T
|
|
20
|
-
|
|
21
|
-
title: W
|
|
22
|
-
}, lo = ({
|
|
19
|
+
touchedBy: T
|
|
20
|
+
}, to = ({
|
|
23
21
|
size: o = "xl",
|
|
24
22
|
state: B = "normal",
|
|
25
|
-
loading:
|
|
26
|
-
controls:
|
|
27
|
-
select:
|
|
23
|
+
loading: a,
|
|
24
|
+
controls: D,
|
|
25
|
+
select: U,
|
|
28
26
|
selected: c,
|
|
29
|
-
status:
|
|
30
|
-
sender:
|
|
31
|
-
recipient:
|
|
32
|
-
recipientLabel:
|
|
33
|
-
grouped:
|
|
27
|
+
status: e,
|
|
28
|
+
sender: n,
|
|
29
|
+
recipient: L,
|
|
30
|
+
recipientLabel: I = "to",
|
|
31
|
+
grouped: j = !1,
|
|
34
32
|
updatedAt: i,
|
|
35
33
|
updatedAtLabel: h,
|
|
36
|
-
archivedAt:
|
|
37
|
-
archivedAtLabel:
|
|
38
|
-
trashedAt:
|
|
39
|
-
trashedAtLabel:
|
|
40
|
-
badge:
|
|
34
|
+
archivedAt: s,
|
|
35
|
+
archivedAtLabel: u,
|
|
36
|
+
trashedAt: _,
|
|
37
|
+
trashedAtLabel: S,
|
|
38
|
+
badge: g,
|
|
41
39
|
dueAt: k,
|
|
42
40
|
dueAtLabel: H,
|
|
43
41
|
seen: l = !1,
|
|
44
42
|
seenBy: M,
|
|
45
43
|
touchedBy: V,
|
|
46
44
|
attachmentsCount: q,
|
|
47
|
-
title:
|
|
45
|
+
title: t,
|
|
48
46
|
description: p,
|
|
49
|
-
summary:
|
|
47
|
+
summary: d,
|
|
50
48
|
variant: w = "default",
|
|
51
49
|
id: f,
|
|
52
50
|
...b
|
|
53
51
|
}) => {
|
|
54
|
-
const C =
|
|
55
|
-
return o === "xs" || o === "sm" ? /* @__PURE__ */
|
|
52
|
+
const C = _ ? "trashed" : s ? "archived" : B, y = c ? "tinted" : w;
|
|
53
|
+
return o === "xs" || o === "sm" ? /* @__PURE__ */ r(
|
|
56
54
|
x,
|
|
57
55
|
{
|
|
58
56
|
...b,
|
|
@@ -60,22 +58,22 @@ import '../../assets/DialogListItem.css';const K = "_border_1meh5_1", O = "_cont
|
|
|
60
58
|
size: o,
|
|
61
59
|
selected: c,
|
|
62
60
|
variant: y,
|
|
63
|
-
ariaLabel:
|
|
64
|
-
label: /* @__PURE__ */
|
|
61
|
+
ariaLabel: t,
|
|
62
|
+
label: /* @__PURE__ */ r(
|
|
65
63
|
"div",
|
|
66
64
|
{
|
|
67
|
-
className:
|
|
68
|
-
"data-status":
|
|
65
|
+
className: m.border,
|
|
66
|
+
"data-status": e == null ? void 0 : e.value,
|
|
69
67
|
"data-size": o,
|
|
70
68
|
"data-seen": l,
|
|
71
|
-
"data-loading":
|
|
72
|
-
children: /* @__PURE__ */
|
|
69
|
+
"data-loading": a,
|
|
70
|
+
children: /* @__PURE__ */ r(F, { loading: a, size: o, title: t, description: d || p })
|
|
73
71
|
}
|
|
74
72
|
),
|
|
75
|
-
badge: /* @__PURE__ */
|
|
76
|
-
title:
|
|
73
|
+
badge: /* @__PURE__ */ r(N, { loading: a, sender: n, updatedAt: i, updatedAtLabel: h }),
|
|
74
|
+
title: t
|
|
77
75
|
}
|
|
78
|
-
) : /* @__PURE__ */
|
|
76
|
+
) : /* @__PURE__ */ r(
|
|
79
77
|
x,
|
|
80
78
|
{
|
|
81
79
|
...b,
|
|
@@ -83,51 +81,51 @@ import '../../assets/DialogListItem.css';const K = "_border_1meh5_1", O = "_cont
|
|
|
83
81
|
size: o,
|
|
84
82
|
selected: c,
|
|
85
83
|
variant: y,
|
|
86
|
-
controls: /* @__PURE__ */
|
|
87
|
-
title:
|
|
84
|
+
controls: /* @__PURE__ */ r("div", { className: m.controls, children: D }),
|
|
85
|
+
title: t,
|
|
88
86
|
label: /* @__PURE__ */ v(
|
|
89
87
|
"div",
|
|
90
88
|
{
|
|
91
|
-
className:
|
|
92
|
-
"data-status":
|
|
89
|
+
className: m.border,
|
|
90
|
+
"data-status": e == null ? void 0 : e.value,
|
|
93
91
|
"data-size": o,
|
|
94
92
|
"data-seen": l,
|
|
95
|
-
"data-loading":
|
|
93
|
+
"data-loading": a,
|
|
96
94
|
children: [
|
|
97
|
-
/* @__PURE__ */ v("header", { className:
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ v("header", { className: m.header, "data-size": o, children: [
|
|
96
|
+
/* @__PURE__ */ r(J, { loading: a, size: o, state: C, badge: g, seen: l, children: t }),
|
|
97
|
+
/* @__PURE__ */ r(
|
|
100
98
|
G,
|
|
101
99
|
{
|
|
102
100
|
size: "xs",
|
|
103
|
-
loading:
|
|
104
|
-
sender:
|
|
105
|
-
recipient:
|
|
106
|
-
recipientLabel:
|
|
107
|
-
grouped:
|
|
101
|
+
loading: a,
|
|
102
|
+
sender: n,
|
|
103
|
+
recipient: L,
|
|
104
|
+
recipientLabel: I,
|
|
105
|
+
grouped: j
|
|
108
106
|
}
|
|
109
107
|
),
|
|
110
|
-
o === "xl" &&
|
|
108
|
+
o === "xl" && d && /* @__PURE__ */ r(E, { loading: a, children: /* @__PURE__ */ r("p", { "data-size": o, className: m.summary, children: d || p }) })
|
|
111
109
|
] }),
|
|
112
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ r(
|
|
113
111
|
N,
|
|
114
112
|
{
|
|
115
|
-
className:
|
|
116
|
-
loading:
|
|
117
|
-
status:
|
|
113
|
+
className: m.footer,
|
|
114
|
+
loading: a,
|
|
115
|
+
status: e,
|
|
118
116
|
updatedAt: i,
|
|
119
117
|
updatedAtLabel: h,
|
|
120
|
-
archivedAt:
|
|
121
|
-
archivedAtLabel:
|
|
122
|
-
trashedAt:
|
|
123
|
-
trashedAtLabel:
|
|
118
|
+
archivedAt: s,
|
|
119
|
+
archivedAtLabel: u,
|
|
120
|
+
trashedAt: _,
|
|
121
|
+
trashedAtLabel: S,
|
|
124
122
|
dueAt: k,
|
|
125
123
|
dueAtLabel: H,
|
|
126
124
|
attachmentsCount: q,
|
|
127
125
|
seenBy: M,
|
|
128
126
|
touchedBy: {
|
|
129
127
|
touchedBy: V,
|
|
130
|
-
className:
|
|
128
|
+
className: m.touchedBy
|
|
131
129
|
}
|
|
132
130
|
}
|
|
133
131
|
)
|
|
@@ -138,5 +136,5 @@ import '../../assets/DialogListItem.css';const K = "_border_1meh5_1", O = "_cont
|
|
|
138
136
|
);
|
|
139
137
|
};
|
|
140
138
|
export {
|
|
141
|
-
|
|
139
|
+
to as DialogListItem
|
|
142
140
|
};
|