@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.
Files changed (53) hide show
  1. package/dist/assets/ListItemControls.css +1 -1
  2. package/dist/assets/ListItemHeader.css +1 -1
  3. package/dist/assets/ListItemLabel.css +1 -1
  4. package/dist/assets/ListItemLink.css +1 -1
  5. package/dist/assets/TimelineHeader.css +1 -1
  6. package/dist/assets/UserListItem.css +1 -0
  7. package/dist/components/{AccessAreaList → AccessAreaListItem}/AccessAreaListItem.js +13 -12
  8. package/dist/components/{AccessAreaList → AccessAreaListItem}/index.js +0 -2
  9. package/dist/components/{AccessPackageList → AccessPackageListItem}/AccessPackageListItem.js +29 -15
  10. package/dist/components/{AccessPackageList → AccessPackageListItem}/index.js +0 -2
  11. package/dist/components/Account/AccountListItem.js +17 -17
  12. package/dist/components/List/ListItemControls.js +1 -1
  13. package/dist/components/List/ListItemHeader.js +87 -83
  14. package/dist/components/List/ListItemLabel.js +12 -12
  15. package/dist/components/List/ListItemLink.js +30 -25
  16. package/dist/components/{ResourceList → ResourceListItem}/ResourceListItem.js +8 -7
  17. package/dist/components/ResourceListItem/index.js +4 -0
  18. package/dist/components/Timeline/TimelineHeader.js +6 -6
  19. package/dist/components/Timeline/TimelineIcon.js +18 -11
  20. package/dist/components/UserListItem/UserListItem.js +85 -0
  21. package/dist/components/UserListItem/index.js +4 -0
  22. package/dist/components/index.js +193 -197
  23. package/dist/index.js +159 -163
  24. package/dist/types/lib/components/{AccessAreaList → AccessAreaListItem}/AccessAreaListItem.d.ts +4 -2
  25. package/dist/types/lib/components/AccessAreaListItem/AccessAreaListItem.stories.d.ts +61 -0
  26. package/dist/types/lib/components/{AccessAreaList → AccessAreaListItem}/index.d.ts +0 -1
  27. package/dist/types/lib/components/AccessPackageListItem/AccessPackageListItem.d.ts +7 -0
  28. package/dist/types/lib/components/AccessPackageListItem/AccessPackageListItem.stories.d.ts +58 -0
  29. package/dist/types/lib/components/{AccessPackageList → AccessPackageListItem}/index.d.ts +0 -1
  30. package/dist/types/lib/components/Avatar/Avatar.stories.d.ts +0 -3
  31. package/dist/types/lib/components/Dialog/DialogBody.stories.d.ts +1 -0
  32. package/dist/types/lib/components/List/ListItemLink.d.ts +2 -1
  33. package/dist/types/lib/components/{ResourceList → ResourceListItem}/ResourceListItem.d.ts +4 -2
  34. package/dist/types/lib/components/ResourceListItem/ResourceListItem.stories.d.ts +55 -0
  35. package/dist/types/lib/components/ResourceListItem/index.d.ts +1 -0
  36. package/dist/types/lib/components/UserListItem/UserListItem.d.ts +18 -0
  37. package/dist/types/lib/components/UserListItem/UserListItem.stories.d.ts +119 -0
  38. package/dist/types/lib/components/UserListItem/index.d.ts +1 -0
  39. package/dist/types/lib/components/index.d.ts +4 -3
  40. package/package.json +1 -1
  41. package/dist/components/AccessAreaList/AccessAreaList.js +0 -12
  42. package/dist/components/AccessPackageList/AccessPackageList.js +0 -12
  43. package/dist/components/ResourceList/ResourceList.js +0 -12
  44. package/dist/components/ResourceList/index.js +0 -6
  45. package/dist/types/lib/components/AccessAreaList/AccessAreaList.d.ts +0 -7
  46. package/dist/types/lib/components/AccessPackageList/AccessPackageList.d.ts +0 -6
  47. package/dist/types/lib/components/AccessPackageList/AccessPackageList.stories.d.ts +0 -17
  48. package/dist/types/lib/components/AccessPackageList/AccessPackageListItem.d.ts +0 -5
  49. package/dist/types/lib/components/List/ListItem.stories.d.ts +0 -35
  50. package/dist/types/lib/components/ResourceList/ResourceList.d.ts +0 -6
  51. package/dist/types/lib/components/ResourceList/ResourceList.stories.d.ts +0 -34
  52. package/dist/types/lib/components/ResourceList/ResourceListItem.stories.d.ts +0 -27
  53. package/dist/types/lib/components/ResourceList/index.d.ts +0 -2
