@altinn/altinn-components 0.34.0 → 0.35.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ListItemControls.css +1 -1
- package/dist/assets/ListItemHeader.css +1 -1
- package/dist/assets/ListItemLabel.css +1 -1
- package/dist/assets/ListItemLink.css +1 -1
- package/dist/assets/TimelineHeader.css +1 -1
- package/dist/assets/UserListItem.css +1 -0
- package/dist/components/{AccessAreaList → AccessAreaListItem}/AccessAreaListItem.js +13 -12
- package/dist/components/{AccessAreaList → AccessAreaListItem}/index.js +0 -2
- package/dist/components/{AccessPackageList → AccessPackageListItem}/AccessPackageListItem.js +29 -15
- package/dist/components/{AccessPackageList → AccessPackageListItem}/index.js +0 -2
- package/dist/components/Account/AccountListItem.js +17 -17
- package/dist/components/List/ListItemControls.js +1 -1
- package/dist/components/List/ListItemHeader.js +87 -83
- package/dist/components/List/ListItemLabel.js +12 -12
- package/dist/components/List/ListItemLink.js +30 -25
- package/dist/components/{ResourceList → ResourceListItem}/ResourceListItem.js +8 -7
- package/dist/components/ResourceListItem/index.js +4 -0
- package/dist/components/Timeline/TimelineHeader.js +6 -6
- package/dist/components/Timeline/TimelineIcon.js +18 -11
- package/dist/components/UserListItem/UserListItem.js +85 -0
- package/dist/components/UserListItem/index.js +4 -0
- package/dist/components/index.js +193 -197
- package/dist/index.js +159 -163
- package/dist/types/lib/components/{AccessAreaList → AccessAreaListItem}/AccessAreaListItem.d.ts +4 -2
- package/dist/types/lib/components/AccessAreaListItem/AccessAreaListItem.stories.d.ts +61 -0
- package/dist/types/lib/components/{AccessAreaList → AccessAreaListItem}/index.d.ts +0 -1
- package/dist/types/lib/components/AccessPackageListItem/AccessPackageListItem.d.ts +7 -0
- package/dist/types/lib/components/AccessPackageListItem/AccessPackageListItem.stories.d.ts +58 -0
- package/dist/types/lib/components/{AccessPackageList → AccessPackageListItem}/index.d.ts +0 -1
- package/dist/types/lib/components/Avatar/Avatar.stories.d.ts +0 -3
- package/dist/types/lib/components/Dialog/DialogBody.stories.d.ts +1 -0
- package/dist/types/lib/components/List/ListItemLink.d.ts +2 -1
- package/dist/types/lib/components/{ResourceList → ResourceListItem}/ResourceListItem.d.ts +4 -2
- package/dist/types/lib/components/ResourceListItem/ResourceListItem.stories.d.ts +55 -0
- package/dist/types/lib/components/ResourceListItem/index.d.ts +1 -0
- package/dist/types/lib/components/UserListItem/UserListItem.d.ts +18 -0
- package/dist/types/lib/components/UserListItem/UserListItem.stories.d.ts +119 -0
- package/dist/types/lib/components/UserListItem/index.d.ts +1 -0
- package/dist/types/lib/components/index.d.ts +4 -3
- package/package.json +1 -1
- package/dist/components/AccessAreaList/AccessAreaList.js +0 -12
- package/dist/components/AccessPackageList/AccessPackageList.js +0 -12
- package/dist/components/ResourceList/ResourceList.js +0 -12
- package/dist/components/ResourceList/index.js +0 -6
- package/dist/types/lib/components/AccessAreaList/AccessAreaList.d.ts +0 -7
- package/dist/types/lib/components/AccessPackageList/AccessPackageList.d.ts +0 -6
- package/dist/types/lib/components/AccessPackageList/AccessPackageList.stories.d.ts +0 -17
- package/dist/types/lib/components/AccessPackageList/AccessPackageListItem.d.ts +0 -5
- package/dist/types/lib/components/List/ListItem.stories.d.ts +0 -35
- package/dist/types/lib/components/ResourceList/ResourceList.d.ts +0 -6
- package/dist/types/lib/components/ResourceList/ResourceList.stories.d.ts +0 -34
- package/dist/types/lib/components/ResourceList/ResourceListItem.stories.d.ts +0 -27
- package/dist/types/lib/components/ResourceList/index.d.ts +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._controls_1hxfb_1{display:flex;align-items:center;white-space:nowrap;flex-wrap:nowrap;gap:.25rem;margin-left:auto}._controls_1hxfb_1:empty{display:none}._linkText_1hxfb_14{font-size:.875rem;white-space:nowrap}._linkIcon_1hxfb_19{font-size:1.5rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._header_1k7r6_1{--dsc-item-spacing: .5em;position:relative;width:100%;min-height:var(--dsc-item-height);display:flex;align-items:center;justify-content:start;background:var(--dsc-item-background);column-gap:var(--dsc-item-spacing);padding-right:var(--dsc-item-px);padding-left:var(--dsc-item-px)}._header_1k7r6_1[data-interactive=true]{cursor:pointer}._header_1k7r6_1[data-interactive=true]:hover{background:var(--dsc-item-background--hover)}._header_1k7r6_1[data-interactive=true]:hover ._label_1k7r6_27 h2{text-decoration:underline}._header_1k7r6_1[data-has-active-child=true]{background-color:var(--ds-color-background-tinted)}._linkIcon_1k7r6_35{flex-shrink:0;min-width:2em;min-height:2em;display:flex;align-items:center;justify-content:center;pointer-events:none}._badgeAndIcon_1k7r6_45{display:flex;align-items:center;justify-content:center;gap:var(--dsc-item-spacing);margin-left:auto}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_1b76c_1{pointer-events:none;position:relative;display:flex;flex-direction:column;align-items:start;justify-content:center;margin-top:var(--dsc-item-my);margin-bottom:var(--dsc-item-my)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._link_c8adz_1{display:flex;align-items:center;justify-content:start;flex-direction:row;width:100%;column-gap:var(--dsc-item-spacing);--dsc-item-spacing: .5em;top:0;right:0;bottom:0;left:0;padding:0;border:0;background-color:transparent;color:inherit;font:inherit;text-align:inherit;text-decoration:none;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;user-select:none}._link_c8adz_1[aria-disabled=true]{pointer-events:none}._link_c8adz_1[data-interactive=true]{cursor:pointer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._header_ffjwj_1{width:100%;display:flex;align-items:center;column-gap:.5rem;min-height:1.5rem}._sidebar_ffjwj_9{flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;row-gap:.375rem}._content_ffjwj_18{flex-grow:1;display:flex;flex-direction:column}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._badges_1m5z5_1{display:flex;flex-direction:row;gap:.5rem;flex-wrap:wrap;justify-content:start;margin-bottom:auto;margin-top:calc(var(--dsc-item-my) * .85)}._label_1m5z5_11{display:flex;flex-direction:row;align-items:center;gap:.5rem}._subUnitAvatar_1m5z5_18{position:relative}._subUnitAvatar_1m5z5_18:before{content:"U";position:absolute;bottom:0;right:0;width:1rem;height:1rem;background-color:#fffc;clip-path:polygon(100% 100%,0% 100%,100% 0%);display:flex;align-items:flex-end;justify-content:flex-end;font-size:.5rem;font-weight:700;color:#333;z-index:1;padding-right:.1rem}
|
|
@@ -4,23 +4,24 @@ import "react";
|
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
5
|
import "../Searchbar/AutocompleteBase.js";
|
|
6
6
|
import "../Snackbar/useSnackbar.js";
|
|
7
|
-
import { ListItem as
|
|
8
|
-
import '../../assets/AccessAreaListItem.css';const d = "_content_7hk0i_1",
|
|
7
|
+
import { ListItem as h } from "../List/ListItem.js";
|
|
8
|
+
import '../../assets/AccessAreaListItem.css';const d = "_content_7hk0i_1", I = {
|
|
9
9
|
content: d
|
|
10
|
-
},
|
|
10
|
+
}, x = ({
|
|
11
11
|
name: t,
|
|
12
12
|
icon: i,
|
|
13
13
|
iconUrl: r,
|
|
14
|
-
size:
|
|
15
|
-
children:
|
|
14
|
+
size: l = "md",
|
|
15
|
+
children: m,
|
|
16
16
|
expanded: o = !1,
|
|
17
17
|
onClick: a,
|
|
18
18
|
badgeText: e,
|
|
19
19
|
colorTheme: s,
|
|
20
20
|
loading: c,
|
|
21
|
-
|
|
21
|
+
titleAs: p = "h3",
|
|
22
|
+
...b
|
|
22
23
|
}) => /* @__PURE__ */ n(
|
|
23
|
-
|
|
24
|
+
h,
|
|
24
25
|
{
|
|
25
26
|
as: "button",
|
|
26
27
|
icon: {
|
|
@@ -30,18 +31,18 @@ import '../../assets/AccessAreaListItem.css';const d = "_content_7hk0i_1", h = {
|
|
|
30
31
|
color: s,
|
|
31
32
|
altText: ""
|
|
32
33
|
},
|
|
33
|
-
title: t,
|
|
34
|
+
title: { children: t, as: p },
|
|
34
35
|
ariaLabel: t,
|
|
35
|
-
size:
|
|
36
|
+
size: l,
|
|
36
37
|
collapsible: !c,
|
|
37
38
|
expanded: o,
|
|
38
39
|
onClick: a,
|
|
39
40
|
badge: e ? { label: e, color: s } : void 0,
|
|
40
41
|
loading: c,
|
|
41
|
-
...
|
|
42
|
-
children: o && /* @__PURE__ */ n("div", { className:
|
|
42
|
+
...b,
|
|
43
|
+
children: o && /* @__PURE__ */ n("div", { className: I.content, children: m })
|
|
43
44
|
}
|
|
44
45
|
);
|
|
45
46
|
export {
|
|
46
|
-
|
|
47
|
+
x as AccessAreaListItem
|
|
47
48
|
};
|
package/dist/components/{AccessPackageList → AccessPackageListItem}/AccessPackageListItem.js
RENAMED
|
@@ -9,28 +9,42 @@ import "../Snackbar/useSnackbar.js";
|
|
|
9
9
|
import { ListItem as f } from "../List/ListItem.js";
|
|
10
10
|
import { u as c } from "../../useId-BVFxCjkq.js";
|
|
11
11
|
var d = function(t, o) {
|
|
12
|
-
var
|
|
13
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && o.indexOf(e) < 0 && (
|
|
12
|
+
var l = {};
|
|
13
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && o.indexOf(e) < 0 && (l[e] = t[e]);
|
|
14
14
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
15
|
-
for (var
|
|
16
|
-
o.indexOf(e[
|
|
17
|
-
return
|
|
15
|
+
for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
|
|
16
|
+
o.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (l[e[r]] = t[e[r]]);
|
|
17
|
+
return l;
|
|
18
18
|
};
|
|
19
19
|
const p = m((t, o) => {
|
|
20
|
-
var { title:
|
|
20
|
+
var { title: l, titleId: e } = t, r = d(t, ["title", "titleId"]);
|
|
21
21
|
let i = c();
|
|
22
|
-
return i =
|
|
22
|
+
return i = l ? e || "title-" + i : void 0, n.createElement(
|
|
23
23
|
"svg",
|
|
24
|
-
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": i },
|
|
25
|
-
|
|
24
|
+
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": i }, r),
|
|
25
|
+
l ? n.createElement("title", { id: i }, l) : null,
|
|
26
26
|
n.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M11.625 2.35a.75.75 0 0 1 .75 0l7.794 4.5a.75.75 0 0 1 .375.65v9a.75.75 0 0 1-.375.65l-7.794 4.5a.75.75 0 0 1-.75 0l-7.794-4.5a.75.75 0 0 1-.375-.65v-9a.75.75 0 0 1 .375-.65zM12 3.866 5.706 7.5 12 11.134 18.294 7.5zm7.044 4.933-6.294 3.634v7.268l6.294-3.634zM11.25 19.701v-7.268L4.956 8.799v7.268z", clipRule: "evenodd" })
|
|
27
27
|
);
|
|
28
|
-
}),
|
|
28
|
+
}), h = ({
|
|
29
29
|
as: t = "button",
|
|
30
|
-
|
|
31
|
-
color:
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
name: o,
|
|
31
|
+
color: l = "neutral",
|
|
32
|
+
titleAs: e = "h4",
|
|
33
|
+
size: r = "sm",
|
|
34
|
+
...i
|
|
35
|
+
}) => /* @__PURE__ */ a(
|
|
36
|
+
f,
|
|
37
|
+
{
|
|
38
|
+
icon: p,
|
|
39
|
+
as: t,
|
|
40
|
+
title: { children: o, as: e },
|
|
41
|
+
ariaLabel: o,
|
|
42
|
+
color: l,
|
|
43
|
+
size: r,
|
|
44
|
+
variant: "tinted",
|
|
45
|
+
...i
|
|
46
|
+
}
|
|
47
|
+
);
|
|
34
48
|
export {
|
|
35
|
-
|
|
49
|
+
h as AccessPackageListItem
|
|
36
50
|
};
|
|
@@ -3,9 +3,9 @@ import "../../index-L8X2o7IH.js";
|
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
5
|
import "../Searchbar/AutocompleteBase.js";
|
|
6
|
-
import { ListItem as
|
|
6
|
+
import { ListItem as v } from "../List/ListItem.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import { AccountListItemControls as
|
|
8
|
+
import { AccountListItemControls as C } from "./AccountListItemControls.js";
|
|
9
9
|
const D = ({
|
|
10
10
|
id: r,
|
|
11
11
|
type: i,
|
|
@@ -14,42 +14,42 @@ const D = ({
|
|
|
14
14
|
icon: s,
|
|
15
15
|
title: c,
|
|
16
16
|
description: p,
|
|
17
|
-
isCurrentEndUser:
|
|
18
|
-
isDeleted:
|
|
19
|
-
badge:
|
|
20
|
-
favourite:
|
|
17
|
+
isCurrentEndUser: n,
|
|
18
|
+
isDeleted: e,
|
|
19
|
+
badge: l,
|
|
20
|
+
favourite: f = !1,
|
|
21
21
|
favouriteLabel: u,
|
|
22
22
|
onToggleFavourite: I,
|
|
23
23
|
contextMenu: L,
|
|
24
24
|
children: A,
|
|
25
|
-
interactive:
|
|
26
|
-
...
|
|
25
|
+
interactive: j,
|
|
26
|
+
...k
|
|
27
27
|
}) => /* @__PURE__ */ o(
|
|
28
|
-
|
|
28
|
+
v,
|
|
29
29
|
{
|
|
30
|
-
...
|
|
30
|
+
...k,
|
|
31
31
|
size: m,
|
|
32
32
|
icon: s,
|
|
33
33
|
title: c,
|
|
34
34
|
description: t ? void 0 : p,
|
|
35
35
|
expanded: t,
|
|
36
36
|
selected: t,
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
controls: !t && /* @__PURE__ */ o(
|
|
38
|
+
C,
|
|
39
39
|
{
|
|
40
40
|
id: r,
|
|
41
41
|
type: i,
|
|
42
|
-
favourite:
|
|
42
|
+
favourite: f,
|
|
43
43
|
favouriteLabel: u,
|
|
44
|
-
badge:
|
|
45
|
-
isCurrentEndUser:
|
|
46
|
-
isDeleted:
|
|
44
|
+
badge: l,
|
|
45
|
+
isCurrentEndUser: n,
|
|
46
|
+
isDeleted: e,
|
|
47
47
|
onToggleFavourite: I,
|
|
48
48
|
contextMenu: L
|
|
49
49
|
}
|
|
50
50
|
),
|
|
51
51
|
linkIcon: !0,
|
|
52
|
-
interactive:
|
|
52
|
+
interactive: j,
|
|
53
53
|
children: A
|
|
54
54
|
}
|
|
55
55
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { c as r } from "../../index-L8X2o7IH.js";
|
|
3
|
-
import '../../assets/ListItemControls.css';const c = "
|
|
3
|
+
import '../../assets/ListItemControls.css';const c = "_controls_1hxfb_1", n = {
|
|
4
4
|
controls: c
|
|
5
5
|
}, e = ({ className: o, children: s }) => /* @__PURE__ */ t("div", { className: r(n.controls, o), children: s });
|
|
6
6
|
export {
|
|
@@ -1,101 +1,105 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useId as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { Badge as
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c as E } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import { useId as g, isValidElement as w } from "react";
|
|
4
|
+
import { Icon as z } from "../Icon/Icon.js";
|
|
5
|
+
import { Badge as D } from "../Badge/Badge.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
7
|
import "../Searchbar/AutocompleteBase.js";
|
|
8
|
-
import { ListItemLink as
|
|
9
|
-
import { ListItemLabel as
|
|
10
|
-
import { ListItemIcon as
|
|
11
|
-
import { ListItemControls as
|
|
12
|
-
import { ListItemSelect as
|
|
8
|
+
import { ListItemLink as H } from "./ListItemLink.js";
|
|
9
|
+
import { ListItemLabel as R } from "./ListItemLabel.js";
|
|
10
|
+
import { ListItemIcon as U } from "./ListItemIcon.js";
|
|
11
|
+
import { ListItemControls as V } from "./ListItemControls.js";
|
|
12
|
+
import { ListItemSelect as q } from "./ListItemSelect.js";
|
|
13
13
|
import "../Snackbar/useSnackbar.js";
|
|
14
|
-
import { S as
|
|
15
|
-
import { S as
|
|
16
|
-
import '../../assets/ListItemHeader.css';const M = "
|
|
17
|
-
header:
|
|
18
|
-
label:
|
|
19
|
-
linkIcon:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
14
|
+
import { S as F, a as G } from "../../ChevronUp-DR4Lz2Jb.js";
|
|
15
|
+
import { S as J } from "../../ChevronRight-BbelnTke.js";
|
|
16
|
+
import '../../assets/ListItemHeader.css';const K = "_header_1k7r6_1", M = "_label_1k7r6_27", O = "_linkIcon_1k7r6_35", P = "_badgeAndIcon_1k7r6_45", o = {
|
|
17
|
+
header: K,
|
|
18
|
+
label: M,
|
|
19
|
+
linkIcon: O,
|
|
20
|
+
badgeAndIcon: P
|
|
21
|
+
}, ae = ({
|
|
22
|
+
as: p,
|
|
23
|
+
interactive: I = !0,
|
|
24
|
+
color: f,
|
|
25
|
+
loading: r,
|
|
26
|
+
disabled: h,
|
|
27
|
+
collapsible: v,
|
|
28
|
+
linkIcon: _,
|
|
29
|
+
expanded: b,
|
|
29
30
|
select: m,
|
|
30
|
-
href:
|
|
31
|
-
onClick:
|
|
32
|
-
onKeyPress:
|
|
33
|
-
tabIndex:
|
|
34
|
-
size:
|
|
35
|
-
title:
|
|
36
|
-
description:
|
|
37
|
-
icon:
|
|
38
|
-
active:
|
|
39
|
-
badge:
|
|
40
|
-
controls:
|
|
31
|
+
href: L,
|
|
32
|
+
onClick: k,
|
|
33
|
+
onKeyPress: u,
|
|
34
|
+
tabIndex: S,
|
|
35
|
+
size: a,
|
|
36
|
+
title: n,
|
|
37
|
+
description: N,
|
|
38
|
+
icon: A,
|
|
39
|
+
active: c,
|
|
40
|
+
badge: t,
|
|
41
|
+
controls: s,
|
|
41
42
|
className: x,
|
|
42
|
-
children:
|
|
43
|
-
ariaLabel:
|
|
43
|
+
children: y,
|
|
44
|
+
ariaLabel: l
|
|
44
45
|
}) => {
|
|
45
|
-
const
|
|
46
|
-
return /* @__PURE__ */
|
|
46
|
+
const d = v ? b ? F : G : _ ? J : void 0, C = () => t && !r && typeof t == "object" && "label" in t ? /* @__PURE__ */ e(D, { ...t }) : w(t) ? t : null, j = l !== void 0 ? l : typeof n == "string" ? n : void 0, B = g();
|
|
47
|
+
return /* @__PURE__ */ i(
|
|
47
48
|
"div",
|
|
48
49
|
{
|
|
49
|
-
className:
|
|
50
|
-
"data-color":
|
|
51
|
-
"data-interactive":
|
|
52
|
-
"data-size":
|
|
53
|
-
"data-has-active-child":
|
|
50
|
+
className: E(o.header, x),
|
|
51
|
+
"data-color": f,
|
|
52
|
+
"data-interactive": I,
|
|
53
|
+
"data-size": a,
|
|
54
|
+
"data-has-active-child": c,
|
|
54
55
|
children: [
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
|
|
56
|
+
/* @__PURE__ */ i(
|
|
57
|
+
H,
|
|
57
58
|
{
|
|
58
|
-
as:
|
|
59
|
-
href:
|
|
60
|
-
onClick:
|
|
61
|
-
onKeyPress:
|
|
62
|
-
tabIndex:
|
|
63
|
-
loading:
|
|
64
|
-
disabled:
|
|
65
|
-
active:
|
|
66
|
-
ariaLabel: j
|
|
59
|
+
as: p,
|
|
60
|
+
href: L,
|
|
61
|
+
onClick: k,
|
|
62
|
+
onKeyPress: u,
|
|
63
|
+
tabIndex: S,
|
|
64
|
+
loading: r,
|
|
65
|
+
disabled: h || r,
|
|
66
|
+
active: c,
|
|
67
|
+
ariaLabel: j,
|
|
68
|
+
children: [
|
|
69
|
+
m && /* @__PURE__ */ e(q, { ...m, className: o.select }),
|
|
70
|
+
/* @__PURE__ */ e(U, { loading: r, icon: A }),
|
|
71
|
+
/* @__PURE__ */ e(
|
|
72
|
+
R,
|
|
73
|
+
{
|
|
74
|
+
size: a,
|
|
75
|
+
loading: r,
|
|
76
|
+
title: n,
|
|
77
|
+
description: N,
|
|
78
|
+
id: B,
|
|
79
|
+
className: o.label,
|
|
80
|
+
children: y
|
|
81
|
+
}
|
|
82
|
+
),
|
|
83
|
+
!s && !r && /* @__PURE__ */ i("div", { className: o.badgeAndIcon, children: [
|
|
84
|
+
C(),
|
|
85
|
+
d && /* @__PURE__ */ e("span", { className: o.linkIcon, children: /* @__PURE__ */ e(
|
|
86
|
+
z,
|
|
87
|
+
{
|
|
88
|
+
svgElement: d,
|
|
89
|
+
style: {
|
|
90
|
+
fontSize: "1.5rem"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
) })
|
|
94
|
+
] })
|
|
95
|
+
]
|
|
67
96
|
}
|
|
68
97
|
),
|
|
69
|
-
|
|
70
|
-
/* @__PURE__ */ e(V, { loading: t, icon: N }),
|
|
71
|
-
/* @__PURE__ */ e(
|
|
72
|
-
U,
|
|
73
|
-
{
|
|
74
|
-
size: s,
|
|
75
|
-
loading: t,
|
|
76
|
-
title: S,
|
|
77
|
-
description: k,
|
|
78
|
-
id: B,
|
|
79
|
-
className: o.label,
|
|
80
|
-
children: C
|
|
81
|
-
}
|
|
82
|
-
),
|
|
83
|
-
/* @__PURE__ */ e(q, { className: o.controls, children: n && !t ? /* @__PURE__ */ e("span", { children: n }) : /* @__PURE__ */ l(E, { children: [
|
|
84
|
-
y(),
|
|
85
|
-
a && /* @__PURE__ */ e("span", { className: o.linkIcon, children: /* @__PURE__ */ e(
|
|
86
|
-
F,
|
|
87
|
-
{
|
|
88
|
-
svgElement: a,
|
|
89
|
-
style: {
|
|
90
|
-
fontSize: "1.5rem"
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
) })
|
|
94
|
-
] }) })
|
|
98
|
+
/* @__PURE__ */ e(V, { className: o.controls, children: s && !r && /* @__PURE__ */ e("span", { children: s }) })
|
|
95
99
|
]
|
|
96
100
|
}
|
|
97
101
|
);
|
|
98
102
|
};
|
|
99
103
|
export {
|
|
100
|
-
|
|
104
|
+
ae as ListItemHeader
|
|
101
105
|
};
|
|
@@ -5,15 +5,15 @@ import "../RootProvider/RootProvider.js";
|
|
|
5
5
|
import { Heading as e } from "../Typography/Heading.js";
|
|
6
6
|
import "../Searchbar/AutocompleteBase.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import '../../assets/ListItemLabel.css';const g = "
|
|
8
|
+
import '../../assets/ListItemLabel.css';const g = "_label_1b76c_1", y = {
|
|
9
9
|
label: g
|
|
10
10
|
}, j = (r) => typeof r == "object" && r !== null && "children" in r;
|
|
11
11
|
function z(r) {
|
|
12
12
|
return typeof r == "string" || typeof r == "number" || typeof r == "boolean" || r === null || _(r);
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const d = (r) => {
|
|
15
15
|
const s = {
|
|
16
|
-
as: "
|
|
16
|
+
as: "h3",
|
|
17
17
|
size: "sm"
|
|
18
18
|
// leading: "tight",
|
|
19
19
|
};
|
|
@@ -21,9 +21,9 @@ const y = (r) => {
|
|
|
21
21
|
...s,
|
|
22
22
|
children: r
|
|
23
23
|
} : null;
|
|
24
|
-
},
|
|
24
|
+
}, h = (r) => {
|
|
25
25
|
const s = {
|
|
26
|
-
as: "
|
|
26
|
+
as: "span",
|
|
27
27
|
size: "xs",
|
|
28
28
|
weight: "normal",
|
|
29
29
|
variant: "subtle"
|
|
@@ -36,22 +36,22 @@ const y = (r) => {
|
|
|
36
36
|
}, I = ({
|
|
37
37
|
loading: r = !1,
|
|
38
38
|
size: s,
|
|
39
|
-
title:
|
|
39
|
+
title: n,
|
|
40
40
|
value: p,
|
|
41
41
|
description: c,
|
|
42
|
-
children:
|
|
42
|
+
children: o,
|
|
43
43
|
id: l,
|
|
44
44
|
className: a
|
|
45
45
|
}) => {
|
|
46
|
-
if (
|
|
47
|
-
const f =
|
|
48
|
-
return /* @__PURE__ */ t("span", { className: x(
|
|
46
|
+
if (n && p) {
|
|
47
|
+
const f = n && d(n), u = p && h(p);
|
|
48
|
+
return /* @__PURE__ */ t("span", { className: x(y.label, a), id: l, "data-size": s, children: o || /* @__PURE__ */ b(P, { children: [
|
|
49
49
|
f && /* @__PURE__ */ t(e, { ...f, loading: r }),
|
|
50
50
|
u && /* @__PURE__ */ t(e, { ...u, loading: r })
|
|
51
51
|
] }) });
|
|
52
52
|
}
|
|
53
|
-
const i =
|
|
54
|
-
return /* @__PURE__ */ t("span", { className: x(
|
|
53
|
+
const i = n && d(n), m = c && h(c);
|
|
54
|
+
return /* @__PURE__ */ t("span", { className: x(y.label, a), id: l, "data-size": s, children: o || /* @__PURE__ */ b(P, { children: [
|
|
55
55
|
i && /* @__PURE__ */ t(e, { ...i, loading: r }),
|
|
56
56
|
m && /* @__PURE__ */ t(e, { ...m, loading: r })
|
|
57
57
|
] }) });
|
|
@@ -1,37 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import '../../assets/ListItemLink.css';const
|
|
4
|
-
link:
|
|
5
|
-
},
|
|
6
|
-
as:
|
|
7
|
-
loading:
|
|
8
|
-
disabled:
|
|
9
|
-
selected:
|
|
10
|
-
href:
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as l } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import '../../assets/ListItemLink.css';const b = "_link_c8adz_1", p = {
|
|
4
|
+
link: b
|
|
5
|
+
}, A = ({
|
|
6
|
+
as: v,
|
|
7
|
+
loading: r,
|
|
8
|
+
disabled: o,
|
|
9
|
+
selected: u,
|
|
10
|
+
href: e,
|
|
11
11
|
onClick: t,
|
|
12
12
|
onKeyPress: a,
|
|
13
|
-
className:
|
|
14
|
-
active:
|
|
15
|
-
ariaLabel:
|
|
13
|
+
className: s,
|
|
14
|
+
active: x,
|
|
15
|
+
ariaLabel: d,
|
|
16
|
+
children: m
|
|
16
17
|
}) => {
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
const i = v || "div";
|
|
19
|
+
if (i === "div")
|
|
20
|
+
return /* @__PURE__ */ c("div", { className: l(p.link, s), children: m });
|
|
21
|
+
const _ = !r && e || i !== "a" && d;
|
|
22
|
+
return /* @__PURE__ */ c(
|
|
23
|
+
i,
|
|
20
24
|
{
|
|
21
|
-
className:
|
|
22
|
-
href:
|
|
23
|
-
onKeyPress: (
|
|
24
|
-
|
|
25
|
+
className: l(p.link, s),
|
|
26
|
+
href: e,
|
|
27
|
+
onKeyPress: (n) => {
|
|
28
|
+
n.key === "Enter" && (t == null || t()), a == null || a(n);
|
|
25
29
|
},
|
|
26
30
|
onClick: t,
|
|
27
31
|
"data-interactive": "true",
|
|
28
|
-
"aria-disabled":
|
|
29
|
-
"aria-selected":
|
|
30
|
-
"aria-label":
|
|
31
|
-
"data-active":
|
|
32
|
+
"aria-disabled": r || o,
|
|
33
|
+
"aria-selected": u,
|
|
34
|
+
..._ && { "aria-label": d },
|
|
35
|
+
"data-active": x,
|
|
36
|
+
children: m
|
|
32
37
|
}
|
|
33
38
|
);
|
|
34
39
|
};
|
|
35
40
|
export {
|
|
36
|
-
|
|
41
|
+
A as ListItemLink
|
|
37
42
|
};
|
|
@@ -4,15 +4,16 @@ import "react";
|
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
5
|
import "../Searchbar/AutocompleteBase.js";
|
|
6
6
|
import "../Snackbar/useSnackbar.js";
|
|
7
|
-
import { ListItem as
|
|
8
|
-
const
|
|
7
|
+
import { ListItem as s } from "../List/ListItem.js";
|
|
8
|
+
const h = ({
|
|
9
9
|
ownerName: t,
|
|
10
10
|
resourceName: i,
|
|
11
11
|
ownerLogoUrlAlt: r,
|
|
12
12
|
ownerLogoUrl: m,
|
|
13
|
-
|
|
13
|
+
titleAs: o = "h3",
|
|
14
|
+
...e
|
|
14
15
|
}) => /* @__PURE__ */ p(
|
|
15
|
-
|
|
16
|
+
s,
|
|
16
17
|
{
|
|
17
18
|
icon: {
|
|
18
19
|
name: t,
|
|
@@ -20,11 +21,11 @@ const u = ({
|
|
|
20
21
|
imageUrlAlt: r,
|
|
21
22
|
type: "company"
|
|
22
23
|
},
|
|
23
|
-
title: i,
|
|
24
|
+
title: { children: i, as: o },
|
|
24
25
|
description: t,
|
|
25
|
-
...
|
|
26
|
+
...e
|
|
26
27
|
}
|
|
27
28
|
);
|
|
28
29
|
export {
|
|
29
|
-
|
|
30
|
+
h as ResourceListItem
|
|
30
31
|
};
|
|
@@ -8,14 +8,14 @@ import { TimelineIcon as l } from "./TimelineIcon.js";
|
|
|
8
8
|
import "../Searchbar/AutocompleteBase.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
10
|
import { Flex as d } from "../Page/Flex.js";
|
|
11
|
-
import '../../assets/TimelineHeader.css';const
|
|
12
|
-
header:
|
|
13
|
-
sidebar:
|
|
14
|
-
content:
|
|
15
|
-
},
|
|
11
|
+
import '../../assets/TimelineHeader.css';const f = "_header_ffjwj_1", p = "_sidebar_ffjwj_9", h = "_content_ffjwj_18", r = {
|
|
12
|
+
header: f,
|
|
13
|
+
sidebar: p,
|
|
14
|
+
content: h
|
|
15
|
+
}, g = ({ as: t = "li", loading: i, color: o, icon: s, children: n }) => /* @__PURE__ */ m(d, { as: t, className: r.header, color: o, children: [
|
|
16
16
|
/* @__PURE__ */ e("aside", { className: r.sidebar, children: /* @__PURE__ */ e(c, { variant: "circle", loading: i, children: /* @__PURE__ */ e(l, { icon: s, theme: "base", size: "lg" }) }) }),
|
|
17
17
|
/* @__PURE__ */ e("div", { className: r.content, children: /* @__PURE__ */ e(a, { loading: i, size: "lg", children: n }) })
|
|
18
18
|
] });
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
g as TimelineHeader
|
|
21
21
|
};
|