@hortiview/shared-components 1.10.0 → 1.12.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 (95) hide show
  1. package/CHANGELOG.md +18 -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/GenericTable.css +1 -1
  7. package/dist/assets/stepper.css +1 -0
  8. package/dist/components/AlertBanner/AlertBanner.js +3 -3
  9. package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
  10. package/dist/components/BaseView/BaseView.test.js +1 -1
  11. package/dist/components/BasicHeading/BasicHeading.js +1 -1
  12. package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
  13. package/dist/components/BlockView/BlockView.js +1 -1
  14. package/dist/components/BlockView/BlockView.test.js +1 -1
  15. package/dist/components/ChipCard/ChipCard.test.js +1 -1
  16. package/dist/components/ContextMenu/ContextMenu.js +1 -1
  17. package/dist/components/ContextMenu/ContextMenu.test.js +1 -1
  18. package/dist/components/DeleteModal/DeleteModal.js +1 -1
  19. package/dist/components/DeleteModal/DeleteModal.test.js +1 -1
  20. package/dist/components/Disclaimer/Disclaimer.js +1 -1
  21. package/dist/components/Disclaimer/Disclaimer.test.js +1 -1
  22. package/dist/components/EmptyView/EmptyView.js +9 -9
  23. package/dist/components/EmptyView/EmptyView.test.js +5 -5
  24. package/dist/components/Filter/Filter.js +1 -1
  25. package/dist/components/Filter/Filter.test.js +1 -1
  26. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +1 -1
  27. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +1 -1
  28. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +6 -6
  29. package/dist/components/FormComponents/FormNumber/FormNumber.test.js +1 -1
  30. package/dist/components/FormComponents/FormRadio/FormRadio.test.js +1 -1
  31. package/dist/components/FormComponents/FormSelect/FormSelect.test.js +1 -1
  32. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +1 -1
  33. package/dist/components/FormComponents/FormSlider/FormSlider.test.js +4 -4
  34. package/dist/components/FormComponents/FormText/FormText.js +1 -1
  35. package/dist/components/FormComponents/FormText/FormText.test.js +1 -1
  36. package/dist/components/FormComponents/FormToggle/FormToggle.js +1 -1
  37. package/dist/components/FormComponents/FormToggle/FormToggle.test.js +1 -1
  38. package/dist/components/GenericTable/GenericTable.d.ts +4 -1
  39. package/dist/components/GenericTable/GenericTable.js +1591 -1578
  40. package/dist/components/GenericTable/GenericTable.test.js +1 -1
  41. package/dist/components/GenericTable/GenericTableService.js +13 -12
  42. package/dist/components/GenericTable/Mobile/GenericCard.js +2 -2
  43. package/dist/components/GenericTable/Mobile/GenericCard.test.js +2 -2
  44. package/dist/components/GenericTable/Mobile/GenericCardList.js +2 -2
  45. package/dist/components/GenericTable/Mobile/GenericCardList.test.js +1 -1
  46. package/dist/components/HashTabView/HashTabView.test.js +1 -1
  47. package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
  48. package/dist/components/HeaderFilter/HeaderFilter.test.js +1 -1
  49. package/dist/components/HealthCheckFailed/HealthCheckFailed.js +1 -1
  50. package/dist/components/HealthCheckFailed/HealthCheckFailed.test.js +1 -1
  51. package/dist/components/Iconify/Iconify.test.js +1 -1
  52. package/dist/components/InfoGroup/InfoGroup.js +1 -1
  53. package/dist/components/InfoGroup/InfoGroup.test.js +1 -1
  54. package/dist/components/ListArea/ListArea.js +2 -2
  55. package/dist/components/ListArea/ListArea.test.js +3 -3
  56. package/dist/components/ListArea/ListAreaService.js +2 -2
  57. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
  58. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +2 -2
  59. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +7 -7
  60. package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +1 -1
  61. package/dist/components/Modal/Modal.js +1 -1
  62. package/dist/components/ModulePadding/ModulePadding.test.js +1 -1
  63. package/dist/components/OverflowTooltip/OverflowTooltip.js +1 -1
  64. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +2 -2
  65. package/dist/components/Scrollbar/scrollbar.test.js +1 -1
  66. package/dist/components/SearchBar/SearchBar.d.ts +4 -14
  67. package/dist/components/SearchBar/SearchBar.js +13 -12
  68. package/dist/components/SearchBar/SearchBar.test.js +1 -1
  69. package/dist/components/Select/Select.js +1 -1
  70. package/dist/components/Select/Select.test.js +1 -1
  71. package/dist/components/Stepper/Stepper.d.ts +16 -0
  72. package/dist/components/Stepper/Stepper.js +54 -0
  73. package/dist/components/Stepper/Stepper.test.d.ts +1 -0
  74. package/dist/components/Stepper/Stepper.test.js +95 -0
  75. package/dist/components/Stepper/components/StepperButton.d.ts +25 -0
  76. package/dist/components/Stepper/components/StepperButton.js +44 -0
  77. package/dist/components/Stepper/components/StepperHeader.d.ts +9 -0
  78. package/dist/components/Stepper/components/StepperHeader.js +34 -0
  79. package/dist/components/Stepper/components/StepperIndicator.d.ts +9 -0
  80. package/dist/components/Stepper/components/StepperIndicator.js +16 -0
  81. package/dist/components/Stepper/stepperTypes.d.ts +77 -0
  82. package/dist/components/Stepper/stepperTypes.js +1 -0
  83. package/dist/components/VerticalDivider/VerticalDivider.test.js +1 -1
  84. package/dist/hooks/useBreakpoints.test.js +1 -1
  85. package/dist/{index.es-UHKFl8Da.js → index.es-BNHI3ZIK.js} +2 -2
  86. package/dist/{index.es-zr101OF5.js → index.es-CoFul5zR.js} +2 -2
  87. package/dist/{index.es-CF_xy2ns.js → index.es-D54RuMc_.js} +2 -2
  88. package/dist/{index.es-d5xhUpJZ.js → index.es-fnFnw2P1.js} +1 -1
  89. package/dist/main.d.ts +6 -2
  90. package/dist/main.js +51 -45
  91. package/dist/services/services.test.js +1 -1
  92. package/dist/stepper.module-HuqmDJPj.js +12 -0
  93. package/dist/types/GenericTable.d.ts +15 -0
  94. package/dist/{vi.CjhMlMwf-BCJNwXvu.js → vi.CjhMlMwf-CKxPQtd6.js} +2 -2
  95. package/package.json +1 -1
