@altinn/altinn-components 0.35.6 → 0.35.8

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 (27) hide show
  1. package/dist/assets/ListItemHeader.css +1 -1
  2. package/dist/assets/ListItemIcon.css +1 -1
  3. package/dist/assets/MenuItemBase.css +1 -1
  4. package/dist/assets/MenuItemsVirtual.css +1 -1
  5. package/dist/assets/SearchbarField.css +1 -1
  6. package/dist/assets/TimelineHeader.css +1 -1
  7. package/dist/components/Avatar/Avatar.js +28 -31
  8. package/dist/components/Byline/Byline.js +16 -25
  9. package/dist/components/List/ListItemHeader.js +71 -67
  10. package/dist/components/List/ListItemIcon.js +15 -23
  11. package/dist/components/List/ListItemLink.js +33 -31
  12. package/dist/components/Menu/MenuItemBase.js +15 -15
  13. package/dist/components/Menu/MenuItemsVirtual.js +5 -5
  14. package/dist/components/Searchbar/Searchbar.js +29 -16
  15. package/dist/components/Searchbar/SearchbarBase.js +24 -9
  16. package/dist/components/Searchbar/SearchbarField.js +44 -44
  17. package/dist/components/Timeline/TimelineHeader.js +6 -6
  18. package/dist/components/Timeline/TimelineIcon.js +11 -18
  19. package/dist/types/lib/components/Account/AccountMenu.stories.d.ts +1 -0
  20. package/dist/types/lib/components/Avatar/Avatar.d.ts +1 -5
  21. package/dist/types/lib/components/Avatar/Avatar.stories.d.ts +1 -1
  22. package/dist/types/lib/components/Dialog/DialogBody.stories.d.ts +0 -1
  23. package/dist/types/lib/components/Dialog/SeenByLogItem.stories.d.ts +0 -2
  24. package/dist/types/lib/components/List/ListItemLink.d.ts +1 -1
  25. package/dist/types/lib/components/Searchbar/SearchbarBase.d.ts +2 -1
  26. package/dist/types/lib/components/Transmission/Transmission.stories.d.ts +0 -1
  27. package/package.json +1 -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
