@altinn/altinn-components 0.51.0 → 0.51.2

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 (40) hide show
  1. package/dist/assets/AttachmentLink.css +1 -1
  2. package/dist/assets/AttachmentList.css +1 -1
  3. package/dist/assets/Badge.css +1 -1
  4. package/dist/assets/MenuItemBase.css +1 -1
  5. package/dist/components/Account/AccountListItemControls.js +3 -3
  6. package/dist/components/Attachment/AttachmentLink.js +61 -26
  7. package/dist/components/Attachment/AttachmentList.js +2 -2
  8. package/dist/components/Badge/Badge.js +9 -9
  9. package/dist/components/Dialog/DialogHeader.js +6 -6
  10. package/dist/components/Dialog/DialogListItem.js +1 -1
  11. package/dist/components/Dialog/SeenByLogItem.js +1 -1
  12. package/dist/components/Dropdown/FloatingDropdown.js +1 -1
  13. package/dist/components/Forms/SearchField.js +1 -1
  14. package/dist/components/GlobalMenu/GlobalMenuButton.js +1 -1
  15. package/dist/components/GlobalMenu_old/GlobalMenuButton.js +1 -1
  16. package/dist/components/Icon/IconOrAvatar.js +1 -1
  17. package/dist/components/List/ListItemHeader.js +4 -4
  18. package/dist/components/List/ListItemIcon.js +6 -6
  19. package/dist/components/Menu/MenuItem.js +4 -4
  20. package/dist/components/Menu/MenuItemBase.js +29 -29
  21. package/dist/components/Menu/MenuItemIcon.js +6 -6
  22. package/dist/components/Metadata/MetaItemIcon.js +1 -1
  23. package/dist/components/Modal/ModalIcon.js +1 -1
  24. package/dist/components/Notifications/NotificationItemIcon.js +6 -6
  25. package/dist/components/Page/Breadcrumbs.js +1 -1
  26. package/dist/components/Searchbar/AutocompleteItem.js +1 -1
  27. package/dist/components/Settings/UsedByLogItem.js +1 -1
  28. package/dist/components/Timeline/TimelineIcon.js +1 -1
  29. package/dist/components/Transmission/Transmission.js +6 -6
  30. package/dist/components/Transmission/TransmissionType.js +1 -1
  31. package/dist/types/lib/components/Account/AccountListItem.stories.d.ts +2 -2
  32. package/dist/types/lib/components/Attachment/AttachmentLink.d.ts +8 -1
  33. package/dist/types/lib/components/Attachment/AttachmentLink.stories.d.ts +1 -1
  34. package/dist/types/lib/components/Dialog/DialogBody.stories.d.ts +1 -0
  35. package/dist/types/lib/components/Dialog/DialogLayout.stories.d.ts +14 -0
  36. package/dist/types/lib/components/Icon/IconOrAvatar.d.ts +1 -1
  37. package/dist/types/lib/components/Settings/SettingsItem.stories.d.ts +2 -2
  38. package/dist/types/lib/components/Skeleton/Skeleton.d.ts +1 -1
  39. package/dist/types/lib/components/Transmission/Transmission.stories.d.ts +9 -9
  40. package/package.json +1 -1
