@oliasoft-open-source/react-ui-library 4.7.2-beta-6 → 4.7.2-beta-7

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 (133) hide show
  1. package/dist/assets/{index-Oe0PlEED.css → index-gESxyZjr.css} +35 -0
  2. package/dist/assets/{index-7PLAdoQ9.js → index-zmbFJmOv.js} +702 -183
  3. package/dist/index.d.ts +4 -3
  4. package/dist/index.html +1 -1
  5. package/dist/index.js +18 -4
  6. package/dist/index.js.map +1 -1
  7. package/dist/storybook/assets/Color-KGDBMAHA-Cvq3XQg3.js +1 -0
  8. package/dist/storybook/assets/DocsRenderer-PKQXORMH-Copxu6Si.js +1 -0
  9. package/dist/storybook/assets/{accordion-6ouB0WTt.js → accordion-BiuI_LCA.js} +1 -1
  10. package/dist/storybook/assets/{accordion.stories-DlFZNmdv.js → accordion.stories-sb-Y7MMb.js} +2 -2
  11. package/dist/storybook/assets/{actions-Cu_0szZ4.js → actions-4w-EOz3m.js} +1 -1
  12. package/dist/storybook/assets/{actions.stories-SCPuAp0T.js → actions.stories-CtocfSW4.js} +1 -1
  13. package/dist/storybook/assets/{afe.stories-G3SzS3sg.js → afe.stories--E_j7kET.js} +2 -2
  14. package/dist/storybook/assets/{badge.stories-DGYA6_1I.js → badge.stories-CKnNQLZ5.js} +1 -1
  15. package/dist/storybook/assets/{blowout.stories-P0LHuXSY.js → blowout.stories-AxiXaQQ-.js} +1 -1
  16. package/dist/storybook/assets/{button-_0DiND6h.js → button-CdEIDAx8.js} +1 -1
  17. package/dist/storybook/assets/{button-group-BYiHMljF.js → button-group-BIUVa0X9.js} +1 -1
  18. package/dist/storybook/assets/{button-group.stories-Bz6NHaeB.js → button-group.stories-B0Gb9kNs.js} +1 -1
  19. package/dist/storybook/assets/{button.stories-vVBGddVf.js → button.stories-CHt71NKu.js} +2 -2
  20. package/dist/storybook/assets/{buttons-and-links-k3kswtk0.js → buttons-and-links-BHLN948A.js} +2 -2
  21. package/dist/storybook/assets/{card.stories-DIlqxO94.js → card.stories-Cddrprok.js} +1 -1
  22. package/dist/storybook/assets/{casing-loads.stories-0T--WlaD.js → casing-loads.stories-EZlP6XsN.js} +2 -2
  23. package/dist/storybook/assets/{cell.stories-C5Tkxyfr.js → cell.stories-D9KrTmCA.js} +2 -2
  24. package/dist/storybook/assets/{check-box-DkdQxC5c.js → check-box-2fHPdAZG.js} +1 -1
  25. package/dist/storybook/assets/{check-box.stories-D8C12IQo.js → check-box.stories-Do-GOmLf.js} +1 -1
  26. package/dist/storybook/assets/{chunk-HLWAVYOI-DM5lzE5a.js → chunk-HLWAVYOI-C3Nc_Hl_.js} +1 -1
  27. package/dist/storybook/assets/color-ClG_lSfj.js +25 -0
  28. package/dist/storybook/assets/{column.stories-C1Sxwh4f.js → column.stories-rKyxUTAG.js} +1 -1
  29. package/dist/storybook/assets/{dialog-CAWCUmp3.js → dialog-B-R6eAnf.js} +1 -1
  30. package/dist/storybook/assets/{drawer-vbDFqa4U.js → drawer-BOl7GxGI.js} +1 -1
  31. package/dist/storybook/assets/{drawer.stories-CmbGsKmS.js → drawer.stories-qH2nYW2a.js} +4 -4
  32. package/dist/storybook/assets/{empty.stories-iHPKKy4z.js → empty.stories-BKEXzh9o.js} +1 -1
  33. package/dist/storybook/assets/{field-DwLk_uWj.js → field-nInV3MuR.js} +1 -1
  34. package/dist/storybook/assets/{field.stories-s-0LQVbp.js → field.stories-eRSYmEtA.js} +1 -1
  35. package/dist/storybook/assets/{file-button.stories-C90kcfbw.js → file-button.stories-CH6kxEKM.js} +1 -1
  36. package/dist/storybook/assets/{file-input-C_2w1dKj.js → file-input-Amcc9o5I.js} +1 -1
  37. package/dist/storybook/assets/{file-input.stories-BEsZox6U.js → file-input.stories-aiTQE5UN.js} +1 -1
  38. package/dist/storybook/assets/{flex.stories-D-QN0gkk.js → flex.stories-CT6o2gii.js} +1 -1
  39. package/dist/storybook/assets/footer.stories-B5zvZawz.js +3 -0
  40. package/dist/storybook/assets/form.stories-D58sdhOk.js +49 -0
  41. package/dist/storybook/assets/formation.stories-OtA8Hcp6.js +74 -0
  42. package/dist/storybook/assets/{heading-DkSFysAb.js → heading-EzI5s4VN.js} +1 -1
  43. package/dist/storybook/assets/{heading.stories-Dtq7LNlB.js → heading.stories-D5x1-mKs.js} +1 -1
  44. package/dist/storybook/assets/{help-icon-LfPZiYla.js → help-icon-CfV3_Ais.js} +1 -1
  45. package/dist/storybook/assets/{help-icon.stories-Dh2ylnGq.js → help-icon.stories-D4KS1wlT.js} +1 -1
  46. package/dist/storybook/assets/icon-BSFY3vDO.js +8 -0
  47. package/dist/storybook/assets/{icon.stories-B-tKaIKA.js → icon.stories-C1hZXIMX.js} +1 -1
  48. package/dist/storybook/assets/iframe-ud1XJtGn.js +2 -0
  49. package/dist/storybook/assets/{index-BOi4hGgT.js → index-BwF95xBr.js} +8 -8
  50. package/dist/storybook/assets/index-q5GJvRDd.js +1 -0
  51. package/dist/storybook/assets/{index.es-D2piFfFj.js → index.es-DazXb-ul.js} +4 -4
  52. package/dist/storybook/assets/inheritsLoose-DP0QEDDI.js +1 -0
  53. package/dist/storybook/assets/{input-group.stories-BcoORZ9x.js → input-group.stories-hHCmTbtu.js} +2 -2
  54. package/dist/storybook/assets/{input-validation-DLZbF-b-.js → input-validation-CvKyplhN.js} +2 -2
  55. package/dist/storybook/assets/{inputs-B4u-8viF.js → inputs-DhUf5Lzj.js} +4 -4
  56. package/dist/storybook/assets/{label-tWjEmTQJ.js → label-Cz6TT90s.js} +1 -1
  57. package/dist/storybook/assets/{label.stories-BTA8N7tD.js → label.stories-BzSzxxM-.js} +1 -1
  58. package/dist/storybook/assets/layout-forms-NapA4Ibs.js +16 -0
  59. package/dist/storybook/assets/{layout-general-D2DGppvs.js → layout-general-CnLft8nK.js} +2 -2
  60. package/dist/storybook/assets/{list-BpVed6Pw.js → list-BtA0jYMp.js} +1 -1
  61. package/dist/storybook/assets/{list.stories-CiT9J_FH.js → list.stories-CmJsmJZJ.js} +2 -2
  62. package/dist/storybook/assets/{list.stories-data-CnVYk3eo.js → list.stories-data-C_w1DX5i.js} +1 -1
  63. package/dist/storybook/assets/{loader.stories-BKBFctQ1.js → loader.stories-CA2m3EFj.js} +1 -1
  64. package/dist/storybook/assets/{menu.stories-Bp8L83xx.js → menu.stories-Bc2kf356.js} +2 -2
  65. package/dist/storybook/assets/{message-ttrR1AaP.js → message-ZenLdkrf.js} +1 -1
  66. package/dist/storybook/assets/{message.stories-C8YRT7nL.js → message.stories-CXOrrAOR.js} +1 -1
  67. package/dist/storybook/assets/{meta-content-Djgg-tiF.js → meta-content-BdypOdcN.js} +1 -1
  68. package/dist/storybook/assets/{modal.stories-BoVj2EsX.js → modal.stories-ChRLG9ud.js} +2 -2
  69. package/dist/storybook/assets/{number-input.stories-CcNTeD25.js → number-input.stories-COWyMRAs.js} +2 -2
  70. package/dist/storybook/assets/{option-dropdown.stories-COGmMWEl.js → option-dropdown.stories-DvgAgTHQ.js} +1 -1
  71. package/dist/storybook/assets/{padding-and-spacing-CLe_yhXT.js → padding-and-spacing-J82LpJ4b.js} +2 -2
  72. package/dist/storybook/assets/{page.stories-BB3g1zwB.js → page.stories-DdAfcsOc.js} +1 -1
  73. package/dist/storybook/assets/{pagination-DSQeMPG_.js → pagination-0wY_w1xz.js} +1 -1
  74. package/dist/storybook/assets/{pagination.stories-DjIohcDx.js → pagination.stories-BagAIIz3.js} +2 -2
  75. package/dist/storybook/assets/{pop-confirm.stories-Cr_ZBbLn.js → pop-confirm.stories-D4L3erpj.js} +1 -1
  76. package/dist/storybook/assets/{popover-Dq3iC_lM.js → popover-CvS_kBVF.js} +1 -1
  77. package/dist/storybook/assets/popover.stories-ChwzGOlc.js +10 -0
  78. package/dist/storybook/assets/preview-CJK2YTz-.js +2 -0
  79. package/dist/storybook/assets/{preview-gkB5ItiE.js → preview-CM5CE7B2.js} +2 -2
  80. package/dist/storybook/assets/projects.stories-ApHyZURX.js +47 -0
  81. package/dist/storybook/assets/{radio-button-BD7pi0ao.js → radio-button-J4oEQdxt.js} +1 -1
  82. package/dist/storybook/assets/{radio-button.stories-B84Ip3NV.js → radio-button.stories-BFp_qyyE.js} +1 -1
  83. package/dist/storybook/assets/react-router-dom-Ck2Y_Fzc.js +8 -0
  84. package/dist/storybook/assets/{reservoirs.stories-kxVBoa7Y.js → reservoirs.stories-DywuU8EY.js} +2 -2
  85. package/dist/storybook/assets/{rich-text-input.stories-C5pcIbSa.js → rich-text-input.stories-Cw_6EJx8.js} +3 -3
  86. package/dist/storybook/assets/{row.stories-ATsrjumb.js → row.stories-D7V0fxhq.js} +2 -2
  87. package/dist/storybook/assets/{select-78sreKsp.js → select-yqiMF9-4.js} +2 -2
  88. package/dist/storybook/assets/{select.stories-CZwsHVDB.js → select.stories-VMcOn7Ri.js} +2 -2
  89. package/dist/storybook/assets/{side-bar-WsK6pkmj.js → side-bar-DAMfASqb.js} +1 -1
  90. package/dist/storybook/assets/{side-bar.stories-Bu2q_b_w.js → side-bar.stories-BlEIOckL.js} +1 -1
  91. package/dist/storybook/assets/{site.stories-Yh4uNi3Q.js → site.stories-Kk57nhAn.js} +2 -2
  92. package/dist/storybook/assets/{slider-CxVlS0fh.js → slider-BLU39INk.js} +4 -4
  93. package/dist/storybook/assets/{slider.stories-_wS70xsm.js → slider.stories-DdVxUAfH.js} +2 -2
  94. package/dist/storybook/assets/{smart-upload-modal.stories-DDlO9y2j.js → smart-upload-modal.stories-Cot88l9r.js} +1 -1
  95. package/dist/storybook/assets/{spacer.stories-B3LrTr7b.js → spacer.stories-Dd1QMhoc.js} +1 -1
  96. package/dist/storybook/assets/{table-DPvzYjoq.js → table-DmwpXp_Q.js} +1 -1
  97. package/dist/storybook/assets/{table.stories-BGQ1O9nw.js → table.stories-DKcZk5JR.js} +2 -2
  98. package/dist/storybook/assets/{table.stories-data-2STKbgzG.js → table.stories-data-C6x-UHeN.js} +1 -1
  99. package/dist/storybook/assets/text-link.stories-BQAkVO-W.js +14 -0
  100. package/dist/storybook/assets/{title.stories-CVRTXggL.js → title.stories-CKbl0CB2.js} +2 -2
  101. package/dist/storybook/assets/{toaster-DPbde9Mi.js → toaster-B8A3xIYu.js} +1 -1
  102. package/dist/storybook/assets/{toaster.stories-DfbfDavp.js → toaster.stories-DuE6vvV6.js} +1 -1
  103. package/dist/storybook/assets/{toggle-t1iTuSL7.js → toggle-D0yzyALV.js} +1 -1
  104. package/dist/storybook/assets/{toggle.stories-D44S3Nix.js → toggle.stories-Cre2gnIB.js} +1 -1
  105. package/dist/storybook/assets/{tooltip.test-case.stories-BtrJUImB.js → tooltip.test-case.stories-BWJhZQg8.js} +1 -1
  106. package/dist/storybook/assets/{top-bar-R-CjhJ21.js → top-bar-mKg-xcLh.js} +1 -1
  107. package/dist/storybook/assets/top-bar.stories-CFZoJq-r.js +21 -0
  108. package/dist/storybook/assets/{top-bar.testcase.stories-ZPaSRyIh.js → top-bar.testcase.stories-BlbsX9By.js} +1 -1
  109. package/dist/storybook/assets/{tree.stories-Ghxps-dL.js → tree.stories-CkYwGe0X.js} +1 -1
  110. package/dist/storybook/assets/{unit-input.stories-BWg6005S.js → unit-input.stories-BzMia-WR.js} +30 -30
  111. package/dist/storybook/assets/unit-table.stories-BoNWlaAe.js +150 -0
  112. package/dist/storybook/iframe.html +1 -1
  113. package/dist/storybook/project.json +1 -1
  114. package/package.json +1 -1
  115. package/dist/storybook/assets/Color-KGDBMAHA-BK9G9-AG.js +0 -1
  116. package/dist/storybook/assets/DocsRenderer-PKQXORMH-CusQM_Sq.js +0 -1
  117. package/dist/storybook/assets/color-DUhEdppM.js +0 -25
  118. package/dist/storybook/assets/extends-CF3RwP-h.js +0 -1
  119. package/dist/storybook/assets/footer.stories-U_zMDmxF.js +0 -3
  120. package/dist/storybook/assets/form.stories-1L75MGpX.js +0 -49
  121. package/dist/storybook/assets/formation.stories-YHpXrXvC.js +0 -74
  122. package/dist/storybook/assets/icon-BP4BO6-k.js +0 -8
  123. package/dist/storybook/assets/iframe-D7Fs6VQt.js +0 -2
  124. package/dist/storybook/assets/index-wQV01InA.js +0 -1
  125. package/dist/storybook/assets/inheritsLoose-DR8r8Ogv.js +0 -1
  126. package/dist/storybook/assets/layout-forms-DMQXr2dA.js +0 -16
  127. package/dist/storybook/assets/popover.stories-CoWCb2Mn.js +0 -10
  128. package/dist/storybook/assets/preview-C69NgT9i.js +0 -2
  129. package/dist/storybook/assets/projects.stories-BesbPJ8Z.js +0 -47
  130. package/dist/storybook/assets/react-router-dom-CMITYWBH.js +0 -8
  131. package/dist/storybook/assets/text-link.stories-BsuVBOWo.js +0 -14
  132. package/dist/storybook/assets/top-bar.stories-BYN9rcUw.js +0 -21
  133. package/dist/storybook/assets/unit-table.stories-DXies3fA.js +0 -150
