@hortiview/shared-components 1.10.0 → 1.11.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 (89) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +43 -1
  3. package/dist/{BigLoadingSpinner-CqSGYzZA.js → BigLoadingSpinner-BbXMCKpm.js} +3 -3
  4. package/dist/{GenericCard-CelFEWlW.js → GenericCard-DuNnB9Ve.js} +1 -1
  5. package/dist/{ListAreaService-DOwtdRa4.js → ListAreaService-Wq9IkwWN.js} +6 -6
  6. package/dist/assets/stepper.css +1 -0
  7. package/dist/components/AlertBanner/AlertBanner.js +3 -3
  8. package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
  9. package/dist/components/BaseView/BaseView.test.js +1 -1
  10. package/dist/components/BasicHeading/BasicHeading.js +1 -1
  11. package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
  12. package/dist/components/BlockView/BlockView.js +1 -1
  13. package/dist/components/BlockView/BlockView.test.js +1 -1
  14. package/dist/components/ChipCard/ChipCard.test.js +1 -1
  15. package/dist/components/ContextMenu/ContextMenu.js +1 -1
  16. package/dist/components/ContextMenu/ContextMenu.test.js +1 -1
  17. package/dist/components/DeleteModal/DeleteModal.js +1 -1
  18. package/dist/components/DeleteModal/DeleteModal.test.js +1 -1
  19. package/dist/components/Disclaimer/Disclaimer.js +1 -1
  20. package/dist/components/Disclaimer/Disclaimer.test.js +1 -1
  21. package/dist/components/EmptyView/EmptyView.js +9 -9
  22. package/dist/components/EmptyView/EmptyView.test.js +5 -5
  23. package/dist/components/Filter/Filter.js +1 -1
  24. package/dist/components/Filter/Filter.test.js +1 -1
  25. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +1 -1
  26. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +1 -1
  27. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +6 -6
  28. package/dist/components/FormComponents/FormNumber/FormNumber.test.js +1 -1
  29. package/dist/components/FormComponents/FormRadio/FormRadio.test.js +1 -1
  30. package/dist/components/FormComponents/FormSelect/FormSelect.test.js +1 -1
  31. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +1 -1
  32. package/dist/components/FormComponents/FormSlider/FormSlider.test.js +4 -4
  33. package/dist/components/FormComponents/FormText/FormText.js +1 -1
  34. package/dist/components/FormComponents/FormText/FormText.test.js +1 -1
  35. package/dist/components/FormComponents/FormToggle/FormToggle.js +1 -1
  36. package/dist/components/FormComponents/FormToggle/FormToggle.test.js +1 -1
  37. package/dist/components/GenericTable/GenericTable.js +3 -3
  38. package/dist/components/GenericTable/GenericTable.test.js +1 -1
  39. package/dist/components/GenericTable/Mobile/GenericCard.js +2 -2
  40. package/dist/components/GenericTable/Mobile/GenericCard.test.js +2 -2
  41. package/dist/components/GenericTable/Mobile/GenericCardList.js +2 -2
  42. package/dist/components/GenericTable/Mobile/GenericCardList.test.js +1 -1
  43. package/dist/components/HashTabView/HashTabView.test.js +1 -1
  44. package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
  45. package/dist/components/HeaderFilter/HeaderFilter.test.js +1 -1
  46. package/dist/components/HealthCheckFailed/HealthCheckFailed.js +1 -1
  47. package/dist/components/HealthCheckFailed/HealthCheckFailed.test.js +1 -1
  48. package/dist/components/Iconify/Iconify.test.js +1 -1
  49. package/dist/components/InfoGroup/InfoGroup.js +1 -1
  50. package/dist/components/InfoGroup/InfoGroup.test.js +1 -1
  51. package/dist/components/ListArea/ListArea.js +2 -2
  52. package/dist/components/ListArea/ListArea.test.js +3 -3
  53. package/dist/components/ListArea/ListAreaService.js +2 -2
  54. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
  55. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +2 -2
  56. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +7 -7
  57. package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +1 -1
  58. package/dist/components/Modal/Modal.js +1 -1
  59. package/dist/components/ModulePadding/ModulePadding.test.js +1 -1
  60. package/dist/components/OverflowTooltip/OverflowTooltip.js +1 -1
  61. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +2 -2
  62. package/dist/components/Scrollbar/scrollbar.test.js +1 -1
  63. package/dist/components/SearchBar/SearchBar.test.js +1 -1
  64. package/dist/components/Select/Select.js +1 -1
  65. package/dist/components/Select/Select.test.js +1 -1
  66. package/dist/components/Stepper/Stepper.d.ts +16 -0
  67. package/dist/components/Stepper/Stepper.js +54 -0
  68. package/dist/components/Stepper/Stepper.test.d.ts +1 -0
  69. package/dist/components/Stepper/Stepper.test.js +95 -0
  70. package/dist/components/Stepper/components/StepperButton.d.ts +25 -0
  71. package/dist/components/Stepper/components/StepperButton.js +44 -0
  72. package/dist/components/Stepper/components/StepperHeader.d.ts +9 -0
  73. package/dist/components/Stepper/components/StepperHeader.js +34 -0
  74. package/dist/components/Stepper/components/StepperIndicator.d.ts +9 -0
  75. package/dist/components/Stepper/components/StepperIndicator.js +16 -0
  76. package/dist/components/Stepper/stepperTypes.d.ts +77 -0
  77. package/dist/components/Stepper/stepperTypes.js +1 -0
  78. package/dist/components/VerticalDivider/VerticalDivider.test.js +1 -1
  79. package/dist/hooks/useBreakpoints.test.js +1 -1
  80. package/dist/{index.es-UHKFl8Da.js → index.es-BNHI3ZIK.js} +2 -2
  81. package/dist/{index.es-zr101OF5.js → index.es-CoFul5zR.js} +2 -2
  82. package/dist/{index.es-CF_xy2ns.js → index.es-D54RuMc_.js} +2 -2
  83. package/dist/{index.es-d5xhUpJZ.js → index.es-fnFnw2P1.js} +1 -1
  84. package/dist/main.d.ts +6 -2
  85. package/dist/main.js +51 -45
  86. package/dist/services/services.test.js +1 -1
  87. package/dist/stepper.module-HuqmDJPj.js +12 -0
  88. package/dist/{vi.CjhMlMwf-BCJNwXvu.js → vi.CjhMlMwf-CKxPQtd6.js} +2 -2
  89. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { a as c, s as o } from "../../../react.esm-CX1WJ2Pp.js";