@@ -2,7 +2,7 @@ import { jsx as a, jsxs as B } from "react/jsx-runtime";
2
2
  import { a as o, s as e } from "../../react.esm-CX1WJ2Pp.js";
3
3
  import { a as m } from "../../useBreakpoints-MzTZ0tCT.js";
4
4
  import { GenericTable as s } from "./GenericTable.js";
5
- import { d as h, v as r, t as i, g as t } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
+ import { d as h, a as r, t as i, g as t } from "../../vi.CjhMlMwf-CKxPQtd6.js";
6
6
  h("GenericTable Test", () => {
7
7
  r.spyOn(m, "useBreakpoints").mockReturnValue({
8
8
  isDesktop: !0,
@@ -1,7 +1,7 @@
1
- import { jsx as d } from "react/jsx-runtime";
2
- import { useMemo as a } from "react";
3
- import { ContextMenu as x } from "../ContextMenu/ContextMenu.js";
4
- const j = ({
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { useMemo as d } from "react";
3
+ import { ContextMenu as v } from "../ContextMenu/ContextMenu.js";
4
+ const b = ({
5
5
  data: r = [],
6
6
  order: n = [],
7
7
  cellTemplates: e = void 0,
@@ -10,9 +10,9 @@ const j = ({
10
10
  customColumnWidth: o,
11
11
  cardTitleColumn: u,
12
12
  cardSubTitleColumn: s
13
- }) => a(() => {
13
+ }) => d(() => {
14
14
  if (r?.length === 0) return [];
15
- const c = v(r[0], n).map((i) => {
15
+ const c = x(r[0], n).map((i) => {
16
16
  const p = o ? o[i] : void 0;
17
17
  return {
18
18
  id: i,
@@ -20,6 +20,7 @@ const j = ({
20
20
  accessor: i,
21
21
  cellTemplate: e ? e[i] : void 0,
22
22
  cellProps: p ? { width: p } : void 0,
23
+ headerCellProps: p ? { width: p } : void 0,
23
24
  asCardTitle: i === u,
24
25
  asCardSubtitle: i === s
25
26
  };
@@ -37,13 +38,13 @@ const j = ({
37
38
  o,
38
39
  u,
39
40
  s
40
- ]), l = ({
41
+ ]), j = ({
41
42
  data: r = [],
42
43
  getRowActions: n = void 0
43
- }) => a(() => n ? r.map((e) => {
44
- const t = /* @__PURE__ */ d(x, { actions: n(e), iconOrientation: "horizontal" });
44
+ }) => d(() => n ? r.map((e) => {
45
+ const t = /* @__PURE__ */ a(v, { actions: n(e), iconOrientation: "horizontal" });
45
46
  return { ...e, actions: t };
46
- }) : r, [r, n]), v = (r, n) => {
47
+ }) : r, [r, n]), x = (r, n) => {
47
48
  if (!r) return [];
48
49
  let e = Object.keys(r).map((t) => t);
49
50
  return n?.length > 0 && (e = e.sort((t, f) => {
@@ -52,6 +53,6 @@ const j = ({
52
53
  })), e;
53
54
  };
54
55
  export {
55
- j as useGenerateColumns,
56
- l as useGenerateTableData
56
+ b as useGenerateColumns,
57
+ j as useGenerateTableData
57
58
  };
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../../index.es-6TJ1S8Jr.js";
3
- import { G as a } from "../../../GenericCard-CelFEWlW.js";
4
- import "../../../index.es-CF_xy2ns.js";
3
+ import { G as a } from "../../../GenericCard-DuNnB9Ve.js";
4
+ import "../../../index.es-D54RuMc_.js";
5
5
  import "react";
6
6
  import "../../OverflowTooltip/OverflowTooltip.js";
7
7
  export {
@@ -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 }));
@@ -1,4 +1,6 @@
1
- type SearchBarProps = {
1
+ import { TextfieldProps } from '@element-public/react-textfield';
2
+
3
+ type SearchBarProps = Pick<TextfieldProps, 'placeholder' | 'dense' | 'className' | 'fullWidth'> & {
2
4
  /**
3
5
  * the current search term
4
6
  */
@@ -7,18 +9,6 @@ type SearchBarProps = {
7
9
  * the function to set the search term
8
10
  */
9
11
  setSearchTerm: (value: string) => void;
10
- /**
11
- * the placeholder of the search input
12
- */
13
- placeholder?: string;
14
- /**
15
- * if true the field is smaller, normal size otherwise, default: false
16
- */
17
- dense?: boolean;
18
- /**
19
- * optional className to customize the searchbar style
20
- */
21
- className?: string;
22
12
  };
23
- export declare const SearchBar: ({ className, dense, searchTerm, setSearchTerm, placeholder, }: SearchBarProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const SearchBar: ({ className, dense, searchTerm, setSearchTerm, placeholder, fullWidth, }: SearchBarProps) => import("react/jsx-runtime").JSX.Element;
24
14
  export {};
@@ -1,27 +1,28 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { I as c } from "../../index.es-0lQcz8m1.js";
3
- import { T as i } from "../../index.es-25EARqhH.js";
4
- import '../../assets/SearchBar.css';const l = "_searchbar_gnvwc_1", u = {
5
- searchbar: l
6
- }, f = ({
2
+ import { I as i } from "../../index.es-0lQcz8m1.js";
3
+ import { T as l } from "../../index.es-25EARqhH.js";
4
+ import '../../assets/SearchBar.css';const u = "_searchbar_gnvwc_1", b = {
5
+ searchbar: u
6
+ }, p = ({
7
7
  className: o = "",
8
8
  dense: n = !1,
9
9
  searchTerm: a,
10
10
  setSearchTerm: t,
11
- placeholder: s
11
+ placeholder: s,
12
+ fullWidth: e = !0
12
13
  }) => /* @__PURE__ */ r(
13
- i,
14
+ l,
14
15
  {
15
16
  "data-testid": "search-bar-input",
16
- className: `${o ?? ""} ${u.searchbar}`,
17
+ className: `${o ?? ""} ${b.searchbar}`,
17
18
  dense: n,
18
19
  variant: "outlined",
19
20
  placeholder: s,
20
21
  value: a,
21
- onChange: (e) => t(e.target.value),
22
- fullWidth: !0,
22
+ onChange: (c) => t(c.target.value),
23
+ fullWidth: e,
23
24
  trailingIcon: /* @__PURE__ */ r(
24
- c,
25
+ i,
25
26
  {
26
27
  "data-testid": "search-bar-icon-button",
27
28
  icon: a ? "close" : "search",
@@ -31,5 +32,5 @@ import '../../assets/SearchBar.css';const l = "_searchbar_gnvwc_1", u = {
31
32
  }
32
33
  );
33
34
  export {
34
- f as SearchBar
35
+ p as SearchBar
35
36
  };
@@ -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 {};