@hortiview/shared-components 0.0.11114 → 0.0.11155

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 (165) hide show
  1. package/dist/BigLoadingSpinner-C3wTbTD0.js +17 -0
  2. package/dist/GenericCard-B8x1DMa8.js +81 -0
  3. package/dist/ListAreaService-CRX4eEUJ.js +108 -0
  4. package/dist/_Map-Dtlps7IZ.js +113 -0
  5. package/dist/{_commonjsHelpers-CT_km90n.js → _commonjsHelpers-BkfeUUK-.js} +2 -4
  6. package/dist/_overArg-_0pUmCsX.js +14 -0
  7. package/dist/assets/Filter.css +1 -0
  8. package/dist/assets/GenericTable.css +1 -0
  9. package/dist/assets/main.css +1 -0
  10. package/dist/components/AlertBanner/AlertBanner.js +22 -16
  11. package/dist/components/AlertBanner/AlertBanner.test.js +2 -2
  12. package/dist/components/BaseView/BaseView.js +33 -26
  13. package/dist/components/BaseView/BaseView.test.js +25 -25
  14. package/dist/components/BasicHeading/BasicHeading.js +50 -41
  15. package/dist/components/BasicHeading/BasicHeading.test.js +2 -2
  16. package/dist/components/BlockView/BlockView.js +51 -42
  17. package/dist/components/BlockView/BlockView.test.js +2 -2
  18. package/dist/components/ChipCard/ChipCard.js +12 -10
  19. package/dist/components/ChipCard/ChipCard.test.js +2 -2
  20. package/dist/components/ContextMenu/ContextMenu.js +29 -25
  21. package/dist/components/ContextMenu/ContextMenu.test.js +2 -2
  22. package/dist/components/DeleteModal/DeleteModal.js +58 -53
  23. package/dist/components/DeleteModal/DeleteModal.test.js +2 -2
  24. package/dist/components/Disclaimer/Disclaimer.js +11 -8
  25. package/dist/components/Disclaimer/Disclaimer.test.js +2 -2
  26. package/dist/components/EmptyView/EmptyView.test.js +2 -2
  27. package/dist/components/Filter/Filter.js +107 -125
  28. package/dist/components/Filter/Filter.test.js +2 -2
  29. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +19 -19
  30. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +2 -2
  31. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.d.ts +3 -0
  32. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +6081 -7102
  33. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +2 -2
  34. package/dist/components/FormComponents/FormNumber/CustomTextField.js +16 -14
  35. package/dist/components/FormComponents/FormNumber/FormNumber.js +2 -2
  36. package/dist/components/FormComponents/FormNumber/FormNumber.test.js +4 -4
  37. package/dist/components/FormComponents/FormRadio/FormRadio.test.js +2 -2
  38. package/dist/components/FormComponents/FormSelect/FormSelect.d.ts +1 -1
  39. package/dist/components/FormComponents/FormSelect/FormSelect.js +109 -102
  40. package/dist/components/FormComponents/FormSelect/FormSelect.test.js +3 -3
  41. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +5 -5
  42. package/dist/components/FormComponents/FormSlider/FormSlider.test.js +2 -2
  43. package/dist/components/FormComponents/FormText/FormText.js +95 -96
  44. package/dist/components/FormComponents/FormText/FormText.test.js +13 -13
  45. package/dist/components/FormComponents/FormToggle/FormToggle.d.ts +31 -0
  46. package/dist/components/FormComponents/FormToggle/FormToggle.js +43 -0
  47. package/dist/components/FormComponents/FormToggle/FormToggle.test.d.ts +1 -0
  48. package/dist/components/FormComponents/FormToggle/FormToggle.test.js +50 -0
  49. package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.js +1 -1
  50. package/dist/components/GenericTable/GenericTable.js +64 -81
  51. package/dist/components/GenericTable/GenericTable.test.js +2 -2
  52. package/dist/components/GenericTable/GenericTableService.js +41 -43
  53. package/dist/components/GenericTable/Mobile/GenericCard.js +6 -68
  54. package/dist/components/GenericTable/Mobile/GenericCard.test.js +3 -3
  55. package/dist/components/GenericTable/Mobile/GenericCardList.js +8 -9
  56. package/dist/components/GenericTable/Mobile/GenericCardList.test.js +2 -2
  57. package/dist/components/HashTabView/HashTabView.js +62 -52
  58. package/dist/components/HashTabView/HashTabView.test.js +2 -2
  59. package/dist/components/HeaderFilter/HeaderFilter.js +16 -14
  60. package/dist/components/HeaderFilter/HeaderFilter.test.js +2 -2
  61. package/dist/components/HealthCheckFailed/HealthCheckFailed.js +27 -20
  62. package/dist/components/HealthCheckFailed/HealthCheckFailed.test.js +2 -2
  63. package/dist/components/Iconify/Iconify.js +56 -6
  64. package/dist/components/Iconify/Iconify.test.js +3 -3
  65. package/dist/components/InfoGroup/InfoGroup.js +36 -30
  66. package/dist/components/InfoGroup/InfoGroup.test.js +2 -2
  67. package/dist/components/ListArea/ListArea.js +45 -357
  68. package/dist/components/ListArea/ListArea.test.js +4 -4
  69. package/dist/components/ListArea/ListAreaService.js +8 -92
  70. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +5 -9
  71. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +3 -4
  72. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +28 -26
  73. package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +2 -2
  74. package/dist/components/Modal/Modal.js +6 -4
  75. package/dist/components/OverflowTooltip/OverflowTooltip.js +21 -19
  76. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +3 -3
  77. package/dist/components/OverflowTooltip/OverflowTooltipService.js +1 -2
  78. package/dist/components/Scrollbar/scrollbar.test.js +2 -2
  79. package/dist/components/SearchBar/SearchBar.js +22 -20
  80. package/dist/components/SearchBar/SearchBar.test.js +2 -2
  81. package/dist/components/VerticalDivider/VerticalDivider.js +6 -4
  82. package/dist/components/VerticalDivider/VerticalDivider.test.js +2 -2
  83. package/dist/get-BiqanC9_.js +7 -0
  84. package/dist/get-P-5PYZOE.js +426 -0
  85. package/dist/hooks/useBreakpoints.test.js +2 -2
  86. package/dist/hooks/useHelperText.d.ts +13 -0
  87. package/dist/hooks/useHelperText.js +24 -0
  88. package/dist/index-DzM8o582.js +10881 -0
  89. package/dist/isArray-2zMxXFEr.js +83 -0
  90. package/dist/isArray-C_5XvIlE.js +7 -0
  91. package/dist/isEmpty-BimaZd5G.js +225 -0
  92. package/dist/isString-BOHPtrlm.js +44 -0
  93. package/dist/magic-string.es-D4UQQyt0.js +859 -0
  94. package/dist/main.d.ts +1 -0
  95. package/dist/main.js +33 -31
  96. package/dist/orderBy-BVQIswlJ.js +765 -0
  97. package/dist/{react-number-format.es-BeIT_PM7.js → react-number-format.es-BD3_OvMU.js} +156 -159
  98. package/dist/react-tooltip.min-c2wVkjF2.js +1354 -0
  99. package/dist/react.esm-FR1-H8iU.js +13471 -0
  100. package/dist/services/UtilService.js +12 -19
  101. package/dist/services/services.test.js +1 -1
  102. package/dist/vi.CjhMlMwf-DWv7vrn7.js +12192 -0
  103. package/package.json +8 -6
  104. package/dist/BlockView.module-BPlNT5uh.js +0 -15
  105. package/dist/HashTabView.module-ZhwSfDeQ.js +0 -16
  106. package/dist/HeaderFilter.module-DiBmulr5.js +0 -7
  107. package/dist/Iconify-DoU6pP1o.js +0 -97
  108. package/dist/_Map-DKsHX-kc.js +0 -59
  109. package/dist/_baseToString-dkhmFwqS.js +0 -198
  110. package/dist/_equalByTag-BZEJl6ST.js +0 -158
  111. package/dist/_overArg-BC4qXKbU.js +0 -9
  112. package/dist/alertBanner.module-BPiKN0gh.js +0 -11
  113. package/dist/assets/genericTable.css +0 -1
  114. package/dist/baseView.module-uWbm_a5f.js +0 -12
  115. package/dist/basicHeading.module-BYb8xvuk.js +0 -16
  116. package/dist/bigLoadingSpinner.module-GgbFol8k.js +0 -11
  117. package/dist/chipCard.module-BjpKuf1b.js +0 -7
  118. package/dist/contextMenu.module-vNQHb48g.js +0 -9
  119. package/dist/deleteModal.module-Ds3MDzdl.js +0 -10
  120. package/dist/disclaimer.module-BZydt-Q_.js +0 -8
  121. package/dist/formDatePicker.module-BV3ma_7y.js +0 -11
  122. package/dist/formNumber.module-BA05Gi6_.js +0 -7
  123. package/dist/formSelect.module-PUiLDSD4.js +0 -15
  124. package/dist/formText.module-C0by6_DK.js +0 -12
  125. package/dist/genericCard.module-DrQu86jX.js +0 -15
  126. package/dist/genericTable.module-Dk3yy2S3.js +0 -17
  127. package/dist/get-BJn2Enx7.js +0 -47
  128. package/dist/healthCheckFailed.module-B5P1ogjs.js +0 -12
  129. package/dist/iconify.module-Cru5NS2X.js +0 -80
  130. package/dist/index-IMXII42b.js +0 -11708
  131. package/dist/infoGroup.module-Cxw88dfC.js +0 -12
  132. package/dist/isArray-thIeLpc5.js +0 -35
  133. package/dist/isPlainObject-BlCDf1Kc.js +0 -18
  134. package/dist/listArea.module-BhO_OJ1S.js +0 -20
  135. package/dist/loadingSpinner.module-CLtqSMWA.js +0 -7
  136. package/dist/magic-string.es-irX7syie.js +0 -732
  137. package/dist/modal.module-BlDp1Wiq.js +0 -7
  138. package/dist/overflowTooltip.module-YyRN2MGc.js +0 -7
  139. package/dist/react-tooltip.min-BzHiZW8k.js +0 -1380
  140. package/dist/react.esm-CHvVvf3L.js +0 -12786
  141. package/dist/searchBar.module-9gKyrZRT.js +0 -7
  142. package/dist/verticalDivider.module-C3_GL-fH.js +0 -7
  143. package/dist/vi.JYQecGiw-BpOAB4v6.js +0 -9796
  144. /package/dist/assets/{alertBanner.css → AlertBanner.css} +0 -0
  145. /package/dist/assets/{baseView.css → BaseView.css} +0 -0
  146. /package/dist/assets/{basicHeading.css → BasicHeading.css} +0 -0
  147. /package/dist/assets/{bigLoadingSpinner.css → BigLoadingSpinner.css} +0 -0
  148. /package/dist/assets/{chipCard.css → ChipCard.css} +0 -0
  149. /package/dist/assets/{contextMenu.css → ContextMenu.css} +0 -0
  150. /package/dist/assets/{formNumber.css → CustomTextField.css} +0 -0
  151. /package/dist/assets/{deleteModal.css → DeleteModal.css} +0 -0
  152. /package/dist/assets/{disclaimer.css → Disclaimer.css} +0 -0
  153. /package/dist/assets/{formDatePicker.css → FormDatePicker.css} +0 -0
  154. /package/dist/assets/{formSelect.css → FormSelect.css} +0 -0
  155. /package/dist/assets/{formText.css → FormText.css} +0 -0
  156. /package/dist/assets/{genericCard.css → GenericCard.css} +0 -0
  157. /package/dist/assets/{healthCheckFailed.css → HealthCheckFailed.css} +0 -0
  158. /package/dist/assets/{iconify.css → Iconify.css} +0 -0
  159. /package/dist/assets/{infoGroup.css → InfoGroup.css} +0 -0
  160. /package/dist/assets/{listArea.css → ListAreaService.css} +0 -0
  161. /package/dist/assets/{loadingSpinner.css → LoadingSpinner.css} +0 -0
  162. /package/dist/assets/{modal.css → Modal.css} +0 -0
  163. /package/dist/assets/{overflowTooltip.css → OverflowTooltip.css} +0 -0
  164. /package/dist/assets/{searchBar.css → SearchBar.css} +0 -0
  165. /package/dist/assets/{verticalDivider.css → VerticalDivider.css} +0 -0