3
- import { G as i } from "../../../GenericCard-CelFEWlW.js";
4
- import { d as m, t as s, g as e } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
3
+ import { G as i } from "../../../GenericCard-DuNnB9Ve.js";
4
+ import { d as m, t as s, g as e } from "../../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  m("GenericCard", () => {
6
6
  const d = {
7
7
  id: 1,
@@ -1,8 +1,8 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { G as c } from "../../../index.es-DntoATwO.js";
3
3
  import { P as l } from "../../../index.es-D-CKRzIB.js";
4
- import { a as o } from "../../../index.es-CF_xy2ns.js";
5
- import { s as i, G as m } from "../../../GenericCard-CelFEWlW.js";
4
+ import { a as o } from "../../../index.es-D54RuMc_.js";
5
+ import { s as i, G as m } from "../../../GenericCard-DuNnB9Ve.js";
6
6
  const u = ({
7
7
  columns: n,
8
8
  data: e,
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { a as r, s as o, w as l } from "../../../react.esm-CX1WJ2Pp.js";
3
3
  import { GenericCardList as s } from "./GenericCardList.js";
4
- import { d as m, t as i, g as e } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
4
+ import { d as m, t as i, g as e } from "../../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  m("GenericCardList", () => {
6
6
  const d = [
7
7
  { id: "name", header: "Name", accessor: "name", asCardTitle: !0 },
@@ -1,7 +1,7 @@
1
1
  import { jsx as n, Fragment as o } from "react/jsx-runtime";
2
2
  import { a, s as e, f as r } from "../../react.esm-CX1WJ2Pp.js";
3
3
  import { HashTabView as c } from "./HashTabView.js";
4
- import { d as h, t as l, g as t } from "../../vi.CjhMlMwf-BCJNwXvu.js";
4
+ import { d as h, t as l, g as t } from "../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  const m = [
6
6
  {
7
7
  title: "Map",
@@ -1,5 +1,5 @@
1
1
  import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
- import { b as n } from "../../index.es-CF_xy2ns.js";
2
+ import { T as n } from "../../index.es-D54RuMc_.js";
3
3
  import { BasicHeading as s } from "../BasicHeading/BasicHeading.js";
4
4
  import { Select as c } from "../Select/Select.js";
5
5
  import '../../assets/HeaderFilter.css';const d = "_filterSelect_923nc_1", m = {
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { a as i, s as t, f as T } from "../../react.esm-CX1WJ2Pp.js";
3
3
  import { HeaderFilter as s } from "./HeaderFilter.js";
4
- import { d as c, t as o, v as l, g as e } from "../../vi.CjhMlMwf-BCJNwXvu.js";
4
+ import { d as c, t as o, a as l, g as e } from "../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  c("HeaderFilter-Test", () => {
6
6
  o("render header filter", () => {
7
7
  i(
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
2
  import { C as c, a as d, b as l } from "../../index.es-6TJ1S8Jr.js";
3
3
  import { G as h } from "../../index.es-DntoATwO.js";
4
4
  import { P as m } from "../../index.es-D-CKRzIB.js";
5
- import { b as o } from "../../index.es-CF_xy2ns.js";
5
+ import { T as o } from "../../index.es-D54RuMc_.js";
6
6
  import { Iconify as _ } from "../Iconify/Iconify.js";
7
7
  import '../../assets/HealthCheckFailed.css';const p = "_database_11ki8_1", f = "_spin_11ki8_1", u = "_iot_11ki8_16", k = "_platform_11ki8_17", g = "_other_11ki8_18", C = "_crossedOut_11ki8_22", a = {
8
8
  database: p,
@@ -1,7 +1,7 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { a as s, s as e } from "../../react.esm-CX1WJ2Pp.js";
3
3
  import { HealthCheckFailed as r } from "./HealthCheckFailed.js";
4
- import { d as h, t as i, g as t } from "../../vi.CjhMlMwf-BCJNwXvu.js";
4
+ import { d as h, t as i, g as t } from "../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  h("HealthCheckFailed Component", () => {
6
6
  const c = "Test Title", n = "Test Subtitle";
7
7
  i("displays the correct title and subtitle", () => {
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
2
2
  import { Iconify as c } from "./Iconify.js";
3
3
  import { AvailableCustomIcons as l } from "../../enums/AvailableCustomIcons.js";
4
4
  import { a as r, w as s, s as i } from "../../react.esm-CX1WJ2Pp.js";
5
- import { d as f, t as a, g as o } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
+ import { d as f, t as a, g as o } from "../../vi.CjhMlMwf-CKxPQtd6.js";
6
6
  f("Iconify Test", async () => {
7
7
  const m = Object.keys(l).filter((e) => isNaN(Number(e)));
8
8
  a.each(m)("render available custom icon (%s)", async (e) => {
@@ -1,7 +1,7 @@
1
1
  import { jsxs as d, Fragment as p, jsx as t } from "react/jsx-runtime";
2
2
  import { D as h } from "../../index.es-BWgXLqXn.js";
3
3
  import { G as s } from "../../index.es-DntoATwO.js";
4
- import { a as g, d as f } from "../../index.es-CF_xy2ns.js";
4
+ import { a as g, d as f } from "../../index.es-D54RuMc_.js";
5
5
  import { useMemo as _, Fragment as D } from "react";
6
6
  import { u as m } from "../../useBreakpoints-MzTZ0tCT.js";
7
7
  import '../../assets/InfoGroup.css';const C = "_dividerContainer_4c1hq_1", y = "_centerDefaultComponent_4c1hq_10", A = "_verticalDivider_4c1hq_14", G = "_mainGroup_4c1hq_22", x = "_textAlignRight_4c1hq_28", l = {
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { a as l, s as t } from "../../react.esm-CX1WJ2Pp.js";
3
3
  import { InfoGroup as r } from "./InfoGroup.js";
4
- import { d as s, t as i, g as e } from "../../vi.CjhMlMwf-BCJNwXvu.js";
4
+ import { d as s, t as i, g as e } from "../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  s("InfoGroup Test", () => {
6
6
  i("render Single InfoGroup", () => {
7
7
  l(/* @__PURE__ */ o(r, { fields: m }));
@@ -1,11 +1,11 @@
1
1
  import { jsx as s, jsxs as h } from "react/jsx-runtime";
2
2
  import { D as u } from "../../index.es-BWgXLqXn.js";
3
3
  import { E as y } from "../../index.es-h2lMdt7G.js";
4
- import { L as C } from "../../index.es-d5xhUpJZ.js";
4
+ import { L as C } from "../../index.es-fnFnw2P1.js";
5
5
  import { o as p } from "../../orderBy-Bd48bw88.js";
6
6
  import { useState as b, useMemo as v } from "react";
7
7
  import { SearchBar as B } from "../SearchBar/SearchBar.js";
8
- import { g as D, a as j, s as t } from "../../ListAreaService-DOwtdRa4.js";
8
+ import { g as D, a as j, s as t } from "../../ListAreaService-Wq9IkwWN.js";
9
9
  const q = ({
10
10
  elements: r,
11
11
  pathname: o,
@@ -1,9 +1,9 @@
1
1
  import { jsx as r, Fragment as i } from "react/jsx-runtime";
2
- import { c as p } from "../../index.es-CF_xy2ns.js";
2
+ import { c as p } from "../../index.es-D54RuMc_.js";
3
3
  import { a as s, s as a, f as u } from "../../react.esm-CX1WJ2Pp.js";
4
4
  import { ListArea as c } from "./ListArea.js";
5
- import { g as h } from "../../ListAreaService-DOwtdRa4.js";
6
- import { d as m, t as n, g as t } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
+ import { g as h } from "../../ListAreaService-Wq9IkwWN.js";
6
+ import { d as m, t as n, g as t } from "../../vi.CjhMlMwf-CKxPQtd6.js";
7
7
  m("ListArea Test", () => {
8
8
  const o = [
9
9
  {
@@ -1,10 +1,10 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../index.es-DntoATwO.js";
3
3
  import "../../index.es-3043KTnb.js";
4
- import "../../index.es-CF_xy2ns.js";
4
+ import "../../index.es-D54RuMc_.js";
5
5
  import "../Iconify/Iconify.js";
6
6
  import "../../enums/AvailableCustomIcons.js";
7
- import { g as a, a as g, m as d } from "../../ListAreaService-DOwtdRa4.js";
7
+ import { g as a, a as g, m as d } from "../../ListAreaService-Wq9IkwWN.js";
8
8
  export {
9
9
  a as getGroupedItems,
10
10
  g as getListedItems,
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
- import "../../../index.es-CF_xy2ns.js";
2
+ import "../../../index.es-D54RuMc_.js";
3
3
  import "../../Iconify/Iconify.js";
4
- import { B as t } from "../../../BigLoadingSpinner-CqSGYzZA.js";
4
+ import { B as t } from "../../../BigLoadingSpinner-BbXMCKpm.js";
5
5
  export {
6
6
  t as BigLoadingSpinner
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { s as r, B as n } from "../../../BigLoadingSpinner-CqSGYzZA.js";
2
+ import { s as r, B as n } from "../../../BigLoadingSpinner-BbXMCKpm.js";
3
3
  import { a as i, s as e } from "../../../react.esm-CX1WJ2Pp.js";
4
- import { d as g, t as a, g as t } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
4
+ import { d as g, t as a, g as t } from "../../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  g("BigLoadingSpinner Test", () => {
6
6
  a("render BigLoadingSpinner with custom loading text", () => {
7
7
  i(/* @__PURE__ */ o(n, { text: "Please wait..." })), t(e.getByText("Please wait...")).toBeInTheDocument(), t(e.getByRole("progressbar")).toBeInTheDocument();
@@ -2,12 +2,12 @@ import { jsx as y, jsxs as B } from "react/jsx-runtime";
2
2
  import { _ as M, c as P, P as c } from "../../../identity-DLWZln-X.js";
3
3
  import t, { forwardRef as z, useRef as W, useImperativeHandle as F, useEffect as k, useCallback as $, useState as j, useMemo as H } from "react";
4
4
  import { h as U, d as V } from "../../../index.es-da0cf7oE.js";
5
- import { b as R, c as I } from "../../../tslib.es6-BDCynO9F.js";
5
+ import { b as T, c as I } from "../../../tslib.es6-BDCynO9F.js";
6
6
  import { M as G, a as K } from "../../../component-neHBNHRu.js";
7
7
  import { G as q } from "../../../index.es-DntoATwO.js";
8
8
  import { P as J } from "../../../index.es-D-CKRzIB.js";
9
- import { b as Q } from "../../../index.es-CF_xy2ns.js";
10
- import { B as X } from "../../../BigLoadingSpinner-CqSGYzZA.js";
9
+ import { T as Q } from "../../../index.es-D54RuMc_.js";
10
+ import { B as X } from "../../../BigLoadingSpinner-BbXMCKpm.js";
11
11
  import '../../../assets/LoadingSpinner.css';/**
12
12
  * @license
13
13
  * Copyright 2020 Google Inc.
@@ -65,7 +65,7 @@ var m = {
65
65
  var L = (
66
66
  /** @class */
67
67
  function(a) {
68
- R(e, a);
68
+ T(e, a);
69
69
  function e(r) {
70
70
  return a.call(this, I(I({}, e.defaultAdapter), r)) || this;
71
71
  }
@@ -151,7 +151,7 @@ var L = (
151
151
  var Y = (
152
152
  /** @class */
153
153
  function(a) {
154
- R(e, a);
154
+ T(e, a);
155
155
  function e() {
156
156
  return a !== null && a.apply(this, arguments) || this;
157
157
  }
@@ -299,7 +299,7 @@ const Z = {
299
299
  }), []), k(() => {
300
300
  (p === "determinate" && i < 0 || i > 1) && U("CircularProgress: `progress` must be between 0 and 1."), h.current.determinate = p === "determinate", h.current.progress = i;
301
301
  }, [i, p]);
302
- const T = () => {
302
+ const R = () => {
303
303
  switch (v) {
304
304
  case "xs":
305
305
  return {
@@ -384,7 +384,7 @@ const Z = {
384
384
  strokeDashArray: _,
385
385
  strokeDashoffset: O,
386
386
  halfStrokeDashoffset: S
387
- } = T(), b = $(() => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("div", {
387
+ } = R(), b = $(() => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("div", {
388
388
  className: "mdc-circular-progress__circle-clipper mdc-circular-progress__circle-left"
389
389
  }, /* @__PURE__ */ t.createElement("svg", {
390
390
  className: "mdc-circular-progress__indeterminate-circle-graphic",
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
2
2
  import { a, s as e } from "../../../react.esm-CX1WJ2Pp.js";
3
3
  import { act as s } from "react";
4
4
  import { LoadingSpinner as i } from "./LoadingSpinner.js";
5
- import { d as m, b as d, t as o, g as t, a as r } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
5
+ import { d as m, b as d, t as o, g as t, v as r } from "../../../vi.CjhMlMwf-CKxPQtd6.js";
6
6
  m("LoadingSpinner Test", () => {
7
7
  d(() => {
8
8
  r.useFakeTimers();
@@ -9,7 +9,7 @@ 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";
10
10
  import { A as bt } from "../../animationframe-EMBh6XeO.js";
11
11
  import { P as Dt } from "../../index.es-D-CKRzIB.js";
12
- import { T as It } from "../../index.es-CF_xy2ns.js";
12
+ import { b as It } from "../../index.es-D54RuMc_.js";
13
13
  import { Iconify as Nt } from "../Iconify/Iconify.js";
14
14
  import '../../assets/Modal.css';/**
15
15
  * @license
@@ -2,7 +2,7 @@ import { jsx as t } from "react/jsx-runtime";
2
2
  import { a as o, s as e } from "../../react.esm-CX1WJ2Pp.js";
3
3
  import { a } from "../../useBreakpoints-MzTZ0tCT.js";
4
4
  import { ModulePadding as d } from "./ModulePadding.js";
5
- import { d as r, t as i, v as n, g as s } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
+ import { d as r, t as i, a as n, g as s } from "../../vi.CjhMlMwf-CKxPQtd6.js";
6
6
  r("ModulePadding Test", () => {
7
7
  i("should render with padding of 16px for desktop", () => {
8
8
  n.spyOn(a, "useBreakpoints").mockReturnValue({
@@ -1,5 +1,5 @@
1
1
  import { jsxs as c, Fragment as m, jsx as s } from "react/jsx-runtime";
2
- import { b as p } from "../../index.es-CF_xy2ns.js";
2
+ import { T as p } from "../../index.es-D54RuMc_.js";
3
3
  import { useState as d, useMemo as h, cloneElement as f } from "react";
4
4
  import { M as w } from "../../react-tooltip.min-DSY6KDqS.js";
5
5
  import { hasChildWithGreaterWidth as W } from "./OverflowTooltipService.js";
@@ -1,9 +1,9 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { T as n } from "../../index.es-CF_xy2ns.js";
2
+ import { b as n } from "../../index.es-D54RuMc_.js";
3
3
  import { a as i, s as e, w as s } from "../../react.esm-CX1WJ2Pp.js";
4
4
  import { u as a } from "../../index-I7uTh4Tr.js";
5
5
  import { OverflowTooltip as c } from "./OverflowTooltip.js";
6
- import { d as u, t as p, g as r } from "../../vi.CjhMlMwf-BCJNwXvu.js";
6
+ import { d as u, t as p, g as r } from "../../vi.CjhMlMwf-CKxPQtd6.js";
7
7
  u("OverflowTooltip Test", () => {
8
8
  p("should render OverflowTooltip on hover", async () => {
9
9
  Object.defineProperty(HTMLElement.prototype, "clientWidth", {
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import { a, s as e } from "../../react.esm-CX1WJ2Pp.js";
3
3
  import { ScrollbarY as d, ScrollbarX as l } from "./Scrollbar.js";
4
- import { d as c, t, g as o } from "../../vi.CjhMlMwf-BCJNwXvu.js";
4
+ import { d as c, t, g as o } from "../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  c("Scrollbar", () => {
6
6
  t("should render Y correctly", () => {
7
7
  a(/* @__PURE__ */ s("div", { "data-testid": "div", className: d }));
@@ -2,7 +2,7 @@ import { jsx as a } from "react/jsx-runtime";
2
2
  import { a as r, s as t, f as h } from "../../react.esm-CX1WJ2Pp.js";
3
3
  import { act as l } from "react";
4
4
  import { SearchBar as s } from "./SearchBar.js";
5
- import { d as m, t as o, v as n, g as e } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
+ import { d as m, t as o, a as n, g as e } from "../../vi.CjhMlMwf-CKxPQtd6.js";
6
6
  m("SearchBar Test", () => {
7
7
  o("renders SearchBar component", () => {
8
8
  r(
@@ -1,5 +1,5 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { S as f } from "../../index.es-UHKFl8Da.js";
2
+ import { S as f } from "../../index.es-BNHI3ZIK.js";
3
3
  import { useEffect as n } from "react";
4
4
  import { u as S } from "../../uniqueId-NU3-C36A.js";
5
5
  import '../../assets/Select.css';const p = "_customPortal_8wq49_1", $ = "_customSelect_8wq49_7", r = {
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import { a, s as c } from "../../react.esm-CX1WJ2Pp.js";
3
3
  import { Select as n } from "./Select.js";
4
- import { d as l, t as m, g as e } from "../../vi.CjhMlMwf-BCJNwXvu.js";
4
+ import { d as l, t as m, g as e } from "../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  l("Select", () => {
6
6
  const o = [
7
7
  { value: "1", text: "Option 1" },
@@ -0,0 +1,16 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { StepperProps } from './stepperTypes';
3
+
4
+ /**
5
+ * A component that displays a stepper with a header, content, and navigation buttons.
6
+ *
7
+ * !! Be aware that the stepper is not a controlled component, so you need to manage the current step, content and loading state yourself.
8
+ * @param steps - An array of steps for the stepper.
9
+ * @param currentStep - The current step index.
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
+ * @param isStepLoading - A boolean indicating if the current step is loading. If true, the next button will be disabled and show a loading state.
14
+ * @returns
15
+ */
16
+ export declare const Stepper: ({ steps, currentStep, children, isStepLoading, }: PropsWithChildren<StepperProps>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,54 @@
1
+ import { jsxs as i, jsx as r } from "react/jsx-runtime";
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 = ({
8
+ steps: e,
9
+ currentStep: t,
10
+ children: n,
11
+ isStepLoading: a
12
+ }) => {
13
+ const p = s(() => t === e.length - 1, [t, e.length]);
14
+ return /* @__PURE__ */ i(
15
+ o,
16
+ {
17
+ "data-testid": "stepper",
18
+ fullWidth: !0,
19
+ direction: "vertical",
20
+ gap: "airy",
21
+ primaryAlign: "center",
22
+ secondaryAlign: "center",
23
+ children: [
24
+ /* @__PURE__ */ r(m, { steps: e, currentStep: t }),
25
+ /* @__PURE__ */ r(
26
+ o,
27
+ {
28
+ "data-testid": "stepper-content",
29
+ fullWidth: !0,
30
+ className: c.stepperContent,
31
+ gap: "airy",
32
+ secondaryAlign: "center",
33
+ direction: "vertical",
34
+ children: n
35
+ }
36
+ ),
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
+ ] })
48
+ ]
49
+ }
50
+ );
51
+ };
52
+ export {
53
+ A as Stepper
54
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,95 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { a as r, s as n, f as c } from "../../react.esm-CX1WJ2Pp.js";
3
+ import { Stepper as l } from "./Stepper.js";
4
+ import { v as s, d as a, t as p, g as o } from "../../vi.CjhMlMwf-CKxPQtd6.js";
5
+ const i = [
6
+ {
7
+ name: "step1",
8
+ step: 0,
9
+ title: "Step 1",
10
+ optional: !1,
11
+ nextButtonProps: { onClick: s.fn(), label: "Next" },
12
+ prevButtonProps: { onClick: s.fn(), label: "Back" }
13
+ },
14
+ {
15
+ name: "step2",
16
+ step: 1,
17
+ title: "Step 2",
18
+ optional: !1,
19
+ nextButtonProps: { onClick: s.fn(), label: "Next" },
20
+ prevButtonProps: { onClick: s.fn(), label: "Back" }
21
+ },
22
+ {
23
+ name: "step3",
24
+ step: 2,
25
+ title: "Step 3",
26
+ optional: !0,
27
+ nextButtonProps: { onClick: s.fn(), label: "Finish" },
28
+ prevButtonProps: { onClick: s.fn(), label: "Back" }
29
+ }
30
+ ];
31
+ a("Stepper", () => {
32
+ p("renders the stepper header and children", () => {
33
+ r(
34
+ /* @__PURE__ */ e(l, { steps: i, currentStep: 1, isStepLoading: !1, children: /* @__PURE__ */ e("div", { children: "Step Content" }) })
35
+ ), o(n.queryByText("Step 1")).not.toBeInTheDocument(), o(n.getByText("Step 2")).toBeInTheDocument(), o(n.queryByText("Step 3")).not.toBeInTheDocument(), o(n.getByText("Step Content")).toBeInTheDocument();
36
+ }), p("disables the next button when isStepLoading is true", () => {
37
+ r(
38
+ /* @__PURE__ */ e(l, { steps: i, currentStep: 1, isStepLoading: !0, children: /* @__PURE__ */ e("div", { children: "Step Content" }) })
39
+ );
40
+ const t = n.getByText("Next").closest("button");
41
+ o(t).toBeDisabled();
42
+ }), p("calls nextButtonProps.onClick when next button is clicked", () => {
43
+ const t = s.fn();
44
+ i[1].nextButtonProps.onClick = t, r(
45
+ /* @__PURE__ */ e(
46
+ l,
47
+ {
48
+ steps: i,
49
+ currentStep: 1,
50
+ isStepLoading: !1,
51
+ children: /* @__PURE__ */ e("div", { children: "Step Content" })
52
+ }
53
+ )
54
+ ), c.click(n.getByText("Next")), o(t).toHaveBeenCalled();
55
+ }), p("calls prevButtonProps.onClick when prev button is clicked", () => {
56
+ const t = s.fn();
57
+ i[1].prevButtonProps.onClick = t, r(
58
+ /* @__PURE__ */ e(
59
+ l,
60
+ {
61
+ steps: i,
62
+ currentStep: 1,
63
+ isStepLoading: !1,
64
+ children: /* @__PURE__ */ e("div", { children: "Step Content" })
65
+ }
66
+ )
67
+ ), c.click(n.getByText("Back")), o(t).toHaveBeenCalled();
68
+ }), p("does not render the prev button on the first step", () => {
69
+ r(
70
+ /* @__PURE__ */ e(
71
+ l,
72
+ {
73
+ steps: i,
74
+ currentStep: 0,
75
+ isStepLoading: !1,
76
+ children: /* @__PURE__ */ e("div", { children: "Step Content" })
77
+ }
78
+ )
79
+ ), o(n.queryByText("Back")).not.toBeInTheDocument();
80
+ }), p("renders the next button as submit on last step", () => {
81
+ r(
82
+ /* @__PURE__ */ e(
83
+ l,
84
+ {
85
+ steps: i,
86
+ currentStep: 2,
87
+ isStepLoading: !1,
88
+ children: /* @__PURE__ */ e("div", { children: "Step Content" })
89
+ }
90
+ )
91
+ );
92
+ const t = n.getByText("Finish").closest("button");
93
+ o(t).toHaveAttribute("type", "submit");
94
+ });
95
+ });
@@ -0,0 +1,25 @@
1
+ import { StepperButtonProps } from '../stepperTypes';
2
+
3
+ /**
4
+ * A button component for the stepper that is used to go to the previous step.
5
+ * @param label - The label of the button.
6
+ * @param onClick - The function to be called when the button is clicked.
7
+ * @param disabled - Whether the button is disabled or not.
8
+ * @param className - Additional class names to apply to the button.
9
+ * @returns
10
+ */
11
+ export declare const StepperPreviousButton: ({ label, onClick, disabled, className, }: StepperButtonProps) => import("react/jsx-runtime").JSX.Element;
12
+ /**
13
+ * A button component for the stepper that is used to go to the next step.
14
+ * @param label - The label of the button.
15
+ * @param onClick - The function to be called when the button is clicked.
16
+ * @param disabled - Whether the button is disabled or not.
17
+ * @param className - Additional class names to apply to the button.
18
+ * @param isStepLoading - A boolean indicating if the current step is loading. If true, the next button will show a loading state and be disabled.
19
+ * @param isLastStep - A boolean indicating if this is the last step. If true, the button will submit the form instead of going to the next step.
20
+ * @returns
21
+ */
22
+ export declare const StepperNextButton: ({ label, onClick, disabled, className, isStepLoading, isLastStep, }: StepperButtonProps & {
23
+ isStepLoading?: boolean;
24
+ isLastStep?: boolean;
25
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,44 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { B as p } from "../../../index.es-CiqbARoC.js";
3
+ import { s } from "../../../stepper.module-HuqmDJPj.js";
4
+ const c = ({
5
+ label: t,
6
+ onClick: r,
7
+ disabled: e,
8
+ className: o
9
+ }) => /* @__PURE__ */ a(
10
+ p,
11
+ {
12
+ "data-testid": "stepper-previous-button",
13
+ className: `${s.stepperButton} ${o ?? ""}`,
14
+ onClick: r,
15
+ disabled: e,
16
+ fullWidth: !0,
17
+ variant: "outlined",
18
+ leadingIcon: "arrow_back",
19
+ children: t
20
+ }
21
+ ), m = ({
22
+ label: t,
23
+ onClick: r,
24
+ disabled: e,
25
+ className: o,
26
+ isStepLoading: n,
27
+ isLastStep: u
28
+ }) => /* @__PURE__ */ a(
29
+ p,
30
+ {
31
+ "data-testid": "stepper-next-button",
32
+ className: `${s.stepperButton} ${n ? s.stepperButtonLoading : ""} ${o ?? ""}`,
33
+ onClick: r,
34
+ disabled: n || e,
35
+ fullWidth: !0,
36
+ trailingIcon: n || u ? void 0 : "arrow_forward",
37
+ type: u ? "submit" : "button",
38
+ children: t
39
+ }
40
+ );
41
+ export {
42
+ m as StepperNextButton,
43
+ c as StepperPreviousButton
44
+ };
@@ -0,0 +1,9 @@
1
+ import { StepperBaseProps } from '../stepperTypes';
2
+
3
+ /**
4
+ * A component that displays the header of the stepper, including the step indicator (see {@link StepperIndicator}) and title.
5
+ * @param steps - An array of steps for the stepper.
6
+ * @param currentStep - The current step index.
7
+ * @returns
8
+ */
9
+ export declare const StepperHeader: ({ steps, currentStep }: StepperBaseProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,34 @@
1
+ import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
+ import { G as o } from "../../../index.es-DntoATwO.js";
3
+ import { T as p } from "../../../index.es-D54RuMc_.js";
4
+ import { s as i } from "../../../stepper.module-HuqmDJPj.js";
5
+ import { StepperIndicator as s } from "./StepperIndicator.js";
6
+ const f = ({ steps: e, currentStep: r }) => /* @__PURE__ */ a(
7
+ o,
8
+ {
9
+ "data-testid": "stepper-header",
10
+ className: i.stepperContainer,
11
+ gap: "dense",
12
+ primaryAlign: "center",
13
+ secondaryAlign: "center",
14
+ direction: "vertical",
15
+ fullWidth: !0,
16
+ children: [
17
+ /* @__PURE__ */ t(s, { steps: e, currentStep: r }),
18
+ /* @__PURE__ */ t(
19
+ p,
20
+ {
21
+ "data-testid": "stepper-header-description",
22
+ level: 2,
23
+ bold: !0,
24
+ tag: "div",
25
+ className: i.stepperTitle,
26
+ children: e[r]?.title
27
+ }
28
+ )
29
+ ]
30
+ }
31
+ );
32
+ export {
33
+ f as StepperHeader
34
+ };
@@ -0,0 +1,9 @@
1
+ import { StepperBaseProps } from '../stepperTypes';
2
+
3
+ /**
4
+ * A component that displays the stepper indicator, showing the current step and optional steps.
5
+ * @param steps - An array of steps for the stepper.
6
+ * @param currentStep - The current step index.
7
+ * @returns
8
+ */
9
+ export declare const StepperIndicator: ({ steps, currentStep }: StepperBaseProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { G as p } from "../../../index.es-DntoATwO.js";
3
+ import { s as e } from "../../../stepper.module-HuqmDJPj.js";
4
+ const m = ({ steps: a, currentStep: i }) => /* @__PURE__ */ r(p, { gap: "dense", "data-testid": "stepper-indicator", children: a.map((t, o) => /* @__PURE__ */ r(
5
+ "div",
6
+ {
7
+ "data-testid": `stepper-indicator-${t.name}`,
8
+ className: `${e.stepperIndicatorItem}
9
+ ${t.optional ? e.stepperIndicatorItemOptional : ""}
10
+ ${o <= i ? e.stepperIndicatorItemActive : ""}`
11
+ },
12
+ `indicator_${t.name}`
13
+ )) });
14
+ export {
15
+ m as StepperIndicator
16
+ };