@@ -9277,7 +9277,7 @@ const wrapper$2 = "_wrapper_18jt2_1";
9277
9277
  const customSvg = "_customSvg_18jt2_8";
9278
9278
  const customPng = "_customPng_18jt2_11";
9279
9279
  const clickable$1 = "_clickable_18jt2_16";
9280
- const styles$j = {
9280
+ const styles$m = {
9281
9281
  wrapper: wrapper$2,
9282
9282
  customSvg,
9283
9283
  customPng,
@@ -9881,8 +9881,8 @@ const Icon = ({
9881
9881
  "div",
9882
9882
  {
9883
9883
  className: cx$2(
9884
- styles$j.wrapper,
9885
- (clickable2 || onClick) && !disabledContext ? styles$j.clickable : ""
9884
+ styles$m.wrapper,
9885
+ (clickable2 || onClick) && !disabledContext ? styles$m.clickable : ""
9886
9886
  ),
9887
9887
  style,
9888
9888
  onClick: (evt) => onClick && !disabledContext ? onClick(evt) : void 0,
@@ -9890,7 +9890,7 @@ const Icon = ({
9890
9890
  children: reactExports.isValidElement(icon2) ? icon2 : typeof icon2 === "string" && (icon2.includes(".svg") || icon2.includes("image/svg")) ? /* @__PURE__ */ jsxRuntimeExports.jsx(
9891
9891
  ReactSVG,
9892
9892
  {
9893
- className: styles$j.customSvg,
9893
+ className: styles$m.customSvg,
9894
9894
  beforeInjection: (svg) => {
9895
9895
  if (size2) {
9896
9896
  svg.setAttribute("width", String(size2));
@@ -9899,7 +9899,7 @@ const Icon = ({
9899
9899
  },
9900
9900
  src: icon2
9901
9901
  }
9902
- ) : typeof icon2 === "string" && (icon2.includes(".png") || icon2.includes("image/png")) ? /* @__PURE__ */ jsxRuntimeExports.jsx("img", { alt: "icon", className: styles$j.customPng, src: icon2 }) : typeof icon2 === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx(NamedIcon, { icon: icon2 }) : null
9902
+ ) : typeof icon2 === "string" && (icon2.includes(".png") || icon2.includes("image/png")) ? /* @__PURE__ */ jsxRuntimeExports.jsx("img", { alt: "icon", className: styles$m.customPng, src: icon2 }) : typeof icon2 === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx(NamedIcon, { icon: icon2 }) : null
9903
9903
  }
9904
9904
  );
9905
9905
  };
@@ -11881,7 +11881,7 @@ function useHover(_temp) {
11881
11881
  const tooltip = "_tooltip_wli9z_1";
11882
11882
  const error$m = "_error_wli9z_15";
11883
11883
  const warning$3 = "_warning_wli9z_19";
11884
- const styles$i = {
11884
+ const styles$l = {
11885
11885
  tooltip,
11886
11886
  error: error$m,
11887
11887
  warning: warning$3
@@ -11912,8 +11912,8 @@ const TooltipLayer = ({
11912
11912
  "div",
11913
11913
  {
11914
11914
  className: cx$2(
11915
- styles$i.tooltip,
11916
- error2 ? styles$i.error : warning2 ? styles$i.warning : ""
11915
+ styles$l.tooltip,
11916
+ error2 ? styles$l.error : warning2 ? styles$l.warning : ""
11917
11917
  ),
11918
11918
  ...layerProps,
11919
11919
  children: [
@@ -11990,7 +11990,7 @@ const Tooltip = ({
11990
11990
  const helpIcon = "_helpIcon_hd0z2_1";
11991
11991
  const active$7 = "_active_hd0z2_9";
11992
11992
  const clickable = "_clickable_hd0z2_12";
11993
- const styles$h = {
11993
+ const styles$k = {
11994
11994
  helpIcon,
11995
11995
  active: active$7,
11996
11996
  clickable
@@ -12021,9 +12021,9 @@ const HelpIcon = ({
12021
12021
  "div",
12022
12022
  {
12023
12023
  className: cx$2(
12024
- styles$h.helpIcon,
12025
- onClick ? styles$h.clickable : "",
12026
- active2 ? styles$h.active : ""
12024
+ styles$k.helpIcon,
12025
+ onClick ? styles$k.clickable : "",
12026
+ active2 ? styles$k.active : ""
12027
12027
  ),
12028
12028
  onClick: onClickHelpIcon,
12029
12029
  "data-testid": testId,
@@ -17530,15 +17530,15 @@ const iconOnly = "_iconOnly_1rzkf_153";
17530
17530
  const basic = "_basic_1rzkf_163";
17531
17531
  const muted$2 = "_muted_1rzkf_169";
17532
17532
  const disabled$3 = "_disabled_1rzkf_188";
17533
- const small$3 = "_small_1rzkf_198";
17533
+ const small$4 = "_small_1rzkf_198";
17534
17534
  const pill = "_pill_1rzkf_203";
17535
17535
  const round = "_round_1rzkf_204";
17536
17536
  const error$l = "_error_1rzkf_276";
17537
17537
  const warning$2 = "_warning_1rzkf_293";
17538
17538
  const inverted = "_inverted_1rzkf_310";
17539
- const groupOrderFirst$1 = "_groupOrderFirst_1rzkf_340";
17540
- const groupOrderMiddle$1 = "_groupOrderMiddle_1rzkf_341";
17541
- const groupOrderLast$1 = "_groupOrderLast_1rzkf_342";
17539
+ const groupOrderFirst$2 = "_groupOrderFirst_1rzkf_340";
17540
+ const groupOrderMiddle$2 = "_groupOrderMiddle_1rzkf_341";
17541
+ const groupOrderLast$2 = "_groupOrderLast_1rzkf_342";
17542
17542
  const buttonStyles = {
17543
17543
  inputInTable: inputInTable$5,
17544
17544
  inputHover: inputHover$5,
@@ -17557,18 +17557,18 @@ const buttonStyles = {
17557
17557
  basic,
17558
17558
  muted: muted$2,
17559
17559
  disabled: disabled$3,
17560
- small: small$3,
17560
+ small: small$4,
17561
17561
  pill,
17562
17562
  round,
17563
17563
  error: error$l,
17564
17564
  warning: warning$2,
17565
17565
  inverted,
17566
- groupOrderFirst: groupOrderFirst$1,
17567
- groupOrderMiddle: groupOrderMiddle$1,
17568
- groupOrderLast: groupOrderLast$1
17566
+ groupOrderFirst: groupOrderFirst$2,
17567
+ groupOrderMiddle: groupOrderMiddle$2,
17568
+ groupOrderLast: groupOrderLast$2
17569
17569
  };
17570
17570
  const spinner = "_spinner_156m4_1";
17571
- const styles$g = {
17571
+ const styles$j = {
17572
17572
  spinner
17573
17573
  };
17574
17574
  const Spinner = ({
@@ -17579,7 +17579,7 @@ const Spinner = ({
17579
17579
  }) => {
17580
17580
  const color2 = colored ? "var(--color-text-primary)" : dark2 ? "var(--color-text-muted)" : "white";
17581
17581
  const fontSize = small2 ? "var(--font-size)" : tiny ? "var(--font-size-xs)" : "var(--size)";
17582
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$g.spinner, style: { color: color2, fontSize } });
17582
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$j.spinner, style: { color: color2, fontSize } });
17583
17583
  };
17584
17584
  var ButtonType = /* @__PURE__ */ ((ButtonType2) => {
17585
17585
  ButtonType2["SUBMIT"] = "submit";
@@ -17702,7 +17702,7 @@ const actions$2 = "_actions_1t7vd_1";
17702
17702
  const childComponent = "_childComponent_1t7vd_11";
17703
17703
  const actionComponentContainer = "_actionComponentContainer_1t7vd_14";
17704
17704
  const active$5 = "_active_1t7vd_36";
17705
- const styles$f = {
17705
+ const styles$i = {
17706
17706
  actions: actions$2,
17707
17707
  childComponent,
17708
17708
  actionComponentContainer,
@@ -17736,7 +17736,7 @@ const buttonCaret = "_buttonCaret_1iw97_179";
17736
17736
  const component = "_component_1iw97_183";
17737
17737
  const right$4 = "_right_1iw97_189";
17738
17738
  const actions$1 = "_actions_1iw97_194";
17739
- const styles$e = {
17739
+ const styles$h = {
17740
17740
  wrapper: wrapper$1,
17741
17741
  layer,
17742
17742
  layerContainer,
@@ -17770,15 +17770,15 @@ const Heading$1 = ({ label: label2, onClick, icon: icon2, testId }) => /* @__PUR
17770
17770
  "div",
17771
17771
  {
17772
17772
  onClick: (evt) => evt.stopPropagation(),
17773
- className: styles$e.heading,
17773
+ className: styles$h.heading,
17774
17774
  "data-testid": testId,
17775
17775
  children: [
17776
17776
  label2,
17777
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$e.headingIcon, onClick, children: icon2 })
17777
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$h.headingIcon, onClick, children: icon2 })
17778
17778
  ]
17779
17779
  }
17780
17780
  );
17781
- const Divider$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("hr", { className: styles$e.divider });
17781
+ const Divider$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("hr", { className: styles$h.divider });
17782
17782
  const Option = ({
17783
17783
  actions: actions2,
17784
17784
  label: label2,
@@ -17815,31 +17815,31 @@ const Option = ({
17815
17815
  href: url,
17816
17816
  to: url,
17817
17817
  className: cx$2(
17818
- styles$e.option,
17819
- disabled2 ? styles$e.disabled : "",
17820
- inline2 ? styles$e.inline : "",
17821
- selected2 ? styles$e.selected : ""
17818
+ styles$h.option,
17819
+ disabled2 ? styles$h.disabled : "",
17820
+ inline2 ? styles$h.inline : "",
17821
+ selected2 ? styles$h.selected : ""
17822
17822
  ),
17823
17823
  onClick: handleClick2,
17824
17824
  "data-testid": testId,
17825
17825
  children: [
17826
- icon2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$e.icon, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: icon2 }) }) : null,
17827
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$e.optionContent, children: [
17826
+ icon2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$h.icon, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: icon2 }) }) : null,
17827
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$h.optionContent, children: [
17828
17828
  upload && /* @__PURE__ */ jsxRuntimeExports.jsx(
17829
17829
  "input",
17830
17830
  {
17831
17831
  type: "file",
17832
- className: styles$e.fileInput,
17832
+ className: styles$h.fileInput,
17833
17833
  onChange: (evt) => {
17834
17834
  onChange == null ? void 0 : onChange(evt.target.files);
17835
17835
  close2 == null ? void 0 : close2();
17836
17836
  }
17837
17837
  }
17838
17838
  ),
17839
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$e.label, title: `${title2 || label2}`, children: label2 }),
17840
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$e.right, children: [
17841
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$e.description, children: description2 }),
17842
- !!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$e.actions, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Actions, { actions: actions2 }) })
17839
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$h.label, title: `${title2 || label2}`, children: label2 }),
17840
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$h.right, children: [
17841
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$h.description, children: description2 }),
17842
+ !!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$h.actions, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Actions, { actions: actions2 }) })
17843
17843
  ] })
17844
17844
  ] })
17845
17845
  ]
@@ -17973,7 +17973,7 @@ const Layer = ({
17973
17973
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
17974
17974
  "div",
17975
17975
  {
17976
- className: cx$2(styles$e.layer, isNested ? styles$e.nested : null),
17976
+ className: cx$2(styles$h.layer, isNested ? styles$h.nested : null),
17977
17977
  style: { maxWidth: width2, maxHeight },
17978
17978
  "data-testid": testId,
17979
17979
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: localSections.map((section, i) => /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -18004,16 +18004,16 @@ const badge = "_badge_nwprz_5";
18004
18004
  const label$3 = "_label_nwprz_11";
18005
18005
  const dark = "_dark_nwprz_23";
18006
18006
  const light = "_light_nwprz_26";
18007
- const small$2 = "_small_nwprz_29";
18007
+ const small$3 = "_small_nwprz_29";
18008
18008
  const dot = "_dot_nwprz_33";
18009
18009
  const hasChildren = "_hasChildren_nwprz_39";
18010
- const styles$d = {
18010
+ const styles$g = {
18011
18011
  wrapper,
18012
18012
  badge,
18013
18013
  label: label$3,
18014
18014
  dark,
18015
18015
  light,
18016
- small: small$2,
18016
+ small: small$3,
18017
18017
  dot,
18018
18018
  hasChildren
18019
18019
  };
@@ -18035,16 +18035,16 @@ const Badge = ({
18035
18035
  small: small2 = false
18036
18036
  }) => {
18037
18037
  const visible = !(title2 === null && dot2 === false);
18038
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$d.wrapper, children: [
18038
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$g.wrapper, children: [
18039
18039
  visible && /* @__PURE__ */ jsxRuntimeExports.jsx(
18040
18040
  "sup",
18041
18041
  {
18042
18042
  className: cx$2(
18043
- styles$d.badge,
18044
- isDark(color2) ? styles$d.dark : styles$d.light,
18045
- title2 !== null ? styles$d.label : styles$d.dot,
18046
- small2 ? styles$d.small : "",
18047
- children ? styles$d.hasChildren : ""
18043
+ styles$g.badge,
18044
+ isDark(color2) ? styles$g.dark : styles$g.light,
18045
+ title2 !== null ? styles$g.label : styles$g.dot,
18046
+ small2 ? styles$g.small : "",
18047
+ children ? styles$g.hasChildren : ""
18048
18048
  ),
18049
18049
  style: {
18050
18050
  background: color2 || void 0,
@@ -18070,16 +18070,16 @@ const Button = ({
18070
18070
  active: active2
18071
18071
  }) => {
18072
18072
  const disabledContext = reactExports.useContext(DisabledContext);
18073
- const buttonLabel2 = trigger2 === TriggerType.BUTTON ? label2 : trigger2 === TriggerType.DROP_DOWN_BUTTON ? /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$e.middleAlignedInline, children: [
18074
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$e.buttonLabel, children: label2 }),
18075
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$e.buttonCaret, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: IconType.CHEVRON_DOWN }) })
18073
+ const buttonLabel2 = trigger2 === TriggerType.BUTTON ? label2 : trigger2 === TriggerType.DROP_DOWN_BUTTON ? /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$h.middleAlignedInline, children: [
18074
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$h.buttonLabel, children: label2 }),
18075
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$h.buttonCaret, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: IconType.CHEVRON_DOWN }) })
18076
18076
  ] }) : null;
18077
18077
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
18078
18078
  "div",
18079
18079
  {
18080
18080
  className: cx$2(
18081
- styles$e.trigger,
18082
- disabled2 || disabledContext ? styles$e.disabled : null
18081
+ styles$h.trigger,
18082
+ disabled2 || disabledContext ? styles$h.disabled : null
18083
18083
  ),
18084
18084
  style: { width: width2 },
18085
18085
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -18119,13 +18119,13 @@ const Text$1 = ({
18119
18119
  "div",
18120
18120
  {
18121
18121
  className: cx$2(
18122
- styles$e.trigger,
18123
- disabled2 ? styles$e.disabled : null,
18124
- isOpen ? styles$e.active : null
18122
+ styles$h.trigger,
18123
+ disabled2 ? styles$h.disabled : null,
18124
+ isOpen ? styles$h.active : null
18125
18125
  ),
18126
18126
  children: [
18127
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$e.label, title: titleText, children: label2 }),
18128
- carat && carat === MenuCarat.RIGHT ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$e.arrow, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: IconType.CHEVRON_RIGHT }) }) : carat && carat === MenuCarat.DOWN ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$e.arrow, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: IconType.CHEVRON_DOWN }) }) : null
18127
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$h.label, title: titleText, children: label2 }),
18128
+ carat && carat === MenuCarat.RIGHT ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$h.arrow, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: IconType.CHEVRON_RIGHT }) }) : carat && carat === MenuCarat.DOWN ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$h.arrow, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: IconType.CHEVRON_DOWN }) }) : null
18129
18129
  ]