@@ -1 +1 @@
1
- ._controls_mvhfq_1{display:flex;align-items:center;white-space:nowrap;flex-wrap:nowrap;gap:.25rem}._controls_mvhfq_1:empty{display:none}._linkText_mvhfq_13{font-size:.875rem;white-space:nowrap}._linkIcon_mvhfq_18{font-size:1.5rem}
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
- ._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
+ ._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
- ._label_1aex5_1{pointer-events:none;position:relative;width:100%;display:flex;flex-direction:column;align-items:start;justify-content:center;margin-top:var(--dsc-item-my);margin-bottom:var(--dsc-item-my)}
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
- ._link_18ajm_1{position:absolute;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_18ajm_1>*{opacity:0;-webkit-user-select:none;user-select:none;pointer-events:none}._link_18ajm_1[aria-disabled=true]{pointer-events:none}._link_18ajm_1[data-interactive=true]{cursor:pointer}
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
- ._header_177gq_1{width:100%;display:flex;align-items:center;column-gap:.5rem;min-height:1.5rem}._sidebar_177gq_9{flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;row-gap:.375rem;width:2.25rem}._content_177gq_19{flex-grow:1;display:flex;flex-direction:column}
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 b } from "../List/ListItem.js";
8
- import '../../assets/AccessAreaListItem.css';const d = "_content_7hk0i_1", h = {
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
- }, k = ({
10
+ }, x = ({
11
11
  name: t,
12
12
  icon: i,
13
13
  iconUrl: r,
14
- size: m = "md",
15
- children: l,
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
- ...p
21
+ titleAs: p = "h3",
22
+ ...b
22
23
  }) => /* @__PURE__ */ n(
23
- b,
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: m,
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
- ...p,
42
- children: o && /* @__PURE__ */ n("div", { className: h.content, children: l })
42
+ ...b,
43
+ children: o && /* @__PURE__ */ n("div", { className: I.content, children: m })
43
44
  }
44
45
  );
45
46
  export {
46
- k as AccessAreaListItem
47
+ x as AccessAreaListItem
47
48
  };
@@ -1,6 +1,4 @@
1
1
  import { AccessAreaListItem as s } from "./AccessAreaListItem.js";
2
- import { AccessAreaList as c } from "./AccessAreaList.js";
3
2
  export {
4
- c as AccessAreaList,
5
3
  s as AccessAreaListItem
6
4
  };
@@ -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 r = {};
13
- for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && o.indexOf(e) < 0 && (r[e] = t[e]);
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 l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
16
- o.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
17
- return r;
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: r, titleId: e } = t, l = d(t, ["title", "titleId"]);
20
+ var { title: l, titleId: e } = t, r = d(t, ["title", "titleId"]);
21
21
  let i = c();
22
- return i = r ? e || "title-" + i : void 0, n.createElement(
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 }, l),
25
- r ? n.createElement("title", { id: i }, r) : null,
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
- }), I = ({
28
+ }), h = ({
29
29
  as: t = "button",
30
- title: o,
31
- color: r = "neutral",
32
- ...e
33
- }) => /* @__PURE__ */ a(f, { icon: p, as: t, size: "sm", title: o, color: r, variant: "tinted", ...e });
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
- I as AccessPackageListItem
49
+ h as AccessPackageListItem
36
50
  };
@@ -1,6 +1,4 @@
1
1
  import { AccessPackageListItem as s } from "./AccessPackageListItem.js";
2
- import { AccessPackageList as a } from "./AccessPackageList.js";
3
2
  export {
4
- a as AccessPackageList,
5
3
  s as AccessPackageListItem
6
4
  };
@@ -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 j } from "../List/ListItem.js";
6
+ import { ListItem as v } from "../List/ListItem.js";
7
7
  import "../Snackbar/useSnackbar.js";
