@altinn/altinn-components 0.20.1 → 0.21.0

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 (43) hide show
  1. package/dist/ArrowUp-Cn3ai5t6.js +25 -0
  2. package/dist/assets/ButtonBase.css +1 -1
  3. package/dist/assets/ListItemLabel.css +1 -1
  4. package/dist/assets/TimelineBase.css +1 -1
  5. package/dist/assets/TimelineLink.css +1 -0
  6. package/dist/components/Button/ButtonBase.js +10 -10
  7. package/dist/components/Button/ButtonIcon.js +6 -6
  8. package/dist/components/Byline/Byline.js +12 -11
  9. package/dist/components/Dialog/DialogHistory.js +37 -54
  10. package/dist/components/GlobalMenu/GlobalMenu.js +55 -49
  11. package/dist/components/List/ListItemLabel.js +16 -9
  12. package/dist/components/Timeline/Timeline.js +2 -2
  13. package/dist/components/Timeline/TimelineBase.js +25 -23
  14. package/dist/components/Timeline/TimelineFooter.js +5 -5
  15. package/dist/components/Timeline/TimelineHeader.js +9 -9
  16. package/dist/components/Timeline/TimelineLink.js +39 -0
  17. package/dist/components/Timeline/TimelineSection.js +16 -15
  18. package/dist/components/Timeline/TimelineSegment.js +12 -12
  19. package/dist/components/Timeline/index.js +2 -0
  20. package/dist/components/Transmission/Transmission.js +36 -33
  21. package/dist/components/Transmission/TransmissionTimeline.js +22 -0
  22. package/dist/components/Transmission/TransmissionTimelineSegment.js +63 -0
  23. package/dist/components/Transmission/index.js +7 -3
  24. package/dist/components/index.js +91 -85
  25. package/dist/index.js +96 -90
  26. package/dist/types/lib/components/Button/ButtonBase.d.ts +1 -1
  27. package/dist/types/lib/components/Button/ButtonIcon.d.ts +3 -2
  28. package/dist/types/lib/components/Byline/Byline.d.ts +1 -1
  29. package/dist/types/lib/components/Byline/Byline.stories.d.ts +1 -1
  30. package/dist/types/lib/components/List/ListItemLabel.d.ts +2 -1
  31. package/dist/types/lib/components/Page/Flex.d.ts +2 -3
  32. package/dist/types/lib/components/Timeline/TimelineBase.d.ts +5 -4
  33. package/dist/types/lib/components/Timeline/TimelineLink.d.ts +9 -0
  34. package/dist/types/lib/components/Timeline/TimelineSection.d.ts +3 -2
  35. package/dist/types/lib/components/Timeline/TimelineSection.stories.d.ts +1 -1
  36. package/dist/types/lib/components/Timeline/TimelineSegment.d.ts +3 -3
  37. package/dist/types/lib/components/Timeline/index.d.ts +1 -0
  38. package/dist/types/lib/components/Transmission/Transmission.d.ts +2 -6
  39. package/dist/types/lib/components/Transmission/TransmissionTimeline.d.ts +10 -0
  40. package/dist/types/lib/components/Transmission/TransmissionTimeline.stories.d.ts +74 -0
  41. package/dist/types/lib/components/Transmission/TransmissionTimelineSegment.d.ts +14 -0
  42. package/dist/types/lib/components/Transmission/index.d.ts +2 -0
  43. package/package.json +1 -1