18130
18130
  }
18131
18131
  );
@@ -18138,7 +18138,7 @@ const Component = ({
18138
18138
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
18139
18139
  "div",
18140
18140
  {
18141
- className: cx$2(styles$e.component, disabled2 ? styles$e.disabled : null),
18141
+ className: cx$2(styles$h.component, disabled2 ? styles$h.disabled : null),
18142
18142
  "data-testid": testId,
18143
18143
  children: component2
18144
18144
  }
@@ -18219,7 +18219,7 @@ const Trigger = React$4.forwardRef(
18219
18219
  "div",
18220
18220
  {
18221
18221
  ref: ref2,
18222
- className: styles$e.wrapper,
18222
+ className: styles$h.wrapper,
18223
18223
  style: width2 ? { width: width2 } : {
18224
18224
  ...fullHeight && {
18225
18225
  height: "100%",
@@ -18441,7 +18441,7 @@ const DropDownMenu = ({
18441
18441
  "div",
18442
18442
  {
18443
18443
  ...layerProps,
18444
- className: styles$e.layerContainer,
18444
+ className: styles$h.layerContainer,
18445
18445
  "data-testid": menu2.testId,
18446
18446
  onClick: (evt) => evt.stopPropagation(),
18447
18447
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -18510,7 +18510,7 @@ const SubmenuActions = (props) => {
18510
18510
  const Actions = (props) => {
18511
18511
  const disabledContext = reactExports.useContext(DisabledContext);
18512
18512
  const { actions: actions2 = [], closeLayer } = props;
18513
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$f.actions), children: actions2.map((action2, index2) => {
18513
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$i.actions), children: actions2.map((action2, index2) => {
18514
18514
  const hidden = (action2 == null ? void 0 : action2.hidden) || !action2 || !Object.keys(action2).length;
18515
18515
  if (!hidden) {
18516
18516
  if (action2.childComponent && React$4.isValidElement(action2.childComponent)) {
@@ -18518,7 +18518,7 @@ const Actions = (props) => {
18518
18518
  "div",
18519
18519
  {
18520
18520
  "data-testid": action2.testId,
18521
- className: styles$f.childComponent,
18521
+ className: styles$i.childComponent,
18522
18522
  children: action2.childComponent
18523
18523
  },
18524
18524
  index2
@@ -18573,7 +18573,7 @@ const cardHeader = "_cardHeader_ucdeu_13";
18573
18573
  const cardContentBorderTop = "_cardContentBorderTop_ucdeu_19";
18574
18574
  const padding = "_padding_ucdeu_22";
18575
18575
  const cardContent = "_cardContent_ucdeu_19";
18576
- const styles$c = {
18576
+ const styles$f = {
18577
18577
  card,
18578
18578
  bordered: bordered$1,
18579
18579
  raised,
@@ -18594,20 +18594,20 @@ const Card = ({
18594
18594
  "div",
18595
18595
  {
18596
18596
  className: cx$2(
18597
- styles$c.card,
18598
- bordered2 ? styles$c.bordered : "",
18599
- raised2 ? styles$c.raised : ""
18597
+ styles$f.card,
18598
+ bordered2 ? styles$f.bordered : "",
18599
+ raised2 ? styles$f.raised : ""
18600
18600
  ),
18601
18601
  style: { margin },
18602
18602
  children: [
18603
- heading2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$c.cardHeader), children: heading2 }) : null,
18603
+ heading2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$f.cardHeader), children: heading2 }) : null,
18604
18604
  /* @__PURE__ */ jsxRuntimeExports.jsx(
18605
18605
  "div",
18606
18606
  {
18607
18607
  className: cx$2(
18608
- styles$c.cardContent,
18609
- heading2 ? styles$c.cardContentBorderTop : "",
18610
- padding2 ? styles$c.padding : ""
18608
+ styles$f.cardContent,
18609
+ heading2 ? styles$f.cardContentBorderTop : "",
18610
+ padding2 ? styles$f.padding : ""
18611
18611
  ),
18612
18612
  children
18613
18613
  }
@@ -19716,7 +19716,7 @@ pt$1.div`
19716
19716
  const divider = "_divider_2bfzh_1";
19717
19717
  const alignLeft = "_alignLeft_2bfzh_12";
19718
19718
  const alignRight = "_alignRight_2bfzh_15";
19719
- const styles$b = {
19719
+ const styles$e = {
19720
19720
  divider,
19721
19721
  alignLeft,
19722
19722
  alignRight
@@ -19728,9 +19728,9 @@ const faint = "_faint_11ofj_10";
19728
19728
  const success = "_success_11ofj_13";
19729
19729
  const warning$1 = "_warning_11ofj_16";
19730
19730
  const error$k = "_error_11ofj_19";
19731
- const small$1 = "_small_11ofj_22";
19731
+ const small$2 = "_small_11ofj_22";
19732
19732
  const link$2 = "_link_11ofj_25";
19733
- const styles$a = {
19733
+ const styles$d = {
19734
19734
  bold: bold$1,
19735
19735
  center,
19736
19736
  muted: muted$1,
@@ -19738,7 +19738,7 @@ const styles$a = {
19738
19738
  success,
19739
19739
  warning: warning$1,
19740
19740
  error: error$k,
19741
- small: small$1,
19741
+ small: small$2,
19742
19742
  link: link$2
19743
19743
  };
19744
19744
  const Text = ({
@@ -19758,16 +19758,16 @@ const Text = ({
19758
19758
  "span",
19759
19759
  {
19760
19760
  className: cx$2(
19761
- bold2 && styles$a.bold,
19762
- center2 && styles$a.center,
19763
- error2 && styles$a.error,
19764
- faint2 && styles$a.faint,
19765
- link2 && styles$a.link,
19766
- muted2 && styles$a.muted,
19767
- onClick && styles$a.clickable,
19768
- small2 && styles$a.small,
19769
- success2 && styles$a.success,
19770
- warning2 && styles$a.warning
19761
+ bold2 && styles$d.bold,
19762
+ center2 && styles$d.center,
19763
+ error2 && styles$d.error,
19764
+ faint2 && styles$d.faint,
19765
+ link2 && styles$d.link,
19766
+ muted2 && styles$d.muted,
19767
+ onClick && styles$d.clickable,
19768
+ small2 && styles$d.small,
19769
+ success2 && styles$d.success,
19770
+ warning2 && styles$d.warning
19771
19771
  ),
19772
19772
  onClick,
19773
19773
  children
@@ -19777,9 +19777,9 @@ const Text = ({
19777
19777
  const cssAlignClass = (align) => {
19778
19778
  switch (align) {
19779
19779
  case Align.LEFT:
19780
- return styles$b.alignLeft;
19780
+ return styles$e.alignLeft;
19781
19781
  case Align.RIGHT:
19782
- return styles$b.alignRight;
19782
+ return styles$e.alignRight;
19783
19783
  default:
19784
19784
  return "";
19785
19785
  }
@@ -19792,7 +19792,7 @@ const Divider = ({
19792
19792
  }) => /* @__PURE__ */ jsxRuntimeExports.jsx(
19793
19793
  "div",
19794
19794
  {
19795
- className: `${styles$b.divider} ${cssAlignClass(align)}`,
19795
+ className: `${styles$e.divider} ${cssAlignClass(align)}`,
19796
19796
  style: {
19797
19797
  marginTop: margin,
19798
19798
  marginBottom: margin,
@@ -19804,7 +19804,7 @@ const Divider = ({
19804
19804
  const heading$1 = "_heading_yhdiy_1";
19805
19805
  const top$1 = "_top_yhdiy_10";
19806
19806
  const icons = "_icons_yhdiy_20";
19807
- const styles$9 = {
19807
+ const styles$c = {
19808
19808
  heading: heading$1,
19809
19809
  top: top$1,
19810
19810
  icons
@@ -19825,13 +19825,13 @@ const Heading = ({
19825
19825
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
19826
19826
  "div",
19827
19827
  {
19828
- className: cx$2(styles$9.heading, top2 ? styles$9.top : ""),
19828
+ className: cx$2(styles$c.heading, top2 ? styles$c.top : ""),
19829
19829
  style: { marginBottom },
19830
19830
  onClick,
19831
19831
  "data-testid": testId,
19832
19832
  children: [
19833
19833
  children,
19834
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$9.icons, children: [
19834
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$c.icons, children: [
19835
19835
  icon2 && /* @__PURE__ */ jsxRuntimeExports.jsx(HelpIcon, { onClick: onIconClick, icon: icon2 }),
19836
19836
  isHelpIconDisplayed && /* @__PURE__ */ jsxRuntimeExports.jsx(HelpIcon, { text: helpText, onClick: onClickHelp }),
19837
19837
  libraryIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -19872,7 +19872,7 @@ const active$3 = "_active_khmhl_197";
19872
19872
  const disabled$1 = "_disabled_khmhl_222";
19873
19873
  const tabsContent = "_tabsContent_khmhl_229";
19874
19874
  const resizeHandle = "_resizeHandle_khmhl_235";
19875
- const styles$8 = {
19875
+ const styles$b = {
19876
19876
  inputInTable: inputInTable$4,
19877
19877
  inputHover: inputHover$4,
19878
19878
  inputFocus: inputFocus$4,
@@ -19913,13 +19913,13 @@ const DrawerTabs = ({
19913
19913
  testId
19914
19914
  }) => {
19915
19915
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
19916
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$8.tabs, children: tabs2.map((tab2, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
19916
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$b.tabs, children: tabs2.map((tab2, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
19917
19917
  "div",
19918
19918
  {
19919
19919
  className: cx$2(
19920
- styles$8.tab,
19921
- activeTab === index2 && open ? styles$8.active : "",
19922
- tab2.disabled ? styles$8.disabled : ""
19920
+ styles$b.tab,
19921
+ activeTab === index2 && open ? styles$b.active : "",
19922
+ tab2.disabled ? styles$b.disabled : ""
19923
19923
  ),
19924
19924
  style: { background: background2 },
19925
19925
  onClick: !tab2.disabled ? () => handleTabClick(index2) : void 0,
@@ -19934,7 +19934,7 @@ const DrawerTabs = ({
19934
19934
  "div",
19935
19935
  {
19936
19936
  style: { width: typeof width2 === "number" ? `${width2}px` : width2 },
19937
- className: styles$8.tabsContent,
19937
+ className: styles$b.tabsContent,
19938
19938
  "data-testid": testId && `${testId}-content-${index2}`,
19939
19939
  children: active2 && open && tab2.content
19940
19940
  },
@@ -21855,7 +21855,7 @@ const MIN_OPEN_WIDTH = 240;
21855
21855
  const ResizeHandle = reactExports.forwardRef(
21856
21856
  (props, ref2) => {
21857
21857
  const { handleAxis, ...rest } = props;
21858
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: ref2, className: styles$8.resizeHandle, ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: IconType.DRAG }) });
21858
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: ref2, className: styles$b.resizeHandle, ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: IconType.DRAG }) });
21859
21859
  }
21860
21860
  );
21861
21861
  const DrawerResizeWrapper = ({
@@ -21881,7 +21881,7 @@ const DrawerResizeWrapper = ({
21881
21881
  handle: /* @__PURE__ */ jsxRuntimeExports.jsx(ResizeHandle, {}),
21882
21882
  resizeHandles: right2 ? ["w"] : ["e"],
21883
21883
  axis: "x",
21884
- className: isResizing2 ? styles$8.isResizing : "",
21884
+ className: isResizing2 ? styles$b.isResizing : "",
21885
21885
  onResizeStart: () => {
21886
21886
  if (setOpen) setOpen(true);
21887
21887
  if (onResize) onResize(width2);
@@ -21979,17 +21979,17 @@ const Drawer = ({
21979
21979
  "div",
21980
21980
  {
21981
21981
  className: cx$2(
21982
- styles$8.drawer,
21983
- shadow4 ? styles$8.shadow : "",
21984
- fixed2 ? styles$8.fixed : styles$8.inline,
21985
- right2 ? styles$8.right : styles$8.left
21982
+ styles$b.drawer,
21983
+ shadow4 ? styles$b.shadow : "",
21984
+ fixed2 ? styles$b.fixed : styles$b.inline,
21985
+ right2 ? styles$b.right : styles$b.left
21986
21986
  ),
21987
21987
  style: { top: top2 },
21988
21988
  children: [
21989
21989
  /* @__PURE__ */ jsxRuntimeExports.jsx(
21990
21990
  "div",
21991
21991
  {
21992
- className: cx$2(styles$8.drawerContent, border2 && styles$8.border),
21992
+ className: cx$2(styles$b.drawerContent, border2 && styles$b.border),
21993
21993
  style: {
21994
21994
  background: background2,
21995
21995
  borderColor: typeof border2 === "string" ? border2 : void 0,
@@ -22015,9 +22015,9 @@ const Drawer = ({
22015
22015
  "span",
22016
22016
  {
22017
22017
  className: cx$2(
22018
- styles$8.toggleButton,
22019
- localOpen && (isStandardButton || isCustomButton && buttonAnimate) ? styles$8.toggleButtonOpen : "",
22020
- buttonPosition === "top" ? styles$8.top : styles$8.bottom
22018
+ styles$b.toggleButton,
22019
+ localOpen && (isStandardButton || isCustomButton && buttonAnimate) ? styles$b.toggleButtonOpen : "",
22020
+ buttonPosition === "top" ? styles$b.top : styles$b.bottom
22021
22021
  ),
22022
22022
  children: isCustomButton ? button2 : /* @__PURE__ */ jsxRuntimeExports.jsx(
22023
22023
  Button$1,
@@ -22035,6 +22035,38 @@ const Drawer = ({
22035
22035
  }
22036
22036
  );
22037
22037
  };
22038
+ const inputGroup = "_inputGroup_biuoa_1";
22039
+ const styles$a = {
22040
+ inputGroup
22041
+ };
22042
+ const isDOMTypeElement = (element) => {
22043
+ return reactExports.isValidElement(element) && typeof element.type === "string";
22044
+ };
22045
+ const InputGroup = ({
22046
+ children,
22047
+ small: small2 = false,
22048
+ width: width2 = "100%"
22049
+ }) => {
22050
+ const childElements = Array.isArray(children) ? children.filter((c2) => reactExports.isValidElement(c2)) : [children];
22051
+ const elements = childElements.map((item2, index2) => {
22052
+ const isDOMType = isDOMTypeElement(item2);
22053
+ const { groupOrder: groupOrderProp } = !isDOMType ? item2.props : { groupOrder: null };
22054
+ const count2 = childElements.length;
22055
+ const isFirst = index2 === 0;
22056
+ const isLast = index2 === count2 - 1;
22057
+ const isOnly = !count2 || count2 === 1;
22058
+ const groupOrder = groupOrderProp || (isOnly ? null : isFirst ? GroupOrder.FIRST : isLast ? GroupOrder.LAST : GroupOrder.MIDDLE);
22059
+ return isDOMType ? item2 : /* @__PURE__ */ jsxRuntimeExports.jsx(reactExports.Fragment, { children: React$4.cloneElement(item2, { groupOrder, small: small2 }) }, index2);
22060
+ });
22061
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
22062
+ "div",
22063
+ {
22064
+ className: cx$2(styles$a.inputGroup),
22065
+ style: { width: width2 },
22066
+ children: elements
22067
+ }
22068
+ );
22069
+ };
22038
22070
  const inputInTable$3 = "_inputInTable_jnwnh_1";
22039
22071
  const inputHover$3 = "_inputHover_jnwnh_13";
22040
22072
  const inputFocus$3 = "_inputFocus_jnwnh_18";
@@ -22044,14 +22076,14 @@ const inputDisabled$3 = "_inputDisabled_jnwnh_61";
22044
22076
  const hideScrollbars$3 = "_hideScrollbars_jnwnh_67";
22045
22077
  const input = "_input_jnwnh_1";
22046
22078
  const isInTable = "_isInTable_jnwnh_100";
22047
- const small = "_small_jnwnh_124";
22079
+ const small$1 = "_small_jnwnh_124";
22048
22080
  const error$j = "_error_jnwnh_130";
22049
22081
  const warning = "_warning_jnwnh_147";
22050
22082
  const right$2 = "_right_jnwnh_170";
22051
- const groupOrderFirst = "_groupOrderFirst_jnwnh_173";
22052
- const groupOrderMiddle = "_groupOrderMiddle_jnwnh_174";
22053
- const groupOrderLast = "_groupOrderLast_jnwnh_175";
22054
- const styles$7 = {
22083
+ const groupOrderFirst$1 = "_groupOrderFirst_jnwnh_173";
22084
+ const groupOrderMiddle$1 = "_groupOrderMiddle_jnwnh_174";
22085
+ const groupOrderLast$1 = "_groupOrderLast_jnwnh_175";
22086
+ const styles$9 = {
22055
22087
  inputInTable: inputInTable$3,
22056
22088
  inputHover: inputHover$3,
22057
22089
  inputFocus: inputFocus$3,
@@ -22061,15 +22093,15 @@ const styles$7 = {
22061
22093
  hideScrollbars: hideScrollbars$3,
22062
22094
  input,
22063
22095
  isInTable,
22064
- small,
22096
+ small: small$1,
22065
22097
  error: error$j,
22066
22098
  warning,
22067
22099
  right: right$2,
22068
- groupOrderFirst,
22069
- groupOrderMiddle,
22070
- groupOrderLast
22100
+ groupOrderFirst: groupOrderFirst$1,
22101
+ groupOrderMiddle: groupOrderMiddle$1,
22102
+ groupOrderLast: groupOrderLast$1
22071
22103
  };
22072
- reactExports.forwardRef(
22104
+ const Input = reactExports.forwardRef(
22073
22105
  ({
22074
22106
  error: error2 = null,
22075
22107
  tooltip: tooltip2 = null,
@@ -22106,11 +22138,11 @@ reactExports.forwardRef(
22106
22138
  if (groupOrder) {
22107
22139
  switch (groupOrder) {
22108
22140
  case "first":
22109
- return styles$7.groupOrderFirst;
22141
+ return styles$9.groupOrderFirst;
22110
22142
  case "last":
22111
- return styles$7.groupOrderLast;
22143
+ return styles$9.groupOrderLast;
22112
22144
  default:
22113
- return styles$7.groupOrderMiddle;
22145
+ return styles$9.groupOrderMiddle;
22114
22146
  }
22115
22147
  }
22116
22148
  return "";
@@ -22144,11 +22176,11 @@ reactExports.forwardRef(
22144
22176
  autoComplete: "off",
22145
22177
  disabled: disabled2 || disabledContext,
22146
22178
  className: cx$2(
22147
- styles$7.input,
22148
- error2 ? styles$7.error : warning2 ? styles$7.warning : "",
22149
- right2 ? styles$7.right : "",
22150
- small2 ? styles$7.small : "",
22151
- isInTable2 ? styles$7.isInTable : ""
22179
+ styles$9.input,
22180
+ error2 ? styles$9.error : warning2 ? styles$9.warning : "",
22181
+ right2 ? styles$9.right : "",
22182
+ small2 ? styles$9.small : "",
22183
+ isInTable2 ? styles$9.isInTable : ""
22152
22184
  ),
22153
22185
  style: { width: width2 },
22154
22186
  "data-testid": testId
@@ -22236,6 +22268,38 @@ const Grid = ({
22236
22268
  }
22237
22269
  );
22238
22270
  };
22271
+ const addon = "_addon_b4w53_1";
22272
+ const small = "_small_b4w53_12";
22273
+ const groupOrderFirst = "_groupOrderFirst_b4w53_16";
22274
+ const groupOrderMiddle = "_groupOrderMiddle_b4w53_17";
22275
+ const groupOrderLast = "_groupOrderLast_b4w53_21";
22276
+ const styles$8 = {
22277
+ addon,
22278
+ small,
22279
+ groupOrderFirst,
22280
+ groupOrderMiddle,
22281
+ groupOrderLast
22282
+ };
22283
+ const InputGroupAddon = ({
22284
+ children,
22285
+ groupOrder = null,
22286
+ small: small2 = false
22287
+ }) => {
22288
+ const order2 = (() => {
22289
+ if (groupOrder) {
22290
+ switch (groupOrder) {
22291
+ case GroupOrder.FIRST:
22292
+ return styles$8.groupOrderFirst;
22293
+ case GroupOrder.LAST:
22294
+ return styles$8.groupOrderLast;
22295
+ default:
22296
+ return styles$8.groupOrderMiddle;
22297
+ }
22298
+ }
22299
+ return "";
22300
+ })();
22301
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: cx$2(styles$8.addon, order2, small2 ? styles$8.small : ""), children });
22302
+ };
22239
22303
  var ReactReduxContext = /* @__PURE__ */ React$4.createContext(null);
22240
22304
  function defaultNoopBatch(callback) {
22241
22305
  callback();
@@ -23522,7 +23586,7 @@ function useUniqueId(prefix2, options2) {
23522
23586
  }, [options2.separator, prefix2]);
23523
23587
  }
23524
23588
  var AppContext = React$4.createContext(null);
23525
- function usePrevious$2(current) {
23589
+ function usePrevious$3(current) {
23526
23590
  var ref2 = reactExports.useRef(current);
23527
23591
  reactExports.useEffect(function() {
23528
23592
  ref2.current = current;
@@ -23755,7 +23819,7 @@ function useDroppablePublisher(args) {
23755
23819
  var appContext = useRequiredContext(AppContext);
23756
23820
  var uniqueId3 = useUniqueId("droppable");
23757
23821
  var registry = appContext.registry, marshal = appContext.marshal;
23758
- var previousRef = usePrevious$2(args);
23822
+ var previousRef = usePrevious$3(args);
23759
23823
  var descriptor = useMemo(function() {
23760
23824
  return {
23761
23825
  id: args.droppableId,
@@ -25340,7 +25404,7 @@ reactExports.forwardRef(
25340
25404
  );
25341
25405
  const page = "_page_beskc_1";
25342
25406
  const scroll = "_scroll_beskc_23";
25343
- const styles$6 = {
25407
+ const styles$7 = {
25344
25408
  page,
25345
25409
  scroll
25346
25410
  };
@@ -25355,7 +25419,7 @@ const Page$1 = ({
25355
25419
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
25356
25420
  "div",
25357
25421
  {
25358
- className: cx$2(styles$6.page, scroll3 ? styles$6.scroll : ""),
25422
+ className: cx$2(styles$7.page, scroll3 ? styles$7.scroll : ""),
25359
25423
  style: { left: left2, padding: padding2, top: top2 },
25360
25424
  children
25361
25425
  }
@@ -53091,7 +53155,7 @@ function createContextHook(useHook) {
53091
53155
  function contextHookFactory(DefaultContext2) {
53092
53156
  return (selector, equalityCheck) => {
53093
53157
  const context2 = reactExports.useContext(DefaultContext2);
53094
- const previousContext = usePrevious$1(context2);
53158
+ const previousContext = usePrevious$2(context2);
53095
53159
  if (!context2) {
53096
53160
  throw new Error(
53097
53161
  "`useContextHook` must be placed inside the `Provider` returned by the `createContextState` method"
@@ -53113,7 +53177,7 @@ function contextHookFactory(DefaultContext2) {
53113
53177
  return equalityCheck(previousValue, value) ? previousValue : value;
53114
53178
  };
53115
53179
  }
53116
- function usePrevious$1(value) {
53180
+ function usePrevious$2(value) {
53117
53181
  const ref2 = reactExports.useRef();
53118
53182
  useIsomorphicLayoutEffect$3(() => {
53119
53183
  ref2.current = value;
@@ -54693,7 +54757,7 @@ var ReactFramework = class extends Framework {
54693
54757
  };
54694
54758
  _editorRef = /* @__PURE__ */ new WeakMap();
54695
54759
  var useIsomorphicLayoutEffect$2 = typeof document !== "undefined" ? reactExports.useLayoutEffect : reactExports.useEffect;
54696
- function usePrevious(value) {
54760
+ function usePrevious$1(value) {
54697
54761
  const ref2 = reactExports.useRef();
54698
54762
  useIsomorphicLayoutEffect$2(() => {
54699
54763
  ref2.current = value;
@@ -54747,7 +54811,7 @@ function useFramework(props) {
54747
54811
  function useControlledEditor(framework) {
54748
54812
  const { state } = framework.props;
54749
54813
  const isControlledRef = reactExports.useRef(!!state);
54750
- const previousValue = usePrevious(state);
54814
+ const previousValue = usePrevious$1(state);
54751
54815
  useIsomorphicLayoutEffect$2(() => {
54752
54816
  const validUpdate = state ? isControlledRef.current === true : isControlledRef.current === false;
54753
54817
  invariant$2(validUpdate, {
@@ -54815,7 +54879,7 @@ var interopRequireDefaultExports = interopRequireDefault.exports;
54815
54879
  const require$$2 = /* @__PURE__ */ getAugmentedNamespace(_extends$5);
54816
54880
  const richTextToolbar = "_richTextToolbar_1gbkk_1";
54817
54881
  const richTextToolbarContainer = "_richTextToolbarContainer_1gbkk_5";
54818
- const styles$5 = {
54882
+ const styles$6 = {
54819
54883
  richTextToolbar,
54820
54884
  richTextToolbarContainer
54821
54885
  };
@@ -54867,8 +54931,8 @@ const RichTextToolbar = ({
54867
54931
  active: active2.orderedList()
54868
54932
  }
54869
54933
  ];
54870
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$5.richTextToolbarContainer, children: [
54871
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$5.richTextToolbar, children: items2.map((item2, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
54934
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$6.richTextToolbarContainer, children: [
54935
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$6.richTextToolbar, children: items2.map((item2, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
54872
54936
  Button$1,
54873
54937
  {
54874
54938
  small: true,
@@ -54896,7 +54960,7 @@ const inputWarning$1 = "_inputWarning_ta5ga_26";
54896
54960
  const inputDisabled$1 = "_inputDisabled_ta5ga_61";
54897
54961
  const hideScrollbars$1 = "_hideScrollbars_ta5ga_67";
54898
54962
  const richTextInput = "_richTextInput_ta5ga_77";
54899
- const styles$4 = {
54963
+ const styles$5 = {
54900
54964
  inputInTable: inputInTable$1,
54901
54965
  inputHover: inputHover$1,
54902
54966
  inputFocus: inputFocus$1,
@@ -54932,7 +54996,7 @@ reactExports.forwardRef(
54932
54996
  }
54933
54997
  setState(state2);
54934
54998
  };
54935
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.richTextInput, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
54999
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$5.richTextInput, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
54936
55000
  Remirror,
54937
55001
  {
54938
55002
  manager,
@@ -55044,7 +55108,7 @@ const item$1 = "_item_1ube5_140";
55044
55108
  const experimental = "_experimental_1ube5_155";
55045
55109
  const active$1 = "_active_1ube5_159";
55046
55110
  const icon = "_icon_1ube5_163";
55047
- const styles$3 = {
55111
+ const styles$4 = {
55048
55112
  inputInTable,
55049
55113
  inputHover,
55050
55114
  inputFocus,
@@ -55077,10 +55141,10 @@ const TooltipIcon = reactExports.memo(
55077
55141
  fontSize: 16,
55078
55142
  padding: "var(--padding-sm)",
55079
55143
  display: "block",
55080
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$3.icon, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { small: true, title: invalid ? "!" : void 0, margin: 4, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: icon2 }) }) })
55144
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$4.icon, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { small: true, title: invalid ? "!" : void 0, margin: 4, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: icon2 }) }) })
55081
55145
  }
55082
55146
  ),
55083
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$3.label, children: label2 })
55147
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$4.label, children: label2 })
55084
55148
  ] });
55085
55149
  },
55086
55150
  (prevProps, nextProps) => isEqual4(prevProps, nextProps)
@@ -55092,16 +55156,16 @@ const Link$1 = ({
55092
55156
  onClick,
55093
55157
  testId
55094
55158
  }) => {
55095
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$3.list, children: items2.map((link2, i) => {
55159
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.list, children: items2.map((link2, i) => {
55096
55160
  const key2 = `${sectionIndex}_${i}`;
55097
55161
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
55098
55162
  "a",
55099
55163
  {
55100
55164
  href: link2.value,
55101
55165
  className: cx$2(
55102
- styles$3.item,
55103
- link2.isActive ? styles$3.active : "",
55104
- link2.isExperimental ? styles$3.experimental : ""
55166
+ styles$4.item,
55167
+ link2.isActive ? styles$4.active : "",
55168
+ link2.isExperimental ? styles$4.experimental : ""
55105
55169
  ),
55106
55170
  onClick: (evt) => onClick(evt, link2.value, link2.label, link2.onClick),
55107
55171
  "data-testid": testId,
@@ -55126,7 +55190,7 @@ const Sections = ({
55126
55190
  onClick
55127
55191
  }) => {
55128
55192
  return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: sections.map((section, i) => /* @__PURE__ */ jsxRuntimeExports.jsxs(React$4.Fragment, { children: [
55129
- /* @__PURE__ */ jsxRuntimeExports.jsx("h5", { className: styles$3.subtitle, children: section.heading.toUpperCase() }),
55193
+ /* @__PURE__ */ jsxRuntimeExports.jsx("h5", { className: styles$4.subtitle, children: section.heading.toUpperCase() }),
55130
55194
  /* @__PURE__ */ jsxRuntimeExports.jsx(
55131
55195
  Link$1,
55132
55196
  {
@@ -55182,8 +55246,8 @@ reactExports.memo(
55182
55246
  icon: IconType.LEFT
55183
55247
  }
55184
55248
  ),
55185
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$3.sidebar, !isOpen ? styles$3.collapsed : ""), children: visible && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$3.inner, children: [
55186
- /* @__PURE__ */ jsxRuntimeExports.jsx("h4", { className: styles$3.title, children: options2.title }),
55249
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$4.sidebar, !isOpen ? styles$4.collapsed : ""), children: visible && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$4.inner, children: [
55250
+ /* @__PURE__ */ jsxRuntimeExports.jsx("h4", { className: styles$4.title, children: options2.title }),
55187
55251
  /* @__PURE__ */ jsxRuntimeExports.jsx(
55188
55252
  Sections,
55189
55253
  {
@@ -58841,10 +58905,10 @@ function requireConstants() {
58841
58905
  })(constants);
58842
58906
  return constants;
58843
58907
  }
58844
- var validate$2 = {};
58908
+ var validate$3 = {};
58845
58909
  var ajv$1 = { exports: {} };
58846
58910
  var core$2 = {};
58847
- var validate$1 = {};
58911
+ var validate$2 = {};
58848
58912
  var boolSchema = {};
58849
58913
  var errors = {};
58850
58914
  var codegen = {};
@@ -61009,8 +61073,8 @@ function getSchemaRefs(schema, baseId) {
61009
61073
  }
61010
61074
  }
61011
61075
  resolve$2.getSchemaRefs = getSchemaRefs;
61012
- Object.defineProperty(validate$1, "__esModule", { value: true });
61013
- validate$1.getData = validate$1.KeywordCxt = validate$1.validateFunctionCode = void 0;
61076
+ Object.defineProperty(validate$2, "__esModule", { value: true });
61077
+ validate$2.getData = validate$2.KeywordCxt = validate$2.validateFunctionCode = void 0;
61014
61078
  const boolSchema_1 = boolSchema;
61015
61079
  const dataType_1$1 = dataType;
61016
61080
  const applicability_1 = applicability;
@@ -61033,7 +61097,7 @@ function validateFunctionCode(it2) {
61033
61097
  }
61034
61098
  validateFunction(it2, () => (0, boolSchema_1.topBoolOrEmptySchema)(it2));
61035
61099
  }
61036
- validate$1.validateFunctionCode = validateFunctionCode;
61100
+ validate$2.validateFunctionCode = validateFunctionCode;
61037
61101
  function validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) {
61038
61102
  if (opts.code.es5) {
61039
61103
  gen.func(validateName, (0, codegen_1$o._)`${names_1$3.default.data}, ${names_1$3.default.valCxt}`, schemaEnv.$async, () => {
@@ -61453,7 +61517,7 @@ class KeywordCxt {
61453
61517
  }
61454
61518
  }
61455
61519
  }
61456
- validate$1.KeywordCxt = KeywordCxt;
61520
+ validate$2.KeywordCxt = KeywordCxt;
61457
61521
  function keywordCode(it2, keyword2, def2, ruleType) {
61458
61522
  const cxt = new KeywordCxt(it2, def2, keyword2);
61459
61523
  if ("code" in def2) {
@@ -61508,7 +61572,7 @@ function getData($data, { dataLevel, dataNames, dataPathArr }) {
61508
61572
  return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`;
61509
61573
  }
61510
61574
  }
61511
- validate$1.getData = getData;
61575
+ validate$2.getData = getData;
61512
61576
  var validation_error = {};
61513
61577
  Object.defineProperty(validation_error, "__esModule", { value: true });
61514
61578
  class ValidationError extends Error {
@@ -61538,7 +61602,7 @@ const validation_error_1 = validation_error;
61538
61602
  const names_1$2 = names$2;
61539
61603
  const resolve_1 = resolve$2;
61540
61604
  const util_1$k = util;
61541
- const validate_1$1 = validate$1;
61605
+ const validate_1$1 = validate$2;
61542
61606
  class SchemaEnv {
61543
61607
  constructor(env2) {
61544
61608
  var _a;
@@ -62431,7 +62495,7 @@ uri$1.default = uri;
62431
62495
  (function(exports) {
62432
62496
  Object.defineProperty(exports, "__esModule", { value: true });
62433
62497
  exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
62434
- var validate_12 = validate$1;
62498
+ var validate_12 = validate$2;
62435
62499
  Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
62436
62500
  return validate_12.KeywordCxt;
62437
62501
  } });
@@ -64033,7 +64097,7 @@ const def$a = {
64033
64097
  additionalProperties.default = def$a;
64034
64098
  var properties$1 = {};
64035
64099
  Object.defineProperty(properties$1, "__esModule", { value: true });
64036
- const validate_1 = validate$1;
64100
+ const validate_1 = validate$2;
64037
64101
  const code_1$2 = code;
64038
64102
  const util_1$7 = util;
64039
64103
  const additionalProperties_1$1 = additionalProperties;
@@ -64884,7 +64948,7 @@ const require$$3 = {
64884
64948
  module.exports.Ajv = Ajv;
64885
64949
  Object.defineProperty(exports, "__esModule", { value: true });
64886
64950
  exports.default = Ajv;
64887
- var validate_12 = validate$1;
64951
+ var validate_12 = validate$2;
64888
64952
  Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
64889
64953
  return validate_12.KeywordCxt;
64890
64954
  } });
@@ -64923,7 +64987,7 @@ var dist$1 = { exports: {} };
64923
64987
  const ajv_12 = ajvExports;
64924
64988
  const codegen_12 = codegen;
64925
64989
  const code_12 = code$1;
64926
- const validate_12 = validate$1;
64990
+ const validate_12 = validate$2;
64927
64991
  const errors_12 = errors;
64928
64992
  const names_12 = names$2;
64929
64993
  const keyword2 = "errorMessage";
@@ -66174,21 +66238,21 @@ var distExports = dist.exports;
66174
66238
  var __importDefault = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod) {
66175
66239
  return mod && mod.__esModule ? mod : { "default": mod };
66176
66240
  };
66177
- Object.defineProperty(validate$2, "__esModule", { value: true });
66241
+ Object.defineProperty(validate$3, "__esModule", { value: true });
66178
66242
  const ajv_1 = __importDefault(ajvExports);
66179
66243
  const ajv_errors_1 = __importDefault(distExports$1);
66180
66244
  const ajv_keywords_1 = __importDefault(distExports);
66181
66245
  const ajv = new ajv_1.default({ allErrors: true, $data: true });
66182
66246
  (0, ajv_errors_1.default)(ajv);
66183
66247
  (0, ajv_keywords_1.default)(ajv, "transform");
66184
- const validate = (data, schema) => {
66248
+ const validate$1 = (data, schema) => {
66185
66249
  var _a;
66186
66250
  const v2 = ajv.compile(schema);
66187
66251
  const valid = v2(data);
66188
66252
  const errorMessages = (_a = v2.errors) === null || _a === void 0 ? void 0 : _a.map(({ message }) => message);
66189
66253
  return { valid, errors: errorMessages };
66190
66254
  };
66191
- validate$2.default = validate;
66255
+ validate$3.default = validate$1;
66192
66256
  var validateNumber_schema = {};
66193
66257
  Object.defineProperty(validateNumber_schema, "__esModule", { value: true });
66194
66258
  const validNumberSchema = {
@@ -66211,7 +66275,7 @@ function requireUnits() {
66211
66275
  const display_number_1 = requireDisplayNumber();
66212
66276
  const numbers_1 = requireNumbers();
66213
66277
  const rounding_1 = requireRounding();
66214
- const validate_12 = __importDefault2(validate$2);
66278
+ const validate_12 = __importDefault2(validate$3);
66215
66279
  const validate_number_schema_1 = __importDefault2(validateNumber_schema);
66216
66280
  exports.SEPARATOR = "|";
66217
66281
  const UNIT_RE = /^(-?[0-9., /]*?(?:e[-+]?[0-9]+)?)([^0-9-., /].*)?$/;
@@ -67031,7 +67095,7 @@ const button = "_button_oyr59_138";
67031
67095
  const menu = "_menu_oyr59_139";
67032
67096
  const active = "_active_oyr59_168";
67033
67097
  const alert = "_alert_oyr59_193";
67034
- const styles$2 = {
67098
+ const styles$3 = {
67035
67099
  topbar,
67036
67100
  fixed,
67037
67101
  appSwitcher,
@@ -67050,7 +67114,7 @@ const styles$2 = {
67050
67114
  alert
67051
67115
  };
67052
67116
  const Warning = ({ warning: warning2 }) => {
67053
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$2.alert, children: warning2 });
67117
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$3.alert, children: warning2 });
67054
67118
  };
67055
67119
  const AppSwitcher = ({
67056
67120
  icon: icon2,
@@ -67058,7 +67122,7 @@ const AppSwitcher = ({
67058
67122
  onClick
67059
67123
  }) => {
67060
67124
  const content = /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: icon2 });
67061
- return url ? /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: url, onClick, className: styles$2.appSwitcher, children: content }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { onClick, className: styles$2.appSwitcher, children: content });
67125
+ return url ? /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: url, onClick, className: styles$3.appSwitcher, children: content }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { onClick, className: styles$3.appSwitcher, children: content });
67062
67126
  };
67063
67127
  const Title = ({
67064
67128
  label: label2,
@@ -67067,12 +67131,12 @@ const Title = ({
67067
67131
  version: version2,
67068
67132
  onClick
67069
67133
  }) => {
67070
- const content = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$2.title, children: [
67071
- logo2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$2.logo, children: logo2 }),
67072
- label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$2.label, children: label2 }),
67073
- version2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$2.version, children: version2 })
67134
+ const content = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$3.title, children: [
67135
+ logo2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$3.logo, children: logo2 }),
67136
+ label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$3.label, children: label2 }),
67137
+ version2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$3.version, children: version2 })
67074
67138
  ] });
67075
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$2.item, styles$2.brand), children: url ? /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: url, onClick, children: content }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { onClick, children: content }) });
67139
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$3.item, styles$3.brand), children: url ? /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: url, onClick, children: content }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { onClick, children: content }) });
67076
67140
  };