+ ._header_1689z_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_1689z_1[data-interactive=true]{cursor:pointer}._header_1689z_1[data-interactive=true]:hover{background:var(--dsc-item-background--hover)}._header_1689z_1[data-interactive=true]:hover ._label_1689z_27 h2{text-decoration:underline}._header_1689z_1[data-has-active-child=true]{background-color:var(--ds-color-background-tinted)}._label_1689z_27{flex-grow:1}._link_1689z_39{outline:none}._badge_1689z_43{pointer-events:none}._linkIcon_1689z_47{flex-shrink:0;min-width:2em;min-height:2em;display:flex;align-items:center;justify-content:center;pointer-events:none}._linkFocus_1689z_57{position:absolute;top:0;left:0;right:0;bottom:0}._link_1689z_39:focus-visible ._linkFocus_1689z_57{box-shadow:var(--_ds--focus, var(--dsc-focus-boxShadow));outline:var(--_ds--focus, var(--dsc-focus-outline))}._link_1689z_39:focus-visible ._linkFocus_1689z_57 *{--_ds--focus: }
@@ -1 +1 @@
1
- ._wrapper_1q66b_1{pointer-events:none;position:relative;flex-shrink:0;font-size:2em}._icon_1q66b_8 svg,._icon_1q66b_8 img{display:block;width:1em;height:1em;font-size:.825em}._avatar_1q66b_16{font-size:1em}._avatarGroup_1q66b_20{font-size:.75em}
1
+ ._wrapper_rcjve_1{pointer-events:none;position:relative;flex-shrink:0;font-size:2em;display:flex;align-items:center;justify-content:center}._icon_rcjve_11 svg,._icon_rcjve_11 img{display:block;width:1em;height:1em;font-size:.825em}._avatar_rcjve_19{font-size:1em}._avatarGroup_rcjve_23{font-size:.75em}
@@ -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
+ ._item_1itcj_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_1itcj_1[aria-disabled=true]{opacity:.5;pointer-events:none}._item_1itcj_1[data-size=md]{min-height:56px}._item_1itcj_1[data-size=md]{min-height:44px}._item_1itcj_1[data-size=sm]{min-height:40px}._content_1itcj_45{display:flex;width:100%;align-items:center;column-gap:6px;padding:6px}._item_1itcj_1,._item_1itcj_1[data-theme]{background-color:transparent}._item_1itcj_1{pointer-events:none}._item_1itcj_1[data-interactive=true]{pointer-events:all}[data-theme=subtle] ._item_1itcj_1:hover{background-color:var(--ds-color-surface-hover)}[data-theme=subtle] ._item_1itcj_1:active{background-color:var(--ds-color-surface-active)}[data-theme=subtle] ._item_1itcj_1[data-selected=true]{background-color:var(--ds-color-background-default)}[data-theme=default] ._item_1itcj_1:hover{background-color:var(--ds-color-surface-hover)}[data-theme=default] ._item_1itcj_1:active{background-color:var(--ds-color-surface-active)}[data-theme=default] ._item_1itcj_1[data-selected=true]{background-color:var(--ds-color-background-tinted)}._content_1itcj_45{display:flex;width:100%;align-items:center;column-gap:.5em}._item_1itcj_1:focus-visible{box-shadow:var(--_ds--focus, var(--dsc-focus-boxShadow));outline:var(--_ds--focus, var(--dsc-focus-outline))}._item_1itcj_1:focus-visible *{--_ds--focus: }
@@ -1 +1 @@
1
- ._virtualScrollRef_12fdc_1{max-height:400px;overflow:auto}._virtualMenuListItem_12fdc_6{position:absolute;top:0;left:0;width:100%}._virtualMenuListItem_12fdc_6>*{margin:0}
1
+ ._virtualScrollRef_14d4s_1{max-height:400px}._virtualMenuListItem_14d4s_5{position:absolute;top:0;left:0;width:100%}._virtualMenuListItem_14d4s_5>*{margin:0}
@@ -1 +1 @@
1
- ._field_ljqfn_1{position:relative;display:flex;align-items:center;font-size:1.125rem;background-color:transparent;color:currentColor}._icon_ljqfn_10{position:absolute;left:0;font-size:1.5rem;margin:0 1rem}._input_ljqfn_17{height:3.5rem;background-color:transparent;font-size:inherit;flex-grow:1;padding:1rem 1rem 1rem 3rem;border:2px solid;border-radius:.25rem;outline:none}._input_ljqfn_17[type=search]::-webkit-search-decoration,._input_ljqfn_17[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;-moz-appearance:none;appearance:none}._input_ljqfn_17:focus,._input_ljqfn_17:not(:placeholder-shown){background-color:var(--ds-color-background-default)}._dismiss_ljqfn_41{position:absolute;right:0;margin:.375rem}._clear_ljqfn_47{position:absolute;right:0;margin:1rem;border-radius:100%;width:1.5rem;height:1.5rem}
1
+ ._field_73ung_1{position:relative;display:flex;align-items:center;font-size:1.125rem;background-color:transparent;color:currentColor}._field_73ung_1[data-expanded=true]{background-color:#fff}._icon_73ung_14{position:absolute;left:0;font-size:1.5rem;margin:0 1rem}._input_73ung_21{height:3.5rem;background-color:transparent;font-size:inherit;flex-grow:1;padding:1rem 1rem 1rem 3rem;border:2px solid;border-radius:.25rem;outline:none}._input_73ung_21[type=search]::-webkit-search-decoration,._input_73ung_21[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;-moz-appearance:none;appearance:none}._input_73ung_21:focus,._input_73ung_21:not(:placeholder-shown){background-color:var(--ds-color-background-default)}._dismiss_73ung_42{position:absolute;right:0;margin:.375rem}._clear_73ung_48{background-color:var(--ds-color-neutral-surface-active);border:var(--ds-color-neutral-surface-active);color:var(--ds-color-neutral-base-default);position:absolute;right:0;margin:1rem;border-radius:100%;width:1.5rem;height:1.5rem}
@@ -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}
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,61 +1,58 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as y } from "react/jsx-runtime";
3
- import { c as C } from "../../index-L8X2o7IH.js";
4
- import { useState as S } from "react";
5
- import { Skeleton as j } from "../Skeleton/Skeleton.js";
6
- import { fromStringToColor as A } from "./color.js";
7
- import '../../assets/Avatar.css';const E = "_avatar_1k073_1", I = "_shape_1k073_20", q = "_label_1k073_27", z = "_image_1k073_37", r = {
8
- avatar: E,
9
- shape: I,
10
- label: q,
11
- image: z
12
- }, D = (a) => typeof a == "object" && a !== null && "name" in a, F = ({
2
+ import { jsx as s, jsxs as N } from "react/jsx-runtime";
3
+ import { c as x } from "../../index-L8X2o7IH.js";
4
+ import { useState as C } from "react";
5
+ import { Skeleton as S } from "../Skeleton/Skeleton.js";
6
+ import { fromStringToColor as j } from "./color.js";
7
+ import '../../assets/Avatar.css';const A = "_avatar_1k073_1", E = "_shape_1k073_20", I = "_label_1k073_27", y = "_image_1k073_37", r = {
8
+ avatar: A,
9
+ shape: E,
10
+ label: I,
11
+ image: y
12
+ }, w = (a) => typeof a == "object" && a !== null && "name" in a, B = ({
13
13
  type: a = "person",
14
14
  size: i,
15
15
  name: o = "Avatar",
16
16
  outline: n = !1,
17
- imageUrl: t,
17
+ imageUrl: e,
18
18
  imageUrlAlt: m,
19
19
  customLabel: p,
20
20
  loading: l,
21
21
  className: d,
22
- style: c = {},
23
- innerContainerStyle: h = {},
24
- avatarImageStyle: u = {}
22
+ style: c = {}
25
23
  }) => {
26
- const [v, _] = S(!1), f = a === "person" ? "circle" : "square", g = a === "person" ? "light" : "dark", { backgroundColor: k, foregroundColor: b } = A(o, g), N = (o[0] ?? "").toUpperCase(), s = t && !v, x = !l && !s ? {
24
+ const [h, u] = C(!1), v = a === "person" ? "circle" : "square", _ = a === "person" ? "light" : "dark", { backgroundColor: f, foregroundColor: g } = j(o, _), k = (o[0] ?? "").toUpperCase(), t = e && !h, b = !l && !t ? {
27
25
  ...c,
28
- backgroundColor: k,
29
- color: b
26
+ backgroundColor: f,
27
+ color: g
30
28
  } : c;
31
- return /* @__PURE__ */ e(
29
+ return /* @__PURE__ */ s(
32
30
  "div",
33
31
  {
34
- className: C(r.avatar, { [r.outline]: n }, d),
35
- style: x,
36
- "data-variant": f,
32
+ className: x(r.avatar, { [r.outline]: n }, d),
33
+ style: b,
34
+ "data-variant": v,
37
35
  "data-size": i,
38
36
  "data-outline": n,
39
37
  "aria-hidden": !0,
40
- children: /* @__PURE__ */ y(j, { loading: l, className: r.shape, variant: "circle", children: [
41
- /* @__PURE__ */ e("div", { className: r.shape, style: s ? h : {}, children: s && /* @__PURE__ */ e(
38
+ children: /* @__PURE__ */ N(S, { loading: l, className: r.shape, variant: "circle", children: [
39
+ /* @__PURE__ */ s("div", { className: r.shape, children: t && /* @__PURE__ */ s(
42
40
  "img",
43
41
  {
44
- src: t,
42
+ src: e,
45
43
  className: r.image,
46
- alt: m || t,
47
- style: u,
44
+ alt: m || e,
48
45
  onError: () => {
49
- _(!0);
46
+ u(!0);
50
47
  }
51
48
  }
52
49
  ) }),
53
- !s && /* @__PURE__ */ e("span", { className: r.label, children: p || N })
50
+ !t && /* @__PURE__ */ s("span", { className: r.label, children: p || k })
54
51
  ] })
55
52
  }
56
53
  );
57
54
  };
58
55
  export {
59
- F as Avatar,
60
- D as isAvatarProps
56
+ B as Avatar,
57
+ w as isAvatarProps
61
58
  };
@@ -4,37 +4,28 @@ import "react";
4
4
  import { Avatar as _ } from "../Avatar/Avatar.js";
5
5
  import { AvatarGroup as v } from "../Avatar/AvatarGroup.js";
6
6
  import "../RootProvider/RootProvider.js";
7
- import { Skeleton as l } from "../Skeleton/Skeleton.js";
7
+ import { Skeleton as c } from "../Skeleton/Skeleton.js";
8
8
  import "../Searchbar/AutocompleteBase.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import '../../assets/Byline.css';const d = "_byline_zacbk_1", y = "_avatar_zacbk_7", h = "_avatarGroup_zacbk_11", u = "_label_zacbk_19", t = {
10
+ import '../../assets/Byline.css';const d = "_byline_zacbk_1", y = "_avatar_zacbk_7", k = "_avatarGroup_zacbk_11", u = "_label_zacbk_19", t = {
11
11
  byline: d,
12
12
  avatar: y,
13
- avatarGroup: h,
13
+ avatarGroup: k,
14
14
  label: u
15
- }, A = ({
16
- loading: n,
17
- color: i = "neutral",
18
- size: e = "xs",
19
- avatar: r,
20
- avatarGroup: o,
21
- datetime: m,
22
- children: c,
23
- as: s,
15
+ }, S = ({
16
+ loading: l,
17
+ color: m = "neutral",
18
+ size: r = "xs",
19
+ avatar: o,
20
+ avatarGroup: e,
21
+ datetime: n,
22
+ children: s,
23
+ as: i,
24
24
  ...p
25
- }) => /* @__PURE__ */ b(s || "div", { ...p, className: t.byline, "data-color": i, "data-size": e, children: [
26
- (o || r) && /* @__PURE__ */ a(l, { variant: "circle", className: t.avatar, loading: n, children: o ? /* @__PURE__ */ a(v, { ...o, size: e, className: t.avatarGroup }) : r && /* @__PURE__ */ a(
27
- _,
28
- {
29
- ...r,
30
- size: e,
31
- className: t.avatar,
32
- innerContainerStyle: { width: "fit-content" },
33
- avatarImageStyle: { height: "1em", width: "auto" }
34
- }
35
- ) }),
36
- /* @__PURE__ */ a("time", { "data-size": e, dateTime: m, className: t.label, children: /* @__PURE__ */ a(l, { loading: n, children: c }) })
25
+ }) => /* @__PURE__ */ b(i || "div", { ...p, className: t.byline, "data-color": m, "data-size": r, children: [
26
+ (e || o) && /* @__PURE__ */ a(c, { variant: "circle", className: t.avatar, loading: l, children: e ? /* @__PURE__ */ a(v, { ...e, size: r, className: t.avatarGroup }) : o && /* @__PURE__ */ a(_, { ...o, size: r, className: t.avatar }) }),
27
+ /* @__PURE__ */ a("time", { "data-size": r, dateTime: n, className: t.label, children: /* @__PURE__ */ a(c, { loading: l, children: s }) })
37
28
  ] });
38
29
  export {
39
- A as Byline
30
+ S as Byline
40
31
  };
@@ -1,105 +1,109 @@
1
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";
2
+ import { c as g } from "../../index-L8X2o7IH.js";
3
+ import { useId as B, isValidElement as E } from "react";
4
+ import { Icon as w } from "../Icon/Icon.js";
5
+ import { Badge as A } from "../Badge/Badge.js";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import "../Searchbar/AutocompleteBase.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";
8
+ import { ListItemLink as D } from "./ListItemLink.js";
9
+ import { ListItemLabel as H } from "./ListItemLabel.js";
10
+ import { ListItemIcon as R } from "./ListItemIcon.js";
11
+ import { ListItemControls as U } from "./ListItemControls.js";
12
+ import { ListItemSelect as V } from "./ListItemSelect.js";
13
13
  import "../Snackbar/useSnackbar.js";
14
- import { S as F, a as G } from "../../ChevronUp-DR4Lz2Jb.js";
14
+ import { S as q, a as G } from "../../ChevronUp-DR4Lz2Jb.js";
15
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 = {
16
+ import '../../assets/ListItemHeader.css';const K = "_header_1689z_1", M = "_label_1689z_27", O = "_link_1689z_39", P = "_badge_1689z_43", Q = "_linkIcon_1689z_47", T = "_linkFocus_1689z_57", t = {
17
17
  header: K,
18
18
  label: M,
19
- linkIcon: O,
20
- badgeAndIcon: P
21
- }, ae = ({
19
+ link: O,
20
+ badge: P,
21
+ linkIcon: Q,
22
+ linkFocus: T
23
+ }, ce = ({
22
24
  as: p,
23
- interactive: I = !0,
25
+ interactive: _ = !0,
24
26
  color: f,
25
- loading: r,
27
+ loading: o,
26
28
  disabled: h,
27
- collapsible: v,
28
- linkIcon: _,
29
- expanded: b,
30
- select: m,
31
- href: L,
32
- onClick: k,
33
- onKeyPress: u,
34
- tabIndex: S,
29
+ collapsible: I,
30
+ linkIcon: k,
31
+ expanded: v,
32
+ select: n,
33
+ href: u,
34
+ onClick: b,
35
+ onKeyPress: L,
36
+ tabIndex: N,
35
37
  size: a,
36
- title: n,
37
- description: N,
38
- icon: A,
39
- active: c,
40
- badge: t,
41
- controls: s,
38
+ title: s,
39
+ description: z,
40
+ icon: S,
41
+ active: l,
42
+ badge: r,
43
+ controls: m,
42
44
  className: x,
43
45
  children: y,
44
- ariaLabel: l
46
+ ariaLabel: c
45
47
  }) => {
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();
48
+ const d = I ? v ? q : G : k ? J : void 0, C = () => r && !o && typeof r == "object" && "label" in r ? /* @__PURE__ */ e(A, { ...r, className: t.badge }) : E(r) ? r : null, F = c !== void 0 ? c : typeof s == "string" ? s : void 0, j = B();
47
49
  return /* @__PURE__ */ i(
48
50
  "div",
49
51
  {
50
- className: E(o.header, x),
52
+ className: g(t.header, x),
51
53
  "data-color": f,
52
- "data-interactive": I,
54
+ "data-interactive": _,
53
55
  "data-size": a,
54
- "data-has-active-child": c,
56
+ "data-has-active-child": l,
55
57
  children: [
56
58
  /* @__PURE__ */ i(
57
- H,
59
+ D,
58
60
  {
59
61
  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,
62
+ href: u,
63
+ onClick: b,
64
+ onKeyPress: L,
65
+ tabIndex: N,
66
+ loading: o,
67
+ disabled: h || o,
68
+ active: l,
69
+ ariaLabel: F,
70
+ className: t.link,
68
71
  children: [
69
- m && /* @__PURE__ */ e(q, { ...m, className: o.select }),
70
- /* @__PURE__ */ e(U, { loading: r, icon: A }),
72
+ /* @__PURE__ */ e("div", { className: t.linkFocus, "aria-hidden": "true" }),
73
+ n && /* @__PURE__ */ e(V, { ...n, className: t.select }),
74
+ /* @__PURE__ */ e(R, { loading: o, icon: S }),
71
75
  /* @__PURE__ */ e(
72
- R,
76
+ H,
73
77
  {
74
78
  size: a,
75
- loading: r,
76
- title: n,
77
- description: N,
78
- id: B,
79
- className: o.label,
79
+ loading: o,
80
+ title: s,
81
+ description: z,
82
+ id: j,
83
+ className: t.label,
80
84
  children: y
81
85
  }
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
- ] })
86
+ )
95
87
  ]
96
88
  }
97
89
  ),
98
- /* @__PURE__ */ e(V, { className: o.controls, children: s && !r && /* @__PURE__ */ e("span", { children: s }) })
90
+ /* @__PURE__ */ i(U, { className: t.controls, children: [
91
+ m && !o && /* @__PURE__ */ e("span", { children: m }),
92
+ C(),
93
+ d && /* @__PURE__ */ e("span", { className: t.linkIcon, children: /* @__PURE__ */ e(
94
+ w,
95
+ {
96
+ svgElement: d,
97
+ style: {
98
+ fontSize: "1.5rem"
99
+ }
100
+ }
101
+ ) })
102
+ ] })
99
103
  ]
100
104
  }
101
105
  );
102
106
  };
103
107
  export {
104
- ae as ListItemHeader
108
+ ce as ListItemHeader
105
109
  };
@@ -1,35 +1,27 @@
1
1
  import { jsx as o, jsxs as i } from "react/jsx-runtime";
2
2
  import { isValidElement as n } from "react";
3
- import { Icon as e, isIconProps as l } from "../Icon/Icon.js";
3
+ import { Icon as s, isIconProps as c } from "../Icon/Icon.js";
4
4
  import "../../index-L8X2o7IH.js";
5
- import { isAvatarProps as c, Avatar as f } from "../Avatar/Avatar.js";
6
- import { isAvatarGroupProps as v, AvatarGroup as u } from "../Avatar/AvatarGroup.js";
7
- import { Badge as _ } from "../Badge/Badge.js";
5
+ import { isAvatarProps as v, Avatar as l } from "../Avatar/Avatar.js";
6
+ import { isAvatarGroupProps as f, AvatarGroup as _ } from "../Avatar/AvatarGroup.js";
7
+ import { Badge as u } 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 d } from "../../XMark-DIqxCTTQ.js";
12
- import '../../assets/ListItemIcon.css';const g = "_wrapper_1q66b_1", N = "_icon_1q66b_8", w = "_avatar_1q66b_16", b = "_avatarGroup_1q66b_20", t = {
13
- wrapper: g,
14
- icon: N,
15
- avatar: w,
16
- avatarGroup: b
11
+ import { S as N } from "../../XMark-DIqxCTTQ.js";
12
+ import '../../assets/ListItemIcon.css';const d = "_wrapper_rcjve_1", g = "_icon_rcjve_11", j = "_avatar_rcjve_19", G = "_avatarGroup_rcjve_23", t = {
13
+ wrapper: d,
14
+ icon: g,
15
+ avatar: j,
16
+ avatarGroup: G
17
17
  };
18
- function h(a) {
18
+ function w(a) {
19
19
  return typeof a == "string" || typeof a == "number" || typeof a == "boolean" || a === null || n(a);
20
20
  }
21
- const z = ({ loading: a, size: m, icon: r, theme: s, badge: p }) => r ? a ? /* @__PURE__ */ o(e, { className: t.wrapper, svgElement: d, loading: !0 }) : /* @__PURE__ */ i("div", { className: t.wrapper, "data-size": m, children: [
22
- c(r) && /* @__PURE__ */ o(
23
- f,
24
- {
25
- ...r,
26
- className: t.avatar,
27
- innerContainerStyle: { width: "fit-content" },
28
- avatarImageStyle: { height: "1em", width: "auto" }
29
- }
30
- ) || v(r) && /* @__PURE__ */ o(u, { ...r, className: t.avatarGroup }) || l(r) && /* @__PURE__ */ o(e, { ...r, theme: r.theme || s, className: t.icon }) || h(r) && r || /* @__PURE__ */ o(e, { theme: s, svgElement: r, className: t.icon }),
31
- p && /* @__PURE__ */ o(_, { ...p, className: t.badge })
21
+ const B = ({ loading: a, size: m, icon: r, theme: e, badge: p }) => r ? a ? /* @__PURE__ */ o(s, { className: t.wrapper, svgElement: N, loading: !0 }) : /* @__PURE__ */ i("div", { className: t.wrapper, "data-size": m, children: [
22
+ v(r) && /* @__PURE__ */ o(l, { ...r, className: t.avatar }) || f(r) && /* @__PURE__ */ o(_, { ...r, className: t.avatarGroup }) || c(r) && /* @__PURE__ */ o(s, { ...r, theme: r.theme || e, className: t.icon }) || w(r) && r || /* @__PURE__ */ o(s, { theme: e, svgElement: r, className: t.icon }),
23
+ p && /* @__PURE__ */ o(u, { ...p, className: t.badge })
32
24
  ] }) : null;
33
25
  export {
34
- z as ListItemIcon
26
+ B as ListItemIcon
35
27
  };
@@ -1,42 +1,44 @@
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,
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { c as v } from "../../index-L8X2o7IH.js";
3
+ import '../../assets/ListItemLink.css';const f = "_link_c8adz_1", l = {
4
+ link: f
5
+ }, I = ({
6
+ as: u,
7
+ loading: a,
8
+ disabled: e,
9
+ selected: x,
10
+ href: s,
11
11
  onClick: t,
12
- onKeyPress: a,
13
- className: s,
14
- active: x,
15
- ariaLabel: d,
16
- children: m
12
+ onKeyPress: i,
13
+ className: m,
14
+ active: o,
15
+ ariaLabel: n,
16
+ children: c,
17
+ tabIndex: _ = 0
17
18
  }) => {
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,
19
+ const r = u || "div";
20
+ if (r === "div")
21
+ return /* @__PURE__ */ p("div", { className: v(l.link, m), children: c });
22
+ const b = !a && s || r !== "a" && n;
23
+ return /* @__PURE__ */ p(
24
+ r,
24
25
  {
25
- className: l(p.link, s),
26
- href: e,
27
- onKeyPress: (n) => {
28
- n.key === "Enter" && (t == null || t()), a == null || a(n);
26
+ className: v(l.link, m),
27
+ href: s,
28
+ onKeyPress: (d) => {
29
+ d.key === "Enter" && (t == null || t()), i == null || i(d);
29
30
  },
30
31
  onClick: t,
31
32
  "data-interactive": "true",
32
- "aria-disabled": r || o,
33
- "aria-selected": u,
34
- ..._ && { "aria-label": d },
35
- "data-active": x,
36
- children: m
33
+ "aria-disabled": a || e,
34
+ "aria-selected": x,
35
+ ...b && { "aria-label": n },
36
+ "data-active": o,
37
+ tabIndex: a || e ? -1 : _,
38
+ children: c
37
39
  }
38
40
  );
39
41
  };
40
42
  export {
41
- A as ListItemLink
43
+ I as ListItemLink
42
44
  };
@@ -1,9 +1,9 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { c as g } from "../../index-L8X2o7IH.js";
3
- import '../../assets/MenuItemBase.css';const l = "_item_3iu2g_1", I = "_content_3iu2g_45", c = {
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { c as u } from "../../index-L8X2o7IH.js";
3
+ import '../../assets/MenuItemBase.css';const l = "_item_1itcj_1", I = "_content_1itcj_45", m = {
4
4
  item: l,
5
5
  content: I
6
- }, v = ({
6
+ }, z = ({
7
7
  interactive: o = !0,
8
8
  as: s,
9
9
  color: r,
@@ -13,31 +13,31 @@ import '../../assets/MenuItemBase.css';const l = "_item_3iu2g_1", I = "_content_
13
13
  href: _,
14
14
  onClick: t,
15
15
  onKeyPress: e,
16
- tabIndex: u = 0,
17
- hidden: x,
18
- selected: f,
16
+ tabIndex: x = 0,
17
+ hidden: f,
18
+ selected: h,
19
19
  disabled: a = !1,
20
- children: h
21
- }) => /* @__PURE__ */ m(
20
+ children: j
21
+ }) => /* @__PURE__ */ c(
22
22
  s || "a",
23
23
  {
24
- tabIndex: a ? "-1" : u ?? 0,
25
- className: g(c.item, p),
24
+ tabIndex: a ? "-1" : x ?? 0,
25
+ className: u(m.item, p),
26
26
  "data-interactive": o,
27
27
  "data-size": i,
28
28
  "data-color": r,
29
29
  "data-theme": d,
30
- "aria-hidden": x,
30
+ "aria-hidden": f,
31
31
  "aria-disabled": a,
32
- "data-selected": f,
32
+ "data-selected": h,
33
33
  href: _,
34
34
  onKeyPress: (n) => {
35
35
  n.key === "Enter" && (t == null || t()), e == null || e(n);
36
36
  },
37
37
  onClick: t,
38
- children: /* @__PURE__ */ m("span", { className: c.content, children: h })
38
+ children: /* @__PURE__ */ c("span", { className: m.content, children: j })
39
39
  }
40
40
  );
41
41
  export {
42
- v as MenuItemBase
42
+ z as MenuItemBase
43
43
  };
@@ -11,7 +11,7 @@ import { MenuHeader as k } from "./MenuHeader.js";
11
11
  import { MenuList as N, MenuListItem as g } from "./MenuBase.js";
12
12
  import "../Searchbar/AutocompleteBase.js";
13
13
  import "../Snackbar/useSnackbar.js";
14
- import '../../assets/MenuItemsVirtual.css';const q = "_virtualScrollRef_12fdc_1", B = "_virtualMenuListItem_12fdc_6", y = {
14
+ import '../../assets/MenuItemsVirtual.css';const q = "_virtualScrollRef_14d4s_1", B = "_virtualMenuListItem_14d4s_5", y = {
15
15
  virtualScrollRef: q,
16
16
  virtualMenuListItem: B
17
17
  }, W = ({
@@ -32,21 +32,21 @@ import '../../assets/MenuItemsVirtual.css';const q = "_virtualScrollRef_12fdc_1"
32
32
  keyboardEvents: !1
33
33
  }), m = R(null), a = _.flatMap((t, e) => {
34
34
  var u;
35
- const E = (t == null ? void 0 : t.props) || {}, { title: c } = E, p = ((u = t == null ? void 0 : t.items) == null ? void 0 : u.filter((r) => {
35
+ const E = (t == null ? void 0 : t.props) || {}, { title: p } = E, c = ((u = t == null ? void 0 : t.items) == null ? void 0 : u.filter((r) => {
36
36
  var s;
37
37
  return !((s = r.props) != null && s.hidden);
38
38
  })) || [];
39
39
  return [
40
40
  ...e > 0 || h > 0 ? [{ type: "separator" }] : [],
41
- ...c ? [{ type: "title", title: c }] : [],
42
- ...p.map((r, s) => {
41
+ ...p ? [{ type: "title", title: p }] : [],
42
+ ...c.map((r, s) => {
43
43
  var d, f;
44
44
  return {
45
45
  type: "item",
46
46
  itemProps: r.props || {},
47
47
  active: r.active,
48
48
  hasChildren: ((d = r.props) == null ? void 0 : d.expanded) && ((f = r.props) == null ? void 0 : f.items),
49
- isLastItem: s === p.length - 1
49
+ isLastItem: s === c.length - 1
50
50
  };
51
51
  })
52
52
  ];
@@ -1,23 +1,36 @@
1
- import { jsxs as e, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as f, jsx as p } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import { SearchbarBase as a } from "./SearchbarBase.js";
6
- import { SearchbarField as f } from "./SearchbarField.js";
5
+ import { SearchbarBase as A } from "./SearchbarBase.js";
6
+ import { SearchbarField as T } from "./SearchbarField.js";
7
7
  import "./AutocompleteBase.js";
8
- import { Autocomplete as s } from "./Autocomplete.js";
8
+ import { Autocomplete as n } from "./Autocomplete.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- const B = ({
11
- className: i,
12
- autocomplete: r,
13
- expanded: o = !1,
14
- onClose: m,
15
- tabIndex: p,
16
- ...c
17
- }) => /* @__PURE__ */ e(a, { className: i, expanded: o, autocomplete: !!r, children: [
18
- /* @__PURE__ */ t(f, { ...c, expanded: o, onClose: m, tabIndex: p }),
19
- r && /* @__PURE__ */ t(s, { ...r, expanded: o, onSelect: m })
20
- ] });
10
+ const k = ({
11
+ className: l,
12
+ autocomplete: e,
13
+ expanded: a = !1,
14
+ onClose: t,
15
+ tabIndex: g,
16
+ ...h
17
+ }) => /* @__PURE__ */ f(
18
+ A,
19
+ {
20
+ className: l,
21
+ expanded: a,
22
+ autocomplete: !!e,
23
+ onBlurCapture: (r) => {
24
+ var c, s, u, m, d, b, o;
25
+ const i = (u = (s = (c = r.target) == null ? void 0 : c.attributes) == null ? void 0 : s.getNamedItem("data-testid")) == null ? void 0 : u.value;
26
+ (i === "search-button-clear" || i === "search-button-close" || i === "searchbar-input" && ((m = r.relatedTarget) == null ? void 0 : m.getAttribute("data-testid")) !== "searchbar-input" && ((d = r.relatedTarget) == null ? void 0 : d.getAttribute("data-testid")) !== "search-button-clear" && ((b = r.relatedTarget) == null ? void 0 : b.getAttribute("data-testid")) !== "search-button-close" && ((o = r.relatedTarget) == null ? void 0 : o.getAttribute("data-testid")) !== "autocomplete-list") && (t == null || t());
27
+ },
28
+ children: [
29
+ /* @__PURE__ */ p(T, { ...h, expanded: a, onClose: t, tabIndex: g }),
30
+ e && /* @__PURE__ */ p(n, { ...e, expanded: a, onSelect: t })
31
+ ]
32
+ }
33
+ );
21
34
  export {
22
- B as Searchbar
35
+ k as Searchbar
23
36
  };
@@ -1,12 +1,27 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { c as n } from "../../index-L8X2o7IH.js";
3
- import '../../assets/SearchbarBase.css';const b = "_searchbar_1qnvb_1", d = "_searchbarExpanded_1qnvb_14", a = {
4
- searchbar: b,
5
- searchbarExpanded: d
6
- }, p = ({ className: r, children: e, expanded: s = !1, autocomplete: c = !1 }) => {
7
- const t = n(a.searchbar, r, s && a.searchbarExpanded);
8
- return /* @__PURE__ */ o("div", { className: t, "data-autocomplete": c, "data-color": "neutral", children: e });
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { c as b } from "../../index-L8X2o7IH.js";
3
+ import '../../assets/SearchbarBase.css';const d = "_searchbar_1qnvb_1", h = "_searchbarExpanded_1qnvb_14", a = {
4
+ searchbar: d,
5
+ searchbarExpanded: h
6
+ }, x = ({
7
+ className: r,
8
+ children: e,
9
+ expanded: s = !1,
10
+ onBlurCapture: c,
11
+ autocomplete: t = !1
12
+ }) => {
13
+ const o = b(a.searchbar, r, s && a.searchbarExpanded);
14
+ return /* @__PURE__ */ n(
15
+ "div",
16
+ {
17
+ className: o,
18
+ "data-autocomplete": t,
19
+ "data-color": "neutral",
20
+ onBlurCapture: c,
21
+ children: e
22
+ }
23
+ );
9
24
  };
10
25
  export {
11
- p as SearchbarBase
26
+ x as SearchbarBase
12
27
  };
@@ -1,82 +1,82 @@
1
1
  "use client";
2
- import { jsxs as g, jsx as t } from "react/jsx-runtime";
3
- import { c as k } from "../../index-L8X2o7IH.js";
4
- import { useRef as C } from "react";
5
- import { Icon as I } from "../Icon/Icon.js";
6
- import { IconButton as n } from "../Button/IconButton.js";
2
+ import { jsxs as C, jsx as t } from "react/jsx-runtime";
3
+ import { c as I } from "../../index-L8X2o7IH.js";
4
+ import { useRef as N } from "react";
5
+ import { Icon as v } from "../Icon/Icon.js";
6
+ import { IconButton as l } from "../Button/IconButton.js";
7
7
  import "../RootProvider/RootProvider.js";
8
8
  import "./AutocompleteBase.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import { S as N } from "../../MagnifyingGlass-3Ln1MufI.js";
11
- import { S as l } from "../../XMark-DIqxCTTQ.js";
12
- import '../../assets/SearchbarField.css';const v = "_field_ljqfn_1", T = "_icon_ljqfn_10", A = "_input_ljqfn_17", K = "_dismiss_ljqfn_41", M = "_clear_ljqfn_47", s = {
13
- field: v,
14
- icon: T,
15
- input: A,
16
- dismiss: K,
17
- clear: M
10
+ import { S as T } from "../../MagnifyingGlass-3Ln1MufI.js";
11
+ import { S as m } from "../../XMark-DIqxCTTQ.js";
12
+ import '../../assets/SearchbarField.css';const j = "_field_73ung_1", A = "_icon_73ung_14", K = "_input_73ung_21", M = "_dismiss_73ung_42", U = "_clear_73ung_48", s = {
13
+ field: j,
14
+ icon: A,
15
+ input: K,
16
+ dismiss: M,
17
+ clear: U
18
18
  }, H = ({
19
- className: m,
20
- expanded: p,
21
- name: f = "q",
22
- value: a,
23
- placeholder: u = "Search",
24
- closeButtonAltText: d = "Close search",
19
+ className: p,
20
+ expanded: e,
21
+ name: u = "q",
22
+ value: c,
23
+ placeholder: d = "Search",
24
+ closeButtonAltText: f = "Close search",
25
25
  clearButtonAltText: _ = "Clear search",
26
26
  onFocus: h,
27
- onBlur: x,
28
- onChange: b,
29
- onClear: j,
27
+ onBlur: g,
28
+ onChange: x,
29
+ onClear: b,
30
30
  onClose: y,
31
31
  onEnter: i,
32
- tabIndex: q
32
+ tabIndex: S
33
33
  }) => {
34
- const e = C(null), S = (c) => {
35
- var o, r;
36
- c.key === "Escape" && ((o = e.current) == null || o.blur()), c.key === "Enter" && ((r = e.current) == null || r.blur(), i == null || i());
34
+ const a = N(null), k = (o) => {
35
+ var r, n;
36
+ o.key === "Escape" && ((r = a.current) == null || r.blur()), o.key === "Enter" && ((n = a.current) == null || n.blur(), i == null || i());
37
37
  };
38
- return /* @__PURE__ */ g("div", { className: k(s.field, m), children: [
38
+ return /* @__PURE__ */ C("div", { className: I(s.field, p), "data-expanded": e, children: [
39
39
  /* @__PURE__ */ t(
40
40
  "input",
41
41
  {
42
- ref: e,
42
+ ref: a,
43
43
  onFocus: h,
44
- onBlur: x,
45
- name: f,
46
- value: a,
47
- onChange: b,
48
- placeholder: u,
44
+ onBlur: g,
45
+ name: u,
46
+ value: c,
47
+ onChange: x,
48
+ placeholder: d,
49
49
  className: s.input,
50
- onKeyUp: S,
50
+ onKeyUp: k,
51
51
  type: "search",
52
52
  "aria-haspopup": !0,
53
53
  autoComplete: "off",
54
54
  "aria-autocomplete": "list",
55
- tabIndex: q ?? 0,
55
+ tabIndex: S ?? 0,
56
56
  "data-testid": "searchbar-input"
57
57
  }
58
58
  ),
59
- /* @__PURE__ */ t(I, { svgElement: N, className: s.icon }),
60
- a && /* @__PURE__ */ t(
61
- n,
59
+ /* @__PURE__ */ t(v, { svgElement: T, className: s.icon }),
60
+ c && /* @__PURE__ */ t(
61
+ l,
62
62
  {
63
- icon: l,
63
+ icon: m,
64
64
  variant: "solid",
65
65
  size: "custom",
66
66
  className: s.clear,
67
- onClick: j,
67
+ onClick: b,
68
68
  dataTestId: "search-button-clear",
69
69
  iconAltText: _
70
70
  }
71
- ) || p && /* @__PURE__ */ t(
72
- n,
71
+ ) || e && /* @__PURE__ */ t(
72
+ l,
73
73
  {
74
- icon: l,
74
+ icon: m,
75
75
  variant: "text",
76
76
  className: s.dismiss,
77
77
  onClick: y,
78
78
  dataTestId: "search-button-close",
79
- iconAltText: d
79
+ iconAltText: f
80
80
  }
81
81
  )
82
82
  ] });
@@ -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 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: [
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: [
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
- g as TimelineHeader
20
+ T as TimelineHeader
21
21
  };
@@ -1,27 +1,20 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { isValidElement as n } from "react";
3
- import { Icon as e, isIconProps as p } from "../Icon/Icon.js";
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { isValidElement as p } from "react";
3
+ import { Icon as s, isIconProps as n } from "../Icon/Icon.js";
4
4
  import "../../index-L8X2o7IH.js";
5
5
  import { isAvatarProps as l, Avatar as f } from "../Avatar/Avatar.js";
6
- import { isAvatarGroupProps as g, AvatarGroup as u } from "../Avatar/AvatarGroup.js";
6
+ import { isAvatarGroupProps as c, AvatarGroup as u } from "../Avatar/AvatarGroup.js";
7
7
  import "../RootProvider/RootProvider.js";
8
8
  import "../Searchbar/AutocompleteBase.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import { S as c } from "../../XMark-DIqxCTTQ.js";
11
- import '../../assets/TimelineIcon.css';const d = "_icon_13w5g_1", a = {
12
- icon: d
10
+ import { S as d } from "../../XMark-DIqxCTTQ.js";
11
+ import '../../assets/TimelineIcon.css';const g = "_icon_13w5g_1", a = {
12
+ icon: g
13
13
  };
14
- function h(t) {
15
- return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || t === null || n(t);
14
+ function v(o) {
15
+ return typeof o == "string" || typeof o == "number" || typeof o == "boolean" || o === null || p(o);
16
16
  }
17
- const _ = ({ loading: t, size: m, color: s, theme: i, icon: r }) => r ? t ? /* @__PURE__ */ o(e, { className: a.icon, svgElement: c, loading: !0 }) : /* @__PURE__ */ o("div", { className: a.icon, "data-color": s, "data-size": m, children: l(r) && /* @__PURE__ */ o(
18
- f,
19
- {
20
- ...r,
21
- innerContainerStyle: { width: "unset", height: "1em" },
22
- avatarImageStyle: { height: "1.75rem", width: "auto", marginTop: "0.25rem" }
23
- }
24
- ) || g(r) && /* @__PURE__ */ o(u, { ...r, className: a.avatarGroup }) || p(r) && /* @__PURE__ */ o(e, { ...r, theme: i }) || h(r) && r || /* @__PURE__ */ o(e, { theme: i, svgElement: r }) }) : null;
17
+ const S = ({ loading: o, size: i, color: e, theme: m, icon: r }) => r ? o ? /* @__PURE__ */ t(s, { className: a.icon, svgElement: d, loading: !0 }) : /* @__PURE__ */ t("div", { className: a.icon, "data-color": e, "data-size": i, children: l(r) && /* @__PURE__ */ t(f, { ...r }) || c(r) && /* @__PURE__ */ t(u, { ...r, className: a.avatarGroup }) || n(r) && /* @__PURE__ */ t(s, { ...r, theme: m }) || v(r) && r || /* @__PURE__ */ t(s, { theme: m, svgElement: r }) }) : null;
25
18
  export {
26
- _ as TimelineIcon
19
+ S as TimelineIcon
27
20
  };
@@ -13,4 +13,5 @@ export declare const Default: Story;
13
13
  export declare const Controlled: () => import("react/jsx-runtime").JSX.Element;
14
14
  export declare const WithoutSubunits: Story;
15
15
  export declare const WithGroups: Story;
16
+ export declare const VirtualizedMenu: Story;
16
17
  export declare const WithToolbar: () => import("react/jsx-runtime").JSX.Element;
@@ -25,13 +25,9 @@ export interface AvatarProps {
25
25
  style?: CSSProperties;
26
26
  /** Whether the avatar is loading. */
27
27
  loading?: boolean;
28
- /** Avatar image container styles */
29
- innerContainerStyle?: CSSProperties;
30
- /** Avatar image inner styles */
31
- avatarImageStyle?: CSSProperties;
32
28
  }
33
29
  export declare const isAvatarProps: (icon: unknown) => icon is AvatarProps;
34
30
  /**
35
31
  * Avatar component to display user or company avatars with various customization options.
36
32
  */
37
- export declare const Avatar: ({ type, size, name, outline, imageUrl, imageUrlAlt, customLabel, loading, className, style, innerContainerStyle, avatarImageStyle, }: AvatarProps) => ReactElement;
33
+ export declare const Avatar: ({ type, size, name, outline, imageUrl, imageUrlAlt, customLabel, loading, className, style, }: AvatarProps) => ReactElement;
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react-vite';
2
2
  import { AvatarProps } from '..';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: ({ type, size, name, outline, imageUrl, imageUrlAlt, customLabel, loading, className, style, innerContainerStyle, avatarImageStyle, }: AvatarProps) => React.ReactElement;
5
+ component: ({ type, size, name, outline, imageUrl, imageUrlAlt, customLabel, loading, className, style, }: AvatarProps) => React.ReactElement;
6
6
  tags: string[];
7
7
  parameters: {
8
8
  layout: string;
@@ -43,5 +43,4 @@ export declare const Loading: Story;
43
43
  export declare const Summary: Story;
44
44
  export declare const ExtendedContent: Story;
45
45
  export declare const WithAttachments: Story;
46
- export declare const WithWideLogo: Story;
47
46
  export declare const WithActions: Story;
@@ -28,8 +28,6 @@ declare const meta: {
28
28
  customLabel?: string | undefined;
29
29
  style?: React.CSSProperties | undefined;
30
30
  loading?: boolean | undefined;
31
- innerContainerStyle?: React.CSSProperties | undefined;
32
- avatarImageStyle?: React.CSSProperties | undefined;
33
31
  }>) => import("react/jsx-runtime").JSX.Element)[];
34
32
  };
35
33
  export default meta;
@@ -13,4 +13,4 @@ export interface ListItemLinkProps {
13
13
  active?: boolean;
14
14
  children?: React.ReactNode;
15
15
  }
16
- export declare const ListItemLink: ({ as, loading, disabled, selected, href, onClick, onKeyPress, className, active, ariaLabel, children, }: ListItemLinkProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const ListItemLink: ({ as, loading, disabled, selected, href, onClick, onKeyPress, className, active, ariaLabel, children, tabIndex, }: ListItemLinkProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,5 +4,6 @@ export interface SearchbarBaseProps {
4
4
  children: ReactNode;
5
5
  expanded?: boolean;
6
6
  autocomplete?: boolean;
7
+ onBlurCapture?: React.FocusEventHandler<HTMLDivElement>;
7
8
  }
8
- export declare const SearchbarBase: ({ className, children, expanded, autocomplete }: SearchbarBaseProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const SearchbarBase: ({ className, children, expanded, onBlurCapture, autocomplete, }: SearchbarBaseProps) => import("react/jsx-runtime").JSX.Element;
@@ -51,4 +51,3 @@ declare const meta: {
51
51
  export default meta;
52
52
  export declare const Default: () => import("react/jsx-runtime").JSX.Element;
53
53
  export declare const UsingBadges: () => import("react/jsx-runtime").JSX.Element;
54
- export declare const WithWideLogo: () => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altinn/altinn-components",
3
- "version": "0.35.6",
3
+ "version": "0.35.8",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/",