@@ -1 +1 @@
1
- ._link_196mu_1{display:inline-flex;align-items:start;column-gap:.25em;color:var(--ds-color-base-default)}._link_196mu_1:hover{color:var(--ds-color-base-hover)}._label_196mu_12{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:2px}._icon_196mu_18{font-size:1.5em}
1
+ ._item_w0iww_1{position:relative;display:flex;padding-top:.125em;padding-left:1.75em;margin-bottom:.5em}._icon_w0iww_9{position:absolute;top:0;left:0;font-size:1.5em}._link_w0iww_16{color:var(--ds-color-base-default);text-decoration:none}._link_w0iww_16[aria-disabled=true]{color:var(--ds-color-neutral-text-subtle);pointer-events:none;cursor:default}._label_w0iww_27{text-decoration:underline}._link_w0iww_16:hover ._label_w0iww_27{color:var(--ds-color-base-hover)}._link_w0iww_16[aria-disabled=true] ._label_w0iww_27{text-decoration:line-through}._badge_w0iww_39{vertical-align:middle;margin:-3px 0}._metadata_w0iww_44{vertical-align:middle;white-space:nowrap;font-size:.875em;color:var(--ds-color-neutral-text-subtle)}
@@ -1 +1 @@
1
- ._list_xei16_1{list-style:none;padding:0;margin:0;display:flex;flex-direction:column}._item_xei16_9{padding:0;margin:0}
1
+ ._list_sdpdt_1{list-style:none;padding:0;margin:0;display:flex;flex-direction:column}._item_sdpdt_9{padding:0;line-height:1.25;margin-top:.25em}
@@ -1 +1 @@
1
- ._badge_b4vo7_1{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex:0 0 auto;max-height:min-content;--dsc-badge-background: var(--ds-color-base-default);--dsc-badge-color: var(--ds-color-base-contrast-default);background-color:var(--dsc-badge-background);color:var(--dsc-badge-color)}._badge_b4vo7_1[data-size=xs]{width:.75rem;height:.75rem;padding:0;border-radius:1em}._badge_b4vo7_1[data-size=xs] ._label_b4vo7_22{color:transparent;width:100%;height:100%}._badge_b4vo7_1[data-size=sm]{font-weight:500;font-size:.75rem;line-height:1;padding:.5em;min-width:2em;border-radius:2em}._badge_b4vo7_1[data-variant=subtle]{--dsc-badge-background: var(--ds-color-surface-tinted);--dsc-badge-color: var(--ds-color-text-default)}._badge_b4vo7_1[data-variant=tinted]{--dsc-badge-background: var(--ds-color-surface-active);--dsc-badge-color: var(--ds-color-text-default)}._badge_b4vo7_1[data-variant=base]{--dsc-badge-background: var(--ds-color-base-default);--dsc-badge-color: var(--ds-color-base-contrast-default)}._badge_b4vo7_1[data-variant=text],._badge_b4vo7_1[data-variant=text][data-size=xs],._badge_b4vo7_1[data-variant=text][data-size=sm]{--dsc-badge-background: "transparent";--dsc-badge-color: var(--ds-color-text-subtle);font-size:.875rem;font-weight:400;padding:.5em 0}
1
+ ._badge_yrqxu_1{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex:0 0 auto;max-height:min-content;--dsc-badge-background: var(--ds-color-base-default);--dsc-badge-color: var(--ds-color-base-contrast-default);--dsc-badge-border: var(--ds-color-base-default);border:1px solid transparent;background-color:var(--dsc-badge-background);color:var(--dsc-badge-color);border-color:var(--dsc-badge-border);box-sizing:border-box}._badge_yrqxu_1[data-size=xs]{width:.75rem;height:.75rem;padding:0;border-radius:1em}._badge_yrqxu_1[data-size=xs] ._label_yrqxu_28{color:transparent;width:100%;height:100%}._badge_yrqxu_1[data-size=sm]{font-weight:500;font-size:.75rem;line-height:1;padding:.5em;height:2em;min-width:2em;border-radius:2em}._badge_yrqxu_1[data-variant=subtle]{--dsc-badge-background: var(--ds-color-surface-tinted);--dsc-badge-border: var(--ds-color-surface-tinted);--dsc-badge-color: var(--ds-color-text-default)}._badge_yrqxu_1[data-variant=tinted]{--dsc-badge-background: var(--ds-color-surface-active);--dsc-badge-border: var(--ds-color-surface-active);--dsc-badge-color: var(--ds-color-text-default)}._badge_yrqxu_1[data-variant=base]{--dsc-badge-background: var(--ds-color-base-default);--dsc-badge-border: var(--ds-color-base-default);--dsc-badge-color: var(--ds-color-base-contrast-default)}._badge_yrqxu_1[data-variant=outline]{--dsc-badge-background: transparent;--dsc-badge-border: var(--ds-color-border-subtle);--dsc-badge-color: var(--ds-color-text-subtle)}._badge_yrqxu_1[data-variant=text],._badge_yrqxu_1[data-variant=text][data-size=xs],._badge_yrqxu_1[data-variant=text][data-size=sm]{--dsc-badge-background: transparent;--dsc-badge-border: transparent;--dsc-badge-color: var(--ds-color-text-subtle);font-size:.875rem;font-weight:400;padding:.5em 0}
@@ -1 +1 @@
1
- ._item_cs9p2_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_cs9p2_1[data-size=md]{min-height:56px}._item_cs9p2_1[data-size=md]{min-height:44px}._item_cs9p2_1[data-size=sm]{min-height:40px}._content_cs9p2_40{display:flex;width:100%;align-items:center;column-gap:6px;padding:6px}._item_cs9p2_1{background-color:transparent}._item_cs9p2_1{pointer-events:none}._item_cs9p2_1[data-interactive=true]{pointer-events:all}._item_cs9p2_1:hover,._item_cs9p2_1[data-active=true]{background-color:var(--ds-color-background-tinted)}._item_cs9p2_1[data-active=true]{outline:2px solid black}._item_cs9p2_1[data-selected=true],._item_cs9p2_1:active,[data-variant=subtle] ._item_cs9p2_1:hover{background-color:var(--ds-color-surface-hover)}[data-variant=subtle] ._item_cs9p2_1:active{background-color:var(--ds-color-surface-active)}[data-variant=subtle] ._item_cs9p2_1[data-selected=true]{background-color:var(--ds-color-background-default)}._content_cs9p2_40{display:flex;width:100%;align-items:center;column-gap:.5em}._item_cs9p2_1[aria-disabled=true]{opacity:.5;pointer-events:none;outline:none;box-shadow:none;background-color:transparent}._item_cs9p2_1:not([aria-disabled=true]):focus-visible{box-shadow:var(--_ds--focus, var(--dsc-focus-boxShadow));outline:var(--_ds--focus, var(--dsc-focus-outline))}._item_cs9p2_1:not([aria-disabled=true]):focus-visible *{--_ds--focus: }
1
+ ._item_ygbc3_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_ygbc3_1[data-size=md]{min-height:56px}._item_ygbc3_1[data-size=md]{min-height:44px}._item_ygbc3_1[data-size=sm]{min-height:40px}._content_ygbc3_40{display:flex;width:100%;align-items:center;column-gap:6px;padding:6px}._item_ygbc3_1{background-color:transparent}._item_ygbc3_1{pointer-events:none}._item_ygbc3_1[data-interactive=true]{pointer-events:all}._item_ygbc3_1[data-interactive=true]:hover{background-color:var(--ds-color-surface-hover)}._item_ygbc3_1[data-active=true]{background-color:var(--ds-color-background-tinted)}._item_ygbc3_1[data-active=true]{outline:2px solid black}._item_ygbc3_1[data-selected=true],._item_ygbc3_1:active,[data-variant=subtle] ._item_ygbc3_1:hover{background-color:var(--ds-color-surface-hover)}[data-variant=subtle] ._item_ygbc3_1:active{background-color:var(--ds-color-surface-active)}[data-variant=subtle] ._item_ygbc3_1[data-selected=true]{background-color:var(--ds-color-background-default)}._content_ygbc3_40{display:flex;width:100%;align-items:center;column-gap:.5em}._item_ygbc3_1[aria-disabled=true]{opacity:.5;pointer-events:none;outline:none;box-shadow:none;background-color:transparent}._item_ygbc3_1:not([aria-disabled=true]):focus-visible{box-shadow:var(--_ds--focus, var(--dsc-focus-boxShadow));outline:var(--_ds--focus, var(--dsc-focus-outline))}._item_ygbc3_1:not([aria-disabled=true]):focus-visible *{--_ds--focus: }
@@ -1,7 +1,7 @@
1
1
  import { jsxs as l, jsx as o } from "react/jsx-runtime";
2
+ import { Badge as c } from "../Badge/Badge.js";
2
3
  import "../../index-L8X2o7IH.js";
3
- import { isValidElement as c } from "react";
4
- import { Badge as u } from "../Badge/Badge.js";
4
+ import { isValidElement as u } from "react";
5
5
  import { IconButton as x } from "../Button/IconButton.js";
6
6
  import { ContextMenu as a } from "../ContextMenu/ContextMenu.js";
7
7
  import "../RootProvider/RootProvider.js";