67077
67141
  var ElementType = /* @__PURE__ */ ((ElementType2) => {
67078
67142
  ElementType2["LINK"] = "Link";
@@ -67101,7 +67165,7 @@ const Link = ({
67101
67165
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
67102
67166
  Component2,
67103
67167
  {
67104
- className: cx$2(styles$2.link, active2 ? styles$2.active : ""),
67168
+ className: cx$2(styles$3.link, active2 ? styles$3.active : ""),
67105
67169
  href: url || "#",
67106
67170
  to: url,
67107
67171
  onClick: handleClick2,
@@ -67110,7 +67174,7 @@ const Link = ({
67110
67174
  role: onClick && !url ? "button" : void 0,
67111
67175
  children: [
67112
67176
  icon2,
67113
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$2.label, children: label2 })
67177
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$3.label, children: label2 })
67114
67178
  ]
67115
67179
  }
67116
67180
  );
@@ -67118,7 +67182,7 @@ const Link = ({
67118
67182
  const Element$1 = ({ element }) => {
67119
67183
  switch (element.type) {
67120
67184
  case ElementType.LINK:
67121
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$2.item, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
67185
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$3.item, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
67122
67186
  Link,
67123
67187
  {
67124
67188
  label: element.label,
@@ -67132,7 +67196,7 @@ const Element$1 = ({ element }) => {
67132
67196
  }
67133
67197
  ) });
67134
67198
  case ElementType.BUTTON:
67135
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$2.item, styles$2.button), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
67199
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$3.item, styles$3.button), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
67136
67200
  Button$1,
67137
67201
  {
67138
67202
  label: element.label,
@@ -67145,7 +67209,7 @@ const Element$1 = ({ element }) => {
67145
67209
  }
67146
67210
  ) });