@@ -0,0 +1,25 @@
1
+ "use client";
2
+ import * as a from "react";
3
+ import { forwardRef as i } from "react";
4
+ import { u as f } from "./useId-CsCRkvK3.js";
5
+ var d = function(t, o) {
6
+ var l = {};
7
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && o.indexOf(e) < 0 && (l[e] = t[e]);
8
+ if (t != null && typeof Object.getOwnPropertySymbols == "function")
9
+ for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
10
+ o.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (l[e[r]] = t[e[r]]);
11
+ return l;
12
+ };
13
+ const m = i((t, o) => {
14
+ var { title: l, titleId: e } = t, r = d(t, ["title", "titleId"]);
15
+ let n = f();
16
+ return n = l ? e || "title-" + n : void 0, a.createElement(
17
+ "svg",
18
+ Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": n }, r),
19
+ l ? a.createElement("title", { id: n }, l) : null,
20
+ a.createElement("path", { fill: "currentColor", d: "M12.53 4.47a.75.75 0 0 0-1.06 0l-4.5 4.5a.75.75 0 0 0 1.06 1.06l3.22-3.22V19a.75.75 0 0 0 1.5 0V6.81l3.22 3.22a.75.75 0 1 0 1.06-1.06z" })
21
+ );
22
+ });
23
+ export {
24
+ m as S
25
+ };
@@ -1 +1 @@
1
- ._button_mffb6_1{border:1px solid;border-color:transparent;margin:0;padding:0;width:auto;overflow:visible;background:transparent;text-decoration:none;color:inherit;font:inherit;text-align:inherit;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}._button_mffb6_1:disabled{opacity:.5;pointer-events:none}._button_mffb6_1[data-size=xs]{height:1.875rem}._button_mffb6_1[data-size=sm]{height:2.25rem}._button_mffb6_1[data-size=md]{height:2.75rem}._button_mffb6_1[data-size=lg]{height:3.5rem}._button_mffb6_1[data-variant=solid]{background-color:var(--ds-color-base-default);border-color:var(--ds-color-base-default);color:var(--ds-color-contrast-default)}._button_mffb6_1[data-variant=solid]:hover{background-color:var(--ds-color-base-hover)}._button_mffb6_1[data-variant=solid]:active{background-color:var(--ds-color-base-active)}._button_mffb6_1[data-variant=outline],._button_mffb6_1[data-variant=dotted]{border-color:var(--ds-color-base-default)}._button_mffb6_1[data-variant=outline]{border-style:solid}._button_mffb6_1[data-variant=dotted]{border-style:dotted}._button_mffb6_1[data-variant=text]{border-color:transparent;color:var(--ds-color-text-subtle)}._button_mffb6_1[data-variant=outline]:hover,._button_mffb6_1[data-variant=dotted]:hover,._button_mffb6_1[data-variant=text]:hover{background-color:var(--ds-color-surface-default);color:var(--ds-color-text-default)}._button_mffb6_1[data-variant=outline]:active,._button_mffb6_1[data-variant=dotted]:active,._button_mffb6_1[data-variant=text]:active{background-color:var(--ds-color-surface-active)}
1
+ ._button_ppafq_1{border:1px solid;border-color:transparent;margin:0;padding:0;width:auto;overflow:visible;background:transparent;text-decoration:none;color:inherit;font:inherit;text-align:inherit;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}._button_ppafq_1:disabled{opacity:.5;pointer-events:none}._button_ppafq_1[data-size=xs]{height:1.875rem}._button_ppafq_1[data-size=sm]{height:2.25rem}._button_ppafq_1[data-size=md]{height:2.75rem}._button_ppafq_1[data-size=lg]{height:3.5rem}._button_ppafq_1[data-variant=solid]{background-color:var(--ds-color-base-default);border-color:var(--ds-color-base-default);color:var(--ds-color-contrast-default)}._button_ppafq_1[data-variant=solid]:hover{background-color:var(--ds-color-base-hover)}._button_ppafq_1[data-variant=solid]:active{background-color:var(--ds-color-base-active)}._button_ppafq_1[data-variant=outline],._button_ppafq_1[data-variant=dotted]{border-color:var(--ds-color-base-default)}._button_ppafq_1[data-variant=outline]{border-style:solid}._button_ppafq_1[data-variant=dotted]{border-style:dotted}._button_ppafq_1[data-variant=text]{border-color:transparent;color:var(--ds-color-text-subtle)}._button_ppafq_1[data-variant=outline]:hover,._button_ppafq_1[data-variant=dotted]:hover,._button_ppafq_1[data-variant=text]:hover{background-color:var(--ds-color-surface-default);color:var(--ds-color-text-default)}._button_ppafq_1[data-variant=outline]:active,._button_ppafq_1[data-variant=dotted]:active,._button_ppafq_1[data-variant=text]:active{background-color:var(--ds-color-surface-active)}._button_ppafq_1[data-variant=link]{border:none;color:var(--ds-color-text-subtle)}._button_ppafq_1[data-variant=link]:hover{color:var(--ds-color-base-hover)}
@@ -1 +1 @@
1
- ._label_lkhmo_3{width:100%}._label_lkhmo_3[data-size=xs]{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}._label_lkhmo_3[data-size=sm],._label_lkhmo_3[data-size=md],._label_lkhmo_3[data-size=lg],._label_lkhmo_3[data-size=xl]{display:flex;flex-direction:column;row-gap:.125rem}._label_lkhmo_3[data-size=xs],._label_lkhmo_3[data-size=sm],._label_lkhmo_3[data-size=md]{font-size:1rem}._label_lkhmo_3[data-size=lg]{font-size:1.125rem}._label_lkhmo_3[data-size=xl]{font-size:1.25rem}._title_lkhmo_44{display:inline;font-size:1em;font-weight:600;line-height:1.125;margin:0}._description_lkhmo_52{display:inline;font-weight:400;line-height:1.125;color:var(--ds-color-text-subtle);margin:0}._description_lkhmo_52[data-size=xs],._description_lkhmo_52[data-size=sm],._description_lkhmo_52[data-size=md],._description_lkhmo_52[data-size=lg],._description_lkhmo_52[data-size=xl]{font-size:.875rem;line-height:1rem}[data-theme=base] ._description_lkhmo_52{color:var(--ds-color-contrast-subtle)}[data-theme=surface] ._description_lkhmo_52{color:var(--ds-color-text-default)}
1
+ ._label_fiqmy_3{width:100%}._label_fiqmy_3[data-size=xs]{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}._label_fiqmy_3[data-size=sm],._label_fiqmy_3[data-size=md],._label_fiqmy_3[data-size=lg],._label_fiqmy_3[data-size=xl]{display:flex;flex-direction:column;row-gap:.125rem}._label_fiqmy_3[data-size=xs],._label_fiqmy_3[data-size=sm],._label_fiqmy_3[data-size=md]{font-size:1rem}._label_fiqmy_3[data-size=lg]{font-size:1.125rem}._label_fiqmy_3[data-size=xl]{font-size:1.25rem}._title_fiqmy_43{display:inline;font-size:1em;line-height:1.125;margin:0}._title_fiqmy_43[data-weight=bold]{font-weight:600}._title_fiqmy_43[data-weight=normal]{font-weight:400}._description_fiqmy_58{display:inline;font-weight:400;line-height:1.125;color:var(--ds-color-text-subtle);margin:0}._description_fiqmy_58[data-size=xs],._description_fiqmy_58[data-size=sm],._description_fiqmy_58[data-size=md],._description_fiqmy_58[data-size=lg],._description_fiqmy_58[data-size=xl]{font-size:.875rem;line-height:1rem}[data-theme=base] ._description_fiqmy_58{color:var(--ds-color-contrast-subtle)}[data-theme=surface] ._description_fiqmy_58{color:var(--ds-color-text-default)}
@@ -1 +1 @@
1
- ._section_si67h_1{width:100%;display:flex;column-gap:.5rem;min-height:1.5rem}._sidebar_si67h_8{flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;row-gap:.375rem;width:2.25rem}._content_si67h_18{flex-grow:1;display:flex;flex-direction:column}._border_si67h_24{border-left:.25rem solid;border-color:var(--ds-color-surface-default);flex-grow:1}._icon_si67h_30{color:var(--ds-color-surface-active)}._border_si67h_24{border-color:var(--ds-color-surface-active);border-width:.125rem;flex-grow:1}._border_si67h_24[data-variant=hidden]{display:none}._border_si67h_24[data-variant=strong]{border-width:2px;border-style:solid}._border_si67h_24[data-variant=solid]{border-width:1px;border-style:solid}._border_si67h_24[data-variant=dashed]{border-width:1px;border-style:dashed}._border_si67h_24[data-loading=true]{border-width:1px;border-style:dashed;border-color:var(--ds-color-border-subtle)}
1
+ ._section_et0gx_1{width:100%;display:flex;column-gap:.5rem;min-height:1.5rem}._sidebar_et0gx_8{flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;row-gap:.375rem;width:2.25rem}._sidebar_et0gx_8[data-level="2"]{width:1.5rem}._content_et0gx_22{flex-grow:1;display:flex;flex-direction:column}._border_et0gx_28{border-left:.25rem solid;border-color:var(--ds-color-surface-default);flex-grow:1}._icon_et0gx_34{color:var(--ds-color-surface-active)}._border_et0gx_28{border-color:var(--ds-color-surface-active);border-width:.125rem;flex-grow:1}._border_et0gx_28[data-variant=hidden]{display:none}._border_et0gx_28[data-variant=strong]{border-width:2px;border-style:solid}._border_et0gx_28[data-variant=solid]{border-width:1px;border-style:solid}._border_et0gx_28[data-variant=dashed]{border-width:1px;border-style:dashed}._border_et0gx_28[data-loading=true]{border-width:1px;border-style:dashed;border-color:var(--ds-color-border-subtle)}
@@ -0,0 +1 @@
1
+ ._button_18xbc_1{display:inline-flex;align-items:center;column-gap:.125em;height:1.5rem;align-self:flex-start}._reverse_18xbc_9{flex-direction:row-reverse}._icon_18xbc_13{font-size:1.25rem;width:1.5rem;height:1.5rem}._label_18xbc_19{font-size:14px;font-weight:400;line-height:1.125rem;padding:.1875rem 0}
@@ -1,7 +1,7 @@
1
- import { jsx as l } from "react/jsx-runtime";
1
+ import { jsx as p } from "react/jsx-runtime";
2
2
  import { c as u } from "../../index-L8X2o7IH.js";