@@ -1,14 +1,16 @@
1
+ import "../../assets/Modal.css";
1
2
  import { jsx as o } from "react/jsx-runtime";
2
3
  import { Modal as l } from "@element/react-components";
3
- import { s as m } from "../../modal.module-BlDp1Wiq.js";
4
- const d = (a) => /* @__PURE__ */ o(
4
+ const m = "_modal_a4n3a_1", t = {
5
+ modal: m
6
+ }, r = (a) => /* @__PURE__ */ o(
5
7
  l,
6
8
  {
7
9
  ...a,
8
10
  "data-testid": "modal",
9
- className: `${a.className ?? ""} ${a.modalSize === "fullscreen" ? m.modal : ""}`
11
+ className: `${a.className ?? ""} ${a.modalSize === "fullscreen" ? t.modal : ""}`
10
12
  }
11
13
  );
12
14
  export {
13
- d as Modal
15
+ r as Modal
14
16
  };
@@ -1,27 +1,29 @@
1
- import { jsxs as p, Fragment as a, jsx as s } from "react/jsx-runtime";
2
- import { TypoBody as h } from "@element/react-components";
3
- import { useState as c, useMemo as d, cloneElement as f } from "react";
4
- import { H as W } from "../../react-tooltip.min-BzHiZW8k.js";
5
- import { s as w } from "../../overflowTooltip.module-YyRN2MGc.js";
6
- import { hasChildWithGreaterWidth as x } from "./OverflowTooltipService.js";
7
- const H = ({ id: t, text: i, children: e }) => {
8
- const [l, r] = c(!1), m = d(
1
+ import "../../assets/OverflowTooltip.css";
2
+ import { jsxs as m, Fragment as a, jsx as s } from "react/jsx-runtime";
3
+ import { TypoBody as p } from "@element/react-components";
4
+ import { useState as h, useMemo as d, cloneElement as f } from "react";
5
+ import { H as w } from "../../react-tooltip.min-c2wVkjF2.js";
6
+ import { hasChildWithGreaterWidth as W } from "./OverflowTooltipService.js";
7
+ const u = "_truncate_wgwcv_1", v = {
8
+ truncate: u
9
+ }, H = ({ id: o, text: i, children: e }) => {
10
+ const [l, r] = h(!1), n = d(
9
11
  () => f(e, {
10
- "data-tooltip-id": t,
11
- onMouseEnter: ({ currentTarget: o }) => {
12
- const n = o.clientWidth < o.scrollWidth || o.clientHeight < o.scrollHeight || x(o, o.parentElement?.clientWidth);
13
- r(n);
12
+ "data-tooltip-id": o,
13
+ onMouseEnter: ({ currentTarget: t }) => {
14
+ const c = t.clientWidth < t.scrollWidth || t.clientHeight < t.scrollHeight || W(t, t.parentElement?.clientWidth);
15
+ r(c);
14
16
  },
15
- className: `${w.truncate} ${e.props.className}`
17
+ className: `${v.truncate} ${e.props.className}`
16
18
  }),
17
- [e, t]
19
+ [e, o]
18
20
  );
19
- return /* @__PURE__ */ p(a, { children: [
20
- m,
21
+ return /* @__PURE__ */ m(a, { children: [
22
+ n,
21
23
  /* @__PURE__ */ s(
22
- W,
24
+ w,
23
25
  {
24
- id: t,
26
+ id: o,
25
27
  noArrow: !0,
26
28
  place: "bottom",
27
29
  clickable: !0,
@@ -31,7 +33,7 @@ const H = ({ id: t, text: i, children: e }) => {
31
33
  maxWidth: "90%",
32
34
  wordBreak: "break-word"
33
35
  },
34
- children: /* @__PURE__ */ s(h, { level: 2, children: i })
36
+ children: /* @__PURE__ */ s(p, { level: 2, children: i })
35
37
  }
36
38
  )
37
39
  ] });
@@ -1,9 +1,9 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { TypoDisplay as n } from "@element/react-components";
3
- import { a as i, s as e, w as s } from "../../react.esm-CHvVvf3L.js";
4
- import { u as a } from "../../index-IMXII42b.js";
3
+ import { a as i, s as e, w as s } from "../../react.esm-FR1-H8iU.js";
4
+ import { u as a } from "../../index-DzM8o582.js";
5
5
  import { OverflowTooltip as c } from "./OverflowTooltip.js";
6
- import { d as u, t as p, g as r } from "../../vi.JYQecGiw-BpOAB4v6.js";
6
+ import { d as u, t as p, g as r } from "../../vi.CjhMlMwf-DWv7vrn7.js";
7
7
  u("OverflowTooltip Test", () => {
8
8
  p("should render OverflowTooltip on hover", async () => {
9
9
  Object.defineProperty(HTMLElement.prototype, "clientWidth", {
@@ -1,6 +1,5 @@
1
1
  const f = (t, e) => {
2
- if (!e)
3
- return !0;
2
+ if (!e) return !0;
4
3
  for (const r of t.children)
5
4
  if (r instanceof HTMLElement && (r.offsetWidth > e || f(r, e)))
6
5
  return !0;
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { a, s as e } from "../../react.esm-CHvVvf3L.js";
2
+ import { a, s as e } from "../../react.esm-FR1-H8iU.js";
3
3
  import { ScrollbarY as d, ScrollbarX as l } from "./Scrollbar.js";
4
- import { d as c, t, g as o } from "../../vi.JYQecGiw-BpOAB4v6.js";
4
+ import { d as c, t, g as o } from "../../vi.CjhMlMwf-DWv7vrn7.js";
5
5
  c("Scrollbar", () => {
6
6
  t("should render Y correctly", () => {
7
7
  a(/* @__PURE__ */ s("div", { "data-testid": "div", className: d }));
@@ -1,32 +1,34 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { Textfield as l, IconButton as s } from "@element/react-components";
3
- import { s as c } from "../../searchBar.module-9gKyrZRT.js";
4
- const p = ({
5
- className: i = "",
6
- dense: r = !1,
7
- searchTerm: t,
8
- setSearchTerm: a,
9
- placeholder: n
10
- }) => /* @__PURE__ */ o(
11
- l,
1
+ import "../../assets/SearchBar.css";
2
+ import { jsx as r } from "react/jsx-runtime";
3
+ import { Textfield as i, IconButton as s } from "@element/react-components";
4
+ const l = "_searchbar_gnvwc_1", u = {
5
+ searchbar: l
6
+ }, b = ({
7
+ className: n = "",
8
+ dense: e = !1,
9
+ searchTerm: a,
10
+ setSearchTerm: t,
11
+ placeholder: o
12
+ }) => /* @__PURE__ */ r(
13
+ i,
12
14
  {
13
15
  "data-testid": "search-bar-input",
14
- className: `${i ?? ""} ${c.searchbar}`,
15
- dense: r,
16
+ className: `${n ?? ""} ${u.searchbar}`,
17
+ dense: e,
16
18
  variant: "outlined",
17
- placeholder: n,
18
- value: t,
19
- onChange: (e) => a(e.target.value),
19
+ placeholder: o,
20
+ value: a,
21
+ onChange: (c) => t(c.target.value),
20
22
  fullWidth: !0,
21
- trailingIcon: /* @__PURE__ */ o(
23
+ trailingIcon: /* @__PURE__ */ r(
22
24
  s,
23
25
  {
24
- icon: t ? "close" : "search",
25
- onClick: () => t ? a("") : void 0
26
+ icon: a ? "close" : "search",
27
+ onClick: () => a ? t("") : void 0
26
28
  }
27
29
  )
28
30
  }
29
31
  );
30
32
  export {
31
- p as SearchBar
33
+ b as SearchBar
32
34
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { a as r, s as t, f as h, b as l } from "../../react.esm-CHvVvf3L.js";
2
+ import { a as r, s as t, f as h, b as l } from "../../react.esm-FR1-H8iU.js";
3
3
  import { SearchBar as s } from "./SearchBar.js";
4
- import { d as m, t as o, v as n, g as e } from "../../vi.JYQecGiw-BpOAB4v6.js";
4
+ import { d as m, t as o, v as n, g as e } from "../../vi.CjhMlMwf-DWv7vrn7.js";
5
5
  m("SearchBar Test", () => {
6
6
  o("renders SearchBar component", () => {
7
7
  r(
@@ -1,6 +1,8 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { s as i } from "../../verticalDivider.module-C3_GL-fH.js";
3
- const o = ({ height: r = "2rem", className: e = "" }) => /* @__PURE__ */ s("div", { className: `${i.divider} ${e}`, style: { height: r } });
1
+ import "../../assets/VerticalDivider.css";
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ const d = "_divider_opvom_1", t = {
4
+ divider: d
5
+ }, v = ({ height: i = "2rem", className: r = "" }) => /* @__PURE__ */ e("div", { className: `${t.divider} ${r}`, style: { height: i } });
4
6
  export {
5
- o as VerticalDivider
7
+ v as VerticalDivider
6
8
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { a as r } from "../../react.esm-CHvVvf3L.js";
2
+ import { a as r } from "../../react.esm-FR1-H8iU.js";
3
3
  import { VerticalDivider as s } from "./VerticalDivider.js";
4
- import { d as o, t as l, g as i } from "../../vi.JYQecGiw-BpOAB4v6.js";
4
+ import { d as o, t as l, g as i } from "../../vi.CjhMlMwf-DWv7vrn7.js";
5
5
  o("VerticalDivider Test", () => {
6
6
  l("it should render with basic styling", () => {
7
7
  r(/* @__PURE__ */ e(s, {}));
@@ -0,0 +1,7 @@
1
+ import { g as r } from "./_commonjsHelpers-BkfeUUK-.js";
2
+ import { r as t } from "./get-P-5PYZOE.js";
3
+ var o = t();
4
+ const a = /* @__PURE__ */ r(o);
5
+ export {
6
+ a as g
7
+ };
@@ -0,0 +1,426 @@
1
+ import { a as Ie, b as Oe, r as J, e as xe } from "./isArray-2zMxXFEr.js";
2
+ import { r as Te, a as we } from "./_Map-Dtlps7IZ.js";
3
+ var l, V;
4
+ function Ke() {
5
+ if (V) return l;
6
+ V = 1;
7
+ function t(a, e) {
8
+ for (var n = -1, i = a == null ? 0 : a.length, r = Array(i); ++n < i; )
9
+ r[n] = e(a[n], n, a);
10
+ return r;
11
+ }
12
+ return l = t, l;
13
+ }
14
+ var p, W;
15
+ function Q() {
16
+ if (W) return p;
17
+ W = 1;
18
+ var t = Ie(), a = Oe(), e = "[object Symbol]";
19
+ function n(i) {
20
+ return typeof i == "symbol" || a(i) && t(i) == e;
21
+ }
22
+ return p = n, p;
23
+ }
24
+ var v, Y;
25
+ function Ee() {
26
+ if (Y) return v;
27
+ Y = 1;
28
+ var t = J(), a = Q(), e = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, n = /^\w*$/;
29
+ function i(r, s) {
30
+ if (t(r))
31
+ return !1;
32
+ var u = typeof r;
33
+ return u == "number" || u == "symbol" || u == "boolean" || r == null || a(r) ? !0 : n.test(r) || !e.test(r) || s != null && r in Object(s);
34
+ }
35
+ return v = i, v;
36
+ }
37
+ var d, k;
38
+ function c() {
39
+ if (k) return d;
40
+ k = 1;
41
+ var t = Te(), a = t(Object, "create");
42
+ return d = a, d;
43
+ }
44
+ var C, ee;
45
+ function Ae() {
46
+ if (ee) return C;
47
+ ee = 1;
48
+ var t = c();
49
+ function a() {
50
+ this.__data__ = t ? t(null) : {}, this.size = 0;
51
+ }
52
+ return C = a, C;
53
+ }
54
+ var q, re;
55
+ function Ne() {
56
+ if (re) return q;
57
+ re = 1;
58
+ function t(a) {
59
+ var e = this.has(a) && delete this.__data__[a];
60
+ return this.size -= e ? 1 : 0, e;
61
+ }
62
+ return q = t, q;
63
+ }
64
+ var m, ae;
65
+ function Le() {
66
+ if (ae) return m;
67
+ ae = 1;
68
+ var t = c(), a = "__lodash_hash_undefined__", e = Object.prototype, n = e.hasOwnProperty;
69
+ function i(r) {
70
+ var s = this.__data__;
71
+ if (t) {
72
+ var u = s[r];
73
+ return u === a ? void 0 : u;
74
+ }
75
+ return n.call(s, r) ? s[r] : void 0;
76
+ }
77
+ return m = i, m;
78
+ }
79
+ var y, te;
80
+ function je() {
81
+ if (te) return y;
82
+ te = 1;
83
+ var t = c(), a = Object.prototype, e = a.hasOwnProperty;
84
+ function n(i) {
85
+ var r = this.__data__;
86
+ return t ? r[i] !== void 0 : e.call(r, i);
87
+ }
88
+ return y = n, y;
89
+ }
90
+ var g, ie;
91
+ function Fe() {
92
+ if (ie) return g;
93
+ ie = 1;
94
+ var t = c(), a = "__lodash_hash_undefined__";
95
+ function e(n, i) {
96
+ var r = this.__data__;
97
+ return this.size += this.has(n) ? 0 : 1, r[n] = t && i === void 0 ? a : i, this;
98
+ }
99
+ return g = e, g;
100
+ }
101
+ var b, ne;
102
+ function Ue() {
103
+ if (ne) return b;
104
+ ne = 1;
105
+ var t = Ae(), a = Ne(), e = Le(), n = je(), i = Fe();
106
+ function r(s) {
107
+ var u = -1, h = s == null ? 0 : s.length;
108
+ for (this.clear(); ++u < h; ) {
109
+ var o = s[u];
110
+ this.set(o[0], o[1]);
111
+ }
112
+ }
113
+ return r.prototype.clear = t, r.prototype.delete = a, r.prototype.get = e, r.prototype.has = n, r.prototype.set = i, b = r, b;
114
+ }
115
+ var S, se;
116
+ function $e() {
117
+ if (se) return S;
118
+ se = 1;
119
+ function t() {
120
+ this.__data__ = [], this.size = 0;
121
+ }
122
+ return S = t, S;
123
+ }
124
+ var R, ue;
125
+ function Xe() {
126
+ if (ue) return R;
127
+ ue = 1;
128
+ function t(a, e) {
129
+ return a === e || a !== a && e !== e;
130
+ }
131
+ return R = t, R;
132
+ }
133
+ var D, he;
134
+ function _() {
135
+ if (he) return D;
136
+ he = 1;
137
+ var t = Xe();
138
+ function a(e, n) {
139
+ for (var i = e.length; i--; )
140
+ if (t(e[i][0], n))
141
+ return i;
142
+ return -1;
143
+ }
144
+ return D = a, D;
145
+ }
146
+ var M, oe;
147
+ function Ze() {
148
+ if (oe) return M;
149
+ oe = 1;
150
+ var t = _(), a = Array.prototype, e = a.splice;
151
+ function n(i) {
152
+ var r = this.__data__, s = t(r, i);
153
+ if (s < 0)
154
+ return !1;
155
+ var u = r.length - 1;
156
+ return s == u ? r.pop() : e.call(r, s, 1), --this.size, !0;
157
+ }
158
+ return M = n, M;
159
+ }
160
+ var z, ce;
161
+ function Be() {
162
+ if (ce) return z;
163
+ ce = 1;
164
+ var t = _();
165
+ function a(e) {
166
+ var n = this.__data__, i = t(n, e);
167
+ return i < 0 ? void 0 : n[i][1];
168
+ }
169
+ return z = a, z;
170
+ }
171
+ var G, _e;
172
+ function Je() {
173
+ if (_e) return G;
174
+ _e = 1;
175
+ var t = _();
176
+ function a(e) {
177
+ return t(this.__data__, e) > -1;
178
+ }
179
+ return G = a, G;
180
+ }
181
+ var H, fe;
182
+ function Qe() {
183
+ if (fe) return H;
184
+ fe = 1;
185
+ var t = _();
186
+ function a(e, n) {
187
+ var i = this.__data__, r = t(i, e);
188
+ return r < 0 ? (++this.size, i.push([e, n])) : i[r][1] = n, this;
189
+ }
190
+ return H = a, H;
191
+ }
192
+ var P, le;
193
+ function Ve() {
194
+ if (le) return P;
195
+ le = 1;
196
+ var t = $e(), a = Ze(), e = Be(), n = Je(), i = Qe();
197
+ function r(s) {
198
+ var u = -1, h = s == null ? 0 : s.length;
199
+ for (this.clear(); ++u < h; ) {
200
+ var o = s[u];
201
+ this.set(o[0], o[1]);
202
+ }
203
+ }
204
+ return r.prototype.clear = t, r.prototype.delete = a, r.prototype.get = e, r.prototype.has = n, r.prototype.set = i, P = r, P;
205
+ }
206
+ var I, pe;
207
+ function We() {
208
+ if (pe) return I;
209
+ pe = 1;
210
+ var t = Ue(), a = Ve(), e = we();
211
+ function n() {
212
+ this.size = 0, this.__data__ = {
213
+ hash: new t(),
214
+ map: new (e || a)(),
215
+ string: new t()
216
+ };
217
+ }
218
+ return I = n, I;
219
+ }
220
+ var O, ve;
221
+ function Ye() {
222
+ if (ve) return O;
223
+ ve = 1;
224
+ function t(a) {
225
+ var e = typeof a;
226
+ return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? a !== "__proto__" : a === null;
227
+ }
228
+ return O = t, O;
229
+ }
230
+ var x, de;
231
+ function f() {
232
+ if (de) return x;
233
+ de = 1;
234
+ var t = Ye();
235
+ function a(e, n) {
236
+ var i = e.__data__;
237
+ return t(n) ? i[typeof n == "string" ? "string" : "hash"] : i.map;
238
+ }
239
+ return x = a, x;
240
+ }
241
+ var T, Ce;
242
+ function ke() {
243
+ if (Ce) return T;
244
+ Ce = 1;
245
+ var t = f();
246
+ function a(e) {
247
+ var n = t(this, e).delete(e);
248
+ return this.size -= n ? 1 : 0, n;
249
+ }
250
+ return T = a, T;
251
+ }
252
+ var w, qe;
253
+ function er() {
254
+ if (qe) return w;
255
+ qe = 1;
256
+ var t = f();
257
+ function a(e) {
258
+ return t(this, e).get(e);
259
+ }
260
+ return w = a, w;
261
+ }
262
+ var K, me;
263
+ function rr() {
264
+ if (me) return K;
265
+ me = 1;
266
+ var t = f();
267
+ function a(e) {
268
+ return t(this, e).has(e);
269
+ }
270
+ return K = a, K;
271
+ }
272
+ var E, ye;
273
+ function ar() {
274
+ if (ye) return E;
275
+ ye = 1;
276
+ var t = f();
277
+ function a(e, n) {
278
+ var i = t(this, e), r = i.size;
279
+ return i.set(e, n), this.size += i.size == r ? 0 : 1, this;
280
+ }
281
+ return E = a, E;
282
+ }
283
+ var A, ge;
284
+ function tr() {
285
+ if (ge) return A;
286
+ ge = 1;
287
+ var t = We(), a = ke(), e = er(), n = rr(), i = ar();
288
+ function r(s) {
289
+ var u = -1, h = s == null ? 0 : s.length;
290
+ for (this.clear(); ++u < h; ) {
291
+ var o = s[u];
292
+ this.set(o[0], o[1]);
293
+ }
294
+ }
295
+ return r.prototype.clear = t, r.prototype.delete = a, r.prototype.get = e, r.prototype.has = n, r.prototype.set = i, A = r, A;
296
+ }
297
+ var N, be;
298
+ function ir() {
299
+ if (be) return N;
300
+ be = 1;
301
+ var t = tr(), a = "Expected a function";
302
+ function e(n, i) {
303
+ if (typeof n != "function" || i != null && typeof i != "function")
304
+ throw new TypeError(a);
305
+ var r = function() {
306
+ var s = arguments, u = i ? i.apply(this, s) : s[0], h = r.cache;
307
+ if (h.has(u))
308
+ return h.get(u);
309
+ var o = n.apply(this, s);
310
+ return r.cache = h.set(u, o) || h, o;
311
+ };
312
+ return r.cache = new (e.Cache || t)(), r;
313
+ }
314
+ return e.Cache = t, N = e, N;
315
+ }
316
+ var L, Se;
317
+ function nr() {
318
+ if (Se) return L;
319
+ Se = 1;
320
+ var t = ir(), a = 500;
321
+ function e(n) {
322
+ var i = t(n, function(s) {
323
+ return r.size === a && r.clear(), s;
324
+ }), r = i.cache;
325
+ return i;
326
+ }
327
+ return L = e, L;
328
+ }
329
+ var j, Re;
330
+ function sr() {
331
+ if (Re) return j;
332
+ Re = 1;
333
+ var t = nr(), a = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, e = /\\(\\)?/g, n = t(function(i) {
334
+ var r = [];
335
+ return i.charCodeAt(0) === 46 && r.push(""), i.replace(a, function(s, u, h, o) {
336
+ r.push(h ? o.replace(e, "$1") : u || s);
337
+ }), r;
338
+ });
339
+ return j = n, j;
340
+ }
341
+ var F, De;
342
+ function ur() {
343
+ if (De) return F;
344
+ De = 1;
345
+ var t = xe(), a = Ke(), e = J(), n = Q(), i = t ? t.prototype : void 0, r = i ? i.toString : void 0;
346
+ function s(u) {
347
+ if (typeof u == "string")
348
+ return u;
349
+ if (e(u))
350
+ return a(u, s) + "";
351
+ if (n(u))
352
+ return r ? r.call(u) : "";
353
+ var h = u + "";
354
+ return h == "0" && 1 / u == -1 / 0 ? "-0" : h;
355
+ }
356
+ return F = s, F;
357
+ }
358
+ var U, Me;
359
+ function hr() {
360
+ if (Me) return U;
361
+ Me = 1;
362
+ var t = ur();
363
+ function a(e) {
364
+ return e == null ? "" : t(e);
365
+ }
366
+ return U = a, U;
367
+ }
368
+ var $, ze;
369
+ function or() {
370
+ if (ze) return $;
371
+ ze = 1;
372
+ var t = J(), a = Ee(), e = sr(), n = hr();
373
+ function i(r, s) {
374
+ return t(r) ? r : a(r, s) ? [r] : e(n(r));
375
+ }
376
+ return $ = i, $;
377
+ }
378
+ var X, Ge;
379
+ function cr() {
380
+ if (Ge) return X;
381
+ Ge = 1;
382
+ var t = Q();
383
+ function a(e) {
384
+ if (typeof e == "string" || t(e))
385
+ return e;
386
+ var n = e + "";
387
+ return n == "0" && 1 / e == -1 / 0 ? "-0" : n;
388
+ }
389
+ return X = a, X;
390
+ }
391
+ var Z, He;
392
+ function _r() {
393
+ if (He) return Z;
394
+ He = 1;
395
+ var t = or(), a = cr();
396
+ function e(n, i) {
397
+ i = t(i, n);
398
+ for (var r = 0, s = i.length; n != null && r < s; )
399
+ n = n[a(i[r++])];
400
+ return r && r == s ? n : void 0;
401
+ }
402
+ return Z = e, Z;
403
+ }
404
+ var B, Pe;
405
+ function pr() {
406
+ if (Pe) return B;
407
+ Pe = 1;
408
+ var t = _r();
409
+ function a(e, n, i) {
410
+ var r = e == null ? void 0 : t(e, n);
411
+ return r === void 0 ? i : r;
412
+ }
413
+ return B = a, B;
414
+ }
415
+ export {
416
+ Ve as a,
417
+ tr as b,
418
+ Xe as c,
419
+ or as d,
420
+ cr as e,
421
+ Ee as f,
422
+ _r as g,
423
+ Q as h,
424
+ Ke as i,
425
+ pr as r
426
+ };
@@ -1,6 +1,6 @@
1
- import { r as t, w as s } from "../react.esm-CHvVvf3L.js";
1
+ import { r as t, w as s } from "../react.esm-FR1-H8iU.js";
2
2
  import { u as o } from "../useBreakpoints-MzTZ0tCT.js";
3
- import { d as a, t as i, g as r } from "../vi.JYQecGiw-BpOAB4v6.js";
3
+ import { d as a, t as i, g as r } from "../vi.CjhMlMwf-DWv7vrn7.js";
4
4
  a("useBreakpoint Test", () => {
5
5
  i("returns object", () => {
6
6
  const { result: e } = t(() => o());
@@ -0,0 +1,13 @@
1
+ import { FieldValues, Path } from 'react-hook-form';
2
+ type HelperTextProps<T> = {
3
+ propertyName: Path<T>;
4
+ helperText: string | null;
5
+ requiredText?: string;
6
+ maxLength?: number;
7
+ hasCharacterCount: boolean;
8
+ };
9
+ export declare const useHelperText: <T extends FieldValues>({ propertyName, requiredText, maxLength, helperText, hasCharacterCount, }: HelperTextProps<T>) => {
10
+ helperText: string | undefined;
11
+ helperTextPersistent: boolean;
12
+ };
13
+ export {};
@@ -0,0 +1,24 @@
1
+ import { g as l } from "../get-BiqanC9_.js";
2
+ import { useMemo as u } from "react";
3
+ import { useFormContext as p } from "react-hook-form";
4
+ const v = ({
5
+ propertyName: f,
6
+ requiredText: r,
7
+ maxLength: s,
8
+ helperText: e = null,
9
+ hasCharacterCount: n = !1
10
+ }) => {
11
+ const {
12
+ formState: { errors: m }
13
+ } = p(), t = l(m, f), i = u(() => {
14
+ if (t) {
15
+ const o = t.message;
16
+ return o || "Invalid input";
17
+ }
18
+ return e ?? r;
19
+ }, [t, e, r]), c = u(() => !!(t || n && s || r || e), [t, n, s, r, e]);
20
+ return { helperText: i, helperTextPersistent: c };
21
+ };
22
+ export {
23
+ v as useHelperText
24
+ };