67147
67211
  case ElementType.MENU:
67148
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$2.item, styles$2.menu), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
67212
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$3.item, styles$3.menu), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
67149
67213
  Menu,
67150
67214
  {
67151
67215
  maxHeight: "100%",
@@ -67166,7 +67230,7 @@ const Element$1 = ({ element }) => {
67166
67230
  }
67167
67231
  ) });
67168
67232
  case ElementType.COMPONENT:
67169
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$2.item, children: element.component });
67233
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$3.item, children: element.component });
67170
67234
  default:
67171
67235
  return null;
67172
67236
  }
@@ -67185,7 +67249,7 @@ const TopBar = ({
67185
67249
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
67186
67250
  "div",
67187
67251
  {
67188
- className: cx$2(styles$2.topbar, fixedPosition ? styles$2.fixed : ""),
67252
+ className: cx$2(styles$3.topbar, fixedPosition ? styles$3.fixed : ""),
67189
67253
  style: { height: height2 },
67190
67254
  children: [
67191
67255
  !!appSwitcher2 && /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -67196,7 +67260,7 @@ const TopBar = ({
67196
67260
  onClick: appSwitcher2.onClick
67197
67261
  }
67198
67262
  ),
67199
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$2.left, children: [
67263
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$3.left, children: [
67200
67264
  title2 && /* @__PURE__ */ jsxRuntimeExports.jsx(
67201
67265
  Title,
67202
67266
  {
@@ -67214,7 +67278,7 @@ const TopBar = ({
67214
67278
  return null;
67215
67279
  })
67216
67280
  ] }),
67217
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$2.right, children: contentRight.map((element, i) => {
67281
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$3.right, children: contentRight.map((element, i) => {
67218
67282
  if (element) {
67219
67283
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$1, { element }, i);
67220
67284
  }
@@ -75845,8 +75909,463 @@ function TreeInner(props, ref2) {
75845
75909
  );
75846
75910
  }
75847
75911
  reactExports.forwardRef(TreeInner);
75848
- requireUnits();
75849
- reactExports.createContext(null);
75912
+ const useRunAfterUpdate = () => {
75913
+ const afterPaintRef = reactExports.useRef(null);
75914
+ reactExports.useLayoutEffect(() => {
75915
+ if (afterPaintRef.current) {
75916
+ afterPaintRef.current();
75917
+ afterPaintRef.current = null;
75918
+ }
75919
+ });
75920
+ const runAfterUpdate = (fn) => {
75921
+ afterPaintRef.current = fn;
75922
+ };
75923
+ return runAfterUpdate;
75924
+ };
75925
+ const usePrevious = (value) => {
75926
+ const ref2 = reactExports.useRef();
75927
+ reactExports.useEffect(() => {
75928
+ ref2.current = value;
75929
+ }, [value]);
75930
+ return ref2.current;
75931
+ };
75932
+ const getPreferredUnit = (unitkey, unitTemplate) => {
75933
+ const preferredUnit = unitTemplate == null ? void 0 : unitTemplate[unitkey];
75934
+ if (!preferredUnit) {
75935
+ console.log(
75936
+ `Warning: 'unitTemplate' missing for '${unitkey}'. Using initial unit, value unit, or default.`
75937
+ );
75938
+ return dist$2.unitFromQuantity(unitkey) ?? "";
75939
+ }
75940
+ return preferredUnit;
75941
+ };
75942
+ var PredefinedOptionsMenuState = /* @__PURE__ */ ((PredefinedOptionsMenuState2) => {
75943
+ PredefinedOptionsMenuState2["CUSTOM"] = "custom";
75944
+ PredefinedOptionsMenuState2["PREDEFINED"] = "predefined";
75945
+ return PredefinedOptionsMenuState2;
75946
+ })(PredefinedOptionsMenuState || {});
75947
+ const isWrongValue = (val) => {
75948
+ return val === "undefined" || val === void 0 || val === "" || val === "null" || val === null || val === "NaN" || isNaN(val);
75949
+ };
75950
+ const convertUnit = (stringValue = "", toUnit, defaultFromUnit = "", doNotConvertValue = false) => {
75951
+ if (doNotConvertValue) return stringValue;
75952
+ if (toUnit && !isWrongValue(stringValue)) {
75953
+ try {
75954
+ const valueWithUnit = dist$2.isValueWithUnit(stringValue) ? stringValue : dist$2.withUnit(stringValue, defaultFromUnit);
75955
+ const result = dist$2.convertSamePrecision(valueWithUnit, toUnit);
75956
+ return dist$2.getValue(result);
75957
+ } catch (e2) {
75958
+ }
75959
+ }
75960
+ return stringValue;
75961
+ };
75962
+ const isValueWithUnknownUnit = (value) => {
75963
+ if (!value) return false;
75964
+ return Boolean(dist$2.getUnit(value));
75965
+ };
75966
+ const safeConvertValue = (value = "", toUnit, defaultFromUnit, doNotConvertValue) => {
75967
+ if (doNotConvertValue) {
75968
+ return value;
75969
+ }
75970
+ const isWithUnit = isValueWithUnknownUnit(value) || dist$2.isValueWithUnit(value);
75971
+ const rawValue = dist$2.getValue(value);
75972
+ const isInvalidInput = isWrongValue(rawValue);
75973
+ if (isInvalidInput) {
75974
+ return rawValue;
75975
+ }
75976
+ if (!isWithUnit) {
75977
+ return value;
75978
+ }
75979
+ return convertUnit(rawValue, toUnit, defaultFromUnit, doNotConvertValue);
75980
+ };
75981
+ const getStringName = (name2) => {
75982
+ if (lodashExports.isObject(name2) && !lodashExports.isArray(name2) && !lodashExports.isFunction(name2)) {
75983
+ return lodashExports.get(name2, "fieldName", "");
75984
+ }
75985
+ return typeof name2 === "string" ? name2 : "";
75986
+ };
75987
+ const isErrorObject = (error2) => lodashExports.isObjectLike(error2) && lodashExports.has(error2, "message");
75988
+ const getErrorMessage = (error2) => {
75989
+ if (typeof error2 === "string") {
75990
+ return error2;
75991
+ } else if (isErrorObject(error2)) {
75992
+ return error2.message;
75993
+ } else {
75994
+ return null;
75995
+ }
75996
+ };
75997
+ var unitsExports = requireUnits();
75998
+ const hasLeadingZeroes = (value) => {
75999
+ return value.search(RegExp(/(^0{2}\.)|(^0+[1-9])/g)) === 0;
76000
+ };
76001
+ const validate = (value, options2) => {
76002
+ var _a;
76003
+ const {
76004
+ allowEmpty = false,
76005
+ autoValue,
76006
+ placeholder,
76007
+ disabledValidation = false
76008
+ } = options2 || {};
76009
+ const stringValue = String(value);
76010
+ if (disabledValidation || autoValue || placeholder) {
76011
+ return null;
76012
+ }
76013
+ const cleanValue = unitsExports.isValueWithUnit(stringValue) ? dist$2.getValue(stringValue) : stringValue;
76014
+ if (allowEmpty && cleanValue === "") {
76015
+ return null;
76016
+ }
76017
+ if (hasLeadingZeroes(cleanValue)) {
76018
+ return "Invalid number format due to leading zeroes";
76019
+ }
76020
+ const validationErrors = dist$2.validateNumber(cleanValue);
76021
+ if (!validationErrors.valid) {
76022
+ const firstError = ((_a = validationErrors == null ? void 0 : validationErrors.errors) == null ? void 0 : _a[0]) ?? null;
76023
+ return getErrorMessage(firstError);
76024
+ }
76025
+ return null;
76026
+ };
76027
+ const isUnitKnown = (unit = "") => {
76028
+ var _a;
76029
+ return (_a = dist$2.KNOWN_UNITS) == null ? void 0 : _a.includes(unit);
76030
+ };
76031
+ const isKnownUnit = (valueWithUnit, defaultUnit) => {
76032
+ const unitFromValue = dist$2.getUnit(valueWithUnit || "");
76033
+ return isUnitKnown(defaultUnit) && isUnitKnown(unitFromValue);
76034
+ };
76035
+ const UnitContext = reactExports.createContext(null);
76036
+ const WithUnitContext = ({ children }) => {
76037
+ {
76038
+ console.log("Context not initialized. Call initializeContext first.");
76039
+ return children;
76040
+ }
76041
+ };
76042
+ const predefinedMenuActive = "_predefinedMenuActive_1yvt4_1";
76043
+ const styles$2 = {
76044
+ predefinedMenuActive
76045
+ };
76046
+ const UnitInputComponent = ({
76047
+ name: name2,
76048
+ placeholder = "",
76049
+ disabled: disabled2 = false,
76050
+ disabledUnit = false,
76051
+ error: error2 = null,
76052
+ left: left2 = false,
76053
+ small: small2 = false,
76054
+ width: width2 = "100%",
76055
+ value,
76056
+ unitkey = "",
76057
+ initUnit,
76058
+ noConversion = false,
76059
+ onChange = () => {
76060
+ },
76061
+ onClick = () => {
76062
+ },
76063
+ onFocus = () => {
76064
+ },
76065
+ onSwitchUnit = () => {
76066
+ },
76067
+ unitTemplate,
76068
+ doNotConvertValue = false,
76069
+ testId,
76070
+ warning: warning2 = null,
76071
+ predefinedOptions,
76072
+ initialPredefinedOption = false,
76073
+ shouldLinkAutomaticly = true,
76074
+ selectedPredefinedOptionKey,
76075
+ validationCallback = () => ({ name: "", error: null }),
76076
+ disabledValidation = false,
76077
+ allowEmpty = false,
76078
+ autoValue
76079
+ }) => {
76080
+ if (typeof value === "number") {
76081
+ value = `${value}`;
76082
+ }
76083
+ const context2 = reactExports.useContext(UnitContext);
76084
+ console.log("context in component ->>>>", context2);
76085
+ const runAfterUpdate = useRunAfterUpdate();
76086
+ const [propValue = "", propUnit = ""] = value !== void 0 ? dist$2.split(value) : [];
76087
+ const propAutoUnit = autoValue ? dist$2.getUnit(autoValue) : "";
76088
+ const defaultUnit = reactExports.useMemo(
76089
+ () => getPreferredUnit(unitkey, unitTemplate),
76090
+ [unitkey, unitTemplate]
76091
+ );
76092
+ const knownUnit = isKnownUnit(value, defaultUnit);
76093
+ const initDisplayUnit = initUnit || propUnit || defaultUnit;
76094
+ const previousInitUnit = usePrevious(initDisplayUnit);
76095
+ const convertedValue = safeConvertValue(
76096
+ value,
76097
+ initDisplayUnit,
76098
+ propUnit,
76099
+ doNotConvertValue
76100
+ );
76101
+ const convertedAutoValue = safeConvertValue(
76102
+ autoValue,
76103
+ initDisplayUnit,
76104
+ propAutoUnit,
76105
+ doNotConvertValue
76106
+ );
76107
+ const initDisplayLayer = convertedValue !== "" ? { value: convertedValue, unit: initDisplayUnit } : convertedAutoValue !== "" ? { value: convertedAutoValue, unit: initDisplayUnit } : { value: propValue, unit: propUnit };
76108
+ const [displayLayer, setDisplayLayer] = reactExports.useState(initDisplayLayer);
76109
+ const [validationError, setValidationError] = reactExports.useState(null);
76110
+ const [predefinedOptionsMenuState, setPredefinedOptionsMenuState] = reactExports.useState(
76111
+ initialPredefinedOption ? PredefinedOptionsMenuState.PREDEFINED : PredefinedOptionsMenuState.CUSTOM
76112
+ );
76113
+ const isAutoValue = propValue === "" && autoValue;
76114
+ const foundPredefinedMenuOption = predefinedOptions && predefinedOptions.find((el2) => {
76115
+ if (!(el2 == null ? void 0 : el2.value)) return;
76116
+ if (selectedPredefinedOptionKey) {
76117
+ return selectedPredefinedOptionKey === el2.valueKey;
76118
+ }
76119
+ const predefinedMenuItemUnit = dist$2.isValueWithUnit(el2.value) ? dist$2.getUnit(el2.value) : "";
76120
+ return dist$2.withUnit(
76121
+ convertUnit(value, predefinedMenuItemUnit),
76122
+ predefinedMenuItemUnit
76123
+ ) === el2.value;
76124
+ });
76125
+ const getAlternativeUnits = () => {
76126
+ if (unitkey) {
76127
+ try {
76128
+ const valueToList = isAutoValue ? autoValue : value ?? "";
76129
+ let alternativeUnits2 = dist$2.altUnitsList(valueToList, unitkey);
76130
+ if (dist$2.getValue(valueToList) === "") {
76131
+ return alternativeUnits2.map((unitRow) => ["", unitRow[1]]);
76132
+ }
76133
+ return alternativeUnits2;
76134
+ } catch (e2) {
76135
+ return null;
76136
+ }
76137
+ }
76138
+ };
76139
+ const onSetValue = (evt) => {
76140
+ const stringName2 = getStringName(name2);
76141
+ const input2 = evt.target;
76142
+ const { value: inputValue, selectionStart: currentCursorPosition } = input2;
76143
+ const cleanInputValue = dist$2.cleanNumStr(
76144
+ inputValue.replaceAll(" ", "").replaceAll("|", "")
76145
+ );
76146
+ const newValue = dist$2.withUnit(cleanInputValue, (displayLayer == null ? void 0 : displayLayer.unit) || "");
76147
+ const rawValue = dist$2.getValue(newValue);
76148
+ const validationResult = validate(rawValue, {
76149
+ allowEmpty,
76150
+ autoValue,
76151
+ placeholder,
76152
+ disabledValidation
76153
+ });
76154
+ if (validationResult === null) {
76155
+ onChange({
76156
+ target: {
76157
+ value: newValue,
76158
+ name: stringName2
76159
+ }
76160
+ });
76161
+ const [val, u2] = dist$2.split(newValue);
76162
+ setDisplayLayer({ value: val, unit: u2 });
76163
+ setValidationError(null);
76164
+ validationCallback(stringName2, null);
76165
+ } else {
76166
+ setDisplayLayer({ value: cleanInputValue, unit: displayLayer.unit });
76167
+ setValidationError(validationResult);
76168
+ validationCallback(stringName2, validationResult);
76169
+ }
76170
+ runAfterUpdate(() => {
76171
+ input2.selectionStart = currentCursorPosition;
76172
+ input2.selectionEnd = currentCursorPosition;
76173
+ });
76174
+ };
76175
+ const onClickUnit = (nextValue, nextUnit) => {
76176
+ if (nextUnit === displayLayer.unit || isNaN(Number(nextValue))) {
76177
+ return;
76178
+ }
76179
+ setDisplayLayer({ value: nextValue, unit: nextUnit });
76180
+ if (onSwitchUnit) {
76181
+ onSwitchUnit(nextUnit);
76182
+ }
76183
+ };
76184
+ reactExports.useEffect(() => {
76185
+ if (initDisplayUnit) {
76186
+ let newValue, newUnit = "";
76187
+ if (previousInitUnit !== initDisplayUnit) {
76188
+ newValue = safeConvertValue(
76189
+ value,
76190
+ initDisplayUnit,
76191
+ propUnit,
76192
+ doNotConvertValue
76193
+ );
76194
+ newUnit = initDisplayUnit;
76195
+ } else if (dist$2.withUnit(displayLayer.value, displayLayer.unit) !== value) {
76196
+ newValue = safeConvertValue(
76197
+ value,
76198
+ displayLayer.unit,
76199
+ propUnit,
76200
+ doNotConvertValue
76201
+ );
76202
+ newUnit = displayLayer.unit;
76203
+ }
76204
+ if (newValue !== void 0) {
76205
+ setDisplayLayer({ value: newValue, unit: newUnit });
76206
+ }
76207
+ if (predefinedOptions) {
76208
+ if (foundPredefinedMenuOption && shouldLinkAutomaticly) {
76209
+ setPredefinedOptionsMenuState(PredefinedOptionsMenuState.PREDEFINED);
76210
+ } else {
76211
+ setPredefinedOptionsMenuState(PredefinedOptionsMenuState.CUSTOM);
76212
+ }
76213
+ }
76214
+ }
76215
+ const cleanValue = dist$2.checkAndCleanDecimalComma(propValue);
76216
+ const errorMessage = validate(cleanValue, {
76217
+ allowEmpty,
76218
+ autoValue,
76219
+ placeholder,
76220
+ disabledValidation
76221
+ });
76222
+ setValidationError(errorMessage);
76223
+ }, [initDisplayUnit, value, error2, shouldLinkAutomaticly]);
76224
+ const alternativeUnits = getAlternativeUnits();
76225
+ const displayUnitLabel = dist$2.label(displayLayer.unit) || displayLayer.unit || "";
76226
+ const noConvert = noConversion || !alternativeUnits || alternativeUnits && alternativeUnits.length === 1;
76227
+ const stringName = getStringName(name2);
76228
+ let sectionsPredefinedMenu;
76229
+ const createPredefinedOption = (el2) => {
76230
+ const elementValue = (el2 == null ? void 0 : el2.value) ? el2.value : "";
76231
+ const [value2 = "", unit = ""] = dist$2.isValueWithUnit(elementValue) ? dist$2.split(elementValue) : [elementValue];
76232
+ return {
76233
+ type: MenuType.OPTION,
76234
+ inline: true,
76235
+ onClick: () => {
76236
+ const validation2 = dist$2.validateNumber(value2);
76237
+ if (validation2.valid && !disabled2) {
76238
+ setPredefinedOptionsMenuState(PredefinedOptionsMenuState.PREDEFINED);
76239
+ onChange({
76240
+ target: {
76241
+ value: elementValue,
76242
+ name: typeof name2 === "string" ? name2 : (name2 == null ? void 0 : name2.fieldName) || "",
76243
+ predefinedSelected: true,
76244
+ predefinedOption: el2
76245
+ }
76246
+ });
76247
+ }
76248
+ },
76249
+ label: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
76250
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { children: el2.label }),
76251
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { width: "20px", height: "0" })
76252
+ ] }),
76253
+ description: dist$2.isValueWithUnit(elementValue) ? `${value2} ${unit}` : elementValue,
76254
+ selected: foundPredefinedMenuOption === el2 && predefinedOptionsMenuState === PredefinedOptionsMenuState.PREDEFINED
76255
+ };
76256
+ };
76257
+ sectionsPredefinedMenu = [
76258
+ {
76259
+ type: MenuType.OPTION,
76260
+ inline: true,
76261
+ onClick: () => {
76262
+ if (predefinedOptionsMenuState !== PredefinedOptionsMenuState.CUSTOM && !disabled2) {
76263
+ onChange({
76264
+ target: {
76265
+ value: dist$2.withUnit(displayLayer.value, displayLayer.unit),
76266
+ name: typeof name2 === "string" ? name2 : (name2 == null ? void 0 : name2.fieldName) || ""
76267
+ }
76268
+ });
76269
+ }
76270
+ },
76271
+ label: "Custom",
76272
+ selected: predefinedOptionsMenuState === PredefinedOptionsMenuState.CUSTOM
76273
+ }
76274
+ ];
76275
+ if (predefinedOptions == null ? void 0 : predefinedOptions.length) {
76276
+ const dynamicOptions = predefinedOptions.map(createPredefinedOption);
76277
+ sectionsPredefinedMenu = [...sectionsPredefinedMenu, ...dynamicOptions];
76278
+ }
76279
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
76280
+ "div",
76281
+ {
76282
+ className: predefinedOptionsMenuState === PredefinedOptionsMenuState.PREDEFINED ? cx$2(styles$2.predefinedMenuActive) : "",
76283
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(InputGroup, { small: small2, width: width2, children: [
76284
+ predefinedOptions && /* @__PURE__ */ jsxRuntimeExports.jsx(
76285
+ Tooltip,
76286
+ {
76287
+ text: predefinedOptionsMenuState === PredefinedOptionsMenuState.PREDEFINED ? foundPredefinedMenuOption == null ? void 0 : foundPredefinedMenuOption.label : "",
76288
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
76289
+ Menu,
76290
+ {
76291
+ maxHeight: 380,
76292
+ groupOrder: "first",
76293
+ testId: testId && `${testId}-predefined-menu`,
76294
+ disabled: disabled2,
76295
+ menu: {
76296
+ colored: true,
76297
+ trigger: "Component",
76298
+ component: /* @__PURE__ */ jsxRuntimeExports.jsx(
76299
+ Button$1,
76300
+ {
76301
+ groupOrder: "first",
76302
+ active: predefinedOptionsMenuState === PredefinedOptionsMenuState.PREDEFINED,
76303
+ icon: predefinedOptionsMenuState === PredefinedOptionsMenuState.PREDEFINED ? "link" : "unlink"
76304
+ }
76305
+ ),
76306
+ small: small2,
76307
+ sections: sectionsPredefinedMenu
76308
+ }
76309
+ }
76310
+ )
76311
+ }
76312
+ ),
76313
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
76314
+ Input,
76315
+ {
76316
+ type: "text",
76317
+ name: stringName,
76318
+ testId,
76319
+ disabled: disabled2,
76320
+ placeholder: isAutoValue ? safeConvertValue(
76321
+ autoValue,
76322
+ displayLayer.unit,
76323
+ propAutoUnit,
76324
+ doNotConvertValue
76325
+ ) : placeholder,
76326
+ value: displayLayer.value,
76327
+ onChange: onSetValue,
76328
+ onFocus,
76329
+ error: error2 || validationError,
76330
+ warning: warning2,
76331
+ right: !left2
76332
+ },
76333
+ stringName
76334
+ ),
76335
+ displayUnitLabel && (noConvert || !knownUnit ? /* @__PURE__ */ jsxRuntimeExports.jsx(InputGroupAddon, { groupOrder: "last", children: displayUnitLabel }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
76336
+ Menu,
76337
+ {
76338
+ maxHeight: 380,
76339
+ groupOrder: "last",
76340
+ disabled: disabledUnit,
76341
+ testId: testId && `${testId}-menu`,
76342
+ menu: {
76343
+ label: displayUnitLabel,
76344
+ trigger: "DropDownButton",
76345
+ small: small2,
76346
+ sections: alternativeUnits.map(([value2, altUnit, label2]) => {
76347
+ const displayUnit = label2 || altUnit || "";
76348
+ return {
76349
+ type: "Option",
76350
+ label: !isNaN(Number(value2)) ? value2 : "",
76351
+ inline: true,
76352
+ onClick: (evt) => {
76353
+ evt.stopPropagation();
76354
+ onClickUnit(isAutoValue ? "" : value2, altUnit);
76355
+ },
76356
+ description: displayUnit,
76357
+ selected: displayUnit === displayUnitLabel,
76358
+ testId: `${testId}-unit-${displayUnit}`
76359
+ };
76360
+ })
76361
+ }
76362
+ }
76363
+ ))
76364
+ ] })
76365
+ }
76366
+ );
76367
+ };
76368
+ WithUnitContext(UnitInputComponent);
75850
76369
  const Footer = () => {
75851
76370
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
75852
76371
  /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {}),