8
- import { AccountListItemControls as k } from "./AccountListItemControls.js";
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: e,
18
- isDeleted: n,
19
- badge: f,
20
- favourite: l = !1,
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: b,
26
- ...g
25
+ interactive: j,
26
+ ...k
27
27
  }) => /* @__PURE__ */ o(
28
- j,
28
+ v,
29
29
  {
30
- ...g,
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
- badge: !t && /* @__PURE__ */ o(
38
- k,
37
+ controls: !t && /* @__PURE__ */ o(
38
+ C,
39
39
  {
40
40
  id: r,
41
41
  type: i,
42
- favourite: l,
42
+ favourite: f,
43
43
  favouriteLabel: u,
44
- badge: f,
45
- isCurrentEndUser: e,
46
- isDeleted: n,
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: b,
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 = "_controls_mvhfq_1", n = {
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 l, jsx as e, Fragment as E } from "react/jsx-runtime";
2
- import { c as w } from "../../index-L8X2o7IH.js";
3
- import { useId as z, isValidElement as D } from "react";
4
- import { Icon as F } from "../Icon/Icon.js";
5
- import { Badge as H } from "../Badge/Badge.js";
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 R } from "./ListItemLink.js";
9
- import { ListItemLabel as U } from "./ListItemLabel.js";
10
- import { ListItemIcon as V } from "./ListItemIcon.js";
11
- import { ListItemControls as q } from "./ListItemControls.js";
12
- import { ListItemSelect as A } from "./ListItemSelect.js";
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 G, a as J } from "../../ChevronUp-DR4Lz2Jb.js";
15
- import { S as K } from "../../ChevronRight-BbelnTke.js";
16
- import '../../assets/ListItemHeader.css';const M = "_header_b93u8_1", O = "_label_b93u8_27", P = "_linkIcon_b93u8_35", o = {
17
- header: M,
18
- label: O,
19
- linkIcon: P
20
- }, ne = ({
21
- as: c,
22
- interactive: p = !0,
23
- color: d,
24
- loading: t,
25
- disabled: f,
26
- collapsible: I,
27
- linkIcon: h,
28
- expanded: u,
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: v,
31
- onClick: L,
32
- onKeyPress: _,
33
- tabIndex: b,
34
- size: s,
35
- title: S,
36
- description: k,
37
- icon: N,
38
- active: i,
39
- badge: r,
40
- controls: n,
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: C,
43
- ariaLabel: j
43
+ children: y,
44
+ ariaLabel: l
44
45
  }) => {
45
- const a = I ? u ? G : J : h ? K : void 0, y = () => r && !t && typeof r == "object" && "label" in r ? /* @__PURE__ */ e(H, { ...r }) : D(r) ? r : null, B = z();
46
- return /* @__PURE__ */ l(
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: w(o.header, x),
50
- "data-color": d,
51
- "data-interactive": p,
52
- "data-size": s,
53
- "data-has-active-child": i,
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__ */ e(
56
- R,
56
+ /* @__PURE__ */ i(
57
+ H,
57
58
  {
58
- as: c,
59
- href: v,
60
- onClick: L,
61
- onKeyPress: _,
62
- tabIndex: b,
63
- loading: t,
64
- disabled: f || t,
65
- active: i,
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
- m && /* @__PURE__ */ e(A, { ...m, className: o.select }),
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
- ne as ListItemHeader
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 = "_label_1aex5_1", h = {
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 y = (r) => {
14
+ const d = (r) => {
15
15
  const s = {
16
- as: "h2",
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
- }, d = (r) => {
24
+ }, h = (r) => {
25
25
  const s = {
26
- as: "h3",
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: o,
39
+ title: n,
40
40
  value: p,
41
41
  description: c,
42
- children: n,
42
+ children: o,
43
43
  id: l,
44
44
  className: a
45
45
  }) => {
46
- if (o && p) {
47
- const f = o && d(o), u = p && y(p);
48
- return /* @__PURE__ */ t("span", { className: x(h.label, a), id: l, "data-size": s, children: n || /* @__PURE__ */ b(P, { children: [
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 = o && y(o), m = c && d(c);
54
- return /* @__PURE__ */ t("span", { className: x(h.label, a), id: l, "data-size": s, children: n || /* @__PURE__ */ b(P, { children: [
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 i } from "react/jsx-runtime";
2
- import { c as m } from "../../index-L8X2o7IH.js";
3
- import '../../assets/ListItemLink.css';const u = "_link_18ajm_1", s = {
4
- link: u
5
- }, h = ({
6
- as: c,
7
- loading: l,
8
- disabled: p,
9
- selected: v,
10
- href: f,
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: r,
14
- active: o,
15
- ariaLabel: e
13
+ className: s,
14
+ active: x,
15
+ ariaLabel: d,
16
+ children: m
16
17
  }) => {
17
- const n = c || "div";
18
- return n === "div" ? /* @__PURE__ */ i("div", { className: m(s.link, r), children: /* @__PURE__ */ i("span", { children: e }) }) : /* @__PURE__ */ i(
19
- n,
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: m(s.link, r),
22
- href: f,
23
- onKeyPress: (d) => {
24
- d.key === "Enter" && (t == null || t()), a == null || a(d);
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": l || p,
29
- "aria-selected": v,
30
- "aria-label": e,
31
- "data-active": o
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
- h as ListItemLink
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 e } from "../List/ListItem.js";
8
- const u = ({
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
- ...o
13
+ titleAs: o = "h3",
14
+ ...e
14
15
  }) => /* @__PURE__ */ p(
15
- e,
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
- ...o
26
+ ...e
26
27
  }
27
28
  );
28
29
  export {
29
- u as ResourceListItem
30
+ h as ResourceListItem
30
31
  };
@@ -0,0 +1,4 @@
1
+ import { ResourceListItem as r } from "./ResourceListItem.js";
2
+ export {
3
+ r as ResourceListItem
4
+ };
@@ -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 p = "_header_177gq_1", h = "_sidebar_177gq_9", _ = "_content_177gq_19", r = {
12
- header: p,
13
- sidebar: h,
14
- content: _
15
- }, T = ({ as: t = "li", loading: i, color: o, icon: s, children: n }) => /* @__PURE__ */ m(d, { as: t, className: r.header, color: o, children: [
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
- T as TimelineHeader
20
+ g as TimelineHeader
21
21
  };