@hortiview/shared-components 2.1.0 → 2.3.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 (32) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/AlertBanner-75jjene1.js +26 -0
  3. package/dist/{ListAreaService-Wq9IkwWN.js → ListAreaService-BVtuBN0K.js} +34 -33
  4. package/dist/assets/AlertBanner.css +1 -1
  5. package/dist/assets/Modal.css +1 -1
  6. package/dist/components/AlertBanner/AlertBanner.d.ts +1 -2
  7. package/dist/components/AlertBanner/AlertBanner.js +6 -22
  8. package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
  9. package/dist/components/AlertBanner/LinkBanner.d.ts +21 -0
  10. package/dist/components/AlertBanner/LinkBanner.js +37 -0
  11. package/dist/components/AlertBanner/LinkBanner.test.d.ts +1 -0
  12. package/dist/components/AlertBanner/LinkBanner.test.js +17 -0
  13. package/dist/components/ContextMenu/ContextMenu.d.ts +6 -1
  14. package/dist/components/ContextMenu/ContextMenu.js +33 -32
  15. package/dist/components/ContextMenu/ContextMenu.test.js +7 -7
  16. package/dist/components/ListArea/ListArea.d.ts +5 -1
  17. package/dist/components/ListArea/ListArea.js +24 -23
  18. package/dist/components/ListArea/ListArea.test.js +1 -1
  19. package/dist/components/ListArea/ListAreaService.js +1 -1
  20. package/dist/components/Modal/Modal.js +70 -69
  21. package/dist/components/ModulePadding/ModulePadding.js +1 -1
  22. package/dist/components/OnboardingBanner/OnboardingBanner.test.js +18 -18
  23. package/dist/components/Stepper/Stepper.d.ts +4 -3
  24. package/dist/components/Stepper/Stepper.js +33 -21
  25. package/dist/components/Stepper/Stepper.test.js +40 -64
  26. package/dist/components/Stepper/components/StepperButton.d.ts +8 -2
  27. package/dist/components/Stepper/components/StepperButton.js +54 -38
  28. package/dist/components/Stepper/stepperTypes.d.ts +31 -1
  29. package/dist/main.d.ts +5 -4
  30. package/dist/main.js +99 -97
  31. package/dist/types/ListElement.d.ts +4 -0
  32. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
- import { jsxs as ft, jsx as _, Fragment as pt } from "react/jsx-runtime";
2
- import { G as V } from "../../index.es-DntoATwO.js";
1
+ import { jsxs as ft, jsx as E, Fragment as pt } from "react/jsx-runtime";
2
+ import { G as z } from "../../index.es-DntoATwO.js";
3
3
  import { I as it } from "../../index.es-0lQcz8m1.js";
4
4
  import { _ as ht, c as B, P as s } from "../../identity-DLWZln-X.js";
5
- import d, { forwardRef as gt, useRef as et, useImperativeHandle as Et, useState as nt, useEffect as g, useCallback as z, useMemo as Y } from "react";
6
- import { i as _t, c as A, a as Ct } from "../../index.es-da0cf7oE.js";
5
+ import d, { forwardRef as gt, useRef as et, useImperativeHandle as _t, useState as nt, useEffect as g, useCallback as j, useMemo as Y } from "react";
6
+ import { i as Et, c as A, a as Ct } from "../../index.es-da0cf7oE.js";
7
7
  import { b as at, c as ot, d as St } from "../../tslib.es6-BDCynO9F.js";
8
8
  import { M as vt, a as yt } from "../../component-neHBNHRu.js";
9
9
  import { M as Ot, c as Tt, m as At } from "../../component-DsB0poTj.js";