3
- import '../../assets/ButtonBase.css';const i = "_button_mffb6_1", f = {
4
- button: i
3
+ import '../../assets/ButtonBase.css';const b = "_button_ppafq_1", i = {
4
+ button: b
5
5
  }, B = ({
6
6
  as: o,
7
7
  color: a,
@@ -10,22 +10,22 @@ import '../../assets/ButtonBase.css';const i = "_button_mffb6_1", f = {
10
10
  disabled: t = !1,
11
11
  ariaLabel: e,
12
12
  size: r,
13
- selected: p,
13
+ selected: d,
14
14
  variant: c,
15
- tabIndex: m = 0,
16
- ...b
17
- }) => /* @__PURE__ */ l(
15
+ tabIndex: l = 0,
16
+ ...m
17
+ }) => /* @__PURE__ */ p(
18
18
  o || "button",
19
19
  {
20
- tabIndex: m,
20
+ tabIndex: l,
21
21
  "data-size": r,
22
22
  "data-variant": c,
23
23
  "data-color": a,
24
24
  "aria-disabled": t,
25
25
  disabled: t,
26
- className: u(f.button, n),
26
+ className: u(i.button, n),
27
27
  "aria-label": e,
28
- ...b,
28
+ ...m,
29
29
  children: s
30
30
  }
31
31
  );
@@ -1,13 +1,13 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { Icon as r } from "../Icon/Icon.js";
3
- import "../../index-L8X2o7IH.js";
2
+ import { c } from "../../index-L8X2o7IH.js";
3
+ import { Icon as m } from "../Icon/Icon.js";
4
4
  import "react";
5
5
  import "../RootProvider/RootProvider.js";
6
6
  import "../Search/AutocompleteBase.js";
7
7
  import "../Snackbar/useSnackbar.js";
8
- import '../../assets/ButtonIcon.css';const c = "_icon_ablit_1", m = {
9
- icon: c
10
- }, d = ({ size: t, icon: i, iconAltText: n }) => /* @__PURE__ */ o("span", { className: m.icon, "data-size": t, children: /* @__PURE__ */ o(r, { svgElement: i, altText: n }) });
8
+ import '../../assets/ButtonIcon.css';const s = "_icon_ablit_1", e = {
9
+ icon: s
10
+ }, u = ({ className: t, size: i, icon: n, iconAltText: r }) => /* @__PURE__ */ o("span", { className: c(e.icon, t), "data-size": i, children: /* @__PURE__ */ o(m, { svgElement: n, altText: r }) });
11
11
  export {
12
- d as ButtonIcon
12
+ u as ButtonIcon
13
13
  };
@@ -1,16 +1,16 @@
1
- import { jsxs as p, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as b, jsx as e } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
- import { Avatar as b } from "../Avatar/Avatar.js";
5
- import { AvatarGroup as d } from "../Avatar/AvatarGroup.js";
4
+ import { Avatar as d } from "../Avatar/Avatar.js";
5
+ import { AvatarGroup as y } from "../Avatar/AvatarGroup.js";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import { Skeleton as i } from "../Skeleton/Skeleton.js";
8
8
  import "../Search/AutocompleteBase.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import '../../assets/Byline.css';const y = "_byline_160ic_1", _ = "_label_160ic_7", t = {
11
- byline: y,
12
- label: _
13
- }, B = ({
10
+ import '../../assets/Byline.css';const _ = "_byline_160ic_1", N = "_label_160ic_7", t = {
11
+ byline: _,
12
+ label: N
13
+ }, S = ({
14
14
  loading: r,
15
15
  color: m = "neutral",
16
16
  size: l = "xs",
@@ -18,11 +18,12 @@ import '../../assets/Byline.css';const y = "_byline_160ic_1", _ = "_label_160ic_
18
18
  avatarGroup: o,
19
19
  datetime: n,
20
20
  children: s,
21
- as: c
22
- }) => /* @__PURE__ */ p(c || "div", { className: t.byline, "data-color": m, "data-size": l, children: [
23
- (o || a) && /* @__PURE__ */ e(i, { variant: "circle", className: t.avatar, loading: r, children: o ? /* @__PURE__ */ e(d, { ...o, size: l, className: t.avatar }) : a && /* @__PURE__ */ e(b, { ...a, size: l, className: t.avatar }) }),
21
+ as: c,
22
+ ...p
23
+ }) => /* @__PURE__ */ b(c || "div", { ...p, className: t.byline, "data-color": m, "data-size": l, children: [
24
+ (o || a) && /* @__PURE__ */ e(i, { variant: "circle", className: t.avatar, loading: r, children: o ? /* @__PURE__ */ e(y, { ...o, size: l, className: t.avatar }) : a && /* @__PURE__ */ e(d, { ...a, size: l, className: t.avatar }) }),
24
25
  /* @__PURE__ */ e("time", { "data-size": l, dateTime: n, className: t.label, children: /* @__PURE__ */ e(i, { loading: r, children: s }) })
25
26
  ] });
26
27
  export {
27
- B as Byline
28
+ S as Byline
28
29
  };
@@ -1,55 +1,38 @@
1
1
  "use client";
2
- import { jsxs as d, jsx as a } from "react/jsx-runtime";
3
- import * as i from "react";
4
- import { forwardRef as m, useState as g, createElement as y } from "react";
5
- import { Icon as b } from "../Icon/Icon.js";
2
+ import { jsxs as f, jsx as i } from "react/jsx-runtime";
3
+ import * as s from "react";
4
+ import { forwardRef as p, useState as g, createElement as u } from "react";
5
+ import { Icon as y } from "../Icon/Icon.js";
6
6
  import "../../index-L8X2o7IH.js";
7
7
  import { ButtonBase as h } from "../Button/ButtonBase.js";
8
8
  import "../RootProvider/RootProvider.js";
9
- import { DialogActivity as w } from "./DialogActivity.js";
9
+ import { DialogActivity as v } from "./DialogActivity.js";
10
10
  import "../Search/AutocompleteBase.js";
11
11
  import "../Snackbar/useSnackbar.js";
12
- import { Timeline as v } from "../Timeline/Timeline.js";
13
- import { TimelineSection as O } from "../Timeline/TimelineSection.js";
14
- import { u as p } from "../../useId-CsCRkvK3.js";
15
- import '../../assets/DialogHistory.css';var x = function(t, n) {
12
+ import { Timeline as w } from "../Timeline/Timeline.js";
13
+ import { TimelineSection as x } from "../Timeline/TimelineSection.js";
14
+ import { S as b } from "../../ArrowUp-Cn3ai5t6.js";
15
+ import { u as O } from "../../useId-CsCRkvK3.js";
16
+ import '../../assets/DialogHistory.css';var E = function(e, l) {
16
17
  var r = {};
17
- for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
18
- if (t != null && typeof Object.getOwnPropertySymbols == "function")
19
- for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
20
- n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
18
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && l.indexOf(t) < 0 && (r[t] = e[t]);
19
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
20
+ for (var o = 0, t = Object.getOwnPropertySymbols(e); o < t.length; o++)
21
+ l.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (r[t[o]] = e[t[o]]);
21
22
  return r;
22
23
  };
23
- const I = m((t, n) => {
24
- var { title: r, titleId: e } = t, l = x(t, ["title", "titleId"]);
25
- let o = p();
26
- return o = r ? e || "title-" + o : void 0, i.createElement(
24
+ const I = p((e, l) => {
25
+ var { title: r, titleId: t } = e, o = E(e, ["title", "titleId"]);
26
+ let n = O();
27
+ return n = r ? t || "title-" + n : void 0, s.createElement(
27
28
  "svg",
28
- 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 }, l),
29
- r ? i.createElement("title", { id: o }, r) : null,
30
- i.createElement("path", { fill: "currentColor", d: "M12.75 5a.75.75 0 0 0-1.5 0v12.19l-3.22-3.22a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l4.5-4.5a.75.75 0 1 0-1.06-1.06l-3.22 3.22z" })
29
+ 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: l, "aria-labelledby": n }, o),
30
+ r ? s.createElement("title", { id: n }, r) : null,
31
+ s.createElement("path", { fill: "currentColor", d: "M12.75 5a.75.75 0 0 0-1.5 0v12.19l-3.22-3.22a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l4.5-4.5a.75.75 0 1 0-1.06-1.06l-3.22 3.22z" })
31
32
  );
32
- });
33
- var j = function(t, n) {
34
- var r = {};
35
- for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
36
- if (t != null && typeof Object.getOwnPropertySymbols == "function")
37
- for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
38
- n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
39
- return r;
40
- };
41
- const E = m((t, n) => {
42
- var { title: r, titleId: e } = t, l = j(t, ["title", "titleId"]);
43
- let o = p();
44
- return o = r ? e || "title-" + o : void 0, i.createElement(
45
- "svg",
46
- 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 }, l),
47
- r ? i.createElement("title", { id: o }, r) : null,
48
- i.createElement("path", { fill: "currentColor", d: "M12.53 4.47a.75.75 0 0 0-1.06 0l-4.5 4.5a.75.75 0 0 0 1.06 1.06l3.22-3.22V19a.75.75 0 0 0 1.5 0V6.81l3.22 3.22a.75.75 0 1 0 1.06-1.06z" })
49
- );
50
- }), _ = "_toggle_1it16_1", S = {
51
- toggle: _
52
- }, c = ({ expanded: t, children: n, onClick: r }) => /* @__PURE__ */ d(
33
+ }), j = "_toggle_1it16_1", S = {
34
+ toggle: j
35
+ }, c = ({ expanded: e, children: l, onClick: r }) => /* @__PURE__ */ f(
53
36
  h,
54
37
  {
55
38
  className: S.toggle,
@@ -57,24 +40,24 @@ const E = m((t, n) => {
57
40
  onClick: r,
58
41
  style: { display: "inline-flex", alignItems: "center" },
59
42
  children: [
60
- n,
61
- /* @__PURE__ */ a(b, { svgElement: t ? E : I, size: "sm" })
43
+ l,
44
+ /* @__PURE__ */ i(y, { svgElement: e ? b : I, size: "sm" })
62
45
  ]
63
46
  }
64
- ), N = ({
65
- items: t,
66
- collapsible: n = !1,
47
+ ), U = ({
48
+ items: e,
49
+ collapsible: l = !1,
67
50
  expandLabel: r = "Expand history",
68
- collapseLabel: e = "Collapse history"
51
+ collapseLabel: t = "Collapse history"
69
52
  }) => {
70
- const [l, o] = g(!1), s = () => {
71
- o((f) => !f);
53
+ const [o, n] = g(!1), m = () => {
54
+ n((a) => !a);
72
55
  };
73
- return t ? l || !n ? /* @__PURE__ */ d(v, { children: [
74
- t.map((f, u) => /* @__PURE__ */ y(w, { ...f, key: u })),
75
- n && /* @__PURE__ */ a(c, { expanded: !0, onClick: s, children: e })
76
- ] }) : /* @__PURE__ */ a(O, { border: "dashed", children: /* @__PURE__ */ a(c, { onClick: s, children: r }) }) : null;
56
+ return e ? o || !l ? /* @__PURE__ */ f(w, { children: [
57
+ e.map((a, d) => /* @__PURE__ */ u(v, { ...a, key: d })),
58
+ l && /* @__PURE__ */ i(c, { expanded: !0, onClick: m, children: t })
59
+ ] }) : /* @__PURE__ */ i(x, { border: "dashed", children: /* @__PURE__ */ i(c, { onClick: m, children: r }) }) : null;
77
60
  };
78
61
  export {
79
- N as DialogHistory
62
+ U as DialogHistory
80
63
  };
@@ -1,71 +1,77 @@
1
1
  "use client";
2
- import { jsxs as a, jsx as r, Fragment as T } from "react/jsx-runtime";
3
- import { useState as j, useMemo as A } from "react";
2
+ import { jsxs as i, jsx as r, Fragment as f } from "react/jsx-runtime";
3
+ import { useState as F, useMemo as L } from "react";
4
4
  import "../../index-L8X2o7IH.js";
5
5
  import "../RootProvider/RootProvider.js";
6
- import { AccountMenu as F } from "./AccountMenu.js";
7
- import { AccountButton as L } from "./AccountButton.js";
8
- import { BackButton as H } from "./BackButton.js";
9
- import { LogoutButton as I } from "./LogoutButton.js";
6
+ import { AccountMenu as H } from "./AccountMenu.js";
7
+ import { AccountButton as I } from "./AccountButton.js";
8
+ import { BackButton as W } from "./BackButton.js";
9
+ import { LogoutButton as M } from "./LogoutButton.js";
10
10
  import "../Search/AutocompleteBase.js";
11
11
  import "../Snackbar/useSnackbar.js";
12
- import { MenuListItem as m } from "../Menu/MenuBase.js";
13
- import { Menu as h } from "../Menu/Menu.js";
14
- import { GlobalMenuBase as l, GlobalMenuHeader as g, GlobalMenuFooter as W } from "./GlobalMenuBase.js";
12
+ import { MenuListItem as n } from "../Menu/MenuBase.js";
13
+ import { Menu as k } from "../Menu/Menu.js";
14
+ import { GlobalMenuBase as c, GlobalMenuHeader as g, GlobalMenuFooter as b } from "./GlobalMenuBase.js";
15
15
  const S = ({
16
- accounts: c = [],
17
- accountGroups: M = {},
18
- accountSearch: k,
19
- items: p = [],
20
- groups: u,
21
- changeLabel: b = "Change",
16
+ accounts: p = [],
17
+ accountGroups: v = {},
18
+ accountSearch: x,
19
+ items: d = [],
20
+ groups: s,
21
+ changeLabel: G = "Change",
22
22
  backLabel: B = "Back",
23
- currentAccount: i,
24
- onSelectAccount: o,
25
- onClose: e,
26
- logoutButton: s
23
+ currentAccount: m,
24
+ onSelectAccount: l,
25
+ onClose: t,
26
+ logoutButton: a
27
27
  }) => {
28
- const [x, G] = j(!1), n = () => {
29
- G((t) => !t);
30
- }, v = (t) => {
31
- n(), e == null || e(), o == null || o(t);
32
- }, d = A(() => p.map((t) => ({
33
- ...t,
28
+ const [T, j] = F(!1), o = () => {
29
+ j((e) => !e);
30
+ }, A = (e) => {
31
+ o(), t == null || t(), l == null || l(e);
32
+ }, h = L(() => d.map((e) => ({
33
+ ...e,
34
34
  onClick: () => {
35
- var f;
36
- (f = t.onClick) == null || f.call(t), e == null || e();
35
+ var u;
36
+ (u = e.onClick) == null || u.call(e), t == null || t();
37
37
  }
38
- })), [p, e]);
39
- return x ? /* @__PURE__ */ a(l, { children: [
40
- /* @__PURE__ */ r(g, { children: /* @__PURE__ */ r(H, { onClick: n, label: B }) }),
41
- /* @__PURE__ */ r(m, { as: "div", role: "separator" }),
38
+ })), [d, t]);
39
+ return T ? /* @__PURE__ */ i(c, { children: [
40
+ /* @__PURE__ */ r(g, { children: /* @__PURE__ */ r(W, { onClick: o, label: B }) }),
41
+ /* @__PURE__ */ r(n, { as: "div", role: "separator" }),
42
42
  /* @__PURE__ */ r(
43
- F,
43
+ H,
44
44
  {
45
- currentAccount: i,
46
- accounts: c,
47
- accountGroups: M,
48
- accountSearch: k,
49
- onSelectAccount: v
45
+ currentAccount: m,
46
+ accounts: p,
47
+ accountGroups: v,
48
+ accountSearch: x,
49
+ onSelectAccount: A
50
50
  }
51
51
  )
52
- ] }) : i ? /* @__PURE__ */ a(l, { children: [
52
+ ] }) : m ? /* @__PURE__ */ i(c, { children: [
53
53
  /* @__PURE__ */ r(g, { children: /* @__PURE__ */ r(
54
- L,
54
+ I,
55
55
  {
56
- account: i,
57
- linkText: b,
58
- multipleAccounts: c.length > 1,
59
- onClick: n
56
+ account: m,
57
+ linkText: G,
58
+ multipleAccounts: p.length > 1,
59
+ onClick: o
60
60
  }
61
61
  ) }),
62
- /* @__PURE__ */ r(m, { as: "div", role: "separator" }),
63
- /* @__PURE__ */ r(h, { groups: u, items: d, theme: "default" }),
64
- s && /* @__PURE__ */ a(T, { children: [
65
- /* @__PURE__ */ r(m, { as: "div", role: "separator" }),
66
- /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(I, { ...s }) })
62
+ /* @__PURE__ */ r(n, { as: "div", role: "separator" }),
63
+ /* @__PURE__ */ r(k, { groups: s, items: h, theme: "default" }),
64
+ a && /* @__PURE__ */ i(f, { children: [
65
+ /* @__PURE__ */ r(n, { as: "div", role: "separator" }),
66
+ /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(M, { ...a }) })
67
67
  ] })
68
- ] }) : /* @__PURE__ */ r(l, { children: /* @__PURE__ */ r(h, { groups: u, items: d }) });
68
+ ] }) : /* @__PURE__ */ i(c, { children: [
69
+ /* @__PURE__ */ r(k, { groups: s, items: h }),
70
+ a && /* @__PURE__ */ i(f, { children: [
71
+ /* @__PURE__ */ r(n, { as: "div", role: "separator" }),
72
+ /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(M, { ...a }) })
73
+ ] })
74
+ ] });
69
75
  };
70
76
  export {
71
77
  S as GlobalMenu
@@ -1,14 +1,21 @@
1
- import { jsx as e, jsxs as o, Fragment as r } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as o, Fragment as m } from "react/jsx-runtime";
2
2
  import { Skeleton as c } from "../Skeleton/Skeleton.js";
3
- import '../../assets/ListItemLabel.css';const m = "_label_lkhmo_3", d = "_title_lkhmo_44", h = "_description_lkhmo_52", l = {
4
- label: m,
5
- title: d,
6
- description: h
7
- }, b = ({ loading: s = !1, size: t = "sm", title: n, description: a, children: i }) => /* @__PURE__ */ e("span", { className: l.label, "data-size": t, children: i || /* @__PURE__ */ o(r, { children: [
8
- /* @__PURE__ */ e("h2", { className: l.title, "data-size": t, children: /* @__PURE__ */ e(c, { loading: s, children: n }) }),
3
+ import '../../assets/ListItemLabel.css';const d = "_label_fiqmy_3", _ = "_title_fiqmy_43", p = "_description_fiqmy_58", l = {
4
+ label: d,
5
+ title: _,
6
+ description: p
7
+ }, f = ({
8
+ loading: s = !1,
9
+ size: t = "sm",
10
+ title: n,
11
+ weight: r = "bold",
12
+ description: i,
13
+ children: a
14
+ }) => /* @__PURE__ */ e("span", { className: l.label, "data-size": t, children: a || /* @__PURE__ */ o(m, { children: [
15
+ /* @__PURE__ */ e("h2", { className: l.title, "data-size": t, "data-weight": r, children: /* @__PURE__ */ e(c, { loading: s, children: n }) }),
9
16
  " ",
10
- a && /* @__PURE__ */ e("p", { className: l.description, "data-size": t, children: /* @__PURE__ */ e(c, { loading: s, children: a }) })
17
+ i && /* @__PURE__ */ e("p", { className: l.description, "data-size": t, children: /* @__PURE__ */ e(c, { loading: s, children: i }) })
11
18
  ] }) });
12
19
  export {
13
- b as ListItemLabel
20
+ f as ListItemLabel
14
21
  };
@@ -5,7 +5,7 @@ import "../RootProvider/RootProvider.js";
5
5
  import "../Search/AutocompleteBase.js";
6
6
  import "../Snackbar/useSnackbar.js";
7
7
  import { Section as i } from "../Page/Section.js";
8
- const x = ({ spacing: o = 2, children: r }) => /* @__PURE__ */ t(i, { spacing: o, children: r });
8
+ const l = ({ spacing: o = 2, children: r }) => /* @__PURE__ */ t(i, { as: "ul", spacing: o, children: r });
9
9
  export {
10
- x as Timeline
10
+ l as Timeline
11
11
  };
@@ -1,35 +1,37 @@
1
- import { jsxs as n, jsx as s } from "react/jsx-runtime";
2
- import { Icon as l } from "../Icon/Icon.js";
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ import { Icon as p } from "../Icon/Icon.js";
3
3
  import "../../index-L8X2o7IH.js";
4
4
  import "react";
5
- import { Avatar as _ } from "../Avatar/Avatar.js";
5
+ import { Avatar as x } from "../Avatar/Avatar.js";
6
6
  import "../RootProvider/RootProvider.js";
7
- import { Skeleton as p } from "../Skeleton/Skeleton.js";
7
+ import { Skeleton as b } from "../Skeleton/Skeleton.js";
8
8
  import "../Search/AutocompleteBase.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import { Flex as h } from "../Page/Flex.js";
11
- import '../../assets/TimelineBase.css';const b = "_section_si67h_1", f = "_sidebar_si67h_8", v = "_content_si67h_18", N = "_border_si67h_24", x = "_icon_si67h_30", o = {
12
- section: b,
10
+ import { Flex as g } from "../Page/Flex.js";
11
+ import '../../assets/TimelineBase.css';const v = "_section_et0gx_1", f = "_sidebar_et0gx_8", N = "_content_et0gx_22", h = "_border_et0gx_28", j = "_icon_et0gx_34", t = {
12
+ section: v,
13
13
  sidebar: f,
14
- content: v,
15
- border: N,
16
- icon: x
17
- }, I = ({
14
+ content: N,
15
+ border: h,
16
+ icon: j
17
+ }, T = ({
18
18
  as: c = "section",
19
- loading: i,
19
+ loading: o,
20
20
  border: a = "solid",
21
- color: e,
22
- icon: t,
23
- iconColor: m,
24
- avatar: r,
25
- children: d
26
- }) => /* @__PURE__ */ n(h, { as: c, className: o.section, color: e, children: [
27
- /* @__PURE__ */ n("aside", { className: o.sidebar, children: [
28
- r && /* @__PURE__ */ s(_, { ...r, size: "sm" }) || t && /* @__PURE__ */ s(p, { loading: i, variant: "circle", children: /* @__PURE__ */ s("span", { "data-color": m, className: o.icon, children: /* @__PURE__ */ s(l, { svgElement: t, size: "sm" }) }) }),
29
- /* @__PURE__ */ s("div", { className: o.border, "data-loading": i, "data-variant": a, "data-color": e })
21
+ level: m = 1,
22
+ color: s,
23
+ icon: r,
24
+ iconColor: d,
25
+ avatar: i,
26
+ children: l,
27
+ ..._
28
+ }) => /* @__PURE__ */ n(g, { as: c, className: t.section, color: s, ..._, children: [
29
+ /* @__PURE__ */ n("aside", { className: t.sidebar, "data-level": m, children: [
30
+ i && /* @__PURE__ */ e(x, { ...i, size: "sm" }) || r && /* @__PURE__ */ e(b, { loading: o, variant: "circle", children: /* @__PURE__ */ e("span", { "data-color": d, className: t.icon, children: /* @__PURE__ */ e(p, { svgElement: r, size: "sm" }) }) }),
31
+ /* @__PURE__ */ e("div", { className: t.border, "data-loading": o, "data-variant": a, "data-color": s })
30
32
  ] }),
31
- /* @__PURE__ */ s("div", { className: o.content, children: d })
33
+ /* @__PURE__ */ e("div", { className: t.content, children: l })
32
34
  ] });
33
35
  export {
34
- I as TimelineBase
36
+ T as TimelineBase
35
37
  };
@@ -1,4 +1,4 @@
1
- import { jsx as o } from "react/jsx-runtime";
1
+ import { jsx as i } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import { Byline as l } from "../Byline/Byline.js";
@@ -9,12 +9,12 @@ import { TimelineBase as n } from "./TimelineBase.js";
9
9
  import { S as f } from "../../CircleFill-IZdiBc_K.js";
10
10
  const S = ({
11
11
  loading: r,
12
- as: i = "footer",
13
- color: e = "neutral",
14
- icon: m = f,
12
+ as: o = "li",
13
+ color: m = "neutral",
14
+ icon: e = f,
15
15
  iconColor: t,
16
16
  children: p
17
- }) => /* @__PURE__ */ o(n, { loading: r, as: i, icon: m, color: e, iconColor: t, border: "hidden", children: /* @__PURE__ */ o(l, { loading: r, children: p }) });
17
+ }) => /* @__PURE__ */ i(n, { loading: r, as: o, icon: e, color: m, iconColor: t, border: "hidden", children: /* @__PURE__ */ i(l, { loading: r, children: p }) });
18
18
  export {
19
19
  S as TimelineFooter
20
20
  };
@@ -1,28 +1,28 @@
1
1
  import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
- import { IconOrAvatar as d } from "../Icon/IconOrAvatar.js";
3
+ import { IconOrAvatar as l } from "../Icon/IconOrAvatar.js";
4
4
  import "react";
5
- import { Byline as l } from "../Byline/Byline.js";
5
+ import { Byline as d } from "../Byline/Byline.js";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import { Skeleton as p } from "../Skeleton/Skeleton.js";
8
8
  import "../Search/AutocompleteBase.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import { Flex as h } from "../Page/Flex.js";
11
- import '../../assets/TimelineHeader.css';const _ = "_header_177gq_1", b = "_sidebar_177gq_9", f = "_content_177gq_19", r = {
12
- header: _,
10
+ import { Flex as _ } from "../Page/Flex.js";
11
+ import '../../assets/TimelineHeader.css';const h = "_header_177gq_1", b = "_sidebar_177gq_9", f = "_content_177gq_19", r = {
12
+ header: h,
13
13
  sidebar: b,
14
14
  content: f
15
15
  }, A = ({
16
- as: i = "header",
16
+ as: i = "li",
17
17
  loading: t,
18
18
  color: o,
19
19
  icon: s,
20
20
  iconTheme: n = "base",
21
21
  avatar: a,
22
22
  children: c
23
- }) => /* @__PURE__ */ m(h, { as: i, className: r.header, color: o, children: [
24
- /* @__PURE__ */ e("aside", { className: r.sidebar, children: /* @__PURE__ */ e(p, { variant: "circle", loading: t, children: /* @__PURE__ */ e(d, { size: "lg", icon: s, iconTheme: n, avatar: a }) }) }),
25
- /* @__PURE__ */ e("div", { className: r.content, children: /* @__PURE__ */ e(l, { loading: t, size: "lg", children: c }) })
23
+ }) => /* @__PURE__ */ m(_, { as: i, className: r.header, color: o, children: [
24
+ /* @__PURE__ */ e("aside", { className: r.sidebar, children: /* @__PURE__ */ e(p, { variant: "circle", loading: t, children: /* @__PURE__ */ e(l, { size: "lg", icon: s, iconTheme: n, avatar: a }) }) }),
25
+ /* @__PURE__ */ e("div", { className: r.content, children: /* @__PURE__ */ e(d, { loading: t, size: "lg", children: c }) })
26
26
  ] });
27
27
  export {
28
28
  A as TimelineHeader
@@ -0,0 +1,39 @@
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import { c as a } from "../../index-L8X2o7IH.js";
3
+ import "react";
4
+ import { ButtonBase as b } from "../Button/ButtonBase.js";
5
+ import { ButtonLabel as _ } from "../Button/ButtonLabel.js";
6
+ import { ButtonIcon as p } from "../Button/ButtonIcon.js";
7
+ import "../RootProvider/RootProvider.js";
8
+ import "../Search/AutocompleteBase.js";
9
+ import "../Snackbar/useSnackbar.js";
10
+ import '../../assets/TimelineLink.css';const u = "_button_18xbc_1", x = "_reverse_18xbc_9", f = "_icon_18xbc_13", v = "_label_18xbc_19", o = {
11
+ button: u,
12
+ reverse: x,
13
+ icon: f,
14
+ label: v
15
+ }, T = ({
16
+ size: t = "custom",
17
+ color: n = "company",
18
+ icon: r,
19
+ reverse: c,
20
+ label: s,
21
+ children: m,
22
+ ...i
23
+ }) => /* @__PURE__ */ l(
24
+ b,
25
+ {
26
+ color: n,
27
+ variant: "link",
28
+ size: t,
29
+ className: a(o.button, { [o.reverse]: c }),
30
+ ...i,
31
+ children: [
32
+ r && /* @__PURE__ */ e(p, { className: o.icon, size: t, icon: r }),
33
+ /* @__PURE__ */ e(_, { className: o.label, size: t, children: m || s })
34
+ ]
35
+ }
36
+ );
37
+ export {
38
+ T as TimelineLink
39
+ };