@@ -19,7 +19,7 @@ const V = ({
19
19
  contextMenu: i,
20
20
  loading: p
21
21
  }) => /* @__PURE__ */ l(B, { children: [
22
- r && (r && !p && typeof r == "object" && "label" in r ? /* @__PURE__ */ o(u, { ...r }) : c(r) ? r : null),
22
+ r && (r && !p && typeof r == "object" && "label" in r ? /* @__PURE__ */ o(c, { ...r }) : u(r) ? r : null),
23
23
  !e && n !== "group" && /* @__PURE__ */ o(
24
24
  x,
25
25
  {
@@ -1,36 +1,71 @@
1
1
  "use client";
2
- import { jsxs as m, jsx as c } from "react/jsx-runtime";
3
- import { Icon as s } from "../Icon/Icon.js";
2
+ import { jsx as c, jsxs as d, Fragment as s } from "react/jsx-runtime";
3
+ import { Badge as u } from "../Badge/Badge.js";
4
+ import { Icon as b } from "../Icon/Icon.js";
4
5
  import "../../index-L8X2o7IH.js";
5
- import i, { forwardRef as f } from "react";
6
+ import o, { forwardRef as f } from "react";
6
7
  import "../RootProvider/RootProvider.js";
7
8
  import "../Snackbar/useSnackbar.js";
8
- import { u as d } from "../../useId-BVFxCjkq.js";
9
- import '../../assets/AttachmentLink.css';var p = function(t, n) {
10
- var l = {};
11
- for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (l[e] = t[e]);
9
+ import { u as p } from "../../useId-BVFxCjkq.js";
10
+ import '../../assets/AttachmentLink.css';var h = function(t, a) {
11
+ var n = {};
12
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && a.indexOf(e) < 0 && (n[e] = t[e]);
12
13
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
13
- for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
14
- n.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (l[e[r]] = t[e[r]]);
15
- return l;
14
+ for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
15
+ a.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (n[e[l]] = t[e[l]]);
16
+ return n;
16
17
  };
17
- const u = f((t, n) => {
18
- var { title: l, titleId: e } = t, r = p(t, ["title", "titleId"]);
19
- let o = d();
20
- return o = l ? e || "title-" + o : void 0, i.createElement(
18
+ const _ = f((t, a) => {
19
+ var { title: n, titleId: e } = t, l = h(t, ["title", "titleId"]);
20
+ let r = p();
21
+ return r = n ? e || "title-" + r : void 0, o.createElement(
21
22
  "svg",
22
- 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: n, "aria-labelledby": o }, r),
23
- l ? i.createElement("title", { id: o }, l) : null,
24
- i.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M6.5 3.25c-.69 0-1.25.56-1.25 1.25v15c0 .69.56 1.25 1.25 1.25h11c.69 0 1.25-.56 1.25-1.25V8a.75.75 0 0 0-.22-.53l-4-4a.75.75 0 0 0-.53-.22zm6.75 4.25c0 .69.56 1.25 1.25 1.25h2.75v10.5H6.75V4.75h6.5zm2.94-.25-1.44-1.44v1.44z", clipRule: "evenodd" })
23
+ 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: a, "aria-labelledby": r }, l),
24
+ n ? o.createElement("title", { id: r }, n) : null,
25
+ o.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M6.5 3.25c-.69 0-1.25.56-1.25 1.25v15c0 .69.56 1.25 1.25 1.25h11c.69 0 1.25-.56 1.25-1.25V8a.75.75 0 0 0-.22-.53l-4-4a.75.75 0 0 0-.53-.22zm6.75 4.25c0 .69.56 1.25 1.25 1.25h2.75v10.5H6.75V4.75h6.5zm2.94-.25-1.44-1.44v1.44z", clipRule: "evenodd" })
25
26
  );
26
- }), b = "_link_196mu_1", _ = "_label_196mu_12", v = "_icon_196mu_18", a = {
27
- link: b,
28
- label: _,
29
- icon: v
30
- }, I = ({ icon: t = u, iconAltText: n, href: l, label: e }) => /* @__PURE__ */ m("a", { href: l, className: a.link, target: "_blank", rel: "noreferrer", children: [
31
- /* @__PURE__ */ c(s, { svgElement: t, altText: n, className: a.icon }),
32
- /* @__PURE__ */ c("span", { className: a.label, children: e })
33
- ] });
27
+ });
28
+ var v = function(t, a) {
29
+ var n = {};
30
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && a.indexOf(e) < 0 && (n[e] = t[e]);
31
+ if (t != null && typeof Object.getOwnPropertySymbols == "function")
32
+ for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
33
+ a.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (n[e[l]] = t[e[l]]);
34
+ return n;
35
+ };
36
+ const g = f((t, a) => {
37
+ var { title: n, titleId: e } = t, l = v(t, ["title", "titleId"]);
38
+ let r = p();
39
+ return r = n ? e || "title-" + r : void 0, o.createElement(
40
+ "svg",
41
+ 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: a, "aria-labelledby": r }, l),
42
+ n ? o.createElement("title", { id: r }, n) : null,
43
+ o.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M5.25 4.5c0-.69.56-1.25 1.25-1.25H14a.75.75 0 0 1 .53.22l4 4c.141.14.22.331.22.53v11.5c0 .69-.56 1.25-1.25 1.25h-11c-.69 0-1.25-.56-1.25-1.25zm9.25 4.25c-.69 0-1.25-.56-1.25-1.25V4.75h-6.5v14.5h10.5V8.75zm.25-2.94 1.44 1.44h-1.44zm-.72 6.16a.75.75 0 0 1 0 1.06l-.97.97.97.97a.75.75 0 1 1-1.06 1.06l-.97-.97-.97.97a.75.75 0 1 1-1.06-1.06l.97-.97-.97-.97a.75.75 0 1 1 1.06-1.06l.97.97.97-.97a.75.75 0 0 1 1.06 0", clipRule: "evenodd" })
44
+ );
45
+ }), y = "_item_w0iww_1", O = "_icon_w0iww_9", I = "_link_w0iww_16", j = "_label_w0iww_27", x = "_badge_w0iww_39", E = "_metadata_w0iww_44", i = {
46
+ item: y,
47
+ icon: O,
48
+ link: I,
49
+ label: j,
50
+ badge: x,
51
+ metadata: E
52
+ }, F = ({ icon: t, iconAltText: a, href: n, label: e, metadata: l, badge: r, disabled: m }) => {
53
+ const w = t || m ? g : _;
54
+ return /* @__PURE__ */ c("span", { className: i.item, children: /* @__PURE__ */ d("span", { children: [
55
+ /* @__PURE__ */ d("a", { href: n, "aria-disabled": m, className: i.link, target: "_blank", rel: "noreferrer", children: [
56
+ /* @__PURE__ */ c(b, { svgElement: w, altText: a, className: i.icon }),
57
+ /* @__PURE__ */ c("span", { className: i.label, children: e })
58
+ ] }),
59
+ r && /* @__PURE__ */ d(s, { children: [
60
+ " ",
61
+ /* @__PURE__ */ c(u, { ...r, className: i.badge })
62
+ ] }),
63
+ l && /* @__PURE__ */ d(s, { children: [
64
+ " ",
65
+ /* @__PURE__ */ c("span", { className: i.metadata, children: l })
66
+ ] })
67
+ ] }) });
68
+ };
34
69
  export {
35
- I as AttachmentLink
70
+ F as AttachmentLink
36
71
  };
@@ -1,9 +1,9 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { AttachmentLink as l } from "./AttachmentLink.js";
3
- import '../../assets/AttachmentList.css';const n = "_list_xei16_1", r = "_item_xei16_9", s = {
3
+ import '../../assets/AttachmentList.css';const n = "_list_sdpdt_1", r = "_item_sdpdt_9", i = {
4
4
  list: n,
5
5
  item: r
6
- }, o = ({ items: e }) => e.length ? /* @__PURE__ */ t("ul", { className: s.list, children: e.map((i) => /* @__PURE__ */ t("li", { className: s.item, children: /* @__PURE__ */ t(l, { ...i }) }, i.href)) }) : null;
6
+ }, o = ({ items: s }) => s.length ? /* @__PURE__ */ t("ul", { className: i.list, children: s.map((e) => /* @__PURE__ */ t("li", { className: i.item, children: /* @__PURE__ */ t(l, { ...e }) }, e.href)) }) : null;
7
7
  export {
8
8
  o as AttachmentList
9
9
  };
@@ -1,20 +1,20 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { c } from "../../index-L8X2o7IH.js";
3
- import '../../assets/Badge.css';const n = "_badge_b4vo7_1", m = "_label_b4vo7_22", s = {
4
- badge: n,
2
+ import { c as o } from "../../index-L8X2o7IH.js";
3
+ import '../../assets/Badge.css';const b = "_badge_yrqxu_1", m = "_label_yrqxu_28", s = {
4
+ badge: b,
5
5
  label: m
6
- }, g = ({ label: t, color: l, variant: d = "subtle", theme: o, size: a = "sm", className: r, children: b }) => /* @__PURE__ */ e(
6
+ }, _ = ({ label: t, color: l, variant: r = "subtle", theme: d, size: a = "sm", className: c, children: n }) => /* @__PURE__ */ e(
7
7
  "span",
8
8
  {
9
- className: c(s.badge, r),
9
+ className: o(s.badge, c),
10
10
  "data-color": l,
11
- "data-variant": d,
12
- "data-theme": o,
11
+ "data-variant": r,
12
+ "data-theme": d,
13
13
  "data-size": a,
14
14
  ...a === "xs" && { "aria-hidden": !0 },
15
- children: /* @__PURE__ */ e("span", { className: s.label, children: t || b })
15
+ children: /* @__PURE__ */ e("span", { className: s.label, children: t || n })
16
16
  }
17
17
  );
18
18
  export {
19
- g as Badge
19
+ _ as Badge
20
20
  };
@@ -1,9 +1,9 @@
1
1
  import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
+ import { Badge as x } from "../Badge/Badge.js";
2
3
  import "../../index-L8X2o7IH.js";
3
4
  import "react";
4
- import { Skeleton as x } from "../Skeleton/Skeleton.js";
5
- import { Heading as j } from "../Typography/Heading.js";
6
- import { Badge as D } from "../Badge/Badge.js";
5
+ import { Skeleton as j } from "../Skeleton/Skeleton.js";
6
+ import { Heading as D } from "../Typography/Heading.js";
7
7
  import "../RootProvider/RootProvider.js";
8
8
  import { DialogMetadata as H } from "./DialogMetadata.js";
9
9
  import "../Snackbar/useSnackbar.js";
@@ -25,9 +25,9 @@ const E = ({
25
25
  dueAtLabel: h,
26
26
  activityLog: g
27
27
  }) => /* @__PURE__ */ t(k, { as: "header", spacing: 3, align: "start", children: [
28
- /* @__PURE__ */ r(j, { size: "xl", children: /* @__PURE__ */ t(S, { align: "center", children: [
29
- /* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(x, { loading: i, children: e }) }),
30
- o && /* @__PURE__ */ r(D, { ...o })
28
+ /* @__PURE__ */ r(D, { size: "xl", children: /* @__PURE__ */ t(S, { align: "center", children: [
29
+ /* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(j, { loading: i, children: e }) }),
30
+ o && /* @__PURE__ */ r(x, { ...o })
31
31
  ] }) }),
32
32
  /* @__PURE__ */ r(
33
33
  H,
@@ -1,8 +1,8 @@
1
1
  import { jsx as a, jsxs as c } from "react/jsx-runtime";
2
+ import { Badge as K } from "../Badge/Badge.js";
2
3
  import "../../index-L8X2o7IH.js";
3
4
  import "react";
4
5
  import { Heading as j } from "../Typography/Heading.js";
5
- import { Badge as K } from "../Badge/Badge.js";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import { DialogMetadata as O } from "./DialogMetadata.js";
8
8
  import { DialogByline as P } from "./DialogByline.js";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
+ import { Badge as s } from "../Badge/Badge.js";
2
3
  import "../../index-L8X2o7IH.js";
3
4
  import "react";
4
- import { Badge as s } from "../Badge/Badge.js";
5
5
  import { Byline as l } from "../Byline/Byline.js";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import "../Snackbar/useSnackbar.js";
@@ -3,8 +3,8 @@ import { jsxs as _, jsx as e } from "react/jsx-runtime";
3
3
  import { useRef as b, useEffect as M } from "react";
4
4
  import { useClickOutside as N } from "../../hooks/useClickOutside.js";
5
5
  import { useMenu as R } from "../../hooks/useMenu.js";
6
- import { Icon as T } from "../Icon/Icon.js";
7
6
  import "../../index-L8X2o7IH.js";
7
+ import { Icon as T } from "../Icon/Icon.js";
8
8
  import { ButtonBase as B } from "../Button/ButtonBase.js";
9
9
  import { ButtonIcon as j } from "../Button/ButtonIcon.js";
10
10
  import { useRootContext as z } from "../RootProvider/RootProvider.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as i, jsxs as l } from "react/jsx-runtime";
2
- import { Icon as p } from "../Icon/Icon.js";
3
2
  import "../../index-L8X2o7IH.js";
3
+ import { Icon as p } from "../Icon/Icon.js";
4
4
  import "react";
5
5
  import { IconButton as f } from "../Button/IconButton.js";
6
6
  import "../RootProvider/RootProvider.js";
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsxs as u, jsx as r, Fragment as w } from "react/jsx-runtime";
3
3
  import { c as p } from "../../index-L8X2o7IH.js";
4
+ import { Badge as h } from "../Badge/Badge.js";
4
5
  import m, { forwardRef as x } from "react";
5
6
  import { useIsDesktop as M } from "../../hooks/useIsDesktop.js";
6
- import { Badge as h } from "../Badge/Badge.js";
7
7
  import { ButtonBase as g } from "../Button/ButtonBase.js";
8
8
  import { ButtonLabel as _ } from "../Button/ButtonLabel.js";
9
9
  import { ButtonIcon as d } from "../Button/ButtonIcon.js";
@@ -1,8 +1,8 @@
1
1
  import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
2
  import { c as _ } from "../../index-L8X2o7IH.js";
3
+ import { Badge as I } from "../Badge/Badge.js";
3
4
  import "react";
4
5
  import { Avatar as u } from "../Avatar/Avatar.js";
5
- import { Badge as I } from "../Badge/Badge.js";
6
6
  import { ButtonBase as h } from "../Button/ButtonBase.js";
7
7
  import { ButtonLabel as d } from "../Button/ButtonLabel.js";
8
8
  import { ButtonIcon as f } from "../Button/ButtonIcon.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { isValidElement as f } from "react";
3
- import { Icon as a } from "./Icon.js";
4
3
  import "../../index-L8X2o7IH.js";
4
+ import { Icon as a } from "./Icon.js";
5
5
  import { Avatar as p } from "../Avatar/Avatar.js";
6
6
  import { AvatarGroup as c } from "../Avatar/AvatarGroup.js";
7
7
  import "../RootProvider/RootProvider.js";
@@ -1,8 +1,8 @@
1
1
  import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
2
  import { c as w } from "../../index-L8X2o7IH.js";
3
3
  import { useId as z, isValidElement as A } from "react";
4
- import { Icon as D } from "../Icon/Icon.js";
5
- import { Badge as H } from "../Badge/Badge.js";
4
+ import { Badge as D } from "../Badge/Badge.js";
5
+ import { Icon as H } from "../Icon/Icon.js";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import { ListItemLink as R } from "./ListItemLink.js";
8
8
  import { ListItemLabel as U } from "./ListItemLabel.js";
@@ -47,7 +47,7 @@ import '../../assets/ListItemHeader.css';const O = "_header_29hv7_1", P = "_labe
47
47
  ariaLabel: p,
48
48
  ariaControlsId: x
49
49
  }) => {
50
- const v = c ? l ? J : K : u ? M : void 0, g = () => e && !s && typeof e == "object" && "label" in e ? /* @__PURE__ */ t(H, { ...e, className: o.badge }) : A(e) ? e : null, B = p !== void 0 ? p : typeof n == "string" ? n : void 0, E = z();
50
+ const v = c ? l ? J : K : u ? M : void 0, g = () => e && !s && typeof e == "object" && "label" in e ? /* @__PURE__ */ t(D, { ...e, className: o.badge }) : A(e) ? e : null, B = p !== void 0 ? p : typeof n == "string" ? n : void 0, E = z();
51
51
  return /* @__PURE__ */ i(
52
52
  "div",
53
53
  {
@@ -98,7 +98,7 @@ import '../../assets/ListItemHeader.css';const O = "_header_29hv7_1", P = "_labe
98
98
  _ && !s && /* @__PURE__ */ t("span", { className: o.customControls, children: _ }),
99
99
  g(),
100
100
  v && !r && /* @__PURE__ */ t("span", { className: o.linkIcon, children: /* @__PURE__ */ t(
101
- D,
101
+ H,
102
102
  {
103
103
  svgElement: v,
104
104
  style: {
@@ -1,10 +1,10 @@
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 s, isIconProps as c } from "../Icon/Icon.js";
3
+ import { Badge as c } from "../Badge/Badge.js";
4
+ import { Icon as s, isIconProps as v } from "../Icon/Icon.js";
4
5
  import "../../index-L8X2o7IH.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";
6
+ import { isAvatarProps as l, Avatar as f } from "../Avatar/Avatar.js";
7
+ import { isAvatarGroupProps as _, AvatarGroup as u } from "../Avatar/AvatarGroup.js";
8
8
  import "../RootProvider/RootProvider.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
10
  import { S as N } from "../../XMark-tKk6aExO.js";
@@ -18,8 +18,8 @@ function w(a) {
18
18
  return typeof a == "string" || typeof a == "number" || typeof a == "boolean" || a === null || n(a);
19
19
  }
20
20
  const z = ({ 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: [
21
- 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 }),
22
- p && /* @__PURE__ */ o(u, { ...p, className: t.badge })
21
+ l(r) && /* @__PURE__ */ o(f, { ...r, className: t.avatar }) || _(r) && /* @__PURE__ */ o(u, { ...r, className: t.avatarGroup }) || v(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 }),
22
+ p && /* @__PURE__ */ o(c, { ...p, className: t.badge })
23
23
  ] }) : null;
24
24
  export {
25
25
  z as ListItemIcon
@@ -1,8 +1,8 @@
1
1
  import { jsxs as i, jsx as n } from "react/jsx-runtime";
2
2
  import { isValidElement as C } from "react";
3
- import { Icon as N } from "../Icon/Icon.js";
3
+ import { Badge as N } from "../Badge/Badge.js";
4
+ import { Icon as d } from "../Icon/Icon.js";
4
5
  import "../../index-L8X2o7IH.js";
5
- import { Badge as d } from "../Badge/Badge.js";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import { MenuItemBase as q } from "./MenuItemBase.js";
8
8
  import { MenuItemLabel as x } from "./MenuItemLabel.js";
@@ -34,7 +34,7 @@ import '../../assets/MenuItem.css';const R = "_controls_w98qm_46", U = "_linkIco
34
34
  ariaLabel: M,
35
35
  ...j
36
36
  }) => {
37
- const w = typeof e == "function" ? e() : e, s = a ? c ? L : b : y ? D : void 0, B = () => o && !r && typeof o == "object" && "label" in o ? /* @__PURE__ */ n(d, { ...o, className: m.badge }) : C(o) ? o : null;
37
+ const w = typeof e == "function" ? e() : e, s = a ? c ? L : b : y ? D : void 0, B = () => o && !r && typeof o == "object" && "label" in o ? /* @__PURE__ */ n(N, { ...o, className: m.badge }) : C(o) ? o : null;
38
38
  return /* @__PURE__ */ i(
39
39
  q,
40
40
  {
@@ -63,7 +63,7 @@ import '../../assets/MenuItem.css';const R = "_controls_w98qm_46", U = "_linkIco
63
63
  !r && B(),
64
64
  !r && k,
65
65
  s && /* @__PURE__ */ n("span", { className: m.linkIcon, children: /* @__PURE__ */ n(
66
- N,
66
+ d,
67
67
  {
68
68
  svgElement: s,
69
69
  style: {
@@ -1,17 +1,17 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { c as E } from "../../index-L8X2o7IH.js";
3
- import { useRef as M } from "react";
4
- import '../../assets/MenuItemBase.css';const R = "_item_cs9p2_1", b = "_content_cs9p2_40", c = {
5
- item: R,
6
- content: b
7
- }, A = ({
8
- interactive: s = !0,
9
- ariaLabel: m,
10
- role: o,
2
+ import { c as y } from "../../index-L8X2o7IH.js";
3
+ import { useRef as z } from "react";
4
+ import '../../assets/MenuItemBase.css';const B = "_item_ygbc3_1", E = "_content_ygbc3_40", c = {
5
+ item: B,
6
+ content: E
7
+ }, w = ({
8
+ interactive: m = !0,
9
+ ariaLabel: o,
10
+ role: s,
11
11
  as: i,
12
12
  color: d,
13
- variant: p,
14
- size: f,
13
+ variant: f,
14
+ size: p,
15
15
  className: u,
16
16
  href: _,
17
17
  onClick: t,
@@ -20,24 +20,24 @@ import '../../assets/MenuItemBase.css';const R = "_item_cs9p2_1", b = "_content_
20
20
  hidden: x,
21
21
  selected: v,
22
22
  disabled: a = !1,
23
- children: h,
24
- active: I,
25
- onMouseEnter: N,
26
- dataTestId: j
23
+ children: b,
24
+ active: g,
25
+ onMouseEnter: h,
26
+ dataTestId: I
27
27
  }) => {
28
- const z = i || "a", B = M(null);
28
+ const N = i || "a", j = z(null);
29
29
  return /* @__PURE__ */ r(
30
- z,
30
+ N,
31
31
  {
32
32
  tabIndex: a ? "-1" : l ?? 0,
33
- className: E(c.item, u),
34
- role: o,
35
- "aria-label": m,
36
- "data-interactive": !a && s,
37
- "data-active": I,
38
- "data-size": f,
33
+ className: y(c.item, u),
34
+ role: s,
35
+ "aria-label": o,
36
+ "data-interactive": !a && m,
37
+ "data-active": g,
38
+ "data-size": p,
39
39
  "data-color": d,
40
- "data-variant": p,
40
+ "data-variant": f,
41
41
  "aria-hidden": x,
42
42
  "aria-disabled": a,
43
43
  "data-selected": v,
@@ -46,13 +46,13 @@ import '../../assets/MenuItemBase.css';const R = "_item_cs9p2_1", b = "_content_
46
46
  a || (n.key === "Enter" && (t == null || t()), e == null || e(n));
47
47
  },
48
48
  onClick: t,
49
- onMouseEnter: N,
50
- "data-testid": j,
51
- ref: B,
52
- children: /* @__PURE__ */ r("span", { className: c.content, children: h })
49
+ onMouseEnter: h,
50
+ "data-testid": I,
51
+ ref: j,
52
+ children: /* @__PURE__ */ r("span", { className: c.content, children: b })
53
53
  }
54
54
  );
55
55
  };
56
56
  export {
57
- A as MenuItemBase
57
+ w as MenuItemBase
58
58
  };
@@ -1,10 +1,10 @@
1
1
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
2
2
  import { isValidElement as i } from "react";
3
- import { Icon as s, isIconProps as l } from "../Icon/Icon.js";
3
+ import { Badge as l } from "../Badge/Badge.js";
4
+ import { Icon as s, isIconProps as d } from "../Icon/Icon.js";
4
5
  import "../../index-L8X2o7IH.js";
5
- import { isAvatarProps as d, 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";
6
+ import { isAvatarProps as f, Avatar as v } from "../Avatar/Avatar.js";
7
+ import { isAvatarGroupProps as u, AvatarGroup as _ } from "../Avatar/AvatarGroup.js";
8
8
  import "../RootProvider/RootProvider.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
10
  import { S as b } from "../../XMark-tKk6aExO.js";
@@ -18,8 +18,8 @@ function N(a) {
18
18
  return typeof a == "string" || typeof a == "number" || typeof a == "boolean" || a === null || i(a);
19
19
  }
20
20
  const z = ({ loading: a, size: e, icon: r, theme: m, badge: p }) => r ? a ? /* @__PURE__ */ t("div", { className: o.icon, "data-size": e, children: /* @__PURE__ */ t(s, { svgElement: b, loading: !0 }) }) : /* @__PURE__ */ n("div", { className: o.icon, "data-size": e, children: [
21
- d(r) && /* @__PURE__ */ t(f, { ...r, className: o.avatar }) || v(r) && /* @__PURE__ */ t(u, { ...r, className: o.avatarGroup }) || l(r) && /* @__PURE__ */ t(s, { ...r, theme: (r == null ? void 0 : r.theme) || m }) || N(r) && r || /* @__PURE__ */ t(s, { theme: m, svgElement: r }),
22
- p && /* @__PURE__ */ t(_, { ...p, className: o.badge })
21
+ f(r) && /* @__PURE__ */ t(v, { ...r, className: o.avatar }) || u(r) && /* @__PURE__ */ t(_, { ...r, className: o.avatarGroup }) || d(r) && /* @__PURE__ */ t(s, { ...r, theme: (r == null ? void 0 : r.theme) || m }) || N(r) && r || /* @__PURE__ */ t(s, { theme: m, svgElement: r }),
22
+ p && /* @__PURE__ */ t(l, { ...p, className: o.badge })
23
23
  ] }) : null;
24
24
  export {
25
25
  z as MenuItemIcon
@@ -1,10 +1,10 @@
1
1
  import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
2
  import { isValidElement as p } from "react";
3
+ import "../../index-L8X2o7IH.js";
3
4
  import { isIconProps as i, Icon as m } from "../Icon/Icon.js";
4
5
  import { ProgressIcon as n } from "../Icon/ProgressIcon.js";
5
6
  import { isAvatarProps as c, Avatar as f } from "../Avatar/Avatar.js";
6
7
  import { isAvatarGroupProps as l, AvatarGroup as u } from "../Avatar/AvatarGroup.js";
7
- import "../../index-L8X2o7IH.js";
8
8
  import "../RootProvider/RootProvider.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
10
  import '../../assets/MetaItemIcon.css';const _ = "_media_1pqyq_1", d = "_icon_1pqyq_7", y = "_avatarGroup_1pqyq_11", t = {
@@ -1,7 +1,7 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { isValidElement as p } from "react";
3
- import { Icon as e, isIconProps as m } from "../Icon/Icon.js";
4
3
  import "../../index-L8X2o7IH.js";
4
+ import { Icon as e, isIconProps as m } from "../Icon/Icon.js";
5
5
  import { isAvatarProps as n, Avatar as c } from "../Avatar/Avatar.js";
6
6
  import { isAvatarGroupProps as i, AvatarGroup as v } from "../Avatar/AvatarGroup.js";
7
7
  import "../RootProvider/RootProvider.js";
@@ -1,10 +1,10 @@
1
1
  import { jsx as r, jsxs as o, Fragment as n } from "react/jsx-runtime";
2
2
  import { isValidElement as p } from "react";
3
- import { Icon as e, isIconProps as i } from "../Icon/Icon.js";
3
+ import { Badge as i } from "../Badge/Badge.js";
4
+ import { Icon as e, isIconProps as c } from "../Icon/Icon.js";
4
5
  import "../../index-L8X2o7IH.js";
5
- import { isAvatarProps as c, Avatar as l } from "../Avatar/Avatar.js";
6
- import { isAvatarGroupProps as _, AvatarGroup as f } from "../Avatar/AvatarGroup.js";
7
- import { Badge as v } from "../Badge/Badge.js";
6
+ import { isAvatarProps as l, Avatar as _ } from "../Avatar/Avatar.js";
7
+ import { isAvatarGroupProps as f, AvatarGroup as v } from "../Avatar/AvatarGroup.js";
8
8
  import "../RootProvider/RootProvider.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
10
  import { S as d } from "../../XMark-tKk6aExO.js";
@@ -19,14 +19,14 @@ function z(t) {
19
19
  return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || t === null || p(t);
20
20
  }
21
21
  const B = ({ loading: t, icon: a, badge: m }) => a ? t ? /* @__PURE__ */ r("div", { className: s.icon, children: /* @__PURE__ */ r(e, { svgElement: d, loading: !0 }) }) : /* @__PURE__ */ o("div", { className: s.icon, children: [
22
- c(a) && /* @__PURE__ */ r(l, { ...a, className: s.avatar }) || _(a) && /* @__PURE__ */ r(f, { ...a, className: s.avatarGroup }) || i(a) && /* @__PURE__ */ o(n, { children: [
22
+ l(a) && /* @__PURE__ */ r(_, { ...a, className: s.avatar }) || f(a) && /* @__PURE__ */ r(v, { ...a, className: s.avatarGroup }) || c(a) && /* @__PURE__ */ o(n, { children: [
23
23
  /* @__PURE__ */ r("span", { className: s.shape }),
24
24
  /* @__PURE__ */ r(e, { ...a })
25
25
  ] }) || z(a) && a || /* @__PURE__ */ o(n, { children: [
26
26
  /* @__PURE__ */ r("span", { className: s.shape }),
27
27
  /* @__PURE__ */ r(e, { svgElement: a })
28
28
  ] }),
29
- m && /* @__PURE__ */ r(v, { ...m, size: "xs", variant: "base", className: s.badge })
29
+ m && /* @__PURE__ */ r(i, { ...m, size: "xs", variant: "base", className: s.badge })
30
30
  ] }) : null;
31
31
  export {
32
32
  B as NotificationItemIcon
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as o, jsxs as m } from "react/jsx-runtime";
3
- import { Icon as f } from "../Icon/Icon.js";
4
3
  import "../../index-L8X2o7IH.js";
4
+ import { Icon as f } from "../Icon/Icon.js";
5
5
  import c, { forwardRef as d } from "react";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import "../Snackbar/useSnackbar.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
+ import { Badge as i } from "../Badge/Badge.js";
2
3
  import "../../index-L8X2o7IH.js";
3
4
  import "react";
4
- import { Badge as i } from "../Badge/Badge.js";
5
5
  import "../RootProvider/RootProvider.js";
6
6
  import { MenuItem as s } from "../Menu/MenuItem.js";
7
7
  import { QueryLabel as f } from "./QueryLabel.js";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as r, jsx as s } from "react/jsx-runtime";
2
+ import { Badge as p } from "../Badge/Badge.js";
2
3
  import "../../index-L8X2o7IH.js";
3
4
  import "react";
4
- import { Badge as p } from "../Badge/Badge.js";
5
5
  import { Byline as c } from "../Byline/Byline.js";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import "../Snackbar/useSnackbar.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { isValidElement as n } from "react";
3
- import { Icon as s, isIconProps as p } from "../Icon/Icon.js";
4
3
  import "../../index-L8X2o7IH.js";
4
+ import { Icon as s, isIconProps as p } from "../Icon/Icon.js";
5
5
  import { isAvatarProps as l, Avatar as f } from "../Avatar/Avatar.js";
6
6
  import { isAvatarGroupProps as c, AvatarGroup as u } from "../Avatar/AvatarGroup.js";
7
7
  import "../RootProvider/RootProvider.js";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { jsx as o, jsxs as t, Fragment as g } from "react/jsx-runtime";
3
3
  import { useState as h } from "react";
4
+ import { Badge as v } from "../Badge/Badge.js";
4
5
  import "../../index-L8X2o7IH.js";
5
- import { AttachmentList as v } from "../Attachment/AttachmentList.js";
6
- import { Typography as L } from "../Typography/Typography.js";
7
- import { Badge as T } from "../Badge/Badge.js";
6
+ import { AttachmentList as L } from "../Attachment/AttachmentList.js";
7
+ import { Typography as T } from "../Typography/Typography.js";
8
8
  import "../RootProvider/RootProvider.js";
9
9
  import { SeenByLog as A } from "../Dialog/SeenByLog.js";
10
10
  import { ListItem as S } from "../List/ListItem.js";
@@ -46,7 +46,7 @@ import '../../assets/Transmission.css';const k = "_title_cy7ua_1", w = {
46
46
  className: w.title,
47
47
  children: /* @__PURE__ */ t(g, { children: [
48
48
  /* @__PURE__ */ o("h2", { children: s }),
49
- l && /* @__PURE__ */ o(T, { variant: "tinted", size: "xs", ...f })
49
+ l && /* @__PURE__ */ o(v, { variant: "tinted", size: "xs", ...f })
50
50
  ] }),
51
51
  weight: l ? "bold" : "normal"
52
52
  },
@@ -58,10 +58,10 @@ import '../../assets/Transmission.css';const k = "_title_cy7ua_1", w = {
58
58
  as: "button",
59
59
  ariaLabel: s,
60
60
  children: /* @__PURE__ */ t(_, { padding: 4, spacing: 4, children: [
61
- /* @__PURE__ */ t(L, { size: "md", children: [
61
+ /* @__PURE__ */ t(T, { size: "md", children: [
62
62
  a && /* @__PURE__ */ o("p", { children: a }),
63
63
  r ? typeof n == "function" ? n() : n : null,
64
- (e == null ? void 0 : e.items) && /* @__PURE__ */ o(v, { ...e })
64
+ (e == null ? void 0 : e.items) && /* @__PURE__ */ o(L, { ...e })
65
65
  ] }),
66
66
  d && /* @__PURE__ */ o(A, { ...d })
67
67
  ] })
@@ -1,7 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
+ import { Badge as o } from "../Badge/Badge.js";
2
3
  import "../../index-L8X2o7IH.js";
3
4
  import "react";
4
- import { Badge as o } from "../Badge/Badge.js";
5
5
  import "../RootProvider/RootProvider.js";
6
6
  import "../Snackbar/useSnackbar.js";
7
7
  var i = /* @__PURE__ */ ((r) => (r.information = "information", r.acceptance = "acceptance", r.rejection = "rejection", r.request = "request", r.alert = "alert", r.decision = "decision", r.submission = "submission", r.correction = "correction", r.draft = "draft", r))(i || {});
@@ -33,8 +33,8 @@ declare const meta: {
33
33
  loading?: boolean | undefined;
34
34
  description?: React.ReactNode | import('..').HeadingProps;
35
35
  ariaLabel?: string | undefined;
36
- icon?: import('..').SvgElement | import('..').IconProps | React.ReactNode | import('..').AvatarProps | import('..').AvatarGroupProps;
37
- badge?: React.ReactNode | import('..').BadgeProps;
36
+ icon?: React.ReactNode | import('..').SvgElement | import('..').IconProps | import('..').AvatarProps | import('..').AvatarGroupProps;
37
+ badge?: import('..').BadgeProps | React.ReactNode;
38
38
  linkIcon?: boolean | undefined;
39
39
  containerAs?: React.ElementType | undefined;
40
40
  ref?: React.Ref<HTMLElement> | undefined;
@@ -1,5 +1,8 @@
1
+ import { BadgeProps } from '../Badge';
1
2
  import { SvgElement } from '../Icon';
2
3
  export interface AttachmentLinkProps {
4
+ /** Disabled */
5
+ disabled?: boolean;
3
6
  /** Link url */
4
7
  href: string;
5
8
  /** Label (filename) */
@@ -8,5 +11,9 @@ export interface AttachmentLinkProps {
8
11
  icon?: SvgElement;
9
12
  /** Icon Alt text */
10
13
  iconAltText?: string;
14
+ /** Media type and/or size, etc */
15
+ metadata?: string;
16
+ /** Badge */
17
+ badge?: BadgeProps;
11
18
  }
12
- export declare const AttachmentLink: ({ icon, iconAltText, href, label }: AttachmentLinkProps) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const AttachmentLink: ({ icon, iconAltText, href, label, metadata, badge, disabled }: AttachmentLinkProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ icon, iconAltText, href, label }: import('./AttachmentLink').AttachmentLinkProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ icon, iconAltText, href, label, metadata, badge, disabled }: import('./AttachmentLink').AttachmentLinkProps) => import("react/jsx-runtime").JSX.Element;
5
5
  tags: string[];
6
6
  parameters: {};
7
7
  args: import('./AttachmentLink').AttachmentLinkProps;
@@ -43,4 +43,5 @@ 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 WithAttachmentsMetadata: Story;
46
47
  export declare const WithActions: Story;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: ({ backButton, contextMenu, pageMenu, children }: import('./DialogLayout').DialogLayoutProps) => import("react/jsx-runtime").JSX.Element;
5
+ tags: string[];
6
+ parameters: {};
7
+ };
8
+ export default meta;
9
+ type Story = StoryObj<typeof meta>;
10
+ export declare const Default: Story;
11
+ export declare const WithAnchors: Story;
12
+ export declare const MixedButtonsAndAnchors: Story;
13
+ export declare const WithBaseTheme: Story;
14
+ export declare const WithContextMenu: Story;
@@ -10,4 +10,4 @@ export interface IconOrAvatarProps {
10
10
  avatarGroup?: AvatarGroupProps;
11
11
  badge?: BadgeProps | undefined;
12
12
  }
13
- export declare const IconOrAvatar: ({ loading, size, icon, iconTheme, avatar, avatarGroup }: IconOrAvatarProps) => string | number | bigint | true | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
13
+ export declare const IconOrAvatar: ({ loading, size, icon, iconTheme, avatar, avatarGroup }: IconOrAvatarProps) => string | number | bigint | true | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
@@ -24,7 +24,7 @@ declare const meta: {
24
24
  groupId?: string | undefined;
25
25
  collapsible?: boolean | undefined;
26
26
  expanded?: boolean | undefined;
27
- icon?: import('..').SvgElement | import('..').IconProps | React.ReactNode | import('..').AvatarProps | import('..').AvatarGroupProps;
27
+ icon?: React.ReactNode | import('..').SvgElement | import('..').IconProps | import('..').AvatarProps | import('..').AvatarGroupProps;
28
28
  label?: React.ReactNode;
29
29
  ref?: React.Ref<HTMLElement> | undefined;
30
30
  interactive?: boolean | undefined;
@@ -44,7 +44,7 @@ declare const meta: {
44
44
  highlightWords?: string[] | undefined;
45
45
  select?: import('..').ListItemSelectProps | undefined;
46
46
  linkIcon?: boolean | undefined;
47
- badge?: React.ReactNode | import('..').BadgeProps;
47
+ badge?: import('..').BadgeProps | React.ReactNode;
48
48
  controls?: React.ReactNode;
49
49
  ariaLabel?: string | undefined;
50
50
  href?: string | undefined;
@@ -8,5 +8,5 @@ interface SkeletonProps {
8
8
  children?: ReactNode;
9
9
  className?: string;
10
10
  }
11
- export declare const Skeleton: ({ as, loading, size, variant, className, children, }: SkeletonProps) => string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
11
+ export declare const Skeleton: ({ as, loading, size, variant, className, children, }: SkeletonProps) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
12
12
  export {};
@@ -20,29 +20,29 @@ declare const meta: {
20
20
  seenByLog?: import('..').SeenByLogProps;
21
21
  children?: React.ReactNode | (() => React.ReactElement);
22
22
  border?: import('..').ListItemBorder | undefined;
23
- loading?: boolean | undefined;
24
- size?: import('..').ListItemSize | undefined;
23
+ label?: React.ReactNode | (() => React.ReactElement);
25
24
  color?: import('..').ListItemColor | undefined;
25
+ variant?: import('..').ListItemVariant | undefined;
26
+ size?: import('..').ListItemSize | undefined;
26
27
  className?: string | undefined;
27
28
  ref?: React.Ref<HTMLElement> | undefined;
28
- icon?: import('..').SvgElement | import('..').IconProps | React.ReactNode | import('..').AvatarProps | import('..').AvatarGroupProps;
29
+ loading?: boolean | undefined;
30
+ icon?: React.ReactNode | import('..').SvgElement | import('..').IconProps | import('..').AvatarProps | import('..').AvatarGroupProps;
29
31
  as?: React.ElementType | undefined;
30
- label?: React.ReactNode | (() => React.ReactElement);
31
32
  select?: import('..').ListItemSelectProps | undefined;
32
- variant?: import('..').ListItemVariant | undefined;
33
33
  hidden?: boolean | undefined;
34
34
  expanded?: boolean | undefined;
35
35
  active?: boolean | undefined;
36
36
  disabled?: boolean | undefined;
37
37
  href?: string | undefined;
38
+ tabIndex?: number | undefined;
39
+ onKeyPress?: React.KeyboardEventHandler | undefined;
40
+ onClick?: (() => void) | undefined;
41
+ onMouseEnter?: React.MouseEventHandler<HTMLDivElement> | undefined;
38
42
  controls?: React.ReactNode;
39
43
  selected?: boolean | undefined;
40
44
  description?: React.ReactNode | import('..').HeadingProps;
41
45
  highlightWords?: string[] | undefined;
42
- onClick?: (() => void) | undefined;
43
- tabIndex?: number | undefined;
44
- onKeyPress?: React.KeyboardEventHandler | undefined;
45
- onMouseEnter?: React.MouseEventHandler<HTMLDivElement> | undefined;
46
46
  ariaLabel?: string | undefined;
47
47
  interactive?: boolean | undefined;
48
48
  linkIcon?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altinn/altinn-components",
3
- "version": "0.51.0",
3
+ "version": "0.51.2",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/",