@@ -73,7 +73,7 @@ function wt(i) {
73
73
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
74
74
  * THE SOFTWARE.
75
75
  */
76
- var j = "mdc-dom-focus-sentinel", Mt = (
76
+ var q = "mdc-dom-focus-sentinel", Mt = (
77
77
  /** @class */
78
78
  function() {
79
79
  function i(e, t) {
@@ -85,7 +85,7 @@ var j = "mdc-dom-focus-sentinel", Mt = (
85
85
  throw new Error("FocusTrap: Element must have at least one focusable child.");
86
86
  this.elFocusedBeforeTrapFocus = document.activeElement instanceof HTMLElement ? document.activeElement : null, this.wrapTabFocus(this.root), this.options.skipInitialFocus || this.focusInitialElement(e, this.options.initialFocusEl);
87
87
  }, i.prototype.releaseFocus = function() {
88
- [].slice.call(this.root.querySelectorAll("." + j)).forEach(function(e) {
88
+ [].slice.call(this.root.querySelectorAll("." + q)).forEach(function(e) {
89
89
  e.parentElement.removeChild(e);
90
90
  }), !this.options.skipRestoreFocus && this.elFocusedBeforeTrapFocus && this.elFocusedBeforeTrapFocus.focus();
91
91
  }, i.prototype.wrapTabFocus = function(e) {
@@ -103,7 +103,7 @@ var j = "mdc-dom-focus-sentinel", Mt = (
103
103
  }, i.prototype.getFocusableElements = function(e) {
104
104
  var t = [].slice.call(e.querySelectorAll("[autofocus], [tabindex], a, input, textarea, select, button"));
105
105
  return t.filter(function(n) {
106
- var o = n.getAttribute("aria-disabled") === "true" || n.getAttribute("disabled") != null || n.getAttribute("hidden") != null || n.getAttribute("aria-hidden") === "true", a = n.tabIndex >= 0 && n.getBoundingClientRect().width > 0 && !n.classList.contains(j) && !o, f = !1;
106
+ var o = n.getAttribute("aria-disabled") === "true" || n.getAttribute("disabled") != null || n.getAttribute("hidden") != null || n.getAttribute("aria-hidden") === "true", a = n.tabIndex >= 0 && n.getBoundingClientRect().width > 0 && !n.classList.contains(q) && !o, f = !1;
107
107
  if (a) {
108
108
  var p = getComputedStyle(n);
109
109
  f = p.display === "none" || p.visibility === "hidden";
@@ -112,7 +112,7 @@ var j = "mdc-dom-focus-sentinel", Mt = (
112
112
  });
113
113
  }, i.prototype.createSentinel = function() {
114
114
  var e = document.createElement("div");
115
- return e.setAttribute("tabindex", "0"), e.setAttribute("aria-hidden", "true"), e.classList.add(j), e;
115
+ return e.setAttribute("tabindex", "0"), e.setAttribute("aria-hidden", "true"), e.classList.add(q), e;
116
116
  }, i;
117
117
  }()
118
118
  );
@@ -191,7 +191,7 @@ var r = {
191
191
  ".mdc-menu .mdc-deprecated-list-item"
192
192
  ].join(", "),
193
193
  SURFACE_SELECTOR: ".mdc-dialog__surface"
194
- }, q = {
194
+ }, $ = {
195
195
  DIALOG_ANIMATION_CLOSE_TIME_MS: 75,
196
196
  DIALOG_ANIMATION_OPEN_TIME_MS: 150
197
197
  };
@@ -217,10 +217,10 @@ var r = {
217
217
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
218
218
  * THE SOFTWARE.
219
219
  */
220
- var w;
220
+ var M;
221
221
  (function(i) {
222
222
  i.POLL_SCROLL_POS = "poll_scroll_position", i.POLL_LAYOUT_CHANGE = "poll_layout_change";
223
- })(w || (w = {}));
223
+ })(M || (M = {}));
224
224
  var rt = (
225
225
  /** @class */
226
226
  function(i) {
@@ -249,7 +249,7 @@ var rt = (
249
249
  configurable: !0
250
250
  }), Object.defineProperty(e, "numbers", {
251
251
  get: function() {
252
- return q;
252
+ return $;
253
253
  },
254
254
  enumerable: !1,
255
255
  configurable: !0
@@ -325,13 +325,13 @@ var rt = (
325
325
  this.dialogOpen = !0, this.adapter.notifyOpening(), this.adapter.addClass(r.OPENING), this.isFullscreen && this.adapter.registerContentEventHandler("scroll", this.contentScrollHandler), t && t.isAboveFullscreenDialog && this.adapter.addClass(r.SCRIM_HIDDEN), this.adapter.registerWindowEventHandler("resize", this.windowResizeHandler), this.adapter.registerWindowEventHandler("orientationchange", this.windowOrientationChangeHandler), this.runNextAnimationFrame(function() {
326
326
  n.adapter.addClass(r.OPEN), n.adapter.addBodyClass(r.SCROLL_LOCK), n.layout(), n.animationTimer = setTimeout(function() {
327
327
  n.handleAnimationTimerEnd(), n.adapter.trapFocus(n.adapter.getInitialFocusEl()), n.adapter.notifyOpened();
328
- }, q.DIALOG_ANIMATION_OPEN_TIME_MS);
328
+ }, $.DIALOG_ANIMATION_OPEN_TIME_MS);
329
329
  });
330
330
  }, e.prototype.close = function(t) {
331
331
  var n = this;
332
332
  t === void 0 && (t = ""), this.dialogOpen && (this.dialogOpen = !1, this.adapter.notifyClosing(t), this.adapter.addClass(r.CLOSING), this.adapter.removeClass(r.OPEN), this.adapter.removeBodyClass(r.SCROLL_LOCK), this.isFullscreen && this.adapter.deregisterContentEventHandler("scroll", this.contentScrollHandler), this.adapter.deregisterWindowEventHandler("resize", this.windowResizeHandler), this.adapter.deregisterWindowEventHandler("orientationchange", this.windowOrientationChangeHandler), cancelAnimationFrame(this.animationFrame), this.animationFrame = 0, clearTimeout(this.animationTimer), this.animationTimer = setTimeout(function() {
333
333
  n.adapter.releaseFocus(), n.handleAnimationTimerEnd(), n.adapter.notifyClosed(t);
334
- }, q.DIALOG_ANIMATION_CLOSE_TIME_MS));
334
+ }, $.DIALOG_ANIMATION_CLOSE_TIME_MS));
335
335
  }, e.prototype.showSurfaceScrim = function() {
336
336
  var t = this;
337
337
  this.adapter.addClass(r.SURFACE_SCRIM_SHOWING), this.runNextAnimationFrame(function() {
@@ -361,7 +361,7 @@ var rt = (
361
361
  this.suppressDefaultPressSelector = t;
362
362
  }, e.prototype.layout = function() {
363
363
  var t = this;
364
- this.animFrame.request(w.POLL_LAYOUT_CHANGE, function() {
364
+ this.animFrame.request(M.POLL_LAYOUT_CHANGE, function() {
365
365
  t.layoutInternal();
366
366
  });
367
367
  }, e.prototype.handleClick = function(t) {
@@ -386,7 +386,7 @@ var rt = (
386
386
  n && this.escapeKeyAction !== "" && this.close(this.escapeKeyAction);
387
387
  }, e.prototype.handleScrollEvent = function() {
388
388
  var t = this;
389
- this.animFrame.request(w.POLL_SCROLL_POS, function() {
389
+ this.animFrame.request(M.POLL_SCROLL_POS, function() {
390
390
  t.toggleScrollDividerHeader(), t.toggleScrollDividerFooter();
391
391
  });
392
392
  }, e.prototype.layoutInternal = function() {
@@ -477,8 +477,8 @@ var u = rt.strings, kt = (
477
477
  return new e(t);
478
478
  }, e.prototype.initialize = function(t) {
479
479
  var n, o;
480
- t === void 0 && (t = function(E, C) {
481
- return new Mt(E, C);
480
+ t === void 0 && (t = function(_, C) {
481
+ return new Mt(_, C);
482
482
  });
483
483
  var a = this.root.querySelector(u.CONTAINER_SELECTOR);
484
484
  if (!a)
@@ -489,8 +489,8 @@ var u = rt.strings, kt = (
489
489
  var v = p.value;
490
490
  this.buttonRipples.push(new Ot(v));
491
491
  }
492
- } catch (E) {
493
- n = { error: E };
492
+ } catch (_) {
493
+ n = { error: _ };
494
494
  } finally {
495
495
  try {
496
496
  p && !p.done && (o = f.return) && o.call(f);
@@ -788,7 +788,7 @@ const Ht = {
788
788
  returnFocusSelector: null,
789
789
  scrollable: !1,
790
790
  title: null
791
- }, M = /* @__PURE__ */ gt((i, e) => {
791
+ }, k = /* @__PURE__ */ gt((i, e) => {
792
792
  const {
793
793
  actionButton: t,
794
794
  actionIcons: n,
@@ -797,36 +797,36 @@ const Ht = {
797
797
  children: f,
798
798
  className: p,
799
799
  content: v,
800
- defaultButton: E,
800
+ defaultButton: _,
801
801
  dismissiveButton: C,
802
802
  footerSupplemental: b,
803
803
  headerActions: J,
804
- hideCloseIcon: k,
804
+ hideCloseIcon: H,
805
805
  indicator: st,
806
806
  initialFocus: y,
807
- mobileStackedButtons: H,
807
+ mobileStackedButtons: P,
808
808
  modalSize: h,
809
809
  nextButton: O,
810
810
  noActions: T,
811
- onClose: P,
812
- onClosed: U,
811
+ onClose: U,
812
+ onClosed: x,
813
813
  onOpen: D,
814
814
  onOpened: I,
815
815
  open: Q,
816
- preventClose: x,
816
+ preventClose: G,
817
817
  preventPrimaryAccept: X,
818
818
  primaryButton: c,
819
- returnFocusSelector: G,
819
+ returnFocusSelector: K,
820
820
  scrollable: Z,
821
821
  title: tt,
822
822
  ...lt
823
823
  } = i, N = et(), l = et();
824
- Et(e, () => N.current, []);
825
- const [K, ct] = nt(), [W, dt] = nt(() => O || a);
824
+ _t(e, () => N.current, []);
825
+ const [W, ct] = nt(), [V, dt] = nt(() => O || a);
826
826
  g(() => {
827
827
  dt(O || a);
828
828
  }, [O, a]);
829
- const L = z(() => {
829
+ const L = j(() => {
830
830
  ct(window.innerWidth <= 600);
831
831
  }, []);
832
832
  g(() => (L(), window.addEventListener("resize", L), () => {
@@ -834,18 +834,18 @@ const Ht = {
834
834
  }), [L]), g(() => (l.current = kt.attachTo(N.current), () => {
835
835
  l.current.destroy();
836
836
  }), [l, N]), g(() => {
837
- l.current.foundation.setAutoStackButtons(H);
838
- }, [H]), g(() => {
837
+ l.current.foundation.setAutoStackButtons(P);
838
+ }, [P]), g(() => {
839
839
  T && (l.current.foundation.adapter.trapFocus = () => {
840
840
  });
841
841
  }, [T]), g(() => {
842
- l.current.scrimClickAction = x ? "" : "close", l.current.escapeKeyAction = x ? "" : "close";
843
- }, [x]);
844
- const F = z((m) => {
845
- P && P(m);
846
- }, [P]), R = z((m) => {
847
- G && _t(G), U && U(m);
848
- }, [G, U]);
842
+ l.current.scrimClickAction = G ? "" : "close", l.current.escapeKeyAction = G ? "" : "close";
843
+ }, [G]);
844
+ const F = j((m) => {
845
+ U && U(m);
846
+ }, [U]), R = j((m) => {
847
+ K && Et(K), x && x(m);
848
+ }, [K, x]);
849
849
  g(() => (l.current.unlisten("MDCDialog: opening", D), l.current.listen("MDCDialog: opening", D), () => {
850
850
  l.current.unlisten("MDCDialog: opening", D);
851
851
  }), [l, D]), g(() => (l.current.unlisten("MDCDialog:opened", I), l.current.listen("MDCDialog:opened", I), () => {
@@ -863,27 +863,27 @@ const Ht = {
863
863
  elevation: t?.props.elevation !== "default" ? t?.props.elevation : "flat",
864
864
  variant: t?.props.variant || "filled"
865
865
  };
866
- return E === "action" && (m["data-mdc-dialog-button-default"] = !0), y === "action" && (m["data-mdc-dialog-initial-focus"] = !0), m;
867
- }, [t?.props.elevation, t?.props.variant, E, y]), mt = Y(() => () => {
866
+ return _ === "action" && (m["data-mdc-dialog-button-default"] = !0), y === "action" && (m["data-mdc-dialog-initial-focus"] = !0), m;
867
+ }, [t?.props.elevation, t?.props.variant, _, y]), mt = Y(() => () => {
868
868
  const m = {
869
869
  className: "lmnt-modal__button mdc-dialog__button",
870
870
  "data-mdc-dialog-action": X ? "" : "accept",
871
871
  elevation: c?.props.elevation !== "default" ? c?.props.elevation : "flat",
872
872
  variant: c?.props.variant || "filled"
873
873
  };
874
- return E === "primary" && (m["data-mdc-dialog-button-default"] = !0), y === "primary" && (m["data-mdc-dialog-initial-focus"] = !0), m;
875
- }, [X, E, y, c?.props.elevation, c?.props.variant]);
874
+ return _ === "primary" && (m["data-mdc-dialog-button-default"] = !0), y === "primary" && (m["data-mdc-dialog-initial-focus"] = !0), m;
875
+ }, [X, _, y, c?.props.elevation, c?.props.variant]);
876
876
  return /* @__PURE__ */ d.createElement("aside", ht({
877
877
  ref: N,
878
878
  className: B("lmnt", "lmnt-modal", "mdc-dialog", Z && "lmnt-modal--scrollable mdc-dialog--scrollable", p),
879
879
  role: "alertdialog"
880
880
  }, lt), /* @__PURE__ */ d.createElement("div", {
881
- className: B("lmnt-modal__container", "mdc-dialog__container", h === "fullscreen" && "mdc-dialog--fullscreen", h === "max" && "lmnt-modal__max", h === "xlarge" && "lmnt-modal__xl", h === "large" && "lmnt-modal__lg", h === "medium" && "lmnt-modal__md", h === "small" && "lmnt-modal__sm", (h === "mobile" || K) && "lmnt-modal__mobile", h === "dialog" && "lmnt-modal__dialog", T && "lmnt-modal-no-actions")
881
+ className: B("lmnt-modal__container", "mdc-dialog__container", h === "fullscreen" && "mdc-dialog--fullscreen", h === "max" && "lmnt-modal__max", h === "xlarge" && "lmnt-modal__xl", h === "large" && "lmnt-modal__lg", h === "medium" && "lmnt-modal__md", h === "small" && "lmnt-modal__sm", (h === "mobile" || W) && "lmnt-modal__mobile", h === "dialog" && "lmnt-modal__dialog", T && "lmnt-modal-no-actions")
882
882
  }, /* @__PURE__ */ d.createElement("div", {
883
883
  className: "lmnt-modal__surface mdc-dialog__surface"
884
884
  }, /* @__PURE__ */ d.createElement("header", {
885
- className: B("lmnt-modal__title", "mdc-dialog__title", (h === "dialog" || k) && "lmnt-modal_title-hide-close-icon", n && "lmnt-modal_title-actionsIcons", Z && "lmnt-modal__title-scrollable", (k || h === "dialog" || T) && "lmnt-modal--no-close-icon")
886
- }, !k && h !== "dialog" && !T && /* @__PURE__ */ d.createElement(it, {
885
+ className: B("lmnt-modal__title", "mdc-dialog__title", (h === "dialog" || H) && "lmnt-modal_title-hide-close-icon", n && "lmnt-modal_title-actionsIcons", Z && "lmnt-modal__title-scrollable", (H || h === "dialog" || T) && "lmnt-modal--no-close-icon")
886
+ }, !H && h !== "dialog" && !T && /* @__PURE__ */ d.createElement(it, {
887
887
  className: "mdc-icon-button material-icons mdc-dialog__close",
888
888
  "data-mdc-dialog-action": "close",
889
889
  icon: "clear"
@@ -897,19 +897,19 @@ const Ht = {
897
897
  }, o)), (v || f) && /* @__PURE__ */ d.createElement("section", {
898
898
  className: "lmnt-modal__content mdc-dialog__content"
899
899
  }, v || f), st, (t || a || C || O || c || b) && /* @__PURE__ */ d.createElement("footer", {
900
- className: B("lmnt-modal__actions", "mdc-dialog__actions", K && "lmnt-dialog__actions__mobile", b && "lmnt-modal__actions--supplemental-btn", K && H && "lmnt-modal_actions-mobile-stacked")
901
- }, !W && b && /* @__PURE__ */ d.createElement("div", {
900
+ className: B("lmnt-modal__actions", "mdc-dialog__actions", W && "lmnt-dialog__actions__mobile", b && "lmnt-modal__actions--supplemental-btn", W && P && "lmnt-modal_actions-mobile-stacked")
901
+ }, !V && b && /* @__PURE__ */ d.createElement("div", {
902
902
  className: "lmnt-dialog__actions__supplemental"
903
903
  }, A(b, () => {
904
904
  const m = {};
905
- return E === "footerSupplemental" && (m["data-mdc-dialog-button-default"] = !0), y === "footerSupplemental" && (m["data-mdc-dialog-initial-focus"] = !0), m;
906
- })), !W && (t || C || c) && /* @__PURE__ */ d.createElement("div", {
905
+ return _ === "footerSupplemental" && (m["data-mdc-dialog-button-default"] = !0), y === "footerSupplemental" && (m["data-mdc-dialog-initial-focus"] = !0), m;
906
+ })), !V && (t || C || c) && /* @__PURE__ */ d.createElement("div", {
907
907
  className: "lmnt-dialog__actions__right-align lmnt-modal_actions_button"
908
908
  }, C && A(C, {
909
909
  variant: "text",
910
910
  className: "lmnt-modal__button mdc-dialog__button",
911
911
  "data-mdc-dialog-action": "close"
912
- }), t && !c && A(t, ut), c && A(c, mt)), W && /* @__PURE__ */ d.createElement("div", {
912
+ }), t && !c && A(t, ut), c && A(c, mt)), V && /* @__PURE__ */ d.createElement("div", {
913
913
  className: "lmnt-modal_actions_button lmnt-dialog__actions__directional"
914
914
  }, /* @__PURE__ */ d.createElement("div", null, Ct(a, "lmnt-modal__button")), /* @__PURE__ */ d.createElement("div", null, A(O, {
915
915
  className: "lmnt-modal__button",
@@ -918,14 +918,15 @@ const Ht = {
918
918
  className: "mdc-dialog__scrim"
919
919
  }));
920
920
  });
921
- M.displayName = "Modal";
922
- M.propTypes = Ht;
923
- M.defaultProps = Pt;
924
- const Ut = "_modal_18rd0_1", xt = "_title_18rd0_6", Gt = "_titleWithoutCloseIcon_18rd0_18", $ = {
921
+ k.displayName = "Modal";
922
+ k.propTypes = Ht;
923
+ k.defaultProps = Pt;
924
+ const Ut = "_modal_fr8bw_1", xt = "_title_fr8bw_6", Gt = "_titleWithoutCloseIcon_fr8bw_18", Kt = "_closeButton_fr8bw_22", w = {
925
925
  modal: Ut,
926
926
  title: xt,
927
- titleWithoutCloseIcon: Gt
928
- }, ee = ({
927
+ titleWithoutCloseIcon: Gt,
928
+ closeButton: Kt
929
+ }, ne = ({
929
930
  onClose: i,
930
931
  title: e,
931
932
  headerActions: t,
@@ -934,32 +935,32 @@ const Ut = "_modal_18rd0_1", xt = "_title_18rd0_6", Gt = "_titleWithoutCloseIcon
934
935
  ...a
935
936
  }) => {
936
937
  const f = Y(() => {
937
- const p = /* @__PURE__ */ ft(V, { primaryAlign: "center", secondaryAlign: "center", children: [
938
- !n && /* @__PURE__ */ _(it, { icon: "close", onClick: () => i?.(), type: "button" }),
939
- o ? /* @__PURE__ */ _(Dt, { customPadding: "0.25rem 0 0 0.75rem", children: /* @__PURE__ */ _(Nt, { icon: o }) }) : /* @__PURE__ */ _(pt, {}),
940
- /* @__PURE__ */ _(
938
+ const p = /* @__PURE__ */ ft(z, { primaryAlign: "center", secondaryAlign: "center", children: [
939
+ !n && /* @__PURE__ */ E(it, { icon: "close", onClick: () => i?.(), type: "button", className: w.closeButton }),
940
+ o ? /* @__PURE__ */ E(Dt, { customPadding: "0.25rem 0 0 0.75rem", children: /* @__PURE__ */ E(Nt, { icon: o }) }) : /* @__PURE__ */ E(pt, {}),
941
+ /* @__PURE__ */ E(
941
942
  It,
942
943
  {
943
944
  level: 6,
944
- className: n && !o ? $.titleWithoutCloseIcon : "",
945
+ className: n && !o ? w.titleWithoutCloseIcon : "",
945
946
  children: e
946
947
  }
947
948
  )
948
949
  ] }, "base-group");
949
- return t ? Array.isArray(t) ? [p, /* @__PURE__ */ _(V, { children: t }, "action-group")] : [p, t] : p;
950
+ return t ? Array.isArray(t) ? [p, /* @__PURE__ */ E(z, { children: t }, "action-group")] : [p, t] : p;
950
951
  }, [t, n, o, i, e]);
951
- return /* @__PURE__ */ _(
952
- M,
952
+ return /* @__PURE__ */ E(
953
+ k,
953
954
  {
954
955
  ...a,
955
956
  "data-testid": "modal",
956
- className: `${$.modal} ${$.title} ${a.className ?? ""}`,
957
+ className: `${w.modal} ${w.title} ${a.className ?? ""}`,
957
958
  hideCloseIcon: !0,
958
- headerActions: /* @__PURE__ */ _(V, { primaryAlign: "space-between", secondaryAlign: "center", children: f }, "header-group"),
959
+ headerActions: /* @__PURE__ */ E(z, { primaryAlign: "space-between", secondaryAlign: "center", children: f }, "header-group"),
959
960
  preventClose: !0
960
961
  }
961
962
  );
962
963
  };
963
964
  export {
964
- ee as Modal
965
+ ne as Modal
965
966
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import { P as r } from "../../index.es-D-CKRzIB.js";
3
- import "react";
4
3
  import "../../isEmpty-B4GG2s-V.js";
4
+ import "react";
5
5
  import { u as d } from "../../useBreakpoints-MzTZ0tCT.js";
6
6
  import "../../react-tooltip.min-DSY6KDqS.js";
7
7
  import "../../orderBy-Bd48bw88.js";
@@ -1,12 +1,12 @@
1
- import { jsx as n, Fragment as a } from "react/jsx-runtime";
1
+ import { jsx as n, Fragment as d } from "react/jsx-runtime";
2
2
  import { a as o, s as e } from "../../react.esm-CX1WJ2Pp.js";
3
- import { OnboardingBanner as s } from "./OnboardingBanner.js";
4
- import { d, t as i, a as r, g as t } from "../../vi.CjhMlMwf-CKxPQtd6.js";
5
- d("Onboarding Banner Test", () => {
6
- i("render OnboardingBanner with headline & description text", () => {
3
+ import { OnboardingBanner as i } from "./OnboardingBanner.js";
4
+ import { d as a, t as s, a as r, g as t } from "../../vi.CjhMlMwf-CKxPQtd6.js";
5
+ a("Onboarding Banner Test", () => {
6
+ s("render OnboardingBanner with headline & description text", () => {
7
7
  o(
8
8
  /* @__PURE__ */ n(
9
- s,
9
+ i,
10
10
  {
11
11
  headline: "test",
12
12
  description: "test description",
@@ -15,56 +15,56 @@ d("Onboarding Banner Test", () => {
15
15
  }
16
16
  )
17
17
  ), t(e.getByText("test")).toBeInTheDocument(), t(e.getByText("test description")).toBeInTheDocument();
18
- }), i("render OnboardingBanner with media content", () => {
18
+ }), s("render OnboardingBanner with media content", () => {
19
19
  o(
20
20
  /* @__PURE__ */ n(
21
- s,
21
+ i,
22
22
  {
23
23
  headline: "test",
24
24
  description: "test description",
25
- mediaContent: /* @__PURE__ */ n(a, { children: "Element" }),
25
+ mediaContent: /* @__PURE__ */ n(d, { children: "Element" }),
26
26
  isVisible: !0,
27
27
  onClose: r.fn()
28
28
  }
29
29
  )
30
30
  ), t(e.getByText("Element")).toBeInTheDocument();
31
- }), i("render OnboardingBanner with buttons", () => {
31
+ }), s("render OnboardingBanner with buttons", () => {
32
32
  o(
33
33
  /* @__PURE__ */ n(
34
- s,
34
+ i,
35
35
  {
36
36
  headline: "test",
37
37
  description: "test description",
38
38
  isVisible: !0,
39
39
  onClose: r.fn(),
40
- buttons: [{ label: "button-1" }, { label: "button-2" }]
40
+ buttons: [{ label: "button-1", id: "1" }, { label: "button-2", id: "2" }]
41
41
  }
42
42
  )
43
43
  ), t(e.getByText("button-1")).toBeInTheDocument(), t(e.getByText("button-2")).toBeInTheDocument(), t(e.queryByText("button-3")).not.toBeInTheDocument();
44
- }), i("calls onClose when close button is clicked", () => {
44
+ }), s("calls onClose when close button is clicked", () => {
45
45
  const l = r.fn();
46
46
  o(
47
47
  /* @__PURE__ */ n(
48
- s,
48
+ i,
49
49
  {
50
50
  headline: "test",
51
51
  description: "test description",
52
52
  isVisible: !0,
53
53
  onClose: l,
54
- buttons: [{ label: "button-1" }, { label: "button2" }]
54
+ buttons: [{ label: "button-1", id: "1" }, { label: "button-2", id: "2" }]
55
55
  }
56
56
  )
57
57
  ), e.getByTestId("onboarding-banner-close-button").click(), t(l).toHaveBeenCalledTimes(1);
58
- }), i("renders nothing when isVisibility is false", () => {
58
+ }), s("renders nothing when isVisibility is false", () => {
59
59
  o(
60
60
  /* @__PURE__ */ n(
61
- s,
61
+ i,
62
62
  {
63
63
  headline: "test",
64
64
  description: "test description",
65
65
  isVisible: !1,
66
66
  onClose: r.fn(),
67
- buttons: [{ label: "button-1" }, { label: "button-2" }]
67
+ buttons: [{ label: "button-1", id: "1" }, { label: "button-2", id: "2" }]
68
68
  }
69
69
  )
70
70
  ), t(e.queryByText("test")).not.toBeInTheDocument();
@@ -8,9 +8,10 @@ import { StepperProps } from './stepperTypes';
8
8
  * @param steps - An array of steps for the stepper.
9
9
  * @param currentStep - The current step index.
10
10
  * @param children - The content to be displayed in the stepper.
11
- * @param nextButtonProps - Props for the next button, including onClick, label, and disabled state.
12
- * @param prevButtonProps - Props for the previous button, including onClick, label, and disabled state.
13
11
  * @param isStepLoading - A boolean indicating if the current step is loading. If true, the next button will be disabled and show a loading state.
12
+ * @param showStepperHeader - An indicator of whether to show the stepper header. Defaults to true.
13
+ * @param stepperButtonAlignment - The alignment of the stepper button group. Defaults to 'center'.
14
+ * @param showPreviousButtonOnFirstStep - A flag which indicates if the previous button should be shown on the first step. This can be useful for canceling the stepper. Defaults to false.
14
15
  * @returns
15
16
  */
16
- export declare const Stepper: ({ steps, currentStep, children, isStepLoading, }: PropsWithChildren<StepperProps>) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const Stepper: ({ steps, currentStep, children, isStepLoading, showStepperHeader, stepperButtonAlignment, showPreviousButtonOnFirstStep, }: PropsWithChildren<StepperProps>) => import("react/jsx-runtime").JSX.Element;
@@ -1,16 +1,19 @@
1
1
  import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
2
  import { G as o } from "../../index.es-DntoATwO.js";
3
- import { useMemo as s } from "react";
4
- import { StepperPreviousButton as l, StepperNextButton as d } from "./components/StepperButton.js";
5
- import { StepperHeader as m } from "./components/StepperHeader.js";
6
- import { s as c } from "../../stepper.module-HuqmDJPj.js";
7
- const A = ({
3
+ import { useMemo as m } from "react";
4
+ import { StepperPreviousButton as c, StepperNextButton as u } from "./components/StepperButton.js";
5
+ import { StepperHeader as f } from "./components/StepperHeader.js";
6
+ import { s as g } from "../../stepper.module-HuqmDJPj.js";
7
+ const P = ({
8
8
  steps: e,
9
9
  currentStep: t,
10
10
  children: n,
11
- isStepLoading: a
11
+ isStepLoading: a,
12
+ showStepperHeader: p = !0,
13
+ stepperButtonAlignment: l = "center",
14
+ showPreviousButtonOnFirstStep: s = !1
12
15
  }) => {
13
- const p = s(() => t === e.length - 1, [t, e.length]);
16
+ const d = m(() => t === e.length - 1, [t, e.length]);
14
17
  return /* @__PURE__ */ i(
15
18
  o,
16
19
  {
@@ -21,34 +24,43 @@ const A = ({
21
24
  primaryAlign: "center",
22
25
  secondaryAlign: "center",
23
26
  children: [
24
- /* @__PURE__ */ r(m, { steps: e, currentStep: t }),
27
+ p ? /* @__PURE__ */ r(f, { steps: e, currentStep: t }) : null,
25
28
  /* @__PURE__ */ r(
26
29
  o,
27
30
  {
28
31
  "data-testid": "stepper-content",
29
32
  fullWidth: !0,
30
- className: c.stepperContent,
33
+ className: g.stepperContent,
31
34
  gap: "airy",
32
35
  secondaryAlign: "center",
33
36
  direction: "vertical",
34
37
  children: n
35
38
  }
36
39
  ),
37
- /* @__PURE__ */ i(o, { "data-testid": "stepper-buttons", fullWidth: !0, secondaryAlign: "center", primaryAlign: "center", children: [
38
- t !== 0 && /* @__PURE__ */ r(l, { ...e[t].prevButtonProps }),
39
- /* @__PURE__ */ r(
40
- d,
41
- {
42
- ...e[t].nextButtonProps,
43
- isStepLoading: a,
44
- isLastStep: p
45
- }
46
- )
47
- ] })
40
+ /* @__PURE__ */ i(
41
+ o,
42
+ {
43
+ "data-testid": "stepper-buttons",
44
+ fullWidth: !0,
45
+ secondaryAlign: "center",
46
+ primaryAlign: l,
47
+ children: [
48
+ (t !== 0 || s) && /* @__PURE__ */ r(c, { ...e[t].prevButtonProps }),
49
+ /* @__PURE__ */ r(
50
+ u,
51
+ {
52
+ ...e[t].nextButtonProps,
53
+ isStepLoading: a,
54
+ isLastStep: d
55
+ }
56
+ )
57
+ ]
58
+ }
59
+ )
48
60
  ]
49
61
  }
50
62
  );
51
63
  };
52
64
  export {
53
- A as Stepper
65
+ P as Stepper
54
66
  };